hypothesis 1.1424.0 → 1.1425.0

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/build/boot.js CHANGED
@@ -1 +1 @@
1
- !function(){"use strict";var s={"scripts/annotator.bundle.js":"scripts/annotator.bundle.js?2ae3b0","styles/annotator.css":"styles/annotator.css?51e5f8","styles/annotator.css.map":"styles/annotator.css.map?dcd4af","styles/highlights.css":"styles/highlights.css?6b4ebd","styles/highlights.css.map":"styles/highlights.css.map?241350","styles/katex.min.css":"styles/katex.min.css?e179ab","styles/katex.min.css.map":"styles/katex.min.css.map?cd8c0e","styles/pdfjs-overrides.css":"styles/pdfjs-overrides.css?c95edf","styles/pdfjs-overrides.css.map":"styles/pdfjs-overrides.css.map?1d8ac6","styles/sidebar.css.map":"styles/sidebar.css.map?a225a7","styles/ui-playground.css":"styles/ui-playground.css?1e03d3","styles/sidebar.css":"styles/sidebar.css?ef5ea8","styles/ui-playground.css.map":"styles/ui-playground.css.map?626499","scripts/sidebar.bundle.js":"scripts/sidebar.bundle.js?bffc1b","scripts/ui-playground.bundle.js":"scripts/ui-playground.bundle.js?75d664","scripts/annotator.bundle.js.map":"scripts/annotator.bundle.js.map?1393fe","scripts/ui-playground.bundle.js.map":"scripts/ui-playground.bundle.js.map?e54f16","scripts/sidebar.bundle.js.map":"scripts/sidebar.bundle.js.map?e1b14f"};function t(s){s.setAttribute("data-hypothesis-asset","")}function e(s,e){var n=s.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=e,t(n),s.head.appendChild(n)}function n(s,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.esModule,o=void 0===r||r,i=n.forceReload,a=void 0!==i&&i,l=s.createElement("script");o&&(l.type="module"),a&&(e+="#ts=".concat(Date.now())),l.src=e,l.async=!1,t(l),s.head.appendChild(l)}function r(s,e,n,r){var o=s.createElement("link");o.rel=e,o.href=r,o.type="application/annotator+".concat(n),t(o),s.head.appendChild(o)}function o(s,e,n){var r=s.createElement("link");r.rel="preload",r.as=e,r.href=n,"fetch"===e&&(r.crossOrigin="anonymous"),t(r),s.head.appendChild(r)}function i(s,t){return s.assetRoot+"build/"+s.manifest[t]}function a(s){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(-1===s.indexOf("{"))return s;var e=function(){var s,t,e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).currentScript;return e?(s=e.src,(t=s.match(/(https?):\/\/([^:/]+)/))?{protocol:t[1],hostname:t[2]}:null):null}(t);if(!e)throw new Error("Could not process URL template because script origin is unknown");return s=(s=s.replace("{current_host}",e.hostname)).replace("{current_scheme}",e.protocol)}if(function(){var s=[function(){return Object.fromEntries([])},function(){return new URL(document.location.href)},function(){return new Request("https://hypothes.is")},function(){return Element.prototype.attachShadow},function(){return CSS.supports("display: grid")},function(){return document.evaluate("/html/body",document,null,XPathResult.ANY_TYPE,null),!0}];try{return s.every((function(s){return s()}))}catch(s){return!1}}()){var l=function(s){for(var t={},e=s.querySelectorAll("script.js-hypothesis-config"),n=0;n<e.length;n++){var r=void 0;try{r=JSON.parse(e[n].textContent||"")}catch(s){console.warn("Could not parse settings from js-hypothesis-config tags",s),r={}}Object.assign(t,r)}return t}(document),p=a(l.assetRoot||"https://cdn.hypothes.is/hypothesis/1.1424.0/");if(document.querySelector("hypothesis-app")){!function(s,t){o(s,"fetch",t.apiUrl),o(s,"fetch",t.apiUrl+"links");for(var r=0,a=["scripts/sidebar.bundle.js"];r<a.length;r++)n(s,i(t,a[r]),{esModule:!0});for(var l=0,p=["styles/katex.min.css","styles/sidebar.css"];l<p.length;l++)e(s,i(t,p[l]))}(document,{assetRoot:p,manifest:s,apiUrl:l.apiUrl})}else{var c=function(){var s;return null===(s=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).chrome)||void 0===s||null===(s=s.runtime)||void 0===s?void 0:s.id}();if(c&&!function(s){return!!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector("script.js-hypothesis-config[data-extension-id=".concat(s,"]"))}(c))throw new Error("Could not start Hypothesis extension as configuration is missing");var u=l,d=a(u.notebookAppUrl||"https://hypothes.is/notebook"),h=a(u.profileAppUrl||"https://hypothes.is/user-profile"),y=a(u.sidebarAppUrl||"https://hypothes.is/app.html");!function(s,t){if(!s.querySelector('link[type="application/annotator+html"]')){r(s,"sidebar","html",t.sidebarAppUrl),r(s,"notebook","html",t.notebookAppUrl),r(s,"profile","html",t.profileAppUrl),o(s,"style",i(t,"styles/annotator.css")),r(s,"hypothesis-client","javascript",t.assetRoot+"build/boot.js");for(var a=0,l=["scripts/annotator.bundle.js"];a<l.length;a++)n(s,i(t,l[a]),{esModule:!1});var p=[];void 0!==window.PDFViewerApplication&&p.push("styles/pdfjs-overrides.css"),p.push("styles/highlights.css");for(var c=0,u=p;c<u.length;c++)e(s,i(t,u[c]))}}(document,{assetRoot:p,manifest:s,notebookAppUrl:d,profileAppUrl:h,sidebarAppUrl:y})}}else console.warn("The Hypothesis annotation tool is not supported in this browser. See https://web.hypothes.is/help/which-browsers-are-supported-by-hypothesis/.")}();
1
+ !function(){"use strict";var s={"scripts/annotator.bundle.js":"scripts/annotator.bundle.js?5dcf88","styles/annotator.css":"styles/annotator.css?51e5f8","styles/annotator.css.map":"styles/annotator.css.map?dcd4af","styles/highlights.css":"styles/highlights.css?6b4ebd","styles/highlights.css.map":"styles/highlights.css.map?241350","styles/katex.min.css":"styles/katex.min.css?e179ab","styles/katex.min.css.map":"styles/katex.min.css.map?cd8c0e","styles/pdfjs-overrides.css":"styles/pdfjs-overrides.css?c95edf","styles/pdfjs-overrides.css.map":"styles/pdfjs-overrides.css.map?1d8ac6","styles/sidebar.css":"styles/sidebar.css?ef5ea8","styles/sidebar.css.map":"styles/sidebar.css.map?a225a7","styles/ui-playground.css":"styles/ui-playground.css?1e03d3","styles/ui-playground.css.map":"styles/ui-playground.css.map?626499","scripts/annotator.bundle.js.map":"scripts/annotator.bundle.js.map?b8dd8f","scripts/ui-playground.bundle.js":"scripts/ui-playground.bundle.js?885080","scripts/sidebar.bundle.js":"scripts/sidebar.bundle.js?9602c6","scripts/sidebar.bundle.js.map":"scripts/sidebar.bundle.js.map?511d05","scripts/ui-playground.bundle.js.map":"scripts/ui-playground.bundle.js.map?476c34"};function t(s){s.setAttribute("data-hypothesis-asset","")}function e(s,e){var n=s.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=e,t(n),s.head.appendChild(n)}function n(s,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.esModule,o=void 0===r||r,i=n.forceReload,a=void 0!==i&&i,l=s.createElement("script");o&&(l.type="module"),a&&(e+="#ts=".concat(Date.now())),l.src=e,l.async=!1,t(l),s.head.appendChild(l)}function r(s,e,n,r){var o=s.createElement("link");o.rel=e,o.href=r,o.type="application/annotator+".concat(n),t(o),s.head.appendChild(o)}function o(s,e,n){var r=s.createElement("link");r.rel="preload",r.as=e,r.href=n,"fetch"===e&&(r.crossOrigin="anonymous"),t(r),s.head.appendChild(r)}function i(s,t){return s.assetRoot+"build/"+s.manifest[t]}function a(s){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(-1===s.indexOf("{"))return s;var e=function(){var s,t,e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).currentScript;return e?(s=e.src,(t=s.match(/(https?):\/\/([^:/]+)/))?{protocol:t[1],hostname:t[2]}:null):null}(t);if(!e)throw new Error("Could not process URL template because script origin is unknown");return s=(s=s.replace("{current_host}",e.hostname)).replace("{current_scheme}",e.protocol)}if(function(){var s=[function(){return Object.fromEntries([])},function(){return new URL(document.location.href)},function(){return new Request("https://hypothes.is")},function(){return Element.prototype.attachShadow},function(){return CSS.supports("display: grid")},function(){return document.evaluate("/html/body",document,null,XPathResult.ANY_TYPE,null),!0}];try{return s.every((function(s){return s()}))}catch(s){return!1}}()){var l=function(s){for(var t={},e=s.querySelectorAll("script.js-hypothesis-config"),n=0;n<e.length;n++){var r=void 0;try{r=JSON.parse(e[n].textContent||"")}catch(s){console.warn("Could not parse settings from js-hypothesis-config tags",s),r={}}Object.assign(t,r)}return t}(document),c=a(l.assetRoot||"https://cdn.hypothes.is/hypothesis/1.1425.0/");if(document.querySelector("hypothesis-app")){!function(s,t){o(s,"fetch",t.apiUrl),o(s,"fetch",t.apiUrl+"links");for(var r=0,a=["scripts/sidebar.bundle.js"];r<a.length;r++)n(s,i(t,a[r]),{esModule:!0});for(var l=0,c=["styles/katex.min.css","styles/sidebar.css"];l<c.length;l++)e(s,i(t,c[l]))}(document,{assetRoot:c,manifest:s,apiUrl:l.apiUrl})}else{var p=function(){var s;return null===(s=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).chrome)||void 0===s||null===(s=s.runtime)||void 0===s?void 0:s.id}();if(p&&!function(s){return!!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector("script.js-hypothesis-config[data-extension-id=".concat(s,"]"))}(p))throw new Error("Could not start Hypothesis extension as configuration is missing");var d=l,u=a(d.notebookAppUrl||"https://hypothes.is/notebook"),h=a(d.profileAppUrl||"https://hypothes.is/user-profile"),y=a(d.sidebarAppUrl||"https://hypothes.is/app.html");!function(s,t){if(!s.querySelector('link[type="application/annotator+html"]')){r(s,"sidebar","html",t.sidebarAppUrl),r(s,"notebook","html",t.notebookAppUrl),r(s,"profile","html",t.profileAppUrl),o(s,"style",i(t,"styles/annotator.css")),r(s,"hypothesis-client","javascript",t.assetRoot+"build/boot.js");for(var a=0,l=["scripts/annotator.bundle.js"];a<l.length;a++)n(s,i(t,l[a]),{esModule:!1});var c=[];void 0!==window.PDFViewerApplication&&c.push("styles/pdfjs-overrides.css"),c.push("styles/highlights.css");for(var p=0,d=c;p<d.length;p++)e(s,i(t,d[p]))}}(document,{assetRoot:c,manifest:s,notebookAppUrl:u,profileAppUrl:h,sidebarAppUrl:y})}}else console.warn("The Hypothesis annotation tool is not supported in this browser. See https://web.hypothes.is/help/which-browsers-are-supported-by-hypothesis/.")}();
@@ -1,5 +1,5 @@
1
1
  {
2
- "scripts/annotator.bundle.js": "scripts/annotator.bundle.js?2ae3b0",
2
+ "scripts/annotator.bundle.js": "scripts/annotator.bundle.js?5dcf88",
3
3
  "styles/annotator.css": "styles/annotator.css?51e5f8",
4
4
  "styles/annotator.css.map": "styles/annotator.css.map?dcd4af",
5
5
  "styles/highlights.css": "styles/highlights.css?6b4ebd",
@@ -8,13 +8,13 @@
8
8
  "styles/katex.min.css.map": "styles/katex.min.css.map?cd8c0e",
9
9
  "styles/pdfjs-overrides.css": "styles/pdfjs-overrides.css?c95edf",
10
10
  "styles/pdfjs-overrides.css.map": "styles/pdfjs-overrides.css.map?1d8ac6",
11
+ "styles/sidebar.css": "styles/sidebar.css?ef5ea8",
11
12
  "styles/sidebar.css.map": "styles/sidebar.css.map?a225a7",
12
13
  "styles/ui-playground.css": "styles/ui-playground.css?1e03d3",
13
- "styles/sidebar.css": "styles/sidebar.css?ef5ea8",
14
14
  "styles/ui-playground.css.map": "styles/ui-playground.css.map?626499",
15
- "scripts/sidebar.bundle.js": "scripts/sidebar.bundle.js?bffc1b",
16
- "scripts/ui-playground.bundle.js": "scripts/ui-playground.bundle.js?75d664",
17
- "scripts/annotator.bundle.js.map": "scripts/annotator.bundle.js.map?1393fe",
18
- "scripts/ui-playground.bundle.js.map": "scripts/ui-playground.bundle.js.map?e54f16",
19
- "scripts/sidebar.bundle.js.map": "scripts/sidebar.bundle.js.map?e1b14f"
15
+ "scripts/annotator.bundle.js.map": "scripts/annotator.bundle.js.map?b8dd8f",
16
+ "scripts/ui-playground.bundle.js": "scripts/ui-playground.bundle.js?885080",
17
+ "scripts/sidebar.bundle.js": "scripts/sidebar.bundle.js?9602c6",
18
+ "scripts/sidebar.bundle.js.map": "scripts/sidebar.bundle.js.map?511d05",
19
+ "scripts/ui-playground.bundle.js.map": "scripts/ui-playground.bundle.js.map?476c34"
20
20
  }
