@pdftron/webviewer 11.6.0-20250521 → 11.6.0-20250523
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/19.chunk.js +5 -5
- package/public/core/22.chunk.js +6 -6
- package/public/core/AndroidContentPartRetriever.chunk.js +2 -2
- package/public/core/AzurePartRetriever.chunk.js +1 -1
- package/public/core/ExternalAnnotationMerger.chunk.js +10 -10
- package/public/core/ExternalPdfPartRetriever.chunk.js +6 -6
- package/public/core/HttpPartRetriever.chunk.js +12 -12
- package/public/core/IOSPartRetriever.chunk.js +2 -2
- package/public/core/LocalPartRetriever.chunk.js +1 -1
- package/public/core/LocalPdfPartRetriever.chunk.js +3 -3
- package/public/core/PDFInfoVersion1.chunk.js +6 -6
- package/public/core/SelectionInfoOld.chunk.js +14 -14
- package/public/core/StreamingPartRetriever.chunk.js +5 -5
- package/public/core/WebDBPartRetriever.chunk.js +1 -1
- package/public/core/WebViewerServerPartRetriever.chunk.js +25 -25
- package/public/core/WinRTPartRetriever.chunk.js +2 -2
- package/public/core/pikaday.chunk.js +4 -4
- package/public/core/vendors.ascii85.chunk.js +5 -5
- package/public/core/vendors.pako.chunk.js +41 -41
- package/public/core/webviewer-core.min.js +2166 -2166
- package/public/ui/chunks/chunk.0.js +1 -1
- package/public/ui/chunks/chunk.100.js +1 -1
- package/public/ui/chunks/chunk.100.js.map +1 -1
- package/public/ui/chunks/chunk.102.js +1 -1
- package/public/ui/chunks/chunk.102.js.map +1 -1
- package/public/ui/chunks/chunk.103.js +1 -1
- package/public/ui/chunks/chunk.103.js.map +1 -1
- package/public/ui/chunks/chunk.104.js +1 -1
- package/public/ui/chunks/chunk.104.js.map +1 -1
- package/public/ui/chunks/chunk.105.js +1 -1
- package/public/ui/chunks/chunk.105.js.map +1 -1
- package/public/ui/chunks/chunk.106.js +1 -1
- package/public/ui/chunks/chunk.106.js.map +1 -1
- package/public/ui/chunks/chunk.107.js +1 -1
- package/public/ui/chunks/chunk.107.js.map +1 -1
- package/public/ui/chunks/chunk.108.js +1 -1
- package/public/ui/chunks/chunk.108.js.map +1 -1
- package/public/ui/chunks/chunk.109.js +1 -1
- package/public/ui/chunks/chunk.109.js.map +1 -1
- package/public/ui/chunks/chunk.110.js +1 -1
- package/public/ui/chunks/chunk.110.js.map +1 -1
- package/public/ui/chunks/chunk.111.js +1 -1
- package/public/ui/chunks/chunk.111.js.map +1 -1
- package/public/ui/chunks/chunk.112.js +1 -1
- package/public/ui/chunks/chunk.112.js.map +1 -1
- package/public/ui/chunks/chunk.113.js +1 -1
- package/public/ui/chunks/chunk.113.js.map +1 -1
- package/public/ui/chunks/chunk.114.js +1 -1
- package/public/ui/chunks/chunk.114.js.map +1 -1
- package/public/ui/chunks/chunk.115.js +1 -1
- package/public/ui/chunks/chunk.115.js.map +1 -1
- package/public/ui/chunks/chunk.116.js +1 -1
- package/public/ui/chunks/chunk.116.js.map +1 -1
- package/public/ui/chunks/chunk.117.js +1 -1
- package/public/ui/chunks/chunk.117.js.map +1 -1
- package/public/ui/chunks/chunk.118.js +1 -1
- package/public/ui/chunks/chunk.118.js.map +1 -1
- package/public/ui/chunks/chunk.119.js +1 -1
- package/public/ui/chunks/chunk.119.js.map +1 -1
- package/public/ui/chunks/chunk.120.js +1 -1
- package/public/ui/chunks/chunk.120.js.map +1 -1
- package/public/ui/chunks/chunk.121.js +1 -1
- package/public/ui/chunks/chunk.121.js.map +1 -1
- package/public/ui/chunks/chunk.122.js +1 -1
- package/public/ui/chunks/chunk.122.js.map +1 -1
- package/public/ui/chunks/chunk.123.js +1 -1
- package/public/ui/chunks/chunk.123.js.map +1 -1
- package/public/ui/chunks/chunk.124.js +1 -1
- package/public/ui/chunks/chunk.124.js.map +1 -1
- package/public/ui/chunks/chunk.125.js +1 -1
- package/public/ui/chunks/chunk.125.js.map +1 -1
- package/public/ui/chunks/chunk.126.js +1 -1
- package/public/ui/chunks/chunk.126.js.map +1 -1
- package/public/ui/chunks/chunk.127.js +1 -1
- package/public/ui/chunks/chunk.127.js.map +1 -1
- package/public/ui/chunks/chunk.128.js +1 -1
- package/public/ui/chunks/chunk.128.js.map +1 -1
- package/public/ui/chunks/chunk.129.js +1 -1
- package/public/ui/chunks/chunk.129.js.map +1 -1
- package/public/ui/chunks/chunk.130.js +1 -1
- package/public/ui/chunks/chunk.130.js.map +1 -1
- package/public/ui/chunks/chunk.131.js +1 -1
- package/public/ui/chunks/chunk.131.js.map +1 -1
- package/public/ui/chunks/chunk.132.js +1 -1
- package/public/ui/chunks/chunk.132.js.map +1 -1
- package/public/ui/chunks/chunk.133.js +1 -1
- package/public/ui/chunks/chunk.133.js.map +1 -1
- package/public/ui/chunks/chunk.134.js +1 -1
- package/public/ui/chunks/chunk.134.js.map +1 -1
- package/public/ui/chunks/chunk.135.js +1 -1
- package/public/ui/chunks/chunk.135.js.map +1 -1
- package/public/ui/chunks/chunk.136.js +1 -1
- package/public/ui/chunks/chunk.136.js.map +1 -1
- package/public/ui/chunks/chunk.137.js +1 -1
- package/public/ui/chunks/chunk.137.js.map +1 -1
- package/public/ui/chunks/chunk.138.js +1 -1
- package/public/ui/chunks/chunk.138.js.map +1 -1
- package/public/ui/chunks/chunk.139.js +1 -1
- package/public/ui/chunks/chunk.139.js.map +1 -1
- package/public/ui/chunks/chunk.140.js +1 -1
- package/public/ui/chunks/chunk.140.js.map +1 -1
- package/public/ui/chunks/chunk.141.js +1 -1
- package/public/ui/chunks/chunk.141.js.map +1 -1
- package/public/ui/chunks/chunk.142.js +1 -1
- package/public/ui/chunks/chunk.142.js.map +1 -1
- package/public/ui/chunks/chunk.143.js +1 -1
- package/public/ui/chunks/chunk.143.js.map +1 -1
- package/public/ui/chunks/chunk.144.js +1 -1
- package/public/ui/chunks/chunk.144.js.map +1 -1
- package/public/ui/chunks/chunk.145.js +1 -1
- package/public/ui/chunks/chunk.145.js.map +1 -1
- package/public/ui/chunks/chunk.146.js +1 -1
- package/public/ui/chunks/chunk.146.js.map +1 -1
- package/public/ui/chunks/chunk.147.js +1 -1
- package/public/ui/chunks/chunk.147.js.map +1 -1
- package/public/ui/chunks/chunk.148.js +1 -1
- package/public/ui/chunks/chunk.148.js.map +1 -1
- package/public/ui/chunks/chunk.149.js +1 -1
- package/public/ui/chunks/chunk.149.js.map +1 -1
- package/public/ui/chunks/chunk.15.js +1 -1
- package/public/ui/chunks/chunk.150.js +1 -1
- package/public/ui/chunks/chunk.150.js.map +1 -1
- package/public/ui/chunks/chunk.151.js +1 -1
- package/public/ui/chunks/chunk.151.js.map +1 -1
- package/public/ui/chunks/chunk.152.js +1 -1
- package/public/ui/chunks/chunk.152.js.map +1 -1
- package/public/ui/chunks/chunk.153.js +1 -1
- package/public/ui/chunks/chunk.153.js.map +1 -1
- package/public/ui/chunks/chunk.154.js +1 -1
- package/public/ui/chunks/chunk.154.js.map +1 -1
- package/public/ui/chunks/chunk.155.js +1 -1
- package/public/ui/chunks/chunk.155.js.map +1 -1
- package/public/ui/chunks/chunk.156.js +1 -1
- package/public/ui/chunks/chunk.156.js.map +1 -1
- package/public/ui/chunks/chunk.157.js +1 -1
- package/public/ui/chunks/chunk.157.js.map +1 -1
- package/public/ui/chunks/chunk.158.js +1 -1
- package/public/ui/chunks/chunk.158.js.map +1 -1
- package/public/ui/chunks/chunk.159.js +1 -1
- package/public/ui/chunks/chunk.159.js.map +1 -1
- package/public/ui/chunks/chunk.160.js +1 -1
- package/public/ui/chunks/chunk.160.js.map +1 -1
- package/public/ui/chunks/chunk.161.js +1 -1
- package/public/ui/chunks/chunk.161.js.map +1 -1
- package/public/ui/chunks/chunk.162.js +1 -1
- package/public/ui/chunks/chunk.162.js.map +1 -1
- package/public/ui/chunks/chunk.163.js +1 -1
- package/public/ui/chunks/chunk.163.js.map +1 -1
- package/public/ui/chunks/chunk.164.js +1 -1
- package/public/ui/chunks/chunk.164.js.map +1 -1
- package/public/ui/chunks/chunk.165.js +1 -1
- package/public/ui/chunks/chunk.165.js.map +1 -1
- package/public/ui/chunks/chunk.166.js +1 -1
- package/public/ui/chunks/chunk.166.js.map +1 -1
- package/public/ui/chunks/chunk.167.js +1 -1
- package/public/ui/chunks/chunk.167.js.map +1 -1
- package/public/ui/chunks/chunk.168.js +1 -1
- package/public/ui/chunks/chunk.168.js.map +1 -1
- package/public/ui/chunks/chunk.169.js +1 -1
- package/public/ui/chunks/chunk.169.js.map +1 -1
- package/public/ui/chunks/chunk.170.js +1 -1
- package/public/ui/chunks/chunk.170.js.map +1 -1
- package/public/ui/chunks/chunk.171.js +1 -1
- package/public/ui/chunks/chunk.171.js.map +1 -1
- package/public/ui/chunks/chunk.172.js +1 -1
- package/public/ui/chunks/chunk.172.js.map +1 -1
- package/public/ui/chunks/chunk.173.js +1 -1
- package/public/ui/chunks/chunk.173.js.map +1 -1
- package/public/ui/chunks/chunk.174.js +1 -1
- package/public/ui/chunks/chunk.174.js.map +1 -1
- package/public/ui/chunks/chunk.175.js +1 -1
- package/public/ui/chunks/chunk.175.js.map +1 -1
- package/public/ui/chunks/chunk.176.js +1 -1
- package/public/ui/chunks/chunk.176.js.map +1 -1
- package/public/ui/chunks/chunk.177.js +1 -1
- package/public/ui/chunks/chunk.177.js.map +1 -1
- package/public/ui/chunks/chunk.178.js +1 -1
- package/public/ui/chunks/chunk.178.js.map +1 -1
- package/public/ui/chunks/chunk.179.js +1 -1
- package/public/ui/chunks/chunk.179.js.map +1 -1
- package/public/ui/chunks/chunk.180.js +1 -1
- package/public/ui/chunks/chunk.180.js.map +1 -1
- package/public/ui/chunks/chunk.181.js +1 -1
- package/public/ui/chunks/chunk.181.js.map +1 -1
- package/public/ui/chunks/chunk.182.js +1 -1
- package/public/ui/chunks/chunk.182.js.map +1 -1
- package/public/ui/chunks/chunk.183.js +1 -1
- package/public/ui/chunks/chunk.183.js.map +1 -1
- package/public/ui/chunks/chunk.184.js +1 -1
- package/public/ui/chunks/chunk.184.js.map +1 -1
- package/public/ui/chunks/chunk.185.js +1 -1
- package/public/ui/chunks/chunk.185.js.map +1 -1
- package/public/ui/chunks/chunk.186.js +1 -1
- package/public/ui/chunks/chunk.186.js.map +1 -1
- package/public/ui/chunks/chunk.187.js +1 -1
- package/public/ui/chunks/chunk.187.js.map +1 -1
- package/public/ui/chunks/chunk.188.js +1 -1
- package/public/ui/chunks/chunk.188.js.map +1 -1
- package/public/ui/chunks/chunk.189.js +1 -1
- package/public/ui/chunks/chunk.189.js.map +1 -1
- package/public/ui/chunks/chunk.190.js +1 -1
- package/public/ui/chunks/chunk.190.js.map +1 -1
- package/public/ui/chunks/chunk.191.js +1 -1
- package/public/ui/chunks/chunk.191.js.map +1 -1
- package/public/ui/chunks/chunk.192.js +1 -1
- package/public/ui/chunks/chunk.192.js.map +1 -1
- package/public/ui/chunks/chunk.193.js +1 -1
- package/public/ui/chunks/chunk.193.js.map +1 -1
- package/public/ui/chunks/chunk.194.js +1 -1
- package/public/ui/chunks/chunk.194.js.map +1 -1
- package/public/ui/chunks/chunk.195.js +1 -1
- package/public/ui/chunks/chunk.195.js.map +1 -1
- package/public/ui/chunks/chunk.196.js +1 -1
- package/public/ui/chunks/chunk.196.js.map +1 -1
- package/public/ui/chunks/chunk.197.js +1 -1
- package/public/ui/chunks/chunk.197.js.map +1 -1
- package/public/ui/chunks/chunk.198.js +1 -1
- package/public/ui/chunks/chunk.198.js.map +1 -1
- package/public/ui/chunks/chunk.199.js +1 -1
- package/public/ui/chunks/chunk.199.js.map +1 -1
- package/public/ui/chunks/chunk.200.js +1 -1
- package/public/ui/chunks/chunk.200.js.map +1 -1
- package/public/ui/chunks/chunk.201.js +1 -1
- package/public/ui/chunks/chunk.201.js.map +1 -1
- package/public/ui/chunks/chunk.202.js +1 -1
- package/public/ui/chunks/chunk.202.js.map +1 -1
- package/public/ui/chunks/chunk.203.js +1 -1
- package/public/ui/chunks/chunk.203.js.map +1 -1
- package/public/ui/chunks/chunk.204.js +1 -1
- package/public/ui/chunks/chunk.204.js.map +1 -1
- package/public/ui/chunks/chunk.205.js +1 -1
- package/public/ui/chunks/chunk.205.js.map +1 -1
- package/public/ui/chunks/chunk.206.js +1 -1
- package/public/ui/chunks/chunk.206.js.map +1 -1
- package/public/ui/chunks/chunk.207.js +1 -1
- package/public/ui/chunks/chunk.207.js.map +1 -1
- package/public/ui/chunks/chunk.208.js +1 -1
- package/public/ui/chunks/chunk.208.js.map +1 -1
- package/public/ui/chunks/chunk.209.js +1 -1
- package/public/ui/chunks/chunk.209.js.map +1 -1
- package/public/ui/chunks/chunk.210.js +1 -1
- package/public/ui/chunks/chunk.210.js.map +1 -1
- package/public/ui/chunks/chunk.211.js +1 -1
- package/public/ui/chunks/chunk.211.js.map +1 -1
- package/public/ui/chunks/chunk.212.js +1 -1
- package/public/ui/chunks/chunk.212.js.map +1 -1
- package/public/ui/chunks/chunk.213.js +1 -1
- package/public/ui/chunks/chunk.213.js.map +1 -1
- package/public/ui/chunks/chunk.214.js +1 -1
- package/public/ui/chunks/chunk.214.js.map +1 -1
- package/public/ui/chunks/chunk.215.js +1 -1
- package/public/ui/chunks/chunk.215.js.map +1 -1
- package/public/ui/chunks/chunk.216.js +1 -1
- package/public/ui/chunks/chunk.216.js.map +1 -1
- package/public/ui/chunks/chunk.217.js +1 -1
- package/public/ui/chunks/chunk.217.js.map +1 -1
- package/public/ui/chunks/chunk.218.js +1 -1
- package/public/ui/chunks/chunk.218.js.map +1 -1
- package/public/ui/chunks/chunk.219.js +1 -1
- package/public/ui/chunks/chunk.219.js.map +1 -1
- package/public/ui/chunks/chunk.220.js +1 -1
- package/public/ui/chunks/chunk.220.js.map +1 -1
- package/public/ui/chunks/chunk.221.js +1 -1
- package/public/ui/chunks/chunk.221.js.map +1 -1
- package/public/ui/chunks/chunk.222.js +1 -1
- package/public/ui/chunks/chunk.222.js.map +1 -1
- package/public/ui/chunks/chunk.223.js +1 -1
- package/public/ui/chunks/chunk.223.js.map +1 -1
- package/public/ui/chunks/chunk.224.js +1 -1
- package/public/ui/chunks/chunk.224.js.map +1 -1
- package/public/ui/chunks/chunk.225.js +1 -1
- package/public/ui/chunks/chunk.225.js.map +1 -1
- package/public/ui/chunks/chunk.226.js +1 -1
- package/public/ui/chunks/chunk.226.js.map +1 -1
- package/public/ui/chunks/chunk.227.js +1 -1
- package/public/ui/chunks/chunk.227.js.map +1 -1
- package/public/ui/chunks/chunk.228.js +1 -1
- package/public/ui/chunks/chunk.228.js.map +1 -1
- package/public/ui/chunks/chunk.229.js +1 -1
- package/public/ui/chunks/chunk.229.js.map +1 -1
- package/public/ui/chunks/chunk.230.js +1 -1
- package/public/ui/chunks/chunk.230.js.map +1 -1
- package/public/ui/chunks/chunk.231.js +1 -1
- package/public/ui/chunks/chunk.231.js.map +1 -1
- package/public/ui/chunks/chunk.232.js +1 -1
- package/public/ui/chunks/chunk.232.js.map +1 -1
- package/public/ui/chunks/chunk.233.js +1 -1
- package/public/ui/chunks/chunk.233.js.map +1 -1
- package/public/ui/chunks/chunk.234.js +1 -1
- package/public/ui/chunks/chunk.234.js.map +1 -1
- package/public/ui/chunks/chunk.235.js +1 -1
- package/public/ui/chunks/chunk.235.js.map +1 -1
- package/public/ui/chunks/chunk.236.js +1 -1
- package/public/ui/chunks/chunk.236.js.map +1 -1
- package/public/ui/chunks/chunk.237.js +1 -1
- package/public/ui/chunks/chunk.237.js.map +1 -1
- package/public/ui/chunks/chunk.238.js +1 -1
- package/public/ui/chunks/chunk.238.js.map +1 -1
- package/public/ui/chunks/chunk.239.js +1 -1
- package/public/ui/chunks/chunk.239.js.map +1 -1
- package/public/ui/chunks/chunk.24.js +2 -2
- package/public/ui/chunks/chunk.240.js +1 -1
- package/public/ui/chunks/chunk.240.js.map +1 -1
- package/public/ui/chunks/chunk.241.js +1 -1
- package/public/ui/chunks/chunk.241.js.map +1 -1
- package/public/ui/chunks/chunk.242.js +1 -1
- package/public/ui/chunks/chunk.242.js.map +1 -1
- package/public/ui/chunks/chunk.243.js +1 -1
- package/public/ui/chunks/chunk.243.js.map +1 -1
- package/public/ui/chunks/chunk.244.js +1 -1
- package/public/ui/chunks/chunk.244.js.map +1 -1
- package/public/ui/chunks/chunk.245.js +1 -1
- package/public/ui/chunks/chunk.245.js.map +1 -1
- package/public/ui/chunks/chunk.246.js +1 -9
- package/public/ui/chunks/chunk.246.js.map +1 -1
- package/public/ui/chunks/chunk.247.js +10 -0
- package/public/ui/chunks/chunk.247.js.map +1 -0
- package/public/ui/chunks/chunk.25.js +1 -1
- package/public/ui/chunks/chunk.27.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.3.js +1 -1
- package/public/ui/chunks/chunk.30.js +1 -1
- package/public/ui/chunks/chunk.36.js +1 -1
- package/public/ui/chunks/chunk.37.js +1 -1
- package/public/ui/chunks/chunk.38.js +1 -1
- package/public/ui/chunks/chunk.40.js +1 -1
- package/public/ui/chunks/chunk.41.js +1 -1
- package/public/ui/chunks/chunk.42.js +1 -1
- package/public/ui/chunks/chunk.43.js +1 -1
- package/public/ui/chunks/chunk.46.js +1 -1
- package/public/ui/chunks/chunk.49.js +1 -1
- package/public/ui/chunks/chunk.50.js +1 -1
- package/public/ui/chunks/chunk.51.js +1 -1
- package/public/ui/chunks/chunk.52.js +1 -1
- package/public/ui/chunks/chunk.53.js +1 -1
- package/public/ui/chunks/chunk.54.js +1 -1
- package/public/ui/chunks/chunk.56.js +1 -1
- package/public/ui/chunks/chunk.57.js +1 -1
- package/public/ui/chunks/chunk.58.js +1 -1
- package/public/ui/chunks/chunk.59.js +1 -1
- package/public/ui/chunks/chunk.60.js +1 -1
- package/public/ui/chunks/chunk.61.js +1 -1
- package/public/ui/chunks/chunk.62.js +1 -1
- package/public/ui/chunks/chunk.63.js +1 -1
- package/public/ui/chunks/chunk.64.js +1 -1
- package/public/ui/chunks/chunk.65.js +1 -1
- package/public/ui/chunks/chunk.66.js +1 -1
- package/public/ui/chunks/chunk.67.js +1 -1
- package/public/ui/chunks/chunk.68.js +1 -1
- package/public/ui/chunks/chunk.69.js +1 -1
- package/public/ui/chunks/chunk.70.js +1 -1
- package/public/ui/chunks/chunk.71.js +1 -1
- package/public/ui/chunks/chunk.72.js +1 -1
- package/public/ui/chunks/chunk.73.js +1 -1
- package/public/ui/chunks/chunk.74.js +1 -1
- package/public/ui/chunks/chunk.76.js +1 -1
- package/public/ui/chunks/chunk.77.js +1 -1
- package/public/ui/chunks/chunk.78.js +1 -1
- package/public/ui/chunks/chunk.80.js +1 -1
- package/public/ui/chunks/chunk.81.js +1 -1
- package/public/ui/chunks/chunk.85.js +1 -1
- package/public/ui/chunks/chunk.86.js +1 -1
- package/public/ui/chunks/chunk.86.js.map +1 -1
- package/public/ui/chunks/chunk.87.js +1 -1
- package/public/ui/chunks/chunk.88.js +1 -1
- package/public/ui/chunks/chunk.89.js +1 -1
- package/public/ui/chunks/chunk.90.js +1 -1
- package/public/ui/chunks/chunk.91.js +1 -1
- package/public/ui/chunks/chunk.92.js +1 -1
- package/public/ui/chunks/chunk.93.js +1 -1
- package/public/ui/chunks/chunk.93.js.map +1 -1
- package/public/ui/chunks/chunk.94.js +1 -1
- package/public/ui/chunks/chunk.95.js +1 -1
- package/public/ui/chunks/chunk.96.js +1 -1
- package/public/ui/chunks/chunk.97.js +1 -1
- package/public/ui/chunks/chunk.98.js +1 -1
- package/public/ui/chunks/chunk.99.js +1 -1
- package/public/ui/webviewer-ui.min.js +2 -2
- package/public/ui/webviewer-ui.min.js.map +1 -1
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*/
|
|
8
8
|
var n;"undefined"!=typeof self&&self,n=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),r=n(18),i=n(19),a=n(45),l=n(46),s=n(47),c=n(48),u=n(49),d=n(12),f=n(32),p=n(33),h=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:o.default,Format:r.default,Leaf:i.default,Embed:c.default,Scroll:a.default,Block:s.default,Inline:l.default,Text:u.default,Attributor:{Attribute:d.default,Class:f.default,Style:p.default,Store:h.default}};t.default=g},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var a,l={},s={},c={},u={};function d(e,t){var n;if(void 0===t&&(t=a.ANY),"string"==typeof e)n=u[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?n=u.block:e&a.LEVEL&a.INLINE&&(n=u.inline);else if(e instanceof HTMLElement){var o=(e.getAttribute("class")||"").split(/\s+/);for(var r in o)if(n=s[o[r]])break;n=n||c[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(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"}(a=t.Scope||(t.Scope={})),t.create=function(e,t){var n=d(e);if(null==n)throw new i("Unable to create "+e+" blot");var o=n,r=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:o.create(t);return new o(r,t)},t.find=function e(n,o){return void 0===o&&(o=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:o?e(n.parentNode,o):null},t.query=d,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var o=t[0];if("string"!=typeof o.blotName&&"string"!=typeof o.attrName)throw new i("Invalid definition");if("abstract"===o.blotName)throw new i("Cannot register abstract class");if(u[o.blotName||o.attrName]=o,"string"==typeof o.keyName)l[o.keyName]=o;else if(null!=o.className&&(s[o.className]=o),null!=o.tagName){Array.isArray(o.tagName)?o.tagName=o.tagName.map((function(e){return e.toUpperCase()})):o.tagName=o.tagName.toUpperCase();var r=Array.isArray(o.tagName)?o.tagName:[o.tagName];r.forEach((function(e){null!=c[e]&&null!=o.className||(c[e]=o)}))}return o}},function(e,t,n){var o=n(51),r=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},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,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(r(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},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(o){(e(o)?t:n).push(o)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],o=a.iterator(this.ops),r=0;r<t&&o.hasNext();){var i;r<e?i=o.next(e-r):(i=o.next(t-r),n.push(i)),r+=a.length(i)}return new s(n)},s.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),o=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),o.push(t.next());i.retain-l>0&&n.next(i.retain-l)}for(var c=new s(o);t.hasNext()||n.hasNext();)if("insert"===n.peekType())c.push(n.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),d=t.next(u),f=n.next(u);if("number"==typeof f.retain){var p={};"number"==typeof d.retain?p.retain=u:p.insert=d.insert;var h=a.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(h&&(p.attributes=h),c.push(p),!n.hasNext()&&r(c.ops[c.ops.length-1],p)){var m=new s(t.rest());return c.concat(m).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&c.push(f)}return c.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,c=o(n[0],n[1],t),u=a.iterator(this.ops),d=a.iterator(e.ops);return c.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case o.DELETE:n=Math.min(t,u.peekLength()),u.next(n),i.delete(n);break;case o.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),t);var l=u.next(n),s=d.next(n);r(l.insert,s.insert)?i.retain(n,a.attributes.diff(l.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),o=new s,r=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),c="string"==typeof i.insert?i.insert.indexOf(t,l)-l:-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 s}}o.length()>0&&e(o,{},r)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),o=a.iterator(e.ops),r=new s;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())r.push(o.next());else{var i=Math.min(n.peekLength(),o.peekLength()),l=n.next(i),c=o.next(i);if(l.delete)continue;c.delete?r.push(c):r.retain(i,a.attributes.transform(l.attributes,c.attributes,t))}else r.retain(a.length(n.next()));return r.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),o=0;n.hasNext()&&o<=e;){var 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},e.exports=s},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},l=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,o,r,i,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)o=c(d,n),d!==(r=c(t,n))&&(h&&r&&(l(r)||(i=a(r)))?(i?(i=!1,u=o&&a(o)?o:[]):u=o&&l(o)?o:{},s(d,{name:n,newValue:e(h,u,r)})):void 0!==r&&s(d,{name:n,newValue:r}));return d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var o=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=d(n(3)),a=d(n(2)),l=d(n(0)),s=d(n(16)),c=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=l.default.query(e,l.default.Scope.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){if("string"==typeof n&&n.endsWith("\n")){var i=l.default.create(g.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o)}}]),t}(l.default.Embed);m.scope=l.default.Scope.BLOCK_BLOT;var g=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),o(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),v(t))}),new a.default).insert("\n",v(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,o,i){n<=0||(l.default.query(o,l.default.Scope.BLOCK)?e+n===this.length()&&this.format(o,i):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),o,i),this.cache={})}},{key:"insertAt",value:function(e,n,o){if(null!=o)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var l=this;i.reduce((function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var o=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),o instanceof s.default&&o.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,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 i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l.default.Block);function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:v(e.parent,t))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[c.default,l.default.Embed,u.default],t.bubbleFormats=v,t.BlockEmbed=m,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var 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},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(50);var a=g(n(2)),l=g(n(14)),s=g(n(8)),c=g(n(9)),u=g(n(0)),d=n(15),f=g(d),p=g(n(3)),h=g(n(10)),m=g(n(34));function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y=(0,h.default)("quill"),w=function(){function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b(this,e),this.options=x(t,o),this.container=this.options.container,null==this.container)return y.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new f.default(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.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var o=n.selection.lastRange,r=o&&0===o.length?o.index:void 0;E.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&y.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(o){n.register(o,e[o],t)}))}else null==this.imports[e]||o||y.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(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,i=k(e,t,n),a=r(i,4);return e=a[0],t=a[1],n=a[3],E.call(this,(function(){return o.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{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=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return E.call(this,(function(){var o=n.getSelection(!0),r=new a.default;if(null==o)return r;if(u.default.query(e,u.default.Scope.BLOCK))r=n.editor.formatLine(o.index,o.length,v({},e,t));else{if(0===o.length)return n.selection.format(e,t),r;r=n.editor.formatText(o.index,o.length,v({},e,t))}return n.setSelection(o,s.default.sources.SILENT),r}),o)}},{key:"formatLine",value:function(e,t,n,o,i){var a,l=this,s=k(e,t,n,o,i),c=r(s,4);return e=c[0],t=c[1],a=c[2],i=c[3],E.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,o,i){var a,l=this,s=k(e,t,n,o,i),c=r(s,4);return e=c[0],t=c[1],a=c[2],i=c[3],E.call(this,(function(){return l.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);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=k(e,t),o=r(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:"getText",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=k(e,t),o=r(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 E.call(this,(function(){return r.editor.insertEmbed(t,n,o)}),i,t)}},{key:"insertText",value:function(e,t,n,o,i){var a,l=this,s=k(e,0,n,o,i),c=r(s,4);return e=c[0],a=c[2],i=c[3],E.call(this,(function(){return l.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var o=this,i=k(e,t,n),a=r(i,4);return e=a[0],t=a[1],n=a[3],E.call(this,(function(){return o.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return E.call(this,(function(){e=new a.default(e);var n=t.getLength(),o=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),i=r.ops[r.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1)),o.compose(r)}),n)}},{key:"setSelection",value:function(t,n,o){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=k(t,n,o),a=r(i,4);t=a[0],n=a[1],o=a[3],this.selection.setRange(new d.Range(t,n),o),o!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.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]:s.default.sources.API;return E.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function x(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var o=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w.import("modules/"+t);return null==n?y.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},w.DEFAULTS,{modules:o},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function E(e,t,n,o){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new a.default;var r=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=r&&(!0===n&&(n=r.index),null==o?r=O(r,l,t):0!==o&&(r=O(r,n,o,t)),this.setSelection(r,s.default.sources.SILENT)),l.length()>0){var c,u,d=[s.default.events.TEXT_CHANGE,l,i,t];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(d)),t!==s.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}return l}function k(e,t,n,r,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=r,r=n,n=t,t=0),"object"===(void 0===n?"undefined":o(n))?(a=n,i=r):"string"==typeof n&&(null!=r?a[n]=r:i=n),[e,t,a,i=i||s.default.sources.API]}function O(e,t,n,o){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var c=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,o!==s.default.sources.USER)})),u=r(c,2);i=u[0],l=u[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&o===s.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=r(f,2);i=p[0],l=p[1]}return new d.Range(i,l-i)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=s.default.events,w.sources=s.default.sources,w.version="1.3.7",w.imports={delta:a.default,parchment:u.default,"core/module":c.default,"core/theme":m.default},t.expandConfig=x,t.overload=k,t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=l(n(7)),a=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"formatAt",value:function(e,n,o,i){if(t.compare(this.statics.blotName,o)<0&&a.default.query(o,a.default.Scope.BLOT)){var l=this.isolate(e,n);i&&l.wrap(o,i)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,i)}},{key:"optimize",value:function(e){if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,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)}}}],[{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}}]),t}(a.default.Inline);u.allowedChildren=[u,a.default.Embed,i.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(0);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((o=r)&&o.__esModule?o:{default:o}).default.Text);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}var l=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var s=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",l.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"emit",value:function(){l.log.apply(l,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(this.listeners[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.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);s.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},s.sources={API:"api",SILENT:"silent",USER:"user"},t.default=s},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=["error","warn","log","info"],r="warn";function i(e){if(o.indexOf(e)<=o.indexOf(r)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return o.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=a.level=function(e){r=e},t.default=a},function(e,t,n){var o=Array.prototype.slice,r=n(52),i=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var c,u;if(l(e)||l(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=o.call(e),t=o.call(t),a(e,t,n));if(s(e)){if(!s(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var d=r(e),f=r(t)}catch(e){return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),c=d.length-1;c>=0;c--)if(d[c]!=f[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!a(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function l(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=o.Scope.TYPE&o.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&o.Scope.LEVEL|r:this.scope=o.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=o.query(e,o.Scope.BLOT&(this.scope|o.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=d(n(2)),l=d(n(0)),s=d(n(4)),c=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(c.default);m.blotName="code",m.tagName="CODE";var g=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(u.default,this.length()-1),a=o(r,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,o,r){if(0!==n&&null!=l.default.query(o,l.default.Scope.BLOCK)&&(o!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var a=this.newlineIndex(e,!0)+1,s=i-a+1,c=this.isolate(a,s),u=c.next;c.format(o,r),u instanceof t&&u.formatAt(0,e-a+n-s,o,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(u.default,e),i=o(r,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",t.Code=m,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=v(n(2)),l=v(n(20)),s=v(n(0)),c=v(n(13)),u=v(n(24)),d=n(4),f=v(d),p=v(n(16)),h=v(n(21)),m=v(n(11)),g=v(n(3));function v(e){return e&&e.__esModule?e:{default:e}}var b=/^[ -~]*$/,y=function(){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()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var o=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(o,t.attributes)}return e.push(t)}),new a.default)}(e)).reduce((function(e,a){var c=a.retain||a.delete||a.insert.length||1,u=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),m=r(h,2),v=m[0],b=m[1],y=(0,g.default)({},(0,d.bubbleFormats)(v));if(v instanceof f.default){var w=v.descendant(s.default.Leaf,b),x=r(w,1)[0];y=(0,g.default)(y,(0,d.bubbleFormats)(x))}u=l.default.attributes.diff(y,u)||{}}else if("object"===o(a.insert)){var E=Object.keys(a.insert)[0];if(null==E)return e;t.scroll.insertAt(e,E,a.insert[E])}i+=c}return Object.keys(u).forEach((function(n){t.scroll.formatAt(e,c,n,u[n])})),e+c}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(o).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof c.default){var l=e-t.offset(n.scroll),s=t.newlineIndex(l+a)-l+1;t.formatAt(l,s,r,o[r])}else t.format(r,o[r]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"formatText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t,r,o[r])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{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 a.default)}},{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=r(e,1)[0];t instanceof f.default?n.push(t):t instanceof s.default.Leaf&&o.push(t)})):(n=this.scroll.lines(e,t),o=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,o].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=w((0,d.bubbleFormats)(n),t)}return t}));return g.default.apply(g.default,i)}},{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:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},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 a.default).retain(e).insert(t,(0,h.default)(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;return e.statics.blotName===f.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),o=this.scroll.line(e+t),i=r(o,2),l=i[0],s=i[1],u=0,d=new a.default;null!=l&&(u=l instanceof c.default?l.newlineIndex(s)-s+1:l.length()-s,d=l.delta().slice(s,s+u-1).insert("\n"));var f=this.getContents(e,t+u).diff((new a.default).insert(n).concat(d)),p=(new a.default).retain(e).concat(f);return this.applyDelta(p)}},{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(b)&&s.default.find(t[0].target)){var r=s.default.find(t[0].target),i=(0,d.bubbleFormats)(r),l=r.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),f=(new a.default).insert(c),p=(new a.default).insert(r.value()),h=(new a.default).retain(l).concat(f.diff(p,n));e=h.reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=o.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(o.compose(e),this.delta)||(e=o.diff(this.delta,n));return e}}]),e}();function w(e,t){return Object.keys(t).reduce((function(n,o){return null==e[o]||(t[o]===e[o]?n[o]=t[o]:Array.isArray(t[o])?t[o].indexOf(e[o])<0&&(n[o]=t[o].concat([e[o]])):n[o]=[t[o],e[o]]),n}),{})}t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=c(n(0)),a=c(n(21)),l=c(n(11)),s=c(n(8));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,c(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var o=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){o.mouseDown||setTimeout(o.update.bind(o,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&o.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(o.hasFocus()){var e=o.getNativeRange();null!=e&&e.start.node!==o.cursor.textNode&&o.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{o.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(s.default.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)}})),this.update(s.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(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(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var o=i.default.find(n.start.node,!1);if(null==o)return;if(o instanceof i.default.Leaf){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=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,i=this.scroll.leaf(e),a=o(i,2),l=a[0],s=a[1];if(null==l)return null;var c=l.position(s,!0),u=o(c,2);r=u[0],s=u[1];var d=document.createRange();if(t>0){d.setStart(r,s);var f=this.scroll.leaf(e+t),p=o(f,2);if(l=p[0],s=p[1],null==l)return null;var h=l.position(s,!0),m=o(h,2);return r=m[0],s=m[1],d.setEnd(r,s),d.getBoundingClientRect()}var g="left",v=void 0;return r instanceof Text?(s<r.data.length?(d.setStart(r,s),d.setEnd(r,s+1)):(d.setStart(r,s-1),d.setEnd(r,s),g="right"),v=d.getBoundingClientRect()):(v=l.domNode.getBoundingClientRect(),s>0&&(g="right")),{bottom:v.top+v.height,height:v.height,left:v[g],right:v[g],top:v.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 f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{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 r=n.map((function(e){var n=o(e,2),r=n[0],a=n[1],l=i.default.find(r,!0),s=l.offset(t.scroll);return 0===a?s:l instanceof i.default.Container?s+l.length():s+l.index(r,a)})),a=Math.min(Math.max.apply(Math,u(r)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(u(r)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(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+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a,l=t.scroll.leaf(e),s=o(l,2),c=s[0],u=s[1],d=c.position(u,0!==n),f=o(d,2);a=f[0],u=f[1],r.push(a,u)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,r)),a=o(i,1)[0],l=a;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,r));l=o(s,1)[0]}if(null!=a&&null!=l){var c=e.getBoundingClientRect();n.top<c.top?e.scrollTop-=c.top-n.top:n.bottom>c.bottom&&(e.scrollTop+=n.bottom-c.bottom)}}}}},{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(f.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();var a=(this.getNativeRange()||{}).native;if(null==a||r||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||o!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(o=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,o),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{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]:s.default.sources.API;if("string"==typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var o=this.rangeToNative(e);this.setNativeRange.apply(this,u(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]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),r=o(n,2),i=r[0],c=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[s.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(f)),e!==s.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function m(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"insertInto",value:function(e,n){0===e.children.length?function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((o=i)&&o.__esModule?o:{default:o}).default.Embed);s.blotName="break",s.tagName="BR",t.default=s},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),a=n(30),l=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=c(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof l.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var o=this.children.find(n),r=o[0],i=o[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,i]:r instanceof t?r.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,o){void 0===n&&(n=0),void 0===o&&(o=Number.MAX_VALUE);var r=[],i=o;return this.children.forEachAt(n,o,(function(n,o,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&r.push(n),n instanceof t&&(r=r.concat(n.descendants(e,o,i))),i-=a})),r},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,o){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,n,o)}))},t.prototype.insertAt=function(e,t,n){var o=this.children.find(e),r=o[0],i=o[1];if(r)r.insertAt(i,t,n);else{var a=null==n?l.create("text",t):l.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new l.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=l.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var o=this.children.find(e,n),r=o[0],i=o[1],a=[[this,e]];return r instanceof t?a.concat(r.path(i,n)):(null!=r&&a.push([r,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,o,r){e=e.split(o,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,o=[],r=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(o.push.apply(o,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),o.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=l.find(e.nextSibling));var o=c(e);o.next==t&&null!=o.next||(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,t||void 0))}))},t}(a.default);function c(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch(n){t=l.create(l.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=n(31),l=n(17),s=n(1),c=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var o=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(o),o},t.prototype.update=function(t,n){var o=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===o.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,o){var r=e.prototype.wrap.call(this,n,o);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(l.default);t.default=c},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var o=n(11),r=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var o=r(!0,{},t);for(var i in n||(o=Object.keys(o).reduce((function(e,t){return null!=o[t]&&(e[t]=o[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(o[i]=e[i]);return Object.keys(o).length>0?o:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return o(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var o=Object.keys(t).reduce((function(n,o){return void 0===e[o]&&(n[o]=t[o]),n}),{});return Object.keys(o).length>0?o:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,o=i.length(t);if(e>=o-n?(e=o-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var 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[]},e.exports=i},function(e,n){var o=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,o,r;try{n=Map}catch(e){n=function(){}}try{o=Set}catch(e){o=function(){}}try{r=Promise}catch(e){r=function(){}}function i(a,s,c,u,d){"object"==typeof s&&(c=s.depth,u=s.prototype,d=s.includeNonEnumerable,s=s.circular);var f=[],p=[],h=void 0!==t;return void 0===s&&(s=!0),void 0===c&&(c=1/0),function a(c,m){if(null===c)return null;if(0===m)return c;var g,v;if("object"!=typeof c)return c;if(e(c,n))g=new n;else if(e(c,o))g=new o;else if(e(c,r))g=new r((function(e,t){c.then((function(t){e(a(t,m-1))}),(function(e){t(a(e,m-1))}))}));else if(i.__isArray(c))g=[];else if(i.__isRegExp(c))g=new RegExp(c.source,l(c)),c.lastIndex&&(g.lastIndex=c.lastIndex);else if(i.__isDate(c))g=new Date(c.getTime());else{if(h&&t.isBuffer(c))return g=t.allocUnsafe?t.allocUnsafe(c.length):new t(c.length),c.copy(g),g;e(c,Error)?g=Object.create(c):void 0===u?(v=Object.getPrototypeOf(c),g=Object.create(v)):(g=Object.create(u),v=u)}if(s){var b=f.indexOf(c);if(-1!=b)return p[b];f.push(c),p.push(g)}for(var y in e(c,n)&&c.forEach((function(e,t){var n=a(t,m-1),o=a(e,m-1);g.set(n,o)})),e(c,o)&&c.forEach((function(e){var t=a(e,m-1);g.add(t)})),c){var w;v&&(w=Object.getOwnPropertyDescriptor(v,y)),w&&null==w.set||(g[y]=a(c[y],m-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(c);for(y=0;y<x.length;y++){var E=x[y];(!(O=Object.getOwnPropertyDescriptor(c,E))||O.enumerable||d)&&(g[E]=a(c[E],m-1),O.enumerable||Object.defineProperty(g,E,{enumerable:!1}))}}if(d){var k=Object.getOwnPropertyNames(c);for(y=0;y<k.length;y++){var O,S=k[y];(O=Object.getOwnPropertyDescriptor(c,S))&&O.enumerable||(g[S]=a(c[S],m-1),Object.defineProperty(g,S,{enumerable:!1}))}}return g}(a,c)}function a(e){return Object.prototype.toString.call(e)}function l(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return i.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},i.__objToStr=a,i.__isDate=function(e){return"object"==typeof e&&"[object Date]"===a(e)},i.__isArray=function(e){return"object"==typeof e&&"[object Array]"===a(e)},i.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===a(e)},i.__getRegExpFlags=l,i}();"object"==typeof e&&e.exports&&(e.exports=o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=p(n(0)),l=p(n(8)),s=n(4),c=p(s),u=p(n(16)),d=p(n(13)),f=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof c.default||e instanceof s.BlockEmbed}var m=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.emitter=n.emitter,Array.isArray(n.whitelist)&&(o.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),o.domNode.addEventListener("DOMNodeInserted",(function(){})),o.optimize(),o.enable(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),a=o(r,2),l=a[0],c=a[1],f=this.line(e+n),p=o(f,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&l!==p&&c>0){if(l instanceof s.BlockEmbed||p instanceof s.BlockEmbed)return void this.optimize();if(l instanceof d.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var m=p.newlineIndex(0);m>-1&&p.split(m+1)}var g=p.children.head instanceof u.default?null:p.children.head;l.moveChildren(p,g),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,o,r){(null==this.whitelist||this.whitelist[o])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,r),this.optimize())}},{key:"insertAt",value:function(e,n,o){if(null==o||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==o||null==a.default.query(n,a.default.Scope.BLOCK)){var r=a.default.create(this.statics.defaultChild);this.appendChild(r),null==o&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,o)}else{var l=a.default.create(n,o);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var o=a.default.create(this.statics.defaultChild);o.appendChild(e),e=o}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,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,n,o){var r=[],i=o;return t.children.forEachAt(n,o,(function(t,n,o){h(t)?r.push(t):t instanceof a.default.Container&&(r=r.concat(e(t,n,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]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[c.default,s.BlockEmbed,f.default],t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var 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},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=m(n(21)),l=m(n(11)),s=m(n(3)),c=m(n(2)),u=m(n(20)),d=m(n(0)),f=m(n(5)),p=m(n(10)),h=m(n(9));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,p.default)("quill:keyboard"),b=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",y=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.bindings={},Object.keys(o.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&o.options.bindings[t]&&o.addBinding(o.options.bindings[t])})),o.addBinding({key:t.keys.ENTER,shiftKey:null},O),o.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},x),o.addBinding({key:t.keys.DELETE},{collapsed:!0},E)):(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},x),o.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},E)),o.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},k),o.addBinding({key:t.keys.DELETE},{collapsed:!1},k),o.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},x),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, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"match",value:function(e,t){return t=C(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=C(e);if(null==o||null==o.key)return v.warn("Attempted to add invalid keyboard binding",o);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),o=(0,s.default)(o,t,n),this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var c=e.quill.getLine(s.index),u=r(c,2),f=u[0],p=u[1],h=e.quill.getLeaf(s.index),m=r(h,2),g=m[0],v=m[1],b=0===s.length?[g,v]:e.quill.getLeaf(s.index+s.length),y=r(b,2),w=y[0],x=y[1],E=g instanceof d.default.Text?g.value().slice(0,v):"",k=w instanceof d.default.Text?w.value().slice(x):"",O={collapsed:0===s.length,empty:0===s.length&&f.length()<=1,format:e.quill.getFormat(s),offset:p,prefix:E,suffix:k};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==O.collapsed)return!1;if(null!=t.empty&&t.empty!==O.empty)return!1;if(null!=t.offset&&t.offset!==O.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==O.format[e]})))return!1}else if("object"===o(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=O.format[e]:!1===t.format[e]?null==O.format[e]:(0,l.default)(t.format[e],O.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(O.prefix)||null!=t.suffix&&!t.suffix.test(O.suffix)||!0===t.handler.call(e,s,O))}))&&n.preventDefault()}}}}))}}]),t}(h.default);function w(e,t){var n,o=e===y.keys.LEFT?"prefix":"suffix";return g(n={key:e,shiftKey:t,altKey:null},o,/^$/),g(n,"handler",(function(n){var o=n.index;e===y.keys.RIGHT&&(o+=n.length+1);var i=this.quill.getLeaf(o);return!(r(i,1)[0]instanceof d.default.Embed&&(e===y.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))})),n}function x(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),o=r(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=r(a,1)[0];if(null!=l&&l.length()>1){var s=o.formats(),c=this.quill.getFormat(e.index-1,1);i=u.default.attributes.diff(s,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,f.default.sources.USER),this.quill.focus()}}function E(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var o={},i=0,a=this.quill.getLine(e.index),l=r(a,1)[0];if(t.offset>=l.length()-1){var s=this.quill.getLine(e.index+1),c=r(s,1)[0];if(c){var d=l.formats(),p=this.quill.getFormat(e.index,1);o=u.default.attributes.diff(d,p)||{},i=c.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index+i-1,n,o,f.default.sources.USER)}}function k(e){var t=this.quill.getLines(e),n={};if(t.length>1){var o=t[0].formats(),r=t[t.length-1].formats();n=u.default.attributes.diff(r,o)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function O(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var o=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",o,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==o[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))}))}function S(e){return{key:y.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),o=t.index,i=t.length,a=this.quill.scroll.descendant(n,o),l=r(a,2),s=l[0],c=l[1];if(null!=s){var u=this.quill.getIndex(s),p=s.newlineIndex(c,!0)+1,h=s.newlineIndex(u+c+i),m=s.domNode.textContent.slice(p,h).split("\n");c=0,m.forEach((function(t,r){e?(s.insertAt(p+c,n.TAB),c+=n.TAB.length,0===r?o+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(p+c,n.TAB.length),c-=n.TAB.length,0===r?o-=n.TAB.length:i-=n.TAB.length),c+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(o,i,f.default.sources.SILENT)}}}}function _(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function C(e){if("string"==typeof e||"number"==typeof e)return C({key:e});if("object"===(void 0===e?"undefined":o(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=y.keys[e.key.toUpperCase()])e.key=y.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[b]=e.shortKey,delete e.shortKey),e}y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},y.DEFAULTS={bindings:{bold:_("bold"),italic:_("italic"),underline:_("underline"),indent:{key:y.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:y.keys.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",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":S(!0),"outdent code-block":S(!1),"remove tab":{key:y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:y.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],a=(0,s.default)({},o.formats(),{list:"checked"}),l=(new c.default).retain(e.index).insert("\n",a).retain(o.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),o=r(n,2),i=o[0],a=o[1],l=(new c.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,o=this.quill.getLine(e.index),i=r(o,2),a=i[0],l=i[1];if(l>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:s});this.quill.updateContents(u,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],a=(new c.default).retain(e.index+o.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,f.default.sources.USER)}},"embed left":w(y.keys.LEFT,!1),"embed left shift":w(y.keys.LEFT,!0),"embed right":w(y.keys.RIGHT,!1),"embed right shift":w(y.keys.RIGHT,!0)}},t.default=y,t.SHORTKEY=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=s(n(0)),l=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.selection=n,o.textNode=document.createTextNode(t.CONTENTS),o.domNode.appendChild(o.textNode),o._length=0,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var o=this,i=0;null!=o&&o.statics.scope!==a.default.Scope.BLOCK_BLOT;)i+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var c=[e,n.start.offset,n.end.offset];r=c[0],i=c[1],s=c[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof l.default?(r=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var d=[i,s].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),f=o(d,2);return i=f[0],s=f[1],{startNode:r,startOffset:i,endNode:r,endOffset:s}}}}},{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:"value",value:function(){return""}}]),t}(a.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\ufeff",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(0)),r=n(4),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default.Container);c.allowedChildren=[i.default,r.BlockEmbed,c],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var o,r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0),a=(o=i)&&o.__esModule?o:{default:o};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"value",value:function(e){var n=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(a.default.Attributor.Style),u=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),d=new c("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=u,t.ColorStyle=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var o,r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(6);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",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 u(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default);function u(e,t){var n=document.createElement("a");n.href=e;var o=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(o)>-1}c.blotName="link",c.tagName="A",c.SANITIZED_URL="about:blank",c.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=c,t.sanitize=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=l(n(23)),a=l(n(107));function l(e){return e&&e.__esModule?e:{default:e}}var s=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){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.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return r(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,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-"+s,s+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(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;[].slice.call(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");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,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))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":o(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;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)}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=v(n(0)),r=v(n(5)),i=n(4),a=v(i),l=v(n(16)),s=v(n(25)),c=v(n(24)),u=v(n(35)),d=v(n(6)),f=v(n(22)),p=v(n(7)),h=v(n(55)),m=v(n(42)),g=v(n(23));function v(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":s.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":m.default,"modules/keyboard":g.default}),o.default.register(a.default,l.default,c.default,d.default,f.default,p.default),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e){this.domNode=e,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new o.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return o.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,r){var i=this.isolate(e,t);if(null!=o.query(n,o.Scope.BLOT)&&r)i.wrap(n,r);else if(null!=o.query(n,o.Scope.ATTRIBUTE)){var a=o.create(this.statics.scope);i.wrap(a),a.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?o.create("text",t):o.create(t,n),i=this.split(e);this.parent.insertBefore(r,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[o.DATA_KEY]&&delete this.domNode[o.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?o.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?o.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),r=n(32),i=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(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])},e.prototype.build=function(){var e=this;this.attributes={};var t=o.default.keys(this.domNode),n=r.default.keys(this.domNode),l=i.default.keys(this.domNode);t.concat(n).concat(l).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof o.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var o=t.attributes[n].value(t.domNode);e.format(n,o)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=l},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return o(e,[{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/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();r.DEFAULTS={modules:{}},r.themes={default:r},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=a(n(0)),i=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode("\ufeff"),n.rightGuard=document.createTextNode("\ufeff"),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,o=e.data.split("\ufeff").join("");if(e===this.leftGuard)if(this.prev instanceof i.default){var a=this.prev.length();this.prev.insertAt(a,o),t={startNode:this.prev.domNode,startOffset:a+o.length}}else n=document.createTextNode(o),this.parent.insertBefore(r.default.create(n),this),t={startNode:n,startOffset:o.length};else e===this.rightGuard&&(this.next instanceof i.default?(this.next.insertAt(0,o),t={startNode:this.next.domNode,startOffset:o.length}):(n=document.createTextNode(o),this.parent.insertBefore(r.default.create(n),this.next),t={startNode:n,startOffset:o.length}));return e.data="\ufeff",t}},{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)}}))}}]),t}(r.default.Embed);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var o,r=n(0),i=(o=r)&&o.__esModule?o:{default:o},a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new i.default.Attributor.Attribute("align","align",a),s=new i.default.Attributor.Class("align","ql-align",a),c=new i.default.Attributor.Style("align","text-align",a);t.AlignAttribute=l,t.AlignClass=s,t.AlignStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var o,r=n(0),i=(o=r)&&o.__esModule?o:{default:o},a=n(26),l=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),s=new a.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var o,r=n(0),i=(o=r)&&o.__esModule?o:{default:o},a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},l=new i.default.Attributor.Attribute("direction","dir",a),s=new i.default.Attributor.Class("direction","ql-direction",a),c=new i.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=l,t.DirectionClass=s,t.DirectionStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var o,r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0),a=(o=i)&&o.__esModule?o:{default:o};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new a.default.Attributor.Class("font","ql-font",c),d=new(function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"value",value:function(e){return function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style))("font","font-family",c);t.FontStyle=d,t.FontClass=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var o,r=n(0),i=(o=r)&&o.__esModule?o:{default:o},a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=l},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var o=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.lastRecorded=0,o.ignoreChange=!1,o.clear(),o.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,r){e!==i.default.events.TEXT_CHANGE||o.ignoreChange||(o.options.userOnly&&r!==i.default.sources.USER?o.transform(t):o.record(t,n))})),o.quill.keyboard.addBinding({key:"Z",shortKey:!0},o.undo.bind(o)),o.quill.keyboard.addBinding({key:"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}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var o=s(n[e]);this.quill.setSelection(o)}}},{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=this.quill.getContents().diff(t),o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=o;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function s(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=r.default.query(e,r.default.Scope.BLOCK)})))}(e)&&(n-=1),n}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=l,t.getLastChangeIndex=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var o=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=p(n(3)),i=p(n(2)),a=p(n(8)),l=p(n(23)),s=p(n(34)),c=p(n(59)),u=p(n(60)),d=p(n(28)),f=p(n(61));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[!1,"center","right","justify"],b=["#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"],y=[!1,"serif","monospace"],w=["1","2","3",!1],x=["small",!1,"large","huge"],E=function(e){function t(e,n){h(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==o.tooltip||o.tooltip.root.contains(n.target)||document.activeElement===o.tooltip.textbox||o.quill.hasFocus()||o.tooltip.hide(),null!=o.pickers&&o.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),o}return g(t,e),o(t,[{key:"addModule",value:function(e){var n=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){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=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&O(e,v),new u.default(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")&&O(e,b,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?O(e,y):e.classList.contains("ql-header")?O(e,w):e.classList.contains("ql-size")&&O(e,x)),new d.default(e)})),this.quill.on(a.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(s.default);E.DEFAULTS=(0,r.default)(!0,{},s.default.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","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var o=e.quill.getSelection(!0);e.quill.updateContents((new i.default).retain(o.index).delete(o.length).insert({image:n.target.result}),a.default.sources.USER),e.quill.setSelection(o.index+1,a.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var k=function(e){function t(e,n){h(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.textbox=o.root.querySelector('input[type="text"]'),o.listen(),o}return g(t,e),o(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{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;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var o=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,a.default.sources.USER)),this.quill.root.scrollTop=o;break;case"video":t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/),n=t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var r=this.quill.getSelection(!0);if(null!=r){var i=r.index+r.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",a.default.sources.USER),this.quill.setSelection(i+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(f.default);function O(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",t),e.appendChild(o)}))}t.BaseTooltip=k,t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){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)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(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)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,o=this.iterator();n=o();){var r=n.length();if(e<r||t&&e===r&&(null==n.next||0!==n.next.length()))return[n,e];e-=r}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var o,r=this.find(e),i=r[0],a=e-r[1],l=this.iterator(i);(o=l())&&a<e+t;){var s=o.length();e>a?n(o,e-a,Math.min(t,a+s-e)):n(o,0,Math.min(s,e+t-a)),a+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,o=this.iterator();n=o();)t=e(t,n);return t},e}();t.default=o},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,l),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,o,r){this.update(),e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){this.update(),e.prototype.insertAt.call(this,t,n,o)},t.prototype.optimize=function(t,n){var o=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==o&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},s=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(s),e.optimize(n))},c=t,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(s),r=(c=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,n){var o=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==o&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=s},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,o){var r=this;n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,o,r){null!=this.formats()[o]||a.query(o,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(o,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=l},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var o=a.query(t.blotName).tagName;if(n.tagName!==o)return e.formats.call(this,n)},t.prototype.format=function(n,o){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,o,r){null!=a.query(o,a.Scope.BLOCK)?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){if(null==o||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,o);else{var r=this.split(t),i=a.create(n,o);r.parent.insertBefore(i,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=l},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,o,r){0===t&&n===this.length()?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,o){null==o?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,o)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){"use strict";var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var o=n.indexOf(e,t);return-1!==o&&o===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),o=n.length>>>0,r=arguments[1],i=0;i<o;i++)if(t=n[i],e.call(r,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){function n(e,t,a){if(e==t)return e?[[0,e]]:[];(a<0||e.length<a)&&(a=null);var s=r(e,t),c=e.substring(0,s);s=i(e=e.substring(s),t=t.substring(s));var u=e.substring(e.length-s),d=function(e,t){var a;if(!e)return[[1,t]];if(!t)return[[-1,e]];var l=e.length>t.length?e:t,s=e.length>t.length?t:e,c=l.indexOf(s);if(-1!=c)return a=[[1,l.substring(0,c)],[0,s],[1,l.substring(c+s.length)]],e.length>t.length&&(a[0][0]=a[2][0]=-1),a;if(1==s.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 a(e,t,n){for(var o,a,l,s,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(c,u+1));){var f=r(e.substring(n),t.substring(u)),p=i(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),a=e.substring(n+f),l=t.substring(0,u-p),s=t.substring(u+f))}return 2*d.length>=e.length?[o,a,l,s,d]:null}var l,s,c,u,d,f=a(n,o,Math.ceil(n.length/4)),p=a(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?(s=l[0],c=l[1],u=l[2],d=l[3]):(u=l[0],d=l[1],s=l[2],c=l[3]);var h=l[4];return[s,c,u,d,h]}(e,t);if(u){var d=u[0],f=u[1],p=u[2],h=u[3],m=u[4],g=n(d,p),v=n(f,h);return g.concat([[0,m]],v)}return function(e,t){for(var n=e.length,r=t.length,i=Math.ceil((n+r)/2),a=i,l=2*i,s=new Array(l),c=new Array(l),u=0;u<l;u++)s[u]=-1,c[u]=-1;s[a+1]=0,c[a+1]=0;for(var d=n-r,f=d%2!=0,p=0,h=0,m=0,g=0,v=0;v<i;v++){for(var b=-v+p;b<=v-h;b+=2){for(var y=a+b,w=(S=b==-v||b!=v&&s[y-1]<s[y+1]?s[y+1]:s[y-1]+1)-b;S<n&&w<r&&e.charAt(S)==t.charAt(w);)S++,w++;if(s[y]=S,S>n)h+=2;else if(w>r)p+=2;else if(f&&(k=a+d-b)>=0&&k<l&&-1!=c[k]){var x=n-c[k];if(S>=x)return o(e,t,S,w)}}for(var E=-v+m;E<=v-g;E+=2){for(var k=a+E,O=(x=E==-v||E!=v&&c[k-1]<c[k+1]?c[k+1]:c[k-1]+1)-E;x<n&&O<r&&e.charAt(n-x-1)==t.charAt(r-O-1);)x++,O++;if(c[k]=x,x>n)g+=2;else if(O>r)m+=2;else if(!f&&(y=a+d-E)>=0&&y<l&&-1!=s[y]){var S=s[y];if(w=a+S-y,S>=(x=n-x))return o(e,t,S,w)}}}return[[-1,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-s),t=t.substring(0,t.length-s));return c&&d.unshift([0,c]),u&&d.push([0,u]),function e(t){t.push([0,""]);for(var n,o=0,a=0,l=0,s="",c="";o<t.length;)switch(t[o][0]){case 1:l++,c+=t[o][1],o++;break;case-1:a++,s+=t[o][1],o++;break;case 0:a+l>1?(0!==a&&0!==l&&(0!==(n=r(c,s))&&(o-a-l>0&&0==t[o-a-l-1][0]?t[o-a-l-1][1]+=c.substring(0,n):(t.splice(0,0,[0,c.substring(0,n)]),o++),c=c.substring(n),s=s.substring(n)),0!==(n=i(c,s))&&(t[o][1]=c.substring(c.length-n)+t[o][1],c=c.substring(0,c.length-n),s=s.substring(0,s.length-n))),0===a?t.splice(o-l,a+l,[1,c]):0===l?t.splice(o-a,a+l,[-1,s]):t.splice(o-a-l,a+l,[-1,s],[1,c]),o=o-a-l+(a?1:0)+(l?1:0)+1):0!==o&&0==t[o-1][0]?(t[o-1][1]+=t[o][1],t.splice(o,1)):o++,l=0,a=0,s="",c=""}""===t[t.length-1][1]&&t.pop();var u=!1;for(o=1;o<t.length-1;)0==t[o-1][0]&&0==t[o+1][0]&&(t[o][1].substring(t[o][1].length-t[o-1][1].length)==t[o-1][1]?(t[o][1]=t[o-1][1]+t[o][1].substring(0,t[o][1].length-t[o-1][1].length),t[o+1][1]=t[o-1][1]+t[o+1][1],t.splice(o-1,1),u=!0):t[o][1].substring(0,t[o+1][1].length)==t[o+1][1]&&(t[o-1][1]+=t[o+1][1],t[o][1]=t[o][1].substring(t[o+1][1].length)+t[o+1][1],t.splice(o+1,1),u=!0)),o++;u&&e(t)}(d),null!=a&&(d=function(e,t){var n=function(e,t){if(0===t)return[0,e];for(var n=0,o=0;o<e.length;o++){var r=e[o];if(-1===r[0]||0===r[0]){var i=n+r[1].length;if(t===i)return[o+1,e];if(t<i){e=e.slice();var a=t-n,l=[r[0],r[1].slice(0,a)],s=[r[0],r[1].slice(a)];return e.splice(o,1,l,s),[o+1,e]}n=i}}throw new Error("cursor_pos is out of bounds!")}(e,t),o=n[1],r=n[0],i=o[r],a=o[r+1];if(null==i)return e;if(0!==i[0])return e;if(null!=a&&i[1]+a[1]===a[1]+i[1])return o.splice(r,2,a,i),l(o,r,2);if(null!=a&&0===a[1].indexOf(i[1])){o.splice(r,2,[a[0],i[1]],[0,i[1]]);var s=a[1].slice(i[1].length);return s.length>0&&o.splice(r+2,0,[a[0],s]),l(o,r,3)}return e}(d,a)),d=function(e){for(var t=!1,n=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},o=2;o<e.length;o+=1)0===e[o-2][0]&&(r=e[o-2][1]).charCodeAt(r.length-1)>=55296&&r.charCodeAt(r.length-1)<=56319&&-1===e[o-1][0]&&n(e[o-1][1])&&1===e[o][0]&&n(e[o][1])&&(t=!0,e[o-1][1]=e[o-2][1].slice(-1)+e[o-1][1],e[o][1]=e[o-2][1].slice(-1)+e[o][1],e[o-2][1]=e[o-2][1].slice(0,-1));var r;if(!t)return e;var i=[];for(o=0;o<e.length;o+=1)e[o][1].length>0&&i.push(e[o]);return i}(d)}function o(e,t,o,r){var i=e.substring(0,o),a=t.substring(0,r),l=e.substring(o),s=t.substring(r),c=n(i,a),u=n(l,s);return c.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 r}function i(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-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 r}var a=n;function l(e,t,n){for(var o=t+n-1;o>=0&&o>=t-1;o--)if(o+1<e.length){var r=e[o],i=e[o+1];r[0]===i[1]&&e.splice(o,2,[r[0],r[1]+i[1]])}return e}a.INSERT=1,a.DELETE=-1,a.EQUAL=0,e.exports=a},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function o(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?o:r).supported=o,t.unsupported=r},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,o="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(o=!1)),a.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,l=new Array(a);i<a;i++)l[i]=r[i].fn;return l},a.prototype.emit=function(e,t,n,r,i,a){var l=o?o+e:e;if(!this._events[l])return!1;var s,c,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,r),!0;case 5:return u.fn.call(u.context,t,n,r,i),!0;case 6:return u.fn.call(u.context,t,n,r,i,a),!0}for(c=1,s=new Array(d-1);c<d;c++)s[c-1]=arguments[c];u.fn.apply(u.context,s)}else{var f,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];u[c].fn.apply(u[c].context,s)}}return!0},a.prototype.on=function(e,t,n){var r=new i(t,n||this),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.once=function(e,t,n){var r=new i(t,n||this,!0),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=o?o+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||(0==--this._eventsCount?this._events=new r:delete this._events[a]);else{for(var s=0,c=[],u=l.length;s<u;s++)(l[s].fn!==t||i&&!l[s].once||n&&l[s].context!==n)&&c.push(l[s]);c.length?this._events[a]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new r:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=o,a.EventEmitter=a,void 0!==e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var 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},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=y(n(3)),l=y(n(2)),s=y(n(0)),c=y(n(5)),u=y(n(10)),d=y(n(9)),f=n(36),p=n(37),h=y(n(13)),m=n(26),g=n(38),v=n(39),b=n(40);function y(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=(0,u.default)("quill:clipboard"),E="__ql-matcher",k=[[Node.TEXT_NODE,q],[Node.TEXT_NODE,L],["br",function(e,t){return T(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,N],[Node.ELEMENT_NODE,function(e,t){var n={},o=e.style||{};return o.fontStyle&&"italic"===A(e).fontStyle&&(n.italic=!0),o.fontWeight&&(A(e).fontWeight.startsWith("bold")||parseInt(A(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=C(t,n)),parseFloat(o.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!T(t,"\n"))return t;for(var o=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(s.default.query(r)||{}).blotName&&(o+=1),r=r.parentNode;return o<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:o}))}],["b",j.bind(j,"bold")],["i",j.bind(j,"italic")],["style",function(){return new l.default}]],O=[f.AlignAttribute,g.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=[f.AlignStyle,p.BackgroundStyle,m.ColorStyle,g.DirectionStyle,v.FontStyle,b.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),_=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.root.addEventListener("paste",o.onPaste.bind(o)),o.container=o.quill.addContainer("ql-clipboard"),o.container.setAttribute("contenteditable",!0),o.container.setAttribute("tabindex",-1),o.matchers=[],k.concat(o.options.matchers).forEach((function(e){var t=r(e,2),i=t[0],a=t[1];(n.matchVisual||a!==R)&&o.addMatcher(i,a)})),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var o=this.prepareMatching(),i=r(o,2),a=i[0],s=i[1],c=function e(t,n,o){return t.nodeType===t.TEXT_NODE?o.reduce((function(e,n){return n(t,e)}),new l.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(r,i){var a=e(i,n,o);return i.nodeType===t.ELEMENT_NODE&&(a=n.reduce((function(e,t){return t(i,e)}),a),a=(i[E]||[]).reduce((function(e,t){return t(i,e)}),a)),r.concat(a)}),new l.default):new l.default}(this.container,a,s);return T(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new l.default).retain(c.length()-1).delete(1))),x.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT);else{var o=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(o),n),this.quill.setSelection(e+o.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),o=(new l.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){o=o.concat(t.convert()).delete(n.length),t.quill.updateContents(o,c.default.sources.USER),t.quill.setSelection(o.length()-n.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(o){var i=r(o,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[E]=e[E]||[],e[E].push(l)}))}})),[t,n]}}]),t}(d.default);function C(e,t,n){return"object"===(void 0===t?"undefined":o(t))?Object.keys(t).reduce((function(e,n){return C(e,n,t[n])}),e):e.reduce((function(e,o){return o.attributes&&o.attributes[t]?e.push(o):e.insert(o.insert,(0,a.default)({},w({},t,n),o.attributes))}),new l.default)}function A(e){return e.nodeType!==Node.ELEMENT_NODE?{}:e["__ql-computed-style"]||(e["__ql-computed-style"]=window.getComputedStyle(e))}function T(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 P(e){if(0===e.childNodes.length)return!1;var t=A(e);return["block","list-item"].indexOf(t.display)>-1}function j(e,t,n){return C(n,e,!0)}function N(e,t){var n=s.default.Attributor.Attribute.keys(e),o=s.default.Attributor.Class.keys(e),r=s.default.Attributor.Style.keys(e),i={};return n.concat(o).concat(r).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=O[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=S[t])||n.attrName!==t&&n.keyName!==t||(n=S[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=C(t,i)),t}function I(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var o={},r=n.value(e);null!=r&&(o[n.blotName]=r,t=(new l.default).insert(o,n.formats(e)))}else"function"==typeof n.formats&&(t=C(t,n.blotName,n.formats(e)));return t}function L(e,t){return T(t,"\n")||(P(e)||t.length()>0&&e.nextSibling&&P(e.nextSibling))&&t.insert("\n"),t}function R(e,t){if(P(e)&&null!=e.nextElementSibling&&!T(t,"\n\n")){var n=e.offsetHeight+parseFloat(A(e).marginTop)+parseFloat(A(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function q(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!A(e.parentNode).whiteSpace.startsWith("pre")){var o=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,o.bind(o,!0)),(null==e.previousSibling&&P(e.parentNode)||null!=e.previousSibling&&P(e.previousSibling))&&(n=n.replace(/^\s+/,o.bind(o,!1))),(null==e.nextSibling&&P(e.parentNode)||null!=e.nextSibling&&P(e.nextSibling))&&(n=n.replace(/\s+$/,o.bind(o,!1)))}return t.insert(n)}_.DEFAULTS={matchers:[],matchVisual:!0},t.default=_,t.matchAttributor=N,t.matchBlot=I,t.matchNewline=L,t.matchSpacing=R,t.matchText=q},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(6);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default);c.blotName="bold",c.tagName=["STRONG","B"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=u(n(2)),a=u(n(0)),l=u(n(5)),s=u(n(10)),c=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=(0,s.default)("quill:toolbar"),p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r,i=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");m(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=o(e,1)[0];i.update(t)})),i):(r=f.error("Container required for toolbar",i.options),d(i,r))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(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]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void f.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void f.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var c=e.options[e.selectedIndex];s=!c.hasAttribute("selected")&&(c.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=o(u,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,s);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(s=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(d.index).delete(d.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,s)),l.default.sources.USER)}else t.quill.format(n,s,l.default.sources.USER);t.update(d)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=o(n,2),i=r[0],a=r[1];if("SELECT"===a.tagName){var l=void 0;if(null==e)l=null;else if(null==t[i])l=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var s=t[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),l=a.querySelector('option[value="'+s+'"]')}null==l?(a.value="",a.selectedIndex=-1):l.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var c=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",c)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),t}(c.default);function h(e,t,n){var o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("ql-"+t),null!=n&&(o.value=n),e.appendChild(o)}function m(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)h(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-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),o.appendChild(t)})),e.appendChild(o)}(n,t,o):h(n,t,o)}})),e.appendChild(n)}))}p.DEFAULTS={},p.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!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),o=parseInt(n.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",o+r,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.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,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=p,t.addControls=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),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, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,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)}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(28),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),(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, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"selectItem",value:function(e,n){(function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((o=i)&&o.__esModule?o:{default:o}).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=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.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"})),this.hide()}return o(e,[{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=t+"px",this.root.style.top=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=t+i+"px"),r.left<o.left&&(i=o.left-r.left,this.root.style.left=t+i+"px"),r.bottom>o.bottom){var a=r.bottom-r.top,l=e.bottom-e.top+a;this.root.style.top=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")}}]),e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=p(n(3)),l=p(n(8)),s=n(43),c=p(s),u=p(n(27)),d=n(15),f=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],b=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-snow"),o}return g(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default),this.tooltip=new y(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)}))}}]),t}(c.default);b.DEFAULTS=(0,a.default)(!0,{},c.default.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:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,n){h(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.preview=o.root.querySelector("a.ql-preview"),o}return g(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),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,l.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(l.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===l.default.sources.USER){var i=e.quill.scroll.descendant(u.default,t.index),a=o(i,2),s=a[0],c=a[1];if(null!=s){e.linkRange=new d.Range(t.index-c,s.length());var f=u.default.formats(s.domNode);return e.preview.textContent=f,e.preview.setAttribute("href",f),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);y.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(""),t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=R(n(29)),r=n(36),i=n(38),a=n(64),l=R(n(65)),s=R(n(66)),c=n(67),u=R(c),d=n(37),f=n(26),p=n(39),h=n(40),m=R(n(56)),g=R(n(68)),v=R(n(27)),b=R(n(69)),y=R(n(70)),w=R(n(71)),x=R(n(72)),E=R(n(73)),k=n(13),O=R(k),S=R(n(74)),_=R(n(75)),C=R(n(57)),A=R(n(41)),T=R(n(28)),P=R(n(59)),j=R(n(60)),N=R(n(61)),I=R(n(108)),L=R(n(62));function R(e){return e&&e.__esModule?e:{default:e}}o.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),o.default.register({"formats/align":r.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":O.default,"formats/header":s.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":k.Code,"formats/italic":g.default,"formats/link":v.default,"formats/script":b.default,"formats/strike":y.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":E.default,"formats/list/item":c.ListItem,"modules/formula":S.default,"modules/syntax":_.default,"modules/toolbar":C.default,"themes/bubble":I.default,"themes/snow":L.default,"ui/icons":A.default,"ui/picker":T.default,"ui/icon-picker":j.default,"ui/color-picker":P.default,"ui/tooltip":N.default},!0),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var o,r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(0),l=(o=a)&&o.__esModule?o:{default:o};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=new(function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var o=this.value(e)||0;n="+1"===n?o+1:o-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(l.default.Attributor.Class))("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(4);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((o=r)&&o.__esModule?o:{default:o}).default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(4);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((o=i)&&o.__esModule?o:{default:o}).default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var o=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=s(n(0)),a=s(n(4)),l=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,[{key:"format",value:function(e,n){e!==p.blotName||n?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);f.blotName="list-item",f.tagName="LI";var p=function(e){function t(e){c(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=function(t){if(t.target.parentNode===e){var o=n.statics.formats(e),r=i.default.find(t.target);"checked"===o?r.format("list","unchecked"):"unchecked"===o&&r.format("list","checked")}};return e.addEventListener("touchstart",o),e.addEventListener("mousedown",o),n}return d(t,e),o(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",o=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||o.setAttribute("data-checked","checked"===e),o}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),o(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof f)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var o=null==n?this.length():n.offset(this),i=this.split(o);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[f],t.ListItem=f,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(56);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((o=r)&&o.__esModule?o:{default:o}).default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(6);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0}(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((o=i)&&o.__esModule?o:{default:o}).default);s.blotName="script",s.tagName=["SUB","SUP"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(6);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((o=r)&&o.__esModule?o:{default:o}).default);l.blotName="strike",l.tagName="S",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(6);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((o=r)&&o.__esModule?o:{default:o}).default);l.blotName="underline",l.tagName="U",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(0),l=(o=a)&&o.__esModule?o:{default:o},s=n(27);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=["alt","height","width"],f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.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(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(l.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(4),l=n(27),s=(o=l)&&o.__esModule?o:{default:o};function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=["height","width"],f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var o=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=l(n(35)),i=l(n(5)),a=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,null,[{key:"create",value:function(e){var n=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0}(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,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")}}]),t}(r.default);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var f=function(e){function t(){s(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return u(t,e),o(t,null,[{key:"register",value:function(){i.default.register(d,!0)}}]),t}(a.default);t.FormulaBlot=d,t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var o=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=l(n(0)),i=l(n(5)),a=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(l(n(13)).default);d.className="ql-syntax";var f=new r.default.Attributor.Class("token","hljs",{scope:r.default.Scope.INLINE}),p=function(e){function t(e,n){s(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof o.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return o.quill.on(i.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){o.highlight(),r=null}),o.options.interval)})),o.highlight(),o}return u(t,e),o(t,null,[{key:"register",value:function(){i.default.register(f,!0),i.default.register(d,!0)}}]),o(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(i.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(i.default.sources.SILENT),null!=t&&this.quill.setSelection(t,i.default.sources.SILENT)}}}]),t}(a.default);p.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=d,t.CodeToken=f,t.default=p},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<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"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <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"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<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> <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></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<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></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <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></path> </svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <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> <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></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <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> <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> <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></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <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> <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></path> </svg>'},function(e,t){e.exports='<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></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var o=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=d(n(3)),a=d(n(8)),l=n(43),s=d(l),c=n(15),u=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-bubble"),o}return h(t,e),r(t,[{key:"extendToolbar",value:function(e){this.tooltip=new v(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}(s.default);g.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var v=function(e){function t(e,n){f(this,t);var o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,r){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===a.default.sources.USER){o.show(),o.root.style.left="0px",o.root.style.width="",o.root.style.width=o.root.offsetWidth+"px";var i=o.quill.getLines(t.index,t.length);if(1===i.length)o.position(o.quill.getBounds(t));else{var l=i[i.length-1],s=o.quill.getIndex(l),u=Math.min(l.length()-1,t.index+t.length-s),d=o.quill.getBounds(new c.Range(s,u));o.position(d)}}else document.activeElement!==o.textbox&&o.quill.hasFocus()&&o.hide()})),o}return h(t,e),r(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);v.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(""),t.BubbleTooltip=v,t.default=g},function(e,t,n){e.exports=n(63)}]).default},e.exports=n()}).call(this,n(254).Buffer)},1590:function(e,t,n){"use strict";n(22),n(19),n(90),n(44),n(41),n(79),n(29),n(8),n(60),n(54),n(23),n(24);var o,r=n(77);!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 s(e){return!!e.targetTouches}function c(e,t){return s(e)?function(e,t){return 1===e.targetTouches.length?c(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?c(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}();n(32);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 g=(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),v=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=c(e);t&&(s(e)&&(a.lastTargetTouchFallback=e.targetTouches[0]),a._mouseClientOffset=t),a.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(e){if(l(e)){var t=e.type===g.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,s=a.options.enableHoverOutsideTarget,u=c(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 g=p[m];for(h.push(g);g;)g=g.parentElement,-1===h.indexOf(g)&&h.push(g)}var v=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(s)for(var b in a.targetNodes)if(a.targetNodes[b]&&a.targetNodes[b].contains(d)&&-1===v.indexOf(b)){v.unshift(b);break}v.reverse(),a.actions.hover(v,{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=g[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=g[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 g.mouse.move:r={x:o.clientX,y:o.clientY};break;case g.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 v(e,t,n)}},1591:function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));n(12),n(13),n(8),n(14),n(10),n(9),n(11),n(16),n(15),n(20),n(18),n(19),n(22),n(37),n(40),n(86),n(39),n(58),n(36);var o=n(455),r=n(0),i=n(1643),a=n(77),l=n(581),s=(n(79),n(128),n(1521));function c(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){c(this,e),f(this,"isDisposed",!1),f(this,"action",void 0),this.action=Object(s.c)(t)?t:s.g}return d(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&Object(s.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:s.g});var h=function(){function e(){c(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(){c(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}(),g=n(354),v=n.n(g);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 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 E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(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=_(e);if(t){var r=_(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return O(this,n)}}function O(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 S(e)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(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,c=e.createMonitor,u=e.createConnector,d=e.registerHandler,f=e.containerDisplayName,g=e.getType,b=e.collect,w=e.options.arePropsEqual,O=void 0===w?i.a:w,_=t,A=t.displayName||t.name||"Component",T=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&&E(e,t)}(T,e);var t,f,v,w=k(T);function T(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,T),C(S(t=w.call(this,e)),"decoratedRef",Object(r.createRef)()),C(S(t),"handlerId",void 0),C(S(t),"manager",void 0),C(S(t),"handlerMonitor",void 0),C(S(t),"handlerConnector",void 0),C(S(t),"handler",void 0),C(S(t),"disposable",void 0),C(S(t),"currentType",void 0),C(S(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=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!O(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){O(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(g(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?b(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)(_,Object.assign({},e.props,e.getCurrentState(),{ref:Object(s.e)(_)?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=c(e),this.handlerConnector=u(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&x(t.prototype,f),v&&x(t,v),T}(r.Component);return C(T,"DecoratedComponent",t),C(T,"displayName","".concat(f,"(").concat(A,")")),v()(T,t)}},1592:function(e,t,n){"use strict";n(10),n(8),n(54),n(9),n(11),n(46),n(52),n(154),n(41),n(36),n(19),n(12),n(13),n(14),n(16),n(15),n(20),n(18),n(27),n(28),n(25),n(22),n(32),n(29),n(47),n(23),n(24),n(49),n(48),n(61),n(62),n(63),n(64),n(37),n(39),n(40),n(60);var o=n(0),r=n.n(o),i=n(347),a=n(6),l=n(3),s=n.n(l),c=n(1),u=n(4),d=n(42),f=n(1536),p=n(1529),h=n(1556),m=(n(1653),n(1523),n(5)),g=n(1538),v=n(447);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 y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new C(r||[]);return o(a,"_invoke",{value:k(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(A([])));v&&v!==t&&n.call(v,i)&&(m=v);var w=h.prototype=f.prototype=Object.create(m);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==b(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function k(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return T()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=O(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function O(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=h,o(w,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(E.prototype),s(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new E(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),s(w,l,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;_(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function w(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}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 E(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){k(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 k(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==b(e)||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(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 S(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 S(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}var _=Object(o.lazy)((function(){return Promise.resolve().then(n.bind(null,1694))})),C={text:s.a.string.isRequired,outlinePath:s.a.string,isAdding:s.a.bool,isExpanded:s.a.bool,setIsExpanded:s.a.func,isOutlineRenaming:s.a.bool,setOutlineRenaming:s.a.func,isOutlineChangingDest:s.a.bool,setOutlineChangingDest:s.a.func,onCancel:s.a.func,textColor:s.a.string,children:s.a.array,setMultiSelected:s.a.func,moveOutlineInward:s.a.func,moveOutlineBeforeTarget:s.a.func,moveOutlineAfterTarget:s.a.func},A=function(e){var t=e.text,n=e.outlinePath,l=e.isAdding,s=e.isExpanded,b=e.setIsExpanded,x=e.isOutlineRenaming,k=e.setOutlineRenaming,S=e.isOutlineChangingDest,C=e.setOutlineChangingDest,A=e.onCancel,T=e.textColor,P=e.children,j=e.setMultiSelected,N=e.moveOutlineInward,I=e.moveOutlineBeforeTarget,L=e.moveOutlineAfterTarget,R=Object(o.useContext)(h.a),q=R.currentDestPage,M=R.currentDestText,D=R.editingOutlines,z=R.setEditingOutlines,F=R.isMultiSelectMode,B=R.isOutlineEditable,H=R.addNewOutline,U=R.renameOutline,G=R.updateOutlineDest,W=R.selectedOutlines,V=R.updateOutlines,K=R.removeOutlines,Y=Object(a.e)((function(e){return u.a.getFeatureFlags(e)}),a.c).customizableUI,$=O(Object(i.a)(),1)[0],Z=O(Object(o.useState)(!1),2),X=Z[0],Q=Z[1],J=O(Object(o.useState)(t),2),ee=J[0],te=J[1],ne=Object(o.useRef)(),oe=(null==W?void 0:W.includes(n))||!1,re=function(){H(""===ee.trim()?"":ee)},ie=function(){k(!1),U(n,ee)},ae=function(){V(),x&&(k(!1),te(t)),S&&C(!1),l&&A()},le=function(){return!ee||t===ee};Object(o.useEffect)((function(){ee!==t&&te(t)}),[t]),Object(o.useEffect)((function(){(l||x)&&(ne.current.focus(),ne.current.select()),Q(!l&&!x&&!S)}),[x,S]),Object(o.useEffect)((function(){var e=E({},D),t=x||S;t?e[n]=t:delete e[n],z(E({},e))}),[x,S]);var se={color:T||"auto"},ce=function(){var e,t=(e=y().mark((function e(t){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next=e.t0===p.b.RENAME?3:e.t0===p.b.SETDEST?5:e.t0===p.b.DELETE?8:e.t0===p.b.MOVE_UP?10:e.t0===p.b.MOVE_DOWN?14:e.t0===p.b.MOVE_LEFT?18:e.t0===p.b.MOVE_RIGHT?22:26;break;case 3:return k(!0),e.abrupt("break",27);case 5:return C(!0),c.a.setToolMode("OutlineDestinationCreateTool"),e.abrupt("break",27);case 8:return K([n]),e.abrupt("break",27);case 10:return e.next=12,v.a.moveOutlineUp(n);case 12:return V(),e.abrupt("break",27);case 14:return e.next=16,v.a.moveOutlineDown(n);case 16:return V(),e.abrupt("break",27);case 18:return e.next=20,v.a.moveOutlineOutward(n);case 20:return V(),e.abrupt("break",27);case 22:return e.next=24,v.a.moveOutlineInward(n);case 24:return V(),e.abrupt("break",27);case 26:return e.abrupt("break",27);case 27:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){w(i,o,r,a,l,"next",e)}function l(e){w(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:ce},fe={flyoutToggleElement:"bookmarkOutlineFlyout",moreOptionsDataElement:"outline-more-button-".concat(n)},pe={id:"outline-checkbox-".concat(n),checked:oe,onChange:function(e){j(n,e.target.checked)},ariaLabel:t,disabled:!F};return r.a.createElement("div",{className:"bookmark-outline-label-row"},l&&r.a.createElement("div",{className:"bookmark-outline-label"},$("component.newOutlineTitle")),x&&r.a.createElement("div",{className:"bookmark-outline-label"},$("component.outlineTitle")),X&&r.a.createElement(g.a,{key:n,labelHeader:t,textColor:T,enableMoreOptionsContextMenuFlyout:B,onDoubleClick:function(){B&&k(!0)},checkboxOptions:pe,contentMenuFlyoutOptions:de,contextMenuMoreButtonOptions:fe,expanded:s,setIsExpandedHandler:b},P.map((function(e){return function(e){return r.a.createElement(_,{key:v.a.getOutlineId(e),outline:e,setMultiSelected:j,moveOutlineInward:N,moveOutlineBeforeTarget:I,moveOutlineAfterTarget:L})}(e)}))),S&&r.a.createElement("div",{className:"bookmark-outline-text outline-text",style:se},t),(l||x)&&r.a.createElement("input",{type:"text",name:"outline",ref:ne,className:"bookmark-outline-input",placeholder:Y?"":$("component.outlineTitle"),"aria-label":$("component.newOutlineTitle"),value:ee,onKeyDown:function(e){"Enter"===e.key&&(e.stopPropagation(),l&&re(),x&&!le()&&ie()),"Escape"===e.key&&ae()},onChange:function(e){return te(e.target.value)}}),(l||S)&&r.a.createElement("div",{className:"outline-destination"},$("component.destination"),": ",$("component.bookmarkPage")," ",q,",",r.a.createElement("span",{style:{fontStyle:"italic"}}," “",M,"”")),(l||x||S)&&r.a.createElement("div",{className:"bookmark-outline-editing-controls"},r.a.createElement(f.a,{className:"bookmark-outline-cancel-button",label:$("action.cancel"),ariaLabel:"".concat($("action.cancel")," ").concat($("component.outlineTitle")),onClick:ae}),l&&r.a.createElement(d.a,{className:"bookmark-outline-save-button",label:$("action.add"),isSubmitType:!0,onClick:re}),x&&r.a.createElement(d.a,{className:"bookmark-outline-save-button",label:$("action.save"),isSubmitType:!0,disabled:le(),onClick:ie}),S&&r.a.createElement(d.a,{className:"bookmark-outline-save-button",label:$("action.save"),isSubmitType:!0,onClick:function(){C(!1),G(n)}})))};A.propTypes=C;var T=A;t.a=T},1595:function(e,t,n){var o=n(30),r=n(1596);"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||{}},1596:function(e,t,n){(t=e.exports=n(31)(!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-right:var(--padding-medium);margin-left: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"}},1599:function(e,t,n){var o=n(30),r=n(1600);"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||{}},1600:function(e,t,n){(e.exports=n(31)(!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{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top: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:left;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-left: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-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right: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-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right: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:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right: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:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;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-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left: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:left;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-left:8px;padding-right: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;top: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{right: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:left;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;right:0;top: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-right: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-right: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-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left: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-right:0;content:"Save";padding-right: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}',""])},1601:function(e,t,n){var o=n(30),r=n(1602);"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||{}},1602:function(e,t,n){(t=e.exports=n(31)(!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{left: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;bottom:2px;right: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-left:0!important;list-style:none;word-wrap:break-word;border-radius:4px}.mention__suggestions__item{background-color:var(--component-background);white-space:nowrap;padding-left: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"}},1603:function(e,t,n){var o=n(30),r=n(1604);"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||{}},1604:function(e,t,n){(t=e.exports=n(31)(!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);top:40px;width:-moz-max-content;width:max-content}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.NotePopup .options{right: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{top:30px}.NotePopup .options .option{display:flex;flex-direction:column;justify-content:center;height:28px;padding-left:8px;padding-right: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"}},1605:function(e,t,n){var o=n(30),r=n(1606);"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||{}},1606:function(e,t,n){(t=e.exports=n(31)(!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-right: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-right:13px}.NoteHeader .type-icon-container .unread-notification{position:absolute;width:13px;height:13px;right:-2px;top:-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-left: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-left: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-right:0!important;margin-left:0!important;min-width:28px!important}.NoteHeader .note-popup-toggle-trigger .Icon{width:24px!important;height:24px!important}.parent{padding-left:12px;padding-top:12px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1607:function(e,t,n){var o=n(30),r=n(1608);"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||{}},1608:function(e,t,n){(e.exports=n(31)(!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;bottom:-15px;left: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-left:8px;margin-right: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}",""])},1609:function(e,t,n){var o=n(30),r=n(1610);"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||{}},1610:function(e,t,n){(t=e.exports=n(31)(!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-left:52px;padding-right: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-left:52px;padding-right: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-left: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-right: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-right: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-left:0}.NoteContent .contents{white-space:pre-wrap;color:var(--text-color);margin-right: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-left: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"}},1611:function(e,t,n){var o=n(30),r=n(1612);"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||{}},1612:function(e,t,n){(t=e.exports=n(31)(!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{left: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;right:10px;bottom: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"}},1613:function(e,t,n){var o=n(30),r=n(1614);"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||{}},1614:function(e,t,n){(t=e.exports=n(31)(!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;top:0;left:0;margin:auto;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:7px solid rgba(30,120,235,.5);transform:translateX(-100%) translateY(-50%) translateY(1px)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1615:function(e,t,n){var o=n(30),r=n(1616);"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||{}},1616:function(e,t,n){(t=e.exports=n(31)(!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:left;border-radius:4px;box-shadow:0 0 3px 0 var(--note-box-shadow);margin-bottom:8px;margin-left: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%;top:0;left: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-left:52px;padding-bottom:12px}.Note .reply{padding-left:12px;padding-bottom:24px;border-left:1px solid var(--reply-divider)}.Note .reply:last-of-type{padding-bottom:0}.Note .group-section{margin-left:52px;padding-bottom:12px;display:flex;flex-direction:column;grid-row-gap:4px;row-gap:4px;padding-right: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:left;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"}},1617:function(e,t,n){"use strict";n(15),n(8),n(54),n(22),n(12),n(13),n(14),n(10),n(9),n(11),n(61),n(62),n(63),n(64),n(37),n(39),n(23),n(24),n(40),n(60),n(16);var o=n(0),r=n.n(o),i=n(6),a=n(4);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 s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new C(r||[]);return o(a,"_invoke",{value:k(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var p={};function h(){}function m(){}function g(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(A([])));y&&y!==t&&n.call(y,i)&&(v=y);var w=g.prototype=h.prototype=Object.create(v);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,s){var c=f(e[r],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==l(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function k(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return T()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=O(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=f(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function O(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var r=f(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return m.prototype=g,o(w,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:m,configurable:!0}),m.displayName=u(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(E.prototype),u(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new E(d(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),u(w,c,"Generator"),u(w,i,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;_(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function c(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).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)})),l=function(){var e,r=(e=s().mark((function e(r){var i,a,l;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(i=r.target.files[0])){e.next=9;break}if(a=i,!o){e.next=8;break}return e.next=6,o(i);case 6:l=e.sent,a={url:l,name:i.name,size:i.size,type:i.type};case 8:n(t,[a]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){c(i,o,r,a,l,"next",e)}function l(e){c(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:l,onClick:function(e){e.target.value=""}})}},1618:function(e,t,n){var o=n(30),r=n(1619);"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||{}},1619:function(e,t,n){(e.exports=n(31)(!1)).push([e.i,".SignaturePanel .spinner{margin:10px;border:5px solid #ddd;border-top-color:#aaa;border-radius:50%;width:40px;height:40px;animation:spin 1.2s ease infinite}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}",""])},1620:function(e,t,n){var o=n(30),r=n(1621);"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||{}},1621:function(e,t,n){(e.exports=n(31)(!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-left: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:left;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-left:4px;font-weight:700;display:flex;align-items:center;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-left: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-right:5px}.signature-widget-info .title.focus-visible,.signature-widget-info .title:focus-visible{outline:var(--focus-visible-outline)}.signature-widget-info .header{margin-left:32px}.signature-widget-info .header ul{padding-left: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-left:0}.signature-widget-info .header-with-arrow ul{margin-left:var(--arrow-width)}.signature-widget-info .header-with-arrow ul li{margin-left: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:left}",""])},1622:function(e,t,n){var o=n(30),r=n(1623);"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||{}},1623:function(e,t,n){(t=e.exports=n(31)(!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{top:0;width:100%;height:100%}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .SignaturePanel{top: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"}},1624:function(e,t,n){var o=n(30),r=n(1625);"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||{}},1625:function(e,t,n){(e.exports=n(31)(!1)).push([e.i,".TextButton{color:var(--secondary-button-text);width:-moz-fit-content;width:fit-content;padding-left:8px;padding-right: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)}",""])},1627:function(e,t,n){"use strict";n(10),n(8),n(145),n(9),n(11),n(130),n(23),n(24),n(29),n(90),n(101),n(97),n(41),n(19),n(12),n(13),n(14),n(16),n(15),n(20),n(18),n(27),n(28),n(25),n(22),n(32),n(47),n(49),n(48),n(54),n(61),n(62),n(63),n(64),n(37),n(39),n(40),n(60);var o=n(0),r=n.n(o),i=n(17),a=n.n(i),l=n(3),s=n.n(l),c=n(6),u=n(347),d=n(1519),f=(n(1632),n(100),n(111),n(46),n(52),n(112),n(79),n(154),n(448),n(1639)),p=n(105),h=n.n(p),m=n(297),g=n.n(m),v=n(227),b=n.n(v),y=n(1633),w=n.n(y),x=n(1541),E=(n(36),n(58),n(44),n(1)),k=n(4),O=n(5),S=n(2),_=(n(1603),n(94));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 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 T(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){P(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 P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==C(e)||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return N(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 N(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 N(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}var I=function(e,t,n){return{icon:t,label:"action.".concat(e.toLowerCase()),title:"action.".concat(e.toLowerCase()),option:e,dataElement:n}},L=[I("Edit","","notePopupEdit"),I("Delete","","notePopupDelete")],R={handleEdit:s.a.func,handleDelete:s.a.func,isEditable:s.a.bool,isDeletable:s.a.bool,noteId:s.a.string};function q(){}function M(e){var t=e.handleEdit,n=void 0===t?q:t,o=e.handleDelete,i=void 0===o?q:o,l=e.isEditable,s=e.isDeletable,d=e.isReply,f=e.noteId,p=Object(c.e)((function(e){var t;return null===(t=k.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI})),h="".concat(O.a.NOTE_POPUP_FLYOUT,"-").concat(f),m=j(Object(u.a)(),1)[0];if(!l&&!s)return null;var g=a()("overflow note-popup-toggle-trigger"),v=a()("NotePopup options note-popup-options",{"options-reply":d,"modular-ui":p});return r.a.createElement("div",{className:v},r.a.createElement(_.a,{dataElement:"notePopup-".concat(f),className:g,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:s}))}var D=function(e){var t=e.flyoutSelector,n=e.handleClick,r=e.isEditable,i=e.isDeletable,a=Object(c.d)(),l=Object(c.e)((function(e){return k.a.getFlyout(e,t)})),s=j(Object(u.a)(),1)[0];return Object(o.useLayoutEffect)((function(){var e=L;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 T(T({},e),{},{label:s(e.label),title:s(e.title),onClick:function(){return n(e.option)}})}))};a(l?S.a.updateFlyout(o.dataElement,o):S.a.addFlyout(o))}),[r,i]),null};D.propTypes={flyoutSelector:s.a.string,handleClick:s.a.func,isEditable:s.a.bool,isDeletable:s.a.bool},M.propTypes=R;var z=M;function F(){return(F=Object.assign?Object.assign.bind():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 B(e){return function(e){if(Array.isArray(e))return G(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)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 G(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)?G(e,t):void 0}}function G(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}var W=function(e){var t=H(Object(c.e)((function(e){return[k.a.getActiveDocumentViewerKey(e)]})),1)[0],n=e.annotation,o=e.setIsEditing,i=e.noteIndex,a=H(r.a.useState(E.a.canModify(n)),2),l=a[0],s=a[1],u=H(r.a.useState(E.a.canModifyContents(n)),2),d=u[0],f=u[1];r.a.useEffect((function(){function e(){s(E.a.canModify(n,t)),f(E.a.canModifyContents(n,t))}return e(),E.a.addEventListener("updateAnnotationPermission",e,void 0,t),function(){return E.a.removeEventListener("updateAnnotationPermission",e,t)}}),[n,t]);var p={handleEdit:r.a.useCallback((function(){n instanceof window.Core.Annotations.FreeTextAnnotation&&E.a.getAnnotationManager(t).isFreeTextEditingEnabled()?E.a.getAnnotationManager(t).trigger("annotationDoubleClicked",n):o(!0,i)}),[n,o,i]),handleDelete:r.a.useCallback((function(){E.a.deleteAnnotations([n].concat(B(n.getGroupedChildren())),void 0,t)}),[n]),isEditable:d,isDeletable:l&&!(null!=n&&n.NoDelete),noteId:n?n.Id:""};return r.a.createElement(z,F({},e,p))},V=n(1570);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Y(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 Y(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 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}var $={annotation:s.a.object.isRequired,handleStateChange:s.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()),s=t.Id;return r.a.createElement(r.a.Fragment,null,r.a.createElement(_.a,{dataElement:"noteState-".concat(s),title:i("option.notesOrder.status"),img:l,toggleElement:"".concat(O.a.NOTE_STATE_FLYOUT,"-").concat(s)}),r.a.createElement(V.a,{noteId:s,handleStateChange:o}))}Z.propTypes=$;var X=Z,Q=n(1567),J=n(173);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)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var te={annotation:s.a.object};function ne(e){var t=Object(c.e)((function(e){return k.a.getActiveDocumentViewerKey(e)})),n=Object(c.e)((function(e){return k.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=E.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(43),ie=n(117);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return le(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 le(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 le(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}var se={annotationId:s.a.string,ariaLabel:s.a.string,pendingEditTextMap:s.a.object,pendingReplyMap:s.a.object,pendingAttachmentMap:s.a.object},ce=function(e){var t=e.annotationId,n=e.ariaLabel,i=e.pendingEditTextMap,a=e.pendingReplyMap,l=e.pendingAttachmentMap,s=Object(u.a)().t,c=ae(Object(o.useState)(!1),2),d=c[0],f=c[1],p=ae(Object(o.useState)(!1),2),h=p[0],m=p[1],g=ae(Object(o.useState)(!1),2),v=g[0],b=g[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),b((null===(o=l[t])||void 0===o?void 0:o.length)>0)}),[i,a,l]),d||h||v?r.a.createElement("div",{"data-element":"unpostedCommentIndicator"},r.a.createElement(ie.a,{content:s("message.unpostedComment")},r.a.createElement("div",null,r.a.createElement(re.a,{className:"type-icon",glyph:"icon-unposted-comment",ariaLabel:n})))):null};ce.propTypes=se;var ue=ce,de={annotationId:s.a.string,ariaLabel:s.a.string},fe=function(e){var t=e.annotationId,n=e.ariaLabel,o=Object(c.e)((function(e){return k.a.isElementDisabled(e,"unpostedCommentIndicator")})),i=r.a.useContext(d.a),a=i.pendingEditTextMap,l=i.pendingReplyMap,s=i.pendingAttachmentMap;return o?null:r.a.createElement(ue,{annotationId:t,ariaLabel:n,pendingEditTextMap:a,pendingReplyMap:l,pendingAttachmentMap:s})};fe.propTypes=de;var pe=fe,he=n(155),me=n(42),ge=n(226),ve=n(169),be=n(199),ye=n(175),we=n(225),xe=n(26),Ee=n(106);n(1605);function ke(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oe(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 Oe(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 Oe(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}var Se={icon:s.a.string,iconColor:s.a.string,color:s.a.string,fillColor:s.a.string,annotation:s.a.object,language:s.a.string,noteDateFormat:s.a.string,isSelected:s.a.bool,setIsEditing:s.a.func,notesShowLastUpdatedDate:s.a.bool,isUnread:s.a.bool,renderAuthorName:s.a.func,isNoteStateDisabled:s.a.bool,isEditing:s.a.bool,noteIndex:s.a.number,sortStrategy:s.a.string,activeTheme:s.a.string,isMultiSelected:s.a.bool,isMultiSelectMode:s.a.bool,handleMultiSelect:s.a.func,isGroupMember:s.a.bool,showAnnotationNumbering:s.a.bool,isTrackedChange:s.a.bool};function _e(e){var t,n,o,i=e.icon,l=e.iconColor,s=e.annotation,c=e.language,d=e.noteDateFormat,f=e.isSelected,p=e.setIsEditing,m=e.notesShowLastUpdatedDate,g=e.isReply,v=e.isUnread,b=e.renderAuthorName,y=e.isNoteStateDisabled,w=e.isEditing,x=e.noteIndex,k=e.sortStrategy,O=e.activeTheme,S=e.isMultiSelected,_=e.isMultiSelectMode,C=e.handleMultiSelect,A=e.isGroupMember,T=e.showAnnotationNumbering,P=e.timezone,j=e.isTrackedChange,N=ke(Object(u.a)(),1)[0],I=k===ye.a.MODIFIED_DATE||m&&k!==ye.a.CREATED_DATE?Object(ge.a)(s):s.DateCreated;if(P&&I){var L=I.toLocaleString("en-US",{timeZone:P});o=new Date(L)}else o=I;var R=o?h()(o).locale(c).format(d):N("option.notesPanel.noteContent.noDate"),q=s.getReplies().length,M=null===(t=s[l])||void 0===t||null===(n=t.toHexString)||void 0===n?void 0:n.call(t);O===we.a.DARK&&M&&Object(be.c)(M)?M=Ee.b.white:O===we.a.LIGHT&&M&&Object(be.d)(M)&&(M=Ee.b.black);var D=Object(ve.a)(s.FillColor),z=s.getAssociatedNumber(),F="#".concat(z," - "),B=a()("author-and-date",{isReply:g}),H=a()("NoteHeader",{parent:!g&&!A});return r.a.createElement("div",{className:H},!g&&r.a.createElement("div",{className:"type-icon-container"},v&&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:B},r.a.createElement("div",{className:"author-and-overflow"},r.a.createElement("div",{className:"author-and-time"},r.a.createElement("div",{className:"author"},T&&void 0!==z&&r.a.createElement("span",{className:"annotation-number"},F),b(s)),r.a.createElement("div",{className:"date-and-num-replies"},r.a.createElement("div",{className:"date-and-time"},R,A&&" (Page ".concat(s.PageNumber,")")),q>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"},q)))),r.a.createElement("div",{className:"state-and-overflow"},_&&!A&&!g&&r.a.createElement(he.a,{id:"note-multi-select-toggle_".concat(s.Id),"aria-label":"".concat(b(s)," ").concat(N("option.notesPanel.toggleMultiSelect")),checked:S,onClick:function(e){e.preventDefault(),e.stopPropagation(),C(!S)}}),r.a.createElement(pe,{annotationId:s.Id,ariaLabel:"Unposted Comment, ".concat(b(s),", ").concat(R)}),!y&&!g&&!_&&!A&&!j&&r.a.createElement(oe,{annotation:s,isSelected:f}),!w&&f&&!_&&!A&&!j&&r.a.createElement(W,{noteIndex:x,annotation:s,setIsEditing:p,isReply:g}),f&&j&&!_&&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=s.getCustomData(xe.v),void E.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=s.getCustomData(xe.v),void E.a.getOfficeEditor().rejectTrackedChange(e);var e},iconClassName:"tracked-change-icon"}))))))}_e.propTypes=Se;var Ce=_e,Ae=n(1568);function Te(){return(Te=Object.assign?Object.assign.bind():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 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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return je(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 je(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 je(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}var Ne=function(e){var t=Pe(Object(c.e)((function(e){return[k.a.getNotesPanelWidth(e)]}),c.c),1)[0];return r.a.createElement(Ae.a,Te({},e,{panelWidth:t}))},Ie=(n(355),n(356),n(165));n(224);function Le(e){return(Le="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(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Re=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new S(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&n.call(v,i)&&(m=v);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==Le(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return C()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new w(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function qe(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).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){qe(i,o,r,a,l,"next",e)}function l(e){qe(i,o,r,a,l,"throw",e)}a(void 0)}))}}var De="ic-file-pdf",ze="ic-file-img",Fe="ic-file-cad",Be="ic-file-doc",He="ic-file-ppt",Ue="ic-file-xls",Ge="ic-file-etc",We=window.Core.Annotations.FileAttachmentUtils;function Ve(e){return Ke.apply(this,arguments)}function Ke(){return(Ke=Me(Re().mark((function e(t){return Re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",We.decompressWithFlateDecode(t.content,t.type));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ye(e){return $e.apply(this,arguments)}function $e(){return($e=Me(Re().mark((function e(t){var n,o=arguments;return Re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:[],e.next=3,t.setAttachments(n);case 3:case"end":return e.stop()}}),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 Fe;case"doc":case"docx":return Be;case"ppt":case"pptx":return He;case"xls":case"xlsx":return Ue;default:return Ge}}var Qe=n(1635),Je=n.n(Qe);function et(e){return(et="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 tt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */tt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new S(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&n.call(v,i)&&(m=v);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==et(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return C()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new w(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function nt(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).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=tt().mark((function e(t){var n,o,r,i;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ot(t);case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",{svg:t});case 5: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.abrupt("return",{svg:i,isDirty:o.length>0});case 10:case"end":return e.stop()}}),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(1607);function at(e){return(at="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 lt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */lt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new S(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&n.call(v,i)&&(m=v);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==at(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return C()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new w(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function st(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function ct(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){st(i,o,r,a,l,"next",e)}function l(e){st(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dt(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 dt(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 dt(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}var ft=function(e){var t=e.file,n=ut(Object(u.a)(),1)[0],i=ut(Object(o.useState)(),2),l=i[0],s=i[1],c=ut(Object(o.useState)(!1),2),d=c[0],f=c[1];return Object(o.useEffect)((function(){(function(){var e=ct(lt().mark((function e(){var n,o,r,i,a;return lt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f(!1),n=t,!(o=!(t instanceof File||t.url))){e.next=7;break}return e.next=6,Ve(t);case 6:n=e.sent;case 7:if(!(t instanceof File||o)){e.next=19;break}if(!rt(t)){e.next=18;break}return e.next=11,it(n);case 11:r=e.sent,i=r.svg,a=r.isDirty,s(URL.createObjectURL(i)),f(a),e.next=19;break;case 18:s(URL.createObjectURL(n));case 19:case"end":return e.stop()}}),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(c.e)((function(e){return[k.a.getTabManager(e),k.a.isReplyAttachmentPreviewEnabled(e)]})),2),a=i[0],l=i[1],s=ut(Object(u.a)(),1)[0],d=function(){var e=ct(lt().mark((function e(t,n){var o;return lt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),t.stopPropagation(),a){e.next=4;break}return e.abrupt("return",console.warn("Can't open attachment in non-multi-tab mode"));case 4:if(!(n instanceof File)){e.next=8;break}o=n,e.next=15;break;case 8:if(!n.url){e.next=12;break}o=n.url,e.next=15;break;case 12:return e.next=14,Ve(n);case 14:o=e.sent;case 15:o&&a.addTab(o,{filename:n.name,setActive:!0,saveCurrentActiveTabState:!0});case 16:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),f=function(){var e=ct(lt().mark((function e(t,n){var o;return lt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),t.stopPropagation(),!n.url){e.next=6;break}e.t0=n.url,e.next=9;break;case 6:return e.next=8,Ve(n);case 8:e.t0=e.sent;case 9:o=e.t0,Object(Ie.saveAs)(o,n.name);case 11:case"end":return e.stop()}}),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(s("action.delete")," ").concat(s("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(s("action.download")," ").concat(s("option.type.fileattachment")),img:"icon-download",onClick:function(t){return f(t,e)}})))})))},ht=n(350),mt=n(1537),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=ht.a.getFormattedTextFromDeltas(t.getContents()),i=ht.a.extractMentionDataFromStr(r).plainTextValue,a=[],l=0;l<o.length;l++){var s=n[o[l]],c=gt(s);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:c})}}t.setContents(a),t.setSelection(i.length,0)},bt=n(38),yt=n(50),wt=n(223),xt=n(75);n(1609);function Et(e){return(Et="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 kt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */kt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new S(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&n.call(v,i)&&(m=v);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==Et(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return C()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new w(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Ot(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function St(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _t(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 _t(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 _t(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}h.a.extend(g.a);var Ct={annotation:s.a.object.isRequired,isEditing:s.a.bool,setIsEditing:s.a.func,noteIndex:s.a.number,isUnread:s.a.bool,isNonReplyNoteRead:s.a.bool,onReplyClicked:s.a.func,isMultiSelected:s.a.bool,isMultiSelectMode:s.a.bool,handleMultiSelect:s.a.func,isGroupMember:s.a.bool,handleNoteClick:s.a.func},At=function(e){var t,n=e.annotation,i=e.isEditing,l=e.setIsEditing,s=e.noteIndex,p=e.isUnread,h=e.isNonReplyNoteRead,m=e.onReplyClicked,g=e.isMultiSelected,v=e.isMultiSelectMode,y=e.handleMultiSelect,x=e.isGroupMember,O=e.handleNoteClick,_=Object(c.e)((function(e){return k.a.getNoteDateFormat(e)})),C=Object(c.e)((function(e){return k.a.getIconColor(e,Object(yt.g)(n),c.c)})),A=Object(c.e)((function(e){return k.a.isElementDisabled(e,"noteStateFlyout")})),T=Object(c.e)((function(e){return k.a.getCurrentLanguage(e)})),P=Object(c.e)((function(e){return k.a.notesShowLastUpdatedDate(e)})),j=Object(c.e)((function(e){return k.a.isNotesPanelTextCollapsingEnabled(e)})),N=Object(c.e)((function(e){return k.a.isNotesPanelRepliesCollapsingEnabled(e)})),I=Object(c.e)((function(e){return k.a.getActiveTheme(e)})),L=Object(c.e)((function(e){return k.a.getTimezone(e)})),R=Object(c.e)((function(e){var t;return null===(t=k.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI})),q=Object(o.useContext)(d.a),M=q.isSelected,D=q.searchInput,z=q.resize,F=q.pendingEditTextMap,B=q.onTopNoteContentClicked,H=q.sortStrategy,U=q.showAnnotationNumbering,G=q.setPendingEditText,W=Object(c.d)(),V=St(Object(u.a)(),1)[0],K=n.isReply(),Y=Object(yt.g)(n)===yt.c.TRACKED_CHANGE,$=St(Object(o.useState)([]),2),Z=$[0],X=$[1];Object(o.useEffect)((function(){X(n.getAttachments())}),[n]),Object(o.useEffect)((function(){var e=function(e,t){"modify"===t&&e.forEach((function(e){e.Id===n.Id&&X(e.getAttachments())}))};return E.a.addEventListener("annotationChanged",e),function(){E.a.removeEventListener("annotationChanged",e)}}),[n]),Object(wt.a)((function(){i||W(S.a.finishNoteEditing()),z()}),[i]);var Q,J=Object(o.useCallback)((function(e){var t=E.a.getDisplayAuthor(e.Author);return t?It(t,D):V("option.notesPanel.noteContent.noName")}),[D]),ee=n.getSkipAutoLink&&n.getSkipAutoLink(),te=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=It(e,D,t);if(!D&&(!K&&j||K&&N)){return r.a.createElement(Ne,{linesToBreak:3,comment:!0,renderRichText:Nt,richTextStyle:t,resize:z,style:o,beforeContent:function(){if(!Y)return null;var e=1===n.TrackedChangeType?V("officeEditor.added"):V("officeEditor.deleted");return r.a.createElement("span",{style:{color:n.FillColor.toString(),fontWeight:700}},e)}},e)}return l}var s=[],c=0;return a.forEach((function(n,o){var i=n.start,a=n.end,l=n.href;c<i&&s.push(r.a.createElement("span",{key:"span_".concat(o)},It(e,D,t,c,i))),s.push(r.a.createElement("a",{href:l,target:"_blank",rel:"noopener noreferrer",key:"a_".concat(o)},It(e,D,t,i,a))),c=a})),c<e.length-1&&s.push(It(e,D,t,c)),s}),[D]),ne=Object(yt.e)(Object(yt.g)(n)).icon;try{Q=JSON.parse(n.getCustomData("trn-mention"))}catch(e){Q=n.getCustomData("trn-mention")}var oe=(null===(t=Q)||void 0===t?void 0:t.contents)||n.getContents();oe=function(e){return e?w()(e):e}(oe);var re=n.getContents(),ie=n.getRichTextStyle(),ae=n.TextColor;if(I===we.a.DARK)ae&&Object(be.c)(ae.toHexString())&&(ae=new window.Core.Annotations.Color(255,255,255,1)),ie&&Object.keys(ie).forEach((function(e){ie[e].color&&Object(be.c)(ie[e].color)&&(ie[e].color=Ee.b.white)}));else if(I===we.a.LIGHT){if(ae&&Object(be.d)(ae.toHexString())&&(ae=new window.Core.Annotations.Color(0,0,0,1)),ie)Object.keys(ie).forEach((function(e){ie[e].color&&Object(be.d)(ie[e].color)&&(ie[e].color=Ee.b.black)}))}var le,se=void 0===F[n.Id];le=oe&&se?oe:F[n.Id];var ce=function(e){var t;null!==(t=window.getSelection())&&void 0!==t&&t.toString()&&(null==e||e.stopPropagation()),O(e)},ue=a()({NoteContent:!0,isReply:K,unread:p,clicked:h,"modular-ui":R}),de=Object(o.useMemo)((function(){var e={};return ae&&(e.color=ae.toHexString()),r.a.createElement(r.a.Fragment,null,i&&M?r.a.createElement(Pt,{annotation:n,noteIndex:s,setIsEditing:l,textAreaValue:le,onTextAreaValueChange:G,pendingText:F[n.Id]}):re&&r.a.createElement("div",{className:a()("container",{"reply-content":K}),onClick:ce},K&&Z.length>0&&r.a.createElement(pt,{files:Z,isEditing:!1}),te(re,ie,e,ee)))}),[n,M,i,l,oe,te,le,G,Z]),fe=n.getCustomData("trn-annot-preview"),pe=Object(o.useMemo)((function(){if(""===fe)return null;var e=It(fe,D),t=!K&&j;return b()(e)&&t?r.a.createElement(xt.a,{onClick:O,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)}),[fe,D]),he=Object(o.useMemo)((function(){return r.a.createElement(Ce,{icon:ne,iconColor:C,annotation:n,language:T,noteDateFormat:_,isSelected:M,setIsEditing:l,notesShowLastUpdatedDate:P,isReply:K,isUnread:p,renderAuthorName:J,isNoteStateDisabled:A,isEditing:i,noteIndex:s,sortStrategy:H,activeTheme:I,handleMultiSelect:y,isMultiSelected:g,isMultiSelectMode:v,isGroupMember:x,showAnnotationNumbering:U,timezone:L,isTrackedChange:Y})}),[ne,C,n,T,_,M,l,P,K,p,J,E.a.getDisplayAuthor(n.Author),A,i,s,Object(ge.a)(n),H,y,g,v,x,L,Y]);return r.a.createElement("div",{className:ue,onClick:function(){x||(K?m(n):i||B())}},he,pe,de)};At.propTypes=Ct;var Tt=At,Pt=function(e){var t=e.annotation,n=e.noteIndex,i=e.setIsEditing,l=e.textAreaValue,s=e.onTextAreaValueChange,f=e.pendingText,p=St(Object(c.e)((function(e){return[k.a.getAutoFocusNoteOnAnnotationSelection(e),k.a.getIsMentionEnabled(e),k.a.isElementDisabled(e,O.a.INLINE_COMMENT_POPUP),k.a.isElementOpen(e,O.a.INLINE_COMMENT_POPUP),k.a.isElementOpen(e,O.a.NOTES_PANEL),k.a.getActiveDocumentViewerKey(e),k.a.isAnyCustomPanelOpen(e)]})),7),h=p[0],m=p[1],g=p[2],v=p[3],b=p[4],y=p[5],w=p[6],S=St(Object(u.a)(),1)[0],_=Object(o.useRef)(),C=t.isReply(),A=Object(o.useContext)(d.a),T=A.setCurAnnotId,P=A.pendingAttachmentMap,j=A.deleteAttachment,N=A.clearAttachments,I=A.addAttachments,L=!g&&v&&Object(bt.k)();Object(o.useEffect)((function(){if(w||(b||v)&&_.current){var e=_.current.getEditor();t&&t instanceof window.Core.Annotations.FreeTextAnnotation&&e.setText(""),f?Object(mt.a)(e,t):e.getContents()&&setTimeout((function(){if(m){l=ht.a.getFormattedTextFromDeltas(e.getContents());var n=ht.a.extractMentionDataFromStr(l),o=n.plainTextValue;n.ids.length&&e.setText(o)}var r;L||h&&(null===(r=_.current)||void 0===r||r.focus(),t.getRichTextStyle()&&vt(t,e))}),100);var n=e.getLength()-1;if(L)return;setTimeout((function(){n&&e.setSelection(n,n)}),100)}}),[b,v,L]),Object(o.useEffect)((function(){if(C&&0===M.length){var e=t.getAttachments();I(t.Id,e)}}),[]);var R=function(){var e,o=(e=kt().mark((function e(o){var r,a,c,u,d;return kt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o.preventDefault(),r=_.current.getEditor(),l=ht.a.getFormattedTextFromDeltas(r.getContents()),Object(mt.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=ht.a.extractMentionDataFromStr(l),c=a.plainTextValue,u=a.ids,ht.a.extractMentionDataFromAnnot(t).mentions.forEach((function(e){c.includes(e.value)&&u.push(e.id)})),t.setCustomData("trn-mention",JSON.stringify({contents:l,ids:u})),t.setContents(c)):t.setContents(l),e.next=11,Ye(t,P[t.Id]);case 11:d=t instanceof window.Core.Annotations.FreeTextAnnotation?"textChanged":"noteChanged",E.a.getAnnotationManager(y).trigger("annotationChanged",[[t],"modify",{source:d}]),t instanceof window.Core.Annotations.FreeTextAnnotation&&E.a.drawAnnotationsFromList([t]),i(!1,n),""!==l&&s(void 0,t.Id),N(t.Id);case 17:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Ot(i,o,r,a,l,"next",e)}function l(e){Ot(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e){return o.apply(this,arguments)}}(),q=a()("edit-content",{"reply-content":C}),M=P[t.Id]||[];return r.a.createElement("div",{className:q},C&&M.length>0&&r.a.createElement(pt,{files:M,isEditing:!0,fileDeleted:function(e){return j(t.Id,e)}}),r.a.createElement(x.a,{ref:function(e){_.current=e},value:l,onChange:function(e){return s(e,t.Id)},onSubmit:R,isReply:C,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():T(void 0)},onFocus:function(){T(t.Id)}}),r.a.createElement("div",{className:"edit-buttons"},r.a.createElement(me.a,{className:"cancel-button",label:S("action.cancel"),onClick:function(e){e.stopPropagation(),i(!1,n),s(void 0,t.Id),N(t.Id)}}),r.a.createElement(me.a,{className:"save-button".concat(l?"":" disabled"),disabled:!l,label:S("action.save"),onClick:function(e){e.stopPropagation(),R(e)}})))};Pt.propTypes={noteIndex:s.a.number.isRequired,annotation:s.a.object.isRequired,setIsEditing:s.a.func.isRequired,textAreaValue:s.a.string,onTextAreaValueChange:s.a.func.isRequired,pendingText:s.a.string};var jt=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)},Nt=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=[],s=Object.keys(o).map(Number).sort((function(e,t){return e-t})),c=1;c<s.length;c++)l.push(jt(e.slice(s[c-1],s[c]),o[s[c-1]],"richtext_span_".concat(c)));return l},It=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(),s=t.toLowerCase();n&&(n[0]=n[0]||{},n[e.length]=n[e.length]||{});var c=l.indexOf(s);if(!s.trim()||-1===c)return Nt(a,n,o);var u=[],d=[c],f=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp("(".concat(f,")"),"gi").test(l))for(;-1!==c;)-1!==(c=l.indexOf(s,c+s.length))&&d.push(c);return d.forEach((function(e,t){0===t&&0!==e&&u.push(Nt(a.substring(0,e),n,o)),u.push(r.a.createElement("span",{className:"highlight",key:"highlight_span_".concat(t)},Nt(a.substring(e,e+s.length),n,o+e))),e+s.length<l.length&&e+s.length!==d[t+1]&&u.push(Nt(a.substring(e+s.length,d[t+1]),n,o+e+s.length))})),u};var Lt=Tt;n(1611);function Rt(e){return(Rt="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 qt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new S(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&n.call(v,i)&&(m=v);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==Rt(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return C()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new w(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Mt(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function Dt(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zt(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 zt(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 zt(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}var Ft={annotation:s.a.object.isRequired},Bt=function(e){var t=e.annotation,n=e.isUnread,i=e.onPendingReplyChange,l=Dt(Object(c.e)((function(e){var n;return[k.a.getAutoFocusNoteOnAnnotationSelection(e),k.a.isDocumentReadOnly(e),k.a.isElementDisabled(e,"noteReply"),null===(n=k.a.getIsReplyDisabled(e))||void 0===n?void 0:n(t),k.a.getIsMentionEnabled(e),k.a.getIsNoteEditing(e),k.a.isElementDisabled(e,O.a.INLINE_COMMENT_POPUP),k.a.isElementOpen(e,O.a.INLINE_COMMENT_POPUP),k.a.getActiveDocumentViewerKey(e)]}),c.c),9),s=l[0],u=l[1],f=l[2],p=l[3],h=l[4],m=l[5],g=l[6],v=l[7],b=l[8],y=Object(o.useContext)(d.a),w=y.isContentEditable,_=y.isSelected,C=y.pendingReplyMap,A=y.setPendingReply,T=y.isExpandedFromSearch,P=y.scrollToSelectedAnnot,j=y.setCurAnnotId,N=y.pendingAttachmentMap,I=y.clearAttachments,L=y.deleteAttachment,R=Dt(Object(o.useState)(!1),2),q=R[0],M=R[1],D=Object(c.d)(),z=Object(o.useRef)(),F=!g&&v&&Object(bt.k)();Object(wt.a)((function(){q||D(S.a.finishNoteEditing())}),[q]),Object(o.useEffect)((function(){F||m&&_&&!w&&s&&z&&z.current&&z.current.focus()}),[w,m,_,F]),Object(o.useEffect)((function(){if(!T&&P&&setTimeout((function(){z&&z.current&&s&&z.current.focus()}),100),z&&z.current){if(F)return;var e=z.current.getEditor().getLength()-1;setTimeout((function(){z.current&&z.current.editor.setSelection(e,e)}),100)}}),[]);var B=function(){var e,n=(e=qt().mark((function e(n){var o,r,i,a;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),n.stopPropagation(),o=z.current.getEditor(),(r=ht.a.getFormattedTextFromDeltas(o.getContents())).trim()){e.next=6;break}return e.abrupt("return");case 6:if(!h){e.next=14;break}return i=ht.a.createMentionReply(t,r),Object(mt.a)(o,i),e.next=11,Ye(i,N[t.Id]);case 11:E.a.addAnnotations([i],b),e.next=19;break;case 14:return a=E.a.createAnnotationReply(t,r),Object(mt.a)(o,a),e.next=18,Ye(a,N[t.Id]);case 18:E.a.getAnnotationManager(b).trigger("annotationChanged",[[a],"modify",{}]);case 19:A("",t.Id),I(t.Id);case 21:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Mt(i,o,r,a,l,"next",e)}function l(e){Mt(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}),G=N[t.Id]||[];return H||!_?null:r.a.createElement("form",{onSubmit:B,className:"reply-area-container"},G.length>0&&r.a.createElement(pt,{files:G,isEditing:!0,fileDeleted:function(e){return L(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:C[t.Id],onChange:function(e){return function(e){A(e,t.Id),i&&i()}(e)},onSubmit:B,onBlur:function(){M(!1),j(void 0)},onFocus:function(){M(!0),j(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:!C[t.Id],onClick:B,isSubmitType:!0}))))};Bt.propTypes=Ft;var Ht=Bt;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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gt(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 Gt(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 Gt(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}var Wt={groupAnnotations:s.a.array.isRequired,isMultiSelectMode:s.a.bool.isRequired},Vt=function(e){var t=e.groupAnnotations,n=e.isMultiSelectMode,i=Ut(Object(u.a)(),1)[0],l=Object(c.d)(),s=Ut(Object(o.useState)(!1),2),d=s[0],f=s[1],p=Object(c.e)((function(e){var t;return null===(t=k.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(),E.a.selectAnnotation(e),E.a.jumpToAnnotation(e),l(S.a.openElement("annotationPopup"))}},r.a.createElement(Lt,{key:e.Id,annotation:e,isUnread:!1,isGroupMember:!0,isMultiSelectMode:n}))})))};Vt.propTypes=Wt;var Kt=Vt,Yt=n(119),$t=n(291),Zt=n(21);n(1613);function Xt(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qt(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 Qt(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 Qt(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}var Jt=function(e){var t=e.children,n=Object(Zt.a)().querySelector("#line-connector-root"),r=document.createElement("div");return r.setAttribute("data-element",O.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)},en=function(e){var t=e.annotation,n=e.noteContainerRef,i=e.isCustomPanelOpen,a=Xt(Object(c.e)((function(e){return[k.a.getNotesPanelWidth(e),k.a.isElementOpen(e,O.a.ANNOTATION_NOTE_CONNECTOR_LINE),k.a.isElementOpen(e,O.a.NOTES_PANEL),k.a.isElementDisabled(e,O.a.ANNOTATION_NOTE_CONNECTOR_LINE),k.a.getDocumentContainerWidth(e),k.a.getDocumentContainerHeight(e),k.a.getActiveDocumentViewerKey(e)]}),c.c),7),l=a[0],s=a[1],u=a[2],d=a[3],f=a[4],p=a[5],h=a[6],m=Object(c.d)(),g=Xt(Object(o.useState)(0),2),v=g[0],b=g[1],y=Xt(Object(o.useState)(0),2),w=y[0],x=y[1],_=Xt(Object(o.useState)(0),2),C=_[0],A=_[1],T=Xt(Object(o.useState)(0),2),P=T[0],j=T[1],N=Xt(Object(o.useState)(0),2),I=N[0],L=N[1],R=Xt(Object(o.useState)(0),2),q=R[0],M=R[1],D=Object($t.d)(t,h),z=D.bottomRight,F=D.topLeft,B=Object(o.useCallback)((function(){return"Note"===t.Subject?4:15}),[t]);if(Object(o.useEffect)((function(){var e=E.a.getScrollViewElement(h),o=e.scrollTop,r=e.scrollLeft;if(!(z&&F))return function(){m(S.a.closeElement(O.a.ANNOTATION_NOTE_CONNECTOR_LINE))};var i=z.x-F.x,a=z.y-F.y,s=window.isApryseWebViewerWebComponent?Object(Zt.a)().host.clientWidth:window.innerWidth,c=window.isApryseWebViewerWebComponent?Object(Zt.a)().host.offsetTop:0;A(l-16),x(n.current.getBoundingClientRect().top-c);var u=s-l-F.x+16+r-i;b(.75*u);var d=t.getNoZoomReferencePoint(),f=t.NoZoom&&d.x?d.x*a:0;j(u-v-B()+f),M(l-16+v);var p=t.NoZoom&&d.y?d.y*a:0;L(F.y+a/2-o-p);var g=function(){m(S.a.closeElement(O.a.ANNOTATION_NOTE_CONNECTOR_LINE))};return E.a.addEventListener("pageNumberUpdated",g,void 0,h),function(){E.a.removeEventListener("pageNumberUpdated",g,h)}}),[n,l,z,F,f,p,m,h]),s&&(u||i)&&!d){var H=Math.abs(w-I),U=w>I?I+2:w;return r.a.createElement(Jt,null,r.a.createElement("div",{className:"horizontalLine",style:{width:v,right:C,top:w}}),r.a.createElement("div",{className:"verticalLine",style:{height:H,top:U,right:C+v}}),r.a.createElement("div",{className:"horizontalLine",style:{width:P,right:q,top:I}},r.a.createElement("div",{className:"arrowHead"})))}return null};n(1615);function tn(e){return(tn="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 nn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new S(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&n.call(v,i)&&(m=v);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==tn(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return C()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new w(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function on(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function rn(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 an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ln(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==tn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==tn(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sn(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return cn(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 cn(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 cn(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}var un={annotation:s.a.object.isRequired,isMultiSelected:s.a.bool,isMultiSelectMode:s.a.bool,isInNotesPanel:s.a.bool,handleMultiSelect:s.a.func},dn=0,fn=function(e){var t=e.annotation,n=e.isMultiSelected,i=e.isMultiSelectMode,l=e.isInNotesPanel,s=e.handleMultiSelect,f=e.isCustomPanelOpen,p=e.shouldHideConnectorLine,h=Object(o.useContext)(d.a),m=h.isSelected,g=h.resize,v=h.pendingEditTextMap,b=h.isContentEditable,y=h.isDocumentReadOnly,w=h.isExpandedFromSearch,x=h.setCurAnnotId,_=Object(o.useRef)(),C=Object(o.useRef)(),A=sn(Object(o.useState)({}),2),T=A[0],P=A[1],j=Object(o.useRef)([]),N=Object(c.d)(),I=sn(Object(u.a)(),1)[0],L=new Set,R=sn(Object(c.e)((function(e){return[k.a.getNoteTransformFunction(e),k.a.getCustomNoteSelectionFunction(e),k.a.getUnreadAnnotationIdSet(e),k.a.isCommentThreadExpansionEnabled(e),k.a.isRightClickAnnotationPopupEnabled(e),k.a.getActiveDocumentViewerKey(e),k.a.getIsOfficeEditorMode(e),k.a.getOfficeEditorEditMode(e)]}),c.c),8),q=R[0],M=R[1],D=R[2],z=R[3],F=R[4],B=R[5],H=R[6],U=R[7],G=Object(o.useCallback)((function(e,t){P((function(n){return an(an({},n),{},ln({},t,e))}))}),[P]),W=t.getReplies().sort((function(e,t){return e.DateCreated-t.DateCreated}));W.filter((function(e){return D.has(e.Id)})).forEach((function(e){return L.add(e.Id)})),Object(o.useEffect)((function(){var e=function(e,t){"delete"===t&&e.forEach((function(e){D.has(e.Id)&&N(S.a.setAnnotationReadState({isRead:!0,annotationId:e.Id}))}))};return E.a.addEventListener("annotationChanged",e,void 0,B),function(){E.a.removeEventListener("annotationChanged",e,B)}}),[D]),Object(o.useEffect)((function(){var e=C.current,t=_.current.getBoundingClientRect().height;C.current=t,e&&Math.round(e)!==Math.round(t)&&g()})),Object(o.useEffect)((function(){if(q){var e=Object(Zt.a)().querySelectorAll(".NotesPanel")[0];j.current.forEach((function(t){var n=e.querySelector("[data-webviewer-custom-element=".concat(t,"]"));n&&n.parentNode.removeChild(n)})),j.current=[];var n={annotation:t,isSelected:m};q(_.current,n,(function(){var e,t=(e=document).createElement.apply(e,arguments),n="custom-element-".concat(dn);return dn++,j.current.push(n),t.setAttribute("data-webviewer-custom-element",n),t.addEventListener("mousedown",(function(e){e.stopPropagation()})),t}))}})),Object(o.useEffect)((function(){""!==v[t.Id]&&b&&!y&&G(!0,0)}),[y,b,G,t,i]),Object(wt.a)((function(){!y&&b||G(!1,0)}),[y,b,G]);var V=function(){var e,o=(e=nn().mark((function e(o){var r;return nn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o&&o.stopPropagation(),!i){e.next=4;break}return s(!n),e.abrupt("return");case 4:if(D.has(t.Id)&&N(S.a.setAnnotationReadState({isRead:!0,annotationId:t.Id})),M&&M(t),m||(E.a.deselectAllAnnotations(B),setTimeout((function(){return N(S.a.openElement(O.a.ANNOTATION_NOTE_CONNECTOR_LINE))}),300)),!l||H&&U===xe.y.PREVIEW){e.next=17;break}if(E.a.selectAnnotation(t,B),x(t.Id),E.a.jumpToAnnotation(t,B),F||N(S.a.openElement(O.a.ANNOTATION_POPUP)),!H){e.next=17;break}return r=t.getCustomData(xe.v),e.next=16,E.a.getOfficeEditor().moveCursorToTrackedChange(r);case 16:E.a.getOfficeEditor().freezeMainCursor();case 17:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){on(i,o,r,a,l,"next",e)}function l(e){on(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e){return o.apply(this,arguments)}}(),K=L.size>0,Y=a()({Note:!0,expanded:m,"is-multi-selected":n,unread:D.has(t.Id)||K,disabled:H&&U===xe.y.PREVIEW}),$=a()({replies:!0,hidden:!m});Object(o.useEffect)((function(){i||W.forEach((function(e,t){var n=v[e.Id];""!==n&&void 0!==n&&m&&G(!0,1+t)}))}),[m,i]),Object(o.useEffect)((function(){i&&G(!1,0)}),[i]);var Z=!Object.values(T).some((function(e){return e})),X=function(e){L.has(e.Id)&&(N(S.a.setAnnotationReadState({isRead:!0,annotationId:e.Id})),E.a.getAnnotationManager(B).selectAnnotation(e))},Q=function(){if(L.size>0){var e=W.filter((function(e){return L.has(e.Id)}));E.a.getAnnotationManager(B).selectAnnotations(e),e.forEach((function(e){return N(S.a.setAnnotationReadState({isRead:!0,annotationId:e.Id}))}))}},J=E.a.getGroupAnnotations(t,B),ee=J.length>1,te=Object(yt.g)(t)===yt.c.TRACKED_CHANGE,ne=W.length>0?W[W.length-1].Id:null;return r.a.createElement("div",{ref:_,className:Y,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(Lt,{noteIndex:0,annotation:t,setIsEditing:G,handleNoteClick:V,isEditing:T[0],isNonReplyNoteRead:!D.has(t.Id),isUnread:D.has(t.Id)||K,handleMultiSelect:function(e){x(t.Id),s(e)},isMultiSelected:n,isMultiSelectMode:i}),(m||w||z)&&!te&&r.a.createElement(r.a.Fragment,null,W.length>0&&r.a.createElement("div",{className:$},K&&r.a.createElement(me.a,{dataElement:"markAllReadButton",className:"mark-all-read-button",label:I("action.markAllRead"),onClick:Q}),W.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(Lt,{noteIndex:t+1,key:e.Id,annotation:e,setIsEditing:G,isEditing:T[t+1],onReplyClicked:X,isUnread:D.has(e.Id),handleMultiSelect:s,isMultiSelected:n,isMultiSelectMode:i,handleNoteClick:V}))}))),ee&&r.a.createElement(Kt,{groupAnnotations:J,isMultiSelectMode:i}),Z&&!i&&r.a.createElement(Ht,{isUnread:ne&&D.has(ne),onPendingReplyChange:Q,annotation:t})),m&&(l||f)&&!p&&r.a.createElement(en,{annotation:t,noteContainerRef:_,isCustomPanelOpen:f}))};fn.propTypes=un;var pn=fn;t.a=pn},1628:function(e,t,n){"use strict";n(23),n(8),n(24),n(19),n(12),n(13),n(14),n(10),n(9),n(11),n(16),n(15),n(20),n(18),n(27),n(28),n(25),n(22);var o=n(0),r=n.n(o),i=n(3),a=n.n(i),l=n(6),s=n(197),c=n(347),u=n(299),d=n(82),f=n(1),p=n(1548),h=n(201),m=n(38),g=n(1542),v=n(2),b=n(4),y=n(5),w=n(1564);n(1595);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 E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==x(e)||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return O(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 O(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 O(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}var S={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},_=function(e){var t=e.annotations,n=e.style,i=e.isRedaction,a=e.isFreeText,x=e.isEllipse,O=e.isMeasure,S=e.colorMapKey,_=e.showLineStyleOptions,C=e.properties,A=e.hideSnapModeCheckbox,T=e.onResize,P=e.hasBackToMenu,j=e.onBackToMenu,N=k(Object(l.e)((function(e){return[b.a.isElementDisabled(e,y.a.ANNOTATION_STYLE_POPUP),b.a.isToolDefaultStyleUpdateFromAnnotationPopupEnabled(e),b.a.getActiveDocumentViewerKey(e)]})),3),I=N[0],L=N[1],R=N[2],q=Object(l.d)(),M=k(Object(c.a)(),1)[0],D=k(Object(o.useState)(C.isAutoSizeFont),2),z=D[0],F=D[1],B=function(e,n){var o=f.a.getAnnotationManager(R);t.forEach((function(t){t[e]=n,"StrokeThickness"===e&&Object(g.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,E({},e,n),R),L&&Object(h.a)(t.ToolName,e,n),"FontSize"!==e&&"Font"!==e||Object(g.a)(t)}))},U=function(e,n){t.forEach((function(t){f.a.setAnnotationStyles(t,E({},e,n),R),L&&Object(h.a)(t.ToolName,e,n)}))},G=function(e,n){t.forEach((function(t){f.a.updateAnnotationRichTextStyle(t,E({},e,n),R)}))},W=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"}L&&Object(h.a)(t.ToolName,o,n),f.a.getAnnotationManager(R).redrawAnnotation(t)})),f.a.getAnnotationManager(R).trigger("annotationChanged",[t,"modify",{}])},V=function(e){Object(m.k)()&&e.target===e.currentTarget&&q(v.a.closeElement(y.a.ANNOTATION_POPUP))},K=Object(p.a)("Popup AnnotationStylePopup",e);return I?null:r.a.createElement(s.a,{onResize:function(){T&&T()}},(function(e){var o=e.measureRef;return r.a.createElement("div",{className:K,"data-element":y.a.ANNOTATION_STYLE_POPUP,onClick:V,ref:o},P&&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:j})),r.a.createElement(u.a,{hideSnapModeCheckbox:A,colorMapKey:S,style:n,isFreeText:a,isFreeTextAutoSize:z,onFreeTextSizeToggle:function(){return Object(w.a)(t[0],F,z)},isEllipse:x,isMeasure:O,onStyleChange:U,onSliderChange:B,onPropertyChange:H,disableSeparator:!0,properties:C,onRichTextStyleChange:G,isRedaction:i,showLineStyleOptions:_,onLineStyleChange:W}))}))};_.propTypes=S;var C=_;t.a=C},1632:function(e,t,n){"use strict";var o=n(53),r=n(382);o({target:"String",proto:!0,forced:n(383)("link")},{link:function(e){return r(this,"a","href",e)}})},1633:function(e,t,n){var o=n(1649),r=n(590),i=/[&<>"']/g,a=RegExp(i.source);e.exports=function(e){return(e=r(e))&&a.test(e)?e.replace(i,o):e}},1634:function(e,t,n){"use strict";var o=n(1589),r=n.n(o);function i(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,E(o.key),o)}}function u(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,n){return(t=E(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){return(f=Object.assign?Object.assign.bind():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 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){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function v(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=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}function b(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function y(){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=b(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}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){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 w(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)?w(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 E(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var k=9,O=13,S=27,_=38,C=40;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 T(e,t){null!==t&&("object"===l(t)?e.appendChild(t):e.innerText=t)}var P=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(n,e);var t=v(n);function n(e,o){var r;return s(this,n),d(m(r=t.call(this,e,o)),"hoverHandler",void 0),d(m(r),"hoverHandler",void 0),r.clickHandler=null,r.hoverHandler=null,r.mounted=!1,r}return u(n,[{key:"attach",value:function(){y(p(n.prototype),"attach",this).call(this),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(){y(p(n.prototype),"detach",this).call(this),this.mounted=!1,this.clickHandler&&(this.domNode.removeEventListener("click",this.clickHandler),this.clickHandler=null)}},{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 Event(e,{bubbles:!0,cancelable:!0});return n.value=f({},this.domNode.dataset),n.event=t,n}}],[{key:"create",value:function(e){var t=y(p(n),"create",this).call(this),o=document.createElement("span");return o.className="ql-mention-denotation-char",o.innerText=e.denotationChar,t.appendChild(o),"function"==typeof this.render?t.appendChild(this.render(e)):t.innerText+=e.value,n.setDataValues(t,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}}]),n}(r.a.import("blots/embed"));P.blotName="mention",P.tagName="span",P.className="mention",r.a.register("blots/mention",P);var j=function(){function e(t,n){var o=this;for(var r in s(this,e),this.isOpen=!1,this.itemIndex=0,this.mentionCharPos=null,this.cursorPos=null,this.values=[],this.suspendMouseEnter=!1,this.existingSourceExecutionToken=null,this.quill=t,this.options={source:null,renderItem:function(e){var t=e.value;return"".concat(t)},renderLoading:function(){return null},onSelect:function(e,t){t(e)},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",onOpen:function(){return!0},onBeforeClose:function(){return!0},onClose:function(){return!0},listItemClass:"ql-mention-list-item",mentionContainerClass:"ql-mention-list-container",mentionListClass:"ql-mention-list",spaceAfterInsert:!0,selectKeys:[O]},f(this.options,n,{dataAttributes:Array.isArray(n.dataAttributes)?this.options.dataAttributes.concat(n.dataAttributes):this.options.dataAttributes}),this.options)"function"==typeof this.options[r]&&(this.options[r]=this.options[r].bind(this));this.mentionContainer=document.createElement("div"),this.mentionContainer.className=this.options.mentionContainerClass?this.options.mentionContainerClass:"",this.mentionContainer.style.cssText="display: none; position: absolute;",this.mentionContainer.onmousemove=this.onContainerMouseMove.bind(this),this.options.fixMentionsToQuill&&(this.mentionContainer.style.width="auto"),this.mentionList=document.createElement("ul"),this.mentionList.id="quill-mention-list",t.root.setAttribute("aria-owns","quill-mention-list"),this.mentionList.className=this.options.mentionListClass?this.options.mentionListClass:"",this.mentionContainer.appendChild(this.mentionList),t.on("text-change",this.onTextChange.bind(this)),t.on("selection-change",this.onSelectionChange.bind(this)),t.container.addEventListener("paste",(function(){setTimeout((function(){var e=t.getSelection();o.onSelectionChange(e)}))})),t.keyboard.addBinding({key:k},this.selectHandler.bind(this)),t.keyboard.bindings[k].unshift(t.keyboard.bindings[k].pop());var i,a=x(this.options.selectKeys);try{for(a.s();!(i=a.n()).done;){var l=i.value;t.keyboard.addBinding({key:l},this.selectHandler.bind(this))}}catch(e){a.e(e)}finally{a.f()}t.keyboard.bindings[O].unshift(t.keyboard.bindings[O].pop()),t.keyboard.addBinding({key:S},this.escapeHandler.bind(this)),t.keyboard.addBinding({key:_},this.upHandler.bind(this)),t.keyboard.addBinding({key:C},this.downHandler.bind(this))}return u(e,[{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.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)this.mentionList.childNodes[t].classList.remove("selected");-1!==this.itemIndex&&"true"!==this.mentionList.childNodes[this.itemIndex].dataset.disabled&&(this.mentionList.childNodes[this.itemIndex].classList.add("selected"),this.quill.root.setAttribute("aria-activedescendant",this.mentionList.childNodes[this.itemIndex].id),e&&this.mentionList.childNodes[this.itemIndex].scrollIntoView({behaviour:"smooth",block:"nearest"}))}},{key:"onContainerMouseMove",value:function(){this.suspendMouseEnter=!1}},{key:"selectItem",value:function(){var e=this;if(-1!==this.itemIndex){var t=this.mentionList.childNodes[this.itemIndex].dataset;t.disabled||(this.options.onSelect(t,(function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.insertItem(t,n,o)})),this.hideMentionList())}}},{key:"insertItem",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e;if(null!==o){var i,l=a(a({},this.options),n);l.showDenotationChar||(o.denotationChar=""),t?i=this.cursorPos:(i=this.mentionCharPos,this.quill.deleteText(this.mentionCharPos,this.cursorPos-this.mentionCharPos,r.a.sources.USER));var s=this.quill.insertEmbed(i,l.blotName,o,r.a.sources.USER);return l.spaceAfterInsert?(this.quill.insertText(i+1," ",r.a.sources.USER),this.quill.setSelection(i+2,r.a.sources.USER)):this.quill.setSelection(i+1,r.a.sources.USER),this.hideMentionList(),s}}},{key:"onItemMouseEnter",value:function(e){if(!this.suspendMouseEnter){var t=Number(e.target.dataset.index);Number.isNaN(t)||t===this.itemIndex||(this.itemIndex=t,this.highlightItem(!1))}}},{key:"onDisabledItemMouseEnter",value:function(e){this.suspendMouseEnter||(this.itemIndex=-1,this.highlightItem(!1))}},{key:"onItemClick",value:function(e){0===e.button&&(e.preventDefault(),e.stopImmediatePropagation(),this.itemIndex=e.currentTarget.dataset.index,this.highlightItem(),this.selectItem())}},{key:"onItemMouseDown",value:function(e){e.preventDefault(),e.stopImmediatePropagation()}},{key:"renderLoading",value:function(){if(this.options.renderLoading())if(this.mentionContainer.getElementsByClassName("ql-mention-loading").length>0)this.showMentionList();else{this.mentionList.innerHTML="";var e=document.createElement("div");e.className="ql-mention-loading",T(e,this.options.renderLoading()),this.mentionContainer.append(e),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,T(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=0;do{t++,e=(this.itemIndex+t)%this.values.length;var n="true"===this.mentionList.childNodes[e].dataset.disabled;if(t===this.values.length+1){e=-1;break}}while(n);this.itemIndex=e,this.suspendMouseEnter=!0,this.highlightItem()}},{key:"prevItem",value:function(){var e,t=0;do{t++,e=(this.itemIndex+this.values.length-t)%this.values.length;var n="true"===this.mentionList.childNodes[e].dataset.disabled;if(t===this.values.length+1){e=-1;break}}while(n);this.itemIndex=e,this.suspendMouseEnter=!0,this.highlightItem()}},{key:"containerBottomIsNotVisible",value:function(e,t){return e+this.mentionContainer.offsetHeight+t.top>window.pageYOffset+window.innerHeight}},{key:"containerRightIsNotVisible",value:function(e,t){return!this.options.fixMentionsToQuill&&e+this.mentionContainer.offsetWidth+t.left>window.pageXOffset+document.documentElement.clientWidth}},{key:"setIsOpen",value:function(e){this.isOpen!==e&&(e?this.options.onOpen():this.options.onClose(),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,t=this.quill.container.getBoundingClientRect(),n=this.quill.getBounds(this.mentionCharPos),o=this.mentionContainer.offsetHeight,r=this.options.offsetTop,i=this.options.offsetLeft;if(this.options.fixMentionsToQuill){this.mentionContainer.style.right="".concat(0,"px")}else i+=n.left;if(this.containerRightIsNotVisible(i,t)){var a=this.mentionContainer.offsetWidth+this.options.offsetLeft;i=t.width-a}if("top"===this.options.defaultMenuOrientation){if((r=this.options.fixMentionsToQuill?-1*(o+this.options.offsetTop):n.top-(o+this.options.offsetTop))+t.top<=0){var l=this.options.offsetTop;this.options.fixMentionsToQuill?l+=t.height:l+=n.bottom,r=l}}else if(this.options.fixMentionsToQuill?r+=t.height:r+=n.bottom,this.containerBottomIsNotVisible(r,t)){var s=-1*this.options.offsetTop;this.options.fixMentionsToQuill||(s+=n.top),r=s-o}r>=0?this.options.mentionContainerClass.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-bottom")),e.mentionContainer.classList.remove("".concat(t,"-top"))})):this.options.mentionContainerClass.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-top")),e.mentionContainer.classList.remove("".concat(t,"-bottom"))})),this.mentionContainer.style.top="".concat(r,"px"),this.mentionContainer.style.left="".concat(i,"px"),this.mentionContainer.style.visibility="visible"}},{key:"setMentionContainerPosition_Fixed",value:function(){var e=this;this.mentionContainer.style.position="fixed",this.mentionContainer.style.height=null;var t=this.quill.container.getBoundingClientRect(),n=this.quill.getBounds(this.mentionCharPos),o={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 s=r.top,c=document.documentElement.clientHeight-(r.top+r.height),u=this.mentionContainer.offsetHeight<=c,d=this.mentionContainer.offsetHeight<=s;"bottom"===("top"===this.options.defaultMenuOrientation&&d?"top":"bottom"===this.options.defaultMenuOrientation&&u||c>s?"bottom":"top")?(i=r.top+r.height,u||(this.mentionContainer.style.height=c-3+"px"),this.options.mentionContainerClass.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-bottom")),e.mentionContainer.classList.remove("".concat(t,"-top"))}))):(i=r.top-this.mentionContainer.offsetHeight,d||(this.mentionContainer.style.height=s-3+"px",i=3),this.options.mentionContainerClass.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=Math.max(0,this.cursorPos-this.options.maxChars);return this.quill.getText(e,this.cursorPos-e)}},{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),s=l?this.quill.getText(l-1,l):"",c=(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=c.mentionChar,d=c.mentionCharIndex;if(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,s)){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))){this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.renderLoading();var h={abandoned:!1};this.existingSourceExecutionToken=h,this.options.source(p,(function(t,n){h.abandoned||(e.existingSourceExecutionToken=null,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:this.options.allowedChars(e)}},{key:"onTextChange",value:function(e,t,n){"user"===n&&this.onSomethingChange()}},{key:"onSelectionChange",value:function(e){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()}}]),e}();r.a.register("modules/mention",j)},1635:function(e,t,n){
|
|
9
9
|
/*! @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 */
|
|
10
|
-
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:s,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),s||(s=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=S(Array.prototype.forEach),d=S(Array.prototype.lastIndexOf),f=S(Array.prototype.pop),p=S(Array.prototype.push),h=S(Array.prototype.splice),m=S(String.prototype.toLowerCase),g=S(String.prototype.toString),v=S(String.prototype.match),b=S(String.prototype.replace),y=S(String.prototype.indexOf),w=S(String.prototype.trim),x=S(Object.prototype.hasOwnProperty),E=S(RegExp.prototype.test),k=(O=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(O,t)});var O;function S(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 s(e,t,o)}}function _(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 C(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]=C(r):r&&"object"==typeof r&&r.constructor===Object?n[o]=A(r):n[o]=r);return n}function T(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return S(n.get);if("function"==typeof n.value)return S(n.value)}e=o(e)}return function(){return null}}const P=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"]),j=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"]),L=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"]),R=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q=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"]),F=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=a(/<%[\w\W]*|[\w\W]*%>/gm),U=a(/\$\{[\w\W]*/gm),G=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),W=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),Y=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=a(/^html$/i),Z=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var X=Object.freeze({__proto__:null,ARIA_ATTR:W,ATTR_WHITESPACE:Y,CUSTOM_ELEMENT:Z,DATA_ATTR:G,DOCTYPE_NAME:$,ERB_EXPR:H,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:B,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,s=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:O,Node:S,Element:C,NodeFilter:B,NamedNodeMap:H=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:U,DOMParser:G,trustedTypes:W}=n,K=C.prototype,Y=T(K,"cloneNode"),Z=T(K,"remove"),ie=T(K,"nextSibling"),ae=T(K,"childNodes"),le=T(K,"parentNode");if("function"==typeof O){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let se,ce="";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:ge,ERB_EXPR:ve,TMPLIT_EXPR:be,DATA_ATTR:ye,ARIA_ATTR:we,IS_SCRIPT_OR_DATA:xe,ATTR_WHITESPACE:Ee,CUSTOM_ELEMENT:ke}=X;let{IS_ALLOWED_URI:Oe}=X,Se=null;const _e=_({},[...P,...j,...N,...L,...q]);let Ce=null;const Ae=_({},[...M,...D,...z,...F]);let Te=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}})),Pe=null,je=null,Ne=!0,Ie=!0,Le=!1,Re=!0,qe=!1,Me=!0,De=!1,ze=!1,Fe=!1,Be=!1,He=!1,Ue=!1,Ge=!0,We=!1;const Ve="user-content-";let Ke=!0,Ye=!1,$e={},Ze=null;const Xe=_({},["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=_({},["audio","video","img","source","image","track"]);let et=null;const tt=_({},["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 st=_({},[nt,ot,rt],g);let ct=_({},["mi","mo","mn","ms","mtext"]),ut=_({},["annotation-xml"]);const dt=_({},["title","style","font","a","script"]);let ft=null;const pt=["application/xhtml+xml","text/html"],ht="text/html";let mt=null,gt=null;const vt=r.createElement("form"),bt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!gt||gt!==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?g:m,Se=x(e,"ALLOWED_TAGS")?_({},e.ALLOWED_TAGS,mt):_e,Ce=x(e,"ALLOWED_ATTR")?_({},e.ALLOWED_ATTR,mt):Ae,lt=x(e,"ALLOWED_NAMESPACES")?_({},e.ALLOWED_NAMESPACES,g):st,et=x(e,"ADD_URI_SAFE_ATTR")?_(A(tt),e.ADD_URI_SAFE_ATTR,mt):tt,Qe=x(e,"ADD_DATA_URI_TAGS")?_(A(Je),e.ADD_DATA_URI_TAGS,mt):Je,Ze=x(e,"FORBID_CONTENTS")?_({},e.FORBID_CONTENTS,mt):Xe,Pe=x(e,"FORBID_TAGS")?_({},e.FORBID_TAGS,mt):A({}),je=x(e,"FORBID_ATTR")?_({},e.FORBID_ATTR,mt):A({}),$e=!!x(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Ie=!1!==e.ALLOW_DATA_ATTR,Le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,qe=e.SAFE_FOR_TEMPLATES||!1,Me=!1!==e.SAFE_FOR_XML,De=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,Ge=!1!==e.SANITIZE_DOM,We=e.SANITIZE_NAMED_PROPS||!1,Ke=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,Oe=e.ALLOWED_URI_REGEXP||V,it=e.NAMESPACE||rt,ct=e.MATHML_TEXT_INTEGRATION_POINTS||ct,ut=e.HTML_INTEGRATION_POINTS||ut,Te=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qe&&(Ie=!1),He&&(Be=!0),$e&&(Se=_({},q),Ce=[],!0===$e.html&&(_(Se,P),_(Ce,M)),!0===$e.svg&&(_(Se,j),_(Ce,D),_(Ce,F)),!0===$e.svgFilters&&(_(Se,N),_(Ce,D),_(Ce,F)),!0===$e.mathMl&&(_(Se,L),_(Ce,z),_(Ce,F))),e.ADD_TAGS&&(Se===_e&&(Se=A(Se)),_(Se,e.ADD_TAGS,mt)),e.ADD_ATTR&&(Ce===Ae&&(Ce=A(Ce)),_(Ce,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&_(et,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Ze===Xe&&(Ze=A(Ze)),_(Ze,e.FORBID_CONTENTS,mt)),Ke&&(Se["#text"]=!0),De&&_(Se,["html","head","body"]),Se.table&&(_(Se,["tbody"]),delete Pe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');se=e.TRUSTED_TYPES_POLICY,ce=se.createHTML("")}else void 0===se&&(se=re(W,s)),null!==se&&"string"==typeof ce&&(ce=se.createHTML(""));i&&i(e),gt=e}},wt=_({},[...j,...N,...I]),xt=_({},[...L,...R]),Et=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||ct[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&&!ct[o])&&!xt[n]&&(dt[n]||!wt[n]):!("application/xhtml+xml"!==ft||!lt[e.namespaceURI]))},kt=function(e){p(o.removed,{element:e});try{le(e).removeChild(e)}catch(t){Z(e)}},Ot=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(Be||He)try{kt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},St=function(e){let t=null,n=null;if(Fe)e="<remove></remove>"+e;else{const t=v(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=se?se.createHTML(e):e;if(it===rt)try{t=(new G).parseFromString(o,ft)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(it,"template",null);try{t.documentElement.innerHTML=at?ce: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},_t=function(e){return de.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},Ct=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 S&&e instanceof S};function Tt(e,t,n){u(e,e=>{e.call(o,t,n,gt)})}const Pt=function(e){let t=null;if(Tt(me.beforeSanitizeElements,e,null),Ct(e))return kt(e),!0;const n=mt(e.nodeName);if(Tt(me.uponSanitizeElement,e,{tagName:n,allowedTags:Se}),Me&&e.hasChildNodes()&&!At(e.firstElementChild)&&E(/<[/\w!]/g,e.innerHTML)&&E(/<[/\w!]/g,e.textContent))return kt(e),!0;if(e.nodeType===ee)return kt(e),!0;if(Me&&e.nodeType===te&&E(/<[/\w]/g,e.data))return kt(e),!0;if(!Se[n]||Pe[n]){if(!Pe[n]&&Nt(n)){if(Te.tagNameCheck instanceof RegExp&&E(Te.tagNameCheck,n))return!1;if(Te.tagNameCheck instanceof Function&&Te.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=Y(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,ie(e))}}return kt(e),!0}return e instanceof C&&!Et(e)?(kt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!E(/<\/no(script|embed|frames)/i,e.innerHTML)?(qe&&e.nodeType===J&&(t=e.textContent,u([ge,ve,be],e=>{t=b(t,e," ")}),e.textContent!==t&&(p(o.removed,{element:e.cloneNode()}),e.textContent=t)),Tt(me.afterSanitizeElements,e,null),!1):(kt(e),!0)},jt=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in r||n in vt))return!1;if(Ie&&!je[t]&&E(ye,t));else if(Ne&&E(we,t));else if(!Ce[t]||je[t]){if(!(Nt(e)&&(Te.tagNameCheck instanceof RegExp&&E(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&E(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&E(Te.tagNameCheck,n)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))))return!1}else if(et[t]);else if(E(Oe,b(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Qe[e])if(Le&&!E(xe,b(n,Ee,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&v(e,ke)},It=function(e){Tt(me.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ct(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:s}=i,c=mt(a),d=s;let p="value"===a?d:w(d);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,Tt(me.uponSanitizeAttribute,e,n),p=n.attrValue,!We||"id"!==c&&"name"!==c||(Ot(a,e),p=Ve+p),Me&&E(/((--!?|])>)|<\/(style|title)/i,p)){Ot(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Ot(a,e);continue}if(!Re&&E(/\/>/i,p)){Ot(a,e);continue}qe&&u([ge,ve,be],e=>{p=b(p,e," ")});const h=mt(e.nodeName);if(jt(h,c,p)){if(se&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(l);else switch(W.getAttributeType(h,c)){case"TrustedHTML":p=se.createHTML(p);break;case"TrustedScriptURL":p=se.createScriptURL(p)}if(p!==d)try{l?e.setAttributeNS(l,a,p):e.setAttribute(a,p),Ct(e)?kt(e):f(o.removed)}catch(t){Ot(a,e)}}else Ot(a,e)}Tt(me.afterSanitizeAttributes,e,null)},Lt=function e(t){let n=null;const o=_t(t);for(Tt(me.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)Tt(me.uponSanitizeShadowNode,n,null),Pt(n),It(n),n.content instanceof c&&e(n.content);Tt(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 k("toString is not a function");if("string"!=typeof(e=e.toString()))throw k("dirty is not a string, aborting")}if(!o.isSupported)return e;if(ze||yt(t),o.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=mt(e.nodeName);if(!Se[t]||Pe[t])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof S)n=St("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===Q&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Be&&!qe&&!De&&-1===e.indexOf("<"))return se&&Ue?se.createHTML(e):e;if(n=St(e),!n)return Be?null:Ue?ce:""}n&&Fe&&kt(n.firstChild);const s=_t(Ye?e:n);for(;i=s.nextNode();)Pt(i),It(i),i.content instanceof c&&Lt(i.content);if(Ye)return e;if(Be){if(He)for(l=fe.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Ce.shadowroot||Ce.shadowrootmode)&&(l=he.call(a,l,!0)),l}let d=De?n.outerHTML:n.innerHTML;return De&&Se["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&E($,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),qe&&u([ge,ve,be],e=>{d=b(d,e," ")}),se&&Ue?se.createHTML(d):d},o.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};yt(e),ze=!0},o.clearConfig=function(){gt=null,ze=!1},o.isValidAttribute=function(e,t,n){gt||yt({});const o=mt(e),r=mt(t);return jt(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}()}()},1637:function(e,t,n){n(586)("Int8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},1638:function(e,t,n){n(586)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}),!0)},1639: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,s=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,s=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(s.query){var c=s.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(s.query=s.query.substr(0,c[1].length),e=i(s))}if(e.length<=t)return e;if(s.host&&(s.host=s.host.replace(/^www\./,""),e=i(s)),e.length<=t)return e;var u="";if(s.host&&(u+=s.host),u.length>=l)return s.host.length==t?(s.host.substr(0,t-r)+n).substr(0,l+o):a(u,l).substr(0,l+o);var d="";if(s.path&&(d+="/"+s.path),s.query&&(d+="?"+s.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(s.fragment){var f="#"+s.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(s.scheme&&s.host){var p=s.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}(),c=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(76),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}(c),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}(c),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}(c),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}(c),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}(c),g=function(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder},v=/[A-Za-z]/,b=/[\d]/,y=/[\D]/,w=/\s/,x=/['"]/,E=/[\x00-\x1F\x7F]/,k=/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,O=k+/\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,S=/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,_=O+S,C=O+S,A="(?:["+S+"]{1,3}\\.){3}["+S+"]{1,3}",T="["+C+"](?:["+C+"\\-]{0,61}["+C+"])?",P=function(e){return"(?=("+T+"))\\"+e},j=function(e){return"(?:"+P(e)+"(?:\\."+P(e+1)+"){0,126}|"+A+")"},N=(new RegExp("["+C+".\\-]*["+C+"\\-]"),new RegExp("[".concat(C,"]"))),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|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,L=new RegExp("[".concat(C,"!#$%&'*+/=?^_`{|}~-]")),R=new RegExp("^".concat(I.source,"$")),q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.localPartCharRegex=L,t.strictTldRegex=R,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,s={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},c=0,f=0,p=l;c<a;){var h=e.charAt(c);switch(f){case 0:m(h);break;case 1:g(e.charAt(c-1),h);break;case 2:v(h);break;case 3:b(h);break;case 4:y(h);break;case 5:w(h);break;case 6:x(h);break;case 7:E(h);break;default:i(f)}c++}return S(),r;function m(e){"m"===e?k(1):n.test(e)&&k()}function g(e,t){":"===e?n.test(t)?(f=2,p=new M(Object(u.a)(Object(u.a)({},p),{hasMailtoPrefix:!0}))):O():s[e]===t||(n.test(t)?f=2:"."===t?f=3:"@"===t?f=4:O())}function v(e){"."===e?f=3:"@"===e?f=4:n.test(e)||O()}function b(e){"."===e||"@"===e?O():n.test(e)?f=2:O()}function y(e){N.test(e)?f=5:O()}function w(e){"."===e?f=7:"-"===e?f=6:N.test(e)||S()}function x(e){"-"===e||"."===e?S():N.test(e)?f=5:S()}function E(e){"."===e||"-"===e?S():N.test(e)?(f=5,p=new M(Object(u.a)(Object(u.a)({},p),{hasDomainDot:!0}))):S()}function k(e){void 0===e&&(e=2),f=e,p=new M({idx:c})}function O(){f=0,p=l}function S(){if(p.hasDomainDot){var n=e.slice(p.idx,c);/[-.]$/.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}))}O()}},t}(g),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]*?["+k+"]"),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("[/?#](?:["+C+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+C+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,j(2),")","|","(","(//)?",/(?:www\.)/.source,j(6),")","|","(","(//)?",j(10)+"\\.",I.source,"(?![-"+_+"])",")",")","(?::[0-9]+)?","(?:"+l.source+")?"].join(""),"gi")),F=new RegExp("["+C+"]"),B=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=F,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=[],s=function(){var n=t[0],s=t[1],u=t[4],d=t[5],f=t[9],p=t.index,h=d||f,g=e.charAt(p-1);if(!D.isValid(n,s))return"continue";if(p>0&&"@"===g)return"continue";if(p>0&&h&&c.wordCharRegExp.test(g))return"continue";if(/\?$/.test(n)&&(n=n.substr(0,n.length-1)),c.matchHasUnbalancedClosingParen(n))n=n.substr(0,n.length-1);else{var v=c.matchHasInvalidCharAfterTld(n,s);v>-1&&(n=n.substr(0,v))}var b=["http://","https://"].find((function(e){return!!s&&-1!==s.indexOf(e)}));if(b){var y=n.indexOf(b);n=n.substr(y),s=s.substr(y),p+=y}var w=s?"scheme":u?"www":"tld",x=!!s;l.push(new m({tagBuilder:a,matchedText:n,offset:p,urlMatchType:w,url:n,protocolUrlMatch:x,protocolRelativeMatch:!!h,stripPrefix:o,stripTrailingSlash:r,decodePercentEncoding:i}))},c=this;null!==(t=n.exec(e));)s();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("^((.?//)?[-."+C+"]*[-"+C+"]\\.[-"+C+"]+)").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}(g),H=new RegExp("#[_".concat(C,"]{1,139}(?![_").concat(C,"])"),"g"),U=new RegExp("[^"+C+"]"),G=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,s=e.charAt(l-1);if(0===l||o.test(s)){var c=t[0],u=t[0].slice(1);a.push(new f({tagBuilder:i,matchedText:c,offset:l,serviceName:r,hashtag:u}))}}return a},t}(g),W=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=W,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]),s=0==t.index?"":e.substr(t.index-1,1),c=e.substr(t.index+i.length,1),u=!s.match(/\d/)&&!c.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}(g),K=new RegExp("@[_".concat(C,"]{1,50}(?![_").concat(C,"])"),"g"),Y=new RegExp("@[_.".concat(C,"]{1,30}(?![_").concat(C,"])"),"g"),$=new RegExp("@[-_.".concat(C,"]{1,50}(?![-_").concat(C,"])"),"g"),Z=new RegExp("@[_.".concat(C,"]{1,23}[_").concat(C,"](?![_").concat(C,"])"),"g"),X=new RegExp("[^"+C+"]"),Q=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:K,instagram:Y,soundcloud:$,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,s=e.charAt(l-1);if(0===l||r.test(s)){var c=t[0].replace(/\.+$/g,""),u=c.slice(1);a.push(new p({tagBuilder:i,matchedText:c,offset:l,serviceName:n,mention:u}))}}return a},t}(g);function J(e,t){for(var n,o=t.onOpenTag,r=t.onCloseTag,a=t.onText,l=t.onComment,s=t.onDoctype,c=new ee,d=0,f=e.length,p=0,h=0,m=c;d<f;){var g=e.charAt(d);switch(p){case 0:y(g);break;case 1:k(g);break;case 2:S(g);break;case 3:O(g);break;case 4:_(g);break;case 5:C(g);break;case 6:A(g);break;case 7:T(g);break;case 8:P(g);break;case 9:j(g);break;case 10:N(g);break;case 11:I(g);break;case 12:L(g);break;case 13:R(g);break;case 14:q(g);break;case 15:M(g);break;case 16:D(g);break;case 17:z(g);break;case 18:F(g);break;case 19:B(g);break;case 20:H(g);break;default:i(p)}d++}function y(e){"<"===e&&G()}function k(e){"!"===e?p=13:"/"===e?(p=2,m=new ee(Object(u.a)(Object(u.a)({},m),{isClosing:!0}))):"<"===e?G():v.test(e)?(p=3,m=new ee(Object(u.a)(Object(u.a)({},m),{isOpening:!0}))):(p=0,m=c)}function O(e){w.test(e)?(m=new ee(Object(u.a)(Object(u.a)({},m),{name:V()})),p=4):"<"===e?G():"/"===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()})),W()):v.test(e)||b.test(e)||":"===e||U()}function S(e){">"===e?U():v.test(e)?p=3:U()}function _(e){w.test(e)||("/"===e?p=12:">"===e?W():"<"===e?G():"="===e||x.test(e)||E.test(e)?U():p=5)}function C(e){w.test(e)?p=6:"/"===e?p=12:"="===e?p=7:">"===e?W():"<"===e?G():x.test(e)&&U()}function A(e){w.test(e)||("/"===e?p=12:"="===e?p=7:">"===e?W():"<"===e?G():x.test(e)?U():p=5)}function T(e){w.test(e)||('"'===e?p=8:"'"===e?p=9:/[>=`]/.test(e)?U():"<"===e?G():p=10)}function P(e){'"'===e&&(p=11)}function j(e){"'"===e&&(p=11)}function N(e){w.test(e)?p=4:">"===e?W():"<"===e&&G()}function I(e){w.test(e)?p=4:"/"===e?p=12:">"===e?W():"<"===e?G():(p=4,d--)}function L(e){">"===e?(m=new ee(Object(u.a)(Object(u.a)({},m),{isClosing:!0})),W()):p=4}function R(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 q(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 F(e){">"===e?W():"!"===e?p=19:"-"===e||(p=16)}function B(e){"-"===e?p=17:">"===e?W():p=16}function H(e){">"===e?W():"<"===e&&G()}function U(){p=0,m=c}function G(){p=1,m=new ee({idx:d})}function W(){var t=e.slice(h,m.idx);t&&a(t,h),"comment"===m.type?l(m.idx):"doctype"===m.type?s(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,s=a.length;l<s;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 G({tagBuilder:e,serviceName:this.hashtag}),new q({tagBuilder:e}),new V({tagBuilder:e}),new Q({tagBuilder:e,serviceName:this.mention}),new B({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 s({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="3.15.0",e.AnchorTagBuilder=s,e.HtmlTag=a,e.matcher={Email:q,Hashtag:G,Matcher:g,Mention:Q,Phone:V,Url:B},e.match={Email:d,Hashtag:f,Match:c,Mention:p,Phone:h,Url:m},e}();t.a=te},1640:function(e,t,n){"use strict";n.r(t),n.d(t,"renderPermissionStatus",(function(){return F})),n.d(t,"SignaturePanel",(function(){return ee})),n.d(t,"Spinner",(function(){return E}));n(23),n(8),n(24),n(10),n(145),n(9),n(11),n(29),n(54),n(1577),n(41),n(32),n(15),n(19),n(12),n(13),n(14),n(16),n(20),n(18),n(22),n(61),n(62),n(63),n(64),n(37),n(39),n(40),n(60);var o=n(0),r=n.n(o),i=n(6),a=n(347),l=n(2),s=n(1),c=n(4);n(58),n(46),n(52),n(294),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(588),n(1637),n(1638),n(85),n(36),n(100),n(112);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="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(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 f(e,t)}(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 f(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 p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new C(r||[]);return o(a,"_invoke",{value:k(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function h(){}function m(){}function g(){}var v={};s(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(A([])));y&&y!==t&&n.call(y,i)&&(v=y);var w=g.prototype=h.prototype=Object.create(v);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=d(e[r],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==u(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function k(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return T()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=O(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=d(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function O(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var r=d(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return m.prototype=g,o(w,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:m,configurable:!0}),m.displayName=s(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(E.prototype),s(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new E(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),s(w,l,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;_(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function h(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){h(i,o,r,a,l,"next",e)}function l(e){h(i,o,r,a,l,"throw",e)}a(void 0)}))}}var g=function(){var e=m(p().mark((function e(t,n,o,r,i,a,s){var c;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(t,n,o,r,i,a);case 2:return c=e.sent,s(l.a.setVerificationResult(c)),e.abrupt("return",c);case 5:case"end":return e.stop()}}),e)})));return function(t,n,o,r,i,a,l){return e.apply(this,arguments)}}(),v=function(){var e=m(p().mark((function e(t,n,o,r,i,a){var l,s,c,u,f,h,g;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=window.Core.PDFNet,s=l.VerificationResult,c=s.TrustStatus,u=s.DigestStatus,f=s.ModificationPermissionsStatus,h=s.DocumentStatus,g={},e.next=6,l.runWithCleanup(m(p().mark((function e(){var s,v,x,E,k,O,S,_,C,A,T,P,j,N,I,L,R,q,M,D,z,F,B,H,U,G,W,V,K,Y,$,Z,X,Q,J,ee,te,ne,oe,re,ie,ae,le,se,ce,ue,de,fe,pe,he,me,ge,ve,be,ye,we,xe;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getPDFDoc();case 2:return t=e.sent,e.next=5,l.VerificationOptions.create(l.VerificationOptions.SecurityLevel.e_compatibility_and_archiving);case 5:if(s=e.sent,!i){e.next=9;break}return e.next=9,s.enableOnlineCRLRevocationChecking(!0);case 9:if(null!==a){e.next=14;break}return e.next=12,s.setRevocationProxyPrefix("https://proxy.pdftron.com");case 12:e.next=17;break;case 14:if(void 0===a){e.next=17;break}return e.next=17,s.setRevocationProxyPrefix(a);case 17:v=d(n),e.prev=18,E=p().mark((function e(){var t,n,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"!=typeof(t=x.value)){e.next=13;break}return e.prev=2,e.next=5,s.addTrustedCertificateFromURL(t);case 5:e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(2),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.abrupt("return","continue");case 11:e.next=41;break;case 13:if(!(t instanceof File||"[object File]"===Object.prototype.toString.call(t))){e.next=31;break}return n=new FileReader,o=new Promise((function(e,o){n.addEventListener("load",function(){var t=m(p().mark((function t(n){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e(new Uint8Array(n.target.result));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),n.addEventListener("error",(function(){o("Error reading the local certificate")})),n.readAsArrayBuffer(t)})),e.prev=16,e.t1=s,e.next=20,o;case 20:return e.t2=e.sent,e.next=23,e.t1.addTrustedCertificate.call(e.t1,e.t2);case 23:e.next=29;break;case 25:return e.prev=25,e.t3=e.catch(16),console.error("Error encountered when trying to load certificate: ".concat(e.t3)+"Certificate will not be used as part of the verification process."),e.abrupt("return","continue");case 29:e.next=41;break;case 31:if(!(t instanceof ArrayBuffer||t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray)){e.next=41;break}return e.prev=32,e.next=35,s.addTrustedCertificate(t);case 35:e.next=41;break;case 37:return e.prev=37,e.t4=e.catch(32),console.error("Error encountered when trying to load certificate: ".concat(e.t4)+"Certificate will not be used as part of the verification process."),e.abrupt("return","continue");case 41:case"end":return e.stop()}}),e,null,[[2,7],[16,25],[32,37]])})),v.s();case 21:if((x=v.n()).done){e.next=28;break}return e.delegateYield(E(),"t0",23);case 23:if("continue"!==e.t0){e.next=26;break}return e.abrupt("continue",26);case 26:e.next=21;break;case 28:e.next=33;break;case 30:e.prev=30,e.t1=e.catch(18),v.e(e.t1);case 33:return e.prev=33,v.f(),e.finish(33);case 36:k=d(o),e.prev=37,k.s();case 39:if((O=k.n()).done){e.next=70;break}if(S=O.value,_=S.constructor.name,C=["ArrayBuffer","Int8Array","Uint8Array","Uint8ClampedArray"],A=void 0,"Blob"!==_){e.next=50;break}return e.next=47,S.arrayBuffer();case 47:A=e.sent,e.next=56;break;case 50:if(!C.includes(_)){e.next=54;break}A=S,e.next=56;break;case 54: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(C,["Blob"]).join("|"))),e.abrupt("continue",68);case 56:return e.prev=56,e.next=59,l.FDFDoc.createFromMemoryBuffer(A);case 59:return T=e.sent,e.next=62,s.loadTrustList(T);case 62:e.next=68;break;case 64:return e.prev=64,e.t2=e.catch(56),console.error("Error encountered when trying to load certificate: ".concat(e.t2,". ")+"Certificate will not be used as part of the verification process."),e.abrupt("continue",68);case 68:e.next=39;break;case 70:e.next=75;break;case 72:e.prev=72,e.t3=e.catch(37),k.e(e.t3);case 75:return e.prev=75,k.f(),e.finish(75);case 78:return e.next=80,t.getFieldIteratorBegin();case 80:P=e.sent;case 81:return e.next=83,P.hasNext();case 83:if(!e.sent){e.next=275;break}return e.next=86,P.current();case 86:return j=e.sent,e.next=89,j.isValid();case 89:if(e.t4=!e.sent,e.t4){e.next=96;break}return e.next=93,j.getType();case 93:e.t5=e.sent,e.t6=l.Field.Type.e_signature,e.t4=e.t5!==e.t6;case 96:if(!e.t4){e.next=98;break}return e.abrupt("continue",272);case 98:return e.next=100,l.DigitalSignatureField.createFromField(j);case 100:return N=e.sent,e.prev=101,e.next=104,N.verify(s);case 104:return I=e.sent,e.next=107,N.getSDFObj();case 107:return e.next=109,e.sent.getObjNum();case 109:return L=e.sent,R=void 0,q=void 0,M=void 0,D=void 0,z=void 0,F=void 0,B=void 0,H=void 0,U=void 0,G={},W={},e.next=123,N.hasCryptographicSignature();case 123:if(!(V=e.sent)){e.next=177;break}return e.next=127,N.getSubFilter();case 127:if((K=e.sent)!==l.DigitalSignatureField.SubFilterType.e_adbe_pkcs7_detached){e.next=142;break}return e.next=131,N.getSignerCertFromCMS();case 131:return Y=e.sent,e.next=134,Y.getSubjectField();case 134:return $=e.sent,e.next=137,w($);case 137:if(e.t7=e.sent,e.t7){e.next=140;break}e.t7={};case 140:Z=e.t7,R=Z.e_commonName;case 142:if(K===l.DigitalSignatureField.SubFilterType.e_ETSI_RFC3161){e.next=171;break}if(R){e.next=152;break}return e.next=146,N.getSignatureName();case 146:if(e.t8=e.sent,e.t8){e.next=151;break}return e.next=150,N.getContactInfo();case 150:e.t8=e.sent;case 151:R=e.t8;case 152:return e.next=154,N.getSigningTime();case 154:return q=e.sent,e.next=157,q.isValid();case 157:if(!e.sent){e.next=161;break}q=b(q,r),e.next=162;break;case 161:q=null;case 162:return e.next=164,N.getContactInfo();case 164:return z=e.sent,e.next=167,N.getLocation();case 167:return F=e.sent,e.next=170,N.getReason();case 170:B=e.sent;case 171:return e.next=173,N.getDocumentPermissions();case 173:return M=e.sent,e.next=176,N.isCertification();case 176:D=e.sent;case 177:return e.next=179,I.getVerificationStatus();case 179:return X=e.sent,e.next=182,I.getDocumentStatus();case 182:return Q=e.sent,e.next=185,I.getDigestStatus();case 185:return J=e.sent,e.next=188,I.getTrustStatus();case 188:return ee=e.sent,e.next=191,I.getPermissionsStatus();case 191:return te=e.sent,e.next=194,I.getDigestAlgorithm();case 194:return ne=e.sent,e.t9=Promise,e.next=198,I.getDisallowedChanges();case 198:return e.t10=e.sent.map(function(){var e=m(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getObjNum();case 2:return e.t0=e.sent,e.next=5,t.getTypeAsString();case 5:return e.t1=e.sent,e.abrupt("return",{objnum:e.t0,type:e.t1});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=201,e.t9.all.call(e.t9,e.t10);case 201:return oe=e.sent,re=ee===c.e_trust_verified,ie=void 0,ae=void 0,le=void 0,se=void 0,e.next=209,I.hasTrustVerificationResult();case 209:if(!e.sent){e.next=260;break}return e.next=213,I.getTrustVerificationResult();case 213:return ce=e.sent,e.next=216,ce.wasSuccessful();case 216:return ae=e.sent,e.next=219,ce.getResultString();case 219:return ie=e.sent,e.next=222,ce.getTimeOfTrustVerificationEnum();case 222:return le=e.sent,e.next=225,ce.getTimeOfTrustVerification();case 225:return(ue=e.sent)&&(se=y(ue,r)),e.next=229,ce.getCertPath();case 229:if(!(de=e.sent).length){e.next=260;break}return fe=de[0],e.next=234,fe.getIssuerField();case 234:return pe=e.sent,e.next=237,w(pe);case 237:return he=e.sent,Object.assign(G,he),e.next=241,fe.getSubjectField();case 241:return me=e.sent,e.next=244,w(me);case 244:return ge=e.sent,Object.assign(W,ge),ve=de[de.length-1],e.prev=247,e.next=250,ve.getNotBeforeEpochTime();case 250:return be=e.sent,e.next=253,ve.getNotAfterEpochTime();case 253:ye=e.sent,H=ye>=ue&&ue>=be,e.next=260;break;case 257:e.prev=257,e.t11=e.catch(247),e.t11.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(e.t11));case 260:return we=void 0,we=X?"digital_signature_valid":Q!==h.e_no_error||J!==u.e_digest_verified&&J!==u.e_digest_verification_disabled||ee===c.e_no_trust_status||te!==f.e_unmodified&&te!==f.e_has_allowed_changes&&te!==f.e_permissions_verification_disabled?"digital_signature_error":"digital_signature_warning",R?U=R:!R&&W.e_commonName&&(U=W.e_commonName),e.next=265,j.getName();case 265:xe=e.sent,g[xe]={signed:V,signer:R,signerName:U,signTime:q,verificationStatus:X,documentStatus:Q,digestStatus:J,trustStatus:ee,permissionStatus:te,disallowedChanges:oe,trustVerificationResultBoolean:ae,trustVerificationResultString:ie,timeOfTrustVerificationEnum:le,trustVerificationTime:se,id:L,badgeIcon:we,validSignerIdentity:re,digestAlgorithm:ne,documentPermission:M,isCertification:D,contactInfo:z,location:F,reason:B,issuerField:G,subjectField:W,validAtTimeOfSigning:H},e.next=272;break;case 269:e.prev=269,e.t12=e.catch(101),console.error(e.t12);case 272:P.next(),e.next=81;break;case 275:case"end":return e.stop()}}),e,null,[[18,30,33,36],[37,72,75,78],[56,64],[101,269],[247,257]])}))));case 6:return e.abrupt("return",g);case 7:case"end":return e.stop()}}),e)})));return function(t,n,o,r,i,a){return e.apply(this,arguments)}}(),b=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"})},y=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"})},w=function(){var e=m(p().mark((function e(t){var n,o,r,i,a,l,s,c;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},e.next=3,t.getAllAttributesAndValues();case 3:o=e.sent,r=d(o),e.prev=5,r.s();case 7:if((i=r.n()).done){e.next=21;break}return a=i.value,e.next=11,a.getAttributeTypeOID();case 11:return l=e.sent,e.next=14,l.getRawValue();case 14:return s=e.sent,e.next=17,a.getStringValue();case 17:c=e.sent,n[x(s)]=c;case 19:e.next=7;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(5),r.e(e.t0);case 26:return e.prev=26,r.f(),e.finish(26);case 29:return e.abrupt("return",n);case 30:case"end":return e.stop()}}),e,null,[[5,23,26,29]])})));return function(t){return e.apply(this,arguments)}}(),x=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)]},E=(n(1618),function(){return r.a.createElement("div",{className:"spinner"})}),k=(n(27),n(28),n(25),n(3)),O=n.n(k),S=n(17),_=n.n(S),C=(n(90),n(119)),A=n.n(C),T=n(21);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(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 j(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 j(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}var N=function(e){var t=e.rect,n=P(Object(o.useState)(!1),2),i=n[0],a=n[1];return Object(o.useEffect)((function(){var e=s.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&&A.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(T.a)().querySelector("#app"))},I=n(95),L=n(1538),R=n(42);n(1620);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 M(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return D(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 D(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 D(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,n){return(t=function(e){var t=function(e,t){if("object"!==q(e)||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=function(e){var t,n=e.isCertification,o=e.ModificationPermissionsStatus,i=e.permissionStatus,a=e.translate;if(e.digestStatus===e.DigestStatusErrorCodes.e_digest_invalid)return r.a.createElement("p",null,a("digitalSignatureVerification.digestStatus.documentHasBeenAltered"));var l=(z(t={},o.e_invalidated_by_disallowed_changes,"digitalSignatureVerification.permissionStatus.invalidatedByDisallowedChanges"),z(t,o.e_has_allowed_changes,"digitalSignatureVerification.permissionStatus.hasAllowedChanges"),z(t,o.e_unmodified,n?"".concat(a("digitalSignatureVerification.permissionStatus.unmodified")," ").concat(a("digitalSignatureVerification.certified"),"."):"".concat(a("digitalSignatureVerification.permissionStatus.unmodified")," ").concat(a("digitalSignatureVerification.signed"),".")),z(t,o.e_permissions_verification_disabled,"digitalSignatureVerification.permissionStatus.permissionsVerificationDisabled"),z(t,o.e_no_permissions_status,"digitalSignatureVerification.permissionStatus.noPermissionsStatus"),z(t,o.e_unsupported_permissions_features,"digitalSignatureVerification.permissionStatus.unsupportedPermissionsFeatures"),t);return r.a.createElement("p",null,a(l[i]||""))},B={name:O.a.string.isRequired,onClick:O.a.func,field:O.a.instanceOf(window.Core.Annotations.Forms.Field)},H=function(e){var t,n,u=e.name,d=e.field,f=Object(i.e)((function(e){return c.a.getVerificationResult(e,u)})),p=M(Object(o.useState)(null),2),h=p[0],m=p[1],g=M(Object(o.useState)(!1),2),v=g[0],b=g[1],y=window.Core.PDFNet,w=y.VerificationResult,x=y.VerificationOptions.TimeMode,E=w.ModificationPermissionsStatus,k=w.DigestStatus,O=M(Object(a.a)(),1)[0],S=f.signed,C=f.signTime,A=f.verificationStatus,T=f.permissionStatus,P=f.disallowedChanges,j=f.trustVerificationResultBoolean,q=f.timeOfTrustVerificationEnum,D=f.trustVerificationTime,z=f.badgeIcon,B=f.isCertification,H=f.contactInfo,U=f.location,G=f.reason,W=f.signerName,V=f.digestStatus,K=Object(i.d)(),Y=function(){!function(e){if(e.widgets.length){var t=e.widgets[0];s.a.jumpToAnnotation(t);var n=s.a.getScrollViewElement(),o=n.scrollLeft,r=n.scrollTop,i=t.getRect(),a=s.a.getDisplayModeObject().pageToWindow({x:i.x1,y:i.y1},t.PageNumber),l=s.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)},$=Object(I.a)((function(){K(l.a.setSignatureValidationModalWidgetName(u)),K(l.a.openElement("signatureValidationModal"))}));return r.a.createElement("div",{className:"signature-widget-info"},S?r.a.createElement(r.a.Fragment,null,r.a.createElement(L.a,{labelHeader:(n=O(B?"digitalSignatureVerification.Certified":"digitalSignatureVerification.Signed"),n+=" ".concat(O("digitalSignatureVerification.by")," ").concat(W||O("digitalSignatureModal.unknown")),C&&(n+=" ".concat(O("digitalSignatureVerification.on")," ").concat(C)),n),iconGlyph:z,useI18String:!1,onClick:Y,onKeyDown:Y},r.a.createElement("div",{className:"verificationDetails",tabIndex:-1},r.a.createElement("div",{className:"header"},(t=O(B?"digitalSignatureVerification.Certification":"digitalSignatureVerification.Signature"),r.a.createElement("div",{className:"title"},r.a.createElement("p",null,O(A?"digitalSignatureVerification.verificationStatus.valid":"digitalSignatureVerification.verificationStatus.failed",{verificationType:t})))),r.a.createElement("ul",{className:"body"},r.a.createElement("li",null,F({isCertification:B,ModificationPermissionsStatus:E,permissionStatus:T,translate:O,digestStatus:V,DigestStatusErrorCodes:k})),P.map((function(e){var t=e.objnum,n=e.type;return r.a.createElement("li",{key:t},r.a.createElement("p",null,O("digitalSignatureVerification.disallowedChange",{type:n,objnum:t})))})),function(){var e;switch(q){case x.e_current:e=O("digitalSignatureVerification.trustVerification.current");break;case x.e_signing:e=O("digitalSignatureVerification.trustVerification.signing");break;case x.e_timestamp:e=O("digitalSignatureVerification.trustVerification.timestamp");break;default:console.warn("Unexpected pdftron::PDF::VerificationOptions::TimeMode: ".concat(q))}return r.a.createElement(r.a.Fragment,null,r.a.createElement("li",null,r.a.createElement("p",null,O(j?"digitalSignatureVerification.trustVerification.verifiedTrust":"digitalSignatureVerification.trustVerification.noTrustVerification"))),r.a.createElement("li",null,r.a.createElement("p",null,D)),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:$,tabIndex:0,className:"signatureProperties link","aria-label":"Open signature properties modal"},r.a.createElement("p",{className:"bold underline"},O("digitalSignatureVerification.signatureProperties"))))))),r.a.createElement("div",{className:"header header-with-arrow"},H||U||G?r.a.createElement("div",{className:"signatureDetails",tabIndex:-1},r.a.createElement("div",{className:"title collapsible"},r.a.createElement(R.a,{img:"icon-chevron-right",className:_()({arrow:!0,expanded:v}),ariaExpanded:v,isActive:v,ariaLabel:O("digitalSignatureVerification.signatureDetails.signatureDetails"),onClick:function(){return b(!v)}}),r.a.createElement("p",null,O("digitalSignatureVerification.signatureDetails.signatureDetails"))),v&&r.a.createElement("ul",{className:"body"},r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(O("digitalSignatureVerification.signatureDetails.contactInformation"),":")),r.a.createElement("p",{className:"result-for-header"},H||O("digitalSignatureVerification.signatureDetails.noContactInformation"))),r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(O("digitalSignatureVerification.signatureDetails.location"),":")),r.a.createElement("p",{className:"result-for-header"},U||O("digitalSignatureVerification.signatureDetails.noLocation"))),r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(O("digitalSignatureVerification.signatureDetails.reason"),":")),r.a.createElement("p",{className:"result-for-header"},G||O("digitalSignatureVerification.signatureDetails.noReason"))),C&&r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(O("digitalSignatureVerification.signatureDetails.signingTime"),":")),r.a.createElement("p",{className:"result-for-header"},C||O("digitalSignatureVerification.signatureDetails.noSigningTime"))))):null))):r.a.createElement(L.a,{labelHeader:O("digitalSignatureVerification.unsignedSignatureField",{fieldName:d.name}),iconGlyph:"digital_signature_empty",useI18String:!1,onClick:Y,onKeyDown:Y}),r.a.createElement(N,{rect:h}))};H.propTypes=B;var U=H,G=(n(1622),n(43)),W=n(34);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 K(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Q(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/facebook/regenerator/blob/main/LICENSE */Y=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new S(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&n.call(v,i)&&(m=v);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==V(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return C()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new w(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function $(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function Z(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){$(i,o,r,a,l,"next",e)}function l(e){$(i,o,r,a,l,"throw",e)}a(void 0)}))}}function X(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||Q(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 Q(e,t){if(e){if("string"==typeof e)return J(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)?J(e,t):void 0}}function J(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}var ee=function(){var e=Object(i.d)(),t=X(Object(o.useState)([]),2),n=t[0],u=t[1],d=X(Object(o.useState)(!1),2),f=d[0],p=d[1],h=X(Object(o.useState)(""),2),m=h[0],v=h[1],b=X(Object(o.useState)(s.a.getDocument()),2),y=b[0],w=b[1],x=X(Object(i.e)((function(e){return[c.a.isElementDisabled(e,"signaturePanel"),c.a.getCertificates(e),c.a.getTrustLists(e),c.a.getCurrentLanguage(e),c.a.getIsRevocationCheckingEnabled(e),c.a.getRevocationProxyPrefix(e)]})),6),k=x[0],O=x[1],S=x[2],_=x[3],C=x[4],A=x[5],T=X(Object(a.a)(),1)[0],P=function(){var e=Z(Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:w(s.a.getDocument());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=Object(o.useCallback)((function(){p(!0),e(l.a.setVerificationResult({}))}),[p,e]),N=function(e,t){var n=s.a.getAnnotationManager().getFormFieldCreationManager().isInFormFieldCreationMode();"add"===t?L(s.a.getAnnotationManager().getAnnotationsList()):"delete"===t&&n&&R(e)},I=function(){var e=s.a.getAnnotationManager().getAnnotationsList();L(e)},L=function(e){var t=[];e.forEach((function(e){e instanceof window.Core.Annotations.SignatureWidgetAnnotation&&t.push(e.getField())}));var n=new Set(t);u(K(n))},R=function(e){e.forEach((function(e){q(e)})),I()},q=function(e){if(e instanceof window.Core.Annotations.WidgetAnnotation){var t=s.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 s.a.addEventListener("documentLoaded",P),s.a.addEventListener("documentUnloaded",j),s.a.addEventListener("annotationChanged",N),s.a.addEventListener("formFieldCreationModeStarted",M),s.a.addEventListener("formFieldCreationModeEnded",M),function(){s.a.removeEventListener("documentLoaded",P),s.a.removeEventListener("documentUnloaded",j),s.a.removeEventListener("annotationChanged",N),s.a.removeEventListener("formFieldCreationModeStarted",M),s.a.removeEventListener("formFieldCreationModeEnded",M)}}),[j]),Object(o.useEffect)((function(){y?s.a.getAnnotationsLoadedPromise().then((function(){p(!0),g(y,O,S,_,C,A,e).then(function(){var e=Z(Y().mark((function e(t){var n;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=s.a.getAnnotationManager().getFieldManager(),u(Object.keys(t).map((function(e){return n.getField(e)}))),v("");case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){e&&e.message?v(e.message):console.error(e)})).then((function(){I()})).finally((function(){p(!1)}))})):p(!0)}),[O,y,e,_]),k)return null;return r.a.createElement("div",{className:"Panel SignaturePanel","data-element":"signaturePanel"},function(){var e;if(f)e=r.a.createElement(E,null);else if("Error reading the local certificate"===m)e=T("digitalSignatureVerification.panelMessages.localCertificateError");else if("Download Failed"===m)e=T("digitalSignatureVerification.panelMessages.certificateDownloadError");else{if(n.length)return null;e=T("digitalSignatureVerification.panelMessages.noSignatureFields")}return r.a.createElement("div",{className:"empty-panel-container"},r.a.createElement(G.a,{className:"empty-icon",glyph:W.c[W.e.SIGNATURE].icon}),r.a.createElement("div",{className:"empty-message"},e))}(),!f&&n.length>0&&n.map((function(e,t){return r.a.createElement(U,{key:t,name:e.name,collapsible:!0,field:e})})))};t.default=ee},1645:function(e,t,n){var o=n(30),r=n(1646);"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||{}},1646:function(e,t,n){(e.exports=n(31)(!1)).push([e.i,"",""])},1649:function(e,t,n){var o=n(1650)({"&":"&","<":"<",">":">",'"':""","'":"'"});e.exports=o},1650:function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},1651:function(e,t,n){var o=n(30),r=n(1652);"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||{}},1652:function(e,t,n){(e.exports=n(31)(!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-left:32px}.panel-list-row .checkbox{margin:0;position:relative;left:0;left: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-left: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-left:32px}',""])},1653:function(e,t,n){var o=n(30),r=n(1654);"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||{}},1654:function(e,t,n){(e.exports=n(31)(!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}",""])},1655:function(e,t,n){var o=n(30),r=n(1656);"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||{}},1656:function(e,t,n){(t=e.exports=n(31)(!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-right: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-left:var(--padding);margin-right:var(--padding);border-top:1px solid var(--focus-border);position:relative}.outline-drag-line:before{content:"";display:block;position:absolute;width:5px;height:5px;top:-3px;left:0;background-color:var(--focus-border);border-radius:50%}',""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1657:function(e,t,n){var o=n(30),r=n(1658);"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||{}},1658:function(e,t,n){(t=e.exports=n(31)(!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.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"}},1659:function(e,t,n){var o=n(30),r=n(1660);"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||{}},1660:function(e,t,n){(t=e.exports=n(31)(!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-left: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"}},1661:function(e,t,n){var o=n(30),r=n(1662);"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||{}},1662:function(e,t,n){(t=e.exports=n(31)(!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{top:0;width:100%;height:100%}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .fileAttachmentPanel{top: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-left:var(--fileAttachment-title-padding);margin:12px 0}.fileAttachmentPanel .section ul.downloadable{padding-left: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-left:10px;list-style-type:none}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1663:function(e,t,n){var o=n(30),r=n(1664);"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||{}},1664:function(e,t,n){(t=e.exports=n(31)(!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"}},1665:function(e,t,n){var o=n(30),r=n(1666);"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||{}},1666:function(e,t,n){(t=e.exports=n(31)(!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;left:50%;top:50%;transform:translate(-50%,-50%)}.Thumbnail .container .checkbox{position:absolute;border-radius:4px;z-index:4}.Thumbnail .container .default{top:3%;right:15%}.Thumbnail .container .rotated{top:15%;right: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"}},1667:function(e,t,n){(t=e.exports=n(31)(!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-left:16px;margin-right:16px;margin-bottom:16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .documentControlsContainer{margin-left:16px;margin-right: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;bottom:1px;right:1px;width:0;height:0;border-left:4px solid transparent;border-right: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"}},1668:function(e,t,n){var o=n(30),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(31)(!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:4px 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-left: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-left:2px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1670:function(e,t,n){var o=n(30),r=n(1671);"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||{}},1671:function(e,t,n){(t=e.exports=n(31)(!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-left: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-left: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 .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"}},1672:function(e,t,n){var o=n(30),r=n(1673);"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||{}},1673:function(e,t,n){(t=e.exports=n(31)(!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;bottom: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-left: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-right:12px;cursor:pointer;position:relative;top: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;right:10px;bottom: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{left: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-left: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-right:0;margin-right:16px}.reply-area-multi-container.modular-ui .reply-button-container{margin-right:16px;margin-bottom:12px}.reply-area-multi-container.modular-ui .reply-button{left:0;right:0}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1674:function(e,t,n){var o=n(30),r=n(1675);"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||{}},1675:function(e,t,n){(e.exports=n(31)(!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;right:20px;bottom:52px;pointer-events:auto}.multi-style-container *{box-sizing:border-box}",""])},1676:function(e,t,n){var o=n(30),r=n(1677);"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||{}},1677:function(e,t,n){(e.exports=n(31)(!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;bottom:0;width:100%;z-index:100}.notes-panel-container .multi-select-footer .close-container{margin-top:auto;right:26px;position:absolute}",""])},1678:function(e,t,n){var o=n(30),r=n(1679);"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||{}},1679:function(e,t,n){(t=e.exports=n(31)(!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-right: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-right:8px}[data-element=notesPanelHeader] .sort-row .sort-container .picked-option{text-align:left}[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:4px 8px 6px}[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-left:8px;padding-right: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;bottom:0;right: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"}},1680:function(e,t,n){var o=n(30),r=n(1681);"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||{}},1681:function(e,t,n){(t=e.exports=n(31)(!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-left: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-left:1px solid var(--side-panel-border)}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container{top:0;right:0;height:100%;width:100%}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container{top:0;right:0;height:100%;width:100%}}.notes-panel-container .NotesPanel{width:100%;padding-left: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-right: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-right: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-right:16px}.notes-panel-container .NotesPanel .preview-all-changes .divider{height:1px;width:100%;background:var(--divider);position:absolute;top: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-right: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-right: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"}},1687:function(e,t,n){var o=n(30),r=n(1688);"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||{}},1688:function(e,t,n){(t=e.exports=n(31)(!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"}},1689:function(e,t,n){var o=n(30),r=n(1690);"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||{}},1690:function(e,t,n){(e.exports=n(31)(!1)).push([e.i,"",""])},1691:function(e,t,n){var o=n(30),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){(t=e.exports=n(31)(!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"}},1693:function(e,t,n){"use strict";n(27),n(28),n(12),n(13),n(8),n(25),n(22),n(40),n(44),n(39),n(86),n(37),n(14),n(10),n(9),n(11);var o=n(0),r=n.n(o),i=n(3),a=n.n(i),l=n(6),s=n(4);n(1645);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 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,g(o.key),o)}}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(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=m(e);if(t){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===c(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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){var t=function(e,t){if("object"!==c(e)||null===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:String(t)}var v,b,y,w=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(a,e);var t,n,o,i=p(a);function a(){return u(this,a),i.apply(this,arguments)}return t=a,(n=[{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(t.prototype,n),o&&d(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.a.PureComponent);v=w,b="propTypes",y={isDisabled:a.a.bool,className:a.a.string.isRequired,dataElement:a.a.string.isRequired,children:a.a.node},(b=g(b))in v?Object.defineProperty(v,b,{value:y,enumerable:!0,configurable:!0,writable:!0}):v[b]=y;var x=Object(l.b)((function(e,t){return{isDisabled:s.a.isElementDisabled(e,t.dataElement)}}))(w);t.a=x},1694:function(e,t,n){"use strict";n.r(t);n(224),n(36),n(90),n(19),n(12),n(13),n(8),n(14),n(10),n(9),n(11),n(16),n(15),n(20),n(18);var o=n(0),r=n.n(o),i=n(17),a=n.n(i),l=n(3),s=n.n(l),c=n(6),u=n(1811),d=n(1812),f=n(592),p=n(1530),h=n(1),m=n(2),g=n(4),v=n(55),b=n(67),y=n(447),w=n(38),x=n(1556),E=n(1592),k=n(75);n(1655),n(1523);function O(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(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 S(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 S(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}var _={outline:s.a.object.isRequired,setMultiSelected:s.a.func,moveOutlineInward:s.a.func.isRequired,moveOutlineBeforeTarget:s.a.func.isRequired,moveOutlineAfterTarget:s.a.func.isRequired,connectDragSource:s.a.func,connectDragPreview:s.a.func,connectDropTarget:s.a.func,isDragging:s.a.bool,isDraggedUpwards:s.a.bool,isDraggedDownwards:s.a.bool},C=Object(o.forwardRef)((function(e,t){var n=e.outline,i=e.setMultiSelected,l=e.isDragging,s=e.isDraggedUpwards,u=e.isDraggedDownwards,d=e.connectDragSource,p=e.connectDragPreview,v=e.connectDropTarget,b=e.moveOutlineInward,S=e.moveOutlineBeforeTarget,_=e.moveOutlineAfterTarget,C=Object(c.e)((function(e){return g.a.getOutlines(e)})),A=Object(o.useContext)(x.a),T=A.setActiveOutlinePath,P=A.activeOutlinePath,j=A.isOutlineActive,N=A.setAddingNewOutline,I=A.isAddingNewOutline,L=A.isMultiSelectMode,R=A.shouldAutoExpandOutlines,q=A.isOutlineEditable,M=A.updateOutlines,D=y.a.getPath(n),z=O(Object(o.useState)(R),2),F=z[0],B=z[1],H=O(Object(o.useState)(!1),2),U=H[0],G=H[1],W=O(Object(o.useState)(!1),2),V=W[0],K=W[1],Y=O(Object(o.useState)(void 0),2),$=Y[0],Z=Y[1],X=Object(c.d)(),Q=Object(o.useRef)(null);d(Q),p(Object(f.a)(),{captureDraggingState:!0}),v(Q);var J=l?.5:1;Object(o.useImperativeHandle)(t,(function(){return{getNode:function(){return Q.current}}})),Object(o.useEffect)((function(){null!==P&&P!==D&&P.startsWith(D)&&B(!0)}),[P,I,n]),Object(o.useLayoutEffect)((function(){B(R)}),[R]),Object(o.useLayoutEffect)((function(){G(!1),K(!1),I&&P===D&&B(!0)}),[C]);var ee,te,ne,oe,re=Object(o.useCallback)((function(){h.a.goToOutline(n),T(D===P?null:D),I&&(N(!1),M()),Object(w.k)()&&X(m.a.closeElement("leftPanel"))}),[X,T,P,I,n]),ie=j(n);return r.a.createElement("div",{ref:!I&&L&&q?Q:null,className:"outline-drag-container",style:{opacity:J}},r.a.createElement("div",{className:"outline-drag-line",style:{opacity:s?1:0}}),r.a.createElement(k.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($)}},r.a.createElement(E.a,{text:n.getName(),outlinePath:D,isOutlineRenaming:U,setOutlineRenaming:G,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:F,setIsExpanded:B,moveOutlineInward:b,moveOutlineBeforeTarget:S,moveOutlineAfterTarget:_},n.getChildren())),r.a.createElement("div",{className:"outline-drag-line",style:{opacity:u?1:0}}),I&&ie&&r.a.createElement(k.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(E.a,{isAdding:!0,text:"",onCancel:function(){return N(!1)}})))}));C.propTypes=_;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 s=r.index,c=a.index;if(r.parent!==a.parent||s!==c){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(b.a)(v.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,s=e.moveOutlineBeforeTarget,c=e.moveOutlineAfterTarget;if(i){switch(o.dropLocation){case p.b.ON_TARGET_HORIZONTAL_MIDPOINT:l(r,a);break;case p.b.ABOVE_TARGET:s(r,a);break;case p.b.BELOW_TARGET:c(r,a)}i.classList.remove("isNesting"),Object(b.a)(v.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()}}))(C));A.propTypes=_;var T=A;t.default=T},1702:function(e,t,n){"use strict";n.r(t);n(36),n(20),n(9),n(29),n(8),n(79),n(41),n(23),n(24),n(100),n(101),n(128),n(46),n(52),n(124),n(591),n(25),n(19),n(12),n(13),n(14),n(10),n(11),n(16),n(15),n(18),n(27),n(28),n(22),n(32),n(47),n(49),n(48);var o=n(110),r=n.n(o),i=n(0),a=n.n(i),l=n(6),s=n(1583),c=n(197),u=n(17),d=n.n(u),f=n(38),p=(n(58),n(44),n(4)),h=n(2),m=(n(90),n(116),n(145),n(54),n(61),n(62),n(63),n(64),n(37),n(39),n(40),n(60),n(223)),g=n(1),v=n(3),b=n.n(v),y=n(123),w=n(42),x=(n(1663),n(5)),E=n(94);var k=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(E.a,{dataElement:x.a.PAGE_MANIPULATION_OVERLAY_BUTTON,toggleElement:x.a.PAGE_MANIPULATION,img:"icon-tool-more",title:"option.thumbnailPanel.moreOptions"}))},O=n(57),S=n(347),_=n(255);function C(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return A(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 A(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 A(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}var T={index:b.a.number.isRequired},P=function(e){var t=e.index,n=Object(S.a)().t,o=C(Object(l.e)((function(e){return[p.a.isElementDisabled(e,"thumbnailControl")]})),1)[0],r=C(Object(l.e)((function(e){return[p.a.isElementDisabled(e,x.a.PAGE_MANIPULATION_OVERLAY_BUTTON)]})),1)[0],s=C(Object(l.e)((function(e){return[p.a.pageDeletionConfirmationModalEnabled(e),p.a.getSelectedThumbnailPageIndexes(e)]})),2),c=s[0],u=s[1],f=Object(l.d)(),h=Object(i.useRef)([]),m=Object(i.useRef)(null),v=C(Object(l.e)((function(e){return[p.a.getCurrentPage(e),p.a.getThumbnailControlMenuItems(e),p.a.getFeatureFlags(e)]}),l.c),3),b=v[0],E=v[1],A=v[2],T=u.length>0?u.map((function(e){return e+1})):[t+1],P=T.includes(b),j=A.customizableUI;P||(T=[b]);var N=g.a.getDocument(),I=null==N?void 0:N.type,L=I===O.a.XOD,R=I===O.a.OFFICE||I===O.a.LEGACY_OFFICE,q={thumbRotateClockwise:a.a.createElement(w.a,{className:"rotate-button",img:"icon-header-page-manipulation-page-rotation-clockwise-line",onClick:function(){return Object(y.o)(T)},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)(T)},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)(T,f,c)},title:"option.thumbnailPanel.delete",dataElement:"thumbDelete",onClickAnnouncement:"".concat(n("action.delete")," ").concat(n("action.modal")," ").concat(n("action.isOpen"))})},M=!1,D=[],z=E.map((function(e){var t=e.dataElement,n=t,o=q[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(b)},title:l,dataElement:t})}return o?a.a.cloneElement(o,{key:n}):null}));return Object(i.useEffect)((function(){h.current=Object(_.a)(m.current),h.current.length>0&&h.current.forEach((function(e){e.tabIndex=-1}))}),[h.current,z]),o?null:L||R||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)(T)},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)(T)},title:"option.thumbnailPanel.rotatePageClockwise",dataElement:"thumbRotateClockwise"})):a.a.createElement("div",{className:d()({"thumbnailControls-overlay":!0,"custom-buttons":M,"modular-ui":j}),"data-element":"thumbnailControl",ref:m},z,r?null:a.a.createElement(k,{className:"more-options",pageIndex:t}))};P.propTypes=T;var j=P,N=n(388),I=(n(1665),n(1355)),L=n(21);function R(e){return(R="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 q(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||F(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/facebook/regenerator/blob/main/LICENSE */M=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new S(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&n.call(v,i)&&(m=v);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==R(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return C()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new w(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function D(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||F(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 F(e,t){if(e){if("string"==typeof e)return B(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)?B(e,t):void 0}}function B(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}var H=a.a.forwardRef((function(e,t){var n=e.index,o=e.isSelected,r=e.updateAnnotations,s=e.shiftKeyThumbnailPivotIndex,c=e.onFinishLoading,u=e.onLoad,f=e.onRemove,h=void 0===f?function(){}:f,v=e.onDragStart,b=e.onDragOver,y=e.isDraggable,w=e.shouldShowControls,x=e.thumbnailSize,E=e.currentPage,k=e.pageLabels,O=void 0===k?[]:k,C=e.selectedPageIndexes,A=e.isThumbnailMultiselectEnabled,T=e.isReaderModeOrReadOnly,P=e.dispatch,R=e.actions,F=e.isMobile,B=e.canLoad,H=e.onCancel,U=e.isThumbnailSelectingPages,G=e.thumbnailSelectionMode,W=e.activeDocumentViewerKey,V=e.panelSelector,K=e.parentKeyListener,Y=x?Number(x):150,$=z(Object(i.useState)(-1),2),Z=$[0],X=$[1],Q=Object(i.useRef)(null),J=Object(i.useRef)([]),ee=Object(i.useRef)([]),te=z(Object(i.useState)({width:Y,height:Y}),2),ne=te[0],oe=te[1],re=Object(S.a)().t,ie=z(Object(i.useState)(!1),2),ae=ie[0],le=ie[1],se=Object(l.e)(p.a.isContentEditingEnabled),ce=null;Object(i.useEffect)((function(){var e=function(e){Q.current&&!Q.current.contains(e.target)&&be()};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var ue=function(){ce=setTimeout((function(){var e,t,o=Object(L.a)().querySelector(".ThumbnailsPanel.".concat(V," #pageThumb").concat(n)),i=n+1,a=g.a.getRotation(i),l=g.a.getDocument(W);if(l&&l.getPageInfo(i)){var s=l.loadCanvas({pageNumber:i,width:Y,height:Y,drawComplete:(e=M().mark((function e(t){var o,i,l,s;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(o=Object(L.a)().querySelector(".ThumbnailsPanel.".concat(V," #pageThumb").concat(n)))&&((i=o.querySelector(".page-image"))&&o.removeChild(i),t.className="page-image",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"),oe({width:Number(t.width),height:Number(t.height)}),Math.abs(a)&&(s="rotate(".concat(90*a,"deg) translate(-50%,-50%)"),t.style.transform=s,t.style["transform-origin"]="top left",t.style["ms-transform"]=s,t.style["ms-transform-origin"]="top left",t.style["-moz-transform"]=s,t.style["-moz-transform-origin"]="top left",t.style["-webkit-transform-origin"]="top left",t.style["-webkit-transform"]=s,t.style["-o-transform"]=s,t.style["-o-transform-origin"]="top left"),o.appendChild(t)),r&&r(n),c(n),le(!0);case 5:case"end":return e.stop()}}),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,s)}}),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),s=t.some((function(e){return a===e})),c=Object.keys(o).some((function(e){return a===parseInt(e)})),u=i.includes(a),d=g.a.getTotalPages();i.length>0&&n+1>d||(l||s||c||u)&&ue()},t=function(){le(!1),ue()};return g.a.addEventListener("pagesUpdated",e),g.a.addEventListener("rotationUpdated",t),B&&ue(),function(){g.a.removeEventListener("pagesUpdated",e),g.a.removeEventListener("rotationUpdated",t),clearTimeout(ce),h(n)}}),[]),Object(m.a)((function(){B?(ue(),r(n)):H(n)}),[B,W]);var de=E===n+1,fe=O[n],pe="default",he=g.a.getRotation(n+1);((!he||2===he)&&ne.width>ne.height||(1===he||3===he)&&ne.width<ne.height)&&(pe="rotated"),Object(i.useImperativeHandle)(t,(function(){return{focusInput:function(){U&&ae?(me(ee.current[0]),X(0)):J.current&&setTimeout((function(){me(J.current[0]),X(0)}),0)}}}));var me=function(e){e&&(e.ariaCurrent="page",e.focus())},ge=function(e){e&&(e.ariaCurrent=void 0)},ve=function(e){e.preventDefault(),be()},be=function(){J.current.forEach((function(e){ge(e)}))},ye=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 we(e,-1)},ArrowDown:function(){return we(e,1)},ArrowLeft:function(){return we(e,-1)},ArrowRight:function(){return we(e,1)}};o[e.key]&&!Ee&&o[e.key]()}),[J.current,Z]),we=function(e,t){e.preventDefault(),0!==J.current.length&&X((function(e){var n=e+t;return n<0?n=J.current.length-1:n>=J.current.length&&(n=0),xe(J.current[n]),n}))},xe=function(e){J.current.forEach((function(t){t===e?me(t):ge(t)}))};Object(i.useEffect)((function(){Q.current&&(J.current=Object(_.a)(Q.current))}),[w,de,ae]),Object(i.useEffect)((function(){Q.current&&(ee.current=Object(_.a)(Q.current))}),[U,ae]);var Ee=U&&ae;return a.a.createElement("button",{className:d()({Thumbnail:!0,active:de,selected:o&&U}),onDragOver:function(e){return b(e,n)},id:"Thumbnail-container-".concat(n),ref:Q,onKeyDown:function(e){return ye(e)},onClick:function(e){var t=e.target.type&&"checkbox"===e.target.type;if(A&&!T){var o=e.ctrlKey||e.metaKey,r=e.shiftKey,i=q(C);if(r){P(R.setThumbnailSelectingPages(!0));var a=s;null===a&&(a=E-1,P(R.setShiftKeyThumbnailsPivotIndex(a)));var l=Math.min(a,n),c=Math.max(a,n);i=q(new Set(q(Array.from({length:c-l+1},(function(e,t){return t+l})))))}else o||U?(P(R.setThumbnailSelectingPages(!0)),(o||t||G===N.a.THUMBNAIL)&&(0!==C.length||U?C.includes(n)?i=C.filter((function(e){return n!==e})):i.push(n):i.push(E-1)),P(R.setShiftKeyThumbnailsPivotIndex(n))):i=[n];var u=i[i.length-1];!U&&!r&&P(R.setShiftKeyThumbnailsPivotIndex(u)),P(R.setSelectedPageThumbnails(i))}else F()&&P(R.closeElement("leftPanel"));setTimeout((function(){t&&G!==N.a.THUMBNAIL||g.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 v(e,n)},draggable:y,tabIndex:-1},a.a.createElement("div",{id:"pageThumb".concat(n),className:"thumbnail"}),U&&ae&&a.a.createElement(I.a,{className:"checkbox ".concat(pe),checked:C.includes(n),"aria-label":"".concat(re("action.page")," ").concat(fe," ").concat(re("formField.types.checkbox")),tabIndex:-1})),a.a.createElement("div",{className:"page-label"},fe),!U&&de&&w&&!se&&a.a.createElement(j,{index:n}))}));H.displayName="Thumbnail",H.propTypes={index:b.a.number,isSelected:b.a.bool,updateAnnotations:b.a.func,shiftKeyThumbnailPivotIndex:b.a.number,onFinishLoading:b.a.func,onLoad:b.a.func,onRemove:b.a.func,onDragStart:b.a.func,onDragOver:b.a.func,isDraggable:b.a.bool,shouldShowControls:b.a.bool,thumbnailSize:b.a.number,currentPage:b.a.number,pageLabels:b.a.array,selectedPageIndexes:b.a.array,isThumbnailMultiselectEnabled:b.a.bool,isReaderModeOrReadOnly:b.a.bool,dispatch:b.a.func,actions:b.a.object,isMobile:b.a.func,canLoad:b.a.bool,onCancel:b.a.func,isThumbnailSelectingPages:b.a.bool,thumbnailSelectionMode:b.a.string,activeDocumentViewerKey:b.a.number,panelSelector:b.a.string,parentKeyListener:b.a.func};var U=H;function G(){return(G=Object.assign?Object.assign.bind():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 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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return V(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 V(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 V(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}var K=a.a.forwardRef((function(e,t){var n=W(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],s=n[3],c=n[4],u=n[5],d=n[6],m=n[7],g=n[8],v=n[9],b=n[10],y=Object(l.d)();return a.a.createElement(U,G({},e,{ref:t,currentPage:o,pageLabels:r,selectedPageIndexes:i,isThumbnailMultiselectEnabled:s,isReaderModeOrReadOnly:c||u,dispatch:y,actions:h.a,isMobile:f.k,shiftKeyThumbnailPivotIndex:d,isThumbnailSelectingPages:m,thumbnailSelectionMode:g,selectionModes:b,activeDocumentViewerKey:v}))}));K.displayName="ThumbnailRedux";var Y=K,$=(n(130),n(112),n(386)),Z=n(34);n(1539);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:b.a.func,moveToBottom:b.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:b.a.func,onReplace:b.a.func,onExtractPages:b.a.func,onDeletePages:b.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:b.a.func,onRotateCounterClockwise:b.a.func};var ne=te,oe=n(170);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)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function ie(e){return function(e){if(Array.isArray(e))return se(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)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 se(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)?se(e,t):void 0}}function se(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 ce(e){var t,n=e.parentElement,o=Object(l.f)(),r=Object(l.d)(),s=Object(f.k)(),c=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),v=Object(l.e)(p.a.getMultiPageManipulationControlsItems,l.c),b=ae(Object(i.useState)(!1),2),k=b[0],S=b[1],_=Object(i.useMemo)((function(){return c.map((function(e){return e+1}))}),[c]),C=Object(i.useMemo)((function(){return{onReplace:function(){return!Object(y.k)(_,r)&&Object(y.m)(r)},onExtractPages:function(){return!Object(y.k)(_,r)&&Object(y.e)(_,r)},onDeletePages:function(){return!Object(y.k)(_,r)&&Object(y.b)(_,r,d)},onRotateCounterClockwise:function(){return!Object(y.k)(_,r)&&Object(y.p)(_)},onRotateClockwise:function(){return!Object(y.k)(_,r)&&Object(y.o)(_)},onInsert:function(){return!Object(y.k)(_,r)&&(r(h.a.closeElement(x.a.PAGE_MANIPULATION_OVERLAY)),void r(h.a.openElement("insertPageModal")))},moveToTop:function(){return!Object(y.k)(_,r)&&Object(y.j)(_)},moveToBottom:function(){return!Object(y.k)(_,r)&&Object(y.i)(_)},pageNumbers:_}}),[_,d]),A=C.onRotateClockwise,T=C.onRotateCounterClockwise,P=g.a.getDocument(),j=null==P?void 0:P.type,N=j===O.a.XOD,I=j===O.a.OFFICE||j===O.a.LEGACY_OFFICE;if(!m&&s)try{t=Object(L.a)().querySelector(".App").getBoundingClientRect().width-88}catch(e){t=(u||Z.d)-88}else t=(u||Z.d)-88;var R=t<190,q=t>290;Object(i.useEffect)((function(){var e,t=[];e=R?1:q?3:2;var n=0;v.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};q&&r(h.a.closeElement(i.dataElement)),i.items.length?(r(h.a.updateFlyout(i.dataElement,i)),S(!0)):(r(h.a.removeFlyout(i.dataElement)),S(!1))}),[o,q,R,v]);var M=Object(i.useMemo)((function(){var e=!1,t=0;return v.map((function(n,o){var r;return r=R?0:q?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({},C,{key:"leftPanelPageTabsRotate"})):"leftPanelPageTabsMove"===n.dataElement?a.a.createElement(Q,re({},C,{key:"leftPanelPageTabsMove"})):"leftPanelPageTabsMore"===n.dataElement?a.a.createElement(ee,re({},C,{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(_)},title:e.title})})):(t--,null):null):(t>r&&(e=!0),a.a.createElement("div",{key:"divider".concat(o),className:"divider"}))}))}),[v,C,R,q]);return N||I||null!=P&&P.isWebViewerServerDocument()?a.a.createElement("div",{className:"PageControlContainer root small"},a.a.createElement(ne,{onRotateClockwise:A,onRotateCounterClockwise:T})):a.a.createElement("div",{className:"PageControlContainer root"},M,k&&a.a.createElement("div",{className:"dropdown-menu"},a.a.createElement(E.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"})))}ce.propTypes={parentElement:b.a.string};var ue=ce;n(1668);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fe(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 fe(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 fe(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 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(S.a)(),1)[0],r=Object(l.d)(),s=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),c=s[0],u=s[1],d=s[2],f=s[3],m=s[4],v=pe(c,d),b=de(Object(i.useState)(v),2),y=b[0],x=b[1],E=de(Object(i.useState)(v),2),k=E[0],O=E[1],_=m.customizableUI;Object(i.useEffect)((function(){x(pe(c,d))}),[x,c,t,d]);var C=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}),_&&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($.a)(t,d):[],o=n.map((function(e){return e-1}));if(n.length||!t){r(h.a.setSelectedPageThumbnails(o));var i=pe(c,d);x(i),O(i)}else x(k);c.length>0&&!f&&setTimeout((function(){y!==k&&C()}),100)},onChange:function(e){x(e.target.value)},value:y,placeholder:_?"":"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([g.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:C,dataElement:"thumbMultiSelect"})))):null)};he.propTypes={isDisabled:b.a.bool,pageLabels:b.a.arrayOf(b.a.string),toggleDocumentControl:b.a.func,shouldShowControls:b.a.bool};var me=he,ge=n(449),ve=n(279),be=n(67),ye=n(55),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){g.a.mergeDocument(e,t).then((function(e){o(h.a.closeElement(x.a.LOADING_MODAL)),g.a.setCurrentPage(t),n&&Object(be.a)(ye.a.DOCUMENT_MERGED,e),r(e)})).catch((function(e){i(e),o(h.a.closeElement(x.a.LOADING_MODAL))}))}))}};n(1670);function xe(e){return(xe="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 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 ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){Oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==xe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==xe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _e(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 _e(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 _e(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}var Ce=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),v=Object(l.e)(p.a.getCurrentPage),b=Object(l.e)((function(e){return p.a.getSelectedThumbnailPageIndexes(e)}),l.c),y=Object(l.e)(p.a.getIsThumbnailMergingEnabled),E=Object(l.e)(p.a.getIsThumbnailReorderingEnabled),k=Object(l.e)(p.a.getIsMultipleViewerMerging),O=Object(l.e)((function(e){return p.a.isElementDisabled(e,"thumbnailControl")})),_=Object(l.e)((function(e){return p.a.isElementDisabled(e,"thumbnailsSizeSlider")})),C=Object(l.e)(p.a.isReaderMode),A=Object(l.e)(p.a.isDocumentReadOnly),T=Object(l.e)((function(e){return p.a.getTotalPages(e,2)})),P=Object(l.e)(p.a.getActiveDocumentViewerKey),j=Object(l.e)(p.a.openingPageManipulationOverlayByRightClickEnabled),N=Object(l.e)(p.a.getFeatureFlags,l.c),I=Object(l.e)(p.a.isContentEditingEnabled),R=Se(Object(S.a)(),1)[0],q=Object(i.useRef)(),M=Object(i.useRef)([]),D=Object(i.useRef)([]),z=Object(i.useRef)(null),F=Se(Object(i.useState)(!1),2),B=F[0],H=F[1],U=Se(Object(i.useState)(!0),2),G=U[0],W=U[1],V=Se(Object(i.useState)(0),2),K=V[0],$=V[1],Z=Se(Object(i.useState)(0),2),X=Z[0],Q=Z[1],J=Se(Object(i.useState)(null),2),ee=J[0],te=J[1],ne=Se(Object(i.useState)(!1),2),oe=ne[0],re=ne[1],ie=Se(Object(i.useState)(1),2),ae=ie[0],le=ie[1],se=Se(Object(i.useState)(!1),2),ce=se[0],ue=se[1],de=Se(Object(i.useState)(0),2),fe=de[0],pe=de[1],he=Object(i.useRef)([]),xe=Object(i.useRef)([]),Ee=Object(i.useRef)(null),Oe=Se(Object(i.useState)(150),2),_e=Oe[0],Ce=Oe[1],Ae=Se(Object(i.useState)(0),2),Te=Ae[0],Pe=Ae[1],je=Se(Object(i.useState)(0),2),Ne=je[0],Ie=je[1],Le=2===P?T:m,Re=null==N?void 0:N.customizableUI,qe=Object(l.d)(),Me={};Object(i.useEffect)((function(){var e=function(e){Ee.current&&!Ee.current.contains(e.target)&&Be(Ee.current)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var De=Object(i.useCallback)((function(e,t,n){var o;e.stopPropagation();var r={ArrowLeft:function(){return Ue(e,t,-1)},ArrowRight:function(){return Ue(e,t,1)},ArrowUp:function(){return Ue(e,t,-n)},ArrowDown:function(){return Ue(e,t,n)}},i={Enter:function(){return Ge(e,t)},Tab:function(){return He(t)}};r[e.key]&&(o=r[e.key]()),i[e.key]&&i[e.key](),void 0!==o&&o!==t&&(pe(o),ze(he.current[o]),Fe(he.current[t]))}),[xe,he]),ze=function(e){e.tabIndex=0,e.ariaCurrent="page",e.style.outline="var(--focus-visible-outline)",e.focus(),Ee.current=e},Fe=function(e){e.tabIndex=-1,e.ariaCurrent=void 0,Be(e)},Be=function(e){e.style.outline="none"},He=function(e){Be(he.current[e])},Ue=function(e,t,n){var o=t+n;return o<0||o>=Le?t:o},Ge=function(e,t){e.preventDefault(),ze(he.current[t]),g.a.setCurrentPage(t+1),xe.current[t].focusInput()},We=Object(i.useCallback)((function(e,t){e.stopPropagation();var n,o={Tab:function(){return Ke(e,t)},Escape:function(){return Ve(e,t)}};o[e.key]&&(null===(n=o[e.key])||void 0===n||n.call(o))}),[he]),Ve=function(e,t){e.preventDefault(),ze(he.current[t])},Ke=function(e,t){var n=t+(e.shiftKey?-1:1);(n<0||n>=Le)&&(n=t),pe(n),ze(he.current[n]),n!==t&&Fe(he.current[t])},Ye=function(e){var t=D.current&&D.current[e]&&D.current[e].element;if(t){var n=e+1,o=g.a.getPageWidth(n),i=function(e,t){var n,o,r;return e>t?(r=e/_e,n=_e,o=Math.round(t/r)):(r=t/_e,n=Math.round(e/r),o=_e),{width:n,height:o}}(o,g.a.getPageHeight(n)),a=i.width,l=i.height,s=t.querySelector(".annotation-image")||document.createElement("canvas");s.className="annotation-image",s.role="img",s.ariaLabel="".concat(R("action.page")," ").concat(n),s.style.maxWidth="".concat(_e,"px"),s.style.maxHeight="".concat(_e,"px");var c=s.getContext("2d"),u=1,d=g.a.getCompleteRotation(n);d<0&&(d+=4);var f=window.Core.getCanvasMultiplier();d%2==0?(s.width=a,s.height=l,u=s.width/o,u/=f):(s.width=l,s.height=a,u=s.height/o,u/=f),t.appendChild(s),g.a.setAnnotationCanvasTransform(c,u,d);var p={pageNumber:n,overrideCanvas:s},h=t.querySelector(".page-image");if(h)p=ke(ke({},p),{},{overridePageRotation:d,overridePageCanvas:h}),Me[n]||(Me[n]=r()(g.a.drawAnnotations,112)),(0,Me[n])(p)}};if(Object(i.useEffect)((function(){var e=function(){W(!1)},t=function(e){e||W(!0)},n=function(){var e;"officeEditor"===(null===(e=g.a.getDocument())||void 0===e?void 0:e.getType())?H(!0):H(!1),Me={},qe(h.a.setSelectedPageThumbnails([]))},o=function(){z.current&&(g.a.setCurrentPage(z.current),z.current=null)};return g.a.addEventListener("beginRendering",e),g.a.addEventListener("finishedRendering",t),g.a.addEventListener("documentLoaded",n),g.a.addEventListener("pageComplete",o),g.a.getDocument()&&n(),function(){g.a.removeEventListener("beginRendering",e),g.a.removeEventListener("finishedRendering",t),g.a.removeEventListener("documentLoaded",n),g.a.removeEventListener("pageComplete",o)}}),[]),Object(i.useEffect)((function(){var e=function(e){if(e){var t=Array.from(b);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}))),qe(h.a.setSelectedPageThumbnails(t))}};return g.a.addEventListener("pagesUpdated",e),function(){return g.a.removeEventListener("pagesUpdated",e)}}),[b]),Object(i.useEffect)((function(){var e;null===(e=q.current)||void 0===e||e.scrollToRow(Math.floor((v-1)/ae));var t=function(e){var t=[];e.forEach((function(e){var n=e.PageNumber-1;!e.Listable||t.indexOf(n)>-1||(t.push(n),Ye(n))}))},n=function(e){var t,n=e-1;null===(t=q.current)||void 0===t||t.scrollToRow(Math.floor(n/ae))};return g.a.addEventListener("pageNumberUpdated",n),g.a.addEventListener("annotationChanged",t),g.a.addEventListener("annotationHidden",t),function(){g.a.removeEventListener("pageNumberUpdated",n),g.a.removeEventListener("annotationChanged",t),g.a.removeEventListener("annotationHidden",t)}}),[_e,ae]),Object(i.useEffect)((function(){(C||A)&&(qe(h.a.setSelectedPageThumbnails([])),qe(h.a.setThumbnailSelectingPages(!1)))}),[C,A]),u||B||!o&&!t&&!Re)return null;var $e=function(){ue(!1),te(null)},Ze=function(e,t,n){var o,r=(new Date).getTime();return e<Le-1&&e>0&&r-Te>=n?(null===(o=q.current)||void 0===o||o.scrollToRow(Math.floor((e+t)/ae)),Pe(r),e+t):e},Xe=function(e,t){if(e.preventDefault(),e.stopPropagation(),E||y){var n=e.target.getBoundingClientRect();re(ae>1?!(e.pageX>n.x+n.width/2):!(e.pageY>n.y+n.height/2)),te(t);var o=Object(L.a)().querySelector("#virtualized-thumbnails-container").getBoundingClientRect(),r=o.y,i=o.bottom;e.pageY<r+100?Ie(Ze(t,-1,400)):e.pageY>i-100&&Ie(Ze(t,1,400))}},Qe=function(){Ie(Ze(Ne,1,200))},Je=function(){Ie(Ze(Ne,-1,200))},et=function(){return window.isApryseWebViewerWebComponent?Object(L.a)().host.id:window.frameElement.id},tt=function(e,t){Ie(t),ue(!0);var n,o=b.some((function(e){return e===t})),r=o?b.map((function(e){return e+1})):[t+1];Object(be.a)(ye.a.THUMBNAIL_DRAGGED),e.dataTransfer.setData("text",""),r.length>1&&e.dataTransfer.setDragImage(new Image,0,0),y&&k&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="all",e.dataTransfer.setData("dataTransferWebViewerFrame",et()),n=r,window.extractedDataPromise=Object(ve.a)(n),window.pagesExtracted=n),o||qe(h.a.setSelectedPageThumbnails([t])),g.a.setCurrentPage(t+1)},nt=function(e){e.preventDefault();var t,n=e.dataTransfer.files,o=oe?ee+1:ee+2;f.f||(t=e.dataTransfer.getData("dataTransferWebViewerFrame"));var r,i,a=t&&et()!==t||n.length,l=v-1;if(y&&a)t&&et()!==t?qe((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(be.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){qe(we(e,o))}));else if(E&&!a&&null!==ee){var s=oe?ee+1:ee+2,c=b.some((function(e){return e===l}))?b.map((function(e){return e+1})):[v];z.current=s-c.filter((function(e){return e<s})).length,g.a.movePages(c,s);for(var u=[],d=0;d<c.length;d++)u.push(z.current+d);Object(be.a)(ye.a.THUMBNAIL_DROPPED,{pageNumbersBeforeMove:c,pagesNumbersAfterMove:u,numberOfPagesMoved:u.length})}te(null),ue(!1)},ot=function(e,t,n){it(e)||at(e)||(D.current[e]={element:t,loaded:!1},M.current.push({pageIndex:e,id:n}))},rt=function(e){var t=st(e);-1!==t&&M.current.splice(t,1)},it=function(e){var t;return null===(t=D.current[e])||void 0===t?void 0:t.loaded},at=function(e){return-1!==st(e)},lt=function(e){var t=st(e);-1!==t&&(g.a.cancelLoadThumbnail(M.current[t].id),M.current.splice(t,1))},st=function(e){return M.current.findIndex((function(t){return t.pageIndex===e}))},ct=function(e){var t,n;lt(e);var o=null===(t=D.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})),Me[e]&&Me[e].cancel(),D.current[e]=null},ut=function(e){var n=e.index,o=e.key,r=e.style,i=d()({columnsOfThumbnails:ae>1,row:!0}),l=!(C||A);return a.a.createElement("div",{role:"row","aria-label":"row",className:i,key:o,style:r},new Array(ae).fill().map((function(e,o){var r=n*ae+o,i=l&&(y||E),s=i&&ee===r;return r<Le?a.a.createElement(a.a.Fragment,{key:r},(ae>1||0===r)&&s&&oe&&a.a.createElement("div",{key:"placeholder1-".concat(r),className:"thumbnailPlaceholder"}),a.a.createElement("td",{ref:function(e){return he.current[r]=e},key:r,role:"gridcell",tabIndex:fe===r?0:-1,"aria-current":fe===r?"page":void 0,onDragEnd:$e,className:"cellThumbContainer",onKeyDown:function(e){return De(e,r,ae)},onContextMenu:function(e){return j&&(n=r,(t=e).preventDefault(),g.a.setCurrentPage(n+1),b.includes(n)||qe(h.a.setSelectedPageThumbnails([n])),void(C||A||I||(qe(h.a.setFlyoutPosition({x:t.pageX,y:t.pageY})),qe(h.a.openElements([x.a.PAGE_MANIPULATION])))));var t,n},onFocus:function(e){return function(e,t){he.current&&he.current.includes(e.target)&&ze(he.current[t])}(e,r)}},a.a.createElement(Y,{ref:function(e){return xe.current[r]=e},isDraggable:i,isSelected:b.includes(r),index:r,canLoad:G,onLoad:ot,onCancel:lt,onRemove:ct,onDragStart:tt,onDragOver:Xe,onFinishLoading:rt,updateAnnotations:Ye,shouldShowControls:l,thumbnailSize:_e,panelSelector:t,parentKeyListener:function(e){return We(e,r)}})),s&&!oe&&a.a.createElement("div",{key:"placeholder2-".concat(r),className:"thumbnailPlaceholder"})):null})))},dt=function(){le(Math.min(16,Math.max(1,Math.floor(X/_e))))},ft=O?Number(_e)+50:Number(_e)+80,pt=!(C||A||I),ht={height:"".concat(25,"px")},mt=function(e,t){var n="1000"*Number(t);n<100&&(n=100),Ce(n),dt()};return a.a.createElement(a.a.Fragment,null,!_&&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(){_e-"50">"50"&&(Ce(_e-"50"),dt())},dataElement:"zoomThumbOutButton"}),Re&&a.a.createElement(ge.a,{dataElement:"thumbnailsSizeSlider",property:"zoom",displayProperty:"zoom",min:0,max:1,step:.01,value:_e/1e3,getDisplayValue:function(){return _e},onSliderChange:mt,onStyleChange:mt,shouldHideSliderTitle:!0,shouldHideSliderValue:!0}),!Re&&a.a.createElement("input",{role:"slider",type:"range","aria-label":"thumbnail size slider",min:"100",max:"1000",value:_e,"aria-valuemin":"100","aria-valuemax":"1000","aria-valuenow":_e,onChange:function(e){Ce(Number(e.target.value)),dt()},step:"50",className:"thumbnail-slider",id:"thumbnailSize"}),a.a.createElement(w.a,{img:"icon-zoom-thumb-in",title:"action.zoomIn",hideTooltipShortcut:!0,onClick:function(){_e+Number("50")<1001&&(Ce(_e+Number("50")),dt())},dataElement:"zoomThumbInButton"})),a.a.createElement(c.a,{bounds:!0,onResize:function(e){var t=e.bounds;$(t.height),Q(t.width),le(Math.min(16,Math.max(1,Math.floor(t.width/_e))))},key:_e},(function(e){var n=e.measureRef;return a.a.createElement("div",{className:"Panel ThumbnailsPanel ".concat(t),id:"virtualized-thumbnails-container","data-element":"thumbnailsPanel",onDrop:nt,ref:n},a.a.createElement("div",{className:"virtualized-thumbnails-container"},ce?a.a.createElement("div",{className:"thumbnailAutoScrollArea",onDragOver:Je,style:ht}):"",a.a.createElement(s.c,{ref:q,height:K,width:X,rowHeight:ft,rowCount:Math.ceil(Le/ae),rowRenderer:ut,overscanRowCount:3,className:"thumbnailsList",scrollToIndex:Math.floor((v-1)/ae),role:"grid","aria-label":R("component.thumbnailsPanel"),tabIndex:-1}),ce?a.a.createElement("div",{className:"thumbnailAutoScrollArea",onDragOver:Qe,style:ke(ke({},ht),{},{bottom:"70px"})}):""))})),a.a.createElement(me,{shouldShowControls:pt,parentElement:n||t}))};t.default=Ce},1703:function(e,t,n){"use strict";n.r(t);n(29),n(8),n(23),n(24),n(84),n(19),n(12),n(13),n(14),n(10),n(9),n(11),n(16),n(15),n(20),n(18),n(27),n(28),n(25),n(22),n(32),n(47),n(49),n(48),n(58),n(44);var o=n(0),r=n.n(o),i=n(1),a=(n(46),n(52),n(36),n(101),n(90),n(79),n(128),n(97),n(124),n(17)),l=n.n(a),s=n(6),c=n(347),u=n(3),d=n.n(u),f=n(197),p=n(1583);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 g(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){v(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 v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==h(e)||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return y(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 y(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 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}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}),E=r.a.forwardRef((function(e,t){var n=e.notes,i=e.children,a=e.onScroll,l=e.initialScrollTop,s=e.selectedIndex,c=e.sortStrategy,u=Object(o.useRef)(),d=b(Object(o.useState)(0),2),h=d[0],m=d[1],v=b(Object(o.useState)({width:0,height:0}),2),y=v[0],w=v[1],E=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!==s)&&(null===(t=u.current)||void 0===t||t.scrollToRow(s))}),[s]),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,c]),Object(o.useEffect)((function(){var e=function(){var e=window.innerHeight-E;e&&(window.innerHeight<E&&m(e),E=window.innerHeight)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}));var k=function(e){var t=e.scrollTop;a(t)},O=function(e){var t=e.index,o=e.key,a=e.parent,l=e.style,s=n[t];return r.a.createElement(p.a,{key:"".concat(o).concat(s.Id),cache:x,columnIndex:0,parent:a,rowIndex:t},(function(e){var o=e.measure;return r.a.createElement("div",{style:g(g({},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(g(g({},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:O,onScroll:k,"aria-label":"presentation",role:"presentation"}))}))}));E.displayName="VirtualizedList",E.propTypes=w;var k=E,O=(n(41),{notes:d.a.array.isRequired,children:d.a.func.isRequired,onScroll:d.a.func.isRequired,initialScrollTop:d.a.number.isRequired}),S=r.a.forwardRef((function(e,t){var n=e.notes,i=e.children,a=e.onScroll,l=e.initialScrollTop,s=Object(o.useRef)();Object(o.useImperativeHandle)(t,(function(){return{scrollToPosition:function(e){s.current.scrollTop=e},scrollToRow:function(e){var t=s.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(){s.current.scrollTop=l}),[l]);return r.a.createElement("div",{ref:s,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))})))}));S.displayName="NormalList",S.propTypes=O;var _=S,C=n(1627),A=n(43),T=n(1519),P=n(1569),j=(n(145),n(42)),N=(n(154),n(1541)),I=n(350),L=n(1537),R=n(4);n(1672);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return M(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 M(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 M(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}var D=function(e){var t=e.annotations,n=e.onSubmit,a=e.onClose,u=q(Object(s.e)((function(e){var t;return[R.a.getIsMentionEnabled(e),R.a.getActiveDocumentViewerKey(e),null===(t=R.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI]}),s.c),3),d=u[0],f=u[1],p=u[2],h=q(Object(o.useState)(""),2),m=h[0],g=h[1],v=q(Object(c.a)(),1)[0],b=Object(o.useRef)();Object(o.useEffect)((function(){b.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"},v("action.multiReplyAnnotations",{count:t.length})),r.a.createElement(j.a,{className:"close-icon",onClick:a,img:"ic_close_black_24px"})),r.a.createElement("form",{onSubmit:function(e){e.preventDefault();var o=b.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(L.a)(o,t)}else{var n=i.a.createAnnotationReply(e,r,f);Object(L.a)(o,n)}})),n())}},r.a.createElement("div",{className:y,onMouseDown:function(e){return e.stopPropagation()}},r.a.createElement(N.a,{ref:function(e){b.current=e},value:m,onChange:function(e){return function(e){g(e)}(e)},isReply:!0})),r.a.createElement("div",{className:"reply-button-container"},r.a.createElement(j.a,{img:"icon-post-reply",className:"reply-button",title:"action.submit",isSubmitType:!0}))))},z=n(236),F=n(119),B=n(21);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(B.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(F.createPortal)(o,r)},G=n(1628),W=n(140),V=n(387),K=n(211),Y=n(2),$=n(50);n(1674);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)||null===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:String(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return te(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 te(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 te(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}var ne=function(e){var t=e.annotations,n=e.triggerElementName,i=e.onClose,a=void 0===i?function(){}:i,l=Object(s.d)(),c=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(W.a)(c,(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 g={};t.forEach((function(e){g=Q(Q({},g),Object(V.a)(e))}));var v=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)})),b={};if(v){var y,w,x,E,k,O,S,_,C,A,T,P=v.getRichTextStyle();b={Font:v.Font,FontSize:v.FontSize,TextAlign:v.TextAlign,TextVerticalAlign:v.TextVerticalAlign,bold:"bold"===(null!==(y=null==P||null===(w=P[0])||void 0===w?void 0:w["font-weight"])&&void 0!==y?y:""),italic:"italic"===(null!==(x=null==P||null===(E=P[0])||void 0===E?void 0:E["font-style"])&&void 0!==x?x:""),underline:(null==P||null===(k=P[0])||void 0===k||null===(O=k["text-decoration"])||void 0===O?void 0:O.includes("underline"))||(null==P||null===(S=P[0])||void 0===S||null===(_=S["text-decoration"])||void 0===_?void 0:_.includes("word")),strikeout:null!==(C=null==P||null===(A=P[0])||void 0===A||null===(T=A["text-decoration"])||void 0===T?void 0:T.includes("line-through"))&&void 0!==C&&C}}Object(o.useEffect)((function(){var e=[];if(g.TextColor&&e.push($.b.TEXT_COLOR),g.StrokeColor&&e.push($.b.STROKE_COLOR),g.FillColor&&e.push($.b.FILL_COLOR),Object($.l)("MultiStyle",e,e[0])){var t=Object($.d)("currentStyleTab","iconColor");l(Y.a.setColorMap(t));var n=Object($.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:c},r.a.createElement(G.a,{annotations:t,style:g,isOpen:!0,onResize:function(){var e=Object(z.a)(n,c);m(e)},isFreeText:!!v,colorMapKey:"MultiStyle",properties:b,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(1570),ie=n(94),ae=n(1567),le=n(5);n(1676);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 ce(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?ce(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function de(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==se(e)||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fe(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pe(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 pe(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 pe(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}var he={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},me=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=fe(Object(o.useState)([]),2),g=m[0],v=m[1],b=Object(s.d)(),y=fe(Object(c.a)(),1)[0],w=Object(s.e)(R.a.getActiveDocumentViewerKey),x=Object(s.e)(R.a.isDocumentReadOnly);Object(o.useEffect)((function(){var e=function(e){var n=ue({},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=ue({},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)}));v(e)}),[h]);var E=i.a.getNumberOfGroups(g,w)>1,k=!E&&(g.length>2||g.length>0&&i.a.getGroupAnnotations(g[0],w).length>1),O=Object(o.useCallback)((function(e){me(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]),S=Object(o.useMemo)((function(){return{resize:function(){}}}));return t?r.a.createElement(T.a.Provider,{value:S},r.a.createElement(D,{annotations:me(h,w),onSubmit:function(){return n(!1)},onClose:function(){return n(!1)}})):r.a.createElement("div",{className:"multi-select-footer"},r.a.createElement("div",{className:"buttons-container"},r.a.createElement(j.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===g.length}),r.a.createElement(re.a,{isMultiSelectMode:!0,handleStateChange:O}),r.a.createElement(j.a,{dataElement:le.a.NOTE_MULTI_STYLE_BUTTON,img:"icon-menu-style-line",disabled:x||0===g.length,onClick:function(){u(!l)},title:"action.style"}),l&&r.a.createElement(oe,{annotations:g,triggerElementName:"multiStyleButton",onClose:function(){u(!1)}}),!k&&r.a.createElement(j.a,{dataElement:le.a.NOTE_MULTI_GROUP_BUTTON,disabled:x||!E,img:"group-annotations-icon",onClick:function(){i.a.groupAnnotations(h[0],h,w)},title:"action.group"}),k&&r.a.createElement(j.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(j.a,{dataElement:le.a.NOTE_MULTI_DELETE_BUTTON,disabled:x||0===g.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(g,void 0,w)}};b(Y.a.showWarningMessage(e))},title:"action.delete"})),r.a.createElement("div",{className:"close-container"},r.a.createElement(j.a,{className:"close-icon-container",onClick:function(){d(!1)},img:"ic_close_black_24px",ariaLabel:y("option.documentControls.closeTooltip")})))};ge.propTypes=he;var ve=ge,be=n(176),ye=n(110),we=n.n(ye),xe=n(78),Ee=n(75),ke=n(55),Oe=n(175),Se=n(26),_e=n(95);n(1678);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ae(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 Ae(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 Ae(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}var Te={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=Ce(Object(s.e)((function(e){var t;return[R.a.getSortStrategy(e),R.a.isElementDisabled(e,"sortContainer"),R.a.getNotesPanelCustomHeaderOptions(e),R.a.getAnnotationFilters(e),R.a.getIsOfficeEditorMode(e),R.a.getOfficeEditorEditMode(e),null===(t=R.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI]}),s.c),7),h=p[0],m=p[1],g=p[2],v=p[3],b=p[4],y=p[5],w=p[6],x=Ce(Object(c.a)(),1)[0],E=Object(s.d)(),k=Ce(Object(o.useState)(!1),2),O=k[0],S=k[1],_=Ce(Object(o.useState)(!1),2),C=_[0],T=_[1],P=Ce(Object(o.useState)(""),2),N=P[0],I=P[1];Object(o.useEffect)((function(){var e=v.authorFilter,t=v.colorFilter,n=v.statusFilter,o=v.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)&&S(!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?S(!0):S(!1)};return window.addEventListener(ke.a.ANNOTATION_FILTER_CHANGED,r),function(){window.removeEventListener(ke.a.ANNOTATION_FILTER_CHANGED,r)}}),[]),Object(o.useEffect)((function(){b&&y===Se.y.PREVIEW?(T(!0),a(""),I("")):T(!1)}),[b,y]);var L=we()((function(e){i.a.deselectAllAnnotations(),a(e)}),500),q=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(xe.a,{id:"notesOrderDropdown",labelledById:"notesSortLabel",dataElement:"notesOrderDropdown",disabled:0===t.length||C,ariaLabel:"".concat(x("message.sortBy")," ").concat(h),items:Object.keys(Object(Oe.c)()),translationPrefix:"option.notesOrder",currentSelectionKey:h,onClickItem:function(e){E(Y.a.setNotesPanelSortStrategy(e))}})),M=Object(_e.a)((function(){return E(Y.a.openElement("filterModal"))})),D=x(b?"message.searchSuggestionsPlaceholder":"message.searchCommentsPlaceholder"),z=r.a.createElement(Ee.a,{className:l()({header:!0,"modular-ui-header":w}),dataElement:"notesPanelHeader"},r.a.createElement(Ee.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:C,type:"text",placeholder:w?"":D,"aria-label":D,onChange:function(e){I(e.target.value),L(e.target.value)},id:"NotesPanel__input",value:N})),r.a.createElement(Ee.a,{className:"comments-counter",dataElement:le.a.NotesPanel.DefaultHeader.COMMENTS_COUNTER},r.a.createElement("h2",{className:"main-comment"},x(b?"officeEditor.reviewing":"component.notesPanel")," ","(".concat(t.length,")"))),r.a.createElement(Ee.a,{className:"sort-row",dataElement:le.a.NotesPanel.DefaultHeader.SORT_ROW},m?r.a.createElement("div",{className:"sort-container"}):q,r.a.createElement("div",{className:"buttons-container"},f&&!b&&r.a.createElement(j.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(j.a,{dataElement:le.a.NotesPanel.DefaultHeader.FILTER_ANNOTATION_BUTTON,className:l()({active:O}),disabled:n,img:"icon-comments-filter",onClick:M,title:x("component.filter"),ariaPressed:O}))));return r.a.createElement(r.a.Fragment,null,g&&r.a.createElement(be.a,{render:g.render,renderArguments:[t]}),(!g||!g.overwriteDefaultHeader)&&z)}Pe.propTypes=Te;var je=Pe,Ne=n(155),Ie=n(66),Le=n(38),Re=n(1617);n(1680);function qe(e){return(qe="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){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?Me(Object(n),!0).forEach((function(t){ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ze(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==qe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==qe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qe(t)?t:String(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 Ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||He(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 Be(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||He(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){if(e){if("string"==typeof e)return Ue(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)?Ue(e,t):void 0}}function Ue(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}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,g=e.setIsMultiSelectedMap,v=e.scrollToSelectedAnnot,b=e.setScrollToSelectedAnnot,y=e.isCustomPanel,w=e.isCustomPanelOpen,x=e.isLeftSide,E=e.parentDataElement,O=Object(s.e)(R.a.getSortStrategy),S=Object(s.e)((function(e){return R.a.isElementOpen(e,le.a.NOTES_PANEL)})),j=Object(s.e)((function(e){return R.a.isElementDisabled(e,le.a.NOTES_PANEL)})),N=Object(s.e)(R.a.getPageLabels,s.c),I=Object(s.e)(R.a.getCustomNoteFilter,s.c),L=Object(s.e)(R.a.getInternalNoteFilter,s.c),q=Object(s.e)((function(e){return E?R.a.getPanelWidth(e,E):R.a.getNotesPanelWidth(e)}),s.c),M=Object(s.e)(R.a.getNotesInLeftPanel),D=Object(s.e)(R.a.isDocumentReadOnly),z=Object(s.e)(R.a.isAnnotationNumberingEnabled),F=Object(s.e)(R.a.getEnableNotesPanelVirtualizedList),B=Object(s.e)(R.a.isInDesktopOnlyMode),H=Object(s.e)(R.a.getNotesPanelCustomEmptyPanel,s.c),U=Object(s.e)(R.a.getIsNotesPanelMultiSelectEnabled),G=Object(s.e)(R.a.getActiveDocumentViewerKey),W=Object(s.e)(R.a.getIsOfficeEditorMode),V=Object(s.e)(R.a.getOfficeEditorEditMode),K=Object(s.d)(),$=Be(Object(c.a)(),1)[0],Z=t||q,X=Object(Ie.b)(),Q=Be(Object(o.useState)([]),2),J=Q[0],ee=Q[1],te=Be(Object(o.useState)(!1),2),ne=te[0],oe=te[1],re=Be(Object(o.useState)(!1),2),ie=re[0],ae=re[1],se=Be(Object(o.useState)(!1),2),ce=se[0],ue=se[1],de=Be(Object(o.useState)(void 0),2),fe=de[0],pe=de[1],he=Object(o.useRef)(),me=Object(o.useRef)(0),ge=F?Le.e?25:100:1/0;Object(o.useEffect)((function(){var e=function(e){K(Y.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 ye=-1,we=function(e){e&&(me.current=e),K(Y.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()))},Ee=Object(Oe.c)()[O].getSortedNotes(n).filter((function(e){var t=!0;if(I&&(t=t&&I(e)),L&&(t=t&&L(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!==ye&&setTimeout((function(){var e;null===(e=he.current)||void 0===e||e.scrollToRow(ye)}),0)}),[a]);var ke=function(e){return!Object.keys(a).length&&(d&&Ee.filter((function(e){return e.getReplies().some(xe)})).some((function(t){return t.Id===e.Id})))},_e=Be(Object(o.useState)({}),2),Ce=_e[0],Ae=_e[1],Te=Object(o.useCallback)((function(e,t){Ae((function(n){return De(De({},n),{},ze({},t,e))}))}),[Ae]),Pe=Be(Object(o.useState)({}),2),qe=Pe[0],Me=Pe[1],He=Object(o.useCallback)((function(e,t){Me((function(n){return De(De({},n),{},ze({},t,e))}))}),[Me]),Ue=Be(Object(o.useState)({}),2),Ge=Ue[0],We=Ue[1],Ve=function(e,t){We((function(n){return De(De({},n),{},ze({},e,[].concat(Fe(n[e]||[]),Fe(t))))}))},Ke=function(e){We((function(t){return De(De({},t),{},ze({},e,[]))}))},Ye=function(e,t){var n=Ge[e];if((null==n?void 0:n.length)>0){var o=n.indexOf(t);o>-1&&(n.splice(o,1),We((function(t){return De(De({},t),{},ze({},e,Fe(n)))})))}};Object(o.useEffect)((function(){ee(Object.values(m))}),[m]);var $e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=null,l=Object(Oe.c)()[O],s=l.shouldRenderSeparator,c=l.getSeparatorContent,f=0===t?null:e[t-1],h=e[t];s&&c&&(!f||s(f,h))&&(o=r.a.createElement(P.a,{renderContent:function(){return c(f,h,{pageLabels:N})}}));var y=function(){!p&&a[h.Id]&&(u((function(e){var t=De({},e);return delete t[h.Id],t})),i.a.deselectAnnotation(h,G))},E={searchInput:d,resize:n,isSelected:a[h.Id],isContentEditable:i.a.canModifyContents(h,G)&&!h.getContents(),pendingEditTextMap:Ce,setPendingEditText:Te,pendingReplyMap:qe,setPendingReply:He,isDocumentReadOnly:D,onTopNoteContentClicked:y,isExpandedFromSearch:ke(h),scrollToSelectedAnnot:v,sortStrategy:O,showAnnotationNumbering:z,setCurAnnotId:pe,pendingAttachmentMap:Ge,clearAttachments:Ke,deleteAttachment:Ye,addAttachments:Ve,documentViewerKey:G};return t===ye&&setTimeout((function(){b(!1),K(Y.a.openElement("annotationNoteConnectorLine"))}),0),r.a.createElement("div",{role:"listitem",className:"note-wrapper"},o,r.a.createElement(T.a.Provider,{value:E},r.a.createElement(C.a,{isCustomPanelOpen:w,shouldHideConnectorLine:x,annotation:h,isMultiSelected:!!m[h.Id],isMultiSelectMode:p,isMultiSelectEnabled:U,isInNotesPanel:!0,handleMultiSelect:function(e){if(e){var t=De({},m),n=i.a.getGroupAnnotations(h,G);n.forEach((function(e){t[e.Id]=e})),g(t),i.a.selectAnnotations(n)}else{var o=De({},m),r=i.a.getGroupAnnotations(h,G);r.forEach((function(e){delete o[e.Id]})),g(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"},$("message.noResults"))),Xe=null!=H&&H.icon?H.icon:W?"ic-edit-page":"illustration - empty state - outlines",Qe=null!=H&&H.message?H.message:$(W?"message.noRevisions":"message.noAnnotations"),Je=H&&H.readOnlyMessage?H.readOnlyMessage:$("message.noAnnotationsReadOnly"),et=H&&!H.hideIcon||!H,tt=H&&H.render,nt=r.a.createElement("div",{className:"no-annotations"},tt?r.a.createElement(be.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)ye=Ee.findIndex((function(e){return e.Id===it[0]}));else if(it.length){Ee.filter((function(e){return a[e.Id]})).length&&(ye=Ee.findIndex((function(e){return e.Id===fe})))}var at,lt={};return y||!B&&X||(lt={width:"".concat(Z,"px"),minWidth:"".concat(Z,"px")}),!j&&(S||M||y)?r.a.createElement("div",{className:l()({"notes-panel-container":!0,"office-editor":W})},r.a.createElement("div",{className:l()({Panel:!0,NotesPanel:!0}),style:lt,"data-element":"notesPanel",onMouseUp:function(){return i.a.deselectAllAnnotations}},!B&&X&&!M&&r.a.createElement("div",{className:"close-container"},r.a.createElement("div",{className:"close-icon-container",onClick:function(){K(Y.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(je,{notes:Ee,disableFilterAnnotation:0===n.length,setSearchInputHandler:f,isMultiSelectMode:p,toggleMultiSelectMode:function(){h(!p)},isMultiSelectEnabled:U}),0===Ee.length?0===n.length?nt:Ze:Ee.length<=ge?r.a.createElement(_,{ref:he,notes:Ee,onScroll:we,initialScrollTop:me.current},$e):r.a.createElement(k,{ref:he,notes:Ee,sortStrategy:O,onScroll:we,initialScrollTop:me.current,selectedIndex:ye},$e),p?ne?rt:ot:null,W&&!p&&Ee.length>0&&r.a.createElement("div",{className:"preview-all-changes"},r.a.createElement("div",{className:"divider"}),r.a.createElement(Ne.a,{isSwitch:!0,checked:V===Se.y.PREVIEW,label:$("officeEditor.previewAllChanges"),onChange:function(e){return i.a.getOfficeEditor().setEditMode(e.target.checked?Se.y.PREVIEW:Se.y.REVIEWING)}})))),p&&r.a.createElement(ve,{showMultiReply:ne,setShowMultiReply:oe,showMultiState:ie,setShowMultiState:ae,showMultiStyle:ce,setShowMultiStyle:ue,setMultiSelectMode:h,isMultiSelectedMap:m,setIsMultiSelectedMap:g,multiSelectedAnnotations:J}),r.a.createElement(Re.a,{annotationId:fe,addAttachments:Ve}),(at=$(W?"officeEditor.reviewing":"component.notesPanel"),r.a.createElement("p",{"aria-live":"assertive",style:{position:"absolute",left:"-9999px"}},Ee.length>0?"".concat(at," ").concat(Ee.length):$("message.noResults")))):null},We=n(239);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(){return(Ke=Object.assign?Object.assign.bind():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 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 $e(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){Ze(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 Ze(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ve(e)||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qe(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 Qe(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 Qe(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 Je(e){var t=e.isCustomPanelOpen,n=e.parentDataElement,a=void 0===n?void 0:n,l=e.dataElement,c=Xe(Object(s.e)((function(e){return[R.a.isElementOpen(e,a||l||le.a.NOTES_PANEL),R.a.getNotesInLeftPanel(e),R.a.getIsNotesPanelMultiSelectEnabled(e),R.a.isMultiViewerMode(e),R.a.getActiveDocumentViewerKey(e),R.a.getIsOfficeEditorMode(e)]}),s.c),6),u=c[0],d=c[1],f=c[2],p=c[3],h=c[4],m=c[5],g=Xe(Object(o.useState)(""),2),v=g[0],b=g[1],y=Xe(Object(o.useState)(!1),2),w=y[0],x=y[1],E=Xe(Object(o.useState)(!1),2),k=E[0],O=E[1],S=Xe(Object(o.useState)({1:[],2:[]}),2),_=S[0],C=S[1],A=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;_[t]=e,C($e({},_))}),[h,_[1],_[2],C]),T=_[h]||_[1],P=Xe(Object(o.useState)({1:{},2:{}}),2),j=P[0],N=P[1],I=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;j[t]=e,N($e({},j))}),[h,j[1],j[2],N]),L=j[h]||j[1],q=Xe(Object(o.useState)({1:{},2:{}}),2),M=q[0],D=q[1],z=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;M[t]=e,D($e({},M))}),[h,M[1],M[2],D]),F=M[h]||M[1],B=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($.g)(e)===$.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({}),b("")}},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(B),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),O(!0));var l=H(r),s=r.length>1&&l.length!==r.length||w;f&&"selected"===o&&s?(x(!0),r.forEach((function(e){F[e.Id]=e})),z($e({},F),e)):"deselected"===o&&(n.forEach((function(e){delete F[e.Id]})),z($e({},F),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,F,f,p]);var U={notes:T,selectedNoteIds:L,setSelectedNoteIds:I,searchInput:v,setSearchInput:b,isMultiSelectMode:w,setMultiSelectMode:x,isMultiSelectedMap:F,setIsMultiSelectedMap:z,scrollToSelectedAnnot:k,setScrollToSelectedAnnot:O};return r.a.createElement(Ge,Ke({},e,U))}var et=function(e){return r.a.createElement(We.a,{wrapOnlyInMultiViewerMode:!0},r.a.createElement(Je,e))};t.default=et},1704:function(e,t,n){"use strict";n.r(t);n(101),n(8),n(15),n(84),n(29),n(124),n(128),n(10),n(11),n(41),n(19),n(12),n(13),n(14),n(9),n(16),n(20),n(18),n(54),n(22),n(61),n(62),n(63),n(64),n(37),n(39),n(23),n(24),n(40),n(60);var o=n(0),r=n.n(o),i=n(6),a=n(347),l=n(1509),s=n(1590),c=n(444),u=n(4),d=n(2),f=n(42),p=r.a.createContext(),h=n(3),m=n.n(h),g=n(1811),v=n(1812),b=n(592),y=n(1530),w=(n(36),n(1529)),x=n(5),E=n(2007),k=n(252),O=(n(1523),n(1687),n(1585)),S=n(17),_=n.n(S);function C(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return A(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 A(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 A(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}var T={portfolioItem:m.a.object.isRequired,isPortfolioRenaming:m.a.bool,setPortfolioRenaming:m.a.func,movePortfolio:m.a.func},P=function(e){var t=e.portfolioItem,n=e.isPortfolioRenaming,l=e.setPortfolioRenaming,s=e.movePortfolio,c=Object(o.useContext)(p),d=c.refreshPortfolio,h=c.renamePortfolioItem,m=c.removePortfolioItem,g=c.openPortfolioItem,v=c.downloadPortfolioItem,b=c.isNameDuplicated,y=c.setActivePortfolioItem,S=t.name,A=t.nameWithoutExtension,T=t.extension,P=t.id,j=C(Object(a.a)(),1)[0],N=Object(o.useRef)(),I=C(Object(o.useState)(!1),2),L=I[0],R=I[1],q=C(Object(o.useState)(A),2),M=q[0],D=q[1],z=Object(o.useCallback)((function(){n||(g(t),y(t.id))}),[n,t,g,y]),F=function(){return!M||A===M||b("".concat(M,".").concat(T),P)},B=function(){l(!1),h(P,"".concat(M,".").concat(T))},H=function(){n&&(l(!1),D(A)),d()};Object(o.useEffect)((function(){n&&(N.current.focus(),N.current.select()),R(!n)}),[n]);var U="".concat(x.a.BOOKMARK_OUTLINE_FLYOUT,"-").concat(P),G=Object(i.e)((function(e){return u.a.getFlyout(e,U)})),W={moreOptionsDataElement:"portfolio-item-more-button-".concat(P),flyoutToggleElement:U},V={shouldHideDeleteButton:!1,currentFlyout:G,flyoutSelector:U,type:"portfolio",handleOnClick:function(e){switch(e){case w.b.MOVE_UP:case w.b.MOVE_DOWN:s(P,e);break;case w.b.OPENFILE:Object(k.g)(T)&&g(t);break;case w.b.RENAME:l(!0);break;case w.b.DOWNLOAD:v(t);break;case w.b.DELETE:m(P)}}};return r.a.createElement("div",{className:"bookmark-outline-single-container"},L&&r.a.createElement(O.a,{iconGlyph:"icon-header-page-manipulation-page-layout-single-page-line",labelHeader:S,enableMoreOptionsContextMenuFlyout:!0,onDoubleClick:z,contextMenuMoreButtonOptions:W,contentMenuFlyoutOptions:V}),n&&r.a.createElement("div",{className:_()({"bookmark-outline-label-row":!0,editing:n})},r.a.createElement("label",{className:"portfolio-input-label",htmlFor:P},j("portfolio.portfolioDocumentTitle")),r.a.createElement(E.a,{id:P,type:"text",name:"outline",ref:N,wrapperClassName:"portfolio-input",value:M,onKeyDown:function(e){"Enter"===e.key&&(e.stopPropagation(),n&&!F()&&B()),"Escape"===e.key&&H()},onChange:function(e){return D(e.target.value)},fillWidth:!0,messageText:b("".concat(M,".").concat(T),P)?j("portfolio.fileNameAlreadyExists"):"",message:b("".concat(M,".").concat(T),P)?"warning":"default","aria-label":"".concat(j("action.rename")," ").concat(M,".").concat(T)}),r.a.createElement("div",{className:"bookmark-outline-editing-controls"},r.a.createElement(f.a,{className:"bookmark-outline-cancel-button",label:j("action.cancel"),onClick:H}),n&&r.a.createElement(f.a,{className:"bookmark-outline-save-button",label:j("action.save"),isSubmitType:!0,disabled:F(),onClick:B}))))};P.propTypes=T;var j=P;n(1689);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return I(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 I(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 I(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}var L={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},R=Object(o.forwardRef)((function(e,t){var n=e.portfolioItem,i=e.connectDragSource,a=e.connectDragPreview,l=e.connectDropTarget,s=e.isDragging,c=e.isDraggedUpwards,u=e.isDraggedDownwards,d=e.movePortfolio,f=Object(o.useRef)(null);i(f),a(Object(b.a)(),{captureDraggingState:!0}),l(f);var p=s?.5:1;Object(o.useImperativeHandle)(t,(function(){return{getNode:function(){return f.current}}}));var h=N(Object(o.useState)(!1),2),m=h[0],g=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:c?1:0}}),r.a.createElement(j,{movePortfolio:d,portfolioItem:n,isPortfolioRenaming:m,setPortfolioRenaming:g}),r.a.createElement("div",{className:"outline-drag-line",style:{opacity:u?1:0}}))}));R.propTypes=L,R.displayName="PortfolioItem";var q=Object(g.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 s=l.getBoundingClientRect(),c=s.height/2+s.top,u=t.getClientOffset().y;switch(!0){case u>c:o.dropLocation=y.b.BELOW_TARGET,l.classList.remove("isNesting");break;case u<c: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,s=e.movePortfolioBeforeTarget,c=e.movePortfolioAfterTarget;if(i){switch(o.dropLocation){case y.b.ON_TARGET_HORIZONTAL_MIDPOINT:l(r,a);break;case y.b.ABOVE_TARGET:s(r.id,a.id);break;case y.b.BELOW_TARGET:c(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(v.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()}}))(R));q.propTypes=L;var M=q,D=n(1801),z={position:"fixed",pointerEvents:"none",zIndex:99999,left:0,top:0,width:"100%",height:"100%"},F=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}},B=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:F(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(75),U=n(38),G=n(135),W=n(1);n(1691);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 K(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 Y(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/facebook/regenerator/blob/main/LICENSE */$=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new S(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&n.call(v,i)&&(m=v);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==V(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return C()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new w(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Z(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)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=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)?ee(e,t):void 0}}function ee(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}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)(),g=Q(Object(a.a)(),1)[0],v=Q(Object(o.useState)(null),2),b=v[0],E=v[1],O=Q(Object(o.useState)(!1),2),S=O[0],_=O[1],C=Object(o.useRef)(null),A=function(){var e;null==C||null===(e=C.current)||void 0===e||e.click()},T=function(){var e=X($().mark((function e(t){var n,o,r,i,a,l,s,c;return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(1!==(n=t.target.files).length){e.next=21;break}if(o=n[0],!h.some((function(e){return e.name===o.name}))){e.next=12;break}r=g("portfolio.fileAlreadyExistsMessage",{fileName:o.name}),i=g("portfolio.fileAlreadyExists"),a=g("portfolio.reselect"),l={message:r,title:i,confirmBtnText:a,onConfirm:function(){return A()}},m(d.a.showWarningMessage(l)),e.next=21;break;case 12:if(!(s=W.a.getDocument())){e.next=21;break}return e.next=16,s.getPDFDoc();case 16:if(!(c=e.sent)){e.next=21;break}return e.next=20,Object(k.b)(c,o);case 20:N();case 21:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=X($().mark((function e(t,n){return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.h)(t,n);case 2:N();case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),N=function(){var e=X($().mark((function e(){return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=m,e.t1=d.a,e.next=4,Object(k.f)();case 4:e.t2=e.sent,e.t3=e.t1.setPortfolio.call(e.t1,e.t2),(0,e.t0)(e.t3),_(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=X($().mark((function e(t){return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(d.a.openElement(x.a.LOADING_MODAL)),e.next=3,Object(k.e)(t);case 3:m(d.a.closeElement(x.a.LOADING_MODAL));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),L=function(e,t){console.log(e.name,"Inward",t.name)},R=function(){var e=X($().mark((function e(t,n,o,r){var i,a,l,s,c,u,d,f,p;return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=Y(t),a=i.findIndex((function(e){return e.id===n})),l=i.findIndex((function(e){return e.id===o})),s=l,r===y.b.ABOVE_TARGET&&a<l&&(s=l-1),r===y.b.BELOW_TARGET&&a>l&&(s=l+1),i.splice(s,0,i.splice(a,1)[0]),c=K(i.entries()),e.prev=8,c.s();case 10:if((u=c.n()).done){e.next=17;break}if(d=Q(u.value,2),f=d[0],(p=d[1]).order===f){e.next=15;break}return e.next=15,Object(k.i)(p.id,f);case 15:e.next=10;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(8),c.e(e.t0);case 22:return e.prev=22,c.f(),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[8,19,22,25]])})));return function(t,n,o,r){return e.apply(this,arguments)}}(),q=function(){var e=X($().mark((function e(t,n){var o,r,i,a,l,s,c,u;return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.f)();case 2:if(o=e.sent,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.next=7;break}return e.abrupt("return");case 7:i=n===w.b.MOVE_UP?r-1:r+1,o.splice(i,0,o.splice(r,1)[0]),a=K(o.entries()),e.prev=10,a.s();case 12:if((l=a.n()).done){e.next=19;break}if(s=Q(l.value,2),c=s[0],(u=s[1]).order===c){e.next=17;break}return e.next=17,Object(k.i)(u.id,c);case 17:e.next=12;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(10),a.e(e.t0);case 24:return e.prev=24,a.f(),e.finish(24);case 27:return e.next=29,N();case 29:case"end":return e.stop()}}),e,null,[[10,21,24,27]])})));return function(t,n){return e.apply(this,arguments)}}(),D=Object(o.useCallback)(function(){var e=X($().mark((function e(t,n){return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R(h,t,n,y.b.ABOVE_TARGET);case 2:N();case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[h]),z=Object(o.useCallback)(function(){var e=X($().mark((function e(t,n){return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R(h,t,n,y.b.BELOW_TARGET);case 2:N();case 3:case"end":return e.stop()}}),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"},g("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:g("portfolio.addFile"),disabled:S,onClick:A}),r.a.createElement("input",{ref:C,style:{display:"none"},type:"file",onChange:function(e){T(e),e.target.value=null}}))),r.a.createElement(p.Provider,{value:{activePortfolioItem:b,setActivePortfolioItem:E,isPortfolioItemActive:function(e){return(null==e?void 0:e.id)===b},isAddingNewFolder:S,setAddingNewFolder:_,addNewFolder:function(e){e||(e=g("message.untitled")),N()},renamePortfolioItem:P,removePortfolioItem:function(e){var t,n=h.find((function(t){return t.id===e})),o={message:g("portfolio.deletePortfolio",{fileName:n.name}),title:g("action.delete"),confirmBtnText:g("action.delete"),onConfirm:(t=X($().mark((function t(){return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(k.d)(e);case 2:N();case 3:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})};m(d.a.showWarningMessage(o))},openPortfolioItem:function(e){Object(k.g)(e.extension)&&(m(Object(G.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?s.a:c.a},r.a.createElement(B,null),r.a.createElement("div",{className:"portfolio-panel-list"},h.map((function(e){return r.a.createElement(M,{key:e.id,portfolioItem:e,movePortfolioInward:L,movePortfolioBeforeTarget:D,movePortfolioAfterTarget:z,movePortfolio:q})})),S&&r.a.createElement(H.a,{className:"bookmark-outline-single-container editing"},r.a.createElement(j,{name:"",id:"0",isFolder:!0,isAdding:!0}))))))};t.default=te},1705:function(e,t,n){"use strict";n.r(t);n(41),n(32),n(116),n(23),n(8),n(24),n(46),n(52),n(29),n(25),n(36),n(100),n(111),n(84),n(19),n(12),n(13),n(14),n(10),n(9),n(11),n(16),n(15),n(20),n(18),n(27),n(28),n(22),n(47),n(49),n(48);var o=n(0),r=n.n(o),i=n(6),a=n(347),l=(n(154),n(90),n(4)),s=n(17),c=n.n(s),u=n(1),d=n(3),f=n.n(d),p=n(42),h=n(1536),m=n(75),g=n(1529),v=n(5),b=n(1538);n(1523);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(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}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},E=function(e){var t=e.text,n=e.label,s=e.defaultLabel,d=e.pageIndex,f=e.isAdding,w=e.isMultiSelectionMode,x=e.setSelected,E=e.onSave,k=e.onRemove,O=e.onCancel,S=e.panelSelector,_=y(Object(a.a)(),1)[0],C=y(Object(o.useState)(!1),2),A=C[0],T=C[1],P=y(Object(o.useState)(!1),2),j=P[0],N=P[1],I=y(Object(o.useState)(t),2),L=I[0],R=I[1],q=y(Object(o.useState)(void 0),2),M=q[0],D=q[1],z=Object(o.useRef)(),F=function(){return!L||t===L},B=function(){T(!1),E(""===L.trim()?_("message.untitled"):L)},H=function(){T(!1),A&&R(t),f&&O()};Object(o.useEffect)((function(){L!==t&&R(t)}),[t]),Object(o.useEffect)((function(){(f||A)&&(z.current.focus(),z.current.select()),N(!f&&!A)}),[A]);var U="".concat(v.a.BOOKMARK_FLYOUT,"-").concat(d),G=Object(i.e)((function(e){return l.a.getFlyout(e,U)})),W="bookmark-more-button-".concat(S,"-").concat(d),V={labelHeader:s,description:t,enableMoreOptionsContextMenuFlyout:!0,contentMenuFlyoutOptions:{shouldHideDeleteButton:!1,currentFlyout:G,flyoutSelector:U,type:"bookmark",handleOnClick:function(e){switch(e){case g.b.RENAME:T(!0);break;case g.b.DELETE:k(d)}}},contextMenuMoreButtonOptions:{flyoutToggleElement:U,moreOptionsDataElement:W},onClick:function(e){j&&1===e.detail&&D(setTimeout((function(){!function(e){u.a.setCurrentPage(e+1)}(d)}),300))},onDoubleClick:function(){j&&T(!0)},checkboxOptions:{id:"bookmark-checkbox-".concat(d+1),onChange:function(e){x(d,e.target.checked)},ariaLabel:"".concat(_("action.select")," ").concat(n),disabled:!w}};return r.a.createElement(r.a.Fragment,null,j&&r.a.createElement(b.a,V),(f||A)&&r.a.createElement(m.a,{className:c()({"bookmark-outline-single-container":!0,editing:f||A,default:j}),onDoubleClick:function(){j&&clearTimeout(M)}},r.a.createElement("div",{className:"bookmark-outline-label-row"},r.a.createElement("div",{className:"bookmark-outline-label"},f||A?n:s),r.a.createElement("input",{type:"text",name:"bookmark",ref:z,className:"bookmark-outline-input bookmark-text-input","aria-label":_("action.name"),value:L,onKeyDown:function(e){"Enter"===e.key&&(e.stopPropagation(),(f||A&&!F())&&B()),"Escape"===e.key&&H()},onChange:function(e){return R(e.target.value)}}),r.a.createElement("div",{className:"bookmark-outline-editing-controls"},r.a.createElement(h.a,{label:_("action.cancel"),onClick:H,ariaLabel:"".concat(_("action.cancel")," ").concat(_("component.bookmarkPanel"))}),f&&r.a.createElement(p.a,{className:"bookmark-outline-save-button",label:_("action.add"),isSubmitType:!0,onClick:B,ariaLabel:"".concat(_("action.add")," ").concat(_("component.bookmarkPanel"))}),A&&r.a.createElement(p.a,{className:"bookmark-outline-save-button",label:_("action.save"),isSubmitType:!0,disabled:F(),onClick:B,ariaLabel:"".concat(_("action.save")," ").concat(_("component.bookmarkPanel"))})))))};E.propTypes=x;var k=E,O=n(155),S=n(2);n(1659);function _(e){return(_="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){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 T(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){P(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 P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==_(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)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=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)?I(e,t):void 0}}function I(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}var L=function(e){var t,n,s=e.panelSelector,d=j(Object(i.e)((function(e){return[l.a.isElementDisabled(e,v.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),f=d[0],g=d[1],b=d[2],y=d[3],w=d[4],x=d[5],E=j(Object(o.useState)(!1),2),_=E[0],A=E[1],N=j(Object(o.useState)(!1),2),I=N[0],L=N[1],R=j(Object(o.useState)([]),2),q=R[0],M=R[1],D=x.customizableUI,z=j(Object(a.a)(),1)[0],F=Object(i.d)();Object(o.useEffect)((function(){w&&!f?u.a.setBookmarkIconShortcutVisibility(!0):u.a.setBookmarkIconShortcutVisibility(!1)}),[f,w]);var B=Object.keys(g).map((function(e){return parseInt(e,10)}));Object(o.useEffect)((function(){q.forEach((function(e){B.includes(e)||M(q.filter((function(t){return t!==e})))})),0===B.length&&L(!1)}),[g]);var H=function(e){var t=z("warning.deleteBookmark.title"),n={message:z("warning.deleteBookmark.message"),title:t,onConfirm:function(){e.forEach((function(e){return u.a.removeUserBookmark(Number(e))})),M([])},confirmBtnText:z("action.delete")};F(S.a.showWarningMessage(n))};return f?null:r.a.createElement("div",{className:c()((t={Panel:!0,BookmarksPanel:!0,"bookmark-outline-panel":!0},P(t,s,!0),P(t,"modular-ui-panel",D),t)),"data-element":v.a.BOOKMARK_PANEL},r.a.createElement("div",{className:"bookmark-outline-panel-header"},r.a.createElement("div",{className:"header-title"},z("component.bookmarksPanel")),!I&&r.a.createElement(h.a,{dataElement:v.a.BOOKMARK_MULTI_SELECT,label:z("action.edit"),disabled:_||0===B.length,onClick:function(){return L(!0)},ariaLabel:"".concat(z("action.edit")," ").concat(z("component.bookmarksPanel"))}),I&&r.a.createElement(h.a,{dataElement:v.a.BOOKMARK_MULTI_SELECT,label:z("option.bookmarkOutlineControls.done"),disabled:_,onClick:function(){L(!1),M([])},ariaLabel:"".concat(z("option.bookmarkOutlineControls.done")," ").concat(z("action.edit"))})),r.a.createElement(O.a,{dataElement:v.a.BOOKMARK_SHORTCUT_OPTION,type:"checkbox",isSwitch:!0,id:"bookmark-view-option",className:"bookmark-switch",label:z("message.viewBookmark"),checked:w,onChange:function(e){return F(S.a.setBookmarkIconShortcutVisibility(e.target.checked))}}),!_&&0===B.length&&r.a.createElement("div",{className:"msg msg-no-bookmark-outline"},z("message.noBookmarks")),r.a.createElement("div",{className:"bookmark-outline-row"},_&&r.a.createElement(k,{isAdding:!0,label:"".concat(z("component.bookmarkPage")," ").concat(y[b]," - ").concat(z("component.bookmarkTitle")),text:null!==(n=g[b])&&void 0!==n?n:"",pageIndex:b,onSave:function(e){u.a.addUserBookmark(b,e),A(!1)},onCancel:function(){return A(!1)},panelSelector:s}),B.map((function(e){return r.a.createElement(k,{key:e,panelSelector:s,isMultiSelectionMode:I,label:"".concat(z("component.bookmarkPage")," ").concat(y[e]," - ").concat(z("component.bookmarkTitle")),defaultLabel:"".concat(z("component.bookmarkPage")," ").concat(y[e]),text:g[e],pageIndex:e,onSave:function(t){var n=T(T({},u.a.getUserBookmarks()),{},P({},e,t));u.a.setUserBookmarks(n)},onRemove:function(e){return H([e])},setSelected:function(e,t){e=e.toString(),q.find((function(t){return t===e}))?t||M(q.filter((function(t){return t!==e}))):t&&M([].concat(C(q),[e]))}})}))),r.a.createElement(m.a,{className:"bookmark-outline-footer",dataElement:v.a.BOOKMARK_ADD_NEW_BUTTON_CONTAINER},I?r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-menu-add",disabled:q.length>0||!!g[b]||_,onClick:function(){return A(!0)},ariaLabel:"".concat(z("action.add")," ").concat(z("component.bookmarkPanel"))}),r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-delete-line",disabled:0===q.length,onClick:function(){return H(q)},ariaLabel:"".concat(z("action.delete")," ").concat(z("component.bookmarkPanel"))})):r.a.createElement(h.a,{img:"icon-menu-add",dataElement:v.a.BOOKMARK_ADD_NEW_BUTTON,label:"".concat(z("action.add")," ").concat(z("component.bookmarkPanel")),disabled:_||!!g[b],onClick:function(){return A(!0)},ariaLabel:"".concat(z("action.add")," ").concat(z("component.bookmarkPanel"))})))};t.default=L},1706:function(e,t,n){"use strict";n.r(t);n(101),n(8),n(97),n(46),n(16),n(60),n(130),n(36),n(84),n(29),n(19),n(12),n(13),n(14),n(10),n(9),n(11),n(15),n(20),n(18),n(54),n(22),n(61),n(62),n(63),n(64),n(37),n(39),n(23),n(24),n(40);var o=n(0),r=n.n(o),i=n(6),a=n(347),l=n(1509),s=n(38),c=n(444),u=n(1590),d=n(1694),f=n(1556),p=n(42),h=n(1536),m=n(1592),g=n(75),v=n(1),b=n(447),y=n(93),w=n(5),x=n(73),E=n(57),k=n(301),O=n(2),S=n(4),_=(n(1523),n(1657),n(1801)),C=n(1530),A={position:"fixed",pointerEvents:"none",zIndex:99999,left:0,top:0,width:"100%",height:"100%"},T=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}},P=function(){var e=Object(_.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:T(i,a)},function(){if(!n)return null;var e=n.dragOutline;switch(t){case C.c.OUTLINE:return r.a.createElement(r.a.Fragment,null,e.getName());default:return null}}())):null},j=n(17),N=n.n(j),I=n(1584);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 R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||F(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 q(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */q=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new S(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&n.call(v,i)&&(m=v);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==L(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return C()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new w(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function M(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function D(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){M(i,o,r,a,l,"next",e)}function l(e){M(i,o,r,a,l,"throw",e)}a(void 0)}))}}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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||F(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 F(e,t){if(e){if("string"==typeof e)return B(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)?B(e,t):void 0}}function B(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}var H=function(e){var t=e.isTest,n=void 0!==t&&t,_=z(Object(i.e)((function(e){return[S.a.isElementDisabled(e,w.a.OUTLINE_PANEL),S.a.getOutlines(e),S.a.getOutlineEditingEnabled(e),S.a.shouldAutoExpandOutlines(e),S.a.getCurrentPage(e),S.a.getPageLabels(e),S.a.getFeatureFlags(e)]}),i.c),7),C=_[0],A=_[1],T=_[2],j=_[3],L=_[4],M=_[5],F=_[6],B="Full Page",H="Area Selection",U={x:0,y:0},G=z(Object(o.useState)(B),2),W=G[0],V=G[1],K=z(Object(o.useState)(U),2),Y=K[0],$=K[1],Z=z(Object(o.useState)(L),2),X=Z[0],Q=Z[1],J=z(Object(o.useState)(!1),2),ee=J[0],te=J[1],ne=z(Object(o.useState)(null),2),oe=ne[0],re=ne[1],ie=z(Object(o.useState)(!1),2),ae=ie[0],le=ie[1],se=z(Object(o.useState)({}),2),ce=se[0],ue=se[1],de=z(Object(o.useState)(!1),2),fe=de[0],pe=de[1],he=z(Object(o.useState)(!1),2),me=he[0],ge=he[1],ve=z(Object(o.useState)([]),2),be=ve[0],ye=ve[1],we=F.customizableUI,xe=z(Object(a.a)(),1)[0],Ee=Object(i.d)(),ke=Object(o.useRef)(null),Oe="OutlineDestinationCreateTool",Se=v.a.getTool(Oe),_e=Object(o.useRef)();Object(o.useLayoutEffect)((function(){le(!1),null!==ke.current&&(re(ke.current),ke.current=null),0===A.length&&ge(!1)}),[A]),Object(o.useEffect)((function(){var e=function(){return v.a.isFullPDFEnabled()&&Object(k.a)()!==E.a.OFFICE&&T};te(e());var t=function(){te(e())};return v.a.addEventListener("documentLoaded",t),function(){return v.a.removeEventListener("documentLoaded",t)}}),[T]),Object(o.useEffect)((function(){var e=Object.values(ce).some((function(e){return e}));pe(e)}),[ce,A]),Object(o.useEffect)((function(){var e=function(e){V(e.IsText?e.getCustomData("trn-annot-preview"):H),$({x:e.X,y:e.Y}),Q(e.PageNumber)},t=function(){v.a.getOutlines((function(e){Ee(O.a.setOutlines(e))}))},n=function(){re(null)};return v.a.addEventListener("outlineSetDestination",e),window.addEventListener("outlineBookmarksChanged",t),v.a.addEventListener("documentLoaded",n),function(){v.a.removeEventListener("outlineSetDestination",e),window.removeEventListener("outlineBookmarksChanged",t),v.a.removeEventListener("documentLoaded",n)}}),[]),Object(o.useEffect)((function(){var e=function(e){e.target.classList.contains("bookmark-outline-row")&&(re(null),ye([]))};return _e.current&&_e.current.addEventListener("click",e),function(){_e.current&&_e.current.removeEventListener("click",e)}}),[]);var Ce=function(e,t){var n=t.x,o=t.y;return v.a.getDocumentViewer().getDocument().getViewerCoordinates(e,n,o)},Ae=function(){var e=D(q().mark((function e(t){var n,o,r,i,a,l,s;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Ce(X,Y),o=n.x,r=n.y,i=t,[B,H].includes(W)||t?t||(i=xe("message.untitled")):i=W.slice(0,40),a=v.a.getDocumentViewer().getDocument(),(l=a.getPageRotation(X)/90)!==window.Core.PageRotation.E_90&&l!==window.Core.PageRotation.E_270||(s=o,o=r,r=s),0!==A.length){e.next=11;break}return e.next=9,b.a.addRootOutline(i,X,o,r,0);case 9:e.next=13;break;case 11:return e.next=13,b.a.addNewOutline(i,oe,X,o,r,0);case 13:Te();case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Te=function(){Object(y.e)(),v.a.getOutlines((function(e){Ee(O.a.setOutlines(e))})),je(),ue({})},Pe=function(e){return b.a.getPath(e)},je=function(){v.a.setToolMode(x.a),V(B),$(U),Q(L),Se.clearOutlineDestination()},Ne=function(){var e=D(q().mark((function e(t){var n,o,r,i,a,l;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Ce(X,Y),o=n.x,r=n.y,i=v.a.getDocumentViewer().getDocument(),(a=i.getPageRotation(X)/90)!==window.Core.PageRotation.E_90&&a!==window.Core.PageRotation.E_270||(l=o,o=r,r=l),e.next=6,b.a.setOutlineDestination(t,X,o,r,0);case 6:ke.current=t,Te();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();Object(o.useEffect)((function(){W===B&&Q(L)}),[W,L]),Object(o.useEffect)((function(){ae?v.a.setToolMode(Oe):je()}),[ae]);var Ie=function(e,t,n){var o=Pe(e),r=Pe(t);ye([]),n.call(b.a,o,r).then((function(e){Te(),ke.current=e})),v.a.goToOutline(e)},Le=function(e,t){Ie(e,t,b.a.moveOutlineAfterTarget)},Re=function(e,t){Ie(e,t,b.a.moveOutlineBeforeTarget)},qe=function(e,t){Ie(e,t,b.a.moveOutlineInTarget)},Me=function(){var e=D(q().mark((function e(t,n){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.a.setOutlineName(t,n);case 2:Te();case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),De=function(){var e=D(q().mark((function e(t){var n;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.sort().reverse(),n={message:xe("warning.deleteOutline.message"),title:xe("warning.deleteOutline.title"),confirmBtnText:xe("action.delete"),onConfirm:function(){var e=D(q().mark((function e(){var n,o;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:if(!(n<t.length)){e.next=8;break}return o=t[n],e.next=5,b.a.deleteOutline(o);case 5:n++,e.next=1;break;case 8:Te(),re(null),ye([]);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},Ee(O.a.showWarningMessage(n));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return C?null:r.a.createElement("div",{className:N()("Panel OutlinesPanel bookmark-outline-panel",{"modular-ui-panel":we}),"data-element":w.a.OUTLINE_PANEL,ref:_e},r.a.createElement("div",{className:"bookmark-outline-panel-header"},r.a.createElement("h2",{className:"header-title"},xe("component.outlinesPanel")),ee&&(me?r.a.createElement(h.a,{className:"bookmark-outline-control-button",dataElement:w.a.OUTLINE_MULTI_SELECT,label:xe("option.bookmarkOutlineControls.done"),disabled:ae,onClick:function(){return ge(!1)},ariaLabel:"".concat(xe("option.bookmarkOutlineControls.done")," ").concat(xe("action.edit"))}):r.a.createElement(h.a,{className:"bookmark-outline-control-button",dataElement:w.a.OUTLINE_MULTI_SELECT,label:xe("option.bookmarkOutlineControls.edit"),disabled:ae||0===A.length,onClick:function(){ge(!0),ye([])},ariaLabel:"".concat(xe("action.edit")," ").concat(xe("component.outlinesPanel"))}))),r.a.createElement(f.a.Provider,{value:{currentDestPage:M[X-1],currentDestText:W,setActiveOutlinePath:re,activeOutlinePath:oe,isOutlineActive:function(e){return Pe(e)===oe},setAddingNewOutline:le,isAddingNewOutline:ae,setEditingOutlines:ue,editingOutlines:ce,selectedOutlines:be,isAnyOutlineRenaming:fe,isMultiSelectMode:me,shouldAutoExpandOutlines:j,isOutlineEditable:ee,addNewOutline:Ae,updateOutlines:Te,renameOutline:Me,updateOutlineDest:Ne,removeOutlines:De}},r.a.createElement(l.a,{backend:s.l?u.a:c.a},r.a.createElement(P,null),r.a.createElement("div",{className:"bookmark-outline-row"},!ae&&0===A.length&&r.a.createElement("div",{className:"msg msg-no-bookmark-outline"},xe("message.noOutlines")),r.a.createElement(I.a,{data:A,itemContent:function(e,t){return r.a.createElement(d.default,{key:b.a.getOutlineId(t),outline:t,setMultiSelected:function(e,t){be.find((function(t){return t===e}))?t||ye(be.filter((function(t){return t!==e}))):t&&ye([].concat(R(be),[e]))},moveOutlineInward:qe,moveOutlineBeforeTarget:Re,moveOutlineAfterTarget:Le})},initialItemCount:n?A.length:void 0}),ae&&null===oe&&r.a.createElement(g.a,{className:"bookmark-outline-single-container editing"},r.a.createElement(m.a,{isAdding:!0,text:"",onCancel:function(){return le(!1)}})))),ee&&r.a.createElement(g.a,{className:"bookmark-outline-footer",dataElement:w.a.OUTLINE_ADD_NEW_BUTTON_CONTAINER},me?r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-menu-add",ariaLabel:"".concat(xe("action.add")," ").concat(xe("component.outlinesPanel")),disabled:be.length>0||ae||fe,onClick:function(){return le(!0)}}),r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-delete-line",disabled:0===be.length||fe,onClick:function(){return De(be)}})):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:ae||fe,label:"".concat(xe("action.add")," ").concat(xe("component.outlinePanel")),onClick:function(){return le(!0)},ariaLabel:"".concat(xe("action.add")," ").concat(xe("component.outlinesPanel"))}))))},U=r.a.memo(H);t.default=U},1708:function(e,t,n){"use strict";n.r(t);n(18),n(177),n(36),n(200),n(90),n(41),n(8),n(54),n(1577),n(19),n(12),n(13),n(14),n(10),n(9),n(11),n(16),n(15),n(20),n(22),n(61),n(62),n(63),n(64),n(37),n(39),n(23),n(24),n(40),n(60);var o=n(0),r=n.n(o),i=n(347),a=n(276),l=n(1562),s=n(165),c=n(43),u=n(1),d=n(6),f=n(4),p=n(2),h=n(5),m=(n(1661),n(34));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(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new C(r||[]);return o(a,"_invoke",{value:k(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(A([])));y&&y!==t&&n.call(y,i)&&(m=y);var w=h.prototype=f.prototype=Object.create(m);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==g(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function k(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return T()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=O(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function O(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=h,o(w,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(E.prototype),s(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new E(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),s(w,l,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;_(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function b(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).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){b(i,o,r,a,l,"next",e)}function l(e){b(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return x(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 x(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 x(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}var E=function(e){return e.match(/[^\\\/]+$/g)[0]},k=function(e,t,n,o){var i=(e=E(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)))},O={embeddedFiles:[],fileAttachmentAnnotations:[]},S=function(e){var t=e.initialFiles,n=void 0===t?O:t,l=w(Object(i.a)(),1)[0],g=Object(d.d)(),b=w(Object(o.useState)(n),2),x=b[0],S=b[1],_=Object(d.e)(f.a.getIsMultiTab),C=Object(d.e)(f.a.getTabManager),A=w(Object(o.useState)(null),2),T=A[0],P=A[1];if(Object(o.useEffect)((function(){var e=function(){var e=y(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.b)();case 2:t=e.sent,S(t);case 4:case"end":return e.stop()}}),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(c.a,{className:"empty-icon",glyph:m.c[m.e.FILE_ATTACHMENT].icon}),r.a.createElement("div",{className:"empty-message"},l("message.noAttachments"))));var j=function(){var e=y(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_){e.next=5;break}g(p.a.openElement(h.a.LOADING_MODAL)),setTimeout(y(v().mark((function e(){var n,o,r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFileData();case 2:return n=e.sent,o=E(t.filename),e.next=6,C.addTab(n,{filename:o});case 6:return r=e.sent,g(p.a.closeElement(h.a.LOADING_MODAL)),g(p.a.closeElement(h.a.LEFT_PANEL)),e.next=11,C.setActiveTab(r);case 11:case"end":return e.stop()}}),e)}))),100),e.next=6;break;case 5:return e.abrupt("return",u.a.getAnnotationManager().trigger("annotationDoubleClicked",t));case 6:case"end":return e.stop()}}),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 k(E(e.filename),(function(){P("embeddedFile_".concat(t)),Object(a.a)(e.fileObject).then((function(t){Object(s.saveAs)(t,E(e.filename))})).finally((function(){P(null)}))}),"embeddedFile_".concat(t),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 k(E(e.filename),y(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u.a.setCurrentPage(e.PageNumber),u.a.selectAnnotation(e),t.next=4,j(e);case 4:case"end":return t.stop()}}),t)}))),"fileAttachmentAnnotation_".concat(t))}))))})))};t.default=S},1801:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n(16),n(8),n(15),n(20),n(9),n(18),n(12),n(13),n(14),n(10),n(11),n(19);var o=n(0),r=n(1535),i=n(1644);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 s(e){var t=Object(r.a)().getMonitor(),n=a(Object(i.a)(t,e),2),l=n[0],s=n[1];return Object(o.useEffect)((function(){return t.subscribeToOffsetChange(s)})),Object(o.useEffect)((function(){return t.subscribeToStateChange(s)})),l}},1811:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(77),r=n(2004),i=n(2002),a=n(2003),l=n(1521),s=n(1591);n(22),n(8),n(54),n(23),n(24),n(32),n(79),n(85);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,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)}}])&&c(t.prototype,n),o&&c(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 c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Object(l.a)("DropTarget","type, spec, collect[, options]",e,t,n,c);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)(c),'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(s.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:c})}}},1812:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(77),r=n(2004),i=n(2006),a=n(2005),l=n(1521),s=n(1591);n(22),n(23),n(8),n(24),n(32),n(79),n(85);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,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))}}])&&c(t.prototype,n),o&&c(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 c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Object(l.a)("DragSource","type, spec, collect[, options]",e,t,n,c);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)(c),'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(s.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:c})}}},1981:function(e,t,n){var o=n(30),r=n(1982);"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||{}},1982:function(e,t,n){(t=e.exports=n(31)(!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-right: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"}},1983:function(e,t,n){var o=n(30),r=n(1984);"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||{}},1984:function(e,t,n){(t=e.exports=n(31)(!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;left: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;top:0;left: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;top:0;left: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-right: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-right: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-right:5px;top: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-right:5px;top: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:0 8px 16px 16px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},2034:function(e,t,n){"use strict";n.r(t);n(41),n(19),n(12),n(13),n(8),n(14),n(10),n(9),n(11),n(16),n(15),n(20),n(18);var o=n(0),r=n.n(o),i=n(17),a=n.n(i),l=n(6),s=(n(36),n(27),n(28),n(25),n(22),n(40),n(44),n(39),n(86),n(37),n(3)),c=n.n(s),u=n(1506),d=n(42),f=n(1693),p=n(5),h=n(2),m=n(4);n(1981);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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function w(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=k(e);if(t){var r=k(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return x(this,n)}}function x(e,t){if(t&&("object"===g(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 k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}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"!==g(e)||null===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:String(t)}var _=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(a,e);var t,n,o,i=w(a);function a(){var e;v(this,a);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return O(E(e=i.call.apply(i,[this].concat(n))),"isActive",(function(t){return e.props.activePanel===t})),e}return t=a,(n=[{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,s=t.notesInLeftPanel,c=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}),s&&r.a.createElement(d.a,{isActive:this.isActive(p.a.NOTES_PANEL),dataElement:"notesPanelButton",img:"icon-header-chat-line",onClick:function(){c(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"}))})))}}])&&b(t.prototype,n),o&&b(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.a.Component);O(_,"propTypes",{isLeftPanelOpen:c.a.bool,showPortfolio:c.a.bool,activePanel:c.a.string.isRequired,disabledCustomPanelTabs:c.a.array.isRequired,customPanels:c.a.array.isRequired,isLeftPanelTabsDisabled:c.a.bool,setActiveLeftPanel:c.a.func.isRequired,t:c.a.func.isRequired});var C={setActiveLeftPanel:h.a.setActiveLeftPanel,openElement:h.a.openElement},A=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)}}),C)(Object(u.a)()(_)),T=n(1704),P=n(1702),j=n(1706),N=n(1705),I=n(465),L=n(1708),R=n(1640),q=n(176),M=n(216),D=n(43),z=n(1703),F=n(1),B=n(66),H=n(38);n(1983);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return G(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 G(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 G(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}var W=function(){var e=Object(B.b)(),t=Object(B.c)(),n=U(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],s=n[2],c=n[3],u=n[4],d=n[5],f=n[6],g=n[7],v=n[8],b=n[9],y=n[10],w=n[11],x=n[12],E=n[13],k=n[14],O=n[15],S=n[16],_=n[17],C=Object(l.d)(),G=function(e){return e===f?"flex":"none"},W={};!y&&e||(W={width:"".concat(v,"px"),minWidth:"".concat(v,"px")});var V=!(!u||d),K=s&&"toolbarGroup-View"!==o,Y=!i&&!K,$={display:"none"};if(E.customizableUI){var Z=k+O;$.height="calc(100% - ".concat(Z,"px)")}return r.a.createElement("div",{className:a()({Panel:!0,LeftPanel:!0,closed:!V,"tools-header-open":K||c,"tools-header-and-header-hidden":Y,"thumbnail-panel-active":"thumbnailsPanel"===f,"outlines-panel-active":"outlinesPanel"===f,"multi-tab-active":w,"logo-bar-enabled":x,"office-editor":_}),onDrop:function(e){e.preventDefault()},onDragOver:function(e){e.preventDefault()},"data-element":p.a.LEFT_PANEL,style:$},r.a.createElement("div",{className:"left-panel-container",style:W},!y&&e&&r.a.createElement("div",{className:"close-container"},r.a.createElement("div",{className:"close-icon-container",onClick:function(){C(h.a.closeElements(["leftPanel"]))}},r.a.createElement(D.a,{glyph:"ic_close_black_24px",className:"close-icon"}))),_?r.a.createElement(z.default,{currentLeftPanelWidth:v}):r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"left-panel-header"},r.a.createElement(A,{showPortfolio:S.length>0})),f===p.a.PORTFOLIO_PANEL&&S.length>0&&r.a.createElement(T.default,null),"thumbnailsPanel"===f&&r.a.createElement(P.default,null),"outlinesPanel"===f&&r.a.createElement(j.default,null),"bookmarksPanel"===f&&r.a.createElement(N.default,null),"layersPanel"===f&&r.a.createElement(I.a,null),F.a.isFullPDFEnabled()&&"signaturePanel"===f&&r.a.createElement(R.default,null),"attachmentPanel"===f&&r.a.createElement(L.default,null),b&&"notesPanel"===f&&r.a.createElement(z.default,{currentLeftPanelWidth:v}),g.map((function(e,t){var n=e.panel;return r.a.createElement(q.a,{key:n.dataElement||t,className:"Panel ".concat(n.dataElement),display:G(n.dataElement),dataElement:n.dataElement,render:n.render})})))),(y||!t)&&r.a.createElement(M.a,{dataElement:"leftPanelResizeBar",minWidth:264,onResize:function(e){var t=window.innerWidth;H.e&&(t-=30),C(h.a.setLeftPanelWidth(Math.min(e,t)))}}))};t.default=W},592: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}))}}]);
|
|
10
|
+
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:s,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),s||(s=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=S(Array.prototype.forEach),d=S(Array.prototype.lastIndexOf),f=S(Array.prototype.pop),p=S(Array.prototype.push),h=S(Array.prototype.splice),m=S(String.prototype.toLowerCase),g=S(String.prototype.toString),v=S(String.prototype.match),b=S(String.prototype.replace),y=S(String.prototype.indexOf),w=S(String.prototype.trim),x=S(Object.prototype.hasOwnProperty),E=S(RegExp.prototype.test),k=(O=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(O,t)});var O;function S(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 s(e,t,o)}}function _(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 C(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]=C(r):r&&"object"==typeof r&&r.constructor===Object?n[o]=A(r):n[o]=r);return n}function T(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return S(n.get);if("function"==typeof n.value)return S(n.value)}e=o(e)}return function(){return null}}const P=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"]),j=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"]),L=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"]),R=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q=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"]),F=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=a(/<%[\w\W]*|[\w\W]*%>/gm),U=a(/\$\{[\w\W]*/gm),G=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),W=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),Y=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=a(/^html$/i),Z=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var X=Object.freeze({__proto__:null,ARIA_ATTR:W,ATTR_WHITESPACE:Y,CUSTOM_ELEMENT:Z,DATA_ATTR:G,DOCTYPE_NAME:$,ERB_EXPR:H,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:B,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,s=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:O,Node:S,Element:C,NodeFilter:B,NamedNodeMap:H=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:U,DOMParser:G,trustedTypes:W}=n,K=C.prototype,Y=T(K,"cloneNode"),Z=T(K,"remove"),ie=T(K,"nextSibling"),ae=T(K,"childNodes"),le=T(K,"parentNode");if("function"==typeof O){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let se,ce="";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:ge,ERB_EXPR:ve,TMPLIT_EXPR:be,DATA_ATTR:ye,ARIA_ATTR:we,IS_SCRIPT_OR_DATA:xe,ATTR_WHITESPACE:Ee,CUSTOM_ELEMENT:ke}=X;let{IS_ALLOWED_URI:Oe}=X,Se=null;const _e=_({},[...P,...j,...N,...L,...q]);let Ce=null;const Ae=_({},[...M,...D,...z,...F]);let Te=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}})),Pe=null,je=null,Ne=!0,Ie=!0,Le=!1,Re=!0,qe=!1,Me=!0,De=!1,ze=!1,Fe=!1,Be=!1,He=!1,Ue=!1,Ge=!0,We=!1;const Ve="user-content-";let Ke=!0,Ye=!1,$e={},Ze=null;const Xe=_({},["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=_({},["audio","video","img","source","image","track"]);let et=null;const tt=_({},["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 st=_({},[nt,ot,rt],g);let ct=_({},["mi","mo","mn","ms","mtext"]),ut=_({},["annotation-xml"]);const dt=_({},["title","style","font","a","script"]);let ft=null;const pt=["application/xhtml+xml","text/html"],ht="text/html";let mt=null,gt=null;const vt=r.createElement("form"),bt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!gt||gt!==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?g:m,Se=x(e,"ALLOWED_TAGS")?_({},e.ALLOWED_TAGS,mt):_e,Ce=x(e,"ALLOWED_ATTR")?_({},e.ALLOWED_ATTR,mt):Ae,lt=x(e,"ALLOWED_NAMESPACES")?_({},e.ALLOWED_NAMESPACES,g):st,et=x(e,"ADD_URI_SAFE_ATTR")?_(A(tt),e.ADD_URI_SAFE_ATTR,mt):tt,Qe=x(e,"ADD_DATA_URI_TAGS")?_(A(Je),e.ADD_DATA_URI_TAGS,mt):Je,Ze=x(e,"FORBID_CONTENTS")?_({},e.FORBID_CONTENTS,mt):Xe,Pe=x(e,"FORBID_TAGS")?_({},e.FORBID_TAGS,mt):A({}),je=x(e,"FORBID_ATTR")?_({},e.FORBID_ATTR,mt):A({}),$e=!!x(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Ie=!1!==e.ALLOW_DATA_ATTR,Le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,qe=e.SAFE_FOR_TEMPLATES||!1,Me=!1!==e.SAFE_FOR_XML,De=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,Ge=!1!==e.SANITIZE_DOM,We=e.SANITIZE_NAMED_PROPS||!1,Ke=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,Oe=e.ALLOWED_URI_REGEXP||V,it=e.NAMESPACE||rt,ct=e.MATHML_TEXT_INTEGRATION_POINTS||ct,ut=e.HTML_INTEGRATION_POINTS||ut,Te=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qe&&(Ie=!1),He&&(Be=!0),$e&&(Se=_({},q),Ce=[],!0===$e.html&&(_(Se,P),_(Ce,M)),!0===$e.svg&&(_(Se,j),_(Ce,D),_(Ce,F)),!0===$e.svgFilters&&(_(Se,N),_(Ce,D),_(Ce,F)),!0===$e.mathMl&&(_(Se,L),_(Ce,z),_(Ce,F))),e.ADD_TAGS&&(Se===_e&&(Se=A(Se)),_(Se,e.ADD_TAGS,mt)),e.ADD_ATTR&&(Ce===Ae&&(Ce=A(Ce)),_(Ce,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&_(et,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Ze===Xe&&(Ze=A(Ze)),_(Ze,e.FORBID_CONTENTS,mt)),Ke&&(Se["#text"]=!0),De&&_(Se,["html","head","body"]),Se.table&&(_(Se,["tbody"]),delete Pe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');se=e.TRUSTED_TYPES_POLICY,ce=se.createHTML("")}else void 0===se&&(se=re(W,s)),null!==se&&"string"==typeof ce&&(ce=se.createHTML(""));i&&i(e),gt=e}},wt=_({},[...j,...N,...I]),xt=_({},[...L,...R]),Et=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||ct[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&&!ct[o])&&!xt[n]&&(dt[n]||!wt[n]):!("application/xhtml+xml"!==ft||!lt[e.namespaceURI]))},kt=function(e){p(o.removed,{element:e});try{le(e).removeChild(e)}catch(t){Z(e)}},Ot=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(Be||He)try{kt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},St=function(e){let t=null,n=null;if(Fe)e="<remove></remove>"+e;else{const t=v(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=se?se.createHTML(e):e;if(it===rt)try{t=(new G).parseFromString(o,ft)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(it,"template",null);try{t.documentElement.innerHTML=at?ce: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},_t=function(e){return de.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},Ct=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 S&&e instanceof S};function Tt(e,t,n){u(e,e=>{e.call(o,t,n,gt)})}const Pt=function(e){let t=null;if(Tt(me.beforeSanitizeElements,e,null),Ct(e))return kt(e),!0;const n=mt(e.nodeName);if(Tt(me.uponSanitizeElement,e,{tagName:n,allowedTags:Se}),Me&&e.hasChildNodes()&&!At(e.firstElementChild)&&E(/<[/\w!]/g,e.innerHTML)&&E(/<[/\w!]/g,e.textContent))return kt(e),!0;if(e.nodeType===ee)return kt(e),!0;if(Me&&e.nodeType===te&&E(/<[/\w]/g,e.data))return kt(e),!0;if(!Se[n]||Pe[n]){if(!Pe[n]&&Nt(n)){if(Te.tagNameCheck instanceof RegExp&&E(Te.tagNameCheck,n))return!1;if(Te.tagNameCheck instanceof Function&&Te.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=Y(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,ie(e))}}return kt(e),!0}return e instanceof C&&!Et(e)?(kt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!E(/<\/no(script|embed|frames)/i,e.innerHTML)?(qe&&e.nodeType===J&&(t=e.textContent,u([ge,ve,be],e=>{t=b(t,e," ")}),e.textContent!==t&&(p(o.removed,{element:e.cloneNode()}),e.textContent=t)),Tt(me.afterSanitizeElements,e,null),!1):(kt(e),!0)},jt=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in r||n in vt))return!1;if(Ie&&!je[t]&&E(ye,t));else if(Ne&&E(we,t));else if(!Ce[t]||je[t]){if(!(Nt(e)&&(Te.tagNameCheck instanceof RegExp&&E(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&E(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&E(Te.tagNameCheck,n)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))))return!1}else if(et[t]);else if(E(Oe,b(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Qe[e])if(Le&&!E(xe,b(n,Ee,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&v(e,ke)},It=function(e){Tt(me.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ct(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:s}=i,c=mt(a),d=s;let p="value"===a?d:w(d);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,Tt(me.uponSanitizeAttribute,e,n),p=n.attrValue,!We||"id"!==c&&"name"!==c||(Ot(a,e),p=Ve+p),Me&&E(/((--!?|])>)|<\/(style|title)/i,p)){Ot(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Ot(a,e);continue}if(!Re&&E(/\/>/i,p)){Ot(a,e);continue}qe&&u([ge,ve,be],e=>{p=b(p,e," ")});const h=mt(e.nodeName);if(jt(h,c,p)){if(se&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(l);else switch(W.getAttributeType(h,c)){case"TrustedHTML":p=se.createHTML(p);break;case"TrustedScriptURL":p=se.createScriptURL(p)}if(p!==d)try{l?e.setAttributeNS(l,a,p):e.setAttribute(a,p),Ct(e)?kt(e):f(o.removed)}catch(t){Ot(a,e)}}else Ot(a,e)}Tt(me.afterSanitizeAttributes,e,null)},Lt=function e(t){let n=null;const o=_t(t);for(Tt(me.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)Tt(me.uponSanitizeShadowNode,n,null),Pt(n),It(n),n.content instanceof c&&e(n.content);Tt(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 k("toString is not a function");if("string"!=typeof(e=e.toString()))throw k("dirty is not a string, aborting")}if(!o.isSupported)return e;if(ze||yt(t),o.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=mt(e.nodeName);if(!Se[t]||Pe[t])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof S)n=St("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===Q&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Be&&!qe&&!De&&-1===e.indexOf("<"))return se&&Ue?se.createHTML(e):e;if(n=St(e),!n)return Be?null:Ue?ce:""}n&&Fe&&kt(n.firstChild);const s=_t(Ye?e:n);for(;i=s.nextNode();)Pt(i),It(i),i.content instanceof c&&Lt(i.content);if(Ye)return e;if(Be){if(He)for(l=fe.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Ce.shadowroot||Ce.shadowrootmode)&&(l=he.call(a,l,!0)),l}let d=De?n.outerHTML:n.innerHTML;return De&&Se["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&E($,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),qe&&u([ge,ve,be],e=>{d=b(d,e," ")}),se&&Ue?se.createHTML(d):d},o.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};yt(e),ze=!0},o.clearConfig=function(){gt=null,ze=!1},o.isValidAttribute=function(e,t,n){gt||yt({});const o=mt(e),r=mt(t);return jt(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}()}()},1637:function(e,t,n){n(586)("Int8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},1638:function(e,t,n){n(586)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}),!0)},1639: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,s=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,s=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(s.query){var c=s.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(s.query=s.query.substr(0,c[1].length),e=i(s))}if(e.length<=t)return e;if(s.host&&(s.host=s.host.replace(/^www\./,""),e=i(s)),e.length<=t)return e;var u="";if(s.host&&(u+=s.host),u.length>=l)return s.host.length==t?(s.host.substr(0,t-r)+n).substr(0,l+o):a(u,l).substr(0,l+o);var d="";if(s.path&&(d+="/"+s.path),s.query&&(d+="?"+s.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(s.fragment){var f="#"+s.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(s.scheme&&s.host){var p=s.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}(),c=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(76),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}(c),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}(c),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}(c),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}(c),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}(c),g=function(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder},v=/[A-Za-z]/,b=/[\d]/,y=/[\D]/,w=/\s/,x=/['"]/,E=/[\x00-\x1F\x7F]/,k=/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,O=k+/\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,S=/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,_=O+S,C=O+S,A="(?:["+S+"]{1,3}\\.){3}["+S+"]{1,3}",T="["+C+"](?:["+C+"\\-]{0,61}["+C+"])?",P=function(e){return"(?=("+T+"))\\"+e},j=function(e){return"(?:"+P(e)+"(?:\\."+P(e+1)+"){0,126}|"+A+")"},N=(new RegExp("["+C+".\\-]*["+C+"\\-]"),new RegExp("[".concat(C,"]"))),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|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,L=new RegExp("[".concat(C,"!#$%&'*+/=?^_`{|}~-]")),R=new RegExp("^".concat(I.source,"$")),q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.localPartCharRegex=L,t.strictTldRegex=R,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,s={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},c=0,f=0,p=l;c<a;){var h=e.charAt(c);switch(f){case 0:m(h);break;case 1:g(e.charAt(c-1),h);break;case 2:v(h);break;case 3:b(h);break;case 4:y(h);break;case 5:w(h);break;case 6:x(h);break;case 7:E(h);break;default:i(f)}c++}return S(),r;function m(e){"m"===e?k(1):n.test(e)&&k()}function g(e,t){":"===e?n.test(t)?(f=2,p=new M(Object(u.a)(Object(u.a)({},p),{hasMailtoPrefix:!0}))):O():s[e]===t||(n.test(t)?f=2:"."===t?f=3:"@"===t?f=4:O())}function v(e){"."===e?f=3:"@"===e?f=4:n.test(e)||O()}function b(e){"."===e||"@"===e?O():n.test(e)?f=2:O()}function y(e){N.test(e)?f=5:O()}function w(e){"."===e?f=7:"-"===e?f=6:N.test(e)||S()}function x(e){"-"===e||"."===e?S():N.test(e)?f=5:S()}function E(e){"."===e||"-"===e?S():N.test(e)?(f=5,p=new M(Object(u.a)(Object(u.a)({},p),{hasDomainDot:!0}))):S()}function k(e){void 0===e&&(e=2),f=e,p=new M({idx:c})}function O(){f=0,p=l}function S(){if(p.hasDomainDot){var n=e.slice(p.idx,c);/[-.]$/.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}))}O()}},t}(g),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]*?["+k+"]"),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("[/?#](?:["+C+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+C+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,j(2),")","|","(","(//)?",/(?:www\.)/.source,j(6),")","|","(","(//)?",j(10)+"\\.",I.source,"(?![-"+_+"])",")",")","(?::[0-9]+)?","(?:"+l.source+")?"].join(""),"gi")),F=new RegExp("["+C+"]"),B=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=F,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=[],s=function(){var n=t[0],s=t[1],u=t[4],d=t[5],f=t[9],p=t.index,h=d||f,g=e.charAt(p-1);if(!D.isValid(n,s))return"continue";if(p>0&&"@"===g)return"continue";if(p>0&&h&&c.wordCharRegExp.test(g))return"continue";if(/\?$/.test(n)&&(n=n.substr(0,n.length-1)),c.matchHasUnbalancedClosingParen(n))n=n.substr(0,n.length-1);else{var v=c.matchHasInvalidCharAfterTld(n,s);v>-1&&(n=n.substr(0,v))}var b=["http://","https://"].find((function(e){return!!s&&-1!==s.indexOf(e)}));if(b){var y=n.indexOf(b);n=n.substr(y),s=s.substr(y),p+=y}var w=s?"scheme":u?"www":"tld",x=!!s;l.push(new m({tagBuilder:a,matchedText:n,offset:p,urlMatchType:w,url:n,protocolUrlMatch:x,protocolRelativeMatch:!!h,stripPrefix:o,stripTrailingSlash:r,decodePercentEncoding:i}))},c=this;null!==(t=n.exec(e));)s();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("^((.?//)?[-."+C+"]*[-"+C+"]\\.[-"+C+"]+)").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}(g),H=new RegExp("#[_".concat(C,"]{1,139}(?![_").concat(C,"])"),"g"),U=new RegExp("[^"+C+"]"),G=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,s=e.charAt(l-1);if(0===l||o.test(s)){var c=t[0],u=t[0].slice(1);a.push(new f({tagBuilder:i,matchedText:c,offset:l,serviceName:r,hashtag:u}))}}return a},t}(g),W=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=W,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]),s=0==t.index?"":e.substr(t.index-1,1),c=e.substr(t.index+i.length,1),u=!s.match(/\d/)&&!c.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}(g),K=new RegExp("@[_".concat(C,"]{1,50}(?![_").concat(C,"])"),"g"),Y=new RegExp("@[_.".concat(C,"]{1,30}(?![_").concat(C,"])"),"g"),$=new RegExp("@[-_.".concat(C,"]{1,50}(?![-_").concat(C,"])"),"g"),Z=new RegExp("@[_.".concat(C,"]{1,23}[_").concat(C,"](?![_").concat(C,"])"),"g"),X=new RegExp("[^"+C+"]"),Q=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:K,instagram:Y,soundcloud:$,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,s=e.charAt(l-1);if(0===l||r.test(s)){var c=t[0].replace(/\.+$/g,""),u=c.slice(1);a.push(new p({tagBuilder:i,matchedText:c,offset:l,serviceName:n,mention:u}))}}return a},t}(g);function J(e,t){for(var n,o=t.onOpenTag,r=t.onCloseTag,a=t.onText,l=t.onComment,s=t.onDoctype,c=new ee,d=0,f=e.length,p=0,h=0,m=c;d<f;){var g=e.charAt(d);switch(p){case 0:y(g);break;case 1:k(g);break;case 2:S(g);break;case 3:O(g);break;case 4:_(g);break;case 5:C(g);break;case 6:A(g);break;case 7:T(g);break;case 8:P(g);break;case 9:j(g);break;case 10:N(g);break;case 11:I(g);break;case 12:L(g);break;case 13:R(g);break;case 14:q(g);break;case 15:M(g);break;case 16:D(g);break;case 17:z(g);break;case 18:F(g);break;case 19:B(g);break;case 20:H(g);break;default:i(p)}d++}function y(e){"<"===e&&G()}function k(e){"!"===e?p=13:"/"===e?(p=2,m=new ee(Object(u.a)(Object(u.a)({},m),{isClosing:!0}))):"<"===e?G():v.test(e)?(p=3,m=new ee(Object(u.a)(Object(u.a)({},m),{isOpening:!0}))):(p=0,m=c)}function O(e){w.test(e)?(m=new ee(Object(u.a)(Object(u.a)({},m),{name:V()})),p=4):"<"===e?G():"/"===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()})),W()):v.test(e)||b.test(e)||":"===e||U()}function S(e){">"===e?U():v.test(e)?p=3:U()}function _(e){w.test(e)||("/"===e?p=12:">"===e?W():"<"===e?G():"="===e||x.test(e)||E.test(e)?U():p=5)}function C(e){w.test(e)?p=6:"/"===e?p=12:"="===e?p=7:">"===e?W():"<"===e?G():x.test(e)&&U()}function A(e){w.test(e)||("/"===e?p=12:"="===e?p=7:">"===e?W():"<"===e?G():x.test(e)?U():p=5)}function T(e){w.test(e)||('"'===e?p=8:"'"===e?p=9:/[>=`]/.test(e)?U():"<"===e?G():p=10)}function P(e){'"'===e&&(p=11)}function j(e){"'"===e&&(p=11)}function N(e){w.test(e)?p=4:">"===e?W():"<"===e&&G()}function I(e){w.test(e)?p=4:"/"===e?p=12:">"===e?W():"<"===e?G():(p=4,d--)}function L(e){">"===e?(m=new ee(Object(u.a)(Object(u.a)({},m),{isClosing:!0})),W()):p=4}function R(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 q(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 F(e){">"===e?W():"!"===e?p=19:"-"===e||(p=16)}function B(e){"-"===e?p=17:">"===e?W():p=16}function H(e){">"===e?W():"<"===e&&G()}function U(){p=0,m=c}function G(){p=1,m=new ee({idx:d})}function W(){var t=e.slice(h,m.idx);t&&a(t,h),"comment"===m.type?l(m.idx):"doctype"===m.type?s(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,s=a.length;l<s;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 G({tagBuilder:e,serviceName:this.hashtag}),new q({tagBuilder:e}),new V({tagBuilder:e}),new Q({tagBuilder:e,serviceName:this.mention}),new B({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 s({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="3.15.0",e.AnchorTagBuilder=s,e.HtmlTag=a,e.matcher={Email:q,Hashtag:G,Matcher:g,Mention:Q,Phone:V,Url:B},e.match={Email:d,Hashtag:f,Match:c,Mention:p,Phone:h,Url:m},e}();t.a=te},1640:function(e,t,n){"use strict";n.r(t),n.d(t,"renderPermissionStatus",(function(){return F})),n.d(t,"SignaturePanel",(function(){return ee})),n.d(t,"Spinner",(function(){return E}));n(23),n(8),n(24),n(10),n(145),n(9),n(11),n(29),n(54),n(1577),n(41),n(32),n(15),n(19),n(12),n(13),n(14),n(16),n(20),n(18),n(22),n(61),n(62),n(63),n(64),n(37),n(39),n(40),n(60);var o=n(0),r=n.n(o),i=n(6),a=n(347),l=n(2),s=n(1),c=n(4);n(58),n(46),n(52),n(294),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(588),n(1637),n(1638),n(85),n(36),n(100),n(112);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="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(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 f(e,t)}(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 f(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 p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new C(r||[]);return o(a,"_invoke",{value:k(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function h(){}function m(){}function g(){}var v={};s(v,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(A([])));y&&y!==t&&n.call(y,i)&&(v=y);var w=g.prototype=h.prototype=Object.create(v);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=d(e[r],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==u(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function k(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return T()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=O(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=d(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function O(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var r=d(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return m.prototype=g,o(w,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:m,configurable:!0}),m.displayName=s(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(E.prototype),s(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new E(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),s(w,l,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;_(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function h(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){h(i,o,r,a,l,"next",e)}function l(e){h(i,o,r,a,l,"throw",e)}a(void 0)}))}}var g=function(){var e=m(p().mark((function e(t,n,o,r,i,a,s){var c;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(t,n,o,r,i,a);case 2:return c=e.sent,s(l.a.setVerificationResult(c)),e.abrupt("return",c);case 5:case"end":return e.stop()}}),e)})));return function(t,n,o,r,i,a,l){return e.apply(this,arguments)}}(),v=function(){var e=m(p().mark((function e(t,n,o,r,i,a){var l,s,c,u,f,h,g;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=window.Core.PDFNet,s=l.VerificationResult,c=s.TrustStatus,u=s.DigestStatus,f=s.ModificationPermissionsStatus,h=s.DocumentStatus,g={},e.next=6,l.runWithCleanup(m(p().mark((function e(){var s,v,x,E,k,O,S,_,C,A,T,P,j,N,I,L,R,q,M,D,z,F,B,H,U,G,W,V,K,Y,$,Z,X,Q,J,ee,te,ne,oe,re,ie,ae,le,se,ce,ue,de,fe,pe,he,me,ge,ve,be,ye,we,xe;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getPDFDoc();case 2:return t=e.sent,e.next=5,l.VerificationOptions.create(l.VerificationOptions.SecurityLevel.e_compatibility_and_archiving);case 5:if(s=e.sent,!i){e.next=9;break}return e.next=9,s.enableOnlineCRLRevocationChecking(!0);case 9:if(null!==a){e.next=14;break}return e.next=12,s.setRevocationProxyPrefix("https://proxy.pdftron.com");case 12:e.next=17;break;case 14:if(void 0===a){e.next=17;break}return e.next=17,s.setRevocationProxyPrefix(a);case 17:v=d(n),e.prev=18,E=p().mark((function e(){var t,n,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"!=typeof(t=x.value)){e.next=13;break}return e.prev=2,e.next=5,s.addTrustedCertificateFromURL(t);case 5:e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(2),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.abrupt("return","continue");case 11:e.next=41;break;case 13:if(!(t instanceof File||"[object File]"===Object.prototype.toString.call(t))){e.next=31;break}return n=new FileReader,o=new Promise((function(e,o){n.addEventListener("load",function(){var t=m(p().mark((function t(n){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e(new Uint8Array(n.target.result));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),n.addEventListener("error",(function(){o("Error reading the local certificate")})),n.readAsArrayBuffer(t)})),e.prev=16,e.t1=s,e.next=20,o;case 20:return e.t2=e.sent,e.next=23,e.t1.addTrustedCertificate.call(e.t1,e.t2);case 23:e.next=29;break;case 25:return e.prev=25,e.t3=e.catch(16),console.error("Error encountered when trying to load certificate: ".concat(e.t3)+"Certificate will not be used as part of the verification process."),e.abrupt("return","continue");case 29:e.next=41;break;case 31:if(!(t instanceof ArrayBuffer||t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray)){e.next=41;break}return e.prev=32,e.next=35,s.addTrustedCertificate(t);case 35:e.next=41;break;case 37:return e.prev=37,e.t4=e.catch(32),console.error("Error encountered when trying to load certificate: ".concat(e.t4)+"Certificate will not be used as part of the verification process."),e.abrupt("return","continue");case 41:case"end":return e.stop()}}),e,null,[[2,7],[16,25],[32,37]])})),v.s();case 21:if((x=v.n()).done){e.next=28;break}return e.delegateYield(E(),"t0",23);case 23:if("continue"!==e.t0){e.next=26;break}return e.abrupt("continue",26);case 26:e.next=21;break;case 28:e.next=33;break;case 30:e.prev=30,e.t1=e.catch(18),v.e(e.t1);case 33:return e.prev=33,v.f(),e.finish(33);case 36:k=d(o),e.prev=37,k.s();case 39:if((O=k.n()).done){e.next=70;break}if(S=O.value,_=S.constructor.name,C=["ArrayBuffer","Int8Array","Uint8Array","Uint8ClampedArray"],A=void 0,"Blob"!==_){e.next=50;break}return e.next=47,S.arrayBuffer();case 47:A=e.sent,e.next=56;break;case 50:if(!C.includes(_)){e.next=54;break}A=S,e.next=56;break;case 54: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(C,["Blob"]).join("|"))),e.abrupt("continue",68);case 56:return e.prev=56,e.next=59,l.FDFDoc.createFromMemoryBuffer(A);case 59:return T=e.sent,e.next=62,s.loadTrustList(T);case 62:e.next=68;break;case 64:return e.prev=64,e.t2=e.catch(56),console.error("Error encountered when trying to load certificate: ".concat(e.t2,". ")+"Certificate will not be used as part of the verification process."),e.abrupt("continue",68);case 68:e.next=39;break;case 70:e.next=75;break;case 72:e.prev=72,e.t3=e.catch(37),k.e(e.t3);case 75:return e.prev=75,k.f(),e.finish(75);case 78:return e.next=80,t.getFieldIteratorBegin();case 80:P=e.sent;case 81:return e.next=83,P.hasNext();case 83:if(!e.sent){e.next=275;break}return e.next=86,P.current();case 86:return j=e.sent,e.next=89,j.isValid();case 89:if(e.t4=!e.sent,e.t4){e.next=96;break}return e.next=93,j.getType();case 93:e.t5=e.sent,e.t6=l.Field.Type.e_signature,e.t4=e.t5!==e.t6;case 96:if(!e.t4){e.next=98;break}return e.abrupt("continue",272);case 98:return e.next=100,l.DigitalSignatureField.createFromField(j);case 100:return N=e.sent,e.prev=101,e.next=104,N.verify(s);case 104:return I=e.sent,e.next=107,N.getSDFObj();case 107:return e.next=109,e.sent.getObjNum();case 109:return L=e.sent,R=void 0,q=void 0,M=void 0,D=void 0,z=void 0,F=void 0,B=void 0,H=void 0,U=void 0,G={},W={},e.next=123,N.hasCryptographicSignature();case 123:if(!(V=e.sent)){e.next=177;break}return e.next=127,N.getSubFilter();case 127:if((K=e.sent)!==l.DigitalSignatureField.SubFilterType.e_adbe_pkcs7_detached){e.next=142;break}return e.next=131,N.getSignerCertFromCMS();case 131:return Y=e.sent,e.next=134,Y.getSubjectField();case 134:return $=e.sent,e.next=137,w($);case 137:if(e.t7=e.sent,e.t7){e.next=140;break}e.t7={};case 140:Z=e.t7,R=Z.e_commonName;case 142:if(K===l.DigitalSignatureField.SubFilterType.e_ETSI_RFC3161){e.next=171;break}if(R){e.next=152;break}return e.next=146,N.getSignatureName();case 146:if(e.t8=e.sent,e.t8){e.next=151;break}return e.next=150,N.getContactInfo();case 150:e.t8=e.sent;case 151:R=e.t8;case 152:return e.next=154,N.getSigningTime();case 154:return q=e.sent,e.next=157,q.isValid();case 157:if(!e.sent){e.next=161;break}q=b(q,r),e.next=162;break;case 161:q=null;case 162:return e.next=164,N.getContactInfo();case 164:return z=e.sent,e.next=167,N.getLocation();case 167:return F=e.sent,e.next=170,N.getReason();case 170:B=e.sent;case 171:return e.next=173,N.getDocumentPermissions();case 173:return M=e.sent,e.next=176,N.isCertification();case 176:D=e.sent;case 177:return e.next=179,I.getVerificationStatus();case 179:return X=e.sent,e.next=182,I.getDocumentStatus();case 182:return Q=e.sent,e.next=185,I.getDigestStatus();case 185:return J=e.sent,e.next=188,I.getTrustStatus();case 188:return ee=e.sent,e.next=191,I.getPermissionsStatus();case 191:return te=e.sent,e.next=194,I.getDigestAlgorithm();case 194:return ne=e.sent,e.t9=Promise,e.next=198,I.getDisallowedChanges();case 198:return e.t10=e.sent.map(function(){var e=m(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getObjNum();case 2:return e.t0=e.sent,e.next=5,t.getTypeAsString();case 5:return e.t1=e.sent,e.abrupt("return",{objnum:e.t0,type:e.t1});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=201,e.t9.all.call(e.t9,e.t10);case 201:return oe=e.sent,re=ee===c.e_trust_verified,ie=void 0,ae=void 0,le=void 0,se=void 0,e.next=209,I.hasTrustVerificationResult();case 209:if(!e.sent){e.next=260;break}return e.next=213,I.getTrustVerificationResult();case 213:return ce=e.sent,e.next=216,ce.wasSuccessful();case 216:return ae=e.sent,e.next=219,ce.getResultString();case 219:return ie=e.sent,e.next=222,ce.getTimeOfTrustVerificationEnum();case 222:return le=e.sent,e.next=225,ce.getTimeOfTrustVerification();case 225:return(ue=e.sent)&&(se=y(ue,r)),e.next=229,ce.getCertPath();case 229:if(!(de=e.sent).length){e.next=260;break}return fe=de[0],e.next=234,fe.getIssuerField();case 234:return pe=e.sent,e.next=237,w(pe);case 237:return he=e.sent,Object.assign(G,he),e.next=241,fe.getSubjectField();case 241:return me=e.sent,e.next=244,w(me);case 244:return ge=e.sent,Object.assign(W,ge),ve=de[de.length-1],e.prev=247,e.next=250,ve.getNotBeforeEpochTime();case 250:return be=e.sent,e.next=253,ve.getNotAfterEpochTime();case 253:ye=e.sent,H=ye>=ue&&ue>=be,e.next=260;break;case 257:e.prev=257,e.t11=e.catch(247),e.t11.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(e.t11));case 260:return we=void 0,we=X?"digital_signature_valid":Q!==h.e_no_error||J!==u.e_digest_verified&&J!==u.e_digest_verification_disabled||ee===c.e_no_trust_status||te!==f.e_unmodified&&te!==f.e_has_allowed_changes&&te!==f.e_permissions_verification_disabled?"digital_signature_error":"digital_signature_warning",R?U=R:!R&&W.e_commonName&&(U=W.e_commonName),e.next=265,j.getName();case 265:xe=e.sent,g[xe]={signed:V,signer:R,signerName:U,signTime:q,verificationStatus:X,documentStatus:Q,digestStatus:J,trustStatus:ee,permissionStatus:te,disallowedChanges:oe,trustVerificationResultBoolean:ae,trustVerificationResultString:ie,timeOfTrustVerificationEnum:le,trustVerificationTime:se,id:L,badgeIcon:we,validSignerIdentity:re,digestAlgorithm:ne,documentPermission:M,isCertification:D,contactInfo:z,location:F,reason:B,issuerField:G,subjectField:W,validAtTimeOfSigning:H},e.next=272;break;case 269:e.prev=269,e.t12=e.catch(101),console.error(e.t12);case 272:P.next(),e.next=81;break;case 275:case"end":return e.stop()}}),e,null,[[18,30,33,36],[37,72,75,78],[56,64],[101,269],[247,257]])}))));case 6:return e.abrupt("return",g);case 7:case"end":return e.stop()}}),e)})));return function(t,n,o,r,i,a){return e.apply(this,arguments)}}(),b=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"})},y=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"})},w=function(){var e=m(p().mark((function e(t){var n,o,r,i,a,l,s,c;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},e.next=3,t.getAllAttributesAndValues();case 3:o=e.sent,r=d(o),e.prev=5,r.s();case 7:if((i=r.n()).done){e.next=21;break}return a=i.value,e.next=11,a.getAttributeTypeOID();case 11:return l=e.sent,e.next=14,l.getRawValue();case 14:return s=e.sent,e.next=17,a.getStringValue();case 17:c=e.sent,n[x(s)]=c;case 19:e.next=7;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(5),r.e(e.t0);case 26:return e.prev=26,r.f(),e.finish(26);case 29:return e.abrupt("return",n);case 30:case"end":return e.stop()}}),e,null,[[5,23,26,29]])})));return function(t){return e.apply(this,arguments)}}(),x=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)]},E=(n(1618),function(){return r.a.createElement("div",{className:"spinner"})}),k=(n(27),n(28),n(25),n(3)),O=n.n(k),S=n(17),_=n.n(S),C=(n(90),n(119)),A=n.n(C),T=n(21);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(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 j(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 j(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}var N=function(e){var t=e.rect,n=P(Object(o.useState)(!1),2),i=n[0],a=n[1];return Object(o.useEffect)((function(){var e=s.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&&A.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(T.a)().querySelector("#app"))},I=n(95),L=n(1538),R=n(42);n(1620);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 M(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return D(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 D(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 D(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,n){return(t=function(e){var t=function(e,t){if("object"!==q(e)||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=function(e){var t,n=e.isCertification,o=e.ModificationPermissionsStatus,i=e.permissionStatus,a=e.translate;if(e.digestStatus===e.DigestStatusErrorCodes.e_digest_invalid)return r.a.createElement("p",null,a("digitalSignatureVerification.digestStatus.documentHasBeenAltered"));var l=(z(t={},o.e_invalidated_by_disallowed_changes,"digitalSignatureVerification.permissionStatus.invalidatedByDisallowedChanges"),z(t,o.e_has_allowed_changes,"digitalSignatureVerification.permissionStatus.hasAllowedChanges"),z(t,o.e_unmodified,n?"".concat(a("digitalSignatureVerification.permissionStatus.unmodified")," ").concat(a("digitalSignatureVerification.certified"),"."):"".concat(a("digitalSignatureVerification.permissionStatus.unmodified")," ").concat(a("digitalSignatureVerification.signed"),".")),z(t,o.e_permissions_verification_disabled,"digitalSignatureVerification.permissionStatus.permissionsVerificationDisabled"),z(t,o.e_no_permissions_status,"digitalSignatureVerification.permissionStatus.noPermissionsStatus"),z(t,o.e_unsupported_permissions_features,"digitalSignatureVerification.permissionStatus.unsupportedPermissionsFeatures"),t);return r.a.createElement("p",null,a(l[i]||""))},B={name:O.a.string.isRequired,onClick:O.a.func,field:O.a.instanceOf(window.Core.Annotations.Forms.Field)},H=function(e){var t,n,u=e.name,d=e.field,f=Object(i.e)((function(e){return c.a.getVerificationResult(e,u)})),p=M(Object(o.useState)(null),2),h=p[0],m=p[1],g=M(Object(o.useState)(!1),2),v=g[0],b=g[1],y=window.Core.PDFNet,w=y.VerificationResult,x=y.VerificationOptions.TimeMode,E=w.ModificationPermissionsStatus,k=w.DigestStatus,O=M(Object(a.a)(),1)[0],S=f.signed,C=f.signTime,A=f.verificationStatus,T=f.permissionStatus,P=f.disallowedChanges,j=f.trustVerificationResultBoolean,q=f.timeOfTrustVerificationEnum,D=f.trustVerificationTime,z=f.badgeIcon,B=f.isCertification,H=f.contactInfo,U=f.location,G=f.reason,W=f.signerName,V=f.digestStatus,K=Object(i.d)(),Y=function(){!function(e){if(e.widgets.length){var t=e.widgets[0];s.a.jumpToAnnotation(t);var n=s.a.getScrollViewElement(),o=n.scrollLeft,r=n.scrollTop,i=t.getRect(),a=s.a.getDisplayModeObject().pageToWindow({x:i.x1,y:i.y1},t.PageNumber),l=s.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)},$=Object(I.a)((function(){K(l.a.setSignatureValidationModalWidgetName(u)),K(l.a.openElement("signatureValidationModal"))}));return r.a.createElement("div",{className:"signature-widget-info"},S?r.a.createElement(r.a.Fragment,null,r.a.createElement(L.a,{labelHeader:(n=O(B?"digitalSignatureVerification.Certified":"digitalSignatureVerification.Signed"),n+=" ".concat(O("digitalSignatureVerification.by")," ").concat(W||O("digitalSignatureModal.unknown")),C&&(n+=" ".concat(O("digitalSignatureVerification.on")," ").concat(C)),n),iconGlyph:z,useI18String:!1,onClick:Y,onKeyDown:Y},r.a.createElement("div",{className:"verificationDetails",tabIndex:-1},r.a.createElement("div",{className:"header"},(t=O(B?"digitalSignatureVerification.Certification":"digitalSignatureVerification.Signature"),r.a.createElement("div",{className:"title"},r.a.createElement("p",null,O(A?"digitalSignatureVerification.verificationStatus.valid":"digitalSignatureVerification.verificationStatus.failed",{verificationType:t})))),r.a.createElement("ul",{className:"body"},r.a.createElement("li",null,F({isCertification:B,ModificationPermissionsStatus:E,permissionStatus:T,translate:O,digestStatus:V,DigestStatusErrorCodes:k})),P.map((function(e){var t=e.objnum,n=e.type;return r.a.createElement("li",{key:t},r.a.createElement("p",null,O("digitalSignatureVerification.disallowedChange",{type:n,objnum:t})))})),function(){var e;switch(q){case x.e_current:e=O("digitalSignatureVerification.trustVerification.current");break;case x.e_signing:e=O("digitalSignatureVerification.trustVerification.signing");break;case x.e_timestamp:e=O("digitalSignatureVerification.trustVerification.timestamp");break;default:console.warn("Unexpected pdftron::PDF::VerificationOptions::TimeMode: ".concat(q))}return r.a.createElement(r.a.Fragment,null,r.a.createElement("li",null,r.a.createElement("p",null,O(j?"digitalSignatureVerification.trustVerification.verifiedTrust":"digitalSignatureVerification.trustVerification.noTrustVerification"))),r.a.createElement("li",null,r.a.createElement("p",null,D)),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:$,tabIndex:0,className:"signatureProperties link","aria-label":"Open signature properties modal"},r.a.createElement("p",{className:"bold underline"},O("digitalSignatureVerification.signatureProperties"))))))),r.a.createElement("div",{className:"header header-with-arrow"},H||U||G?r.a.createElement("div",{className:"signatureDetails",tabIndex:-1},r.a.createElement("div",{className:"title collapsible"},r.a.createElement(R.a,{img:"icon-chevron-right",className:_()({arrow:!0,expanded:v}),ariaExpanded:v,isActive:v,ariaLabel:O("digitalSignatureVerification.signatureDetails.signatureDetails"),onClick:function(){return b(!v)}}),r.a.createElement("p",null,O("digitalSignatureVerification.signatureDetails.signatureDetails"))),v&&r.a.createElement("ul",{className:"body"},r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(O("digitalSignatureVerification.signatureDetails.contactInformation"),":")),r.a.createElement("p",{className:"result-for-header"},H||O("digitalSignatureVerification.signatureDetails.noContactInformation"))),r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(O("digitalSignatureVerification.signatureDetails.location"),":")),r.a.createElement("p",{className:"result-for-header"},U||O("digitalSignatureVerification.signatureDetails.noLocation"))),r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(O("digitalSignatureVerification.signatureDetails.reason"),":")),r.a.createElement("p",{className:"result-for-header"},G||O("digitalSignatureVerification.signatureDetails.noReason"))),C&&r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(O("digitalSignatureVerification.signatureDetails.signingTime"),":")),r.a.createElement("p",{className:"result-for-header"},C||O("digitalSignatureVerification.signatureDetails.noSigningTime"))))):null))):r.a.createElement(L.a,{labelHeader:O("digitalSignatureVerification.unsignedSignatureField",{fieldName:d.name}),iconGlyph:"digital_signature_empty",useI18String:!1,onClick:Y,onKeyDown:Y}),r.a.createElement(N,{rect:h}))};H.propTypes=B;var U=H,G=(n(1622),n(43)),W=n(34);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 K(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Q(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/facebook/regenerator/blob/main/LICENSE */Y=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new S(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&n.call(v,i)&&(m=v);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==V(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return C()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new w(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function $(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function Z(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){$(i,o,r,a,l,"next",e)}function l(e){$(i,o,r,a,l,"throw",e)}a(void 0)}))}}function X(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||Q(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 Q(e,t){if(e){if("string"==typeof e)return J(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)?J(e,t):void 0}}function J(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}var ee=function(){var e=Object(i.d)(),t=X(Object(o.useState)([]),2),n=t[0],u=t[1],d=X(Object(o.useState)(!1),2),f=d[0],p=d[1],h=X(Object(o.useState)(""),2),m=h[0],v=h[1],b=X(Object(o.useState)(s.a.getDocument()),2),y=b[0],w=b[1],x=X(Object(i.e)((function(e){return[c.a.isElementDisabled(e,"signaturePanel"),c.a.getCertificates(e),c.a.getTrustLists(e),c.a.getCurrentLanguage(e),c.a.getIsRevocationCheckingEnabled(e),c.a.getRevocationProxyPrefix(e)]})),6),k=x[0],O=x[1],S=x[2],_=x[3],C=x[4],A=x[5],T=X(Object(a.a)(),1)[0],P=function(){var e=Z(Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:w(s.a.getDocument());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=Object(o.useCallback)((function(){p(!0),e(l.a.setVerificationResult({}))}),[p,e]),N=function(e,t){var n=s.a.getAnnotationManager().getFormFieldCreationManager().isInFormFieldCreationMode();"add"===t?L(s.a.getAnnotationManager().getAnnotationsList()):"delete"===t&&n&&R(e)},I=function(){var e=s.a.getAnnotationManager().getAnnotationsList();L(e)},L=function(e){var t=[];e.forEach((function(e){e instanceof window.Core.Annotations.SignatureWidgetAnnotation&&t.push(e.getField())}));var n=new Set(t);u(K(n))},R=function(e){e.forEach((function(e){q(e)})),I()},q=function(e){if(e instanceof window.Core.Annotations.WidgetAnnotation){var t=s.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 s.a.addEventListener("documentLoaded",P),s.a.addEventListener("documentUnloaded",j),s.a.addEventListener("annotationChanged",N),s.a.addEventListener("formFieldCreationModeStarted",M),s.a.addEventListener("formFieldCreationModeEnded",M),function(){s.a.removeEventListener("documentLoaded",P),s.a.removeEventListener("documentUnloaded",j),s.a.removeEventListener("annotationChanged",N),s.a.removeEventListener("formFieldCreationModeStarted",M),s.a.removeEventListener("formFieldCreationModeEnded",M)}}),[j]),Object(o.useEffect)((function(){y?s.a.getAnnotationsLoadedPromise().then((function(){p(!0),g(y,O,S,_,C,A,e).then(function(){var e=Z(Y().mark((function e(t){var n;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=s.a.getAnnotationManager().getFieldManager(),u(Object.keys(t).map((function(e){return n.getField(e)}))),v("");case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){e&&e.message?v(e.message):console.error(e)})).then((function(){I()})).finally((function(){p(!1)}))})):p(!0)}),[O,y,e,_]),k)return null;return r.a.createElement("div",{className:"Panel SignaturePanel","data-element":"signaturePanel"},function(){var e;if(f)e=r.a.createElement(E,null);else if("Error reading the local certificate"===m)e=T("digitalSignatureVerification.panelMessages.localCertificateError");else if("Download Failed"===m)e=T("digitalSignatureVerification.panelMessages.certificateDownloadError");else{if(n.length)return null;e=T("digitalSignatureVerification.panelMessages.noSignatureFields")}return r.a.createElement("div",{className:"empty-panel-container"},r.a.createElement(G.a,{className:"empty-icon",glyph:W.c[W.e.SIGNATURE].icon}),r.a.createElement("div",{className:"empty-message"},e))}(),!f&&n.length>0&&n.map((function(e,t){return r.a.createElement(U,{key:t,name:e.name,collapsible:!0,field:e})})))};t.default=ee},1645:function(e,t,n){var o=n(30),r=n(1646);"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||{}},1646:function(e,t,n){(e.exports=n(31)(!1)).push([e.i,"",""])},1649:function(e,t,n){var o=n(1650)({"&":"&","<":"<",">":">",'"':""","'":"'"});e.exports=o},1650:function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},1651:function(e,t,n){var o=n(30),r=n(1652);"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||{}},1652:function(e,t,n){(e.exports=n(31)(!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-left:32px}.panel-list-row .checkbox{margin:0;position:relative;left:0;left: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-left: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-left:32px}',""])},1653:function(e,t,n){var o=n(30),r=n(1654);"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||{}},1654:function(e,t,n){(e.exports=n(31)(!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}",""])},1655:function(e,t,n){var o=n(30),r=n(1656);"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||{}},1656:function(e,t,n){(t=e.exports=n(31)(!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-right: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-left:var(--padding);margin-right:var(--padding);border-top:1px solid var(--focus-border);position:relative}.outline-drag-line:before{content:"";display:block;position:absolute;width:5px;height:5px;top:-3px;left:0;background-color:var(--focus-border);border-radius:50%}',""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1657:function(e,t,n){var o=n(30),r=n(1658);"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||{}},1658:function(e,t,n){(t=e.exports=n(31)(!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.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"}},1659:function(e,t,n){var o=n(30),r=n(1660);"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||{}},1660:function(e,t,n){(t=e.exports=n(31)(!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-left: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"}},1661:function(e,t,n){var o=n(30),r=n(1662);"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||{}},1662:function(e,t,n){(t=e.exports=n(31)(!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{top:0;width:100%;height:100%}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .fileAttachmentPanel{top: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-left:var(--fileAttachment-title-padding);margin:12px 0}.fileAttachmentPanel .section ul.downloadable{padding-left: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-left:10px;list-style-type:none}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1663:function(e,t,n){var o=n(30),r=n(1664);"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||{}},1664:function(e,t,n){(t=e.exports=n(31)(!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"}},1665:function(e,t,n){var o=n(30),r=n(1666);"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||{}},1666:function(e,t,n){(t=e.exports=n(31)(!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;left:50%;top:50%;transform:translate(-50%,-50%)}.Thumbnail .container .checkbox{position:absolute;border-radius:4px;z-index:4}.Thumbnail .container .default{top:3%;right:15%}.Thumbnail .container .rotated{top:15%;right: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"}},1667:function(e,t,n){(t=e.exports=n(31)(!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-left:16px;margin-right:16px;margin-bottom:16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .documentControlsContainer{margin-left:16px;margin-right: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;bottom:1px;right:1px;width:0;height:0;border-left:4px solid transparent;border-right: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"}},1668:function(e,t,n){var o=n(30),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(31)(!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:4px 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-left: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-left:2px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1670:function(e,t,n){var o=n(30),r=n(1671);"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||{}},1671:function(e,t,n){(t=e.exports=n(31)(!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-left: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-left: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 .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"}},1672:function(e,t,n){var o=n(30),r=n(1673);"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||{}},1673:function(e,t,n){(t=e.exports=n(31)(!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;bottom: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-left: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-right:12px;cursor:pointer;position:relative;top: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;right:10px;bottom: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{left: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-left: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-right:0;margin-right:16px}.reply-area-multi-container.modular-ui .reply-button-container{margin-right:16px;margin-bottom:12px}.reply-area-multi-container.modular-ui .reply-button{left:0;right:0}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1674:function(e,t,n){var o=n(30),r=n(1675);"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||{}},1675:function(e,t,n){(e.exports=n(31)(!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;right:20px;bottom:52px;pointer-events:auto}.multi-style-container *{box-sizing:border-box}",""])},1676:function(e,t,n){var o=n(30),r=n(1677);"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||{}},1677:function(e,t,n){(e.exports=n(31)(!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;bottom:0;width:100%;z-index:100}.notes-panel-container .multi-select-footer .close-container{margin-top:auto;right:26px;position:absolute}",""])},1678:function(e,t,n){var o=n(30),r=n(1679);"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||{}},1679:function(e,t,n){(t=e.exports=n(31)(!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-right: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-right:8px}[data-element=notesPanelHeader] .sort-row .sort-container .picked-option{text-align:left}[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:4px 8px 6px}[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-left:8px;padding-right: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;bottom:0;right: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"}},1680:function(e,t,n){var o=n(30),r=n(1681);"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||{}},1681:function(e,t,n){(t=e.exports=n(31)(!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-left: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-left:1px solid var(--side-panel-border)}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container{top:0;right:0;height:100%;width:100%}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container{top:0;right:0;height:100%;width:100%}}.notes-panel-container .NotesPanel{width:100%;padding-left: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-right: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-right: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-right:16px}.notes-panel-container .NotesPanel .preview-all-changes .divider{height:1px;width:100%;background:var(--divider);position:absolute;top: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-right: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-right: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"}},1687:function(e,t,n){var o=n(30),r=n(1688);"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||{}},1688:function(e,t,n){(t=e.exports=n(31)(!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"}},1689:function(e,t,n){var o=n(30),r=n(1690);"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||{}},1690:function(e,t,n){(e.exports=n(31)(!1)).push([e.i,"",""])},1691:function(e,t,n){var o=n(30),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){(t=e.exports=n(31)(!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"}},1693:function(e,t,n){"use strict";n(27),n(28),n(12),n(13),n(8),n(25),n(22),n(40),n(44),n(39),n(86),n(37),n(14),n(10),n(9),n(11);var o=n(0),r=n.n(o),i=n(3),a=n.n(i),l=n(6),s=n(4);n(1645);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 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,g(o.key),o)}}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(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=m(e);if(t){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===c(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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){var t=function(e,t){if("object"!==c(e)||null===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:String(t)}var v,b,y,w=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(a,e);var t,n,o,i=p(a);function a(){return u(this,a),i.apply(this,arguments)}return t=a,(n=[{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(t.prototype,n),o&&d(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.a.PureComponent);v=w,b="propTypes",y={isDisabled:a.a.bool,className:a.a.string.isRequired,dataElement:a.a.string.isRequired,children:a.a.node},(b=g(b))in v?Object.defineProperty(v,b,{value:y,enumerable:!0,configurable:!0,writable:!0}):v[b]=y;var x=Object(l.b)((function(e,t){return{isDisabled:s.a.isElementDisabled(e,t.dataElement)}}))(w);t.a=x},1694:function(e,t,n){"use strict";n.r(t);n(224),n(36),n(90),n(19),n(12),n(13),n(8),n(14),n(10),n(9),n(11),n(16),n(15),n(20),n(18);var o=n(0),r=n.n(o),i=n(17),a=n.n(i),l=n(3),s=n.n(l),c=n(6),u=n(1811),d=n(1812),f=n(592),p=n(1530),h=n(1),m=n(2),g=n(4),v=n(55),b=n(67),y=n(447),w=n(38),x=n(1556),E=n(1592),k=n(75);n(1655),n(1523);function O(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(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 S(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 S(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}var _={outline:s.a.object.isRequired,setMultiSelected:s.a.func,moveOutlineInward:s.a.func.isRequired,moveOutlineBeforeTarget:s.a.func.isRequired,moveOutlineAfterTarget:s.a.func.isRequired,connectDragSource:s.a.func,connectDragPreview:s.a.func,connectDropTarget:s.a.func,isDragging:s.a.bool,isDraggedUpwards:s.a.bool,isDraggedDownwards:s.a.bool},C=Object(o.forwardRef)((function(e,t){var n=e.outline,i=e.setMultiSelected,l=e.isDragging,s=e.isDraggedUpwards,u=e.isDraggedDownwards,d=e.connectDragSource,p=e.connectDragPreview,v=e.connectDropTarget,b=e.moveOutlineInward,S=e.moveOutlineBeforeTarget,_=e.moveOutlineAfterTarget,C=Object(c.e)((function(e){return g.a.getOutlines(e)})),A=Object(o.useContext)(x.a),T=A.setActiveOutlinePath,P=A.activeOutlinePath,j=A.isOutlineActive,N=A.setAddingNewOutline,I=A.isAddingNewOutline,L=A.isMultiSelectMode,R=A.shouldAutoExpandOutlines,q=A.isOutlineEditable,M=A.updateOutlines,D=y.a.getPath(n),z=O(Object(o.useState)(R),2),F=z[0],B=z[1],H=O(Object(o.useState)(!1),2),U=H[0],G=H[1],W=O(Object(o.useState)(!1),2),V=W[0],K=W[1],Y=O(Object(o.useState)(void 0),2),$=Y[0],Z=Y[1],X=Object(c.d)(),Q=Object(o.useRef)(null);d(Q),p(Object(f.a)(),{captureDraggingState:!0}),v(Q);var J=l?.5:1;Object(o.useImperativeHandle)(t,(function(){return{getNode:function(){return Q.current}}})),Object(o.useEffect)((function(){null!==P&&P!==D&&P.startsWith(D)&&B(!0)}),[P,I,n]),Object(o.useLayoutEffect)((function(){B(R)}),[R]),Object(o.useLayoutEffect)((function(){G(!1),K(!1),I&&P===D&&B(!0)}),[C]);var ee,te,ne,oe,re=Object(o.useCallback)((function(){h.a.goToOutline(n),T(D===P?null:D),I&&(N(!1),M()),Object(w.k)()&&X(m.a.closeElement("leftPanel"))}),[X,T,P,I,n]),ie=j(n);return r.a.createElement("div",{ref:!I&&L&&q?Q:null,className:"outline-drag-container",style:{opacity:J}},r.a.createElement("div",{className:"outline-drag-line",style:{opacity:s?1:0}}),r.a.createElement(k.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($)}},r.a.createElement(E.a,{text:n.getName(),outlinePath:D,isOutlineRenaming:U,setOutlineRenaming:G,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:F,setIsExpanded:B,moveOutlineInward:b,moveOutlineBeforeTarget:S,moveOutlineAfterTarget:_},n.getChildren())),r.a.createElement("div",{className:"outline-drag-line",style:{opacity:u?1:0}}),I&&ie&&r.a.createElement(k.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(E.a,{isAdding:!0,text:"",onCancel:function(){return N(!1)}})))}));C.propTypes=_;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 s=r.index,c=a.index;if(r.parent!==a.parent||s!==c){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(b.a)(v.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,s=e.moveOutlineBeforeTarget,c=e.moveOutlineAfterTarget;if(i){switch(o.dropLocation){case p.b.ON_TARGET_HORIZONTAL_MIDPOINT:l(r,a);break;case p.b.ABOVE_TARGET:s(r,a);break;case p.b.BELOW_TARGET:c(r,a)}i.classList.remove("isNesting"),Object(b.a)(v.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()}}))(C));A.propTypes=_;var T=A;t.default=T},1702:function(e,t,n){"use strict";n.r(t);n(36),n(20),n(9),n(29),n(8),n(79),n(41),n(23),n(24),n(100),n(101),n(128),n(46),n(52),n(124),n(591),n(25),n(19),n(12),n(13),n(14),n(10),n(11),n(16),n(15),n(18),n(27),n(28),n(22),n(32),n(47),n(49),n(48);var o=n(110),r=n.n(o),i=n(0),a=n.n(i),l=n(6),s=n(1583),c=n(197),u=n(17),d=n.n(u),f=n(38),p=(n(58),n(44),n(4)),h=n(2),m=(n(90),n(116),n(145),n(54),n(61),n(62),n(63),n(64),n(37),n(39),n(40),n(60),n(223)),g=n(1),v=n(3),b=n.n(v),y=n(123),w=n(42),x=(n(1663),n(5)),E=n(94);var k=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(E.a,{dataElement:x.a.PAGE_MANIPULATION_OVERLAY_BUTTON,toggleElement:x.a.PAGE_MANIPULATION,img:"icon-tool-more",title:"option.thumbnailPanel.moreOptions"}))},O=n(57),S=n(347),_=n(255);function C(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return A(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 A(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 A(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}var T={index:b.a.number.isRequired},P=function(e){var t=e.index,n=Object(S.a)().t,o=C(Object(l.e)((function(e){return[p.a.isElementDisabled(e,"thumbnailControl")]})),1)[0],r=C(Object(l.e)((function(e){return[p.a.isElementDisabled(e,x.a.PAGE_MANIPULATION_OVERLAY_BUTTON)]})),1)[0],s=C(Object(l.e)((function(e){return[p.a.pageDeletionConfirmationModalEnabled(e),p.a.getSelectedThumbnailPageIndexes(e)]})),2),c=s[0],u=s[1],f=Object(l.d)(),h=Object(i.useRef)([]),m=Object(i.useRef)(null),v=C(Object(l.e)((function(e){return[p.a.getCurrentPage(e),p.a.getThumbnailControlMenuItems(e),p.a.getFeatureFlags(e)]}),l.c),3),b=v[0],E=v[1],A=v[2],T=u.length>0?u.map((function(e){return e+1})):[t+1],P=T.includes(b),j=A.customizableUI;P||(T=[b]);var N=g.a.getDocument(),I=null==N?void 0:N.type,L=I===O.a.XOD,R=I===O.a.OFFICE||I===O.a.LEGACY_OFFICE,q={thumbRotateClockwise:a.a.createElement(w.a,{className:"rotate-button",img:"icon-header-page-manipulation-page-rotation-clockwise-line",onClick:function(){return Object(y.o)(T)},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)(T)},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)(T,f,c)},title:"option.thumbnailPanel.delete",dataElement:"thumbDelete",onClickAnnouncement:"".concat(n("action.delete")," ").concat(n("action.modal")," ").concat(n("action.isOpen"))})},M=!1,D=[],z=E.map((function(e){var t=e.dataElement,n=t,o=q[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(b)},title:l,dataElement:t})}return o?a.a.cloneElement(o,{key:n}):null}));return Object(i.useEffect)((function(){h.current=Object(_.a)(m.current),h.current.length>0&&h.current.forEach((function(e){e.tabIndex=-1}))}),[h.current,z]),o?null:L||R||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)(T)},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)(T)},title:"option.thumbnailPanel.rotatePageClockwise",dataElement:"thumbRotateClockwise"})):a.a.createElement("div",{className:d()({"thumbnailControls-overlay":!0,"custom-buttons":M,"modular-ui":j}),"data-element":"thumbnailControl",ref:m},z,r?null:a.a.createElement(k,{className:"more-options",pageIndex:t}))};P.propTypes=T;var j=P,N=n(388),I=(n(1665),n(1355)),L=n(21);function R(e){return(R="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 q(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||F(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/facebook/regenerator/blob/main/LICENSE */M=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new S(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&n.call(v,i)&&(m=v);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==R(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return C()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new w(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function D(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||F(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 F(e,t){if(e){if("string"==typeof e)return B(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)?B(e,t):void 0}}function B(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}var H=a.a.forwardRef((function(e,t){var n=e.index,o=e.isSelected,r=e.updateAnnotations,s=e.shiftKeyThumbnailPivotIndex,c=e.onFinishLoading,u=e.onLoad,f=e.onRemove,h=void 0===f?function(){}:f,v=e.onDragStart,b=e.onDragOver,y=e.isDraggable,w=e.shouldShowControls,x=e.thumbnailSize,E=e.currentPage,k=e.pageLabels,O=void 0===k?[]:k,C=e.selectedPageIndexes,A=e.isThumbnailMultiselectEnabled,T=e.isReaderModeOrReadOnly,P=e.dispatch,R=e.actions,F=e.isMobile,B=e.canLoad,H=e.onCancel,U=e.isThumbnailSelectingPages,G=e.thumbnailSelectionMode,W=e.activeDocumentViewerKey,V=e.panelSelector,K=e.parentKeyListener,Y=x?Number(x):150,$=z(Object(i.useState)(-1),2),Z=$[0],X=$[1],Q=Object(i.useRef)(null),J=Object(i.useRef)([]),ee=Object(i.useRef)([]),te=z(Object(i.useState)({width:Y,height:Y}),2),ne=te[0],oe=te[1],re=Object(S.a)().t,ie=z(Object(i.useState)(!1),2),ae=ie[0],le=ie[1],se=Object(l.e)(p.a.isContentEditingEnabled),ce=null;Object(i.useEffect)((function(){var e=function(e){Q.current&&!Q.current.contains(e.target)&&be()};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var ue=function(){ce=setTimeout((function(){var e,t,o=Object(L.a)().querySelector(".ThumbnailsPanel.".concat(V," #pageThumb").concat(n)),i=n+1,a=g.a.getRotation(i),l=g.a.getDocument(W);if(l&&l.getPageInfo(i)){var s=l.loadCanvas({pageNumber:i,width:Y,height:Y,drawComplete:(e=M().mark((function e(t){var o,i,l,s;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(o=Object(L.a)().querySelector(".ThumbnailsPanel.".concat(V," #pageThumb").concat(n)))&&((i=o.querySelector(".page-image"))&&o.removeChild(i),t.className="page-image",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"),oe({width:Number(t.width),height:Number(t.height)}),Math.abs(a)&&(s="rotate(".concat(90*a,"deg) translate(-50%,-50%)"),t.style.transform=s,t.style["transform-origin"]="top left",t.style["ms-transform"]=s,t.style["ms-transform-origin"]="top left",t.style["-moz-transform"]=s,t.style["-moz-transform-origin"]="top left",t.style["-webkit-transform-origin"]="top left",t.style["-webkit-transform"]=s,t.style["-o-transform"]=s,t.style["-o-transform-origin"]="top left"),o.appendChild(t)),r&&r(n),c(n),le(!0);case 5:case"end":return e.stop()}}),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,s)}}),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),s=t.some((function(e){return a===e})),c=Object.keys(o).some((function(e){return a===parseInt(e)})),u=i.includes(a),d=g.a.getTotalPages();i.length>0&&n+1>d||(l||s||c||u)&&ue()},t=function(){le(!1),ue()};return g.a.addEventListener("pagesUpdated",e),g.a.addEventListener("rotationUpdated",t),B&&ue(),function(){g.a.removeEventListener("pagesUpdated",e),g.a.removeEventListener("rotationUpdated",t),clearTimeout(ce),h(n)}}),[]),Object(m.a)((function(){B?(ue(),r(n)):H(n)}),[B,W]);var de=E===n+1,fe=O[n],pe="default",he=g.a.getRotation(n+1);((!he||2===he)&&ne.width>ne.height||(1===he||3===he)&&ne.width<ne.height)&&(pe="rotated"),Object(i.useImperativeHandle)(t,(function(){return{focusInput:function(){U&&ae?(me(ee.current[0]),X(0)):J.current&&setTimeout((function(){me(J.current[0]),X(0)}),0)}}}));var me=function(e){e&&(e.ariaCurrent="page",e.focus())},ge=function(e){e&&(e.ariaCurrent=void 0)},ve=function(e){e.preventDefault(),be()},be=function(){J.current.forEach((function(e){ge(e)}))},ye=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 we(e,-1)},ArrowDown:function(){return we(e,1)},ArrowLeft:function(){return we(e,-1)},ArrowRight:function(){return we(e,1)}};o[e.key]&&!Ee&&o[e.key]()}),[J.current,Z]),we=function(e,t){e.preventDefault(),0!==J.current.length&&X((function(e){var n=e+t;return n<0?n=J.current.length-1:n>=J.current.length&&(n=0),xe(J.current[n]),n}))},xe=function(e){J.current.forEach((function(t){t===e?me(t):ge(t)}))};Object(i.useEffect)((function(){Q.current&&(J.current=Object(_.a)(Q.current))}),[w,de,ae]),Object(i.useEffect)((function(){Q.current&&(ee.current=Object(_.a)(Q.current))}),[U,ae]);var Ee=U&&ae;return a.a.createElement("button",{className:d()({Thumbnail:!0,active:de,selected:o&&U}),onDragOver:function(e){return b(e,n)},id:"Thumbnail-container-".concat(n),ref:Q,onKeyDown:function(e){return ye(e)},onClick:function(e){var t=e.target.type&&"checkbox"===e.target.type;if(A&&!T){var o=e.ctrlKey||e.metaKey,r=e.shiftKey,i=q(C);if(r){P(R.setThumbnailSelectingPages(!0));var a=s;null===a&&(a=E-1,P(R.setShiftKeyThumbnailsPivotIndex(a)));var l=Math.min(a,n),c=Math.max(a,n);i=q(new Set(q(Array.from({length:c-l+1},(function(e,t){return t+l})))))}else o||U?(P(R.setThumbnailSelectingPages(!0)),(o||t||G===N.a.THUMBNAIL)&&(0!==C.length||U?C.includes(n)?i=C.filter((function(e){return n!==e})):i.push(n):i.push(E-1)),P(R.setShiftKeyThumbnailsPivotIndex(n))):i=[n];var u=i[i.length-1];!U&&!r&&P(R.setShiftKeyThumbnailsPivotIndex(u)),P(R.setSelectedPageThumbnails(i))}else F()&&P(R.closeElement("leftPanel"));setTimeout((function(){t&&G!==N.a.THUMBNAIL||g.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 v(e,n)},draggable:y,tabIndex:-1},a.a.createElement("div",{id:"pageThumb".concat(n),className:"thumbnail"}),U&&ae&&a.a.createElement(I.a,{className:"checkbox ".concat(pe),checked:C.includes(n),"aria-label":"".concat(re("action.page")," ").concat(fe," ").concat(re("formField.types.checkbox")),tabIndex:-1})),a.a.createElement("div",{className:"page-label"},fe),!U&&de&&w&&!se&&a.a.createElement(j,{index:n}))}));H.displayName="Thumbnail",H.propTypes={index:b.a.number,isSelected:b.a.bool,updateAnnotations:b.a.func,shiftKeyThumbnailPivotIndex:b.a.number,onFinishLoading:b.a.func,onLoad:b.a.func,onRemove:b.a.func,onDragStart:b.a.func,onDragOver:b.a.func,isDraggable:b.a.bool,shouldShowControls:b.a.bool,thumbnailSize:b.a.number,currentPage:b.a.number,pageLabels:b.a.array,selectedPageIndexes:b.a.array,isThumbnailMultiselectEnabled:b.a.bool,isReaderModeOrReadOnly:b.a.bool,dispatch:b.a.func,actions:b.a.object,isMobile:b.a.func,canLoad:b.a.bool,onCancel:b.a.func,isThumbnailSelectingPages:b.a.bool,thumbnailSelectionMode:b.a.string,activeDocumentViewerKey:b.a.number,panelSelector:b.a.string,parentKeyListener:b.a.func};var U=H;function G(){return(G=Object.assign?Object.assign.bind():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 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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return V(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 V(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 V(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}var K=a.a.forwardRef((function(e,t){var n=W(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],s=n[3],c=n[4],u=n[5],d=n[6],m=n[7],g=n[8],v=n[9],b=n[10],y=Object(l.d)();return a.a.createElement(U,G({},e,{ref:t,currentPage:o,pageLabels:r,selectedPageIndexes:i,isThumbnailMultiselectEnabled:s,isReaderModeOrReadOnly:c||u,dispatch:y,actions:h.a,isMobile:f.k,shiftKeyThumbnailPivotIndex:d,isThumbnailSelectingPages:m,thumbnailSelectionMode:g,selectionModes:b,activeDocumentViewerKey:v}))}));K.displayName="ThumbnailRedux";var Y=K,$=(n(130),n(112),n(386)),Z=n(34);n(1539);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:b.a.func,moveToBottom:b.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:b.a.func,onReplace:b.a.func,onExtractPages:b.a.func,onDeletePages:b.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:b.a.func,onRotateCounterClockwise:b.a.func};var ne=te,oe=n(170);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)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function ie(e){return function(e){if(Array.isArray(e))return se(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)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 se(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)?se(e,t):void 0}}function se(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 ce(e){var t,n=e.parentElement,o=Object(l.f)(),r=Object(l.d)(),s=Object(f.k)(),c=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),v=Object(l.e)(p.a.getMultiPageManipulationControlsItems,l.c),b=ae(Object(i.useState)(!1),2),k=b[0],S=b[1],_=Object(i.useMemo)((function(){return c.map((function(e){return e+1}))}),[c]),C=Object(i.useMemo)((function(){return{onReplace:function(){return!Object(y.k)(_,r)&&Object(y.m)(r)},onExtractPages:function(){return!Object(y.k)(_,r)&&Object(y.e)(_,r)},onDeletePages:function(){return!Object(y.k)(_,r)&&Object(y.b)(_,r,d)},onRotateCounterClockwise:function(){return!Object(y.k)(_,r)&&Object(y.p)(_)},onRotateClockwise:function(){return!Object(y.k)(_,r)&&Object(y.o)(_)},onInsert:function(){return!Object(y.k)(_,r)&&(r(h.a.closeElement(x.a.PAGE_MANIPULATION_OVERLAY)),void r(h.a.openElement("insertPageModal")))},moveToTop:function(){return!Object(y.k)(_,r)&&Object(y.j)(_)},moveToBottom:function(){return!Object(y.k)(_,r)&&Object(y.i)(_)},pageNumbers:_}}),[_,d]),A=C.onRotateClockwise,T=C.onRotateCounterClockwise,P=g.a.getDocument(),j=null==P?void 0:P.type,N=j===O.a.XOD,I=j===O.a.OFFICE||j===O.a.LEGACY_OFFICE;if(!m&&s)try{t=Object(L.a)().querySelector(".App").getBoundingClientRect().width-88}catch(e){t=(u||Z.d)-88}else t=(u||Z.d)-88;var R=t<190,q=t>290;Object(i.useEffect)((function(){var e,t=[];e=R?1:q?3:2;var n=0;v.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};q&&r(h.a.closeElement(i.dataElement)),i.items.length?(r(h.a.updateFlyout(i.dataElement,i)),S(!0)):(r(h.a.removeFlyout(i.dataElement)),S(!1))}),[o,q,R,v]);var M=Object(i.useMemo)((function(){var e=!1,t=0;return v.map((function(n,o){var r;return r=R?0:q?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({},C,{key:"leftPanelPageTabsRotate"})):"leftPanelPageTabsMove"===n.dataElement?a.a.createElement(Q,re({},C,{key:"leftPanelPageTabsMove"})):"leftPanelPageTabsMore"===n.dataElement?a.a.createElement(ee,re({},C,{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(_)},title:e.title})})):(t--,null):null):(t>r&&(e=!0),a.a.createElement("div",{key:"divider".concat(o),className:"divider"}))}))}),[v,C,R,q]);return N||I||null!=P&&P.isWebViewerServerDocument()?a.a.createElement("div",{className:"PageControlContainer root small"},a.a.createElement(ne,{onRotateClockwise:A,onRotateCounterClockwise:T})):a.a.createElement("div",{className:"PageControlContainer root"},M,k&&a.a.createElement("div",{className:"dropdown-menu"},a.a.createElement(E.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"})))}ce.propTypes={parentElement:b.a.string};var ue=ce;n(1668);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fe(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 fe(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 fe(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 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(S.a)(),1)[0],r=Object(l.d)(),s=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),c=s[0],u=s[1],d=s[2],f=s[3],m=s[4],v=pe(c,d),b=de(Object(i.useState)(v),2),y=b[0],x=b[1],E=de(Object(i.useState)(v),2),k=E[0],O=E[1],_=m.customizableUI;Object(i.useEffect)((function(){x(pe(c,d))}),[x,c,t,d]);var C=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}),_&&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($.a)(t,d):[],o=n.map((function(e){return e-1}));if(n.length||!t){r(h.a.setSelectedPageThumbnails(o));var i=pe(c,d);x(i),O(i)}else x(k);c.length>0&&!f&&setTimeout((function(){y!==k&&C()}),100)},onChange:function(e){x(e.target.value)},value:y,placeholder:_?"":"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([g.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:C,dataElement:"thumbMultiSelect"})))):null)};he.propTypes={isDisabled:b.a.bool,pageLabels:b.a.arrayOf(b.a.string),toggleDocumentControl:b.a.func,shouldShowControls:b.a.bool};var me=he,ge=n(449),ve=n(279),be=n(67),ye=n(55),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){g.a.mergeDocument(e,t).then((function(e){o(h.a.closeElement(x.a.LOADING_MODAL)),g.a.setCurrentPage(t),n&&Object(be.a)(ye.a.DOCUMENT_MERGED,e),r(e)})).catch((function(e){i(e),o(h.a.closeElement(x.a.LOADING_MODAL))}))}))}};n(1670);function xe(e){return(xe="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 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 ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){Oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==xe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==xe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _e(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 _e(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 _e(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}var Ce=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),v=Object(l.e)(p.a.getCurrentPage),b=Object(l.e)((function(e){return p.a.getSelectedThumbnailPageIndexes(e)}),l.c),y=Object(l.e)(p.a.getIsThumbnailMergingEnabled),E=Object(l.e)(p.a.getIsThumbnailReorderingEnabled),k=Object(l.e)(p.a.getIsMultipleViewerMerging),O=Object(l.e)((function(e){return p.a.isElementDisabled(e,"thumbnailControl")})),_=Object(l.e)((function(e){return p.a.isElementDisabled(e,"thumbnailsSizeSlider")})),C=Object(l.e)(p.a.isReaderMode),A=Object(l.e)(p.a.isDocumentReadOnly),T=Object(l.e)((function(e){return p.a.getTotalPages(e,2)})),P=Object(l.e)(p.a.getActiveDocumentViewerKey),j=Object(l.e)(p.a.openingPageManipulationOverlayByRightClickEnabled),N=Object(l.e)(p.a.getFeatureFlags,l.c),I=Object(l.e)(p.a.isContentEditingEnabled),R=Se(Object(S.a)(),1)[0],q=Object(i.useRef)(),M=Object(i.useRef)([]),D=Object(i.useRef)([]),z=Object(i.useRef)(null),F=Se(Object(i.useState)(!1),2),B=F[0],H=F[1],U=Se(Object(i.useState)(!0),2),G=U[0],W=U[1],V=Se(Object(i.useState)(0),2),K=V[0],$=V[1],Z=Se(Object(i.useState)(0),2),X=Z[0],Q=Z[1],J=Se(Object(i.useState)(null),2),ee=J[0],te=J[1],ne=Se(Object(i.useState)(!1),2),oe=ne[0],re=ne[1],ie=Se(Object(i.useState)(1),2),ae=ie[0],le=ie[1],se=Se(Object(i.useState)(!1),2),ce=se[0],ue=se[1],de=Se(Object(i.useState)(0),2),fe=de[0],pe=de[1],he=Object(i.useRef)([]),xe=Object(i.useRef)([]),Ee=Object(i.useRef)(null),Oe=Se(Object(i.useState)(150),2),_e=Oe[0],Ce=Oe[1],Ae=Se(Object(i.useState)(0),2),Te=Ae[0],Pe=Ae[1],je=Se(Object(i.useState)(0),2),Ne=je[0],Ie=je[1],Le=2===P?T:m,Re=null==N?void 0:N.customizableUI,qe=Object(l.d)(),Me={};Object(i.useEffect)((function(){var e=function(e){Ee.current&&!Ee.current.contains(e.target)&&Be(Ee.current)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var De=Object(i.useCallback)((function(e,t,n){var o;e.stopPropagation();var r={ArrowLeft:function(){return Ue(e,t,-1)},ArrowRight:function(){return Ue(e,t,1)},ArrowUp:function(){return Ue(e,t,-n)},ArrowDown:function(){return Ue(e,t,n)}},i={Enter:function(){return Ge(e,t)},Tab:function(){return He(t)}};r[e.key]&&(o=r[e.key]()),i[e.key]&&i[e.key](),void 0!==o&&o!==t&&(pe(o),ze(he.current[o]),Fe(he.current[t]))}),[xe,he]),ze=function(e){e.tabIndex=0,e.ariaCurrent="page",e.style.outline="var(--focus-visible-outline)",e.focus(),Ee.current=e},Fe=function(e){e.tabIndex=-1,e.ariaCurrent=void 0,Be(e)},Be=function(e){e.style.outline="none"},He=function(e){Be(he.current[e])},Ue=function(e,t,n){var o=t+n;return o<0||o>=Le?t:o},Ge=function(e,t){e.preventDefault(),ze(he.current[t]),g.a.setCurrentPage(t+1),xe.current[t].focusInput()},We=Object(i.useCallback)((function(e,t){e.stopPropagation();var n,o={Tab:function(){return Ke(e,t)},Escape:function(){return Ve(e,t)}};o[e.key]&&(null===(n=o[e.key])||void 0===n||n.call(o))}),[he]),Ve=function(e,t){e.preventDefault(),ze(he.current[t])},Ke=function(e,t){var n=t+(e.shiftKey?-1:1);(n<0||n>=Le)&&(n=t),pe(n),ze(he.current[n]),n!==t&&Fe(he.current[t])},Ye=function(e){var t=D.current&&D.current[e]&&D.current[e].element;if(t){var n=e+1,o=g.a.getPageWidth(n),i=function(e,t){var n,o,r;return e>t?(r=e/_e,n=_e,o=Math.round(t/r)):(r=t/_e,n=Math.round(e/r),o=_e),{width:n,height:o}}(o,g.a.getPageHeight(n)),a=i.width,l=i.height,s=t.querySelector(".annotation-image")||document.createElement("canvas");s.className="annotation-image",s.role="img",s.ariaLabel="".concat(R("action.page")," ").concat(n),s.style.maxWidth="".concat(_e,"px"),s.style.maxHeight="".concat(_e,"px");var c=s.getContext("2d"),u=1,d=g.a.getCompleteRotation(n);d<0&&(d+=4);var f=window.Core.getCanvasMultiplier();d%2==0?(s.width=a,s.height=l,u=s.width/o,u/=f):(s.width=l,s.height=a,u=s.height/o,u/=f),t.appendChild(s),g.a.setAnnotationCanvasTransform(c,u,d);var p={pageNumber:n,overrideCanvas:s},h=t.querySelector(".page-image");if(h)p=ke(ke({},p),{},{overridePageRotation:d,overridePageCanvas:h}),Me[n]||(Me[n]=r()(g.a.drawAnnotations,112)),(0,Me[n])(p)}};if(Object(i.useEffect)((function(){var e=function(){W(!1)},t=function(e){e||W(!0)},n=function(){var e;"officeEditor"===(null===(e=g.a.getDocument())||void 0===e?void 0:e.getType())?H(!0):H(!1),Me={},qe(h.a.setSelectedPageThumbnails([]))},o=function(){z.current&&(g.a.setCurrentPage(z.current),z.current=null)};return g.a.addEventListener("beginRendering",e),g.a.addEventListener("finishedRendering",t),g.a.addEventListener("documentLoaded",n),g.a.addEventListener("pageComplete",o),g.a.getDocument()&&n(),function(){g.a.removeEventListener("beginRendering",e),g.a.removeEventListener("finishedRendering",t),g.a.removeEventListener("documentLoaded",n),g.a.removeEventListener("pageComplete",o)}}),[]),Object(i.useEffect)((function(){var e=function(e){if(e){var t=Array.from(b);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}))),qe(h.a.setSelectedPageThumbnails(t))}};return g.a.addEventListener("pagesUpdated",e),function(){return g.a.removeEventListener("pagesUpdated",e)}}),[b]),Object(i.useEffect)((function(){var e;null===(e=q.current)||void 0===e||e.scrollToRow(Math.floor((v-1)/ae));var t=function(e){var t=[];e.forEach((function(e){var n=e.PageNumber-1;!e.Listable||t.indexOf(n)>-1||(t.push(n),Ye(n))}))},n=function(e){var t,n=e-1;null===(t=q.current)||void 0===t||t.scrollToRow(Math.floor(n/ae))};return g.a.addEventListener("pageNumberUpdated",n),g.a.addEventListener("annotationChanged",t),g.a.addEventListener("annotationHidden",t),function(){g.a.removeEventListener("pageNumberUpdated",n),g.a.removeEventListener("annotationChanged",t),g.a.removeEventListener("annotationHidden",t)}}),[_e,ae]),Object(i.useEffect)((function(){(C||A)&&(qe(h.a.setSelectedPageThumbnails([])),qe(h.a.setThumbnailSelectingPages(!1)))}),[C,A]),u||B||!o&&!t&&!Re)return null;var $e=function(){ue(!1),te(null)},Ze=function(e,t,n){var o,r=(new Date).getTime();return e<Le-1&&e>0&&r-Te>=n?(null===(o=q.current)||void 0===o||o.scrollToRow(Math.floor((e+t)/ae)),Pe(r),e+t):e},Xe=function(e,t){if(e.preventDefault(),e.stopPropagation(),E||y){var n=e.target.getBoundingClientRect();re(ae>1?!(e.pageX>n.x+n.width/2):!(e.pageY>n.y+n.height/2)),te(t);var o=Object(L.a)().querySelector("#virtualized-thumbnails-container").getBoundingClientRect(),r=o.y,i=o.bottom;e.pageY<r+100?Ie(Ze(t,-1,400)):e.pageY>i-100&&Ie(Ze(t,1,400))}},Qe=function(){Ie(Ze(Ne,1,200))},Je=function(){Ie(Ze(Ne,-1,200))},et=function(){return window.isApryseWebViewerWebComponent?Object(L.a)().host.id:window.frameElement.id},tt=function(e,t){Ie(t),ue(!0);var n,o=b.some((function(e){return e===t})),r=o?b.map((function(e){return e+1})):[t+1];Object(be.a)(ye.a.THUMBNAIL_DRAGGED),e.dataTransfer.setData("text",""),r.length>1&&e.dataTransfer.setDragImage(new Image,0,0),y&&k&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="all",e.dataTransfer.setData("dataTransferWebViewerFrame",et()),n=r,window.extractedDataPromise=Object(ve.a)(n),window.pagesExtracted=n),o||qe(h.a.setSelectedPageThumbnails([t])),g.a.setCurrentPage(t+1)},nt=function(e){e.preventDefault();var t,n=e.dataTransfer.files,o=oe?ee+1:ee+2;f.f||(t=e.dataTransfer.getData("dataTransferWebViewerFrame"));var r,i,a=t&&et()!==t||n.length,l=v-1;if(y&&a)t&&et()!==t?qe((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(be.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){qe(we(e,o))}));else if(E&&!a&&null!==ee){var s=oe?ee+1:ee+2,c=b.some((function(e){return e===l}))?b.map((function(e){return e+1})):[v];z.current=s-c.filter((function(e){return e<s})).length,g.a.movePages(c,s);for(var u=[],d=0;d<c.length;d++)u.push(z.current+d);Object(be.a)(ye.a.THUMBNAIL_DROPPED,{pageNumbersBeforeMove:c,pagesNumbersAfterMove:u,numberOfPagesMoved:u.length})}te(null),ue(!1)},ot=function(e,t,n){it(e)||at(e)||(D.current[e]={element:t,loaded:!1},M.current.push({pageIndex:e,id:n}))},rt=function(e){var t=st(e);-1!==t&&M.current.splice(t,1)},it=function(e){var t;return null===(t=D.current[e])||void 0===t?void 0:t.loaded},at=function(e){return-1!==st(e)},lt=function(e){var t=st(e);-1!==t&&(g.a.cancelLoadThumbnail(M.current[t].id),M.current.splice(t,1))},st=function(e){return M.current.findIndex((function(t){return t.pageIndex===e}))},ct=function(e){var t,n;lt(e);var o=null===(t=D.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})),Me[e]&&Me[e].cancel(),D.current[e]=null},ut=function(e){var n=e.index,o=e.key,r=e.style,i=d()({columnsOfThumbnails:ae>1,row:!0}),l=!(C||A);return a.a.createElement("div",{role:"row","aria-label":"row",className:i,key:o,style:r},new Array(ae).fill().map((function(e,o){var r=n*ae+o,i=l&&(y||E),s=i&&ee===r;return r<Le?a.a.createElement(a.a.Fragment,{key:r},(ae>1||0===r)&&s&&oe&&a.a.createElement("div",{key:"placeholder1-".concat(r),className:"thumbnailPlaceholder"}),a.a.createElement("td",{ref:function(e){return he.current[r]=e},key:r,role:"gridcell",tabIndex:fe===r?0:-1,"aria-current":fe===r?"page":void 0,onDragEnd:$e,className:"cellThumbContainer",onKeyDown:function(e){return De(e,r,ae)},onContextMenu:function(e){return j&&(n=r,(t=e).preventDefault(),g.a.setCurrentPage(n+1),b.includes(n)||qe(h.a.setSelectedPageThumbnails([n])),void(C||A||I||(qe(h.a.setFlyoutPosition({x:t.pageX,y:t.pageY})),qe(h.a.openElements([x.a.PAGE_MANIPULATION])))));var t,n},onFocus:function(e){return function(e,t){he.current&&he.current.includes(e.target)&&ze(he.current[t])}(e,r)}},a.a.createElement(Y,{ref:function(e){return xe.current[r]=e},isDraggable:i,isSelected:b.includes(r),index:r,canLoad:G,onLoad:ot,onCancel:lt,onRemove:ct,onDragStart:tt,onDragOver:Xe,onFinishLoading:rt,updateAnnotations:Ye,shouldShowControls:l,thumbnailSize:_e,panelSelector:t,parentKeyListener:function(e){return We(e,r)}})),s&&!oe&&a.a.createElement("div",{key:"placeholder2-".concat(r),className:"thumbnailPlaceholder"})):null})))},dt=function(){le(Math.min(16,Math.max(1,Math.floor(X/_e))))},ft=O?Number(_e)+50:Number(_e)+80,pt=!(C||A||I),ht={height:"".concat(25,"px")},mt=function(e,t){var n="1000"*Number(t);n<100&&(n=100),Ce(n),dt()};return a.a.createElement(a.a.Fragment,null,!_&&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(){_e-"50">"50"&&(Ce(_e-"50"),dt())},dataElement:"zoomThumbOutButton"}),Re&&a.a.createElement(ge.a,{dataElement:"thumbnailsSizeSlider",property:"zoom",displayProperty:"zoom",min:0,max:1,step:.01,value:_e/1e3,getDisplayValue:function(){return _e},onSliderChange:mt,onStyleChange:mt,shouldHideSliderTitle:!0,shouldHideSliderValue:!0}),!Re&&a.a.createElement("input",{role:"slider",type:"range","aria-label":"thumbnail size slider",min:"100",max:"1000",value:_e,"aria-valuemin":"100","aria-valuemax":"1000","aria-valuenow":_e,onChange:function(e){Ce(Number(e.target.value)),dt()},step:"50",className:"thumbnail-slider",id:"thumbnailSize"}),a.a.createElement(w.a,{img:"icon-zoom-thumb-in",title:"action.zoomIn",hideTooltipShortcut:!0,onClick:function(){_e+Number("50")<1001&&(Ce(_e+Number("50")),dt())},dataElement:"zoomThumbInButton"})),a.a.createElement(c.a,{bounds:!0,onResize:function(e){var t=e.bounds;$(t.height),Q(t.width),le(Math.min(16,Math.max(1,Math.floor(t.width/_e))))},key:_e},(function(e){var n=e.measureRef;return a.a.createElement("div",{className:"Panel ThumbnailsPanel ".concat(t),id:"virtualized-thumbnails-container","data-element":"thumbnailsPanel",onDrop:nt,ref:n},a.a.createElement("div",{className:"virtualized-thumbnails-container"},ce?a.a.createElement("div",{className:"thumbnailAutoScrollArea",onDragOver:Je,style:ht}):"",a.a.createElement(s.c,{ref:q,height:K,width:X,rowHeight:ft,rowCount:Math.ceil(Le/ae),rowRenderer:ut,overscanRowCount:3,className:"thumbnailsList",scrollToIndex:Math.floor((v-1)/ae),role:"grid","aria-label":R("component.thumbnailsPanel"),tabIndex:-1}),ce?a.a.createElement("div",{className:"thumbnailAutoScrollArea",onDragOver:Qe,style:ke(ke({},ht),{},{bottom:"70px"})}):""))})),a.a.createElement(me,{shouldShowControls:pt,parentElement:n||t}))};t.default=Ce},1703:function(e,t,n){"use strict";n.r(t);n(29),n(8),n(23),n(24),n(84),n(19),n(12),n(13),n(14),n(10),n(9),n(11),n(16),n(15),n(20),n(18),n(27),n(28),n(25),n(22),n(32),n(47),n(49),n(48),n(58),n(44);var o=n(0),r=n.n(o),i=n(1),a=(n(46),n(52),n(36),n(101),n(90),n(79),n(128),n(97),n(124),n(17)),l=n.n(a),s=n(6),c=n(347),u=n(3),d=n.n(u),f=n(197),p=n(1583);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 g(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){v(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 v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==h(e)||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return y(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 y(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 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}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}),E=r.a.forwardRef((function(e,t){var n=e.notes,i=e.children,a=e.onScroll,l=e.initialScrollTop,s=e.selectedIndex,c=e.sortStrategy,u=Object(o.useRef)(),d=b(Object(o.useState)(0),2),h=d[0],m=d[1],v=b(Object(o.useState)({width:0,height:0}),2),y=v[0],w=v[1],E=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!==s)&&(null===(t=u.current)||void 0===t||t.scrollToRow(s))}),[s]),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,c]),Object(o.useEffect)((function(){var e=function(){var e=window.innerHeight-E;e&&(window.innerHeight<E&&m(e),E=window.innerHeight)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}));var k=function(e){var t=e.scrollTop;a(t)},O=function(e){var t=e.index,o=e.key,a=e.parent,l=e.style,s=n[t];return r.a.createElement(p.a,{key:"".concat(o).concat(s.Id),cache:x,columnIndex:0,parent:a,rowIndex:t},(function(e){var o=e.measure;return r.a.createElement("div",{style:g(g({},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(g(g({},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:O,onScroll:k,"aria-label":"presentation",role:"presentation"}))}))}));E.displayName="VirtualizedList",E.propTypes=w;var k=E,O=(n(41),{notes:d.a.array.isRequired,children:d.a.func.isRequired,onScroll:d.a.func.isRequired,initialScrollTop:d.a.number.isRequired}),S=r.a.forwardRef((function(e,t){var n=e.notes,i=e.children,a=e.onScroll,l=e.initialScrollTop,s=Object(o.useRef)();Object(o.useImperativeHandle)(t,(function(){return{scrollToPosition:function(e){s.current.scrollTop=e},scrollToRow:function(e){var t=s.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(){s.current.scrollTop=l}),[l]);return r.a.createElement("div",{ref:s,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))})))}));S.displayName="NormalList",S.propTypes=O;var _=S,C=n(1627),A=n(43),T=n(1519),P=n(1569),j=(n(145),n(42)),N=(n(154),n(1541)),I=n(350),L=n(1537),R=n(4);n(1672);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return M(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 M(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 M(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}var D=function(e){var t=e.annotations,n=e.onSubmit,a=e.onClose,u=q(Object(s.e)((function(e){var t;return[R.a.getIsMentionEnabled(e),R.a.getActiveDocumentViewerKey(e),null===(t=R.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI]}),s.c),3),d=u[0],f=u[1],p=u[2],h=q(Object(o.useState)(""),2),m=h[0],g=h[1],v=q(Object(c.a)(),1)[0],b=Object(o.useRef)();Object(o.useEffect)((function(){b.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"},v("action.multiReplyAnnotations",{count:t.length})),r.a.createElement(j.a,{className:"close-icon",onClick:a,img:"ic_close_black_24px"})),r.a.createElement("form",{onSubmit:function(e){e.preventDefault();var o=b.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(L.a)(o,t)}else{var n=i.a.createAnnotationReply(e,r,f);Object(L.a)(o,n)}})),n())}},r.a.createElement("div",{className:y,onMouseDown:function(e){return e.stopPropagation()}},r.a.createElement(N.a,{ref:function(e){b.current=e},value:m,onChange:function(e){return function(e){g(e)}(e)},isReply:!0})),r.a.createElement("div",{className:"reply-button-container"},r.a.createElement(j.a,{img:"icon-post-reply",className:"reply-button",title:"action.submit",isSubmitType:!0}))))},z=n(236),F=n(119),B=n(21);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(B.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(F.createPortal)(o,r)},G=n(1628),W=n(140),V=n(387),K=n(211),Y=n(2),$=n(50);n(1674);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)||null===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:String(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return te(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 te(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 te(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}var ne=function(e){var t=e.annotations,n=e.triggerElementName,i=e.onClose,a=void 0===i?function(){}:i,l=Object(s.d)(),c=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(W.a)(c,(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 g={};t.forEach((function(e){g=Q(Q({},g),Object(V.a)(e))}));var v=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)})),b={};if(v){var y,w,x,E,k,O,S,_,C,A,T,P=v.getRichTextStyle();b={Font:v.Font,FontSize:v.FontSize,TextAlign:v.TextAlign,TextVerticalAlign:v.TextVerticalAlign,bold:"bold"===(null!==(y=null==P||null===(w=P[0])||void 0===w?void 0:w["font-weight"])&&void 0!==y?y:""),italic:"italic"===(null!==(x=null==P||null===(E=P[0])||void 0===E?void 0:E["font-style"])&&void 0!==x?x:""),underline:(null==P||null===(k=P[0])||void 0===k||null===(O=k["text-decoration"])||void 0===O?void 0:O.includes("underline"))||(null==P||null===(S=P[0])||void 0===S||null===(_=S["text-decoration"])||void 0===_?void 0:_.includes("word")),strikeout:null!==(C=null==P||null===(A=P[0])||void 0===A||null===(T=A["text-decoration"])||void 0===T?void 0:T.includes("line-through"))&&void 0!==C&&C}}Object(o.useEffect)((function(){var e=[];if(g.TextColor&&e.push($.b.TEXT_COLOR),g.StrokeColor&&e.push($.b.STROKE_COLOR),g.FillColor&&e.push($.b.FILL_COLOR),Object($.l)("MultiStyle",e,e[0])){var t=Object($.d)("currentStyleTab","iconColor");l(Y.a.setColorMap(t));var n=Object($.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:c},r.a.createElement(G.a,{annotations:t,style:g,isOpen:!0,onResize:function(){var e=Object(z.a)(n,c);m(e)},isFreeText:!!v,colorMapKey:"MultiStyle",properties:b,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(1570),ie=n(94),ae=n(1567),le=n(5);n(1676);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 ce(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?ce(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function de(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==se(e)||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fe(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pe(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 pe(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 pe(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}var he={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},me=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=fe(Object(o.useState)([]),2),g=m[0],v=m[1],b=Object(s.d)(),y=fe(Object(c.a)(),1)[0],w=Object(s.e)(R.a.getActiveDocumentViewerKey),x=Object(s.e)(R.a.isDocumentReadOnly);Object(o.useEffect)((function(){var e=function(e){var n=ue({},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=ue({},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)}));v(e)}),[h]);var E=i.a.getNumberOfGroups(g,w)>1,k=!E&&(g.length>2||g.length>0&&i.a.getGroupAnnotations(g[0],w).length>1),O=Object(o.useCallback)((function(e){me(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]),S=Object(o.useMemo)((function(){return{resize:function(){}}}));return t?r.a.createElement(T.a.Provider,{value:S},r.a.createElement(D,{annotations:me(h,w),onSubmit:function(){return n(!1)},onClose:function(){return n(!1)}})):r.a.createElement("div",{className:"multi-select-footer"},r.a.createElement("div",{className:"buttons-container"},r.a.createElement(j.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===g.length}),r.a.createElement(re.a,{isMultiSelectMode:!0,handleStateChange:O}),r.a.createElement(j.a,{dataElement:le.a.NOTE_MULTI_STYLE_BUTTON,img:"icon-menu-style-line",disabled:x||0===g.length,onClick:function(){u(!l)},title:"action.style"}),l&&r.a.createElement(oe,{annotations:g,triggerElementName:"multiStyleButton",onClose:function(){u(!1)}}),!k&&r.a.createElement(j.a,{dataElement:le.a.NOTE_MULTI_GROUP_BUTTON,disabled:x||!E,img:"group-annotations-icon",onClick:function(){i.a.groupAnnotations(h[0],h,w)},title:"action.group"}),k&&r.a.createElement(j.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(j.a,{dataElement:le.a.NOTE_MULTI_DELETE_BUTTON,disabled:x||0===g.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(g,void 0,w)}};b(Y.a.showWarningMessage(e))},title:"action.delete"})),r.a.createElement("div",{className:"close-container"},r.a.createElement(j.a,{className:"close-icon-container",onClick:function(){d(!1)},img:"ic_close_black_24px",ariaLabel:y("option.documentControls.closeTooltip")})))};ge.propTypes=he;var ve=ge,be=n(176),ye=n(110),we=n.n(ye),xe=n(78),Ee=n(75),ke=n(55),Oe=n(175),Se=n(26),_e=n(95);n(1678);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ae(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 Ae(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 Ae(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}var Te={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=Ce(Object(s.e)((function(e){var t;return[R.a.getSortStrategy(e),R.a.isElementDisabled(e,"sortContainer"),R.a.getNotesPanelCustomHeaderOptions(e),R.a.getAnnotationFilters(e),R.a.getIsOfficeEditorMode(e),R.a.getOfficeEditorEditMode(e),null===(t=R.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI]}),s.c),7),h=p[0],m=p[1],g=p[2],v=p[3],b=p[4],y=p[5],w=p[6],x=Ce(Object(c.a)(),1)[0],E=Object(s.d)(),k=Ce(Object(o.useState)(!1),2),O=k[0],S=k[1],_=Ce(Object(o.useState)(!1),2),C=_[0],T=_[1],P=Ce(Object(o.useState)(""),2),N=P[0],I=P[1];Object(o.useEffect)((function(){var e=v.authorFilter,t=v.colorFilter,n=v.statusFilter,o=v.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)&&S(!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?S(!0):S(!1)};return window.addEventListener(ke.a.ANNOTATION_FILTER_CHANGED,r),function(){window.removeEventListener(ke.a.ANNOTATION_FILTER_CHANGED,r)}}),[]),Object(o.useEffect)((function(){b&&y===Se.y.PREVIEW?(T(!0),a(""),I("")):T(!1)}),[b,y]);var L=we()((function(e){i.a.deselectAllAnnotations(),a(e)}),500),q=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(xe.a,{id:"notesOrderDropdown",labelledById:"notesSortLabel",dataElement:"notesOrderDropdown",disabled:0===t.length||C,ariaLabel:"".concat(x("message.sortBy")," ").concat(h),items:Object.keys(Object(Oe.c)()),translationPrefix:"option.notesOrder",currentSelectionKey:h,onClickItem:function(e){E(Y.a.setNotesPanelSortStrategy(e))}})),M=Object(_e.a)((function(){return E(Y.a.openElement("filterModal"))})),D=x(b?"message.searchSuggestionsPlaceholder":"message.searchCommentsPlaceholder"),z=r.a.createElement(Ee.a,{className:l()({header:!0,"modular-ui-header":w}),dataElement:"notesPanelHeader"},r.a.createElement(Ee.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:C,type:"text",placeholder:w?"":D,"aria-label":D,onChange:function(e){I(e.target.value),L(e.target.value)},id:"NotesPanel__input",value:N})),r.a.createElement(Ee.a,{className:"comments-counter",dataElement:le.a.NotesPanel.DefaultHeader.COMMENTS_COUNTER},r.a.createElement("h2",{className:"main-comment"},x(b?"officeEditor.reviewing":"component.notesPanel")," ","(".concat(t.length,")"))),r.a.createElement(Ee.a,{className:"sort-row",dataElement:le.a.NotesPanel.DefaultHeader.SORT_ROW},m?r.a.createElement("div",{className:"sort-container"}):q,r.a.createElement("div",{className:"buttons-container"},f&&!b&&r.a.createElement(j.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(j.a,{dataElement:le.a.NotesPanel.DefaultHeader.FILTER_ANNOTATION_BUTTON,className:l()({active:O}),disabled:n,img:"icon-comments-filter",onClick:M,title:x("component.filter"),ariaPressed:O}))));return r.a.createElement(r.a.Fragment,null,g&&r.a.createElement(be.a,{render:g.render,renderArguments:[t]}),(!g||!g.overwriteDefaultHeader)&&z)}Pe.propTypes=Te;var je=Pe,Ne=n(155),Ie=n(66),Le=n(38),Re=n(1617);n(1680);function qe(e){return(qe="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){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?Me(Object(n),!0).forEach((function(t){ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ze(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==qe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==qe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qe(t)?t:String(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 Ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||He(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 Be(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||He(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){if(e){if("string"==typeof e)return Ue(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)?Ue(e,t):void 0}}function Ue(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}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,g=e.setIsMultiSelectedMap,v=e.scrollToSelectedAnnot,b=e.setScrollToSelectedAnnot,y=e.isCustomPanel,w=e.isCustomPanelOpen,x=e.isLeftSide,E=e.parentDataElement,O=Object(s.e)(R.a.getSortStrategy),S=Object(s.e)((function(e){return R.a.isElementOpen(e,le.a.NOTES_PANEL)})),j=Object(s.e)((function(e){return R.a.isElementDisabled(e,le.a.NOTES_PANEL)})),N=Object(s.e)(R.a.getPageLabels,s.c),I=Object(s.e)(R.a.getCustomNoteFilter,s.c),L=Object(s.e)(R.a.getInternalNoteFilter,s.c),q=Object(s.e)((function(e){return E?R.a.getPanelWidth(e,E):R.a.getNotesPanelWidth(e)}),s.c),M=Object(s.e)(R.a.getNotesInLeftPanel),D=Object(s.e)(R.a.isDocumentReadOnly),z=Object(s.e)(R.a.isAnnotationNumberingEnabled),F=Object(s.e)(R.a.getEnableNotesPanelVirtualizedList),B=Object(s.e)(R.a.isInDesktopOnlyMode),H=Object(s.e)(R.a.getNotesPanelCustomEmptyPanel,s.c),U=Object(s.e)(R.a.getIsNotesPanelMultiSelectEnabled),G=Object(s.e)(R.a.getActiveDocumentViewerKey),W=Object(s.e)(R.a.getIsOfficeEditorMode),V=Object(s.e)(R.a.getOfficeEditorEditMode),K=Object(s.d)(),$=Be(Object(c.a)(),1)[0],Z=t||q,X=Object(Ie.b)(),Q=Be(Object(o.useState)([]),2),J=Q[0],ee=Q[1],te=Be(Object(o.useState)(!1),2),ne=te[0],oe=te[1],re=Be(Object(o.useState)(!1),2),ie=re[0],ae=re[1],se=Be(Object(o.useState)(!1),2),ce=se[0],ue=se[1],de=Be(Object(o.useState)(void 0),2),fe=de[0],pe=de[1],he=Object(o.useRef)(),me=Object(o.useRef)(0),ge=F?Le.e?25:100:1/0;Object(o.useEffect)((function(){var e=function(e){K(Y.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 ye=-1,we=function(e){e&&(me.current=e),K(Y.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()))},Ee=Object(Oe.c)()[O].getSortedNotes(n).filter((function(e){var t=!0;if(I&&(t=t&&I(e)),L&&(t=t&&L(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!==ye&&setTimeout((function(){var e;null===(e=he.current)||void 0===e||e.scrollToRow(ye)}),0)}),[a]);var ke=function(e){return!Object.keys(a).length&&(d&&Ee.filter((function(e){return e.getReplies().some(xe)})).some((function(t){return t.Id===e.Id})))},_e=Be(Object(o.useState)({}),2),Ce=_e[0],Ae=_e[1],Te=Object(o.useCallback)((function(e,t){Ae((function(n){return De(De({},n),{},ze({},t,e))}))}),[Ae]),Pe=Be(Object(o.useState)({}),2),qe=Pe[0],Me=Pe[1],He=Object(o.useCallback)((function(e,t){Me((function(n){return De(De({},n),{},ze({},t,e))}))}),[Me]),Ue=Be(Object(o.useState)({}),2),Ge=Ue[0],We=Ue[1],Ve=function(e,t){We((function(n){return De(De({},n),{},ze({},e,[].concat(Fe(n[e]||[]),Fe(t))))}))},Ke=function(e){We((function(t){return De(De({},t),{},ze({},e,[]))}))},Ye=function(e,t){var n=Ge[e];if((null==n?void 0:n.length)>0){var o=n.indexOf(t);o>-1&&(n.splice(o,1),We((function(t){return De(De({},t),{},ze({},e,Fe(n)))})))}};Object(o.useEffect)((function(){ee(Object.values(m))}),[m]);var $e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=null,l=Object(Oe.c)()[O],s=l.shouldRenderSeparator,c=l.getSeparatorContent,f=0===t?null:e[t-1],h=e[t];s&&c&&(!f||s(f,h))&&(o=r.a.createElement(P.a,{renderContent:function(){return c(f,h,{pageLabels:N})}}));var y=function(){!p&&a[h.Id]&&(u((function(e){var t=De({},e);return delete t[h.Id],t})),i.a.deselectAnnotation(h,G))},E={searchInput:d,resize:n,isSelected:a[h.Id],isContentEditable:i.a.canModifyContents(h,G)&&!h.getContents(),pendingEditTextMap:Ce,setPendingEditText:Te,pendingReplyMap:qe,setPendingReply:He,isDocumentReadOnly:D,onTopNoteContentClicked:y,isExpandedFromSearch:ke(h),scrollToSelectedAnnot:v,sortStrategy:O,showAnnotationNumbering:z,setCurAnnotId:pe,pendingAttachmentMap:Ge,clearAttachments:Ke,deleteAttachment:Ye,addAttachments:Ve,documentViewerKey:G};return t===ye&&setTimeout((function(){b(!1),K(Y.a.openElement("annotationNoteConnectorLine"))}),0),r.a.createElement("div",{role:"listitem",className:"note-wrapper"},o,r.a.createElement(T.a.Provider,{value:E},r.a.createElement(C.a,{isCustomPanelOpen:w,shouldHideConnectorLine:x,annotation:h,isMultiSelected:!!m[h.Id],isMultiSelectMode:p,isMultiSelectEnabled:U,isInNotesPanel:!0,handleMultiSelect:function(e){if(e){var t=De({},m),n=i.a.getGroupAnnotations(h,G);n.forEach((function(e){t[e.Id]=e})),g(t),i.a.selectAnnotations(n)}else{var o=De({},m),r=i.a.getGroupAnnotations(h,G);r.forEach((function(e){delete o[e.Id]})),g(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"},$("message.noResults"))),Xe=null!=H&&H.icon?H.icon:W?"ic-edit-page":"illustration - empty state - outlines",Qe=null!=H&&H.message?H.message:$(W?"message.noRevisions":"message.noAnnotations"),Je=H&&H.readOnlyMessage?H.readOnlyMessage:$("message.noAnnotationsReadOnly"),et=H&&!H.hideIcon||!H,tt=H&&H.render,nt=r.a.createElement("div",{className:"no-annotations"},tt?r.a.createElement(be.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)ye=Ee.findIndex((function(e){return e.Id===it[0]}));else if(it.length){Ee.filter((function(e){return a[e.Id]})).length&&(ye=Ee.findIndex((function(e){return e.Id===fe})))}var at,lt={};return y||!B&&X||(lt={width:"".concat(Z,"px"),minWidth:"".concat(Z,"px")}),!j&&(S||M||y)?r.a.createElement("div",{className:l()({"notes-panel-container":!0,"office-editor":W})},r.a.createElement("div",{className:l()({Panel:!0,NotesPanel:!0}),style:lt,"data-element":"notesPanel",onMouseUp:function(){return i.a.deselectAllAnnotations}},!B&&X&&!M&&r.a.createElement("div",{className:"close-container"},r.a.createElement("div",{className:"close-icon-container",onClick:function(){K(Y.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(je,{notes:Ee,disableFilterAnnotation:0===n.length,setSearchInputHandler:f,isMultiSelectMode:p,toggleMultiSelectMode:function(){h(!p)},isMultiSelectEnabled:U}),0===Ee.length?0===n.length?nt:Ze:Ee.length<=ge?r.a.createElement(_,{ref:he,notes:Ee,onScroll:we,initialScrollTop:me.current},$e):r.a.createElement(k,{ref:he,notes:Ee,sortStrategy:O,onScroll:we,initialScrollTop:me.current,selectedIndex:ye},$e),p?ne?rt:ot:null,W&&!p&&Ee.length>0&&r.a.createElement("div",{className:"preview-all-changes"},r.a.createElement("div",{className:"divider"}),r.a.createElement(Ne.a,{isSwitch:!0,checked:V===Se.y.PREVIEW,label:$("officeEditor.previewAllChanges"),onChange:function(e){return i.a.getOfficeEditor().setEditMode(e.target.checked?Se.y.PREVIEW:Se.y.REVIEWING)}})))),p&&r.a.createElement(ve,{showMultiReply:ne,setShowMultiReply:oe,showMultiState:ie,setShowMultiState:ae,showMultiStyle:ce,setShowMultiStyle:ue,setMultiSelectMode:h,isMultiSelectedMap:m,setIsMultiSelectedMap:g,multiSelectedAnnotations:J}),r.a.createElement(Re.a,{annotationId:fe,addAttachments:Ve}),(at=$(W?"officeEditor.reviewing":"component.notesPanel"),r.a.createElement("p",{"aria-live":"assertive",style:{position:"absolute",left:"-9999px"}},Ee.length>0?"".concat(at," ").concat(Ee.length):$("message.noResults")))):null},We=n(239);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(){return(Ke=Object.assign?Object.assign.bind():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 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 $e(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){Ze(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 Ze(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ve(e)||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qe(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 Qe(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 Qe(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 Je(e){var t=e.isCustomPanelOpen,n=e.parentDataElement,a=void 0===n?void 0:n,l=e.dataElement,c=Xe(Object(s.e)((function(e){return[R.a.isElementOpen(e,a||l||le.a.NOTES_PANEL),R.a.getNotesInLeftPanel(e),R.a.getIsNotesPanelMultiSelectEnabled(e),R.a.isMultiViewerMode(e),R.a.getActiveDocumentViewerKey(e),R.a.getIsOfficeEditorMode(e)]}),s.c),6),u=c[0],d=c[1],f=c[2],p=c[3],h=c[4],m=c[5],g=Xe(Object(o.useState)(""),2),v=g[0],b=g[1],y=Xe(Object(o.useState)(!1),2),w=y[0],x=y[1],E=Xe(Object(o.useState)(!1),2),k=E[0],O=E[1],S=Xe(Object(o.useState)({1:[],2:[]}),2),_=S[0],C=S[1],A=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;_[t]=e,C($e({},_))}),[h,_[1],_[2],C]),T=_[h]||_[1],P=Xe(Object(o.useState)({1:{},2:{}}),2),j=P[0],N=P[1],I=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;j[t]=e,N($e({},j))}),[h,j[1],j[2],N]),L=j[h]||j[1],q=Xe(Object(o.useState)({1:{},2:{}}),2),M=q[0],D=q[1],z=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;M[t]=e,D($e({},M))}),[h,M[1],M[2],D]),F=M[h]||M[1],B=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($.g)(e)===$.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({}),b("")}},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(B),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),O(!0));var l=H(r),s=r.length>1&&l.length!==r.length||w;f&&"selected"===o&&s?(x(!0),r.forEach((function(e){F[e.Id]=e})),z($e({},F),e)):"deselected"===o&&(n.forEach((function(e){delete F[e.Id]})),z($e({},F),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,F,f,p]);var U={notes:T,selectedNoteIds:L,setSelectedNoteIds:I,searchInput:v,setSearchInput:b,isMultiSelectMode:w,setMultiSelectMode:x,isMultiSelectedMap:F,setIsMultiSelectedMap:z,scrollToSelectedAnnot:k,setScrollToSelectedAnnot:O};return r.a.createElement(Ge,Ke({},e,U))}var et=function(e){return r.a.createElement(We.a,{wrapOnlyInMultiViewerMode:!0},r.a.createElement(Je,e))};t.default=et},1704:function(e,t,n){"use strict";n.r(t);n(101),n(8),n(15),n(84),n(29),n(124),n(128),n(10),n(11),n(41),n(19),n(12),n(13),n(14),n(9),n(16),n(20),n(18),n(54),n(22),n(61),n(62),n(63),n(64),n(37),n(39),n(23),n(24),n(40),n(60);var o=n(0),r=n.n(o),i=n(6),a=n(347),l=n(1509),s=n(1590),c=n(444),u=n(4),d=n(2),f=n(42),p=r.a.createContext(),h=n(3),m=n.n(h),g=n(1811),v=n(1812),b=n(592),y=n(1530),w=(n(36),n(1529)),x=n(5),E=n(2008),k=n(252),O=(n(1523),n(1687),n(1585)),S=n(17),_=n.n(S);function C(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return A(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 A(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 A(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}var T={portfolioItem:m.a.object.isRequired,isPortfolioRenaming:m.a.bool,setPortfolioRenaming:m.a.func,movePortfolio:m.a.func},P=function(e){var t=e.portfolioItem,n=e.isPortfolioRenaming,l=e.setPortfolioRenaming,s=e.movePortfolio,c=Object(o.useContext)(p),d=c.refreshPortfolio,h=c.renamePortfolioItem,m=c.removePortfolioItem,g=c.openPortfolioItem,v=c.downloadPortfolioItem,b=c.isNameDuplicated,y=c.setActivePortfolioItem,S=t.name,A=t.nameWithoutExtension,T=t.extension,P=t.id,j=C(Object(a.a)(),1)[0],N=Object(o.useRef)(),I=C(Object(o.useState)(!1),2),L=I[0],R=I[1],q=C(Object(o.useState)(A),2),M=q[0],D=q[1],z=Object(o.useCallback)((function(){n||(g(t),y(t.id))}),[n,t,g,y]),F=function(){return!M||A===M||b("".concat(M,".").concat(T),P)},B=function(){l(!1),h(P,"".concat(M,".").concat(T))},H=function(){n&&(l(!1),D(A)),d()};Object(o.useEffect)((function(){n&&(N.current.focus(),N.current.select()),R(!n)}),[n]);var U="".concat(x.a.BOOKMARK_OUTLINE_FLYOUT,"-").concat(P),G=Object(i.e)((function(e){return u.a.getFlyout(e,U)})),W={moreOptionsDataElement:"portfolio-item-more-button-".concat(P),flyoutToggleElement:U},V={shouldHideDeleteButton:!1,currentFlyout:G,flyoutSelector:U,type:"portfolio",handleOnClick:function(e){switch(e){case w.b.MOVE_UP:case w.b.MOVE_DOWN:s(P,e);break;case w.b.OPENFILE:Object(k.g)(T)&&g(t);break;case w.b.RENAME:l(!0);break;case w.b.DOWNLOAD:v(t);break;case w.b.DELETE:m(P)}}};return r.a.createElement("div",{className:"bookmark-outline-single-container"},L&&r.a.createElement(O.a,{iconGlyph:"icon-header-page-manipulation-page-layout-single-page-line",labelHeader:S,enableMoreOptionsContextMenuFlyout:!0,onDoubleClick:z,contextMenuMoreButtonOptions:W,contentMenuFlyoutOptions:V}),n&&r.a.createElement("div",{className:_()({"bookmark-outline-label-row":!0,editing:n})},r.a.createElement("label",{className:"portfolio-input-label",htmlFor:P},j("portfolio.portfolioDocumentTitle")),r.a.createElement(E.a,{id:P,type:"text",name:"outline",ref:N,wrapperClassName:"portfolio-input",value:M,onKeyDown:function(e){"Enter"===e.key&&(e.stopPropagation(),n&&!F()&&B()),"Escape"===e.key&&H()},onChange:function(e){return D(e.target.value)},fillWidth:!0,messageText:b("".concat(M,".").concat(T),P)?j("portfolio.fileNameAlreadyExists"):"",message:b("".concat(M,".").concat(T),P)?"warning":"default","aria-label":"".concat(j("action.rename")," ").concat(M,".").concat(T)}),r.a.createElement("div",{className:"bookmark-outline-editing-controls"},r.a.createElement(f.a,{className:"bookmark-outline-cancel-button",label:j("action.cancel"),onClick:H}),n&&r.a.createElement(f.a,{className:"bookmark-outline-save-button",label:j("action.save"),isSubmitType:!0,disabled:F(),onClick:B}))))};P.propTypes=T;var j=P;n(1689);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return I(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 I(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 I(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}var L={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},R=Object(o.forwardRef)((function(e,t){var n=e.portfolioItem,i=e.connectDragSource,a=e.connectDragPreview,l=e.connectDropTarget,s=e.isDragging,c=e.isDraggedUpwards,u=e.isDraggedDownwards,d=e.movePortfolio,f=Object(o.useRef)(null);i(f),a(Object(b.a)(),{captureDraggingState:!0}),l(f);var p=s?.5:1;Object(o.useImperativeHandle)(t,(function(){return{getNode:function(){return f.current}}}));var h=N(Object(o.useState)(!1),2),m=h[0],g=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:c?1:0}}),r.a.createElement(j,{movePortfolio:d,portfolioItem:n,isPortfolioRenaming:m,setPortfolioRenaming:g}),r.a.createElement("div",{className:"outline-drag-line",style:{opacity:u?1:0}}))}));R.propTypes=L,R.displayName="PortfolioItem";var q=Object(g.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 s=l.getBoundingClientRect(),c=s.height/2+s.top,u=t.getClientOffset().y;switch(!0){case u>c:o.dropLocation=y.b.BELOW_TARGET,l.classList.remove("isNesting");break;case u<c: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,s=e.movePortfolioBeforeTarget,c=e.movePortfolioAfterTarget;if(i){switch(o.dropLocation){case y.b.ON_TARGET_HORIZONTAL_MIDPOINT:l(r,a);break;case y.b.ABOVE_TARGET:s(r.id,a.id);break;case y.b.BELOW_TARGET:c(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(v.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()}}))(R));q.propTypes=L;var M=q,D=n(1801),z={position:"fixed",pointerEvents:"none",zIndex:99999,left:0,top:0,width:"100%",height:"100%"},F=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}},B=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:F(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(75),U=n(38),G=n(135),W=n(1);n(1691);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 K(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 Y(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/facebook/regenerator/blob/main/LICENSE */$=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new S(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&n.call(v,i)&&(m=v);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==V(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return C()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new w(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Z(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)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=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)?ee(e,t):void 0}}function ee(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}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)(),g=Q(Object(a.a)(),1)[0],v=Q(Object(o.useState)(null),2),b=v[0],E=v[1],O=Q(Object(o.useState)(!1),2),S=O[0],_=O[1],C=Object(o.useRef)(null),A=function(){var e;null==C||null===(e=C.current)||void 0===e||e.click()},T=function(){var e=X($().mark((function e(t){var n,o,r,i,a,l,s,c;return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(1!==(n=t.target.files).length){e.next=21;break}if(o=n[0],!h.some((function(e){return e.name===o.name}))){e.next=12;break}r=g("portfolio.fileAlreadyExistsMessage",{fileName:o.name}),i=g("portfolio.fileAlreadyExists"),a=g("portfolio.reselect"),l={message:r,title:i,confirmBtnText:a,onConfirm:function(){return A()}},m(d.a.showWarningMessage(l)),e.next=21;break;case 12:if(!(s=W.a.getDocument())){e.next=21;break}return e.next=16,s.getPDFDoc();case 16:if(!(c=e.sent)){e.next=21;break}return e.next=20,Object(k.b)(c,o);case 20:N();case 21:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=X($().mark((function e(t,n){return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.h)(t,n);case 2:N();case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),N=function(){var e=X($().mark((function e(){return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=m,e.t1=d.a,e.next=4,Object(k.f)();case 4:e.t2=e.sent,e.t3=e.t1.setPortfolio.call(e.t1,e.t2),(0,e.t0)(e.t3),_(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=X($().mark((function e(t){return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(d.a.openElement(x.a.LOADING_MODAL)),e.next=3,Object(k.e)(t);case 3:m(d.a.closeElement(x.a.LOADING_MODAL));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),L=function(e,t){console.log(e.name,"Inward",t.name)},R=function(){var e=X($().mark((function e(t,n,o,r){var i,a,l,s,c,u,d,f,p;return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=Y(t),a=i.findIndex((function(e){return e.id===n})),l=i.findIndex((function(e){return e.id===o})),s=l,r===y.b.ABOVE_TARGET&&a<l&&(s=l-1),r===y.b.BELOW_TARGET&&a>l&&(s=l+1),i.splice(s,0,i.splice(a,1)[0]),c=K(i.entries()),e.prev=8,c.s();case 10:if((u=c.n()).done){e.next=17;break}if(d=Q(u.value,2),f=d[0],(p=d[1]).order===f){e.next=15;break}return e.next=15,Object(k.i)(p.id,f);case 15:e.next=10;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(8),c.e(e.t0);case 22:return e.prev=22,c.f(),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[8,19,22,25]])})));return function(t,n,o,r){return e.apply(this,arguments)}}(),q=function(){var e=X($().mark((function e(t,n){var o,r,i,a,l,s,c,u;return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.f)();case 2:if(o=e.sent,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.next=7;break}return e.abrupt("return");case 7:i=n===w.b.MOVE_UP?r-1:r+1,o.splice(i,0,o.splice(r,1)[0]),a=K(o.entries()),e.prev=10,a.s();case 12:if((l=a.n()).done){e.next=19;break}if(s=Q(l.value,2),c=s[0],(u=s[1]).order===c){e.next=17;break}return e.next=17,Object(k.i)(u.id,c);case 17:e.next=12;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(10),a.e(e.t0);case 24:return e.prev=24,a.f(),e.finish(24);case 27:return e.next=29,N();case 29:case"end":return e.stop()}}),e,null,[[10,21,24,27]])})));return function(t,n){return e.apply(this,arguments)}}(),D=Object(o.useCallback)(function(){var e=X($().mark((function e(t,n){return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R(h,t,n,y.b.ABOVE_TARGET);case 2:N();case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[h]),z=Object(o.useCallback)(function(){var e=X($().mark((function e(t,n){return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R(h,t,n,y.b.BELOW_TARGET);case 2:N();case 3:case"end":return e.stop()}}),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"},g("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:g("portfolio.addFile"),disabled:S,onClick:A}),r.a.createElement("input",{ref:C,style:{display:"none"},type:"file",onChange:function(e){T(e),e.target.value=null}}))),r.a.createElement(p.Provider,{value:{activePortfolioItem:b,setActivePortfolioItem:E,isPortfolioItemActive:function(e){return(null==e?void 0:e.id)===b},isAddingNewFolder:S,setAddingNewFolder:_,addNewFolder:function(e){e||(e=g("message.untitled")),N()},renamePortfolioItem:P,removePortfolioItem:function(e){var t,n=h.find((function(t){return t.id===e})),o={message:g("portfolio.deletePortfolio",{fileName:n.name}),title:g("action.delete"),confirmBtnText:g("action.delete"),onConfirm:(t=X($().mark((function t(){return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(k.d)(e);case 2:N();case 3:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})};m(d.a.showWarningMessage(o))},openPortfolioItem:function(e){Object(k.g)(e.extension)&&(m(Object(G.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?s.a:c.a},r.a.createElement(B,null),r.a.createElement("div",{className:"portfolio-panel-list"},h.map((function(e){return r.a.createElement(M,{key:e.id,portfolioItem:e,movePortfolioInward:L,movePortfolioBeforeTarget:D,movePortfolioAfterTarget:z,movePortfolio:q})})),S&&r.a.createElement(H.a,{className:"bookmark-outline-single-container editing"},r.a.createElement(j,{name:"",id:"0",isFolder:!0,isAdding:!0}))))))};t.default=te},1705:function(e,t,n){"use strict";n.r(t);n(41),n(32),n(116),n(23),n(8),n(24),n(46),n(52),n(29),n(25),n(36),n(100),n(111),n(84),n(19),n(12),n(13),n(14),n(10),n(9),n(11),n(16),n(15),n(20),n(18),n(27),n(28),n(22),n(47),n(49),n(48);var o=n(0),r=n.n(o),i=n(6),a=n(347),l=(n(154),n(90),n(4)),s=n(17),c=n.n(s),u=n(1),d=n(3),f=n.n(d),p=n(42),h=n(1536),m=n(75),g=n(1529),v=n(5),b=n(1538);n(1523);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(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}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},E=function(e){var t=e.text,n=e.label,s=e.defaultLabel,d=e.pageIndex,f=e.isAdding,w=e.isMultiSelectionMode,x=e.setSelected,E=e.onSave,k=e.onRemove,O=e.onCancel,S=e.panelSelector,_=y(Object(a.a)(),1)[0],C=y(Object(o.useState)(!1),2),A=C[0],T=C[1],P=y(Object(o.useState)(!1),2),j=P[0],N=P[1],I=y(Object(o.useState)(t),2),L=I[0],R=I[1],q=y(Object(o.useState)(void 0),2),M=q[0],D=q[1],z=Object(o.useRef)(),F=function(){return!L||t===L},B=function(){T(!1),E(""===L.trim()?_("message.untitled"):L)},H=function(){T(!1),A&&R(t),f&&O()};Object(o.useEffect)((function(){L!==t&&R(t)}),[t]),Object(o.useEffect)((function(){(f||A)&&(z.current.focus(),z.current.select()),N(!f&&!A)}),[A]);var U="".concat(v.a.BOOKMARK_FLYOUT,"-").concat(d),G=Object(i.e)((function(e){return l.a.getFlyout(e,U)})),W="bookmark-more-button-".concat(S,"-").concat(d),V={labelHeader:s,description:t,enableMoreOptionsContextMenuFlyout:!0,contentMenuFlyoutOptions:{shouldHideDeleteButton:!1,currentFlyout:G,flyoutSelector:U,type:"bookmark",handleOnClick:function(e){switch(e){case g.b.RENAME:T(!0);break;case g.b.DELETE:k(d)}}},contextMenuMoreButtonOptions:{flyoutToggleElement:U,moreOptionsDataElement:W},onClick:function(e){j&&1===e.detail&&D(setTimeout((function(){!function(e){u.a.setCurrentPage(e+1)}(d)}),300))},onDoubleClick:function(){j&&T(!0)},checkboxOptions:{id:"bookmark-checkbox-".concat(d+1),onChange:function(e){x(d,e.target.checked)},ariaLabel:"".concat(_("action.select")," ").concat(n),disabled:!w}};return r.a.createElement(r.a.Fragment,null,j&&r.a.createElement(b.a,V),(f||A)&&r.a.createElement(m.a,{className:c()({"bookmark-outline-single-container":!0,editing:f||A,default:j}),onDoubleClick:function(){j&&clearTimeout(M)}},r.a.createElement("div",{className:"bookmark-outline-label-row"},r.a.createElement("div",{className:"bookmark-outline-label"},f||A?n:s),r.a.createElement("input",{type:"text",name:"bookmark",ref:z,className:"bookmark-outline-input bookmark-text-input","aria-label":_("action.name"),value:L,onKeyDown:function(e){"Enter"===e.key&&(e.stopPropagation(),(f||A&&!F())&&B()),"Escape"===e.key&&H()},onChange:function(e){return R(e.target.value)}}),r.a.createElement("div",{className:"bookmark-outline-editing-controls"},r.a.createElement(h.a,{label:_("action.cancel"),onClick:H,ariaLabel:"".concat(_("action.cancel")," ").concat(_("component.bookmarkPanel"))}),f&&r.a.createElement(p.a,{className:"bookmark-outline-save-button",label:_("action.add"),isSubmitType:!0,onClick:B,ariaLabel:"".concat(_("action.add")," ").concat(_("component.bookmarkPanel"))}),A&&r.a.createElement(p.a,{className:"bookmark-outline-save-button",label:_("action.save"),isSubmitType:!0,disabled:F(),onClick:B,ariaLabel:"".concat(_("action.save")," ").concat(_("component.bookmarkPanel"))})))))};E.propTypes=x;var k=E,O=n(155),S=n(2);n(1659);function _(e){return(_="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){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 T(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){P(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 P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==_(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)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=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)?I(e,t):void 0}}function I(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}var L=function(e){var t,n,s=e.panelSelector,d=j(Object(i.e)((function(e){return[l.a.isElementDisabled(e,v.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),f=d[0],g=d[1],b=d[2],y=d[3],w=d[4],x=d[5],E=j(Object(o.useState)(!1),2),_=E[0],A=E[1],N=j(Object(o.useState)(!1),2),I=N[0],L=N[1],R=j(Object(o.useState)([]),2),q=R[0],M=R[1],D=x.customizableUI,z=j(Object(a.a)(),1)[0],F=Object(i.d)();Object(o.useEffect)((function(){w&&!f?u.a.setBookmarkIconShortcutVisibility(!0):u.a.setBookmarkIconShortcutVisibility(!1)}),[f,w]);var B=Object.keys(g).map((function(e){return parseInt(e,10)}));Object(o.useEffect)((function(){q.forEach((function(e){B.includes(e)||M(q.filter((function(t){return t!==e})))})),0===B.length&&L(!1)}),[g]);var H=function(e){var t=z("warning.deleteBookmark.title"),n={message:z("warning.deleteBookmark.message"),title:t,onConfirm:function(){e.forEach((function(e){return u.a.removeUserBookmark(Number(e))})),M([])},confirmBtnText:z("action.delete")};F(S.a.showWarningMessage(n))};return f?null:r.a.createElement("div",{className:c()((t={Panel:!0,BookmarksPanel:!0,"bookmark-outline-panel":!0},P(t,s,!0),P(t,"modular-ui-panel",D),t)),"data-element":v.a.BOOKMARK_PANEL},r.a.createElement("div",{className:"bookmark-outline-panel-header"},r.a.createElement("div",{className:"header-title"},z("component.bookmarksPanel")),!I&&r.a.createElement(h.a,{dataElement:v.a.BOOKMARK_MULTI_SELECT,label:z("action.edit"),disabled:_||0===B.length,onClick:function(){return L(!0)},ariaLabel:"".concat(z("action.edit")," ").concat(z("component.bookmarksPanel"))}),I&&r.a.createElement(h.a,{dataElement:v.a.BOOKMARK_MULTI_SELECT,label:z("option.bookmarkOutlineControls.done"),disabled:_,onClick:function(){L(!1),M([])},ariaLabel:"".concat(z("option.bookmarkOutlineControls.done")," ").concat(z("action.edit"))})),r.a.createElement(O.a,{dataElement:v.a.BOOKMARK_SHORTCUT_OPTION,type:"checkbox",isSwitch:!0,id:"bookmark-view-option",className:"bookmark-switch",label:z("message.viewBookmark"),checked:w,onChange:function(e){return F(S.a.setBookmarkIconShortcutVisibility(e.target.checked))}}),!_&&0===B.length&&r.a.createElement("div",{className:"msg msg-no-bookmark-outline"},z("message.noBookmarks")),r.a.createElement("div",{className:"bookmark-outline-row"},_&&r.a.createElement(k,{isAdding:!0,label:"".concat(z("component.bookmarkPage")," ").concat(y[b]," - ").concat(z("component.bookmarkTitle")),text:null!==(n=g[b])&&void 0!==n?n:"",pageIndex:b,onSave:function(e){u.a.addUserBookmark(b,e),A(!1)},onCancel:function(){return A(!1)},panelSelector:s}),B.map((function(e){return r.a.createElement(k,{key:e,panelSelector:s,isMultiSelectionMode:I,label:"".concat(z("component.bookmarkPage")," ").concat(y[e]," - ").concat(z("component.bookmarkTitle")),defaultLabel:"".concat(z("component.bookmarkPage")," ").concat(y[e]),text:g[e],pageIndex:e,onSave:function(t){var n=T(T({},u.a.getUserBookmarks()),{},P({},e,t));u.a.setUserBookmarks(n)},onRemove:function(e){return H([e])},setSelected:function(e,t){e=e.toString(),q.find((function(t){return t===e}))?t||M(q.filter((function(t){return t!==e}))):t&&M([].concat(C(q),[e]))}})}))),r.a.createElement(m.a,{className:"bookmark-outline-footer",dataElement:v.a.BOOKMARK_ADD_NEW_BUTTON_CONTAINER},I?r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-menu-add",disabled:q.length>0||!!g[b]||_,onClick:function(){return A(!0)},ariaLabel:"".concat(z("action.add")," ").concat(z("component.bookmarkPanel"))}),r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-delete-line",disabled:0===q.length,onClick:function(){return H(q)},ariaLabel:"".concat(z("action.delete")," ").concat(z("component.bookmarkPanel"))})):r.a.createElement(h.a,{img:"icon-menu-add",dataElement:v.a.BOOKMARK_ADD_NEW_BUTTON,label:"".concat(z("action.add")," ").concat(z("component.bookmarkPanel")),disabled:_||!!g[b],onClick:function(){return A(!0)},ariaLabel:"".concat(z("action.add")," ").concat(z("component.bookmarkPanel"))})))};t.default=L},1706:function(e,t,n){"use strict";n.r(t);n(101),n(8),n(97),n(46),n(16),n(60),n(130),n(36),n(84),n(29),n(19),n(12),n(13),n(14),n(10),n(9),n(11),n(15),n(20),n(18),n(54),n(22),n(61),n(62),n(63),n(64),n(37),n(39),n(23),n(24),n(40);var o=n(0),r=n.n(o),i=n(6),a=n(347),l=n(1509),s=n(38),c=n(444),u=n(1590),d=n(1694),f=n(1556),p=n(42),h=n(1536),m=n(1592),g=n(75),v=n(1),b=n(447),y=n(93),w=n(5),x=n(73),E=n(57),k=n(301),O=n(2),S=n(4),_=(n(1523),n(1657),n(1801)),C=n(1530),A={position:"fixed",pointerEvents:"none",zIndex:99999,left:0,top:0,width:"100%",height:"100%"},T=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}},P=function(){var e=Object(_.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:T(i,a)},function(){if(!n)return null;var e=n.dragOutline;switch(t){case C.c.OUTLINE:return r.a.createElement(r.a.Fragment,null,e.getName());default:return null}}())):null},j=n(17),N=n.n(j),I=n(1584);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 R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||F(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 q(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */q=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new S(r||[]);return o(a,"_invoke",{value:x(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&n.call(v,i)&&(m=v);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==L(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function x(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return C()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new w(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function M(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function D(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){M(i,o,r,a,l,"next",e)}function l(e){M(i,o,r,a,l,"throw",e)}a(void 0)}))}}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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||F(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 F(e,t){if(e){if("string"==typeof e)return B(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)?B(e,t):void 0}}function B(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}var H=function(e){var t=e.isTest,n=void 0!==t&&t,_=z(Object(i.e)((function(e){return[S.a.isElementDisabled(e,w.a.OUTLINE_PANEL),S.a.getOutlines(e),S.a.getOutlineEditingEnabled(e),S.a.shouldAutoExpandOutlines(e),S.a.getCurrentPage(e),S.a.getPageLabels(e),S.a.getFeatureFlags(e)]}),i.c),7),C=_[0],A=_[1],T=_[2],j=_[3],L=_[4],M=_[5],F=_[6],B="Full Page",H="Area Selection",U={x:0,y:0},G=z(Object(o.useState)(B),2),W=G[0],V=G[1],K=z(Object(o.useState)(U),2),Y=K[0],$=K[1],Z=z(Object(o.useState)(L),2),X=Z[0],Q=Z[1],J=z(Object(o.useState)(!1),2),ee=J[0],te=J[1],ne=z(Object(o.useState)(null),2),oe=ne[0],re=ne[1],ie=z(Object(o.useState)(!1),2),ae=ie[0],le=ie[1],se=z(Object(o.useState)({}),2),ce=se[0],ue=se[1],de=z(Object(o.useState)(!1),2),fe=de[0],pe=de[1],he=z(Object(o.useState)(!1),2),me=he[0],ge=he[1],ve=z(Object(o.useState)([]),2),be=ve[0],ye=ve[1],we=F.customizableUI,xe=z(Object(a.a)(),1)[0],Ee=Object(i.d)(),ke=Object(o.useRef)(null),Oe="OutlineDestinationCreateTool",Se=v.a.getTool(Oe),_e=Object(o.useRef)();Object(o.useLayoutEffect)((function(){le(!1),null!==ke.current&&(re(ke.current),ke.current=null),0===A.length&&ge(!1)}),[A]),Object(o.useEffect)((function(){var e=function(){return v.a.isFullPDFEnabled()&&Object(k.a)()!==E.a.OFFICE&&T};te(e());var t=function(){te(e())};return v.a.addEventListener("documentLoaded",t),function(){return v.a.removeEventListener("documentLoaded",t)}}),[T]),Object(o.useEffect)((function(){var e=Object.values(ce).some((function(e){return e}));pe(e)}),[ce,A]),Object(o.useEffect)((function(){var e=function(e){V(e.IsText?e.getCustomData("trn-annot-preview"):H),$({x:e.X,y:e.Y}),Q(e.PageNumber)},t=function(){v.a.getOutlines((function(e){Ee(O.a.setOutlines(e))}))},n=function(){re(null)};return v.a.addEventListener("outlineSetDestination",e),window.addEventListener("outlineBookmarksChanged",t),v.a.addEventListener("documentLoaded",n),function(){v.a.removeEventListener("outlineSetDestination",e),window.removeEventListener("outlineBookmarksChanged",t),v.a.removeEventListener("documentLoaded",n)}}),[]),Object(o.useEffect)((function(){var e=function(e){e.target.classList.contains("bookmark-outline-row")&&(re(null),ye([]))};return _e.current&&_e.current.addEventListener("click",e),function(){_e.current&&_e.current.removeEventListener("click",e)}}),[]);var Ce=function(e,t){var n=t.x,o=t.y;return v.a.getDocumentViewer().getDocument().getViewerCoordinates(e,n,o)},Ae=function(){var e=D(q().mark((function e(t){var n,o,r,i,a,l,s;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Ce(X,Y),o=n.x,r=n.y,i=t,[B,H].includes(W)||t?t||(i=xe("message.untitled")):i=W.slice(0,40),a=v.a.getDocumentViewer().getDocument(),(l=a.getPageRotation(X)/90)!==window.Core.PageRotation.E_90&&l!==window.Core.PageRotation.E_270||(s=o,o=r,r=s),0!==A.length){e.next=11;break}return e.next=9,b.a.addRootOutline(i,X,o,r,0);case 9:e.next=13;break;case 11:return e.next=13,b.a.addNewOutline(i,oe,X,o,r,0);case 13:Te();case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Te=function(){Object(y.e)(),v.a.getOutlines((function(e){Ee(O.a.setOutlines(e))})),je(),ue({})},Pe=function(e){return b.a.getPath(e)},je=function(){v.a.setToolMode(x.a),V(B),$(U),Q(L),Se.clearOutlineDestination()},Ne=function(){var e=D(q().mark((function e(t){var n,o,r,i,a,l;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Ce(X,Y),o=n.x,r=n.y,i=v.a.getDocumentViewer().getDocument(),(a=i.getPageRotation(X)/90)!==window.Core.PageRotation.E_90&&a!==window.Core.PageRotation.E_270||(l=o,o=r,r=l),e.next=6,b.a.setOutlineDestination(t,X,o,r,0);case 6:ke.current=t,Te();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();Object(o.useEffect)((function(){W===B&&Q(L)}),[W,L]),Object(o.useEffect)((function(){ae?v.a.setToolMode(Oe):je()}),[ae]);var Ie=function(e,t,n){var o=Pe(e),r=Pe(t);ye([]),n.call(b.a,o,r).then((function(e){Te(),ke.current=e})),v.a.goToOutline(e)},Le=function(e,t){Ie(e,t,b.a.moveOutlineAfterTarget)},Re=function(e,t){Ie(e,t,b.a.moveOutlineBeforeTarget)},qe=function(e,t){Ie(e,t,b.a.moveOutlineInTarget)},Me=function(){var e=D(q().mark((function e(t,n){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.a.setOutlineName(t,n);case 2:Te();case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),De=function(){var e=D(q().mark((function e(t){var n;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.sort().reverse(),n={message:xe("warning.deleteOutline.message"),title:xe("warning.deleteOutline.title"),confirmBtnText:xe("action.delete"),onConfirm:function(){var e=D(q().mark((function e(){var n,o;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:if(!(n<t.length)){e.next=8;break}return o=t[n],e.next=5,b.a.deleteOutline(o);case 5:n++,e.next=1;break;case 8:Te(),re(null),ye([]);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},Ee(O.a.showWarningMessage(n));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return C?null:r.a.createElement("div",{className:N()("Panel OutlinesPanel bookmark-outline-panel",{"modular-ui-panel":we}),"data-element":w.a.OUTLINE_PANEL,ref:_e},r.a.createElement("div",{className:"bookmark-outline-panel-header"},r.a.createElement("h2",{className:"header-title"},xe("component.outlinesPanel")),ee&&(me?r.a.createElement(h.a,{className:"bookmark-outline-control-button",dataElement:w.a.OUTLINE_MULTI_SELECT,label:xe("option.bookmarkOutlineControls.done"),disabled:ae,onClick:function(){return ge(!1)},ariaLabel:"".concat(xe("option.bookmarkOutlineControls.done")," ").concat(xe("action.edit"))}):r.a.createElement(h.a,{className:"bookmark-outline-control-button",dataElement:w.a.OUTLINE_MULTI_SELECT,label:xe("option.bookmarkOutlineControls.edit"),disabled:ae||0===A.length,onClick:function(){ge(!0),ye([])},ariaLabel:"".concat(xe("action.edit")," ").concat(xe("component.outlinesPanel"))}))),r.a.createElement(f.a.Provider,{value:{currentDestPage:M[X-1],currentDestText:W,setActiveOutlinePath:re,activeOutlinePath:oe,isOutlineActive:function(e){return Pe(e)===oe},setAddingNewOutline:le,isAddingNewOutline:ae,setEditingOutlines:ue,editingOutlines:ce,selectedOutlines:be,isAnyOutlineRenaming:fe,isMultiSelectMode:me,shouldAutoExpandOutlines:j,isOutlineEditable:ee,addNewOutline:Ae,updateOutlines:Te,renameOutline:Me,updateOutlineDest:Ne,removeOutlines:De}},r.a.createElement(l.a,{backend:s.l?u.a:c.a},r.a.createElement(P,null),r.a.createElement("div",{className:"bookmark-outline-row"},!ae&&0===A.length&&r.a.createElement("div",{className:"msg msg-no-bookmark-outline"},xe("message.noOutlines")),r.a.createElement(I.a,{data:A,itemContent:function(e,t){return r.a.createElement(d.default,{key:b.a.getOutlineId(t),outline:t,setMultiSelected:function(e,t){be.find((function(t){return t===e}))?t||ye(be.filter((function(t){return t!==e}))):t&&ye([].concat(R(be),[e]))},moveOutlineInward:qe,moveOutlineBeforeTarget:Re,moveOutlineAfterTarget:Le})},initialItemCount:n?A.length:void 0}),ae&&null===oe&&r.a.createElement(g.a,{className:"bookmark-outline-single-container editing"},r.a.createElement(m.a,{isAdding:!0,text:"",onCancel:function(){return le(!1)}})))),ee&&r.a.createElement(g.a,{className:"bookmark-outline-footer",dataElement:w.a.OUTLINE_ADD_NEW_BUTTON_CONTAINER},me?r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-menu-add",ariaLabel:"".concat(xe("action.add")," ").concat(xe("component.outlinesPanel")),disabled:be.length>0||ae||fe,onClick:function(){return le(!0)}}),r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-delete-line",disabled:0===be.length||fe,onClick:function(){return De(be)}})):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:ae||fe,label:"".concat(xe("action.add")," ").concat(xe("component.outlinePanel")),onClick:function(){return le(!0)},ariaLabel:"".concat(xe("action.add")," ").concat(xe("component.outlinesPanel"))}))))},U=r.a.memo(H);t.default=U},1708:function(e,t,n){"use strict";n.r(t);n(18),n(177),n(36),n(200),n(90),n(41),n(8),n(54),n(1577),n(19),n(12),n(13),n(14),n(10),n(9),n(11),n(16),n(15),n(20),n(22),n(61),n(62),n(63),n(64),n(37),n(39),n(23),n(24),n(40),n(60);var o=n(0),r=n.n(o),i=n(347),a=n(276),l=n(1562),s=n(165),c=n(43),u=n(1),d=n(6),f=n(4),p=n(2),h=n(5),m=(n(1661),n(34));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(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new C(r||[]);return o(a,"_invoke",{value:k(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(A([])));y&&y!==t&&n.call(y,i)&&(m=y);var w=h.prototype=f.prototype=Object.create(m);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==g(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function k(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return T()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=O(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=u(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function O(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=h,o(w,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(E.prototype),s(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new E(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),s(w,l,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;_(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function b(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).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){b(i,o,r,a,l,"next",e)}function l(e){b(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return x(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 x(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 x(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}var E=function(e){return e.match(/[^\\\/]+$/g)[0]},k=function(e,t,n,o){var i=(e=E(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)))},O={embeddedFiles:[],fileAttachmentAnnotations:[]},S=function(e){var t=e.initialFiles,n=void 0===t?O:t,l=w(Object(i.a)(),1)[0],g=Object(d.d)(),b=w(Object(o.useState)(n),2),x=b[0],S=b[1],_=Object(d.e)(f.a.getIsMultiTab),C=Object(d.e)(f.a.getTabManager),A=w(Object(o.useState)(null),2),T=A[0],P=A[1];if(Object(o.useEffect)((function(){var e=function(){var e=y(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.b)();case 2:t=e.sent,S(t);case 4:case"end":return e.stop()}}),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(c.a,{className:"empty-icon",glyph:m.c[m.e.FILE_ATTACHMENT].icon}),r.a.createElement("div",{className:"empty-message"},l("message.noAttachments"))));var j=function(){var e=y(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_){e.next=5;break}g(p.a.openElement(h.a.LOADING_MODAL)),setTimeout(y(v().mark((function e(){var n,o,r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFileData();case 2:return n=e.sent,o=E(t.filename),e.next=6,C.addTab(n,{filename:o});case 6:return r=e.sent,g(p.a.closeElement(h.a.LOADING_MODAL)),g(p.a.closeElement(h.a.LEFT_PANEL)),e.next=11,C.setActiveTab(r);case 11:case"end":return e.stop()}}),e)}))),100),e.next=6;break;case 5:return e.abrupt("return",u.a.getAnnotationManager().trigger("annotationDoubleClicked",t));case 6:case"end":return e.stop()}}),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 k(E(e.filename),(function(){P("embeddedFile_".concat(t)),Object(a.a)(e.fileObject).then((function(t){Object(s.saveAs)(t,E(e.filename))})).finally((function(){P(null)}))}),"embeddedFile_".concat(t),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 k(E(e.filename),y(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u.a.setCurrentPage(e.PageNumber),u.a.selectAnnotation(e),t.next=4,j(e);case 4:case"end":return t.stop()}}),t)}))),"fileAttachmentAnnotation_".concat(t))}))))})))};t.default=S},1801:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n(16),n(8),n(15),n(20),n(9),n(18),n(12),n(13),n(14),n(10),n(11),n(19);var o=n(0),r=n(1535),i=n(1644);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 s(e){var t=Object(r.a)().getMonitor(),n=a(Object(i.a)(t,e),2),l=n[0],s=n[1];return Object(o.useEffect)((function(){return t.subscribeToOffsetChange(s)})),Object(o.useEffect)((function(){return t.subscribeToStateChange(s)})),l}},1811:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(77),r=n(2005),i=n(2003),a=n(2004),l=n(1521),s=n(1591);n(22),n(8),n(54),n(23),n(24),n(32),n(79),n(85);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,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)}}])&&c(t.prototype,n),o&&c(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 c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Object(l.a)("DropTarget","type, spec, collect[, options]",e,t,n,c);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)(c),'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(s.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:c})}}},1812:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(77),r=n(2005),i=n(2007),a=n(2006),l=n(1521),s=n(1591);n(22),n(23),n(8),n(24),n(32),n(79),n(85);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,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))}}])&&c(t.prototype,n),o&&c(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 c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Object(l.a)("DragSource","type, spec, collect[, options]",e,t,n,c);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)(c),'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(s.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:c})}}},1981:function(e,t,n){var o=n(30),r=n(1982);"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||{}},1982:function(e,t,n){(t=e.exports=n(31)(!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-right: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"}},1983:function(e,t,n){var o=n(30),r=n(1984);"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||{}},1984:function(e,t,n){(t=e.exports=n(31)(!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;left: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;top:0;left: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;top:0;left: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-right: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-right: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-right:5px;top: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-right:5px;top: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:0 8px 16px 16px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},2035:function(e,t,n){"use strict";n.r(t);n(41),n(19),n(12),n(13),n(8),n(14),n(10),n(9),n(11),n(16),n(15),n(20),n(18);var o=n(0),r=n.n(o),i=n(17),a=n.n(i),l=n(6),s=(n(36),n(27),n(28),n(25),n(22),n(40),n(44),n(39),n(86),n(37),n(3)),c=n.n(s),u=n(1506),d=n(42),f=n(1693),p=n(5),h=n(2),m=n(4);n(1981);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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function w(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=k(e);if(t){var r=k(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return x(this,n)}}function x(e,t){if(t&&("object"===g(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 k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}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"!==g(e)||null===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:String(t)}var _=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(a,e);var t,n,o,i=w(a);function a(){var e;v(this,a);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return O(E(e=i.call.apply(i,[this].concat(n))),"isActive",(function(t){return e.props.activePanel===t})),e}return t=a,(n=[{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,s=t.notesInLeftPanel,c=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}),s&&r.a.createElement(d.a,{isActive:this.isActive(p.a.NOTES_PANEL),dataElement:"notesPanelButton",img:"icon-header-chat-line",onClick:function(){c(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"}))})))}}])&&b(t.prototype,n),o&&b(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.a.Component);O(_,"propTypes",{isLeftPanelOpen:c.a.bool,showPortfolio:c.a.bool,activePanel:c.a.string.isRequired,disabledCustomPanelTabs:c.a.array.isRequired,customPanels:c.a.array.isRequired,isLeftPanelTabsDisabled:c.a.bool,setActiveLeftPanel:c.a.func.isRequired,t:c.a.func.isRequired});var C={setActiveLeftPanel:h.a.setActiveLeftPanel,openElement:h.a.openElement},A=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)}}),C)(Object(u.a)()(_)),T=n(1704),P=n(1702),j=n(1706),N=n(1705),I=n(465),L=n(1708),R=n(1640),q=n(176),M=n(216),D=n(43),z=n(1703),F=n(1),B=n(66),H=n(38);n(1983);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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return G(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 G(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 G(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}var W=function(){var e=Object(B.b)(),t=Object(B.c)(),n=U(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],s=n[2],c=n[3],u=n[4],d=n[5],f=n[6],g=n[7],v=n[8],b=n[9],y=n[10],w=n[11],x=n[12],E=n[13],k=n[14],O=n[15],S=n[16],_=n[17],C=Object(l.d)(),G=function(e){return e===f?"flex":"none"},W={};!y&&e||(W={width:"".concat(v,"px"),minWidth:"".concat(v,"px")});var V=!(!u||d),K=s&&"toolbarGroup-View"!==o,Y=!i&&!K,$={display:"none"};if(E.customizableUI){var Z=k+O;$.height="calc(100% - ".concat(Z,"px)")}return r.a.createElement("div",{className:a()({Panel:!0,LeftPanel:!0,closed:!V,"tools-header-open":K||c,"tools-header-and-header-hidden":Y,"thumbnail-panel-active":"thumbnailsPanel"===f,"outlines-panel-active":"outlinesPanel"===f,"multi-tab-active":w,"logo-bar-enabled":x,"office-editor":_}),onDrop:function(e){e.preventDefault()},onDragOver:function(e){e.preventDefault()},"data-element":p.a.LEFT_PANEL,style:$},r.a.createElement("div",{className:"left-panel-container",style:W},!y&&e&&r.a.createElement("div",{className:"close-container"},r.a.createElement("div",{className:"close-icon-container",onClick:function(){C(h.a.closeElements(["leftPanel"]))}},r.a.createElement(D.a,{glyph:"ic_close_black_24px",className:"close-icon"}))),_?r.a.createElement(z.default,{currentLeftPanelWidth:v}):r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"left-panel-header"},r.a.createElement(A,{showPortfolio:S.length>0})),f===p.a.PORTFOLIO_PANEL&&S.length>0&&r.a.createElement(T.default,null),"thumbnailsPanel"===f&&r.a.createElement(P.default,null),"outlinesPanel"===f&&r.a.createElement(j.default,null),"bookmarksPanel"===f&&r.a.createElement(N.default,null),"layersPanel"===f&&r.a.createElement(I.a,null),F.a.isFullPDFEnabled()&&"signaturePanel"===f&&r.a.createElement(R.default,null),"attachmentPanel"===f&&r.a.createElement(L.default,null),b&&"notesPanel"===f&&r.a.createElement(z.default,{currentLeftPanelWidth:v}),g.map((function(e,t){var n=e.panel;return r.a.createElement(q.a,{key:n.dataElement||t,className:"Panel ".concat(n.dataElement),display:G(n.dataElement),dataElement:n.dataElement,render:n.render})})))),(y||!t)&&r.a.createElement(M.a,{dataElement:"leftPanelResizeBar",minWidth:264,onResize:function(e){var t=window.innerWidth;H.e&&(t-=30),C(h.a.setLeftPanelWidth(Math.min(e,t)))}}))};t.default=W},592: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}))}}]);
|
|
11
11
|
//# sourceMappingURL=chunk.25.js.map
|