@@ -30,22 +30,22 @@ null!=o.componentDidCatch&&(o.componentDidCatch(t,i||{}),s=o.__d),s)return o.__E
30
30
  i.__c.setState({}))}],i.__c=Pt,!Pt.u)){var o=function(t,e,n){if(!i.__c.__H)return!0;var o=i.__c.__H.__.filter((function(t){return t.__c}));if(o.every((function(t){return!t.__N})))return!r||r.call(this,t,e,n);var s=!1;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(s=!0)}})),!(!s&&i.__c.props===t)&&(!r||r.call(this,t,e,n))};Pt.u=!0;var r=Pt.shouldComponentUpdate,s=Pt.componentWillUpdate;Pt.componentWillUpdate=function(t,e,n){if(this.__e){var i=r;r=void 0,o(t,e,n),r=i}s&&s.call(this,t,e,n)},Pt.shouldComponentUpdate=o}return i.__N||i.__}(ne,t)}function zt(t,e){var n=qt(kt++,3);!G.__s&&ee(n.__H,e)&&(n.__=t,n.i=e,Pt.__H.__h.push(n))}function $t(t,e){var n=qt(kt++,4);!G.__s&&ee(n.__H,e)&&(n.__=t,n.i=e,Pt.__h.push(n))}function jt(t){return Lt=5,Xt((function(){return{current:t}}),[])}function Xt(t,e){var n=qt(kt++,7);return ee(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function Yt(t,e){return Lt=8,Xt((function(){return t}),e)}function Gt(){var t=qt(kt++,11);if(!t.__){
31
31
  for(var e=Pt.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function Kt(){for(var t;t=It.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Jt),t.__H.__h.forEach(te),t.__H.__h=[]}catch(e){t.__H.__h=[],G.__e(e,t.__v)}}G.__b=function(t){Pt=null,Dt&&Dt(t)},G.__r=function(t){Ft&&Ft(t),kt=0;var e=(Pt=t.__c).__H;e&&(Ot===Pt?(e.__h=[],Pt.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=Bt,t.__N=t.i=void 0}))):(e.__h.forEach(Jt),e.__h.forEach(te),e.__h=[],kt=0)),Ot=Pt},G.diffed=function(t){Ht&&Ht(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==It.push(e)&&Mt===G.requestAnimationFrame||((Mt=G.requestAnimationFrame)||Qt)(Kt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==Bt&&(t.__=t.__V),t.i=void 0,t.__V=Bt}))),Ot=Pt=null},G.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Jt),t.__h=t.__h.filter((function(t){return!t.__||te(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],G.__e(n,t.__v)}})),Vt&&Vt(t,e)},G.unmount=function(t){
32
32
  Ut&&Ut(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{Jt(t)}catch(t){e=t}})),n.__H=void 0,e&&G.__e(e,n.__v))};var Zt="function"==typeof requestAnimationFrame;function Qt(t){var e,n=function(){clearTimeout(i),Zt&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);Zt&&(e=requestAnimationFrame(n))}function Jt(t){var e=Pt,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),Pt=e}function te(t){var e=Pt;t.__c=t.__(),Pt=e}function ee(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function ne(t,e){return"function"==typeof e?e(t):e}const ie={alt:1,ctrl:2,meta:4,shift:8};function oe(t,e){if(!(t instanceof KeyboardEvent))return!1;const n=e.split("+").map((t=>t.toLowerCase()));let i=0,o=null;for(const t of n){const e=ie[t];if(e)i|=e;else{if(null!==o)throw new Error("Multiple non-modifier keys specified");o=t}}if(!o)throw new Error(`Invalid shortcut: ${e}`)
33
- ;return((t.ctrlKey?ie.ctrl:0)|(t.metaKey?ie.meta:0)|(t.altKey?ie.alt:0)|(t.shiftKey?ie.shift:0))===i&&t.key.toLowerCase()===o}function re(t,e,{rootElement:n}={}){zt((()=>{if(t)return function(t,e,{rootElement:n=(t=>null!==(t=document.documentElement)&&void 0!==t?t:void 0)()}={}){const i=n=>{oe(n,t)&&e(n)};return n?(n.addEventListener("keydown",i),()=>n.removeEventListener("keydown",i)):()=>{}}(t,e,{rootElement:n})}),[t,e,n])}const se=(t=window)=>t.matchMedia("(pointer: coarse)").matches;function ae(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class le{constructor(){ae(this,"_listeners",void 0),this._listeners=new Map
34
- }add(t,e,n,i){t.addEventListener(e,n,i);const o=Symbol();return this._listeners.set(o,{eventTarget:t,eventType:e,listener:n,options:i}),o}remove(t){const e=this._listeners.get(t);if(e){const{eventTarget:n,eventType:i,listener:o,options:r}=e;n.removeEventListener(i,o,r),this._listeners.delete(t)}}removeAll(){this._listeners.forEach((({eventTarget:t,eventType:e,listener:n,options:i})=>{t.removeEventListener(e,n,i)})),this._listeners.clear()}}function ce(t){t.focus()}function he(t,{autofocus:e=!1,loop:n=!0,horizontal:i=!0,vertical:o=!0,selector:r="a,button",containerVisible:s=!0,focusElement:a=ce}={}){const l=jt(null),c=function(t){const e=jt({callback:t,call:(...t)=>e.current.callback(...t)});return e.current.callback=t,e.current.call}(a);zt((()=>{if(!s)return()=>{};if(!t.current)throw new Error("Container ref not set");const a=t.current,h=()=>{const t=Array.from(a.querySelectorAll(r)).filter((t=>null!==t.offsetParent&&!function(t){return"boolean"==typeof t.disabled&&t.disabled}(t)))
35
- ;return document.activeElement===a&&t.unshift(a),t},u=(t=h(),e=-1,n=!1,i)=>{e<0&&(e=t.findIndex((t=>0===t.tabIndex)))<0&&(e=0);for(const[o,r]of t.entries())r.tabIndex=o===e?0:-1,o===e&&n&&(l.current=r,c(r,i))},d=h(),f=l.current?d.indexOf(l.current):0;u(d,f,e);const p=new le;p.add(a,"focusin",(t=>{if(t.target===a&&l.current)return void c(l.current);const n=h(),i=n.indexOf(t.target);i>=0&&u(n,i,e)})),p.add(a,"keydown",(t=>{const e=h();let r=e.findIndex((t=>0===t.tabIndex)),s=!1;i&&"ArrowLeft"===t.key||o&&"ArrowUp"===t.key?(0===r?r=n?e.length-1:r:--r,s=!0):i&&"ArrowRight"===t.key||o&&"ArrowDown"===t.key?(r===e.length-1?r=n?0:r:++r,s=!0):"Home"===t.key?(r=0,s=!0):"End"===t.key&&(r=e.length-1,s=!0),s&&(u(e,r,!0,t),t.preventDefault(),t.stopPropagation())}));const m=new MutationObserver((()=>{u()}));return m.observe(a,{subtree:!0,attributes:!0,attributeFilter:["disabled"],childList:!0}),()=>{p.removeAll(),m.disconnect()}}),[e,t,c,i,n,r,o,s])}function ue(t,e,n){return(e=function(t){var e=function(t,e){
36
- if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class de{constructor(t){ue(this,"_target",void 0),ue(this,"_value",void 0),this._target=t,this._value=null}get current(){return this._value}set current(t){this._value=t,this._updateTarget()}get target(){return this._target}set target(t){t!==this._target&&(this._target=t,this._updateTarget())}_updateTarget(){const t=this._value;"function"==typeof this._target?this._target(t):this._target&&(this._target.current=t)}}var fe,pe={exports:{}};fe=pe,function(){var t={}.hasOwnProperty;function e(){for(var t="",e=0;e<arguments.length;e++){var o=arguments[e];o&&(t=i(t,n(o)))}return t}function n(n){
33
+ ;return((t.ctrlKey?ie.ctrl:0)|(t.metaKey?ie.meta:0)|(t.altKey?ie.alt:0)|(t.shiftKey?ie.shift:0))===i&&t.key.toLowerCase()===o}function re(t,e,{rootElement:n}={}){zt((()=>{if(t)return function(t,e,{rootElement:n=(t=>null!==(t=document.documentElement)&&void 0!==t?t:void 0)()}={}){const i=n=>{oe(n,t)&&e(n)};return n?(n.addEventListener("keydown",i),()=>n.removeEventListener("keydown",i)):()=>{}}(t,e,{rootElement:n})}),[t,e,n])}const se=(t=window)=>t.matchMedia("(pointer: coarse)").matches;function ae(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class le{constructor(){ae(this,"_listeners",void 0),this._listeners=new Map}
34
+ add(t,e,n,i){t.addEventListener(e,n,i);const o=Symbol();return this._listeners.set(o,{eventTarget:t,eventType:e,listener:n,options:i}),o}remove(t){const e=this._listeners.get(t);if(e){const{eventTarget:n,eventType:i,listener:o,options:r}=e;n.removeEventListener(i,o,r),this._listeners.delete(t)}}removeAll(){this._listeners.forEach((({eventTarget:t,eventType:e,listener:n,options:i})=>{t.removeEventListener(e,n,i)})),this._listeners.clear()}}function ce(t){t.focus()}function he(t,{autofocus:e=!1,loop:n=!0,horizontal:i=!0,vertical:o=!0,selector:r="a,button",containerVisible:s=!0,focusElement:a=ce}={}){const l=jt(null),c=function(t){const e=jt({callback:t,call:(...t)=>e.current.callback(...t)});return e.current.callback=t,e.current.call}(a);zt((()=>{if(!s)return()=>{};if(!t.current)throw new Error("Container ref not set");const a=t.current,h=()=>{const t=Array.from(a.querySelectorAll(r)).filter((t=>null!==t.offsetParent&&!function(t){return"boolean"==typeof t.disabled&&t.disabled}(t)))
35
+ ;return document.activeElement===a&&t.unshift(a),t},u=(t=h(),e=-1,n=!1,i)=>{e<0&&(e=t.findIndex((t=>0===t.tabIndex)))<0&&(e=0);for(const[o,r]of t.entries())r.tabIndex=o===e?0:-1,o===e&&n&&(l.current=r,c(r,i))},d=h(),f=l.current?d.indexOf(l.current):0;u(d,f,e);const p=new le;p.add(a,"focusin",(t=>{if(t.target===a&&l.current)return void c(l.current);const n=h(),i=n.indexOf(t.target);i>=0&&u(n,i,e)})),p.add(a,"keydown",(t=>{const e=h();let r=e.findIndex((t=>0===t.tabIndex)),s=!1;i&&"ArrowLeft"===t.key||o&&"ArrowUp"===t.key?(0===r?r=n?e.length-1:r:--r,s=!0):i&&"ArrowRight"===t.key||o&&"ArrowDown"===t.key?(r===e.length-1?r=n?0:r:++r,s=!0):"Home"===t.key?(r=0,s=!0):"End"===t.key&&(r=e.length-1,s=!0),s&&(u(e,r,!0,t),t.preventDefault(),t.stopPropagation())}));const m=new MutationObserver((()=>{u()}));return m.observe(a,{subtree:!0,attributes:!0,attributeFilter:["disabled"],childList:!0}),()=>{p.removeAll(),m.disconnect()}}),[e,t,c,i,n,r,o,s])}function ue(t,e,n){return e=function(t){var e=function(t,e){
36
+ if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class de{constructor(t){ue(this,"_target",void 0),ue(this,"_value",void 0),this._target=t,this._value=null}get current(){return this._value}set current(t){this._value=t,this._updateTarget()}get target(){return this._target}set target(t){t!==this._target&&(this._target=t,this._updateTarget())}_updateTarget(){const t=this._value;"function"==typeof this._target?this._target(t):this._target&&(this._target.current=t)}}var fe,pe={exports:{}};fe=pe,function(){var t={}.hasOwnProperty;function e(){for(var t="",e=0;e<arguments.length;e++){var o=arguments[e];o&&(t=i(t,n(o)))}return t}function n(n){
37
37
  if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return e.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var r in n)t.call(n,r)&&n[r]&&(o=i(o,r));return o}function i(t,e){return e?t?t+" "+e:t+e:t}fe.exports?(e.default=e,fe.exports=e):window.classNames=e}();var me=e(pe.exports);var ge=0;function _e(t,e,n,i,o,r){var s,a,l={};for(a in e)"ref"==a?s=e[a]:l[a]=e[a];var c={type:t,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--ge,__i:-1,__u:0,__source:o,__self:r};if("function"==typeof t&&(s=t.defaultProps))for(a in s)void 0===l[a]&&(l[a]=s[a]);return G.vnode&&G.vnode(c),c}Rt({}),Rt({});var ve="/home/runner/work/frontend-shared/frontend-shared/src/components/layout/Card.tsx";function be({children:t,classes:e,elementRef:n,active:i=!1,variant:o="raised",width:r="full",...s}){return _e("div",{"data-component":"Card",...s,ref:n,
38
38
  className:me("rounded-lg border bg-white",{"shadow hover:shadow-md":"raised"===o,"shadow-md":i&&"raised"===o},{"w-full":"full"===r,"w-auto":"auto"===r},e),children:t},void 0,0,{fileName:ve,lineNumber:40,columnNumber:5},this)}var ye="/home/runner/work/frontend-shared/frontend-shared/src/components/layout/CardContent.tsx";function we({children:t,classes:e,elementRef:n,size:i="md",...o}){return _e("div",{"data-component":"CardContent",...o,ref:n,className:me({"p-3 space-y-4":"md"===i,"p-2 space-y-3":"sm"===i,"p-4 space-y-6":"lg"===i},e),children:t},void 0,0,{fileName:ye,lineNumber:29,columnNumber:5},this)}var xe="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/Annotate.tsx";function Ce(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16","data-component":"AnnotateIcon",...t,children:_e("path",{fill:"currentColor",
39
- d:"M15 0c.27 0 .505.099.703.297A.961.961 0 0 1 16 1v15l-4-3H1a.974.974 0 0 1-.703-.29A.953.953 0 0 1 0 12V1A.96.96 0 0 1 .29.29.966.966 0 0 1 1 0h14zM7 3l-.469.063c-.312.041-.656.187-1.031.437-.375.25-.719.646-1.031 1.188C4.156 5.229 4 6 4 7l.002.063.006.062a.896.896 0 0 1 .008.11l-.002.074-.006.066a1.447 1.447 0 0 0 .43 1.188C4.729 8.854 5.082 9 5.5 9c.417 0 .77-.146 1.063-.438C6.854 8.271 7 7.918 7 7.5c0-.417-.146-.77-.438-1.063A1.447 1.447 0 0 0 5.5 6a1.467 1.467 0 0 0-.422.062c.177-1.03.542-1.632 1.094-1.804L7 4V3zm5 0-.469.063c-.312.041-.656.187-1.031.437-.375.25-.719.646-1.031 1.188C9.156 5.229 9 6 9 7l.002.063.006.062a.896.896 0 0 1 .008.11l-.002.074-.006.066a1.447 1.447 0 0 0 .43 1.188c.291.291.645.437 1.062.437.417 0 .77-.146 1.063-.438.291-.291.437-.645.437-1.062 0-.417-.146-.77-.438-1.063A1.447 1.447 0 0 0 10.5 6a1.467 1.467 0 0 0-.422.062c.177-1.03.542-1.632 1.094-1.804L12 4V3z"},void 0,0,{fileName:xe,lineNumber:19,columnNumber:7},this)},void 0,0,{fileName:xe,lineNumber:11,columnNumber:5},this)}
40
- var Se="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/Cancel.tsx";function Ne(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"CancelIcon",...t,children:_e("g",{fill:"none","fill-rule":"evenodd",children:[_e("path",{d:"M0 0h16v16H0z"},void 0,0,{fileName:Se,lineNumber:21,columnNumber:9},this),_e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 8 3.536-3.536L8 8 4.464 4.464 8 8zm0 0-3.536 3.536L8 8l3.536 3.536L8 8z"},void 0,0,{fileName:Se,lineNumber:22,columnNumber:9},this)]},void 0,0,{fileName:Se,lineNumber:20,columnNumber:7},this)},void 0,0,{fileName:Se,lineNumber:11,columnNumber:5},this)}var Ee="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/CaretDown.tsx";function Ae(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"CaretDownIcon",
41
- ...t,children:_e("g",{fill:"none","fill-rule":"evenodd",children:[_e("path",{d:"M0 0h16v16H0z"},void 0,0,{fileName:Ee,lineNumber:21,columnNumber:9},this),_e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m12 6-4 4-4-4"},void 0,0,{fileName:Ee,lineNumber:22,columnNumber:9},this)]},void 0,0,{fileName:Ee,lineNumber:20,columnNumber:7},this)},void 0,0,{fileName:Ee,lineNumber:11,columnNumber:5},this)}var Te="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/CaretLeft.tsx";function Re(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"CaretLeftIcon",...t,children:_e("g",{fill:"none","fill-rule":"evenodd",children:[_e("path",{d:"M0 0h16v16H0z"},void 0,0,{fileName:Te,lineNumber:21,columnNumber:9},this),_e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 12 6 8l4-4"},void 0,0,{fileName:Te,lineNumber:22,
39
+ d:"M15 0c.27 0 .505.099.703.297A.961.961 0 0 1 16 1v15l-4-3H1a.974.974 0 0 1-.703-.29A.953.953 0 0 1 0 12V1A.96.96 0 0 1 .29.29.966.966 0 0 1 1 0zM7 3l-.469.063c-.312.041-.656.187-1.031.437-.375.25-.719.646-1.031 1.188C4.156 5.229 4 6 4 7l.002.063.006.062a.896.896 0 0 1 .008.11l-.002.074-.006.066a1.447 1.447 0 0 0 .43 1.188C4.729 8.854 5.082 9 5.5 9c.417 0 .77-.146 1.063-.438C6.854 8.271 7 7.918 7 7.5c0-.417-.146-.77-.438-1.063A1.447 1.447 0 0 0 5.5 6a1.467 1.467 0 0 0-.422.062c.177-1.03.542-1.632 1.094-1.804L7 4zm5 0-.469.063c-.312.041-.656.187-1.031.437-.375.25-.719.646-1.031 1.188C9.156 5.229 9 6 9 7l.002.063.006.062a.896.896 0 0 1 .008.11l-.002.074-.006.066a1.447 1.447 0 0 0 .43 1.188c.291.291.645.437 1.062.437.417 0 .77-.146 1.063-.438.291-.291.437-.645.437-1.062 0-.417-.146-.77-.438-1.063A1.447 1.447 0 0 0 10.5 6a1.467 1.467 0 0 0-.422.062c.177-1.03.542-1.632 1.094-1.804L12 4z"},void 0,0,{fileName:xe,lineNumber:19,columnNumber:7},this)},void 0,0,{fileName:xe,lineNumber:11,columnNumber:5},this)}
40
+ var Se="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/Cancel.tsx";function Ne(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"CancelIcon",...t,children:_e("g",{fill:"none","fill-rule":"evenodd",children:[_e("path",{d:"M0 0h16v16H0z"},void 0,0,{fileName:Se,lineNumber:21,columnNumber:9},this),_e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 8 3.536-3.536zL4.464 4.464zm0 0-3.536 3.536zl3.536 3.536z"},void 0,0,{fileName:Se,lineNumber:22,columnNumber:9},this)]},void 0,0,{fileName:Se,lineNumber:20,columnNumber:7},this)},void 0,0,{fileName:Se,lineNumber:11,columnNumber:5},this)}var Ee="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/CaretDown.tsx";function Ae(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"CaretDownIcon",...t,
41
+ children:_e("g",{fill:"none","fill-rule":"evenodd",children:[_e("path",{d:"M0 0h16v16H0z"},void 0,0,{fileName:Ee,lineNumber:21,columnNumber:9},this),_e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m12 6-4 4-4-4"},void 0,0,{fileName:Ee,lineNumber:22,columnNumber:9},this)]},void 0,0,{fileName:Ee,lineNumber:20,columnNumber:7},this)},void 0,0,{fileName:Ee,lineNumber:11,columnNumber:5},this)}var Te="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/CaretLeft.tsx";function Re(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"CaretLeftIcon",...t,children:_e("g",{fill:"none","fill-rule":"evenodd",children:[_e("path",{d:"M0 0h16v16H0z"},void 0,0,{fileName:Te,lineNumber:21,columnNumber:9},this),_e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 12 6 8l4-4"},void 0,0,{fileName:Te,lineNumber:22,
42
42
  columnNumber:9},this)]},void 0,0,{fileName:Te,lineNumber:20,columnNumber:7},this)},void 0,0,{fileName:Te,lineNumber:11,columnNumber:5},this)}var ke="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/CaretRight.tsx";function Pe(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"CaretRightIcon",...t,children:_e("g",{fill:"none","fill-rule":"evenodd",children:[_e("path",{d:"M0 0h16v16H0z"},void 0,0,{fileName:ke,lineNumber:21,columnNumber:9},this),_e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m6 4 4 4-4 4"},void 0,0,{fileName:ke,lineNumber:22,columnNumber:9},this)]},void 0,0,{fileName:ke,lineNumber:20,columnNumber:7},this)},void 0,0,{fileName:ke,lineNumber:11,columnNumber:5},this)}var Oe="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/Caution.tsx";function Me(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",
43
- height:"16",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2.5",viewBox:"0 0 24 24","data-component":"CautionIcon",...t,children:_e("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0zM12 9v4M12 17h.01"},void 0,0,{fileName:Oe,lineNumber:24,columnNumber:7},this)},void 0,0,{fileName:Oe,lineNumber:11,columnNumber:5},this)}var Le="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/Check.tsx";function Ie(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16","data-component":"CheckIcon",...t,children:_e("g",{fill:"none","fill-rule":"evenodd",children:[_e("path",{d:"M0 0h16v16H0z"},void 0,0,{fileName:Le,lineNumber:20,columnNumber:9},this),_e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 3 6 13 3 8"},void 0,0,{fileName:Le,lineNumber:21,columnNumber:9},this)]},void 0,0,{fileName:Le,lineNumber:19,
44
- columnNumber:7},this)},void 0,0,{fileName:Le,lineNumber:11,columnNumber:5},this)}var Be="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/Hide.tsx";function De(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"HideIcon",...t,children:_e("path",{fill:"currentColor",d:"m1.613.21.094.083 14 14a1 1 0 0 1-1.32 1.497l-.094-.083-14-14A1 1 0 0 1 1.613.21Zm.583 4.845a1 1 0 0 1 .292 1.384C2.165 6.935 2 7.46 2 8c0 2.123 2.628 4 6 4 .22 0 .44-.008.657-.024a1 1 0 0 1 .147 1.994c-.266.02-.534.03-.804.03-4.36 0-8-2.6-8-6 0-.937.283-1.84.812-2.653a1 1 0 0 1 1.384-.292ZM8 2c4.36 0 8 2.6 8 6 0 .937-.283 1.84-.812 2.653a1 1 0 0 1-1.676-1.092C13.835 9.065 14 8.54 14 8c0-2.123-2.628-4-6-4-.22 0-.44.008-.657.024a1 1 0 1 1-.147-1.994C7.462 2.01 7.73 2 8 2Z"},void 0,0,{fileName:Be,lineNumber:20,columnNumber:7},this)},void 0,0,{fileName:Be,lineNumber:11,columnNumber:5},this)}
45
- var Fe="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/Highlight.tsx";function He(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"HighlightIcon",...t,children:_e("g",{fill:"none","fill-rule":"evenodd",children:[_e("path",{d:"M0 0h16v16H0z"},void 0,0,{fileName:Fe,lineNumber:21,columnNumber:9},this),_e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 15H1h11zm-.5-6v2l-1 1v-2l1-1zm.5-7v6h-2V2h2zm0-1h-2 2zm0 8h-2 2z"},void 0,0,{fileName:Fe,lineNumber:22,columnNumber:9},this)]},void 0,0,{fileName:Fe,lineNumber:20,columnNumber:7},this)},void 0,0,{fileName:Fe,lineNumber:11,columnNumber:5},this)}var Ve="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/MenuCollapse.tsx";function Ue(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","data-component":"MenuCollapseIcon",...t,children:_e("path",{
46
- fill:"currentColor",d:"m8.54 4.205 6.23 5.87a.69.69 0 0 1 0 1.03l-.72.68a.8.8 0 0 1-1.09 0L8 7.135l-4.96 4.65a.8.8 0 0 1-1.09 0l-.73-.69a.69.69 0 0 1 0-1.02l6.24-5.87a.8.8 0 0 1 1.08 0z"},void 0,0,{fileName:Ve,lineNumber:18,columnNumber:7},this)},void 0,0,{fileName:Ve,lineNumber:11,columnNumber:5},this)}var qe="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/MenuExpand.tsx";function We(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16","data-component":"MenuExpandIcon",...t,children:_e("path",{fill:"currentColor",d:"M7.456 11.788 1.226 5.92a.695.695 0 0 1 0-1.025l.726-.684a.804.804 0 0 1 1.087-.001L8 8.861l4.961-4.65a.804.804 0 0 1 1.087.001l.727.684c.3.283.3.742 0 1.025l-6.23 5.867a.804.804 0 0 1-1.09 0z"},void 0,0,{fileName:qe,lineNumber:19,columnNumber:7},this)},void 0,0,{fileName:qe,lineNumber:11,columnNumber:5},this)}var ze="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/Note.tsx";function $e(t){
47
- return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"NoteIcon",...t,children:_e("path",{fill:"currentColor",d:"M14 0a2 2 0 0 1 1.995 1.85L16 2v7a1 1 0 0 1-.31.724l-.09.076-8 6a1 1 0 0 1-.471.192L7 16H2a2 2 0 0 1-1.995-1.85L0 14V2A2 2 0 0 1 1.85.005L2 0h12Zm0 2H2v12h4V9a1 1 0 0 1 .883-.993L7 8h7V2Zm-2 8H8v3l4-3Z"},void 0,0,{fileName:ze,lineNumber:20,columnNumber:7},this)},void 0,0,{fileName:ze,lineNumber:11,columnNumber:5},this)}var je="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/PointerDown.tsx";function Xe(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"9","data-component":"PointerDownIcon",...t,children:_e("path",{stroke:"currentColor",d:"m15.5 0-7 8-8-8"},void 0,0,{fileName:je,lineNumber:18,columnNumber:7},this)},void 0,0,{fileName:je,lineNumber:11,columnNumber:5},this)}var Ye="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/PointerUp.tsx"
48
- ;function Ge(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"9","data-component":"PointerUpIcon",...t,children:_e("path",{stroke:"currentColor",d:"m.5 9 7-8 8 8"},void 0,0,{fileName:Ye,lineNumber:18,columnNumber:7},this)},void 0,0,{fileName:Ye,lineNumber:11,columnNumber:5},this)}var Ke="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/Show.tsx";function Ze(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"ShowIcon",...t,children:_e("path",{fill:"currentColor",d:"M8 2c4.36 0 8 2.6 8 6s-3.64 6-8 6c-4.36 0-8-2.6-8-6s3.64-6 8-6Zm0 2C4.628 4 2 5.877 2 8s2.628 4 6 4 6-1.877 6-4-2.628-4-6-4Zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z"},void 0,0,{fileName:Ke,lineNumber:20,columnNumber:7},this)},void 0,0,{fileName:Ke,lineNumber:11,columnNumber:5},this)}var Qe="/home/runner/work/frontend-shared/frontend-shared/src/components/input/Button.tsx"
43
+ height:"16",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2.5",viewBox:"0 0 24 24","data-component":"CautionIcon",...t,children:_e("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0M12 9v4M12 17h.01"},void 0,0,{fileName:Oe,lineNumber:24,columnNumber:7},this)},void 0,0,{fileName:Oe,lineNumber:11,columnNumber:5},this)}var Le="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/Check.tsx";function Ie(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16","data-component":"CheckIcon",...t,children:_e("g",{fill:"none","fill-rule":"evenodd",children:[_e("path",{d:"M0 0h16v16H0z"},void 0,0,{fileName:Le,lineNumber:20,columnNumber:9},this),_e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 3 6 13 3 8"},void 0,0,{fileName:Le,lineNumber:21,columnNumber:9},this)]},void 0,0,{fileName:Le,lineNumber:19,
44
+ columnNumber:7},this)},void 0,0,{fileName:Le,lineNumber:11,columnNumber:5},this)}var Be="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/Hide.tsx";function De(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"HideIcon",...t,children:_e("path",{fill:"currentColor",d:"m1.613.21.094.083 14 14a1 1 0 0 1-1.32 1.497l-.094-.083-14-14A1 1 0 0 1 1.613.21m.583 4.845a1 1 0 0 1 .292 1.384C2.165 6.935 2 7.46 2 8c0 2.123 2.628 4 6 4 .22 0 .44-.008.657-.024a1 1 0 0 1 .147 1.994c-.266.02-.534.03-.804.03-4.36 0-8-2.6-8-6 0-.937.283-1.84.812-2.653a1 1 0 0 1 1.384-.292M8 2c4.36 0 8 2.6 8 6 0 .937-.283 1.84-.812 2.653a1 1 0 0 1-1.676-1.092C13.835 9.065 14 8.54 14 8c0-2.123-2.628-4-6-4-.22 0-.44.008-.657.024a1 1 0 1 1-.147-1.994C7.462 2.01 7.73 2 8 2"},void 0,0,{fileName:Be,lineNumber:20,columnNumber:7},this)},void 0,0,{fileName:Be,lineNumber:11,columnNumber:5},this)}
45
+ var Fe="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/Highlight.tsx";function He(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"HighlightIcon",...t,children:_e("g",{fill:"none","fill-rule":"evenodd",children:[_e("path",{d:"M0 0h16v16H0z"},void 0,0,{fileName:Fe,lineNumber:21,columnNumber:9},this),_e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 15H1zm-.5-6v2l-1 1v-2zm.5-7v6h-2V2zm0-1h-2zm0 8h-2z"},void 0,0,{fileName:Fe,lineNumber:22,columnNumber:9},this)]},void 0,0,{fileName:Fe,lineNumber:20,columnNumber:7},this)},void 0,0,{fileName:Fe,lineNumber:11,columnNumber:5},this)}var Ve="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/MenuCollapse.tsx";function Ue(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","data-component":"MenuCollapseIcon",...t,children:_e("path",{fill:"currentColor",
46
+ d:"m8.54 4.205 6.23 5.87a.69.69 0 0 1 0 1.03l-.72.68a.8.8 0 0 1-1.09 0L8 7.135l-4.96 4.65a.8.8 0 0 1-1.09 0l-.73-.69a.69.69 0 0 1 0-1.02l6.24-5.87a.8.8 0 0 1 1.08 0"},void 0,0,{fileName:Ve,lineNumber:18,columnNumber:7},this)},void 0,0,{fileName:Ve,lineNumber:11,columnNumber:5},this)}var qe="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/MenuExpand.tsx";function We(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16","data-component":"MenuExpandIcon",...t,children:_e("path",{fill:"currentColor",d:"M7.456 11.788 1.226 5.92a.695.695 0 0 1 0-1.025l.726-.684a.804.804 0 0 1 1.087-.001L8 8.861l4.961-4.65a.804.804 0 0 1 1.087.001l.727.684c.3.283.3.742 0 1.025l-6.23 5.867a.804.804 0 0 1-1.09 0z"},void 0,0,{fileName:qe,lineNumber:19,columnNumber:7},this)},void 0,0,{fileName:qe,lineNumber:11,columnNumber:5},this)}var ze="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/Note.tsx";function $e(t){return _e("svg",{
47
+ xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"NoteIcon",...t,children:_e("path",{fill:"currentColor",d:"M14 0a2 2 0 0 1 1.995 1.85L16 2v7a1 1 0 0 1-.31.724l-.09.076-8 6a1 1 0 0 1-.471.192L7 16H2a2 2 0 0 1-1.995-1.85L0 14V2A2 2 0 0 1 1.85.005L2 0zm0 2H2v12h4V9a1 1 0 0 1 .883-.993L7 8h7zm-2 8H8v3z"},void 0,0,{fileName:ze,lineNumber:20,columnNumber:7},this)},void 0,0,{fileName:ze,lineNumber:11,columnNumber:5},this)}var je="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/PointerDown.tsx";function Xe(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"9","data-component":"PointerDownIcon",...t,children:_e("path",{stroke:"currentColor",d:"m15.5 0-7 8-8-8"},void 0,0,{fileName:je,lineNumber:18,columnNumber:7},this)},void 0,0,{fileName:je,lineNumber:11,columnNumber:5},this)}var Ye="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/PointerUp.tsx";function Ge(t){return _e("svg",{
48
+ xmlns:"http://www.w3.org/2000/svg",width:"16",height:"9","data-component":"PointerUpIcon",...t,children:_e("path",{stroke:"currentColor",d:"m.5 9 7-8 8 8"},void 0,0,{fileName:Ye,lineNumber:18,columnNumber:7},this)},void 0,0,{fileName:Ye,lineNumber:11,columnNumber:5},this)}var Ke="/home/runner/work/frontend-shared/frontend-shared/src/components/icons/Show.tsx";function Ze(t){return _e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"ShowIcon",...t,children:_e("path",{fill:"currentColor",d:"M8 2c4.36 0 8 2.6 8 6s-3.64 6-8 6c-4.36 0-8-2.6-8-6s3.64-6 8-6m0 2C4.628 4 2 5.877 2 8s2.628 4 6 4 6-1.877 6-4-2.628-4-6-4m0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4"},void 0,0,{fileName:Ke,lineNumber:20,columnNumber:7},this)},void 0,0,{fileName:Ke,lineNumber:11,columnNumber:5},this)}var Qe="/home/runner/work/frontend-shared/frontend-shared/src/components/input/Button.tsx"
49
49
  ;function Je({children:t,classes:e,elementRef:n,expanded:i,pressed:o,title:r,icon:s,size:a="md",variant:l="secondary",unstyled:c=!1,role:h,...u}){const d=!c,f=d&&"custom"!==l,p=d&&"custom"!==a,m={"aria-label":r};return"tab"===h?m["aria-selected"]=o:(m["aria-pressed"]=o,m["aria-expanded"]=i),_e("button",{role:null!=h?h:"button","data-component":"Button",type:"button",...m,...u,className:me({"focus-visible-ring transition-colors whitespace-nowrap flex items-center":d},f&&{"font-semibold rounded":!0,"text-grey-7 bg-grey-1 enabled:hover:text-grey-9 enabled:hover:bg-grey-2 aria-pressed:text-grey-9 aria-expanded:text-grey-9":"secondary"===l,"text-grey-1 bg-grey-7 enabled:hover:bg-grey-8 disabled:text-grey-4":"primary"===l},p&&{"p-2 gap-x-2":"md"===a,"p-1 gap-x-1":"xs"===a,"p-1.5 gap-x-1.5":"sm"===a,"p-2.5 gap-x-1.5":"lg"===a},e),ref:n,title:r,children:[s&&_e(s,{className:"w-em h-em"},void 0,0,{fileName:Qe,lineNumber:120,columnNumber:16},this),t]},void 0,0,{fileName:Qe,lineNumber:89,columnNumber:5},this)}
50
50
  const tn=me("input-group:border input-group:rounded-none","input-group:first:rounded-l input-group:last:rounded-r","input-group:border-l-0 input-group:first:border-l");var en="/home/runner/work/frontend-shared/frontend-shared/src/components/input/IconButton.tsx";function nn({children:t,classes:e,elementRef:n,pressed:i,expanded:o,icon:r,size:s="md",title:a,variant:l="secondary",unstyled:c=!1,...h}){const u=!c;return _e(Je,{"data-component":"IconButton",...h,classes:me({"focus-visible-ring transition-colors rounded whitespace-nowrap":u,"flex items-center justify-center":u},u&&tn,u&&"custom"!==l&&{"text-grey-7 bg-transparent enabled:hover:text-grey-9 aria-pressed:text-brand aria-expanded:text-brand":"secondary"===l,"text-brand bg-transparent enabled:hover:text-grey-9 disabled:text-grey-7":"primary"===l,"text-grey-7 bg-grey-2 enabled:hover:text-grey-9 enabled:hover:bg-grey-3 disabled:text-grey-5 aria-pressed:bg-grey-3 aria-expanded:bg-grey-3":"dark"===l},u&&"custom"!==s&&{
51
51
  "gap-x-2 touch:min-w-touch-minimum touch:min-h-touch-minimum":!0,"p-2":"md"===s,"p-1":"xs"===s,"p-1.5":"sm"===s,"p-2.5":"lg"===s},e),elementRef:n,title:a,pressed:i,expanded:o,unstyled:!0,children:[r&&_e(r,{className:"w-em h-em"},void 0,0,{fileName:en,lineNumber:84,columnNumber:16},this),t]},void 0,0,{fileName:en,lineNumber:49,columnNumber:5},this)}Rt({}),Rt(null);var on="/home/runner/work/frontend-shared/frontend-shared/src/components/feedback/Callout.tsx";function rn({children:t,classes:e,elementRef:n,icon:i,status:o="notice",size:r="md",variant:s="outlined",unstyled:a=!1,...l}){const c=!a,h=c&&"custom"!==s,u=c&&"custom"!==r;let d=i;if(!d)switch(o){case"success":d=Ie;break;case"error":d=Ne;break;default:d=Me}const f=h&&u;return _e("div",{"data-component":"Callout",...l,ref:n,className:me(c&&"flex items-center border",h&&{"rounded border":!0,"shadow hover:shadow-md cursor-pointer":"raised"===s,"border-yellow-notice":"notice"===o,"border-green-success":"success"===o,"border-red-error":"error"===o},h&&{
@@ -138,7 +138,7 @@ const e=this.anchors.find((e=>e.annotation.$tag===t));null!=e&&e.highlights&&awa
138
138
  this._sendDocumentInfo()}destroy(){var t;this._portFinder.destroy(),this._hostRPC.destroy(),this._sidebarRPC.destroy(),this._listeners.removeAll(),this._selectionObserver.disconnect(),this._adder.destroy(),this._bucketBarClient.destroy(),null===(t=this._clusterToolbar)||void 0===t||t.destroy(),function(t){Gn(Array.from(t.querySelectorAll("hypothesis-highlight")))}(this.element),this._integration.destroy()}async anchor(t){this._contentReady&&(await this._contentReady,this._contentReady=void 0);const e=t=>{var e;const n=cr(t);if(!n)return;const i=Xn(n,null===(e=t.annotation)||void 0===e?void 0:e.$cluster);i.forEach((e=>{e._annotation=t.annotation})),t.highlights=i,this._hoveredAnnotations.has(t.annotation.$tag)&&Kn(i,!0)};this.detach(t.$tag,!1),this._annotations.add(t.$tag),t.target||(t.target=[]);const n=await Promise.all(t.target.map((async e=>{if(!e.selector||!e.selector.some((t=>"TextQuoteSelector"===t.type)))return{annotation:t,target:e};let n;try{
139
139
  const i=await this._integration.anchor(this.element,e.selector),o=Bn.fromRange(i);n={annotation:t,target:e,range:o}}catch(i){n={annotation:t,target:e}}return n})));if(!this._annotations.has(t.$tag))return[];for(const t of n)e(t);return t.$orphan=n.length>0&&n.every((t=>t.target.selector&&!t.range)),this._updateAnchors(this.anchors.concat(n),!0),this._sidebarRPC.call("syncAnchoringStatus",t),n}detach(t,e=!0){this._annotations.delete(t);const n=[];for(const e of this.anchors)e.annotation.$tag!==t?n.push(e):e.highlights&&Gn(e.highlights);this._updateAnchors(n,e)}_updateAnchors(t,e){var n;this.anchors=t,null===(n=this._clusterToolbar)||void 0===n||n.scheduleClusterUpdates(),e&&this._bucketBarClient.update(this.anchors)}async createAnnotation({highlight:t=!1}={}){const e=this.selectedRanges;this.selectedRanges=[];const n=await this.getDocumentInfo(),i=this.element,o=(await Promise.all(e.map((t=>this._integration.describe(i,t))))).map((t=>({source:n.uri,selector:t}))),r={uri:n.uri,document:n.metadata,target:o,
140
140
  $highlight:t,$cluster:t?"user-highlights":"user-annotations",$tag:"a:"+s(8)};return this._sidebarRPC.call("createAnnotation",r),this.anchor(r),hr(),r}_hoverAnnotations(t){this._hoveredAnnotations.clear(),t.forEach((t=>this._hoveredAnnotations.add(t)));for(const e of this.anchors)if(e.highlights){const n=t.includes(e.annotation.$tag);Kn(e.highlights,n)}this._sidebarRPC.call("hoverAnnotations",t)}_onSelection(t){const e=this._integration.getAnnotatableRange(t);if(!e)return void this._onClearSelection();const n=document.getSelection(),i=Un(n),o=zn(n);o?(this.selectedRanges=[e],this._hostRPC.call("textSelected"),this._adder.annotationsForSelection=ar(),this._isAdderVisible=!0,this._adder.show(o,i)):this._onClearSelection()}_onClearSelection(){this._isAdderVisible=!1,this._adder.hide(),this.selectedRanges=[],this._informHostOnNextSelectionClear&&this._hostRPC.call("textUnselected"),this._informHostOnNextSelectionClear=!0}selectAnnotations(t,{toggle:e=!1,focusInSidebar:n=!1}={}){
141
- e?this._sidebarRPC.call("toggleAnnotationSelection",t):this._sidebarRPC.call("showAnnotations",t,n),this._sidebarRPC.call("openSidebar")}setHighlightsVisible(t,e=!0){!function(t,e){t.classList.toggle("hypothesis-highlights-always-on",e)}(this.element,t),this._highlightsVisible=t,e&&this._hostRPC.call("highlightsVisibleChanged",t)}get highlightsVisible(){return this._highlightsVisible}fitSideBySide(t){this._sidebarLayout=t,this._integration.fitSideBySide(t)}get hoveredAnnotationTags(){return this._hoveredAnnotations}_handleShortcut(t){oe(t,"Ctrl+Shift+H")&&this.setHighlightsVisible(!this._highlightsVisible)}}function fr(t,e){const n=new URL(t),i=new URLSearchParams;return i.append("config",JSON.stringify(e)),n.hash=i.toString(),n.toString()}function pr(t,e){var n;const i={};for(const[t,n]of Object.entries(e))"notebookAppUrl"!==t&&"sidebarAppUrl"!==t&&null!=n&&(i[t]=n);i.origin=new URL(t).origin,i.version="1.1424.0";const o=new URL(window.location.href);if(o.hash="",i.hostURL=o.toString(),
141
+ e?this._sidebarRPC.call("toggleAnnotationSelection",t):this._sidebarRPC.call("showAnnotations",t,n),this._sidebarRPC.call("openSidebar")}setHighlightsVisible(t,e=!0){!function(t,e){t.classList.toggle("hypothesis-highlights-always-on",e)}(this.element,t),this._highlightsVisible=t,e&&this._hostRPC.call("highlightsVisibleChanged",t)}get highlightsVisible(){return this._highlightsVisible}fitSideBySide(t){this._sidebarLayout=t,this._integration.fitSideBySide(t)}get hoveredAnnotationTags(){return this._hoveredAnnotations}_handleShortcut(t){oe(t,"Ctrl+Shift+H")&&this.setHighlightsVisible(!this._highlightsVisible)}}function fr(t,e){const n=new URL(t),i=new URLSearchParams;return i.append("config",JSON.stringify(e)),n.hash=i.toString(),n.toString()}function pr(t,e){var n;const i={};for(const[t,n]of Object.entries(e))"notebookAppUrl"!==t&&"sidebarAppUrl"!==t&&null!=n&&(i[t]=n);i.origin=new URL(t).origin,i.version="1.1425.0";const o=new URL(window.location.href);if(o.hash="",i.hostURL=o.toString(),
142
142
  Array.isArray(i.services)&&(null===(n=i.services)||void 0===n?void 0:n.length)>0){const t=i.services[0];t.onLoginRequest&&(t.onLoginRequestProvided=!0),t.onLogoutRequest&&(t.onLogoutRequestProvided=!0),t.onSignupRequest&&(t.onSignupRequestProvided=!0),t.onProfileRequest&&(t.onProfileRequestProvided=!0),t.onHelpRequest&&(t.onHelpRequestProvided=!0)}return i}function mr({config:t,groupId:e}){return _e("iframe",{title:"Hypothesis annotation notebook",className:"h-full w-full border-0",allowFullScreen:!0,src:fr(t.notebookAppUrl,{...pr(t.notebookAppUrl,t),group:e})})}function gr({eventBus:t,config:e}){const[n,i]=Wt(0),[o,r]=Wt(!0),[s,a]=Wt(null),l=jt(""),c=jt(null);zt((()=>(l.current=document.body.style.overflow,()=>{document.body.style.overflow=l.current})),[]),zt((()=>{document.body.style.overflow=o?l.current:"hidden"}),[o]),zt((()=>{const e=t.createEmitter();return e.subscribe("openNotebook",(t=>{r(!1),i((t=>t+1)),a(t)})),c.current=e,()=>{e.destroy()}}),[t]);return null===s?null:_e("div",{
143
143
  className:me("fixed z-max top-0 left-0 right-0 bottom-0 p-3 bg-black/50",{hidden:o}),"data-testid":"notebook-outer",children:_e("div",{className:"relative w-full h-full","data-testid":"notebook-inner",children:[_e("div",{className:"absolute right-0 m-3",children:_e(nn,{title:"Close the Notebook",onClick:()=>{var t;r(!0),null===(t=c.current)||void 0===t||t.publish("closeNotebook")},variant:"dark",classes:me("!bg-transparent enabled:hover:!bg-grey-3"),children:_e(Ne,{className:"w-4 h-4"})})}),_e(mr,{config:e,groupId:s},n)]})})}class _r{constructor(t,e,n){i(this,"_outerContainer",void 0),i(this,"_shadowRoot",void 0),this._outerContainer=document.createElement("hypothesis-notebook"),t.appendChild(this._outerContainer),this._shadowRoot=Sn(this._outerContainer),Tt(_e(gr,{eventBus:e,config:n}),this._shadowRoot)}destroy(){Tt(null,this._shadowRoot),this._outerContainer.remove()}}function vr({eventBus:t,config:e}){const[n,i]=Wt(!0),o=jt(null);zt((()=>{const e=t.createEmitter();return e.subscribe("openProfile",(()=>{
144
144
  i(!1)})),o.current=e,()=>{e.destroy()}}),[t]);return n?null:_e("div",{className:"fixed z-max top-0 left-0 right-0 bottom-0 p-3 bg-black/50","data-testid":"profile-outer",children:_e("div",{className:"relative w-full h-full","data-testid":"profile-inner",children:[_e("div",{className:"absolute right-0 m-3",children:_e(nn,{title:"Close the Profile",onClick:()=>{var t;i(!0),null===(t=o.current)||void 0===t||t.publish("closeProfile")},variant:"dark",classes:me("!bg-transparent enabled:hover:!bg-grey-3"),children:_e(Ne,{className:"w-4 h-4"})})}),_e("iframe",{title:"Hypothesis profile",className:"h-full w-full border-0",src:e.profileAppUrl})]})})}class br{constructor(t,e,n){i(this,"_outerContainer",void 0),i(this,"shadowRoot",void 0),this._outerContainer=document.createElement("hypothesis-profile"),t.appendChild(this._outerContainer),this.shadowRoot=Sn(this._outerContainer),Tt(_e(vr,{eventBus:e,config:n}),this.shadowRoot)}destroy(){Tt(null,this.shadowRoot),this._outerContainer.remove()}}var yr={exports:{}}