/*!
 * PSPDFKit for Web 2024.5.1 (https://pspdfkit.com/web)
 *
 * Copyright (c) 2016-2024 PSPDFKit GmbH. All rights reserved.
 *
 * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
 * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
 * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
 * This notice may not be removed from this file.
 *
 * PSPDFKit uses several open source third-party components: https://pspdfkit.com/acknowledgements/web/
 */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.PSPDFKit=t():e.PSPDFKit=t()}(globalThis,(()=>(()=>{var e,t,n,r,o={96156:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(27350);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},22122:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},30585:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(90484);function o(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},27350:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(90484),o=n(30585);function i(e){var t=(0,o.Z)(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},90484:(e,t,n)=>{"use strict";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},r(e)}n.d(t,{Z:()=>r})},64352:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Comment:()=>Mr,Devtools:()=>kr,SignatureTextInput:()=>sr,Stamp:()=>zr,TaggedPagination:()=>Or});var r=n(67185),o=n(67294),i=n(8840),a=n(45688),s=n(85893),l=C(),c=e=>w(e,l),u=C();c.write=e=>w(e,u);var d=C();c.onStart=e=>w(e,d);var p=C();c.onFrame=e=>w(e,p);var h=C();c.onFinish=e=>w(e,h);var f=[];c.setTimeout=(e,t)=>{const n=c.now()+t,r=()=>{const e=f.findIndex((e=>e.cancel==r));~e&&f.splice(e,1),y-=~e?1:0},o={time:n,handler:e,cancel:r};return f.splice(m(n),0,o),y+=1,x(),o};var m=e=>~(~f.findIndex((t=>t.time>e))||~f.length);c.cancel=e=>{d.delete(e),p.delete(e),h.delete(e),l.delete(e),u.delete(e)},c.sync=e=>{b=!0,c.batchedUpdates(e),b=!1},c.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,c.onStart(n)}return r.handler=e,r.cancel=()=>{d.delete(n),t=null},r};var g="undefined"!=typeof window?window.requestAnimationFrame:()=>{};c.use=e=>g=e,c.now="undefined"!=typeof performance?()=>performance.now():Date.now,c.batchedUpdates=e=>e(),c.catch=console.error,c.frameLoop="always",c.advance=()=>{"demand"!==c.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):S()};var v=-1,y=0,b=!1;function w(e,t){b?(t.delete(e),e(0)):(t.add(e),x())}function x(){v<0&&(v=0,"demand"!==c.frameLoop&&g(_))}function _(){~v&&(g(_),c.batchedUpdates(S))}function S(){const e=v;v=c.now();const t=m(v);t&&(E(f.splice(0,t),(e=>e.handler())),y-=t),y?(d.flush(),l.flush(e?Math.min(64,v-e):16.667),p.flush(),u.flush(),h.flush()):v=-1}function C(){let e=new Set,t=e;return{add(n){y+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(y-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,y-=t.size,E(t,(t=>t(n)&&e.add(t))),y+=e.size,t=e)}}}function E(e,t){e.forEach((e=>{try{t(e)}catch(e){c.catch(e)}}))}var k=Object.defineProperty,z={};function P(){}((e,t)=>{for(var n in t)k(e,n,{get:t[n],enumerable:!0})})(z,{assign:()=>V,colors:()=>L,createStringInterpolator:()=>F,skipAnimation:()=>B,to:()=>N,willAdvance:()=>K});var D={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function A(e,t){if(D.arr(e)){if(!D.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var T=(e,t)=>e.forEach(t);function I(e,t,n){if(D.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var M=e=>D.und(e)?[]:D.arr(e)?e:[e];function R(e,t){if(e.size){const n=Array.from(e);e.clear(),T(n,t)}}var F,N,O=(e,...t)=>R(e,(e=>e(...t))),j=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),L=null,B=!1,K=P,V=e=>{e.to&&(N=e.to),e.now&&(c.now=e.now),void 0!==e.colors&&(L=e.colors),null!=e.skipAnimation&&(B=e.skipAnimation),e.createStringInterpolator&&(F=e.createStringInterpolator),e.requestAnimationFrame&&c.use(e.requestAnimationFrame),e.batchedUpdates&&(c.batchedUpdates=e.batchedUpdates),e.willAdvance&&(K=e.willAdvance),e.frameLoop&&(c.frameLoop=e.frameLoop)},H=new Set,$=[],U=[],Z=0,q={get idle(){return!H.size&&!$.length},start(e){Z>e.priority?(H.add(e),c.onStart(G)):(W(e),c(X))},advance:X,sort(e){if(Z)c.onFrame((()=>q.sort(e)));else{const t=$.indexOf(e);~t&&($.splice(t,1),Y(e))}},clear(){$=[],H.clear()}};function G(){H.forEach(W),H.clear(),c(X)}function W(e){$.includes(e)||Y(e)}function Y(e){$.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}($,(t=>t.priority>e.priority)),0,e)}function X(e){const t=U;for(let n=0;n<$.length;n++){const r=$[n];Z=r.priority,r.idle||(K(r),r.advance(e),r.idle||t.push(r))}return Z=0,(U=$).length=0,($=t).length>0}var Q="[-+]?\\d*\\.?\\d+",J=Q+"%";function ee(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var te=new RegExp("rgb"+ee(Q,Q,Q)),ne=new RegExp("rgba"+ee(Q,Q,Q,Q)),re=new RegExp("hsl"+ee(Q,J,J)),oe=new RegExp("hsla"+ee(Q,J,J,Q)),ie=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,se=/^#([0-9a-fA-F]{6})$/,le=/^#([0-9a-fA-F]{8})$/;function ce(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ue(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ce(o,r,e+1/3),a=ce(o,r,e),s=ce(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function de(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function pe(e){return(parseFloat(e)%360+360)%360/360}function he(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=se.exec(e))?parseInt(t[1]+"ff",16)>>>0:L&&void 0!==L[e]?L[e]:(t=te.exec(e))?(de(t[1])<<24|de(t[2])<<16|de(t[3])<<8|255)>>>0:(t=ne.exec(e))?(de(t[1])<<24|de(t[2])<<16|de(t[3])<<8|he(t[4]))>>>0:(t=ie.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=le.exec(e))?parseInt(t[1],16)>>>0:(t=ae.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=re.exec(e))?(255|ue(pe(t[1]),fe(t[2]),fe(t[3])))>>>0:(t=oe.exec(e))?(ue(pe(t[1]),fe(t[2]),fe(t[3]))|he(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var ge=(e,t,n)=>{if(D.fun(e))return e;if(D.arr(e))return ge({range:e,output:t,extrapolate:n});if(D.str(e.output[0]))return F(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}};var ve=1.70158,ye=1.525*ve,be=ve+1,we=2*Math.PI/3,xe=2*Math.PI/4.5,_e=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Se={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>be*e*e*e-ve*e*e,easeOutBack:e=>1+be*Math.pow(e-1,3)+ve*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-ye)/2:(Math.pow(2*e-2,2)*((ye+1)*(2*e-2)+ye)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*we),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*we)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*xe)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*xe)/2+1,easeInBounce:e=>1-_e(1-e),easeOutBounce:_e,easeInOutBounce:e=>e<.5?(1-_e(1-2*e))/2:(1+_e(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},Ce=Symbol.for("FluidValue.get"),Ee=Symbol.for("FluidValue.observers"),ke=e=>Boolean(e&&e[Ce]),ze=e=>e&&e[Ce]?e[Ce]():e,Pe=e=>e[Ee]||null;function De(e,t){const n=e[Ee];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Ae=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Te(this,e)}},Te=(e,t)=>Fe(e,Ce,t);function Ie(e,t){if(e[Ce]){let n=e[Ee];n||Fe(e,Ee,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Me(e,t){const n=e[Ee];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ee]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Re,Fe=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ne=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Oe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,je=new RegExp(`(${Ne.source})(%|[a-z]+)`,"i"),Le=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Be=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ke=e=>{const[t,n]=Ve(e);if(!t||j())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Be.test(n)?Ke(n):n||e},Ve=e=>{const t=Be.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},He=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,$e=e=>{Re||(Re=L?new RegExp(`(${Object.keys(L).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>ze(e).replace(Be,Ke).replace(Oe,me).replace(Re,me))),n=t.map((e=>e.match(Ne).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>ge({...e,output:t})));return e=>{const n=!je.test(t[0])&&t.find((e=>je.test(e)))?.replace(Ne,"");let o=0;return t[0].replace(Ne,(()=>`${r[o++](e)}${n||""}`)).replace(Le,He)}},Ue="react-spring: ",Ze=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Ue}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},qe=Ze(console.warn);var Ge=Ze(console.warn);function We(e){return D.str(e)&&("#"==e[0]||/\d/.test(e)||!j()&&Be.test(e)||e in(L||{}))}var Ye=j()?o.useEffect:o.useLayoutEffect;function Xe(){const e=(0,o.useState)()[1],t=(()=>{const e=(0,o.useRef)(!1);return Ye((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var Qe=e=>(0,o.useEffect)(e,Je),Je=[];function et(e){const t=(0,o.useRef)();return(0,o.useEffect)((()=>{t.current=e})),t.current}var tt=Symbol.for("Animated:node"),nt=e=>e&&e[tt],rt=(e,t)=>{return n=e,r=tt,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},ot=e=>e&&e[tt]&&e[tt].getPayload(),it=class{constructor(){rt(this,this)}getPayload(){return this.payload||[]}},at=class extends it{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,D.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new at(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return D.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,D.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},st=class extends at{constructor(e){super(0),this._string=null,this._toString=ge({output:[e,e]})}static create(e){return new st(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(D.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=ge({output:[this.getValue(),e]})),this._value=0,super.reset()}},lt={dependencies:null},ct=class extends it{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return I(this.source,((n,r)=>{var o;(o=n)&&o[tt]===o?t[r]=n.getValue(e):ke(n)?t[r]=ze(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&T(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return I(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){lt.dependencies&&ke(e)&&lt.dependencies.add(e);const t=ot(e);t&&T(t,(e=>this.add(e)))}},ut=class extends ct{constructor(e){super(e)}static create(e){return new ut(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(dt)),!0)}};function dt(e){return(We(e)?st:at).create(e)}function pt(e){const t=nt(e);return t?t.constructor:D.arr(e)?ut:We(e)?st:at}var ht=(e,t)=>{const n=!D.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,o.forwardRef)(((r,i)=>{const a=(0,o.useRef)(null),s=n&&(0,o.useCallback)((e=>{a.current=function(e,t){e&&(D.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[l,u]=function(e,t){const n=new Set;lt.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new ct(e),lt.dependencies=null,[e,n]}(r,t),d=Xe(),p=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&d()},h=new ft(p,u),f=(0,o.useRef)();Ye((()=>(f.current=h,T(u,(e=>Ie(e,h))),()=>{f.current&&(T(f.current.deps,(e=>Me(e,f.current))),c.cancel(f.current.update))}))),(0,o.useEffect)(p,[]),Qe((()=>()=>{const e=f.current;T(e.deps,(t=>Me(t,e)))}));const m=t.getComponentProps(l.getValue());return o.createElement(e,{...m,ref:s})}))},ft=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&c.write(this.update)}};var mt=Symbol.for("AnimatedComponent"),gt=e=>D.str(e)?e:e&&D.str(e.displayName)?e.displayName:D.fun(e)&&e.name||null;function vt(e,...t){return D.fun(e)?e(...t):e}var yt=(e,t)=>!0===e||!!(t&&e&&(D.fun(e)?e(t):M(e).includes(t))),bt=(e,t)=>D.obj(e)?t&&e[t]:e,wt=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,xt=e=>e,_t=(e,t=xt)=>{let n=St;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);D.und(n)||(r[o]=n)}return r},St=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Ct={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Et(e){const t=function(e){const t={};let n=0;if(I(e,((e,r)=>{Ct[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return I(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function kt(e){return e=ze(e),D.arr(e)?e.map(kt):We(e)?z.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function zt(e){for(const t in e)return!0;return!1}function Pt(e){return D.fun(e)||D.arr(e)&&D.obj(e[0])}function Dt(e,t){e.ref?.delete(e),t?.delete(e)}function At(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Tt={tension:170,friction:26,mass:1,damping:1,easing:Se.linear,clamp:!1};function It(e,t){if(D.und(t.decay)){const n=!D.und(t.tension)||!D.und(t.friction);!n&&D.und(t.frequency)&&D.und(t.damping)&&D.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Mt=[];function Rt(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,u,d=yt(n.cancel??r?.cancel,t);if(d)f();else{D.und(n.pause)||(o.paused=yt(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||yt(e,t)),l=vt(n.delay||0,t),e?(o.resumeQueue.add(h),i.pause()):(i.resume(),h())}function p(){o.resumeQueue.add(h),o.timeouts.delete(u),u.cancel(),l=u.time-c.now()}function h(){l>0&&!z.skipAnimation?(o.delayed=!0,u=c.setTimeout(f,l),o.pauseQueue.add(p),o.timeouts.add(u)):f()}function f(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(p),o.timeouts.delete(u),e<=(o.cancelId||0)&&(d=!0);try{i.start({...n,callId:e,cancel:d},a)}catch(e){s(e)}}}))}var Ft=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?jt(e.get()):t.every((e=>e.noop))?Nt(e.get()):Ot(e.get(),t.every((e=>e.finished))),Nt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ot=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),jt=e=>({value:e,cancelled:!0,finished:!1});function Lt(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const u=_t(t,((e,t)=>"onRest"===t?void 0:e));let d,p;const h=new Promise(((e,t)=>(d=e,p=t))),f=e=>{const t=o<=(n.cancelId||0)&&jt(r)||o!==n.asyncId&&Ot(r,!1);if(t)throw e.result=t,p(e),e},m=(e,t)=>{const i=new Kt,a=new Vt;return(async()=>{if(z.skipAnimation)throw Bt(n),a.result=Ot(r,!1),p(a),a;f(i);const s=D.obj(e)?{...e}:{...t,to:e};s.parentId=o,I(u,((e,t)=>{D.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return f(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let g;if(z.skipAnimation)return Bt(n),Ot(r,!1);try{let t;t=D.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(d),h]),g=Ot(r.get(),!0,!1)}catch(e){if(e instanceof Kt)g=e.result;else{if(!(e instanceof Vt))throw e;g=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return D.fun(a)&&c.batchedUpdates((()=>{a(g,r,r.item)})),g})():l}function Bt(e,t){R(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Kt=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Vt=class extends Error{constructor(){super("SkipAnimationSignal")}},Ht=e=>e instanceof Ut,$t=1,Ut=class extends Ae{constructor(){super(...arguments),this.id=$t++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=nt(this);return e&&e.getValue()}to(...e){return z.to(this,e)}interpolate(...e){return qe(`${Ue}The "interpolate" function is deprecated in v9 (use "to" instead)`),z.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){De(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||q.sort(this),De(this,{type:"priority",parent:this,priority:e})}},Zt=Symbol.for("SpringPhase"),qt=e=>(1&e[Zt])>0,Gt=e=>(2&e[Zt])>0,Wt=e=>(4&e[Zt])>0,Yt=(e,t)=>t?e[Zt]|=3:e[Zt]&=-3,Xt=(e,t)=>t?e[Zt]|=4:e[Zt]&=-5,Qt=class extends Ut{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=Mt,this.toValues=null,this.fromValues=Mt,this.config=new class{constructor(){this.velocity=0,Object.assign(this,Tt)}},this.immediate=!1}},this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!D.und(e)||!D.und(t)){const n=D.obj(e)?{...e}:{...t,from:e};D.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Gt(this)||this._state.asyncTo)||Wt(this)}get goal(){return ze(this.animation.to)}get velocity(){const e=nt(this);return e instanceof at?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return qt(this)}get isAnimating(){return Gt(this)}get isPaused(){return Wt(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=ot(r.to);!a&&ke(r.to)&&(o=M(ze(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==st?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=D.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const p=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(D.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=p,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||p/10,r=i.clamp?0:i.bounce,l=!D.und(r),h=n==c?s.v0>0:n<c;let f,m=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(f=Math.abs(a)>t,f||(u=Math.abs(c-d)<=p,!u));++e){l&&(m=d==c||d>c==h,m&&(a=-a*r,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*g,d+=a*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=nt(this),l=s.getValue();if(t){const e=ze(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return c.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Gt(this)){const{to:e,config:t}=this.animation;c.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return D.und(e)?(n=this.queue||[],this.queue=[]):n=[D.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Ft(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Bt(this._state,e&&this._lastCallId),c.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=D.obj(n)?n[t]:n,(null==n||Pt(n))&&(n=void 0),r=D.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return qt(this)||(e.reverse&&([n,r]=[r,n]),r=ze(r),D.und(r)?nt(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,_t(e,((e,t)=>/^on/.test(t)?bt(e,n):e))),an(this,e,"onProps"),sn(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Rt(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Wt(this)||(Xt(this,!0),O(i.pauseQueue),sn(this,"onPause",Ot(this,Jt(this,this.animation.to)),this))},resume:()=>{Wt(this)&&(Xt(this,!1),Gt(this)&&this._resume(),O(i.resumeQueue),sn(this,"onResume",Ot(this,Jt(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=en(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(jt(this));const r=!D.und(e.to),o=!D.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(jt(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:l,from:u}=s;let{to:d=l,from:p=u}=e;!o||r||t.default&&!D.und(d)||(d=p),t.reverse&&([d,p]=[p,d]);const h=!A(p,u);h&&(s.from=p),p=ze(p);const f=!A(d,l);f&&this._focus(d);const m=Pt(t.to),{config:g}=s,{decay:v,velocity:y}=g;(r||o)&&(g.velocity=0),t.config&&!m&&function(e,t,n){n&&(It(n={...n},t),t={...n,...t}),It(e,t),Object.assign(e,t);for(const t in Tt)null==e[t]&&(e[t]=Tt[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;D.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(g,vt(t.config,i),t.config!==a.config?vt(a.config,i):void 0);let b=nt(this);if(!b||D.und(d))return n(Ot(this,!0));const w=D.und(t.reset)?o&&!t.default:!D.und(p)&&yt(t.reset,i),x=w?p:this.get(),_=kt(d),S=D.num(_)||D.arr(_)||We(_),C=!m&&(!S||yt(a.immediate||t.immediate,i));if(f){const e=pt(d);if(e!==b.constructor){if(!C)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(_)}}const E=b.constructor;let k=ke(d),z=!1;if(!k){const e=w||!qt(this)&&h;(f||e)&&(z=A(kt(x),_),k=!z),(A(s.immediate,C)||C)&&A(g.decay,v)&&A(g.velocity,y)||(k=!0)}if(z&&Gt(this)&&(s.changed&&!w?k=!0:k||this._stop(l)),!m&&((k||ke(l))&&(s.values=b.getPayload(),s.toValues=ke(d)?null:E==st?[1]:M(_)),s.immediate!=C&&(s.immediate=C,C||w||this._set(l)),k)){const{onRest:e}=s;T(on,(e=>an(this,t,e)));const r=Ot(this,Jt(this,l));O(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&c.batchedUpdates((()=>{s.changed=!w,e?.(r,this),w?vt(a.onRest,r):s.onStart?.(r,this)}))}w&&this._set(x),m?n(Lt(t.to,t,this._state,this)):k?this._start():Gt(this)&&!f?this._pendingCalls.add(n):n(Nt(x))}_focus(e){const t=this.animation;e!==t.to&&(Pe(this)&&this._detach(),t.to=e,Pe(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ke(t)&&(Ie(t,this),Ht(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ke(e)&&Me(e,this)}_set(e,t=!0){const n=ze(e);if(!D.und(n)){const e=nt(this);if(!e||!A(n,e.getValue())){const r=pt(n);e&&e.constructor==r?e.setValue(n):rt(this,r.create(n)),e&&c.batchedUpdates((()=>{this._onChange(n,t)}))}}return nt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,sn(this,"onStart",Ot(this,Jt(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),vt(this.animation.onChange,e,this)),vt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;nt(this).reset(ze(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Gt(this)||(Yt(this,!0),Wt(this)||this._resume())}_resume(){z.skipAnimation?this.finish():q.start(this)}_stop(e,t){if(Gt(this)){Yt(this,!1);const n=this.animation;T(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),De(this,{type:"idle",parent:this});const r=t?jt(this.get()):Ot(this.get(),Jt(this,e??n.to));O(this._pendingCalls,r),n.changed&&(n.changed=!1,sn(this,"onRest",r,this))}}};function Jt(e,t){const n=kt(t);return A(kt(e.get()),n)}function en(e,t=e.loop,n=e.to){const r=vt(t);if(r){const o=!0!==r&&Et(r),i=(o||e).reverse,a=!o||o.reset;return tn({...e,loop:t,default:!1,pause:void 0,to:!i||Pt(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function tn(e){const{to:t,from:n}=e=Et(e),r=new Set;return D.obj(t)&&rn(t,r),D.obj(n)&&rn(n,r),e.keys=r.size?Array.from(r):null,e}function nn(e){const t=tn(e);return D.und(t.default)&&(t.default=_t(t)),t}function rn(e,t){I(e,((e,n)=>null!=e&&t.add(n)))}var on=["onStart","onRest","onChange","onPause","onResume"];function an(e,t,n){e.animation[n]=t[n]!==wt(t,n)?bt(t[n],e.key):void 0}function sn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ln=["onStart","onChange","onRest"],cn=1,un=class{constructor(e,t){this.id=cn++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];D.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(tn(e)),this}start(e){let{queue:t}=this;return e?t=M(e).map(tn):this.queue=[],this._flush?this._flush(this,t):(vn(this,t),dn(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;T(M(t),(t=>n[t].stop(!!e)))}else Bt(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(D.und(e))this.start({pause:!0});else{const t=this.springs;T(M(e),(e=>t[e].pause()))}return this}resume(e){if(D.und(e))this.start({pause:!1});else{const t=this.springs;T(M(e),(e=>t[e].resume()))}return this}each(e){I(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,R(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&R(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,R(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}c.onFrame(this._onFrame)}};function dn(e,t){return Promise.all(t.map((t=>pn(e,t)))).then((t=>Ft(e,t)))}async function pn(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,u=D.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const d=D.arr(o)||D.fun(o)?o:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):T(ln,(n=>{const r=t[n];if(D.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}}));const p=e._state;t.pause===!p.paused?(p.paused=t.pause,O(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),f=!0===t.cancel||!0===wt(t,"cancel");(d||f&&p.asyncId)&&h.push(Rt(++e._lastAsyncId,{props:t,state:p,actions:{pause:P,resume:P,start(t,n){f?(Bt(p,e._lastAsyncId),n(jt(e))):(t.onRest=s,n(Lt(d,t,p,e)))}}})),p.paused&&await new Promise((e=>{p.resumeQueue.add(e)}));const m=Ft(e,await Promise.all(h));if(a&&m.finished&&(!n||!m.noop)){const n=en(t,a,o);if(n)return vn(e,[n]),pn(e,n,!0)}return l&&c.batchedUpdates((()=>l(m,e,e.item))),m}function hn(e,t){const n={...e.springs};return t&&T(M(t),(e=>{D.und(e.keys)&&(e=tn(e)),D.obj(e.to)||(e={...e,to:void 0}),gn(n,e,(e=>mn(e)))})),fn(e,n),n}function fn(e,t){I(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Ie(t,e))}))}function mn(e,t){const n=new Qt;return n.key=e,t&&Ie(n,t),n}function gn(e,t,n){t.keys&&T(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function vn(e,t){T(t,(t=>{gn(e.springs,t,(t=>mn(t,e)))}))}var yn,bn,wn=({children:e,...t})=>{const n=(0,o.useContext)(xn),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,o.useState)((()=>({inputs:t,result:e()}))),r=(0,o.useRef)(),i=r.current;let a=i;a?Boolean(t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.inputs))||(a={inputs:t,result:e()}):a=n;return(0,o.useEffect)((()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)}),[a]),a.result}((()=>({pause:r,immediate:i})),[r,i]);const{Provider:a}=xn;return o.createElement(a,{value:t},e)},xn=(yn=wn,bn={},Object.assign(yn,o.createContext(bn)),yn.Provider._context=yn,yn.Consumer._context=yn,yn);wn.Provider=xn.Provider,wn.Consumer=xn.Consumer;var _n=()=>{const e=[],t=function(t){Ge(`${Ue}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return T(e,((e,o)=>{if(D.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return T(e,(e=>e.pause(...arguments))),this},t.resume=function(){return T(e,(e=>e.resume(...arguments))),this},t.set=function(t){T(e,((e,n)=>{const r=D.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return T(e,((e,r)=>{if(D.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return T(e,(e=>e.stop(...arguments))),this},t.update=function(t){return T(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return D.fun(e)?e(n,t):e};return t._getProps=n,t};function Sn(e,t,n){const r=D.fun(t)&&t;r&&!n&&(n=[]);const i=(0,o.useMemo)((()=>r||3==arguments.length?_n():void 0),[]),a=(0,o.useRef)(0),s=Xe(),l=(0,o.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=hn(e,t);return a.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?dn(e,t):new Promise((r=>{fn(e,n),l.queue.push((()=>{r(dn(e,t))})),s()}))}})),[]),c=(0,o.useRef)([...l.ctrls]),u=[],d=et(e)||0;function p(e,n){for(let o=e;o<n;o++){const e=c.current[o]||(c.current[o]=new un(null,l.flush)),n=r?r(o,e):t[o];n&&(u[o]=nn(n))}}(0,o.useMemo)((()=>{T(c.current.slice(e,d),(e=>{Dt(e,i),e.stop(!0)})),c.current.length=e,p(d,e)}),[e]),(0,o.useMemo)((()=>{p(0,Math.min(d,e))}),n);const h=c.current.map(((e,t)=>hn(e,u[t]))),f=(0,o.useContext)(wn),m=et(f),g=f!==m&&zt(f);Ye((()=>{a.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],T(e,(e=>e()))),T(c.current,((e,t)=>{i?.add(e),g&&e.start({default:f});const n=u[t];n&&(At(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),Qe((()=>()=>{T(l.ctrls,(e=>e.stop(!0)))}));const v=h.map((e=>({...e})));return i?[v,i]:v}function Cn(e,t){const n=D.fun(e),[[r],o]=Sn(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}var En=class extends Ut{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ge(...t);const n=this._get(),r=pt(n);rt(this,r.create(n))}advance(e){const t=this._get();A(t,this.get())||(nt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&zn(this._active)&&Pn(this)}_get(){const e=D.arr(this.source)?this.source.map(ze):M(ze(this.source));return this.calc(...e)}_start(){this.idle&&!zn(this._active)&&(this.idle=!1,T(ot(this),(e=>{e.done=!1})),z.skipAnimation?(c.batchedUpdates((()=>this.advance())),Pn(this)):q.start(this))}_attach(){let e=1;T(M(this.source),(t=>{ke(t)&&Ie(t,this),Ht(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){T(M(this.source),(e=>{ke(e)&&Me(e,this)})),this._active.clear(),Pn(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=M(this.source).reduce(((e,t)=>Math.max(e,(Ht(t)?t.priority:0)+1)),0))}};function kn(e){return!1!==e.idle}function zn(e){return!e.size||Array.from(e).every(kn)}function Pn(e){e.idle||(e.idle=!0,T(ot(e),(e=>{e.done=!0})),De(e,{type:"idle",parent:e}))}z.assign({createStringInterpolator:$e,to:(e,t)=>new En(e,t)});q.advance;var Dn=n(73935),An=/^--/;function Tn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||An.test(e)||Mn.hasOwnProperty(e)&&Mn[e]?(""+t).trim():t+"px"}var In={};var Mn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Rn=["Webkit","Ms","Moz","O"];Mn=Object.keys(Mn).reduce(((e,t)=>(Rn.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Mn);var Fn=/^(matrix|translate|scale|rotate|skew)/,Nn=/^(translate)/,On=/^(rotate|skew)/,jn=(e,t)=>D.num(e)&&0!==e?e+t:e,Ln=(e,t)=>D.arr(e)?e.every((e=>Ln(e,t))):D.num(e)?e===t:parseFloat(e)===t,Bn=class extends ct{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>jn(e,"px"))).join(",")})`,Ln(e,0)]))),I(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(Fn.test(t)){if(delete r[t],D.und(e))return;const n=Nn.test(t)?"px":On.test(t)?"deg":"";o.push(M(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${jn(o,n)})`,Ln(o,0)]:e=>[`${t}(${e.map((e=>jn(e,n))).join(",")})`,Ln(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new Kn(o,i)),super(r)}},Kn=class extends Ae{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return T(this.inputs,((n,r)=>{const o=ze(n[0]),[i,a]=this.transforms[r](D.arr(o)?o:n.map(ze));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&T(this.inputs,(e=>T(e,(e=>ke(e)&&Ie(e,this)))))}observerRemoved(e){0==e&&T(this.inputs,(e=>T(e,(e=>ke(e)&&Me(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),De(this,e)}};z.assign({batchedUpdates:Dn.unstable_batchedUpdates,createStringInterpolator:$e,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Vn=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new ct(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=gt(e)||"Anonymous";return(e=D.str(e)?i[e]||(i[e]=ht(e,o)):e[mt]||(e[mt]=ht(e,o))).displayName=`Animated(${t})`,e};return I(e,((t,n)=>{D.arr(e)&&(n=gt(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:s,...l}=t,c=Object.values(l),u=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:In[t]||(In[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in r)if(r.hasOwnProperty(t)){const n=Tn(t,r[t]);An.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new Bn(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Hn=Vn.animated,$n=n(45071),Un=n(99666),Zn=n(85816),qn=n(83034),Gn=n(36590),Wn=n.n(Gn),Yn=n(14147);function Xn(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Qn(e,t,n){return(t=Xn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(n),!0).forEach((function(t){Qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tr(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}var nr=(e,t,n)=>{for(var r of Object.keys(e)){var o;if(e[r]!==(null!==(o=t[r])&&void 0!==o?o:n[r]))return!1}return!0},rr=e=>{var t=t=>{var n=e.defaultClassName,r=er(er({},e.defaultVariants),t);for(var o in r){var i,a=null!==(i=r[o])&&void 0!==i?i:e.defaultVariants[o];if(null!=a){var s=a;"boolean"==typeof s&&(s=!0===s?"true":"false");var l=e.variantClassNames[o][s];l&&(n+=" "+l)}}for(var[c,u]of e.compoundVariants)nr(c,r,e.defaultVariants)&&(n+=" "+u);return n};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return tr(e.variantClassNames,(e=>tr(e,(e=>e.split(" ")[0]))))}},t},or=rr({defaultClassName:"_96lriw3",variantClassNames:{isFocusVisible:{true:"_96lriw4"},isDisabled:{true:"_1yep5z6da"},isInline:{false:"_96lriw6 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jc _1yep5z6jd _1yep5z6je _1yep5z6kv _1yep5z6g5",true:"_96lriw7 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6gq _1yep5z6g3"}},defaultVariants:{},compoundVariants:[]}),ir=rr({defaultClassName:"_96lriw8 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6dy _1yep5z6f9",variantClassNames:{isInline:{false:"_96lriw9",true:"_96lriwa"}},defaultVariants:{},compoundVariants:[]}),ar=rr({defaultClassName:"_96lriw0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{isInline:{false:"_96lriw1",true:"_1yep5z69o _1yep5z69p _1yep5z69q"}},defaultVariants:{},compoundVariants:[]}),sr=o.forwardRef((({className:e,style:t,inputStyle:n,inputClassName:l,clearLabel:c,defaultValue:u,value:d,"data-block-id":p,"data-block-class":h,isInline:f=!0,label:m,footerStyle:g,footerClassName:v,...y},b)=>{let w=o.useRef(null),[x,_]=o.useState(d||u||""),{inputProps:S,labelProps:C}=(0,a.hR)({...y,value:d||x,onChange:e=>{y.onChange?.(e),_(e)},"aria-label":m},w),{isFocusVisible:E,focusProps:k}=(0,a.Fx)({isTextInput:!0});return(0,s.jsxs)(r.Group,{className:(0,i.AK)(ar({isInline:f}),"BaselineUI-SignatureTextInput",e),style:t,ref:b,"data-block-id":p,"data-block-class":h,children:[(0,s.jsx)("input",{...(0,a.dG)(S,k),className:(0,i.AK)(or({isFocusVisible:E,isDisabled:y.isDisabled,isInline:f}),l),ref:w,style:n}),(0,s.jsx)("div",{className:(0,i.AK)(f?void 0:"_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6fu _1yep5z6kv _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jl _1yep5z6jm _1yep5z6jn",v),style:g,children:w.current?.value?(0,s.jsx)(r.ActionButton,{label:c,variant:"ghost",size:f?"md":"sm",isDisabled:y.isDisabled||!x,onPress:()=>{_(""),y.onChange?.("")}}):(0,s.jsx)("label",{...C,"aria-disabled":"true",className:ir({isInline:f}),children:m})})]})}));sr.displayName="SignatureTextInput";var lr={prefix:String(Math.round(1e10*Math.random())),current:0},cr=(o.createContext(lr),o.createContext(!1));typeof window<"u"&&window.document&&window.document.createElement,new WeakMap;function ur(){return!1}function dr(){return!0}function pr(e){return()=>{}}function hr(){return"function"==typeof o.useSyncExternalStore?o.useSyncExternalStore(pr,ur,dr):(0,o.useContext)(cr)}o.useId;var fr=e=>{var t;return null!==(t=e?.ownerDocument)&&void 0!==t?t:document},mr=e=>{if(!e)return document;let t=e.getRootNode?e.getRootNode():document;return e.isConnected?t:null},gr=typeof document<"u"&&window.visualViewport;function vr(){return{width:gr&&gr?.width||window.innerWidth,height:gr&&gr?.height||window.innerHeight}}function yr(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}var br=rr({defaultClassName:"jzfzia3",variantClassNames:{isFocusVisible:{true:"jzfzia4"}},defaultVariants:{},compoundVariants:[]}),wr=({children:e})=>{let t=o.useRef(null),{focusProps:n,isFocusVisible:i}=(0,a.Fx)(),[l,c]=(0,r.useLocalStorage)("bui-devtools",{x:0,y:0}),{buttonProps:u}=(0,a.UW)({},t),[d,p]=Cn((()=>({left:l.x,top:l.y,config:{tension:600,friction:30}}))),h=o.useRef(null),f=function(){let e=hr(),[t,n]=(0,o.useState)((()=>e?{width:0,height:0}:vr()));return(0,o.useEffect)((()=>{let e=()=>{n((e=>{let t=vr();return t.width===e.width&&t.height===e.height?e:t}))};return gr?gr.addEventListener("resize",e):window.addEventListener("resize",e),()=>{gr?gr.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),t}(),{size:m={width:0,height:0}}=(0,r.useResizeObserver)({ref:h}),{moveProps:g}=(0,a.r_)({onMove:e=>{c((({x:t,y:n})=>{"keyboard"===e.pointerType&&(t=yr(t,0,f.width),n=yr(n,0,f.height));let r=e.shiftKey?10:1;return{x:t+=e.deltaX*r,y:n+=e.deltaY*r}}))}});return(0,$n.useGranularLayoutEffect)((()=>{p.start({left:yr(l.x,0,f.width-m.width),top:yr(l.y,0,f.height-m.height)})}),[l],[p,f,m]),(0,s.jsx)(r.Portal,{children:(0,s.jsxs)(Hn.div,{role:"toolbar",ref:h,className:"jzfzia1 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6d7 _1yep5z6gq _1yep5z6fs _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6f0",style:d,children:[(0,s.jsx)("button",{...(0,a.dG)(g,n,u),className:br({isFocusVisible:i}),ref:t,"aria-label":"Drag to move",children:(0,s.jsx)(Un.YAN,{className:"jzfzia5",size:20})}),(0,s.jsx)(r.Separator,{orientation:"vertical"}),e]})})};function xr(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function _r(){let e=xr(180,255),t=xr(180,255),n=xr(180,255);return`#${e.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}`}var Sr=[{id:"none",label:"None"},{id:"blockid",label:"Block ID"},{id:"classnames",label:"Class Names"}],Cr=({classStartsWith:e,onForceUpdate:t})=>{let n=o.useRef("none"),a=o.useRef(null),l=o.useRef(null),c=(0,o.useCallback)((()=>{let t,r=fr(a.current);if("blockid"===n.current)t=r.body.querySelectorAll("[data-block-id]");else{let n=r.body.querySelectorAll(`[class*="${e}"]`),o=l.current?.closest("[role='toolbar']");t=[...n].filter((t=>!o?.contains(t)&&[...t.classList].filter((t=>t.startsWith(e)))))}return[...t]}),[e]),u=(0,o.useCallback)((()=>{if(a.current&&(a.current.innerHTML="","none"!==n.current))for(let t of c()){let r=_r();t.style.outline=`2px solid ${r}`,t.style.outlineOffset="-2px";let o="blockid"===n.current?t.dataset.blockId:[...t.classList.values()].filter((t=>t.startsWith(e))).join(" "),i=t.getBoundingClientRect(),l=fr(t).createElement("div");Dn.render((0,s.jsx)(Er,{container:a.current||void 0,blockId:o||"",style:{top:`${i.top}px`,left:`${i.left}px`,backgroundColor:r}}),l),a.current?.append(l)}}),[e,c]);return(0,o.useLayoutEffect)((()=>{let e=fr(a.current),t=(e=>{if(e&&"window"in e&&e.window===e)return e;let t=mr(e);return t instanceof ShadowRoot?t.ownerDocument.defaultView||window:t?.defaultView||window})(a.current);return a.current=e.createElement("div"),e.body.append(a.current),t.addEventListener("resize",u),()=>{a.current?.remove(),t.removeEventListener("resize",u)}}),[u]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.Select,{placement:"bottom start",onSelectionChange:e=>{(0,i.kG)(a.current,"containerRef.current"),a.current.innerHTML="",n.current=e,"none"===e?t():u()},defaultSelectedKey:"none",items:Sr,ref:l,"aria-label":"Select debug type"}),(0,s.jsx)(r.ActionIconButton,{icon:Un.Pnb,size:"md",onPress:u,"aria-label":"Refresh"})]})};function Er({blockId:e,style:t,container:n}){return(0,s.jsx)(r.Portal,{portalContainer:n,children:(0,s.jsx)("div",{style:t,className:"jzfzia0",children:(0,s.jsx)(r.Text,{className:(0,Zn.Kj)({padding:"xs"}),style:{color:"black"},type:"value",size:"sm",children:e})})})}var kr=o.forwardRef((({className:e,style:t,children:n,classStartsWith:r="BaselineUI"},i)=>{let[a,l]=o.useState(0),c=(0,o.useMemo)((()=>()=>{l((e=>e+1))}),[]);return(0,s.jsxs)("div",{className:e,style:t,ref:i,children:[(0,s.jsx)(wr,{children:(0,s.jsx)("div",{className:"jzfzia2 _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6i9 _1yep5z6ia _1yep5z6ib",children:(0,s.jsx)(Cr,{classStartsWith:r,onForceUpdate:c})})}),(0,s.jsx)(o.Fragment,{children:n},a)]})}));kr.displayName="Devtools";var zr=o.forwardRef((({className:e,minWidth:t=10,maxWidth:n=Number.MAX_SAFE_INTEGER,height:a=96,strokeWidth:l=1,strokeColor:c="#3F87EA",fillColor:u="#AFFCFE",fontColor:d="#3F87EA",fontFamily:p="Arial",text:h,subText:f,style:m,label:g=(0,s.jsx)(r.MessageFormat,{id:"preview",defaultMessage:"Preview"}),"data-block-id":v,"data-block-class":y,onDimensionsChange:b,...w},x)=>{let _=(f?.6:.7)*a,[S,C]=o.useState(_),[E,k]=o.useState(Math.min(t,n)),z=o.useRef(null);return(0,$n.useGranularLayoutEffect)((()=>{if(!h||!z.current)return;let e=48+(0,i.Zw)({text:h,fontFamily:"Arial",fontWeight:"bold",fontSize:S}).width,r=48+(0,i.Zw)({text:h,fontFamily:"Arial",fontWeight:"bold",fontSize:_}).width,o=_,s=Math.max(e,t);(e>n||r>n)&&(o=(0,i.TI)({text:h,maxWidth:n-48,fontFamily:"Arial",fontWeight:"bold",initialFontSize:_}),s=o<_?n:r),C(o),k(s),b?.({width:s,height:a})}),[h],[S,t,b]),(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.2",width:E,height:Math.round(a),viewBox:`0 0 ${E} ${Math.round(a)}`,className:(0,i.AK)("BaselineUI-Stamp",e),style:m,ref:x,role:"img",fontFamily:p,"data-block-id":v,"data-block-class":y,...w,children:[(0,s.jsx)("title",{children:g}),(0,s.jsx)("rect",{width:E-2*l,height:a-2*l,fill:u,rx:7,ry:7,strokeWidth:l,stroke:c,x:l,y:l}),(0,s.jsx)("text",{x:E/2,textAnchor:"middle",fontWeight:"bold",fontSize:S,fill:d,dominantBaseline:"central",y:f?.4*a:a/2,ref:z,children:h}),f?(0,s.jsx)("text",{x:E/2,textAnchor:"middle",fontSize:.175*a,fill:d,dominantBaseline:"central",y:.85*a,children:f}):null]})}));zr.displayName="Stamp";var Pr=rr({defaultClassName:"oub0v60 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie",variantClassNames:{hasName:{true:"_1yep5z6ut _1yep5z6uu _1yep5z6uv"}},defaultVariants:{},compoundVariants:[]}),Dr="oub0v67",Ar=rr({defaultClassName:"oub0v62 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isInline:{true:"_1yep5z6142 _1yep5z6143 _1yep5z6144"}},defaultVariants:{},compoundVariants:[]}),Tr=rr({defaultClassName:"oub0v64 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jc _1yep5z6jd _1yep5z6je _1yep5z69l _1yep5z69m _1yep5z69n",variantClassNames:{isInline:{true:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6142 _1yep5z6143 _1yep5z6144",false:"_1yep5z613n _1yep5z613o _1yep5z613p _1yep5z614w _1yep5z614x _1yep5z614y"}},defaultVariants:{},compoundVariants:[]}),Ir="_1yep5z6e3 _1yep5z6eu",Mr=o.forwardRef((({className:e,style:t,reactions:n,name:o,content:a,description:l,menuProps:c,avatarProps:u,avatarNode:d,isInline:p=!0,children:h,contentStringType:f="text","data-block-id":m,"data-block-class":g,"data-comment-id":v},y)=>(0,s.jsxs)("div",{className:(0,i.AK)(Pr({hasName:!!o}),"BaselineUI-Comment",e),style:t,ref:y,"data-block-id":m,"data-comment-id":v,"data-block-class":g,children:[(0,s.jsxs)("div",{className:Ar({isInline:p}),children:[(0,s.jsxs)("div",{className:Tr({isInline:p}),children:[d?(0,s.jsx)(r.DomNodeRenderer,{node:d}):u?(0,s.jsx)(r.Avatar,{...u,size:"md"}):null,(0,s.jsxs)(r.Box,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",children:[o?(0,s.jsx)(r.Text,{type:"subtitle",size:"sm",className:"BaselineUI-Comment-Name",children:o}):null,(0,s.jsx)(r.Text,{type:"helper",size:"sm",className:"BaselineUI-Comment-Description",children:l})]})]}),c?(0,s.jsx)(r.Menu,{placement:"bottom end",renderTrigger:({buttonProps:e,ref:t})=>(0,s.jsx)(r.ActionIconButton,{...e,size:"sm",variant:"secondary",icon:qn.nX,"aria-label":c["aria-label"],ref:t}),...c}):null]}),(0,s.jsx)(r.Box,{paddingLeft:p&&u?"2xl":void 0,children:(0,s.jsxs)(r.Box,{paddingLeft:p&&u?"lg":void 0,display:"flex",gap:"md",flexDirection:"column",children:["string"==typeof a&&"html"===f?(0,s.jsx)("div",{className:(0,i.AK)(Ir,Dr),dangerouslySetInnerHTML:{__html:Wn().sanitize(a)}}):(0,s.jsx)("div",{className:(0,i.AK)(Ir,Dr),children:a}),!!n?.length&&(0,s.jsx)("div",{className:Ar({isInline:!0}),children:n.map((e=>(0,s.jsx)(r.Reaction,{...e},e.id)))}),h]})})]})));Mr.displayName="Comment";var Rr=rr({defaultClassName:"hhkx3s8 _1yep5z6ky _1yep5z6l6 _1yep5z6eu _1yep5z6fs",variantClassNames:{size:{xs:"hhkx3s9 _1yep5z6oz _1yep5z6p0 _1yep5z6p1 _1yep5z6mn _1yep5z6mo _1yep5z6mp _1yep5z6z6",sm:"hhkx3sa _1yep5z6p2 _1yep5z6p3 _1yep5z6p4 _1yep5z6mq _1yep5z6mr _1yep5z6ms _1yep5z6z9",md:"hhkx3sb _1yep5z6p2 _1yep5z6p3 _1yep5z6p4 _1yep5z6mq _1yep5z6mr _1yep5z6ms _1yep5z6zc"}},defaultVariants:{},compoundVariants:[]}),Fr=rr({defaultClassName:"hhkx3s3 _1yep5z6ev",variantClassNames:{size:{xs:"_1yep5z6z6",sm:"_1yep5z6z9",md:"_1yep5z6zc"},isDisabled:{true:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Nr={xs:"hhkx3s0",sm:"hhkx3s1",md:"hhkx3s2"},Or=o.forwardRef((({className:e,style:t,size:n="md",isDisabled:l,isDecrementButtonDisabled:c,decrementAriaLabel:u,incrementAriaLabel:d,isIncrementButtonDisabled:p,"data-block-id":h,"data-block-class":f,onDecrementPress:m,onIncrementPress:g,description:v,descriptionAriaLabel:y,label:b,onChange:w,componentHandleRef:x,..._},S)=>{let C=(0,Yn.Kf)(),E=o.useRef(null),k=(0,a.Me)(),z=(0,a.Me)(),[P,D]=(0,o.useState)(_.value);(0,o.useEffect)((()=>{D(_.value)}),[_.value]),(0,o.useImperativeHandle)(x,(()=>({setValue:e=>{D(e)}})));let{inputProps:A}=(0,a.hR)({..._,value:P,isDisabled:l,onBlur:e=>{l||_.isReadOnly||(w?.(e.target.value),_.onBlur?.(e))},onChange:e=>{D(e)},onKeyDown:e=>{if(!l&&!_.isReadOnly){switch(e.key){case"Enter":w?.(e.target.value);break;case"ArrowUp":if(p)return;e.preventDefault(),g?.();break;case"ArrowDown":if(c)return;e.preventDefault(),m?.()}_.onKeyDown?.(e)}},"aria-labelledby":k,"aria-describedby":y?void 0:z},E),T="keyboard"===C;return(0,s.jsxs)(r.Box,{className:(0,i.AK)(Nr[n],e),display:"flex",flexDirection:"row",alignItems:"center","data-block-id":h,"data-block-class":f,style:t,ref:S,"aria-disabled":l,children:[(0,s.jsx)("span",{id:k,className:Fr({size:n,isDisabled:l}),children:b}),(0,s.jsxs)(r.Box,{display:"flex",flexDirection:"row",borderRadius:"sm",borderColor:"border.subtle",borderStyle:"solid",borderWidth:1,style:{height:"inherit"},children:[(0,s.jsx)(r.ActionIconButton,{icon:Un.BNd,elementType:"div",size:n,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-DecrementButton",UNSAFE_NON_INTERACTIVE:T,isDisabled:l||c||_.isReadOnly,onPress:m,"aria-label":u}),(0,s.jsx)(r.Separator,{orientation:"vertical"}),(0,s.jsx)("input",{...A,"aria-description":y,className:Rr({size:n})}),(0,s.jsx)(r.Separator,{orientation:"vertical"}),(0,s.jsx)(r.ActionIconButton,{icon:Un.QUb,elementType:"div",size:n,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-IncrementButton",UNSAFE_NON_INTERACTIVE:T,isDisabled:l||p||_.isReadOnly,onPress:g,"aria-label":d})]}),v?(0,s.jsx)("span",{id:z,className:Fr({size:n,isDisabled:l}),children:v}):null]})}));Or.displayName="TaggedPagination"},36590:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=_(Array.prototype.forEach),d=_(Array.prototype.pop),p=_(Array.prototype.push),h=_(String.prototype.toLowerCase),f=_(String.prototype.toString),m=_(String.prototype.match),g=_(String.prototype.replace),v=_(String.prototype.indexOf),y=_(String.prototype.trim),b=_(Object.prototype.hasOwnProperty),w=_(RegExp.prototype.test),x=S(TypeError);function _(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l(e,t,r)}}function S(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(e,n)}}function C(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function E(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function k(t){const n=s(null);for(const[r,o]of e(t))b(t,r)&&(Array.isArray(o)?n[r]=E(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=k(o):n[r]=o);return n}function z(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return _(n.get);if("function"==typeof n.value)return _(n.value)}e=r(e)}function n(){return null}return n}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"]),D=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"]),A=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"]),T=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"]),I=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"]),M=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=i(["#text"]),F=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"]),N=i(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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"]),O=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"]),j=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),B=a(/<%[\w\W]*|[\w\W]*%>/gm),K=a(/\${[\w\W]*}/gm),V=a(/^data-[\-\w.\u00B7-\uFFFF]/),H=a(/^aria-[\-\w]+$/),$=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=a(/^(?:\w+script|data):/i),Z=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=a(/^html$/i),G=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var W=Object.freeze({__proto__:null,MUSTACHE_EXPR:L,ERB_EXPR:B,TMPLIT_EXPR:K,DATA_ATTR:V,ARIA_ATTR:H,IS_ALLOWED_URI:$,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:Z,DOCTYPE_NAME:q,CUSTOM_ELEMENT:G});const Y={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},X=function(){return"undefined"==typeof window?null:window},Q=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));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}};function J(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X();const n=e=>J(e);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==Y.document)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:c,Node:_,Element:S,NodeFilter:E,NamedNodeMap:L=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:B,DOMParser:K,trustedTypes:V}=t,H=S.prototype,U=z(H,"cloneNode"),Z=z(H,"remove"),G=z(H,"nextSibling"),ee=z(H,"childNodes"),te=z(H,"parentNode");if("function"==typeof c){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ne,re="";const{implementation:oe,createNodeIterator:ie,createDocumentFragment:ae,getElementsByTagName:se}=r,{importNode:le}=o;let ce={};n.isSupported="function"==typeof e&&"function"==typeof te&&oe&&void 0!==oe.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:de,TMPLIT_EXPR:pe,DATA_ATTR:he,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:me,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ve}=W;let{IS_ALLOWED_URI:ye}=W,be=null;const we=C({},[...P,...D,...A,...I,...R]);let xe=null;const _e=C({},[...F,...N,...O,...j]);let Se=Object.seal(s(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}})),Ce=null,Ee=null,ke=!0,ze=!0,Pe=!1,De=!0,Ae=!1,Te=!0,Ie=!1,Me=!1,Re=!1,Fe=!1,Ne=!1,Oe=!1,je=!0,Le=!1;const Be="user-content-";let Ke=!0,Ve=!1,He={},$e=null;const Ue=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ze=null;const qe=C({},["audio","video","img","source","image","track"]);let Ge=null;const We=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Je=Qe,et=!1,tt=null;const nt=C({},[Ye,Xe,Qe],f);let rt=null;const ot=["application/xhtml+xml","text/html"],it="text/html";let at=null,st=null;const lt=r.createElement("form"),ct=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!st||st!==e){if(e&&"object"==typeof e||(e={}),e=k(e),rt=-1===ot.indexOf(e.PARSER_MEDIA_TYPE)?it:e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===rt?f:h,be=b(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,at):we,xe=b(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,at):_e,tt=b(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,f):nt,Ge=b(e,"ADD_URI_SAFE_ATTR")?C(k(We),e.ADD_URI_SAFE_ATTR,at):We,Ze=b(e,"ADD_DATA_URI_TAGS")?C(k(qe),e.ADD_DATA_URI_TAGS,at):qe,$e=b(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,at):Ue,Ce=b(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,at):{},Ee=b(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,at):{},He=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,ze=!1!==e.ALLOW_DATA_ATTR,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ae=e.SAFE_FOR_TEMPLATES||!1,Te=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Le=e.SANITIZE_NAMED_PROPS||!1,Ke=!1!==e.KEEP_CONTENT,Ve=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||$,Je=e.NAMESPACE||Qe,Se=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(ze=!1),Ne&&(Fe=!0),He&&(be=C({},R),xe=[],!0===He.html&&(C(be,P),C(xe,F)),!0===He.svg&&(C(be,D),C(xe,N),C(xe,j)),!0===He.svgFilters&&(C(be,A),C(xe,N),C(xe,j)),!0===He.mathMl&&(C(be,I),C(xe,O),C(xe,j))),e.ADD_TAGS&&(be===we&&(be=k(be)),C(be,e.ADD_TAGS,at)),e.ADD_ATTR&&(xe===_e&&(xe=k(xe)),C(xe,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&C(Ge,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&($e===Ue&&($e=k($e)),C($e,e.FORBID_CONTENTS,at)),Ke&&(be["#text"]=!0),Ie&&C(be,["html","head","body"]),be.table&&(C(be,["tbody"]),delete Ce.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,re=ne.createHTML("")}else void 0===ne&&(ne=Q(V,a)),null!==ne&&"string"==typeof re&&(re=ne.createHTML(""));i&&i(e),st=e}},dt=C({},["mi","mo","mn","ms","mtext"]),pt=C({},["foreignobject","annotation-xml"]),ht=C({},["title","style","font","a","script"]),ft=C({},[...D,...A,...T]),mt=C({},[...I,...M]),gt=function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});const n=h(e.tagName),r=h(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Xe?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Ye?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(ft[n]):e.namespaceURI===Ye?t.namespaceURI===Qe?"math"===n:t.namespaceURI===Xe?"math"===n&&pt[r]:Boolean(mt[n]):e.namespaceURI===Qe?!(t.namespaceURI===Xe&&!pt[r])&&!(t.namespaceURI===Ye&&!dt[r])&&!mt[n]&&(ht[n]||!ft[n]):!("application/xhtml+xml"!==rt||!tt[e.namespaceURI]))},vt=function(e){p(n.removed,{element:e});try{te(e).removeChild(e)}catch(t){Z(e)}},yt=function(e,t){try{p(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(Fe||Ne)try{vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){let t=null,n=null;if(Re)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===rt&&Je===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ne?ne.createHTML(e):e;if(Je===Qe)try{t=(new K).parseFromString(o,rt)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?re:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Je===Qe?se.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},wt=function(e){return ie.call(e.ownerDocument||e,e,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},xt=function(e){return e instanceof B&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof L)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},_t=function(e){return"function"==typeof _&&e instanceof _},St=function(e,t,r){ce[e]&&u(ce[e],(e=>{e.call(n,t,r,st)}))},Ct=function(e){let t=null;if(St("beforeSanitizeElements",e,null),xt(e))return vt(e),!0;const r=at(e.nodeName);if(St("uponSanitizeElement",e,{tagName:r,allowedTags:be}),e.hasChildNodes()&&!_t(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return vt(e),!0;if(e.nodeType===Y.progressingInstruction)return vt(e),!0;if(Te&&e.nodeType===Y.comment&&w(/<[/\w]/g,e.data))return vt(e),!0;if(!be[r]||Ce[r]){if(!Ce[r]&&kt(r)){if(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,r))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))return!1}if(Ke&&!$e[r]){const t=te(e)||e.parentNode,n=ee(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=U(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,G(e))}}return vt(e),!0}return e instanceof S&&!gt(e)?(vt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ae&&e.nodeType===Y.text&&(t=e.textContent,u([ue,de,pe],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(n.removed,{element:e.cloneNode()}),e.textContent=t)),St("afterSanitizeElements",e,null),!1):(vt(e),!0)},Et=function(e,t,n){if(je&&("id"===t||"name"===t)&&(n in r||n in lt))return!1;if(ze&&!Ee[t]&&w(he,t));else if(ke&&w(fe,t));else if(!xe[t]||Ee[t]){if(!(kt(e)&&(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&w(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ge[t]);else if(w(ye,g(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!Ze[e])if(Pe&&!w(me,g(n,ge,"")));else if(n)return!1;return!0},kt=function(e){return"annotation-xml"!==e&&m(e,ve)},zt=function(e){St("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:l}=i,c=at(a);let p="value"===a?l:y(l);if(r.attrName=c,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,St("uponSanitizeAttribute",e,r),p=r.attrValue,Te&&w(/((--!?|])>)|<\/(style|title)/i,p)){yt(a,e);continue}if(r.forceKeepAttr)continue;if(yt(a,e),!r.keepAttr)continue;if(!De&&w(/\/>/i,p)){yt(a,e);continue}Ae&&u([ue,de,pe],(e=>{p=g(p,e," ")}));const h=at(e.nodeName);if(Et(h,c,p)){if(!Le||"id"!==c&&"name"!==c||(yt(a,e),p=Be+p),ne&&"object"==typeof V&&"function"==typeof V.getAttributeType)if(s);else switch(V.getAttributeType(h,c)){case"TrustedHTML":p=ne.createHTML(p);break;case"TrustedScriptURL":p=ne.createScriptURL(p)}try{s?e.setAttributeNS(s,a,p):e.setAttribute(a,p),xt(e)?vt(e):d(n.removed)}catch(e){}}}St("afterSanitizeAttributes",e,null)},Pt=function e(t){let n=null;const r=wt(t);for(St("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)St("uponSanitizeShadowNode",n,null),Ct(n)||(n.content instanceof l&&e(n.content),zt(n));St("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,s=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!_t(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Me||ut(t),n.removed=[],"string"==typeof e&&(Ve=!1),Ve){if(e.nodeName){const t=at(e.nodeName);if(!be[t]||Ce[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof _)r=bt("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===Y.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Fe&&!Ae&&!Ie&&-1===e.indexOf("<"))return ne&&Oe?ne.createHTML(e):e;if(r=bt(e),!r)return Fe?null:Oe?re:""}r&&Re&&vt(r.firstChild);const c=wt(Ve?e:r);for(;a=c.nextNode();)Ct(a)||(a.content instanceof l&&Pt(a.content),zt(a));if(Ve)return e;if(Fe){if(Ne)for(s=ae.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(xe.shadowroot||xe.shadowrootmode)&&(s=le.call(o,s,!0)),s}let d=Ie?r.outerHTML:r.innerHTML;return Ie&&be["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&w(q,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Ae&&u([ue,de,pe],(e=>{d=g(d,e," ")})),ne&&Oe?ne.createHTML(d):d},n.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Me=!0},n.clearConfig=function(){st=null,Me=!1},n.isValidAttribute=function(e,t,n){st||ut({});const r=at(e),o=at(t);return Et(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(ce[e]=ce[e]||[],p(ce[e],t))},n.removeHook=function(e){if(ce[e])return d(ce[e])},n.removeHooks=function(e){ce[e]&&(ce[e]=[])},n.removeAllHooks=function(){ce={}},n}return J()}()},72810:(e,t,n)=>{"use strict";n.d(t,{j:()=>d});var r=n(8840),o=n(67294),i=n(73935),a=n(85893);function s(e){(0,r.kG)(!e||e.filter(Boolean).every((e=>e instanceof u||"string"==typeof e||"number"==typeof e||"function"==typeof e||o.isValidElement(e))),"The children must be an array of Block instances, React elements, strings, function or numbers.")}var l="data-block-id",c="data-block-class",u=class e{id;className;_container;_component;_props;_children=[];parent;constructor(e,t,n={}){n?.container?this._container=n.container:(this._container=(n.ownerDocument||document).createElement("div"),this._container.style.display="contents");const{children:r,...o}=t;this._component=e,this._props=o,this.id=t[l]||`__@Block@__${crypto.getRandomValues(new Uint32Array(1))[0].toString(16)}`,this.className=t[c],this.children=r?.flat()||[]}_setParent(e){this.parent=e}get props(){return this._props}set props(e){if(e.children)throw new Error("Do not pass children in the props. Use the `children` setter instead.");this._props=e,this.id=this._props[l]||this.id,this.className=this._props[c]}createComponent(t){const n=this._component,o=this._children.map(((t,n)=>t instanceof e?t.createComponent(n):t))??[];o.some((e=>"function"==typeof e))&&(0,r.kG)(1===o.length,"The children must be a single function.");const{children:i,...s}=this._props,l=!o.length,c=1===o.length?o[0]:o,u=this._props.key||t;return l?(0,a.jsx)(n,{...s},u):(0,a.jsx)(n,{...s,children:c},u)}get children(){return this._children}set children(t){const n=Array.isArray(t)?t:[t],r=n.flat();s(r);for(const t of r)t instanceof e&&t._setParent(this);this._children=n}prependChildren(...e){const t=e.flat();return s(t),this._children=[...t,...this._children],this}appendChildren(...e){const t=e.flat();return s(t),this._children=[...this._children,...t],this}insertBefore(t,...n){const o="string"==typeof t?t:t.id;(0,r.kG)(o,"The block must have an id.");const i=this.getBlockById(o);if(i instanceof e){const t=i.parent;if(t){const r=t.children.findIndex((t=>t instanceof e&&t.id&&t.id===o));t.children.splice(r,0,...n)}}return this}insertAfter(t,...n){const o="string"==typeof t?t:t.id;(0,r.kG)(o,"The block must have an id.");const i=this.getBlockById(o);if(i instanceof e){const t=i.parent;if(t){const r=t.children.findIndex((t=>t instanceof e&&t.id&&t.id===o));t.children.splice(r+1,0,...n)}}return this}replace(t,...n){const o="string"==typeof t?t:t.id;(0,r.kG)(o,"The block must have an id.");const i=this.getBlockById(o);if(i instanceof e){const t=i.parent;if(t){const r=t.children.findIndex((t=>t instanceof e&&t.id&&t.id===o));t.children.splice(r,1,...n)}}return this}getBlockById(t){const n=this._getChild(t);if(n instanceof e)return n;for(const n of this._children)if(n instanceof e){const e=n.getBlockById(t);if(e)return e}}getBlocksByClass(t){const n=[];this.className===t&&n.push(this);for(const r of this._children)if(r instanceof e){const e=r.getBlocksByClass(t);e&&n.push(...e)}return n}getBlocksByComponent(t){const n=[];this._component===t&&n.push(this);for(const r of this._children)if(r instanceof e){const e=r.getBlocksByComponent(t);e&&n.push(...e)}return n}_getChild(t){return t instanceof e?this._children.find((n=>n instanceof e&&n===t)):this._children.find((n=>n instanceof e&&n.id===t))}_removeChild(t){const n=this._children.findIndex((n=>n instanceof e&&n.id===t));-1!==n&&this._children.splice(n,1)}removeChildById(t){this._removeChild(t);for(const n of this.children)n instanceof e&&n.removeChildById(t)}createDOMNode(e){const t=this.createComponent();return i.render(t,e||this._container),this._container}mergeProps(e){return this._props={...this._props,...e},this.id=this._props[l]||this.id,this.className=this._props[c],this}setProp(e,t){return this._props={...this._props,[e]:t},this.id=this._props[l]||this.id,this.className=this._props[c],this}toJS(){const t="string"==typeof this._component?this._component:this._component.displayName;return{id:this.id,group:this.className,component:t,props:this._props,children:this.children.map((t=>t instanceof e?t.toJS():{value:t}))}}};function d(e,t={},...n){return new u(e,{...t,children:n})}},67185:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Accordion:()=>pI,AccordionItem:()=>fI,ActionButton:()=>BD,ActionGroup:()=>HF,ActionGroupItem:()=>$F,ActionIconButton:()=>oA,AlertDialog:()=>pF,AudioPlayer:()=>bF,Avatar:()=>SI,Box:()=>vD,ButtonSelect:()=>AF,Checkbox:()=>qT,ColorInput:()=>AM,ColorSwatch:()=>sM,ColorSwatchPicker:()=>UF,ComboBox:()=>LF,DateFormat:()=>tI,Dialog:()=>qA,DialogTitle:()=>GA,DomNodeRenderer:()=>$D,Drawer:()=>TA,Editor:()=>aF,FileUpload:()=>zT,FreehandCanvas:()=>KM,GridList:()=>VF,Group:()=>aR,I18nProvider:()=>yA,IconColorInput:()=>IM,IconColorInputButton:()=>zM,IconSelect:()=>wI,IconSlider:()=>sT,ImageDropZone:()=>WM,ImageGallery:()=>PF,InlineAlert:()=>KI,Link:()=>xT,ListBox:()=>kD,Markdown:()=>mF,Menu:()=>bT,MessageFormat:()=>iR,Modal:()=>BA,ModalClose:()=>$I,ModalContent:()=>$A,ModalTrigger:()=>HI,NumberFormat:()=>MT,NumberInput:()=>iA,Pagination:()=>eI,Popover:()=>AD,PopoverContent:()=>QA,PopoverTrigger:()=>FD,Portal:()=>WA,PortalContainerProvider:()=>kA,Preview:()=>QM,ProgressBar:()=>AT,ProgressSpinner:()=>BT,RadioGroup:()=>oR,Reaction:()=>OT,ScrollControlButton:()=>cF,SearchInput:()=>mT,Select:()=>bI,Separator:()=>mD,Slider:()=>aA,Switch:()=>pT,TabItem:()=>TI,Tabs:()=>AI,TagGroup:()=>iI,Text:()=>DA,TextInput:()=>IT,ThemeProvider:()=>jA,ToggleButton:()=>HT,ToggleIconButton:()=>SR,Toolbar:()=>gR,Tooltip:()=>aT,Transform:()=>qM,Transition:()=>lF,defineMessages:()=>wA,isInsideOverlayContent:()=>ID,isRect:()=>MD,useCollator:()=>Jn.Xe,useDateFormatter:()=>Jn.aQ,useDevice:()=>CA,useI18n:()=>bA,useImage:()=>uA,useIntersectionObserver:()=>lA,useIsFirstRender:()=>dA,useLocalStorage:()=>_A,useMutationObserver:()=>xA,useNumberFormatter:()=>Jn.Ux,usePortalContainer:()=>zA,useResizeObserver:()=>cA,useTextSelection:()=>SA,useUndoRedo:()=>gA,useUserPreferences:()=>FA});var r={};n.r(r),n.d(r,{decode:()=>AE,encode:()=>ME,format:()=>RE,parse:()=>qE});var o={};n.r(o),n.d(o,{Any:()=>GE,Cc:()=>WE,Cf:()=>YE,P:()=>XE,S:()=>QE,Z:()=>JE});var i={};n.r(i),n.d(i,{arrayReplaceAt:()=>_k,assign:()=>xk,escapeHtml:()=>Rk,escapeRE:()=>Nk,fromCodePoint:()=>Ck,has:()=>wk,isMdAsciiPunct:()=>Bk,isPunctChar:()=>Lk,isSpace:()=>Ok,isString:()=>yk,isValidEntityCode:()=>Sk,isWhiteSpace:()=>jk,lib:()=>Vk,normalizeReference:()=>Kk,unescapeAll:()=>Dk,unescapeMd:()=>Pk});var a={};n.r(a),n.d(a,{parseLinkDestination:()=>$k,parseLinkLabel:()=>Hk,parseLinkTitle:()=>Uk});var s=n(8840),l=n(67294),c=n.t(l,2);function u(e,t,n){let[r,o]=(0,l.useState)(e||t),i=(0,l.useRef)(void 0!==e),a=void 0!==e;(0,l.useEffect)((()=>{let e=i.current;e!==a&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a}),[a]);let s=a?e:r,c=(0,l.useCallback)(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(s,e)||n(e,...t)),a||(s=e)};if("function"==typeof e){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o(((n,...o)=>{let i=e(a?s:n,...o);return r(i,...t),a?n:i}))}else a||o(e),r(e,...t)}),[a,s,n]);return[s,c]}function d(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}var p=P(),h=e=>C(e,p),f=P();h.write=e=>C(e,f);var m=P();h.onStart=e=>C(e,m);var g=P();h.onFrame=e=>C(e,g);var v=P();h.onFinish=e=>C(e,v);var y=[];h.setTimeout=(e,t)=>{const n=h.now()+t,r=()=>{const e=y.findIndex((e=>e.cancel==r));~e&&y.splice(e,1),_-=~e?1:0},o={time:n,handler:e,cancel:r};return y.splice(b(n),0,o),_+=1,E(),o};var b=e=>~(~y.findIndex((t=>t.time>e))||~y.length);h.cancel=e=>{m.delete(e),g.delete(e),v.delete(e),p.delete(e),f.delete(e)},h.sync=e=>{S=!0,h.batchedUpdates(e),S=!1},h.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,h.onStart(n)}return r.handler=e,r.cancel=()=>{m.delete(n),t=null},r};var w="undefined"!=typeof window?window.requestAnimationFrame:()=>{};h.use=e=>w=e,h.now="undefined"!=typeof performance?()=>performance.now():Date.now,h.batchedUpdates=e=>e(),h.catch=console.error,h.frameLoop="always",h.advance=()=>{"demand"!==h.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):z()};var x=-1,_=0,S=!1;function C(e,t){S?(t.delete(e),e(0)):(t.add(e),E())}function E(){x<0&&(x=0,"demand"!==h.frameLoop&&w(k))}function k(){~x&&(w(k),h.batchedUpdates(z))}function z(){const e=x;x=h.now();const t=b(x);t&&(D(y.splice(0,t),(e=>e.handler())),_-=t),_?(m.flush(),p.flush(e?Math.min(64,x-e):16.667),g.flush(),f.flush(),v.flush()):x=-1}function P(){let e=new Set,t=e;return{add(n){_+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(_-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,_-=t.size,D(t,(t=>t(n)&&e.add(t))),_+=e.size,t=e)}}}function D(e,t){e.forEach((e=>{try{t(e)}catch(e){h.catch(e)}}))}var A=Object.defineProperty,T={};function I(){}((e,t)=>{for(var n in t)A(e,n,{get:t[n],enumerable:!0})})(T,{assign:()=>Z,colors:()=>H,createStringInterpolator:()=>L,skipAnimation:()=>$,to:()=>B,willAdvance:()=>U});var M={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function R(e,t){if(M.arr(e)){if(!M.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var F=(e,t)=>e.forEach(t);function N(e,t,n){if(M.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var O=e=>M.und(e)?[]:M.arr(e)?e:[e];function j(e,t){if(e.size){const n=Array.from(e);e.clear(),F(n,t)}}var L,B,K=(e,...t)=>j(e,(e=>e(...t))),V=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),H=null,$=!1,U=I,Z=e=>{e.to&&(B=e.to),e.now&&(h.now=e.now),void 0!==e.colors&&(H=e.colors),null!=e.skipAnimation&&($=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&h.use(e.requestAnimationFrame),e.batchedUpdates&&(h.batchedUpdates=e.batchedUpdates),e.willAdvance&&(U=e.willAdvance),e.frameLoop&&(h.frameLoop=e.frameLoop)},q=new Set,G=[],W=[],Y=0,X={get idle(){return!q.size&&!G.length},start(e){Y>e.priority?(q.add(e),h.onStart(Q)):(J(e),h(te))},advance:te,sort(e){if(Y)h.onFrame((()=>X.sort(e)));else{const t=G.indexOf(e);~t&&(G.splice(t,1),ee(e))}},clear(){G=[],q.clear()}};function Q(){q.forEach(J),q.clear(),h(te)}function J(e){G.includes(e)||ee(e)}function ee(e){G.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(G,(t=>t.priority>e.priority)),0,e)}function te(e){const t=W;for(let n=0;n<G.length;n++){const r=G[n];Y=r.priority,r.idle||(U(r),r.advance(e),r.idle||t.push(r))}return Y=0,(W=G).length=0,(G=t).length>0}var ne="[-+]?\\d*\\.?\\d+",re=ne+"%";function oe(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ie=new RegExp("rgb"+oe(ne,ne,ne)),ae=new RegExp("rgba"+oe(ne,ne,ne,ne)),se=new RegExp("hsl"+oe(ne,re,re)),le=new RegExp("hsla"+oe(ne,re,re,ne)),ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ue=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,de=/^#([0-9a-fA-F]{6})$/,pe=/^#([0-9a-fA-F]{8})$/;function he(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fe(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=he(o,r,e+1/3),a=he(o,r,e),s=he(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function me(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ge(e){return(parseFloat(e)%360+360)%360/360}function ve(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ye(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=de.exec(e))?parseInt(t[1]+"ff",16)>>>0:H&&void 0!==H[e]?H[e]:(t=ie.exec(e))?(me(t[1])<<24|me(t[2])<<16|me(t[3])<<8|255)>>>0:(t=ae.exec(e))?(me(t[1])<<24|me(t[2])<<16|me(t[3])<<8|ve(t[4]))>>>0:(t=ce.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=pe.exec(e))?parseInt(t[1],16)>>>0:(t=ue.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=se.exec(e))?(255|fe(ge(t[1]),ye(t[2]),ye(t[3])))>>>0:(t=le.exec(e))?(fe(ge(t[1]),ye(t[2]),ye(t[3]))|ve(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var we=(e,t,n)=>{if(M.fun(e))return e;if(M.arr(e))return we({range:e,output:t,extrapolate:n});if(M.str(e.output[0]))return L(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}};var xe=1.70158,_e=1.525*xe,Se=xe+1,Ce=2*Math.PI/3,Ee=2*Math.PI/4.5,ke=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},ze={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Se*e*e*e-xe*e*e,easeOutBack:e=>1+Se*Math.pow(e-1,3)+xe*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-_e)/2:(Math.pow(2*e-2,2)*((_e+1)*(2*e-2)+_e)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Ce),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Ce)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Ee)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Ee)/2+1,easeInBounce:e=>1-ke(1-e),easeOutBounce:ke,easeInOutBounce:e=>e<.5?(1-ke(1-2*e))/2:(1+ke(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},Pe=Symbol.for("FluidValue.get"),De=Symbol.for("FluidValue.observers"),Ae=e=>Boolean(e&&e[Pe]),Te=e=>e&&e[Pe]?e[Pe]():e,Ie=e=>e[De]||null;function Me(e,t){const n=e[De];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Re=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Fe(this,e)}},Fe=(e,t)=>Le(e,Pe,t);function Ne(e,t){if(e[Pe]){let n=e[De];n||Le(e,De,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Oe(e,t){const n=e[De];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[De]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var je,Le=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Be=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ke=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ve=new RegExp(`(${Be.source})(%|[a-z]+)`,"i"),He=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,$e=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ue=e=>{const[t,n]=Ze(e);if(!t||V())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&$e.test(n)?Ue(n):n||e},Ze=e=>{const t=$e.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},qe=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,Ge=e=>{je||(je=H?new RegExp(`(${Object.keys(H).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Te(e).replace($e,Ue).replace(Ke,be).replace(je,be))),n=t.map((e=>e.match(Be).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),o=r.map((t=>we({...e,output:t})));return e=>{const n=!Ve.test(t[0])&&t.find((e=>Ve.test(e)))?.replace(Be,"");let r=0;return t[0].replace(Be,(()=>`${o[r++](e)}${n||""}`)).replace(He,qe)}},We="react-spring: ",Ye=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${We}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Xe=Ye(console.warn);var Qe=Ye(console.warn);function Je(e){return M.str(e)&&("#"==e[0]||/\d/.test(e)||!V()&&$e.test(e)||e in(H||{}))}var et=V()?l.useEffect:l.useLayoutEffect;function tt(){const e=(0,l.useState)()[1],t=(()=>{const e=(0,l.useRef)(!1);return et((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var nt=e=>(0,l.useEffect)(e,rt),rt=[];function ot(e){const t=(0,l.useRef)();return(0,l.useEffect)((()=>{t.current=e})),t.current}var it=()=>{const[e,t]=(0,l.useState)(null);return et((()=>{const e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),Z({skipAnimation:e.matches})};return n(e),e.addEventListener?e.addEventListener("change",n):e.addListener(n),()=>{e.removeEventListener?e.removeEventListener("change",n):e.removeListener(n)}}),[]),e},at=Symbol.for("Animated:node"),st=e=>e&&e[at],lt=(e,t)=>{return n=e,r=at,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},ct=e=>e&&e[at]&&e[at].getPayload(),ut=class{constructor(){lt(this,this)}getPayload(){return this.payload||[]}},dt=class extends ut{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,M.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new dt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return M.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,M.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},pt=class extends dt{constructor(e){super(0),this._string=null,this._toString=we({output:[e,e]})}static create(e){return new pt(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(M.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=we({output:[this.getValue(),e]})),this._value=0,super.reset()}},ht={dependencies:null},ft=class extends ut{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return N(this.source,((n,r)=>{var o;(o=n)&&o[at]===o?t[r]=n.getValue(e):Ae(n)?t[r]=Te(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&F(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return N(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ht.dependencies&&Ae(e)&&ht.dependencies.add(e);const t=ct(e);t&&F(t,(e=>this.add(e)))}},mt=class extends ft{constructor(e){super(e)}static create(e){return new mt(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(gt)),!0)}};function gt(e){return(Je(e)?pt:dt).create(e)}function vt(e){const t=st(e);return t?t.constructor:M.arr(e)?mt:Je(e)?pt:dt}var yt=(e,t)=>{const n=!M.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,l.forwardRef)(((r,o)=>{const i=(0,l.useRef)(null),a=n&&(0,l.useCallback)((e=>{i.current=function(e,t){e&&(M.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[s,c]=function(e,t){const n=new Set;ht.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new ft(e),ht.dependencies=null,[e,n]}(r,t),u=tt(),d=()=>{const e=i.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&u()},p=new bt(d,c),f=(0,l.useRef)();et((()=>(f.current=p,F(c,(e=>Ne(e,p))),()=>{f.current&&(F(f.current.deps,(e=>Oe(e,f.current))),h.cancel(f.current.update))}))),(0,l.useEffect)(d,[]),nt((()=>()=>{const e=f.current;F(e.deps,(t=>Oe(t,e)))}));const m=t.getComponentProps(s.getValue());return l.createElement(e,{...m,ref:a})}))},bt=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&h.write(this.update)}};var wt=Symbol.for("AnimatedComponent"),xt=e=>M.str(e)?e:e&&M.str(e.displayName)?e.displayName:M.fun(e)&&e.name||null;function _t(e,...t){return M.fun(e)?e(...t):e}var St=(e,t)=>!0===e||!!(t&&e&&(M.fun(e)?e(t):O(e).includes(t))),Ct=(e,t)=>M.obj(e)?t&&e[t]:e,Et=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,kt=e=>e,zt=(e,t=kt)=>{let n=Pt;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);M.und(n)||(r[o]=n)}return r},Pt=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Dt={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function At(e){const t=function(e){const t={};let n=0;if(N(e,((e,r)=>{Dt[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return N(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function Tt(e){return e=Te(e),M.arr(e)?e.map(Tt):Je(e)?T.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function It(e){for(const t in e)return!0;return!1}function Mt(e){return M.fun(e)||M.arr(e)&&M.obj(e[0])}function Rt(e,t){e.ref?.delete(e),t?.delete(e)}function Ft(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Nt={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Ot={...Nt.default,mass:1,damping:1,easing:ze.linear,clamp:!1};function jt(e,t){if(M.und(t.decay)){const n=!M.und(t.tension)||!M.und(t.friction);!n&&M.und(t.frequency)&&M.und(t.damping)&&M.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Lt=[];function Bt(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,c,u=St(n.cancel??r?.cancel,t);if(u)f();else{M.und(n.pause)||(o.paused=St(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||St(e,t)),l=_t(n.delay||0,t),e?(o.resumeQueue.add(p),i.pause()):(i.resume(),p())}function d(){o.resumeQueue.add(p),o.timeouts.delete(c),c.cancel(),l=c.time-h.now()}function p(){l>0&&!T.skipAnimation?(o.delayed=!0,c=h.setTimeout(f,l),o.pauseQueue.add(d),o.timeouts.add(c)):f()}function f(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(c),e<=(o.cancelId||0)&&(u=!0);try{i.start({...n,callId:e,cancel:u},a)}catch(e){s(e)}}}))}var Kt=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?$t(e.get()):t.every((e=>e.noop))?Vt(e.get()):Ht(e.get(),t.every((e=>e.finished))),Vt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ht=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),$t=e=>({value:e,cancelled:!0,finished:!1});function Ut(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=zt(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const p=new Promise(((e,t)=>(u=e,d=t))),f=e=>{const t=o<=(n.cancelId||0)&&$t(r)||o!==n.asyncId&&Ht(r,!1);if(t)throw e.result=t,d(e),e},m=(e,t)=>{const i=new qt,a=new Gt;return(async()=>{if(T.skipAnimation)throw Zt(n),a.result=Ht(r,!1),d(a),a;f(i);const s=M.obj(e)?{...e}:{...t,to:e};s.parentId=o,N(c,((e,t)=>{M.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return f(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let g;if(T.skipAnimation)return Zt(n),Ht(r,!1);try{let t;t=M.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),p]),g=Ht(r.get(),!0,!1)}catch(e){if(e instanceof qt)g=e.result;else{if(!(e instanceof Gt))throw e;g=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return M.fun(a)&&h.batchedUpdates((()=>{a(g,r,r.item)})),g})():l}function Zt(e,t){j(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var qt=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Gt=class extends Error{constructor(){super("SkipAnimationSignal")}},Wt=e=>e instanceof Xt,Yt=1,Xt=class extends Re{constructor(){super(...arguments),this.id=Yt++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=st(this);return e&&e.getValue()}to(...e){return T.to(this,e)}interpolate(...e){return Xe(`${We}The "interpolate" function is deprecated in v9 (use "to" instead)`),T.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Me(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||X.sort(this),Me(this,{type:"priority",parent:this,priority:e})}},Qt=Symbol.for("SpringPhase"),Jt=e=>(1&e[Qt])>0,en=e=>(2&e[Qt])>0,tn=e=>(4&e[Qt])>0,nn=(e,t)=>t?e[Qt]|=3:e[Qt]&=-3,rn=(e,t)=>t?e[Qt]|=4:e[Qt]&=-5,on=class extends Xt{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=Lt,this.toValues=null,this.fromValues=Lt,this.config=new class{constructor(){this.velocity=0,Object.assign(this,Ot)}},this.immediate=!1}},this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!M.und(e)||!M.und(t)){const n=M.obj(e)?{...e}:{...t,from:e};M.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(en(this)||this._state.asyncTo)||tn(this)}get goal(){return Te(this.animation.to)}get velocity(){const e=st(this);return e instanceof dt?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Jt(this)}get isAnimating(){return en(this)}get isPaused(){return tn(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=ct(r.to);!a&&Ae(r.to)&&(o=O(Te(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==pt?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=M.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const p=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(M.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=p,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||p/10,r=i.clamp?0:i.bounce,l=!M.und(r),h=n==c?s.v0>0:n<c;let f,m=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(f=Math.abs(a)>t,f||(u=Math.abs(c-d)<=p,!u));++e){l&&(m=d==c||d>c==h,m&&(a=-a*r,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*g,d+=a*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=st(this),l=s.getValue();if(t){const e=Te(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return h.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(en(this)){const{to:e,config:t}=this.animation;h.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return M.und(e)?(n=this.queue||[],this.queue=[]):n=[M.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Kt(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Zt(this._state,e&&this._lastCallId),h.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=M.obj(n)?n[t]:n,(null==n||Mt(n))&&(n=void 0),r=M.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return Jt(this)||(e.reverse&&([n,r]=[r,n]),r=Te(r),M.und(r)?st(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,zt(e,((e,t)=>/^on/.test(t)?Ct(e,n):e))),pn(this,e,"onProps"),hn(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Bt(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{tn(this)||(rn(this,!0),K(i.pauseQueue),hn(this,"onPause",Ht(this,an(this,this.animation.to)),this))},resume:()=>{tn(this)&&(rn(this,!1),en(this)&&this._resume(),K(i.resumeQueue),hn(this,"onResume",Ht(this,an(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=sn(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n($t(this));const r=!M.und(e.to),o=!M.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n($t(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!o||r||t.default&&!M.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!R(d,c);p&&(s.from=d),d=Te(d);const f=!R(u,l);f&&this._focus(u);const m=Mt(t.to),{config:g}=s,{decay:v,velocity:y}=g;(r||o)&&(g.velocity=0),t.config&&!m&&function(e,t,n){n&&(jt(n={...n},t),t={...n,...t}),jt(e,t),Object.assign(e,t);for(const t in Ot)null==e[t]&&(e[t]=Ot[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;M.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(g,_t(t.config,i),t.config!==a.config?_t(a.config,i):void 0);let b=st(this);if(!b||M.und(u))return n(Ht(this,!0));const w=M.und(t.reset)?o&&!t.default:!M.und(d)&&St(t.reset,i),x=w?d:this.get(),_=Tt(u),S=M.num(_)||M.arr(_)||Je(_),C=!m&&(!S||St(a.immediate||t.immediate,i));if(f){const e=vt(u);if(e!==b.constructor){if(!C)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(_)}}const E=b.constructor;let k=Ae(u),z=!1;if(!k){const e=w||!Jt(this)&&p;(f||e)&&(z=R(Tt(x),_),k=!z),(R(s.immediate,C)||C)&&R(g.decay,v)&&R(g.velocity,y)||(k=!0)}if(z&&en(this)&&(s.changed&&!w?k=!0:k||this._stop(l)),!m&&((k||Ae(l))&&(s.values=b.getPayload(),s.toValues=Ae(u)?null:E==pt?[1]:O(_)),s.immediate!=C&&(s.immediate=C,C||w||this._set(l)),k)){const{onRest:e}=s;F(dn,(e=>pn(this,t,e)));const r=Ht(this,an(this,l));K(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&h.batchedUpdates((()=>{s.changed=!w,e?.(r,this),w?_t(a.onRest,r):s.onStart?.(r,this)}))}w&&this._set(x),m?n(Ut(t.to,t,this._state,this)):k?this._start():en(this)&&!f?this._pendingCalls.add(n):n(Vt(x))}_focus(e){const t=this.animation;e!==t.to&&(Ie(this)&&this._detach(),t.to=e,Ie(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ae(t)&&(Ne(t,this),Wt(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ae(e)&&Oe(e,this)}_set(e,t=!0){const n=Te(e);if(!M.und(n)){const e=st(this);if(!e||!R(n,e.getValue())){const r=vt(n);e&&e.constructor==r?e.setValue(n):lt(this,r.create(n)),e&&h.batchedUpdates((()=>{this._onChange(n,t)}))}}return st(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,hn(this,"onStart",Ht(this,an(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),_t(this.animation.onChange,e,this)),_t(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;st(this).reset(Te(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),en(this)||(nn(this,!0),tn(this)||this._resume())}_resume(){T.skipAnimation?this.finish():X.start(this)}_stop(e,t){if(en(this)){nn(this,!1);const n=this.animation;F(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Me(this,{type:"idle",parent:this});const r=t?$t(this.get()):Ht(this.get(),an(this,e??n.to));K(this._pendingCalls,r),n.changed&&(n.changed=!1,hn(this,"onRest",r,this))}}};function an(e,t){const n=Tt(t);return R(Tt(e.get()),n)}function sn(e,t=e.loop,n=e.to){const r=_t(t);if(r){const o=!0!==r&&At(r),i=(o||e).reverse,a=!o||o.reset;return ln({...e,loop:t,default:!1,pause:void 0,to:!i||Mt(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function ln(e){const{to:t,from:n}=e=At(e),r=new Set;return M.obj(t)&&un(t,r),M.obj(n)&&un(n,r),e.keys=r.size?Array.from(r):null,e}function cn(e){const t=ln(e);return M.und(t.default)&&(t.default=zt(t)),t}function un(e,t){N(e,((e,n)=>null!=e&&t.add(n)))}var dn=["onStart","onRest","onChange","onPause","onResume"];function pn(e,t,n){e.animation[n]=t[n]!==Et(t,n)?Ct(t[n],e.key):void 0}function hn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var fn=["onStart","onChange","onRest"],mn=1,gn=class{constructor(e,t){this.id=mn++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];M.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ln(e)),this}start(e){let{queue:t}=this;return e?t=O(e).map(ln):this.queue=[],this._flush?this._flush(this,t):(Sn(this,t),vn(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;F(O(t),(t=>n[t].stop(!!e)))}else Zt(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(M.und(e))this.start({pause:!0});else{const t=this.springs;F(O(e),(e=>t[e].pause()))}return this}resume(e){if(M.und(e))this.start({pause:!1});else{const t=this.springs;F(O(e),(e=>t[e].resume()))}return this}each(e){N(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,j(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&j(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,j(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}h.onFrame(this._onFrame)}};function vn(e,t){return Promise.all(t.map((t=>yn(e,t)))).then((t=>Kt(e,t)))}async function yn(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=M.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=M.arr(o)||M.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):F(fn,(n=>{const r=t[n];if(M.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,K(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),f=!0===t.cancel||!0===Et(t,"cancel");(u||f&&d.asyncId)&&p.push(Bt(++e._lastAsyncId,{props:t,state:d,actions:{pause:I,resume:I,start(t,n){f?(Zt(d,e._lastAsyncId),n($t(e))):(t.onRest=s,n(Ut(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const m=Kt(e,await Promise.all(p));if(a&&m.finished&&(!n||!m.noop)){const n=sn(t,a,o);if(n)return Sn(e,[n]),yn(e,n,!0)}return l&&h.batchedUpdates((()=>l(m,e,e.item))),m}function bn(e,t){const n={...e.springs};return t&&F(O(t),(e=>{M.und(e.keys)&&(e=ln(e)),M.obj(e.to)||(e={...e,to:void 0}),_n(n,e,(e=>xn(e)))})),wn(e,n),n}function wn(e,t){N(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Ne(t,e))}))}function xn(e,t){const n=new on;return n.key=e,t&&Ne(n,t),n}function _n(e,t,n){t.keys&&F(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Sn(e,t){F(t,(t=>{_n(e.springs,t,(t=>xn(t,e)))}))}var Cn,En,kn=({children:e,...t})=>{const n=(0,l.useContext)(zn),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,l.useState)((()=>({inputs:t,result:e()}))),r=(0,l.useRef)(),o=r.current;let i=o;if(i){const n=Boolean(t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.inputs));n||(i={inputs:t,result:e()})}else i=n;return(0,l.useEffect)((()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:r,immediate:o})),[r,o]);const{Provider:i}=zn;return l.createElement(i,{value:t},e)},zn=(Cn=kn,En={},Object.assign(Cn,l.createContext(En)),Cn.Provider._context=Cn,Cn.Consumer._context=Cn,Cn);kn.Provider=zn.Provider,kn.Consumer=zn.Consumer;var Pn=()=>{const e=[],t=function(t){Qe(`${We}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return F(e,((e,o)=>{if(M.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return F(e,(e=>e.pause(...arguments))),this},t.resume=function(){return F(e,(e=>e.resume(...arguments))),this},t.set=function(t){F(e,((e,n)=>{const r=M.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return F(e,((e,r)=>{if(M.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return F(e,(e=>e.stop(...arguments))),this},t.update=function(t){return F(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return M.fun(e)?e(n,t):e};return t._getProps=n,t};function Dn(e,t,n){const r=M.fun(t)&&t;r&&!n&&(n=[]);const o=(0,l.useMemo)((()=>r||3==arguments.length?Pn():void 0),[]),i=(0,l.useRef)(0),a=tt(),s=(0,l.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=bn(e,t);return i.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?vn(e,t):new Promise((r=>{wn(e,n),s.queue.push((()=>{r(vn(e,t))})),a()}))}})),[]),c=(0,l.useRef)([...s.ctrls]),u=[],d=ot(e)||0;function p(e,n){for(let o=e;o<n;o++){const e=c.current[o]||(c.current[o]=new gn(null,s.flush)),n=r?r(o,e):t[o];n&&(u[o]=cn(n))}}(0,l.useMemo)((()=>{F(c.current.slice(e,d),(e=>{Rt(e,o),e.stop(!0)})),c.current.length=e,p(d,e)}),[e]),(0,l.useMemo)((()=>{p(0,Math.min(d,e))}),n);const h=c.current.map(((e,t)=>bn(e,u[t]))),f=(0,l.useContext)(kn),m=ot(f),g=f!==m&&It(f);et((()=>{i.current++,s.ctrls=c.current;const{queue:e}=s;e.length&&(s.queue=[],F(e,(e=>e()))),F(c.current,((e,t)=>{o?.add(e),g&&e.start({default:f});const n=u[t];n&&(Ft(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),nt((()=>()=>{F(s.ctrls,(e=>e.stop(!0)))}));const v=h.map((e=>({...e})));return o?[v,o]:v}function An(e,t){const n=M.fun(e),[[r],o]=Dn(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}function Tn(e,t,n){const r=M.fun(t)&&t,{reset:o,sort:i,trail:a=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:u,ref:d,config:p}=r?r():t,h=(0,l.useMemo)((()=>r||3==arguments.length?Pn():void 0),[]),f=O(e),m=[],g=(0,l.useRef)(null),v=o?null:g.current;et((()=>{g.current=m})),nt((()=>(F(m,(e=>{h?.add(e.ctrl),e.ctrl.ref=h})),()=>{F(g.current,(e=>{e.expired&&clearTimeout(e.expirationId),Rt(e.ctrl,h),e.ctrl.stop(!0)}))})));const y=Mn(f,r?r():t,v),b=o&&g.current||[];et((()=>F(b,(({ctrl:e,item:t,key:n})=>{Rt(e,h),_t(u,t,n)}))));const w=[];if(v&&F(v,((e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=w[t]=y.indexOf(e.key))&&(m[t]=e)})),F(f,((e,t)=>{m[t]||(m[t]={key:y[t],item:e,phase:"mount",ctrl:new gn},m[t].ctrl.item=e)})),w.length){let e=-1;const{leave:n}=r?r():t;F(w,((t,r)=>{const o=v[r];~t?(e=m.indexOf(o),m[e]={...o,item:f[t]}):n&&m.splice(++e,0,o)}))}M.fun(i)&&m.sort(((e,t)=>i(e.item,t.item)));let x=-a;const _=tt(),S=zt(t),C=new Map,E=(0,l.useRef)(new Map),k=(0,l.useRef)(!1);F(m,((e,n)=>{const o=e.key,i=e.phase,l=r?r():t;let u,h;const f=_t(l.delay||0,o);if("mount"==i)u=l.enter,h="enter";else{const e=y.indexOf(o)<0;if("leave"!=i)if(e)u=l.leave,h="leave";else{if(!(u=l.update))return;h="update"}else{if(e)return;u=l.enter,h="enter"}}if(u=_t(u,e.item,n),u=M.obj(u)?At(u):{to:u},!u.config){const t=p||S.config;u.config=_t(t,e.item,n,h)}x+=a;const m={...S,delay:f+x,ref:d,immediate:l.immediate,reset:!1,...u};if("enter"==h&&M.und(m.from)){const o=r?r():t,i=M.und(o.initial)||v?o.from:o.initial;m.from=_t(i,e.item,n)}const{onResolve:b}=m;m.onResolve=e=>{_t(b,e);const t=g.current,n=t.find((e=>e.key===o));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every((e=>e.ctrl.idle));if("leave"==n.phase){const t=_t(s,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(_,r)))}}e&&t.some((e=>e.expired))&&(E.current.delete(n),c&&(k.current=!0),_())}};const w=bn(e.ctrl,m);"leave"===h&&c?E.current.set(e,{phase:h,springs:w,payload:m}):C.set(e,{phase:h,springs:w,payload:m})}));const z=(0,l.useContext)(kn),P=ot(z),D=z!==P&&It(z);et((()=>{D&&F(m,(e=>{e.ctrl.start({default:z})}))}),[z]),F(C,((e,t)=>{if(E.current.size){const e=m.findIndex((e=>e.key===t.key));m.splice(e,1)}})),et((()=>{F(E.current.size?E.current:C,(({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,h?.add(r),D&&"enter"==e&&r.start({default:z}),t&&(Ft(r,t.ref),!r.ref&&!h||k.current?(r.start(t),k.current&&(k.current=!1)):r.update(t))}))}),o?void 0:n);const A=e=>l.createElement(l.Fragment,null,m.map(((t,n)=>{const{springs:r}=C.get(t)||t.ctrl,o=e({...r},t.item,t,n);return o&&o.type?l.createElement(o.type,{...o.props,key:M.str(t.key)||M.num(t.key)?t.key:t.ctrl.id,ref:o.ref}):o})));return h?[A,h]:A}var In=1;function Mn(e,{key:t,keys:n=t},r){if(null===n){const t=new Set;return e.map((e=>{const n=r&&r.find((n=>n.item===e&&"leave"!==n.phase&&!t.has(n)));return n?(t.add(n),n.key):In++}))}return M.und(n)?e:M.fun(n)?e.map(n):O(n)}var Rn=class extends Xt{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=we(...t);const n=this._get(),r=vt(n);lt(this,r.create(n))}advance(e){const t=this._get();R(t,this.get())||(st(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Nn(this._active)&&On(this)}_get(){const e=M.arr(this.source)?this.source.map(Te):O(Te(this.source));return this.calc(...e)}_start(){this.idle&&!Nn(this._active)&&(this.idle=!1,F(ct(this),(e=>{e.done=!1})),T.skipAnimation?(h.batchedUpdates((()=>this.advance())),On(this)):X.start(this))}_attach(){let e=1;F(O(this.source),(t=>{Ae(t)&&Ne(t,this),Wt(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){F(O(this.source),(e=>{Ae(e)&&Oe(e,this)})),this._active.clear(),On(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=O(this.source).reduce(((e,t)=>Math.max(e,(Wt(t)?t.priority:0)+1)),0))}};function Fn(e){return!1!==e.idle}function Nn(e){return!e.size||Array.from(e).every(Fn)}function On(e){e.idle||(e.idle=!0,F(ct(e),(e=>{e.done=!0})),Me(e,{type:"idle",parent:e}))}T.assign({createStringInterpolator:Ge,to:(e,t)=>new Rn(e,t)});X.advance;var jn=n(73935),Ln=/^--/;function Bn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Ln.test(e)||Vn.hasOwnProperty(e)&&Vn[e]?(""+t).trim():t+"px"}var Kn={};var Vn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Hn=["Webkit","Ms","Moz","O"];Vn=Object.keys(Vn).reduce(((e,t)=>(Hn.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Vn);var $n=/^(matrix|translate|scale|rotate|skew)/,Un=/^(translate)/,Zn=/^(rotate|skew)/,qn=(e,t)=>M.num(e)&&0!==e?e+t:e,Gn=(e,t)=>M.arr(e)?e.every((e=>Gn(e,t))):M.num(e)?e===t:parseFloat(e)===t,Wn=class extends ft{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>qn(e,"px"))).join(",")})`,Gn(e,0)]))),N(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if($n.test(t)){if(delete r[t],M.und(e))return;const n=Un.test(t)?"px":Zn.test(t)?"deg":"";o.push(O(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${qn(o,n)})`,Gn(o,0)]:e=>[`${t}(${e.map((e=>qn(e,n))).join(",")})`,Gn(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new Yn(o,i)),super(r)}},Yn=class extends Re{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return F(this.inputs,((n,r)=>{const o=Te(n[0]),[i,a]=this.transforms[r](M.arr(o)?o:n.map(Te));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&F(this.inputs,(e=>F(e,(e=>Ae(e)&&Ne(e,this)))))}observerRemoved(e){0==e&&F(this.inputs,(e=>F(e,(e=>Ae(e)&&Oe(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Me(this,e)}};T.assign({batchedUpdates:jn.unstable_batchedUpdates,createStringInterpolator:Ge,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Xn=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new ft(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=xt(e)||"Anonymous";return(e=M.str(e)?i[e]||(i[e]=yt(e,o)):e[wt]||(e[wt]=yt(e,o))).displayName=`Animated(${t})`,e};return N(e,((t,n)=>{M.arr(e)&&(n=xt(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:s,...l}=t,c=Object.values(l),u=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:Kn[t]||(Kn[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in r)if(r.hasOwnProperty(t)){const n=Bn(t,r[t]);Ln.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new Wn(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Qn=Xn.animated,Jn=n(45688),er=(n(4479),n(1917),n(79185)),tr=(n(7220),n(68049)),nr=n(56406),rr=(n(32801),n(61621)),or=n(31417),ir=n(27436),ar=n(106),sr=n(49713),lr=n(52836),cr=n(7805),ur=n(1413),dr=(n(36624),n(18786),n(94464)),pr=n(94730),hr=n(52378),fr=n(98517),mr=n(35998),gr=n(85893),vr=n(99666),yr=n(85816),br=n(23652),wr=n(83034),xr=n(56479),_r=n(45071),Sr=n(41609),Cr=n.n(Sr);function Er(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function kr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r={};for(var o in e){var i=e[o],a=[...n,o];"string"==typeof i||"number"==typeof i||null==i?r[o]=t(i,a):"object"!=typeof i||Array.isArray(i)?console.warn('Skipping invalid key "'.concat(a.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"')):r[o]=kr(i,t,a)}return r}function zr(e,t){var n={};if("object"==typeof t){var r=e;kr(t,((e,t)=>{if(null!=e){var o=function(e,t){var n=e;for(var r of t){if(!(r in n))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));n=n[r]}return n}(r,t);n[Er(o)]=String(e)}}))}else{var o=e;for(var i in o){var a=o[i];null!=a&&(n[Er(i)]=a)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map((e=>"".concat(e,":").concat(this[e]))).join(";")},writable:!1}),n}var Pr,Dr=n(21722),Ar=n(31108),Tr=n(14147),Ir=n(1392);Pr={"ar-AE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"أداة انتقاء اللون",colorSwatch:"تغيير الألوان",transparent:"شفاف",twoDimensionalSlider:"مُنزلق 2D"},"bg-BG":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Средство за избиране на цвят",colorSwatch:"цветна мостра",transparent:"прозрачен",twoDimensionalSlider:"2D плъзгач"},"cs-CZ":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Výběr barvy",colorSwatch:"barevný vzorek",transparent:"průhledný",twoDimensionalSlider:"2D posuvník"},"da-DK":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Farvevælger",colorSwatch:"farveprøve",transparent:"gennemsigtig",twoDimensionalSlider:"2D-skyder"},"de-DE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Farbwähler",colorSwatch:"Farbfeld",transparent:"transparent",twoDimensionalSlider:"2D-Schieberegler"},"el-GR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Επιλογέας χρωμάτων",colorSwatch:"χρωματικό δείγμα",transparent:"διαφανές",twoDimensionalSlider:"Ρυθμιστικό 2D"},"en-US":{colorPicker:"Color picker",twoDimensionalSlider:"2D slider",colorNameAndValue:e=>`${e.name}: ${e.value}`,colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorSwatch:"color swatch",transparent:"transparent"},"es-ES":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selector de color",colorSwatch:"muestra de color",transparent:"transparente",twoDimensionalSlider:"Regulador 2D"},"et-EE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Värvivalija",colorSwatch:"värvinäidis",transparent:"läbipaistev",twoDimensionalSlider:"2D-liugur"},"fi-FI":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Värimuokkain",colorSwatch:"värimalli",transparent:"läpinäkyvä",twoDimensionalSlider:"2D-liukusäädin"},"fr-FR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name} : ${e.value}`,colorPicker:"Sélecteur de couleurs",colorSwatch:"Échantillon de couleurs",transparent:"Transparent",twoDimensionalSlider:"Curseur 2D"},"he-IL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"בוחר הצבעים",colorSwatch:"דוגמית צבע",transparent:"שקוף",twoDimensionalSlider:"מחוון דו מימדי"},"hr-HR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Odabir boje",colorSwatch:"uzorak boje",transparent:"transparentno",twoDimensionalSlider:"2D klizač"},"hu-HU":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Színválasztó",colorSwatch:"színtár",transparent:"átlátszó",twoDimensionalSlider:"2D-csúszka"},"it-IT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selettore colore",colorSwatch:"campione di colore",transparent:"trasparente",twoDimensionalSlider:"Cursore 2D"},"ja-JP":{colorInputLabel:e=>`${e.label}、${e.channelLabel}`,colorNameAndValue:e=>`${e.name} : ${e.value}`,colorPicker:"カラーピッカー",colorSwatch:"カラースウォッチ",transparent:"透明",twoDimensionalSlider:"2D スライダー"},"ko-KR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"색상 피커",colorSwatch:"색상 견본",transparent:"투명도",twoDimensionalSlider:"2D 슬라이더"},"lt-LT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Spalvų parinkiklis",colorSwatch:"spalvų pavyzdys",transparent:"skaidrus",twoDimensionalSlider:"2D slankiklis"},"lv-LV":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Krāsu atlasītājs",colorSwatch:"krāsu paraugs",transparent:"caurspīdīgs",twoDimensionalSlider:"2D slīdnis"},"nb-NO":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Fargevelger",colorSwatch:"fargekart",transparent:"gjennomsiktig",twoDimensionalSlider:"2D-glidebryter"},"nl-NL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Kleurkiezer",colorSwatch:"kleurstaal",transparent:"transparant",twoDimensionalSlider:"2D-schuifregelaar"},"pl-PL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Próbnik kolorów",colorSwatch:"próbka koloru",transparent:"przezroczysty",twoDimensionalSlider:"Suwak 2D"},"pt-BR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Seletor de cores",colorSwatch:"amostra de cores",transparent:"transparente",twoDimensionalSlider:"Controle deslizante 2D"},"pt-PT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Seletor de cores",colorSwatch:"amostra de cor",transparent:"transparente",twoDimensionalSlider:"Controle deslizante 2D"},"ro-RO":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selector de culori",colorSwatch:"specimen de culoare",transparent:"transparent",twoDimensionalSlider:"Glisor 2D"},"ru-RU":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Палитра цветов",colorSwatch:"цветовой образец",transparent:"прозрачный",twoDimensionalSlider:"Ползунок 2D"},"sk-SK":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Výber farieb",colorSwatch:"vzorkovník farieb",transparent:"transparentný",twoDimensionalSlider:"2D jazdec"},"sl-SI":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Izbirnik barv",colorSwatch:"barvna paleta",transparent:"prozorno",twoDimensionalSlider:"2D drsnik"},"sr-SP":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Birač boja",colorSwatch:"Uzorak boje",transparent:"providno",twoDimensionalSlider:"2D klizač"},"sv-SE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Färgväljaren",colorSwatch:"färgruta",transparent:"genomskinlig",twoDimensionalSlider:"2D-reglage"},"tr-TR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Renk Seçici",colorSwatch:"renk örneği",transparent:"saydam",twoDimensionalSlider:"2D sürgü"},"uk-UA":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Палітра кольорів",colorSwatch:"зразок кольору",transparent:"прозорий",twoDimensionalSlider:"Повзунок 2D"},"zh-CN":{colorInputLabel:e=>`${e.label}、${e.channelLabel}`,colorNameAndValue:e=>`${e.name}：${e.value}`,colorPicker:"拾色器",colorSwatch:"颜色色板",transparent:"透明",twoDimensionalSlider:"2D 滑块"},"zh-TW":{colorInputLabel:e=>`${e.label}，${e.channelLabel}`,colorNameAndValue:e=>`${e.name}：${e.value}`,colorPicker:"檢色器",colorSwatch:"色票",transparent:"透明",twoDimensionalSlider:"2D 滑桿"}};var Mr;Mr={"ar-AE":{alpha:"ألفا",black:"أسود",blue:"أزرق","blue purple":"أرجواني مزرق",brightness:"السطوع",brown:"بني","brown yellow":"أصفر بني",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"سماوي","cyan blue":"أزرق سماوي",dark:"داكن",gray:"رمادي",grayish:"مائل للرمادي",green:"أخضر","green cyan":"سماوي مخضر",hue:"درجة اللون",light:"فاتح",lightness:"الإضاءة",magenta:"أرجواني","magenta pink":"أرجواني وردي",orange:"برتقالي","orange yellow":"أصفر برتقالي",pale:"باهت",pink:"وردي","pink red":"أحمر وردي",purple:"أرجواني","purple magenta":"بنفسجي",red:"أحمر","red orange":"برتقالي محمر",saturation:"التشبع",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} شفاف`,"very dark":"داكن جدًا","very light":"فاتح جدًا",vibrant:"ساطع",white:"أبيض",yellow:"أصفر","yellow green":"أخضر مصفر"},"bg-BG":{alpha:"Алфа",black:"черно",blue:"Синьо","blue purple":"синьо лилаво",brightness:"Яркост",brown:"кафяво","brown yellow":"кафяво жълто",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"циан","cyan blue":"циан синьо",dark:"тъмно",gray:"сиво",grayish:"сивкав",green:"Зелено","green cyan":"зелен циан",hue:"Оттенък",light:"светло",lightness:"Лекота",magenta:"магента","magenta pink":"магента розово",orange:"оранжево","orange yellow":"оранжево жълто",pale:"бледо",pink:"розово","pink red":"розово червено",purple:"лилаво","purple magenta":"лилаво магента",red:"Червено","red orange":"червен портокал",saturation:"Наситеност",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} прозрачен`,"very dark":"много тъмно","very light":"много светло",vibrant:" ярко",white:"бяло",yellow:"жълто","yellow green":"жълто зелен"},"cs-CZ":{alpha:"Alfa",black:"černá",blue:"Modrá","blue purple":"modrofialová",brightness:"Jas",brown:"hnědá","brown yellow":"hnědožlutá",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tyrkysová","cyan blue":"tyrkysovomodrá",dark:"tmavá",gray:"šedá",grayish:"našedlá",green:"Zelená","green cyan":"zelenotyrkysová",hue:"Odstín",light:"světlá",lightness:"Světlost",magenta:"purpurová","magenta pink":"purpurově růžová",orange:"oranžová","orange yellow":"oranžovožlutá",pale:"bledá",pink:"růžová","pink red":"růžovočervená",purple:"fialová","purple magenta":"fialově purpurová",red:"Červená","red orange":"červenooranžová",saturation:"Sytost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} průhledné`,"very dark":"velmi tmavá","very light":"velmi světlá",vibrant:"zářivá",white:"bílá",yellow:"žlutá","yellow green":"žlutozelená"},"da-DK":{alpha:"Alfa",black:"sort",blue:"Blå","blue purple":"blålilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyan blå",dark:"mørk",gray:"grå",grayish:"grålig",green:"Grøn","green cyan":"grøn cyan",hue:"Tone",light:"lys",lightness:"Lyshed",magenta:"magenta","magenta pink":"magenta pink",orange:"orange","orange yellow":"orangegul",pale:"bleg",pink:"lyserød","pink red":"lyserødlig rød",purple:"lilla","purple magenta":"lilla magenta",red:"Rød","red orange":"rødorange",saturation:"Farvemætning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gennemsigtig`,"very dark":"meget mørk","very light":"meget lys",vibrant:"klar",white:"hvid",yellow:"gul","yellow green":"gulgrøn"},"de-DE":{alpha:"Alpha",black:"Schwarz",blue:"Blau","blue purple":"Blaulila",brightness:"Helligkeit",brown:"Braun","brown yellow":"Braungelb",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Cyanblau",dark:"dunkles",gray:"Grau",grayish:"gräuliches",green:"Grün","green cyan":"Grüncyan",hue:"Farbton",light:"helles",lightness:"Leuchtkraft",magenta:"Magenta","magenta pink":"Magentarosa",orange:"Orange","orange yellow":"Orangegelb",pale:"blasses",pink:"Rosa","pink red":"Rosarot",purple:"Lila","purple magenta":"Lilamagenta",red:"Rot","red orange":"Rotorange",saturation:"Sättigung",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, zu ${e.percentTransparent} transparent`,"very dark":"sehr dunkles","very light":"sehr helles",vibrant:"lebhaftes",white:"Weiß",yellow:"Gelb","yellow green":"Gelbgrün"},"el-GR":{alpha:"Άλφα",black:"μαύρο",blue:"Μπλε","blue purple":"μπλε μωβ",brightness:"Φωτεινότητα",brown:"καφέ","brown yellow":"καφέ κίτρινο",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"κυανό","cyan blue":"κυανό μπλε",dark:"σκούρο",gray:"γκρι",grayish:"γκριζωπό",green:"Πράσινο","green cyan":"πράσινο κυανό",hue:"Τόνος",light:"ανοιχτό",lightness:"Φωτεινότητα",magenta:"ματζέντα","magenta pink":"ματζέντα ροζ",orange:"πορτοκαλί","orange yellow":"πορτοκαλί κίτρινο",pale:"ανοιχτό",pink:"ροζ","pink red":"ροζ κόκκινο",purple:"μωβ","purple magenta":"μωβ ματζέντα",red:"Κόκκινο","red orange":"κόκκινο πορτοκαλί",saturation:"Κορεσμός",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} διαφανές`,"very dark":"πολύ σκούρο","very light":"πολύ ανοιχτό",vibrant:"έντονο",white:"λευκό",yellow:"κίτρινο","yellow green":"κίτρινο πράσινο"},"en-US":{hue:"Hue",saturation:"Saturation",lightness:"Lightness",brightness:"Brightness",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"very dark",dark:"dark",light:"light","very light":"very light",pale:"pale",grayish:"grayish",vibrant:"vibrant",black:"black",white:"white",gray:"gray",pink:"pink","pink red":"pink red","red orange":"red orange",brown:"brown",orange:"orange","orange yellow":"orange yellow","brown yellow":"brown yellow",yellow:"yellow","yellow green":"yellow green","green cyan":"green cyan",cyan:"cyan","cyan blue":"cyan blue","blue purple":"blue purple",purple:"purple","purple magenta":"purple magenta",magenta:"magenta","magenta pink":"magenta pink"},"es-ES":{alpha:"Alpha",black:"negro",blue:"Azul","blue purple":"púrpura azulado",brightness:"Brillo",brown:"marrón","brown yellow":"amarillo amarronado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"azul cian",dark:"oscuro",gray:"gris",grayish:"grisáceo",green:"Verde","green cyan":"cian verdoso",hue:"Tono",light:"claro",lightness:"Luminosidad",magenta:"magenta","magenta pink":"rosa magenta",orange:"naranja","orange yellow":"amarillo anaranjado",pale:"pálido",pink:"rosa","pink red":"rojo rosado",purple:"morado","purple magenta":"magenta violáceo",red:"Rojo","red orange":"naranja rojizo",saturation:"Saturación",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muy oscuro","very light":"muy claro",vibrant:"intenso",white:"blanco",yellow:"amarillo","yellow green":"verde amarillento"},"et-EE":{alpha:"Alfa",black:"must",blue:"Sinine","blue purple":"sinakaslilla",brightness:"Heledus",brown:"pruun","brown yellow":"pruunikaskollane",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tsüaan","cyan blue":"tsüaansinine",dark:"tume",gray:"hall",grayish:"hallikas",green:"Roheline","green cyan":"tsüaanroheline",hue:"Värv",light:"valgus",lightness:"Valgus",magenta:"magentapunane","magenta pink":"magentaroosa",orange:"oranž","orange yellow":"oranžikaskollane",pale:"kahvatu",pink:"roosa","pink red":"vaarikapunane",purple:"lilla","purple magenta":"purpurne magenta",red:"Punane","red orange":"punakasoranž",saturation:"Küllastus",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} läbipaistev`,"very dark":"väga tume","very light":"väga hele",vibrant:"ere",white:"valge",yellow:"kollane","yellow green":"kollakasroheline"},"fi-FI":{alpha:"Alpha",black:"musta",blue:"Sininen","blue purple":"sinivioletti",brightness:"Kirkkaus",brown:"ruskea","brown yellow":"ruskeankeltainen",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"syaani","cyan blue":"syaaninsininen",dark:"tumma",gray:"harmaa",grayish:"harmahtava",green:"Vihreä","green cyan":"vihreänsyaani",hue:"Sävy",light:"vaalea",lightness:"Valomäärä",magenta:"magenta","magenta pink":"magentapinkki",orange:"oranssi","orange yellow":"oranssinkeltainen",pale:"vaalea",pink:"pinkki","pink red":"vaaleanpunainen",purple:"violetti","purple magenta":"violettimagenta",red:"Punainen","red orange":"punaoranssi",saturation:"Värikylläisyys",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} läpinäkyvä`,"very dark":"hyvin tumma","very light":"erittäin vaalea",vibrant:"eloisa",white:"valkea",yellow:"keltainen","yellow green":"keltavihreä"},"fr-FR":{alpha:"Alpha",black:"Noir",blue:"Bleu","blue purple":"Violet bleu",brightness:"Luminosité",brown:"Brun","brown yellow":"Jaune brun",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Bleu cyan",dark:"Sombre",gray:"Gris",grayish:"Grisâtre",green:"Vert","green cyan":"Cyan vert",hue:"Teinte",light:"Clair",lightness:"Luminosité",magenta:"Magenta","magenta pink":"Rose magenta",orange:"Orange","orange yellow":"Jaune orangé",pale:"Pâle",pink:"Rose","pink red":"Rouge rosé",purple:"Violet","purple magenta":"Magenta violet",red:"Rouge","red orange":"Orange rouge",saturation:"Saturation",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"Très sombre","very light":"Très clair",vibrant:"Vif",white:"Blanc",yellow:"Jaune","yellow green":"Vert jaune"},"he-IL":{alpha:"אלפא",black:"שחור",blue:"כחול","blue purple":"כחול סגול",brightness:"בהירות",brown:"חום","brown yellow":"חום צהוב",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"טורקיז","cyan blue":"כחול ציאן",dark:"כהה",gray:"אפור",grayish:"אפרפר",green:"ירוק","green cyan":"ציאן ירוק",hue:"גוון",light:"אור",lightness:"כמות אור",magenta:"מג'נטה","magenta pink":"ורוד מג'נטה",orange:"כתום","orange yellow":"כתום צהוב",pale:"חיוור",pink:"ורוד","pink red":"ורוד אדום",purple:"סגול","purple magenta":"מג'נטה סגול",red:"אדום","red orange":"כתום אדום",saturation:"רוויה",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} שקוף`,"very dark":"כהה מאוד","very light":"בהיר מאוד",vibrant:"תוסס",white:"לבן",yellow:"צהוב","yellow green":"צהוב ירוק"},"hr-HR":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavo ljubičasta",brightness:"Svjetlina",brown:"smeđa","brown yellow":"smeđe žuta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasto",green:"Zelena","green cyan":"zelena cijan",hue:"Nijansa",light:"svjetlo",lightness:"Osvijetljenost",magenta:"magenta","magenta pink":"magentno ružičasta",orange:"narančasta","orange yellow":"narančasto žuta",pale:"blijeda",pink:"ružičasta","pink red":"ružičasto crvena",purple:"ljubičasta","purple magenta":"ljubičasta magenta",red:"Crvena","red orange":"crveno narančasta",saturation:"Zasićenost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirnosti`,"very dark":"jako tamna","very light":"vrlo svijetlo",vibrant:"vibrantna",white:"bijela",yellow:"žuto","yellow green":"žuto zelena"},"hu-HU":{alpha:"Alfa",black:"fekete",blue:"Kék","blue purple":"kék lila",brightness:"Fényesség",brown:"barna","brown yellow":"barna sárga",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciánkék","cyan blue":"ciánkék",dark:"sötét",gray:"szürke",grayish:"szürkés",green:"Zöld","green cyan":"zöld ciánkék",hue:"Színárnyalat",light:"világos",lightness:"Világosság",magenta:"bíbor","magenta pink":"bíbor rózsaszín",orange:"narancs","orange yellow":"narancssárga",pale:"halvány",pink:"rózsaszín","pink red":"rózsaszín piros",purple:"lila","purple magenta":"lila bíbor",red:"Piros","red orange":"piros narancs",saturation:"Telítettség",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} átlátszó`,"very dark":"nagyon sötét","very light":"nagyon világos",vibrant:"élénk",white:"fehér",yellow:"sárga","yellow green":"sárga zöld"},"it-IT":{alpha:"Alfa",black:"nero",blue:"Blu","blue purple":"blu viola",brightness:"Luminosità",brown:"marrone","brown yellow":"giallo bruno",colorName:e=>`${e.hue} ${e.chroma} ${e.lightness}`,cyan:"ciano","cyan blue":"blu ciano",dark:"scuro",gray:"grigio",grayish:"grigiastro",green:"Verde","green cyan":"verde ciano",hue:"Tonalità",light:"chiaro",lightness:"Luminosità",magenta:"magenta","magenta pink":"rosa magenta",orange:"arancio","orange yellow":"giallo arancio",pale:"tenue",pink:"rosa","pink red":"rosa rosso",purple:"viola","purple magenta":"viola magenta",red:"Rosso","red orange":"rosso arancio",saturation:"Saturazione",transparentColorName:e=>`${e.hue} ${e.chroma} ${e.lightness}, trasparenza ${e.percentTransparent}`,"very dark":"molto scuro","very light":"molto chiaro",vibrant:"vivace",white:"bianco",yellow:"giallo","yellow green":"giallo verde"},"ja-JP":{alpha:"アルファ",black:"ブラック",blue:"青","blue purple":"ブルーパープル",brightness:"明るさ",brown:"ブラウン","brown yellow":"ブラウンイエロー",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"シアン","cyan blue":"シアンブルー",dark:"ダーク",gray:"グレー",grayish:"グレイッシュ",green:"緑","green cyan":"グリーンシアン",hue:"色相",light:"ライト",lightness:"明度",magenta:"マゼンタ","magenta pink":"マゼンタピンク",orange:"オレンジ","orange yellow":"オレンジイエロー",pale:"ペール",pink:"ピンク","pink red":"ピンクレッド",purple:"パープル","purple magenta":"パープルマゼンタ",red:"赤","red orange":"レッドオレンジ",saturation:"彩度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"最も暗い","very light":"ベリーライト",vibrant:"鮮やか",white:"ホワイト",yellow:"イエロー","yellow green":"イエローグリーン"},"ko-KR":{alpha:"알파",black:"검은색",blue:"파랑","blue purple":"청자색",brightness:"명도",brown:"갈색","brown yellow":"황갈색",colorName:e=>`${e.lightness}, ${e.chroma}, ${e.hue}`,cyan:"청록색","cyan blue":"청록색",dark:"다크",gray:"회색",grayish:"회갈색",green:"초록","green cyan":"청록색",hue:"색조",light:"라이트",lightness:"밝기",magenta:"자홍색","magenta pink":"마젠타 핑크",orange:"주황색","orange yellow":"불그스름한 노랑",pale:"흙색",pink:"분홍색","pink red":"핑크 레드",purple:"자주색","purple magenta":"보라빛 자홍색",red:"빨강","red orange":"붉은 주황색",saturation:"채도",transparentColorName:e=>`${e.lightness}, ${e.chroma}, ${e.hue}, ${e.percentTransparent} 투명도`,"very dark":"매우 어두운","very light":"매우 연함",vibrant:"강렬한",white:"흰색",yellow:"노란색","yellow green":"연두색"},"lt-LT":{alpha:"Alfa",black:"juoda",blue:"Mėlyna","blue purple":"melsvai violetinė",brightness:"Ryškumas",brown:"ruda","brown yellow":"rusvai geltona",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"žalsvai mėlyna","cyan blue":"žalsvai mėlyna",dark:"tamsi",gray:"pilka",grayish:"pilkšva",green:"Žalia","green cyan":"žalsvai mėlyna",hue:"Atspalvis",light:"šviesi",lightness:"Šviesumas",magenta:"rausvai raudona","magenta pink":"purpurinė",orange:"oranžinė","orange yellow":"oranžinio atspalvio geltona",pale:"blyški",pink:"rožinė","pink red":"rožinė raudona",purple:"violetinė","purple magenta":"purpurinė rausvai raudona",red:"Raudona","red orange":"rausvai oranžinė",saturation:"Įsotinimas",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} skaidri`,"very dark":"labai tamsi","very light":"labai šviesi",vibrant:"ryški",white:"balta",yellow:"geltona","yellow green":"gelsvai žalia"},"lv-LV":{alpha:"Alfa",black:"melns",blue:"Zila","blue purple":"zili violets",brightness:"Spilgtums",brown:"brūns","brown yellow":"brūni dzeltens",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciāns","cyan blue":"ciāna zils",dark:"tumšs",gray:"pelēks",grayish:"pelēcīgs",green:"Zaļa","green cyan":"zaļš ciāns",hue:"Nokrāsa",light:"gaišs",lightness:"Gaišums",magenta:"fuksiju","magenta pink":"fuksiju rozā",orange:"oranžs","orange yellow":"oranži dzeltens",pale:"bāls",pink:"rozā","pink red":"rozīgi sarkans",purple:"violets","purple magenta":"violets fuksiju",red:"Sarkana","red orange":"sarkanīgi oranžs",saturation:"Piesātinājums",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} caurspīdīgs`,"very dark":"ļoti tumšs","very light":"ļoti gaišs",vibrant:"košs",white:"balts",yellow:"dzeltens","yellow green":"dzelteni zaļš"},"nb-NO":{alpha:"Alfa",black:"svart",blue:"Blå","blue purple":"blålilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanblå",dark:"mørk",gray:"grå",grayish:"gråaktig",green:"Grønn","green cyan":"grønncyan",hue:"Fargetone",light:"lys",lightness:"Lyshet",magenta:"magenta","magenta pink":"magentarosa",orange:"oransje","orange yellow":"oransjegul",pale:"blek",pink:"rosa","pink red":"rosarød",purple:"lilla","purple magenta":"lillamagenta",red:"Rød","red orange":"rødoransje",saturation:"Metning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gjennomsiktig`,"very dark":"svært mørk","very light":"svært lys",vibrant:"levende",white:"hvit",yellow:"gul","yellow green":"gulgrønn"},"nl-NL":{alpha:"Alfa",black:"zwart",blue:"Blauw","blue purple":"paarsblauw",brightness:"Helderheid",brown:"bruin","brown yellow":"bruingeel",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyaan","cyan blue":"cyaanblauw",dark:"donker",gray:"grijs",grayish:"grijsachtig",green:"Groen","green cyan":"cyaangroen",hue:"Kleurtoon",light:"licht",lightness:"Lichtsterkte",magenta:"magenta","magenta pink":"magentaroze",orange:"oranje","orange yellow":"oranjegeel",pale:"bleek",pink:"roze","pink red":"rozerood",purple:"paars","purple magenta":"magentapaars",red:"Rood","red orange":"roodoranje",saturation:"Verzadiging",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparant`,"very dark":"heel donker","very light":"heel licht",vibrant:"levendig",white:"wit",yellow:"geel","yellow green":"geelgroen"},"pl-PL":{alpha:"Alfa",black:"czarny",blue:"Niebieski","blue purple":"niebiesko-fioletowy",brightness:"Jasność",brown:"brązowy","brown yellow":"brązowo-żółty",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyjanowy","cyan blue":"cyjanowo-niebieski",dark:"ciemny",gray:"szary",grayish:"szarawy",green:"Zielony","green cyan":"zielono-cyjanowy",hue:"Odcień",light:"jasny",lightness:"Jaskrawość",magenta:"purpurowy","magenta pink":"purpurowo-różowy",orange:"pomarańczowy","orange yellow":"pomarańczowo-żółty",pale:"blady",pink:"różowy","pink red":"różowo-czerwony",purple:"fioletowy","purple magenta":"fioletowo-purpurowy",red:"Czerwony","red orange":"czerwono-pomarańczowy",saturation:"Nasycenie",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} przezroczystości`,"very dark":"bardzo ciemny","very light":"bardzo jasny",vibrant:"intensywny",white:"biały",yellow:"żółty","yellow green":"żółto-zielony"},"pt-BR":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"roxo azulado",brightness:"Brilho",brown:"marrom","brown yellow":"marrom amarelado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinza",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Matiz",light:"claro",lightness:"Luminosidade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo alaranjado",pale:"pálido",pink:"rosa","pink red":"rosa avermelhado",purple:"roxo","purple magenta":"roxo-magenta",red:"Vermelho","red orange":"laranja avermelhado",saturation:"Saturação",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde amarelado"},"pt-PT":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"azul-púrpura",brightness:"Luminosidade",brown:"castanho","brown yellow":"amarelo-castanho",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinzento",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Tonalidade",light:"claro",lightness:"Claridade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo-laranja",pale:"pálido",pink:"cor-de-rosa","pink red":"vermelho-rosa",purple:"púrpura","purple magenta":"púrpura-magenta",red:"Vermelho","red orange":"laranja-vermelho",saturation:"Saturação",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde-amarelo"},"ro-RO":{alpha:"Alfa",black:"negru",blue:"Albastru","blue purple":"albastru-violet",brightness:"Luminozitate",brown:"maro","brown yellow":"galben maro",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"bleu","cyan blue":"albastru-bleu",dark:"închis",gray:"gri",grayish:"cenușiu",green:"Verde","green cyan":"verde bleu",hue:"Nuanță",light:"deschis",lightness:"Luminozitate",magenta:"fucsia","magenta pink":"roz-fucsia",orange:"portocaliu","orange yellow":"galben-portocaliu",pale:"pal",pink:"roz","pink red":"roz-roșu",purple:"violet","purple magenta":"violet-fucsia",red:"Roșu","red orange":"portocaliu-roșu",saturation:"Saturație",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"foarte închis","very light":"foarte deschis",vibrant:"plin de viață",white:"alb",yellow:"galben","yellow green":"galben-verde"},"ru-RU":{alpha:"Альфа",black:"черный",blue:"Синий","blue purple":"сине-фиолетовый",brightness:"Яркость",brown:"коричневый","brown yellow":"коричнево-желтый",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"голубой","cyan blue":"цвет морской волны",dark:"темный",gray:"серый",grayish:"сероватый",green:"Зеленый","green cyan":"сине-зеленый",hue:"Оттенок",light:"светлый",lightness:"Освещенность",magenta:"пурпурный","magenta pink":"пурпурно-розовый",orange:"оранжевый","orange yellow":"оранжево-желтый",pale:"бледный",pink:"розовый","pink red":"розово-красный",purple:"фиолетовый","purple magenta":"фиолетово-пурпурный",red:"Красный","red orange":"красно-оранжевый",saturation:"Насыщенность",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, прозрачный на ${e.percentTransparent}`,"very dark":"очень темный","very light":"очень светлый",vibrant:"яркий",white:"белый",yellow:"желтый","yellow green":"желто-зеленый"},"sk-SK":{alpha:"Alfa",black:"čierna",blue:"Modrá","blue purple":"modrofialová",brightness:"Jas",brown:"hnedá","brown yellow":"hnedožltá",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"azúrová","cyan blue":"azúrová modrá",dark:"tmavá",gray:"sivá",grayish:"sivastá",green:"Zelená","green cyan":"zelená azúrová",hue:"Odtieň",light:"svetlá",lightness:"Svetlosť",magenta:"purpurová","magenta pink":"ružová purpurová",orange:"oranžová","orange yellow":"oranžovožltá",pale:"bledá",pink:"ružová","pink red":"ružovočervená",purple:"fialová","purple magenta":"fialová purpurová",red:"Červená","red orange":"červenooranžová",saturation:"Sýtosť",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} priehľadná`,"very dark":"veľmi tmavá","very light":"veľmi svetlá",vibrant:"energická",white:"biela",yellow:"žltá","yellow green":"žltozelená"},"sl-SI":{alpha:"Alfa",black:"črna",blue:"Modra","blue purple":"modro vijolična",brightness:"Svetlost",brown:"rjava","brown yellow":"rjavo rumena",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"cian modra",dark:"temna",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zelena cian",hue:"Barva",light:"svetla",lightness:"Lahkost",magenta:"škrlatna","magenta pink":"škrlatno roza",orange:"oranžna","orange yellow":"oranžno rumena",pale:"bleda",pink:"roza","pink red":"roza rdeča",purple:"vijolična","purple magenta":"vijolično škrlatna",red:"Rdeča","red orange":"rdeče oranžna",saturation:"Nasičenost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozorna`,"very dark":"zelo temna","very light":"zelo svetla",vibrant:"živahna",white:"bela",yellow:"rumena","yellow green":"rumeno zelena"},"sr-SP":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavoljubičasta",brightness:"Osvetljenost",brown:"smeđa","brown yellow":"smeđežuta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zeleno cijan",hue:"Nijansa",light:"svetla",lightness:"Osvetljenje",magenta:"purpurnocrvena","magenta pink":"magenta ružičasta",orange:"narandžasta","orange yellow":"narandžastožuta",pale:"bledo",pink:"ružičasta","pink red":"ružičastocrvena",purple:"ljubičasta","purple magenta":"ljubičasta magenta",red:"Crvena","red orange":"crvenonarandžasta",saturation:"Zasićenje",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirna`,"very dark":"veoma tamno","very light":"vrlo svetlo",vibrant:"živopisna",white:"bela",yellow:"žuto","yellow green":"žutozelena"},"sv-SE":{alpha:"Alfa",black:"svart",blue:"Blått","blue purple":"blålila",brightness:"Ljusstyrka",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanblå",dark:"mörk",gray:"grå",grayish:"gråaktig",green:"Grönt","green cyan":"grön cyan",hue:"Nyans",light:"ljus",lightness:"Ljushet",magenta:"magenta","magenta pink":"magentarosa",orange:"orange","orange yellow":"orangegul",pale:"blek",pink:"rosa","pink red":"rosaröd",purple:"lila","purple magenta":"lila magenta",red:"Rött","red orange":"rödorange",saturation:"Mättnad",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} genomskinlig`,"very dark":"mycket mörk","very light":"mycket ljus",vibrant:"livfull",white:"vit",yellow:"gul","yellow green":"gulgrön"},"tr-TR":{alpha:"Alfa",black:"siyah",blue:"Mavi","blue purple":"mavi mor",brightness:"Parlaklık",brown:"kahverengi","brown yellow":"kahverengi sarı",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"camgöbeği","cyan blue":"camgöbeği mavi",dark:"koyu",gray:"gri",grayish:"grimsi",green:"Yeşil","green cyan":"yeşil camgöbeği",hue:"Ton",light:"açık",lightness:"Canlılık",magenta:"eflatun","magenta pink":"eflatun pembe",orange:"turuncu","orange yellow":"turuncu sarı",pale:"solgun",pink:"pembe","pink red":"pembe kırmızı",purple:"mor","purple magenta":"mor eflatun",red:"Kırmızı","red orange":"kırmızı portakal",saturation:"Doygunluk",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} saydam`,"very dark":"çok koyu","very light":"çok açık",vibrant:"canlı",white:"beyaz",yellow:"sarı","yellow green":"sarı yeşil"},"uk-UA":{alpha:"Альфа",black:"чорний",blue:"Синій","blue purple":"синьо-фіолетовий",brightness:"Яскравість",brown:"коричневий","brown yellow":"коричнево-жовтий",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"блакитний","cyan blue":"синьо-блакитний",dark:"темний",gray:"сірий",grayish:"сіруватий",green:"Зелений","green cyan":"зелено-блакитний",hue:"Тон",light:"світлий",lightness:"Освітленість",magenta:"пурпуровий","magenta pink":"пурпурово-рожевий",orange:"помаранчевий","orange yellow":"помаранчево-жовтий",pale:"блідий",pink:"рожевий","pink red":"рожево-червоний",purple:"фіолетовий","purple magenta":"фіолетово-пурпуровий",red:"Червоний","red orange":"червоно-помаранчевий",saturation:"Насиченість",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, прозорий на ${e.percentTransparent}`,"very dark":"дуже темний","very light":"дуже світлий",vibrant:"яскравий",white:"білий",yellow:"жовтий","yellow green":"жовто-зелений"},"zh-CN":{alpha:"Alpha",black:"黑色",blue:"蓝色","blue purple":"蓝紫色",brightness:"亮度",brown:"棕色的","brown yellow":"棕黄色",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"蓝绿色","cyan blue":"青蓝色",dark:"深色",gray:"灰色",grayish:"浅灰色的",green:"绿色","green cyan":"绿青色",hue:"色相",light:"浅色",lightness:"明亮度",magenta:"紫红色","magenta pink":"紫粉色",orange:"橙色","orange yellow":"橙黄色",pale:"苍白的",pink:"粉色","pink red":"粉红色",purple:"紫色","purple magenta":"紫洋红色",red:"红色","red orange":"红橙色",saturation:"饱和度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"很暗","very light":"很浅",vibrant:"生机勃勃",white:"白色",yellow:"黄色","yellow green":"黄色/绿色"},"zh-TW":{alpha:"Alpha",black:"黑",blue:"藍色","blue purple":"藍紫",brightness:"亮度",brown:"棕","brown yellow":"棕黃",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"青","cyan blue":"青藍",dark:"暗",gray:"灰",grayish:"偏灰",green:"綠色","green cyan":"青綠",hue:"色相",light:"淺",lightness:"明亮",magenta:"洋紅","magenta pink":"淺洋紅",orange:"橙","orange yellow":"橙黃",pale:"淡",pink:"粉紅","pink red":"粉紅",purple:"紫","purple magenta":"紫洋紅",red:"紅色","red orange":"橙紅",saturation:"飽和度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"很暗","very light":"很淺",vibrant:"鮮豔",white:"白",yellow:"黃","yellow green":"黃綠"}};var Rr=n(80539),Fr=n(6275),Nr=n(89424);let Or=new(0,Fr.J)(function(e){return e&&e.__esModule?e.default:e}(Mr));function jr(e){let t=Vr.parse(e)||$r.parse(e)||Zr.parse(e);if(t)return t;throw new Error("Invalid color value: "+e)}function Lr(e){return 360===e?e:(e%360+360)%360}const Br=[[0,"pink"],[15,"red"],[48,"orange"],[94,"yellow"],[135,"green"],[175,"cyan"],[264,"blue"],[284,"purple"],[320,"magenta"],[349,"pink"]];class Kr{toHexInt(){return this.toFormat("rgb").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}withChannelValue(e,t){if(e in this){let n=this.clone();return n[e]=t,n}throw new Error("Unsupported color channel: "+e)}getChannelName(e,t){return(Fr.J.getGlobalDictionaryForPackage("@react-stately/color")||Or).getStringForLocale(e,t)}getColorSpaceAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getColorChannels().find((e=>e!==n)),o=n||this.getColorChannels().find((e=>e!==r)),i=this.getColorChannels().find((e=>e!==r&&e!==o));return{xChannel:r,yChannel:o,zChannel:i}}getColorName(e){let t,[n,r,o]=qr(this),i=Fr.J.getGlobalDictionaryForPackage("@react-stately/color")||Or;if(n>.999)return i.getStringForLocale("white",e);if(n<.001)return i.getStringForLocale("black",e);[t,n]=this.getOklchHue(n,r,o,e);let a="",s="";r<=.1&&r>=.001?s=n>=.7?"pale":"grayish":r>=.15&&(s="vibrant"),n<.3?a="very dark":n<.55?a="dark":n<.7||(a=n<.85?"light":"very light"),s&&(s=i.getStringForLocale(s,e)),a&&(a=i.getStringForLocale(a,e));let l=this.getChannelValue("alpha"),c=new(0,Fr.E)(e,i);if(l<1){let n=new(0,Nr.e)(e,{style:"percent"}).format(1-l);return c.format("transparentColorName",{lightness:a,chroma:s,hue:t,percentTransparent:n}).replace(/\s+/g," ").trim()}return c.format("colorName",{lightness:a,chroma:s,hue:t}).replace(/\s+/g," ").trim()}getOklchHue(e,t,n,r){let o=Fr.J.getGlobalDictionaryForPackage("@react-stately/color")||Or;if(t<.001)return[o.getStringForLocale("gray",r),e];for(let t=0;t<Br.length;t++){let[i,a]=Br[t],[s,l]=Br[t+1]||[360,"pink"];if(n>=i&&n<s){return"orange"===a&&(e<.68?a="brown":e=e-.68+.55),n>i+(s-i)/2&&a!==l?a=`${a} ${l}`:"yellow"===a&&e<.85&&(a="yellow green"),[o.getStringForLocale(a,r).toLocaleLowerCase(r),e]}}throw new Error("Unexpected hue")}getHueName(e){let[t,n,r]=qr(this),[o]=this.getOklchHue(t,n,r,e);return o}}class Vr extends Kr{static parse(e){let t=[];if(/^#[\da-f]+$/i.test(e)&&[4,5,7,9].includes(e.length)){const n=(e.length<6?e.replace(/[^#]/gi,"$&$&"):e).slice(1).split("");for(;n.length>0;)t.push(parseInt(n.splice(0,2).join(""),16));t[3]=void 0!==t[3]?t[3]/255:void 0}const n=e.match(/^rgba?\((.*)\)$/);var r;if((null==n?void 0:n[1])&&(t=n[1].split(",").map((e=>Number(e.trim()))),t=t.map(((e,t)=>(0,Rr.uZ)(null!=e?e:0,0,t<3?255:1)))),void 0!==t[0]&&void 0!==t[1]&&void 0!==t[2])return t.length<3?void 0:new Vr(t[0],t[1],t[2],null!==(r=t[3])&&void 0!==r?r:1)}toString(e="css"){switch(e){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(255*this.alpha).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hex":case"hexa":case"rgb":case"rgba":return this;case"hsb":case"hsba":return this.toHSB();case"hsl":case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+e)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),o=Math.max(e,t,n),i=o-r,a=0===o?0:i/o;let s=0;if(0!==i){switch(o){case e:s=(t-n)/i+(t<n?6:0);break;case t:s=(n-e)/i+2;break;case n:s=(e-t)/i+4}s/=6}return new $r((0,Rr.lt)(360*s,2),(0,Rr.lt)(100*a,2),(0,Rr.lt)(100*o,2),this.alpha)}toHSL(){const e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),o=Math.max(e,t,n),i=(o+r)/2,a=o-r;let s,l;if(0===a)s=l=0;else{switch(l=a/(i<.5?o+r:2-o-r),o){case e:s=(t-n)/a+(t<n?6:0);break;case t:s=(n-e)/a+2;break;default:s=(e-t)/a+4}s/=6}return new Zr((0,Rr.lt)(360*s,2),(0,Rr.lt)(100*l,2),(0,Rr.lt)(100*i,2),this.alpha)}clone(){return new Vr(this.red,this.green,this.blue,this.alpha)}getChannelRange(e){switch(e){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return new(0,Nr.e)(t,n).format(r)}getColorSpace(){return"rgb"}getColorChannels(){return Vr.colorChannels}constructor(e,t,n,r){super(),this.red=e,this.green=t,this.blue=n,this.alpha=r}}Vr.colorChannels=["red","green","blue"];const Hr=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;class $r extends Kr{static parse(e){let t;if(t=e.match(Hr)){var n;const[e,r,o,i]=(null!==(n=t[1])&&void 0!==n?n:t[2]).split(",").map((e=>Number(e.trim().replace("%",""))));return new $r(Lr(e),(0,Rr.uZ)(r,0,100),(0,Rr.uZ)(o,0,100),(0,Rr.uZ)(null!=i?i:1,0,1))}}toString(e="css"){switch(e){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${(0,Rr.lt)(this.saturation,2)}%, ${(0,Rr.lt)(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${(0,Rr.lt)(this.saturation,2)}%, ${(0,Rr.lt)(this.brightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsb":case"hsba":return this;case"hsl":case"hsla":return this.toHSL();case"rgb":case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+e)}}toHSL(){let e=this.saturation/100,t=this.brightness/100,n=t*(1-e/2);return e=0===n||1===n?0:(t-n)/Math.min(n,1-n),new Zr((0,Rr.lt)(this.hue,2),(0,Rr.lt)(100*e,2),(0,Rr.lt)(100*n,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,n=this.brightness/100,r=(r,o=(r+e/60)%6)=>n-t*n*Math.max(Math.min(o,4-o,1),0);return new Vr(Math.round(255*r(5)),Math.round(255*r(3)),Math.round(255*r(1)),this.alpha)}clone(){return new $r(this.hue,this.saturation,this.brightness,this.alpha)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return"saturation"!==e&&"brightness"!==e||(r/=100),new(0,Nr.e)(t,n).format(r)}getColorSpace(){return"hsb"}getColorChannels(){return $r.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.brightness=n,this.alpha=r}}$r.colorChannels=["hue","saturation","brightness"];const Ur=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;class Zr extends Kr{static parse(e){let t;if(t=e.match(Ur)){var n;const[e,r,o,i]=(null!==(n=t[1])&&void 0!==n?n:t[2]).split(",").map((e=>Number(e.trim().replace("%",""))));return new Zr(Lr(e),(0,Rr.uZ)(r,0,100),(0,Rr.uZ)(o,0,100),(0,Rr.uZ)(null!=i?i:1,0,1))}}toString(e="css"){switch(e){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${(0,Rr.lt)(this.saturation,2)}%, ${(0,Rr.lt)(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${(0,Rr.lt)(this.saturation,2)}%, ${(0,Rr.lt)(this.lightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsl":case"hsla":return this;case"hsb":case"hsba":return this.toHSB();case"rgb":case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+e)}}toHSB(){let e=this.saturation/100,t=this.lightness/100,n=t+e*Math.min(t,1-t);return e=0===n?0:2*(1-t/n),new $r((0,Rr.lt)(this.hue,2),(0,Rr.lt)(100*e,2),(0,Rr.lt)(100*n,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,n=this.lightness/100,r=t*Math.min(n,1-n),o=(t,o=(t+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return new Vr(Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4)),this.alpha)}clone(){return new Zr(this.hue,this.saturation,this.lightness,this.alpha)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return"saturation"!==e&&"lightness"!==e||(r/=100),new(0,Nr.e)(t,n).format(r)}getColorSpace(){return"hsl"}getColorChannels(){return Zr.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=r}}function qr(e){let t=e.toFormat("rgb"),n=t.getChannelValue("red")/255,r=t.getChannelValue("green")/255,o=t.getChannelValue("blue")/255;[n,r,o]=function(e,t,n){return[Gr(e),Gr(t),Gr(n)]}(n,r,o);let[i,a,s]=function(e,t,n){return Wr([506752/1228815,87881/245763,12673/70218,87098/409605,175762/245763,12673/175545,7918/409605,87881/737289,1001167/1053270],e,t,n)}(n,r,o),[l,c,u]=function(e,t,n){const r=[.819022437996703,.3619062600528904,-.1288737815209879,.0329836539323885,.9292868615863434,.0361446663506424,.0481771893596242,.2642395317527308,.6335478284694309],o=[.210454268309314,.7936177747023054,-.0040720430116193,1.9779985324311684,-2.42859224204858,.450593709617411,.0259040424655478,.7827717124575296,-.8086757549230774];let[i,a,s]=Wr(r,e,t,n);return Wr(o,Math.cbrt(i),Math.cbrt(a),Math.cbrt(s))}(i,a,s);return function(e,t,n){var r=180*Math.atan2(n,t)/Math.PI;return[e,Math.sqrt(t**2+n**2),r>=0?r:r+360]}(l,c,u)}function Gr(e){let t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*Math.pow((n+.055)/1.055,2.4)}function Wr(e,t,n,r){return[e[0]*t+e[1]*n+e[2]*r,e[3]*t+e[4]*n+e[5]*r,e[6]*t+e[7]*n+e[8]*r]}Zr.colorChannels=["hue","saturation","lightness"];jr("#ffffff");jr("hsl(0, 100%, 50%)");const Yr=jr("#000000"),Xr=jr("#FFFFFF");Yr.toHexInt(),Xr.toHexInt();const Qr=e=>[0,60,120,180,240,300,360].map((t=>e.withChannelValue("hue",t).toString("css"))).join(", "),Jr=e=>`${e.withChannelValue("saturation",0)}, transparent`,eo={hue:Qr,saturation:Jr,lightness:()=>"black, transparent, white"},to={hue:Qr,saturation:Jr,brightness:()=>"black, transparent"};function no({direction:e,state:t,zChannel:n,xChannel:r,yChannel:o}){let i=(0,l.useMemo)((()=>{let i="rtl"===e?"left":"right",a={},s=t.value.getChannelValue(n);switch(t.value.getColorSpace()){case"rgb":{let e=jr("rgb(0, 0, 0)");a={background:[`linear-gradient(to ${i}, ${e.withChannelValue(r,0)}, ${e.withChannelValue(r,255)})`,`linear-gradient(to top, ${e.withChannelValue(o,0)}, ${e.withChannelValue(o,255)})`,e.withChannelValue(n,s)].join(","),backgroundBlendMode:"screen"};break}case"hsl":{let e=t.value.getColorChannels(),o=jr("hsl(0, 100%, 50%)").withChannelValue(n,s),l=e.filter((e=>e!==n)).map((e=>`linear-gradient(to ${e===r?i:"top"}, ${eo[e](o)})`)).reverse();"hue"===n&&l.push(o.toString("css")),a={background:l.join(", ")};break}case"hsb":{let e=t.value.getColorChannels(),o=jr("hsb(0, 100%, 100%)").withChannelValue(n,s),l=e.filter((e=>e!==n)).map((e=>`linear-gradient(to ${e===r?i:"top"}, ${to[e](o)})`)).reverse();"hue"===n&&l.push(o.toString("css")),a={background:l.join(", ")};break}}let{x:l,y:c}=t.getThumbPosition();"rtl"===e&&(l=1-l);let u={forcedColorAdjust:"none"};return{colorAreaStyleProps:{style:{position:"relative",touchAction:"none",...u,...a}},thumbStyleProps:{style:{position:"absolute",left:100*l+"%",top:100*c+"%",transform:"translate(-50%, -50%)",touchAction:"none",...u}}}}),[e,t,n,r,o]);return i}var ro=n(13807),oo=n(44608),io=n(4366);function ao(e,t){let{isDisabled:n,inputXRef:r,inputYRef:o,containerRef:i,"aria-label":a,xName:s,yName:c}=e,u=(0,oo.qb)(function(e){return e&&e.__esModule?e.default:e}(Pr),"@react-aria/color"),{addGlobalListener:d,removeGlobalListener:p}=(0,ro.xi)(),{direction:h,locale:f}=(0,oo.bU)(),[m,g]=(0,l.useState)(null),v=(0,l.useCallback)(((e=r)=>{e.current&&(0,ro.Ao)(e.current)}),[r]);(0,ro.y$)(r,[t.xValue,t.yValue],(([e,n])=>{let r=t.value.withChannelValue(t.channels.xChannel,e).withChannelValue(t.channels.yChannel,n);t.setValue(r)}));let[y,b]=(0,l.useState)(!1),[w,x]=(0,l.useState)(!1),{xChannel:_,yChannel:S,zChannel:C}=t.channels,E=t.xChannelStep,k=t.yChannelStep,z=(0,l.useRef)(null),{keyboardProps:P}=(0,Tr.v5)({onKeyDown(e){if(!/^(PageUp|PageDown|Home|End)$/.test(e.key))return void e.continuePropagation();let n;switch(e.preventDefault(),t.setDragging(!0),b(!0),e.key){case"PageUp":t.incrementY(t.yChannelPageStep),n="y";break;case"PageDown":t.decrementY(t.yChannelPageStep),n="y";break;case"Home":"rtl"===h?t.incrementX(t.xChannelPageStep):t.decrementX(t.xChannelPageStep),n="x";break;case"End":"rtl"===h?t.decrementX(t.xChannelPageStep):t.incrementX(t.xChannelPageStep),n="x"}if(t.setDragging(!1),n){v("x"===n?r:o),g(n)}}}),D={onMoveStart(){z.current=null,t.setDragging(!0)},onMove({deltaX:e,deltaY:n,pointerType:r,shiftKey:o}){var a;let{incrementX:s,decrementX:l,incrementY:c,decrementY:u,xChannelPageStep:d,xChannelStep:p,yChannelPageStep:f,yChannelStep:v,getThumbPosition:y,setColorFromPoint:w}=t;null==z.current&&(z.current=y());let{width:x,height:_}=(null===(a=i.current)||void 0===a?void 0:a.getBoundingClientRect())||{width:0,height:0},S=0!==e||0!==n;if("keyboard"===r){let t=o&&d>p?d:p,r=o&&f>v?f:v;e>0&&"ltr"===h||e<0&&"rtl"===h?s(t):e<0&&"ltr"===h||e>0&&"rtl"===h?l(t):n>0?u(r):n<0&&c(r),b(S),m=S&&Math.abs(n)>Math.abs(e)?"y":"x",g(m)}else z.current.x+=("rtl"===h?-1:1)*e/x,z.current.y+=n/_,w(z.current.x,z.current.y)},onMoveEnd(){M.current=!1,t.setDragging(!1),v("x"===m?r:o)}},{moveProps:A}=(0,Tr.r_)(D),{focusWithinProps:T}=(0,Tr.L_)({onFocusWithinChange:e=>{e||(b(!1),x(!1))}}),I=(0,l.useRef)(void 0),M=(0,l.useRef)(!1),{moveProps:R}=(0,Tr.r_)({onMoveStart(){M.current&&D.onMoveStart()},onMove(e){M.current&&D.onMove(e)},onMoveEnd(){M.current&&D.onMoveEnd()}}),F=e=>{t.isDragging||(I.current=e,b(!1),v(),t.setDragging(!0),"undefined"!=typeof PointerEvent?d(window,"pointerup",N,!1):(d(window,"mouseup",N,!1),d(window,"touchend",N,!1)))},N=e=>{var n,r;(null!==(r=e.pointerId)&&void 0!==r?r:null===(n=e.changedTouches)||void 0===n?void 0:n[0].identifier)===I.current&&(b(!1),v(),t.setDragging(!1),I.current=void 0,M.current=!1,"undefined"!=typeof PointerEvent?p(window,"pointerup",N,!1):(p(window,"mouseup",N,!1),p(window,"touchend",N,!1)))},O=(e,n,r,o)=>{let i=e.getBoundingClientRect(),{width:a,height:s}=i,l=(r-i.x)/a,c=(o-i.y)/s;"rtl"===h&&(l=1-l),l>=0&&l<=1&&c>=0&&c<=1&&!t.isDragging&&void 0===I.current&&(M.current=!0,b(!1),I.current=n,t.setColorFromPoint(l,c),v(),t.setDragging(!0),"undefined"!=typeof PointerEvent?d(window,"pointerup",j,!1):(d(window,"mouseup",j,!1),d(window,"touchend",j,!1)))},j=e=>{var n,r;let o=null!==(r=e.pointerId)&&void 0!==r?r:null===(n=e.changedTouches)||void 0===n?void 0:n[0].identifier;M.current&&o===I.current&&(M.current=!1,b(!1),I.current=void 0,t.setDragging(!1),v(),"undefined"!=typeof PointerEvent?p(window,"pointerup",j,!1):(p(window,"mouseup",j,!1),p(window,"touchend",j,!1)))},L=n?{}:(0,ro.dG)({..."undefined"!=typeof PointerEvent?{onPointerDown:e=>{"mouse"===e.pointerType&&(0!==e.button||e.altKey||e.ctrlKey||e.metaKey)||O(e.currentTarget,e.pointerId,e.clientX,e.clientY)}}:{onMouseDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||O(e.currentTarget,void 0,e.clientX,e.clientY)},onTouchStart:e=>{O(e.currentTarget,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)}}},R),B=n?{}:(0,ro.dG)({..."undefined"!=typeof PointerEvent?{onPointerDown:e=>{"mouse"===e.pointerType&&(0!==e.button||e.altKey||e.ctrlKey||e.metaKey)||F(e.pointerId)}}:{onMouseDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||F(void 0)},onTouchStart:e=>{F(e.changedTouches[0].identifier)}}},T,P,A),{focusProps:K}=(0,Tr.KK)({onFocus:()=>{g("x")}}),{focusProps:V}=(0,Tr.KK)({onFocus:()=>{g("y")}});const H=e=>{const{target:n}=e;x(!0),n===r.current?t.setXValue(parseFloat(n.value)):n===o.current&&t.setYValue(parseFloat(n.value))};let $=(0,ro.gn)()||(0,ro.Dt)(),U=t.getDisplayColor();const Z=(0,l.useCallback)((e=>`${w||y?u.format("colorNameAndValue",{name:U.getChannelName(e,f),value:U.formatChannelValue(e,f)}):[u.format("colorNameAndValue",{name:U.getChannelName(e,f),value:U.formatChannelValue(e,f)}),u.format("colorNameAndValue",{name:U.getChannelName(e===S?_:S,f),value:U.formatChannelValue(e===S?_:S,f)}),u.format("colorNameAndValue",{name:U.getChannelName(C,f),value:U.formatChannelValue(C,f)})].join(", ")}, ${U.getColorName(f)}`),[f,U,u,w,y,_,S,C]);let q=u.format("colorPicker"),G=(0,ro.bE)({...e,"aria-label":a?u.format("colorInputLabel",{label:a,channelLabel:q}):q}),W=(0,ro.bE)({...e,"aria-label":a?u.format("colorInputLabel",{label:a,channelLabel:q}):q}),Y=(0,ro.bE)({...e,"aria-label":a?`${a}, ${q}`:void 0},$?q:void 0),X=u.format("twoDimensionalSlider"),{visuallyHiddenProps:Q}=(0,io.S)({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}}),{colorAreaStyleProps:J,thumbStyleProps:ee}=no({direction:h,state:t,xChannel:_,yChannel:S,zChannel:C});return{colorAreaProps:{...Y,...L,...J,role:"group"},thumbProps:{...B,...ee,role:"presentation"},xInputProps:{...G,...Q,...K,type:"range",min:t.value.getChannelRange(_).minValue,max:t.value.getChannelRange(_).maxValue,step:E,"aria-roledescription":X,"aria-valuetext":Z(_),"aria-orientation":"horizontal","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:n,value:t.value.getChannelValue(_),name:s,tabIndex:$||!m||"x"===m?void 0:-1,"aria-hidden":$||!m||"x"===m||y?void 0:"true",onChange:H},yInputProps:{...W,...Q,...V,type:"range",min:t.value.getChannelRange(S).minValue,max:t.value.getChannelRange(S).maxValue,step:k,"aria-roledescription":X,"aria-valuetext":Z(S),"aria-orientation":"vertical","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:n,value:t.value.getChannelValue(S),name:c,tabIndex:$||"y"===m?void 0:-1,"aria-hidden":$||"y"===m||y?void 0:"true",onChange:H}}}var so=n(82137);var lo=n(96382),co=n(65163);n(94866);function uo(e,t,n,r=(e=>e)){return e*r(.5-t*(.5-n))}function po(e,t){return[e[0]+t[0],e[1]+t[1]]}function ho(e,t){return[e[0]-t[0],e[1]-t[1]]}function fo(e,t){return[e[0]*t,e[1]*t]}function mo(e){return[e[1],-e[0]]}function go(e,t){return e[0]*t[0]+e[1]*t[1]}function vo(e,t){return e[0]===t[0]&&e[1]===t[1]}function yo(e,t){return function(e){return e[0]*e[0]+e[1]*e[1]}(ho(e,t))}function bo(e){return function(e,t){return[e[0]/t,e[1]/t]}(e,function(e){return Math.hypot(e[0],e[1])}(e))}function wo(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function xo(e,t,n){let r=Math.sin(n),o=Math.cos(n),i=e[0]-t[0],a=e[1]-t[1],s=i*r+a*o;return[i*o-a*r+t[0],s+t[1]]}function _o(e,t,n){return po(e,fo(ho(t,e),n))}function So(e,t,n){return po(e,fo(t,n))}var{min:Co,PI:Eo}=Math,ko=Eo+1e-4;function zo(e,t={}){return function(e,t={}){let{size:n=16,smoothing:r=.5,thinning:o=.5,simulatePressure:i=!0,easing:a=(e=>e),start:s={},end:l={},last:c=!1}=t,{cap:u=!0,easing:d=(e=>e*(2-e))}=s,{cap:p=!0,easing:h=(e=>--e*e*e+1)}=l;if(0===e.length||n<=0)return[];let f,m=e[e.length-1].runningLength,g=!1===s.taper?0:!0===s.taper?Math.max(n,m):s.taper,v=!1===l.taper?0:!0===l.taper?Math.max(n,m):l.taper,y=Math.pow(n*r,2),b=[],w=[],x=e.slice(0,10).reduce(((e,t)=>{let r=t.pressure;if(i){let o=Co(1,t.distance/n),i=Co(1,1-o);r=Co(1,e+.275*o*(i-e))}return(e+r)/2}),e[0].pressure),_=uo(n,o,e[e.length-1].pressure,a),S=e[0].vector,C=e[0].point,E=C,k=C,z=E,P=!1;for(let t=0;t<e.length;t++){let{pressure:r}=e[t],{point:s,vector:l,distance:c,runningLength:u}=e[t];if(t<e.length-1&&m-u<3)continue;if(o){if(i){let e=Co(1,c/n),t=Co(1,1-e);r=Co(1,x+.275*e*(t-x))}_=uo(n,o,r,a)}else _=n/2;void 0===f&&(f=_);let p=u<g?d(u/g):1,D=m-u<v?h((m-u)/v):1;_=Math.max(.01,_*Math.min(p,D));let A=(t<e.length-1?e[t+1]:e[t]).vector,T=t<e.length-1?go(l,A):1,I=null!==T&&T<0;if(go(l,S)<0&&!P||I){let e=fo(mo(S),_);for(let t=1/13,n=0;n<=1;n+=t)k=xo(ho(s,e),s,ko*n),b.push(k),z=xo(po(s,e),s,ko*-n),w.push(z);C=k,E=z,I&&(P=!0);continue}if(P=!1,t===e.length-1){let e=fo(mo(l),_);b.push(ho(s,e)),w.push(po(s,e));continue}let M=fo(mo(_o(A,l,T)),_);k=ho(s,M),(t<=1||yo(C,k)>y)&&(b.push(k),C=k),z=po(s,M),(t<=1||yo(E,z)>y)&&(w.push(z),E=z),x=r,S=l}let D=e[0].point.slice(0,2),A=e.length>1?e[e.length-1].point.slice(0,2):po(e[0].point,[1,1]),T=[],I=[];if(1===e.length){if(!g&&!v||c){let e=So(D,bo(mo(ho(D,A))),-(f||_)),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(xo(e,D,2*ko*r));return t}}else{if(!(g||v&&1===e.length))if(u)for(let e=1/13,t=e;t<=1;t+=e){let e=xo(w[0],D,ko*t);T.push(e)}else{let e=ho(b[0],w[0]),t=fo(e,.5),n=fo(e,.51);T.push(ho(D,t),ho(D,n),po(D,n),po(D,t))}let t=mo(function(e){return[-e[0],-e[1]]}(e[e.length-1].vector));if(v||g&&1===e.length)I.push(A);else if(p){let e=So(A,t,_);for(let t=1/29,n=t;n<1;n+=t)I.push(xo(e,A,3*ko*n))}else I.push(po(A,fo(t,_)),po(A,fo(t,.99*_)),ho(A,fo(t,.99*_)),ho(A,fo(t,_)))}return b.concat(I,w.reverse(),T)}(function(e,t={}){var n;let{streamline:r=.5,size:o=16,last:i=!1}=t;if(0===e.length)return[];let a=.15+.85*(1-r),s=Array.isArray(e[0])?e:e.map((({x:e,y:t,pressure:n=.5})=>[e,t,n]));if(2===s.length){let e=s[1];s=s.slice(0,-1);for(let t=1;t<5;t++)s.push(_o(s[0],e,t/4))}1===s.length&&(s=[...s,[...po(s[0],[1,1]),...s[0].slice(2)]]);let l=[{point:[s[0][0],s[0][1]],pressure:s[0][2]>=0?s[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],c=!1,u=0,d=l[0],p=s.length-1;for(let e=1;e<s.length;e++){let t=i&&e===p?s[e].slice(0,2):_o(d.point,s[e],a);if(vo(d.point,t))continue;let n=wo(t,d.point);if(u+=n,e<p&&!c){if(u<o)continue;c=!0}d={point:t,pressure:s[e][2]>=0?s[e][2]:.5,vector:bo(ho(d.point,t)),distance:n,runningLength:u},l.push(d)}return l[0].vector=(null==(n=l[1])?void 0:n.vector)||[0,0],l}(e,t),t)}function Po(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return!0;return!1}function Do(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return e[r];return null}function Ao(e){var t=e;if(void 0===t){if("undefined"==typeof navigator||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function To(e,t){try{return new RegExp(e,"g").exec(t)}catch(e){return null}}function Io(){if("undefined"==typeof navigator||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,t=e.brands||e.uaList;return!(!t||!t.length)}function Mo(e){return e.replace(/_/g,".")}function Ro(e,t){var n=null,r="-1";return Po(e,(function(e){var o=To("("+e.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",t);return!(!o||e.brand)&&(n=e,r=o[3]||"-1",e.versionAlias?r=e.versionAlias:e.versionTest&&(r=function(e,t){var n=To("("+e+")((?:\\/|\\s|:)([0-9|\\.|_]+))",t);return n?n[3]:""}(e.versionTest.toLowerCase(),t)||r),r=Mo(r),!0)})),{preset:n,version:r}}function Fo(e,t){var n={brand:"",version:"-1"};return Po(e,(function(e){var r=No(t,e);return!!r&&(n.brand=e.id,n.version=e.versionAlias||r.version,"-1"!==n.version)})),n}function No(e,t){return Do(e,(function(e){var n=e.brand;return To(""+t.test,n.toLowerCase())}))}var Oo=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],jo=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],Lo=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],Bo=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],Ko=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function Vo(e){return!!Ro(Bo,e).preset}function Ho(e){var t=navigator.userAgentData,n=(t.uaList||t.brands).slice(),r=e&&e.fullVersionList,o=t.mobile||!1,i=n[0],a=(e&&e.platform||t.platform||navigator.platform).toLowerCase(),s={name:i.brand,version:i.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!Fo(Bo,n).brand||Vo(Ao())},l={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&Po(Lo,(function(e){return No(n,e)}));var c=Fo(jo,n);if(s.chromium=!!c.brand,s.chromiumVersion=c.version,!s.chromium){var u=Fo(Lo,n);s.webkit=!!u.brand,s.webkitVersion=u.version}var d=Do(Ko,(function(e){return new RegExp(""+e.test,"g").exec(a)}));if(l.name=d?d.id:"",e&&(l.version=e.platformVersion),r&&r.length){var p=Fo(Oo,r);s.name=p.brand||s.name,s.version=p.version||s.version}else{var h=Fo(Oo,n);s.name=h.brand||s.name,s.version=h.brand&&e?e.uaFullVersion:h.version}return s.webkit&&(l.name=o?"ios":"mac"),"ios"===l.name&&s.webview&&(s.version="-1"),l.version=Mo(l.version),s.version=Mo(s.version),l.majorVersion=parseInt(l.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:l,isMobile:o,isHints:!0}}function $o(e){return void 0===e&&Io()?Ho():function(e){var t=Ao(e),n=!!/mobi/g.exec(t),r={name:"unknown",version:"-1",majorVersion:-1,webview:Vo(t),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},o={name:"unknown",version:"-1",majorVersion:-1},i=Ro(Oo,t),a=i.preset,s=i.version,l=Ro(Ko,t),c=l.preset,u=l.version,d=Ro(jo,t);if(r.chromium=!!d.preset,r.chromiumVersion=d.version,!r.chromium){var p=Ro(Lo,t);r.webkit=!!p.preset,r.webkitVersion=p.version}return c&&(o.name=c.id,o.version=u,o.majorVersion=parseInt(u,10)),a&&(r.name=a.id,r.version=s,r.webview&&"ios"===o.name&&"safari"!==r.name&&(r.webview=!1)),r.majorVersion=parseInt(r.version,10),{browser:r,os:o,isMobile:n,isHints:!1}}(e)}const Uo=$o;function Zo(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map((function(t){return t.split(" ").map((function(t){return t?""+e+t:""})).join(" ")})).join(" ")}function qo(e,t){return function(n){n&&(e[t]=n)}}function Go(e,t,n){return function(r){r&&(e[t][n]=r)}}var Wo="undefined",Yo=typeof window!==Wo,Xo=typeof document!==Wo&&document,Qo=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],Jo=1e-7,ei={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return void 0===t&&(t=window.innerWidth),e/100*t},vh:function(e,t){return void 0===t&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return void 0===t&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return void 0===t&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function ti(e,t,n,r){return(e*r+t*n)/(n+r)}function ni(e){return typeof e===Wo}function ri(e){return e&&"object"==typeof e}function oi(e){return Array.isArray(e)}function ii(e){return"string"==typeof e}function ai(e){return"number"==typeof e}function si(e){return"function"==typeof e}function li(e,t,n,r,o){return ci(e,t,n)?n:function(e,t,n,r,o){for(var i,a=function(n){var a=t[n].trim();if(a===e.close&&!ci(e,t,n))return{value:n};var s=n,l=vi(o,(function(e){return e.open===a}));if(l&&(s=li(l,t,n,r,o)),-1===s)return i=n,"break";i=n=s},s=n;s<r;++s){var l=a(s);if(s=i,"object"==typeof l)return l.value;if("break"===l)break}return-1}(e,t,n+1,r,o)}function ci(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function ui(e,t){var n=ii(t)?{separator:t}:t,r=n.separator,o=void 0===r?",":r,i=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,l=void 0===s?a:s,c=n.openCloseCharacters,u=void 0===c?Qo:c,d=u.map((function(e){var t=e.open,n=e.close;return t===n?t:t+"|"+n})).join("|"),p=new RegExp("(\\s*"+o+"\\s*|"+d+"|\\s+)","g"),h=e.split(p).filter((function(e){return e&&"undefined"!==e})),f=h.length,m=[],g=[];function v(){return!!g.length&&(m.push(g.join("")),g=[],!0)}for(var y,b=function(t){var n=h[t].trim(),r=t,s=vi(u,(function(e){return e.open===n})),c=vi(u,(function(e){return e.close===n}));if(s){if(-1!==(r=li(s,h,t,f,u))&&l)return v()&&i?(y=t,"break"):(m.push(h.slice(t,r+1).join("")),t=r,i?(y=t,"break"):(y=t,"continue"))}else{if(c&&!ci(c,h,t)){var d=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}(u);return d.splice(u.indexOf(c),1),{value:ui(e,{separator:o,isSeparateFirst:i,isSeparateOnlyOpenClose:a,isSeparateOpenClose:l,openCloseCharacters:d})}}if(function(e,t){return(""===t||" "==t)&&(""===e||" "==e)||e===t}(n,o)&&!a)return v(),i?(y=t,"break"):(y=t,"continue")}-1===r&&(r=f-1),g.push(h.slice(t,r+1).join("")),y=t=r},w=0;w<f;++w){var x=b(w);if(w=y,"object"==typeof x)return x.value;if("break"===x)break}return g.length&&m.push(g.join("")),m}function di(e){return ui(e,"")}function pi(e){return ui(e,",")}function hi(e){var t=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(e);return!t||t.length<4?{}:{prefix:t[1],value:t[2],suffix:t[3]}}function fi(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],r=t[2];return{prefix:n,unit:t[3],value:parseFloat(r)}}function mi(){return Date.now?Date.now():(new Date).getTime()}function gi(e,t,n){void 0===n&&(n=-1);for(var r=e.length,o=0;o<r;++o)if(t(e[o],o,e))return o;return n}function vi(e,t,n){var r=gi(e,t);return r>-1?e[r]:n}var yi=function(){var e=mi(),t=Yo&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame);return t?t.bind(window):function(t){var n=mi();return setTimeout((function(){t(n-e)}),1e3/60)}}(),bi=function(){var e=Yo&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return e?e.bind(window):function(e){clearTimeout(e)}}();function wi(e){return Object.keys(e)}function xi(e,t){var n=fi(e),r=n.value,o=n.unit;if(ri(t)){var i=t[o];if(i){if(si(i))return i(r);if(ei[o])return ei[o](r,i)}}else if("%"===o)return r*t/100;return ei[o]?ei[o](r):r}function _i(e,t,n){return Math.max(t,Math.min(e,n))}function Si(e,t,n,r){return void 0===r&&(r=e[0]/e[1]),[[Di(t[0],Jo),Di(t[0]/r,Jo)],[Di(t[1]*r,Jo),Di(t[1],Jo)]].filter((function(e){return e.every((function(e,r){var o=t[r],i=Di(o,Jo);return n?e<=o||e<=i:e>=o||e>=i}))}))[0]||e}function Ci(e,t,n,r){if(!r)return e.map((function(e,r){return _i(e,t[r],n[r])}));var o=e[0],i=e[1],a=!0===r?o/i:r,s=Si(e,t,!1,a),l=s[0],c=s[1],u=Si(e,n,!0,a),d=u[0],p=u[1];return o<l||i<c?(o=l,i=c):(o>d||i>p)&&(o=d,i=p),[o,i]}function Ei(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function ki(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=Math.atan2(r,n);return o>=0?o:o+2*Math.PI}function zi(e){var t=function(e){return[0,1].map((function(t){return Ei(e.map((function(e){return e[t]})))}))}(e),n=ki(t,e[0]),r=ki(t,e[1]);return n<r&&r-n<Math.PI||n>r&&r-n<-Math.PI?1:-1}function Pi(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function Di(e,t){if(!t)return e;var n=1/t;return Math.round(e/t)/n}function Ai(e,t){return e.forEach((function(n,r){e[r]=Di(e[r],t)})),e}function Ti(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function Ii(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function Mi(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function Ri(e,t,n,r){e.addEventListener(t,n,r)}function Fi(e,t,n,r){e.removeEventListener(t,n,r)}function Ni(e){return(null==e?void 0:e.ownerDocument)||Xo}function Oi(e){return Ni(e).documentElement}function ji(e){return Ni(e).body}function Li(e){var t;return(null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView)||window}function Bi(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function Ki(e){return ri(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}function Vi(e,t,n,r,o,i){for(var a=0;a<o;++a){var s=n+a*o,l=r+a*o;e[s]+=e[l]*i,t[s]+=t[l]*i}}function Hi(e,t,n,r,o){for(var i=0;i<o;++i){var a=n+i*o,s=r+i*o,l=e[a],c=t[a];e[a]=e[s],e[s]=l,t[a]=t[s],t[s]=c}}function $i(e,t,n,r,o){for(var i=0;i<r;++i){var a=n+i*r;e[a]/=o,t[a]/=o}}function Ui(e,t,n){void 0===n&&(n=Math.sqrt(e.length));for(var r=e.slice(),o=0;o<n;++o)r[o*n+t-1]=0,r[(t-1)*n+o]=0;return r[(t-1)*(n+1)]=1,r}function Zi(e,t){void 0===t&&(t=Math.sqrt(e.length));for(var n=e.slice(),r=da(t),o=0;o<t;++o){var i=t*o+o;if(!Di(n[i],Jo))for(var a=o+1;a<t;++a)if(n[t*o+a]){Hi(n,r,o,a,t);break}if(!Di(n[i],Jo))return[];$i(n,r,o,t,n[i]);for(a=0;a<t;++a){var s=a,l=n[a+o*t];Di(l,Jo)&&o!==a&&Vi(n,r,s,o,t,-l)}}return r}function qi(e,t){void 0===t&&(t=Math.sqrt(e.length));for(var n=[],r=e[t*t-1],o=0;o<t-1;++o)n[o]=e[t*(t-1)+o]/r;return n[t-1]=0,n}function Gi(e,t){for(var n=e.slice(),r=e.length;r<t-1;++r)n[r]=0;return n[t-1]=1,n}function Wi(e,t,n){if(void 0===t&&(t=Math.sqrt(e.length)),t===n)return e;for(var r=da(n),o=Math.min(t,n),i=0;i<o-1;++i){for(var a=0;a<o-1;++a)r[i*n+a]=e[i*t+a];r[(i+1)*n-1]=e[(i+1)*t-1],r[(n-1)*n+i]=e[(t-1)*t+i]}return r[n*n-1]=e[t*t-1],r}function Yi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=da(e);return t.forEach((function(t){r=Xi(r,t,e)})),r}function Xi(e,t,n){void 0===n&&(n=Math.sqrt(e.length));var r=[],o=e.length/n,i=t.length/o;if(!o)return t;if(!i)return e;for(var a=0;a<n;++a)for(var s=0;s<i;++s){r[s*n+a]=0;for(var l=0;l<o;++l)r[s*n+a]+=e[l*n+a]*t[s*o+l]}return r}function Qi(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),o=0;o<n;++o)r[o]=r[o]+t[o];return r}function Ji(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),o=0;o<n;++o)r[o]=r[o]-t[o];return r}function ea(e,t){return void 0===t&&(t=6===e.length),t?[e[0],e[1],0,e[2],e[3],0,e[4],e[5],1]:e}function ta(e,t){return void 0===t&&(t=9===e.length),t?[e[0],e[1],e[3],e[4],e[6],e[7]]:e}function na(e,t,n){void 0===n&&(n=t.length);var r=Xi(e,t,n),o=r[n-1];return r.map((function(e){return e/o}))}function ra(e,t){return Xi(e,[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1],4)}function oa(e,t){return Xi(e,[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1],4)}function ia(e,t){return Xi(e,ua(t,4))}function aa(e,t){var n=t[0],r=void 0===n?1:n,o=t[1],i=void 0===o?1:o,a=t[2];return Xi(e,[r,0,0,0,0,i,0,0,0,0,void 0===a?1:a,0,0,0,0,1],4)}function sa(e,t){return na(ua(t,3),Gi(e,3))}function la(e,t){var n=t[0],r=void 0===n?0:n,o=t[1],i=void 0===o?0:o,a=t[2];return Xi(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,i,void 0===a?0:a,1],4)}function ca(e,t){return Xi(e,t,4)}function ua(e,t){var n=Math.cos(e),r=Math.sin(e),o=da(t);return o[0]=n,o[1]=r,o[t]=-r,o[t+1]=n,o}function da(e){for(var t=e*e,n=[],r=0;r<t;++r)n[r]=r%(e+1)?0:1;return n}function pa(e,t){for(var n=da(t),r=Math.min(e.length,t-1),o=0;o<r;++o)n[(t+1)*o]=e[o];return n}function ha(e,t){for(var n=da(t),r=Math.min(e.length,t-1),o=0;o<r;++o)n[t*(t-1)+o]=e[o];return n}function fa(e,t,n,r,o,i,a,s){var l=e[0],c=e[1],u=t[0],d=t[1],p=n[0],h=n[1],f=r[0],m=r[1],g=o[0],v=o[1],y=i[0],b=i[1],w=a[0],x=a[1],_=s[0],S=s[1],C=Zi([l,0,u,0,p,0,f,0,c,0,d,0,h,0,m,0,1,0,1,0,1,0,1,0,0,l,0,u,0,p,0,f,0,c,0,d,0,h,0,m,0,1,0,1,0,1,0,1,-g*l,-v*l,-y*u,-b*u,-w*p,-x*p,-_*f,-S*f,-g*c,-v*c,-y*d,-b*d,-w*h,-x*h,-_*m,-S*m],8);if(!C.length)return[];var E=Xi(C,[g,v,y,b,w,x,_,S],8);return E[8]=1,Wi(function(e,t){void 0===t&&(t=Math.sqrt(e.length));for(var n=[],r=0;r<t;++r)for(var o=0;o<t;++o)n[o*t+r]=e[t*r+o];return n}(E),3,4)}var ma=function(){return ma=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ma.apply(this,arguments)};function ga(e,t){return void 0===t&&(t=0),va(ya(e,t))}function va(e){var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(e){var n=e.matrixFunction,r=e.functionValue;n&&(t=n(t,r))})),t}function ya(e,t){return void 0===t&&(t=0),(oi(e)?e:di(e)).map((function(e){var n=hi(e),r=n.prefix,o=n.value,i=null,a=r,s="";if("translate"===r||"translateX"===r||"translate3d"===r){var l=ri(t)?ma(ma({},t),{"o%":t["%"]}):{"%":t,"o%":t},c=pi(o).map((function(e,n){return l["%"]=0===n&&"x%"in l?t["x%"]:1===n&&"y%"in l?t["y%"]:t["o%"],xi(e,l)})),u=c[0],d=c[1],p=void 0===d?0:d,h=c[2];i=la,s=[u,p,void 0===h?0:h]}else if("translateY"===r){i=la,s=[0,p=xi(o,ri(t)?ma({"%":t["y%"]},t):{"%":t}),0]}else if("translateZ"===r){i=la,s=[0,0,parseFloat(o)]}else if("scale"===r||"scale3d"===r){var f=pi(o).map((function(e){return parseFloat(e)})),m=f[0],g=f[1],v=void 0===g?m:g,y=f[2];i=aa,s=[m,v,void 0===y?1:y]}else if("scaleX"===r){i=aa,s=[m=parseFloat(o),1,1]}else if("scaleY"===r){i=aa,s=[1,v=parseFloat(o),1]}else if("scaleZ"===r){i=aa,s=[1,1,parseFloat(o)]}else if("rotate"===r||"rotateZ"===r||"rotateX"===r||"rotateY"===r){var b=fi(o),w=b.unit,x=b.value;"rotate"===r||"rotateZ"===r?(a="rotateZ",i=ia):"rotateX"===r?i=ra:"rotateY"===r&&(i=oa),s="rad"===w?x:x*Math.PI/180}else if("matrix3d"===r)i=ca,s=pi(o).map((function(e){return parseFloat(e)}));else if("matrix"===r){var _=pi(o).map((function(e){return parseFloat(e)}));i=ca,s=[_[0],_[1],0,0,_[2],_[3],0,0,0,0,1,0,_[4],_[5],0,1]}else a="";return{name:r,functionName:a,value:o,matrixFunction:i,functionValue:s}}))}var ba=function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(e){return this.values[this.keys.indexOf(e)]},t.set=function(e,t){var n=this.keys,r=this.values,o=n.indexOf(e),i=-1===o?n.length:o;n[i]=e,r[i]=t},e}(),wa=function(){function e(){this.object={}}var t=e.prototype;return t.get=function(e){return this.object[e]},t.set=function(e,t){this.object[e]=t},e}(),xa="function"==typeof Map,_a=function(){function e(){}var t=e.prototype;return t.connect=function(e,t){this.prev=e,this.next=t,e&&(e.next=this),t&&(t.prev=this)},t.disconnect=function(){var e=this.prev,t=this.next;e&&(e.next=t),t&&(t.prev=e)},t.getIndex=function(){for(var e=this,t=-1;e;)e=e.prev,++t;return t},e}();var Sa=function(){function e(e,t,n,r,o,i,a,s){this.prevList=e,this.list=t,this.added=n,this.removed=r,this.changed=o,this.maintained=i,this.changedBeforeAdded=a,this.fixed=s}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var e=function(e,t){var n=[],r=[];return e.forEach((function(e){var t=e[0],o=e[1],i=new _a;n[t]=i,r[o]=i})),n.forEach((function(e,t){e.connect(n[t-1])})),e.filter((function(e,n){return!t[n]})).map((function(e,t){var o=e[0],i=e[1];if(o===i)return[0,0];var a=n[o],s=r[i-1],l=a.getIndex();return a.disconnect(),s?a.connect(s,s.next):a.connect(void 0,n[0]),[l,a.getIndex()]}))}(this.changedBeforeAdded,this.fixed),t=this.changed,n=[];this.cacheOrdered=e.filter((function(e,r){var o=e[0],i=e[1],a=t[r],s=a[0],l=a[1];if(o!==i)return n.push([s,l]),!0})),this.cachePureChanged=n},e}();function Ca(e,t,n){var r=xa?Map:n?wa:ba,o=n||function(e){return e},i=[],a=[],s=[],l=e.map(o),c=t.map(o),u=new r,d=new r,p=[],h=[],f={},m=[],g=0,v=0;return l.forEach((function(e,t){u.set(e,t)})),c.forEach((function(e,t){d.set(e,t)})),l.forEach((function(e,t){var n=d.get(e);void 0===n?(++v,a.push(t)):f[n]=v})),c.forEach((function(e,t){var n=u.get(e);void 0===n?(i.push(t),++g):(s.push([n,t]),v=f[t]||0,p.push([n-v,t-g]),h.push(t===n),n!==t&&m.push([n,t]))})),a.reverse(),new Sa(e,t,i,a,m,s,p,h)}var Ea=function(){function e(e,t){void 0===e&&(e=[]),this.findKeyCallback=t,this.list=[].slice.call(e)}return e.prototype.update=function(e){var t=[].slice.call(e),n=Ca(this.list,t,this.findKeyCallback);return this.list=t,n},e}();var ka=function(e,t){return ka=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])},ka(e,t)};var za,Pa="function"==typeof Map?void 0:(za=0,function(e){return e.__DIFF_KEY__||(e.__DIFF_KEY__=++za)}),Da=function(e){function t(t){return void 0===t&&(t=[]),e.call(this,t,Pa)||this}return function(e,t){function n(){this.constructor=e}ka(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Ea);const Aa=Da;var Ta=function(){return Ta=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ta.apply(this,arguments)};var Ia=function(){function e(){this._events={}}var t=e.prototype;return t.on=function(e,t){if(ri(e))for(var n in e)this.on(n,e[n]);else this._addEvent(e,t,{});return this},t.off=function(e,t){if(e)if(ri(e))for(var n in e)this.off(n);else if(t){var r=this._events[e];if(r){var o=gi(r,(function(e){return e.listener===t}));o>-1&&r.splice(o,1)}}else this._events[e]=[];else this._events={};return this},t.once=function(e,t){var n=this;return t&&this._addEvent(e,t,{once:!0}),new Promise((function(t){n._addEvent(e,t,{once:!0})}))},t.emit=function(e,t){var n=this;void 0===t&&(t={});var r=this._events[e];if(!e||!r)return!0;var o=!1;return t.eventType=e,t.stop=function(){o=!0},t.currentTarget=this,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}(r).forEach((function(r){r.listener(t),r.once&&n.off(e,r.listener)})),!o},t.trigger=function(e,t){return void 0===t&&(t={}),this.emit(e,t)},t._addEvent=function(e,t,n){var r=this._events;r[e]=r[e]||[],r[e].push(Ta({listener:t},n))},e}();const Ma=Ia;function Ra(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function Fa(e){return Di(e,Jo)}function Na(e){return e.length<3?0:Math.abs(function(e){for(var t=0,n=e.length-1;n>=0;--n)t+=e[n];return t}(e.map((function(t,n){var r=e[n+1]||e[0];return t[0]*r[1]-r[0]*t[1]}))))/2}function Oa(e,t){var n=t.width,r=t.height,o=t.left,i=t.top,a=ja(e),s=a.minX,l=a.minY,c=a.maxX,u=a.maxY,d=n/(c-s),p=r/(u-l);return e.map((function(e){return[o+(e[0]-s)*d,i+(e[1]-l)*p]}))}function ja(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]}));return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,n)}}function La(e,t,n){var r=e[0],o=e[1],i=ja(t),a=i.minX,s=i.maxX,l=[[a,o],[s,o]],c=Ba(l[0],l[1]),u=Ha(t),d=[];if(u.forEach((function(t){var n,r=Ba(t[0],t[1]),i=t[0];(n=r,c.every((function(e,t){return 0===Fa(e-n[t])})))?d.push({pos:e,line:t,type:"line"}):Va(Ka(c,r),[l,t]).forEach((function(e){t.some((function(t){return r=e,!Fa((n=t)[0]-r[0])&&!Fa(n[1]-r[1]);var n,r}))?d.push({pos:e,line:t,type:"point"}):0!==Fa(i[1]-o)&&d.push({pos:e,line:t,type:"intersection"})}))})),!n&&vi(d,(function(e){return e[0]===r})))return!0;var p=0,h={};return d.forEach((function(e){var t=e.pos,n=e.type,i=e.line;if(!(t[0]>r))if("intersection"===n)++p;else{if("line"===n)return;if("point"===n){var a=vi(i,(function(e){return e[1]!==o})),s=h[t[0]],l=a[1]>o?1:-1;s?s!==l&&++p:h[t[0]]=l}}})),p%2==1}function Ba(e,t){var n=e[0],r=e[1],o=t[0]-n,i=t[1]-r;Math.abs(o)<Jo&&(o=0),Math.abs(i)<Jo&&(i=0);var a=0,s=0,l=0;return o?i?(s=1,l=-(a=-i/o)*n-r):(s=1,l=-r):i&&(a=-1,l=n),[a,s,l]}function Ka(e,t){var n=e[0],r=e[1],o=e[2],i=t[0],a=t[1],s=t[2],l=0===n&&0===i,c=0===r&&0===a,u=[];if(l&&c)return[];if(l){var d=-o/r;return d!==-s/a?[]:[[-1/0,d],[1/0,d]]}if(c){var p=-o/n;return p!==-s/i?[]:[[p,-1/0],[p,1/0]]}if(0===n)u=[[h=-(a*(f=-o/r)+s)/i,f]];else if(0===i){u=[[h=-(r*(f=-s/a)+o)/n,f]]}else if(0===r){u=[[h=-o/n,f=-(i*h+s)/a]]}else if(0===a){u=[[h=-s/i,f=-(n*h+o)/r]]}else{var h,f;u=[[h=(r*s-a*o)/(a*n-r*i),f=-(n*h+o)/r]]}return u.map((function(e){return[e[0],e[1]]}))}function Va(e,t){var n=t.map((function(e){return[0,1].map((function(t){return[Math.min(e[0][t],e[1][t]),Math.max(e[0][t],e[1][t])]}))})),r=[];if(2===e.length){var o=e[0],i=o[0],a=o[1];if(Fa(i-e[1][0])){if(!Fa(a-e[1][1])){var s=Math.max.apply(Math,n.map((function(e){return e[0][0]}))),l=Math.min.apply(Math,n.map((function(e){return e[0][1]})));if(Fa(s-l)>0)return[];r=[[s,a],[l,a]]}}else{var c=Math.max.apply(Math,n.map((function(e){return e[1][0]}))),u=Math.min.apply(Math,n.map((function(e){return e[1][1]})));if(Fa(c-u)>0)return[];r=[[i,c],[i,u]]}}return r.length||(r=e.filter((function(e){var t=e[0],r=e[1];return n.every((function(e){return 0<=Fa(t-e[0][0])&&0<=Fa(e[0][1]-t)&&0<=Fa(r-e[1][0])&&0<=Fa(e[1][1]-r)}))}))),r.map((function(e){return[Fa(e[0]),Fa(e[1])]}))}function Ha(e){return Ra(e.slice(1),[e[0]]).map((function(t,n){return[e[n],t]}))}function $a(e,t){var n=e.slice(),r=t.slice();-1===zi(n)&&n.reverse(),-1===zi(r)&&r.reverse();var o=Ha(n),i=Ha(r),a=o.map((function(e){return Ba(e[0],e[1])})),s=i.map((function(e){return Ba(e[0],e[1])})),l=[];a.forEach((function(e,t){var n=o[t],a=[];s.forEach((function(r,o){var s=Va(Ka(e,r),[n,i[o]]);a.push.apply(a,s.map((function(e){return{index1:t,index2:o,pos:e,type:"intersection"}})))})),a.sort((function(e,t){return Pi(n[0],e.pos)-Pi(n[0],t.pos)})),l.push.apply(l,a),La(n[1],r)&&l.push({index1:t,index2:-1,pos:n[1],type:"inside"})})),i.forEach((function(e,t){if(La(e[1],n)){var r=!1,o=gi(l,(function(e){return e.index2===t?(r=!0,!1):!!r}));-1===o&&(r=!1,o=gi(l,(function(e){var n=e.index1,o=e.index2;return-1===n&&o+1===t?(r=!0,!1):!!r}))),-1===o?l.push({index1:-1,index2:t,pos:e[1],type:"inside"}):l.splice(o,0,{index1:-1,index2:t,pos:e[1],type:"inside"})}}));var c={};return l.filter((function(e){var t=e.pos,n=t[0]+"x"+t[1];return!c[n]&&(c[n]=!0,!0)}))}function Ua(e,t){var n=function(e,t){return $a(e,t).map((function(e){return e.pos}))}(e,t);return Na(n)}var Za=function(e,t){return Za=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])},Za(e,t)};var qa=function(){return qa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qa.apply(this,arguments)};function Ga(e){return 180*(t=[e[0].clientX,e[0].clientY],n=[e[1].clientX,e[1].clientY],r=n[0]-t[0],o=n[1]-t[1],((i=Math.atan2(o,r))>=0?i:i+2*Math.PI)/Math.PI);var t,n,r,o,i}function Wa(e){return e?e.touches?function(e){for(var t=Math.min(e.length,2),n=[],r=0;r<t;++r)n.push(Qa(e[r]));return n}(e.touches):[Qa(e)]:[]}function Ya(e,t,n){var r=n.length,o=Ja(e,r),i=o.clientX,a=o.clientY,s=o.originalClientX,l=o.originalClientY,c=Ja(t,r),u=c.clientX,d=c.clientY,p=Ja(n,r);return{clientX:s,clientY:l,deltaX:i-u,deltaY:a-d,distX:i-p.clientX,distY:a-p.clientY}}function Xa(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function Qa(e){return{clientX:e.clientX,clientY:e.clientY}}function Ja(e,t){void 0===t&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(e.length,t),o=0;o<r;++o){var i=e[o];n.originalClientX+="originalClientX"in i?i.originalClientX:i.clientX,n.originalClientY+="originalClientY"in i?i.originalClientY:i.clientY,n.clientX+=i.clientX,n.clientY+=i.clientY}return t?{clientX:n.clientX/t,clientY:n.clientY/t,originalClientX:n.originalClientX/t,originalClientY:n.originalClientY/t}:n}var es=function(){function e(e){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=e,this.prevClients=e,this.length=e.length}return e.prototype.getAngle=function(e){return void 0===e&&(e=this.prevClients),Ga(e)},e.prototype.getRotation=function(e){return void 0===e&&(e=this.prevClients),Ga(e)-Ga(this.startClients)},e.prototype.getPosition=function(e,t){void 0===e&&(e=this.prevClients);var n=Ya(e||this.prevClients,this.prevClients,this.startClients),r=n.deltaX,o=n.deltaY;return this.movement+=Math.sqrt(r*r+o*o),this.prevClients=e,n},e.prototype.getPositions=function(e){void 0===e&&(e=this.prevClients);for(var t=this.prevClients,n=this.startClients,r=Math.min(this.length,t.length),o=[],i=0;i<r;++i)o[i]=Ya([e[i]],[t[i]],[n[i]]);return o},e.prototype.getMovement=function(e){var t=this.movement;if(!e)return t;var n=Ja(e,this.length),r=Ja(this.prevClients,this.length),o=n.clientX-r.clientX,i=n.clientY-r.clientY;return Math.sqrt(o*o+i*i)+t},e.prototype.getDistance=function(e){return void 0===e&&(e=this.prevClients),Xa(e)},e.prototype.getScale=function(e){return void 0===e&&(e=this.prevClients),Xa(e)/Xa(this.startClients)},e.prototype.move=function(e,t){this.startClients.forEach((function(n){n.clientX-=e,n.clientY-=t})),this.prevClients.forEach((function(n){n.clientX-=e,n.clientY-=t}))},e}(),ts=["textarea","input"],ns=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;r.options={},r.flag=!1,r.pinchFlag=!1,r.data={},r.isDrag=!1,r.isPinch=!1,r.clientStores=[],r.targets=[],r.prevTime=0,r.doubleFlag=!1,r._useMouse=!1,r._useTouch=!1,r._useDrag=!1,r._dragFlag=!1,r._isTrusted=!1,r._isMouseEvent=!1,r._isSecondaryButton=!1,r._preventMouseEvent=!1,r._prevInputEvent=null,r._isDragAPI=!1,r._isIdle=!0,r._preventMouseEventId=0,r._window=window,r.onDragStart=function(e,t){if(void 0===t&&(t=!0),r.flag||!1!==e.cancelable){var n=e.type.indexOf("drag")>=-1;if(!r.flag||!n){r._isDragAPI=!0;var o=r.options,i=o.container,a=o.pinchOutside,s=o.preventWheelClick,l=o.preventRightClick,c=o.preventDefault,u=o.checkInput,d=o.dragFocusedInput,p=o.preventClickEventOnDragStart,h=o.preventClickEventOnDrag,f=o.preventClickEventByCondition,m=r._useTouch,g=!r.flag;if(r._isSecondaryButton=3===e.which||2===e.button,s&&(2===e.which||1===e.button)||l&&(3===e.which||2===e.button))return r.stop(),!1;if(g){var v=r._window.document.activeElement,y=e.target;if(y){var b=y.tagName.toLowerCase(),w=ts.indexOf(b)>-1,x=y.isContentEditable;if(w||x){if(u||!d&&v===y)return!1;if(v&&(v===y||x&&v.isContentEditable&&v.contains(y))){if(!d)return!1;y.blur()}}else if((c||"touchstart"===e.type)&&v){var _=v.tagName.toLowerCase();(v.isContentEditable||ts.indexOf(_)>-1)&&v.blur()}(p||h||f)&&Ri(r._window,"click",r._onClick,!0)}r.clientStores=[new es(Wa(e))],r._isIdle=!1,r.flag=!0,r.isDrag=!1,r._isTrusted=t,r._dragFlag=!0,r._prevInputEvent=e,r.data={},r.doubleFlag=mi()-r.prevTime<200,r._isMouseEvent=function(e){return e&&(e.type.indexOf("mouse")>-1||"button"in e)}(e),!r._isMouseEvent&&r._preventMouseEvent&&r._allowMouseEvent(),!1===(r._preventMouseEvent||r.emit("dragStart",qa(qa({data:r.data,datas:r.data,inputEvent:e,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,isTrusted:t,isDouble:r.doubleFlag},r.getCurrentStore().getPosition()),{preventDefault:function(){e.preventDefault()},preventDrag:function(){r._dragFlag=!1}})))&&r.stop(),r._isMouseEvent&&r.flag&&c&&e.preventDefault()}if(!r.flag)return!1;var S=0;if(g?(r._attchDragEvent(),m&&a&&(S=setTimeout((function(){Ri(i,"touchstart",r.onDragStart,{passive:!1})})))):m&&a&&Fi(i,"touchstart",r.onDragStart),r.flag&&function(e){return e.touches&&e.touches.length>=2}(e)){if(clearTimeout(S),g&&e.touches.length!==e.changedTouches.length)return;r.pinchFlag||r.onPinchStart(e)}}}},r.onDrag=function(e,t){if(r.flag){var n=r.options.preventDefault;!r._isMouseEvent&&n&&e.preventDefault(),r._prevInputEvent=e;var o=Wa(e),i=r.moveClients(o,e,!1);if(r._dragFlag){if(r.pinchFlag||i.deltaX||i.deltaY)if(!1===(r._preventMouseEvent||r.emit("drag",qa(qa({},i),{isScroll:!!t,inputEvent:e}))))return void r.stop();r.pinchFlag&&r.onPinch(e,o)}r.getCurrentStore().getPosition(o,!0)}},r.onDragEnd=function(e){if(r.flag){var t=r.options,n=t.pinchOutside,o=t.container,i=t.preventClickEventOnDrag,a=t.preventClickEventOnDragStart,s=t.preventClickEventByCondition,l=r.isDrag;(i||a||s)&&requestAnimationFrame((function(){r._allowClickEvent()})),s||a||!i||l||r._allowClickEvent(),r._useTouch&&n&&Fi(o,"touchstart",r.onDragStart),r.pinchFlag&&r.onPinchEnd(e);var c=(null==e?void 0:e.touches)?Wa(e):[];0!==c.length&&r.options.keepDragging?r._addStore(new es(c)):r.flag=!1;var u=r._getPosition(),d=mi(),p=!l&&r.doubleFlag;r._prevInputEvent=null,r.prevTime=l||p?0:d,r.flag||(r._dettachDragEvent(),r._preventMouseEvent||r.emit("dragEnd",qa({data:r.data,datas:r.data,isDouble:p,isDrag:l,isClick:!l,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,inputEvent:e,isTrusted:r._isTrusted},u)),r.clientStores=[],r._isMouseEvent||(r._preventMouseEvent=!0,clearTimeout(r._preventMouseEventId),r._preventMouseEventId=setTimeout((function(){r._preventMouseEvent=!1}),200)),r._isIdle=!0)}},r.onBlur=function(){r.onDragEnd()},r._allowClickEvent=function(){Fi(r._window,"click",r._onClick,!0)},r._onClick=function(e){r._allowClickEvent(),r._allowMouseEvent();var t=r.options.preventClickEventByCondition;(null==t?void 0:t(e))||(e.stopPropagation(),e.preventDefault())},r._onContextMenu=function(e){r.options.preventRightClick?r.onDragEnd(e):e.preventDefault()},r._passCallback=function(){};var o=[].concat(t),i=o[0];r._window=Bi(i)?i:Li(i),r.options=qa({checkInput:!1,container:i&&!("document"in i)?Li(i):i,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},n);var a=r.options,s=a.container,l=a.events,c=a.checkWindowBlur;if(r._useDrag=l.indexOf("drag")>-1,r._useTouch=l.indexOf("touch")>-1,r._useMouse=l.indexOf("mouse")>-1,r.targets=o,r._useDrag&&o.forEach((function(e){Ri(e,"dragstart",r.onDragStart)})),r._useMouse&&(o.forEach((function(e){Ri(e,"mousedown",r.onDragStart),Ri(e,"mousemove",r._passCallback)})),Ri(s,"contextmenu",r._onContextMenu)),c&&Ri(Li(),"blur",r.onBlur),r._useTouch){var u={passive:!1};o.forEach((function(e){Ri(e,"touchstart",r.onDragStart,u),Ri(e,"touchmove",r._passCallback,u)}))}return r}return function(e,t){function n(){this.constructor=e}Za(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},t.prototype.getMovement=function(e){return this.getCurrentStore().getMovement(e)+this.clientStores.slice(1).reduce((function(e,t){return e+t.movement}),0)},t.prototype.isDragging=function(){return this.isDrag},t.prototype.isIdle=function(){return this._isIdle},t.prototype.isFlag=function(){return this.flag},t.prototype.isPinchFlag=function(){return this.pinchFlag},t.prototype.isDoubleFlag=function(){return this.doubleFlag},t.prototype.isPinching=function(){return this.isPinch},t.prototype.scrollBy=function(e,t,n,r){void 0===r&&(r=!0),this.flag&&(this.clientStores[0].move(e,t),r&&this.onDrag(n,!0))},t.prototype.move=function(e,t){var n=e[0],r=e[1],o=this.getCurrentStore().prevClients;return this.moveClients(o.map((function(e){var t=e.clientX,o=e.clientY;return{clientX:t+n,clientY:o+r,originalClientX:t,originalClientY:o}})),t,!0)},t.prototype.triggerDragStart=function(e){this.onDragStart(e,!1)},t.prototype.setEventData=function(e){var t=this.data;for(var n in e)t[n]=e[n];return this},t.prototype.setEventDatas=function(e){return this.setEventData(e)},t.prototype.getCurrentEvent=function(e){return void 0===e&&(e=this._prevInputEvent),qa(qa({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:e})},t.prototype.getEventData=function(){return this.data},t.prototype.getEventDatas=function(){return this.data},t.prototype.unset=function(){var e=this,t=this.targets,n=this.options.container;this.off(),Fi(this._window,"blur",this.onBlur),this._useDrag&&t.forEach((function(t){Fi(t,"dragstart",e.onDragStart)})),this._useMouse&&(t.forEach((function(t){Fi(t,"mousedown",e.onDragStart)})),Fi(n,"contextmenu",this._onContextMenu)),this._useTouch&&(t.forEach((function(t){Fi(t,"touchstart",e.onDragStart)})),Fi(n,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(e){var t=this,n=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>n)){var r=new es(Wa(e));this.pinchFlag=!0,this._addStore(r),!1===this.emit("pinchStart",qa(qa({data:this.data,datas:this.data,angle:r.getAngle(),touches:this.getCurrentStore().getPositions()},r.getPosition()),{inputEvent:e,isTrusted:this._isTrusted,preventDefault:function(){e.preventDefault()},preventDrag:function(){t._dragFlag=!1}}))&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(e,t){if(this.flag&&this.pinchFlag&&!(t.length<2)){var n=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",qa(qa({data:this.data,datas:this.data,movement:this.getMovement(t),angle:n.getAngle(t),rotation:n.getRotation(t),touches:n.getPositions(t),scale:n.getScale(t),distance:n.getDistance(t)},n.getPosition(t)),{inputEvent:e,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(e){if(this.pinchFlag){var t=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var n=this.getCurrentStore();this.emit("pinchEnd",qa(qa({data:this.data,datas:this.data,isPinch:t,touches:n.getPositions()},n.getPosition()),{inputEvent:e}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(e,t,n){var r=this._getPosition(e,n),o=this.isDrag;(r.deltaX||r.deltaY)&&(this.isDrag=!0);var i=!1;return!o&&this.isDrag&&(i=!0),qa(qa({data:this.data,datas:this.data},r),{movement:this.getMovement(e),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:t,isTrusted:this._isTrusted,isFirstDrag:i})},t.prototype._addStore=function(e){this.clientStores.splice(0,0,e)},t.prototype._getPosition=function(e,t){var n=this.getCurrentStore().getPosition(e,t),r=this.clientStores.slice(1).reduce((function(e,t){var n=t.getPosition();return e.distX+=n.distX,e.distY+=n.distY,e}),n),o=r.distX,i=r.distY;return qa(qa({},n),{distX:o,distY:i})},t.prototype._attchDragEvent=function(){var e=this._window,t=this.options.container,n={passive:!1};this._isDragAPI&&(Ri(t,"dragover",this.onDrag,n),Ri(e,"dragend",this.onDragEnd)),this._useMouse&&(Ri(t,"mousemove",this.onDrag),Ri(e,"mouseup",this.onDragEnd)),this._useTouch&&(Ri(t,"touchmove",this.onDrag,n),Ri(e,"touchend",this.onDragEnd,n),Ri(e,"touchcancel",this.onDragEnd,n))},t.prototype._dettachDragEvent=function(){var e=this._window,t=this.options.container;this._isDragAPI&&(Fi(t,"dragover",this.onDrag),Fi(e,"dragend",this.onDragEnd)),this._useMouse&&(Fi(t,"mousemove",this.onDrag),Fi(e,"mouseup",this.onDragEnd)),this._useTouch&&(Fi(t,"touchstart",this.onDragStart),Fi(t,"touchmove",this.onDrag),Fi(e,"touchend",this.onDragEnd),Fi(e,"touchcancel",this.onDragEnd))},t.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},t}(Ma);var rs=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0};function os(e,t,n,r,o){var i=Ni(r),a=i.createElement("style");return a.setAttribute("type","text/css"),a.setAttribute("data-styled-id",e),a.setAttribute("data-styled-count","1"),n.nonce&&a.setAttribute("nonce",n.nonce),a.innerHTML=function(e,t,n){return n.original?t:t.replace(/([^};{\s}][^};{]*|^\s*){/gm,(function(t,n){var r=n.trim();return(r?pi(r):[""]).map((function(t){var n=t.trim();return 0===n.indexOf("@")?n:n.indexOf(":global")>-1?n.replace(/\:global/g,""):n.indexOf(":host")>-1?"".concat(n.replace(/\:host/g,".".concat(e))):n?".".concat(e," ").concat(n):".".concat(e)})).join(", ")+" {"}))}(e,t,n),(o||i.head||i.body).appendChild(a),a}const is=function(e){var t="rCS"+rs(e).toString(36);return{className:t,inject:function(n,r){void 0===r&&(r={});var o=function(e){if(e&&e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t}}(n),i=(o||n.ownerDocument||document).querySelector('style[data-styled-id="'.concat(t,'"]'));if(i){var a=parseFloat(i.getAttribute("data-styled-count"))||0;i.setAttribute("data-styled-count","".concat(a+1))}else i=os(t,e,r,n,o);return{destroy:function(){var e,t=parseFloat(i.getAttribute("data-styled-count"))||0;t<=1?(i.remove?i.remove():null===(e=i.parentNode)||void 0===e||e.removeChild(i),i=null):i.setAttribute("data-styled-count","".concat(t-1))}}}}};var as=function(){return as=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},as.apply(this,arguments)};function ss(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function ls(e,t){var n=is(t),r=n.className;return(0,l.forwardRef)((function(t,o){var i=t.className,a=void 0===i?"":i,s=(t.cspNonce,ss(t,["className","cspNonce"])),c=(0,l.useRef)();return(0,l.useImperativeHandle)(o,(function(){return c.current}),[]),(0,l.useEffect)((function(){var e=n.inject(c.current,{nonce:t.cspNonce});return function(){e.destroy()}}),[]),(0,l.createElement)(e,as({ref:c,"data-styled-id":r,className:"".concat(a," ").concat(r)},s))}))}var cs=function(e,t){return cs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},cs(e,t)};function us(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}cs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ds=function(){return ds=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ds.apply(this,arguments)};function ps(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function hs(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function fs(e,t){return ds({events:[],props:[],name:e},t)}var ms=["n","w","s","e"],gs=["n","w","s","e","nw","ne","sw","se"];var vs,ys,bs=Uo(),ws=bs.browser.webkit,xs=ws&&(vs="undefined"==typeof window?{userAgent:""}:window.navigator,!!(ys=/applewebkit\/([^\s]+)/g.exec(vs.userAgent.toLowerCase()))&&parseFloat(ys[1])<605),_s=bs.browser.name,Ss=parseInt(bs.browser.version,10),Cs="chrome"===_s,Es=bs.browser.chromium,ks=parseInt(bs.browser.chromiumVersion,10)||0,zs=Cs&&Ss>=109||Es&&ks>=109,Ps="firefox"===_s,Ds=parseInt(bs.browser.webkitVersion,10)>=612||Ss>=15,As="moveable-",Ts=gs.map((function(e){var t="",n="",r="center",o="center",i="calc(var(--moveable-control-padding, 20) * -1px)";return e.indexOf("n")>-1&&(t="top: ".concat(i,";"),o="bottom"),e.indexOf("s")>-1&&(t="top: 0px;",o="top"),e.indexOf("w")>-1&&(n="left: ".concat(i,";"),r="right"),e.indexOf("e")>-1&&(n="left: 0px;",r="left"),'.around-control[data-direction*="'.concat(e,'"] {\n        ').concat(n).concat(t,"\n        transform-origin: ").concat(r," ").concat(o,";\n    }")})).join("\n"),Is="\n{\nposition: absolute;\nwidth: 1px;\nheight: 1px;\nleft: 0;\ntop: 0;\nz-index: 3000;\n--moveable-color: #4af;\n--zoom: 1;\n--zoompx: 1px;\n--moveable-line-padding: 0;\n--moveable-control-padding: 0;\nwill-change: transform;\noutline: 1px solid transparent;\n}\n.control-box {\nz-index: 0;\n}\n.line, .control {\nposition: absolute;\nleft: 0;\ntop: 0;\nwill-change: transform;\n}\n.control {\nwidth: 14px;\nheight: 14px;\nborder-radius: 50%;\nborder: 2px solid #fff;\nbox-sizing: border-box;\nbackground: #4af;\nbackground: var(--moveable-color);\nmargin-top: -7px;\nmargin-left: -7px;\nborder: 2px solid #fff;\nz-index: 10;\n}\n.around-control {\nposition: absolute;\nwill-change: transform;\nwidth: calc(var(--moveable-control-padding, 20) * 1px);\nheight: calc(var(--moveable-control-padding, 20) * 1px);\nleft: calc(var(--moveable-control-padding, 20) * -0.5px);\ntop: calc(var(--moveable-control-padding, 20) * -0.5px);\nbox-sizing: border-box;\nbackground: transparent;\nz-index: 8;\ncursor: alias;\ntransform-origin: center center;\n}\n".concat(Ts,"\n.padding {\nposition: absolute;\ntop: 0px;\nleft: 0px;\nwidth: 100px;\nheight: 100px;\ntransform-origin: 0 0;\n}\n.line {\nwidth: 1px;\nheight: 1px;\nbackground: #4af;\nbackground: var(--moveable-color);\ntransform-origin: 0px 50%;\n}\n.line.edge {\nz-index: 1;\nbackground: transparent;\n}\n.line.dashed {\nbox-sizing: border-box;\nbackground: transparent;\n}\n.line.dashed.horizontal {\nborder-top: 1px dashed #4af;\nborder-top-color: #4af;\nborder-top-color: var(--moveable-color);\n}\n.line.dashed.vertical {\nborder-left: 1px dashed #4af;\nborder-left-color: #4af;\nborder-left-color: var(--moveable-color);\n}\n.line.vertical {\ntransform: translateX(-50%);\n}\n.line.horizontal {\ntransform: translateY(-50%);\n}\n.line.vertical.bold {\nwidth: 2px;\n}\n.line.horizontal.bold {\nheight: 2px;\n}\n\n.control.origin {\nborder-color: #f55;\nbackground: #fff;\nwidth: 12px;\nheight: 12px;\nmargin-top: -6px;\nmargin-left: -6px;\npointer-events: none;\n}\n").concat([0,15,30,45,60,75,90,105,120,135,150,165].map((function(e){return'\n.direction[data-rotation="'.concat(e,'"], :global .view-control-rotation').concat(e," {\n").concat(function(e){var t=function(e,t){return'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(32*e,'px" height="').concat(32*e,'px" viewBox="0 0 32 32" ><path d="M 16,5 L 12,10 L 14.5,10 L 14.5,22 L 12,22 L 16,27 L 20,22 L 17.5,22 L 17.5,10 L 20, 10 L 16,5 Z" stroke-linejoin="round" stroke-width="1.2" fill="black" stroke="white" style="transform:rotate(').concat(t,'deg);transform-origin: 16px 16px"></path></svg>')}(1,e),n=45*Math.round(e/45)%180,r="ns-resize";return 135===n?r="nwse-resize":45===n?r="nesw-resize":90===n&&(r="ew-resize"),"cursor:".concat(r,";cursor: url('").concat(t,"') 16 16, ").concat(r,";")}(e),"\n}\n")})).join("\n"),'\n\n.line.direction:before {\ncontent: "";\nposition: absolute;\nwidth: 100%;\nheight: calc(var(--moveable-line-padding, 0) * 1px);\nbottom: 0;\nleft: 0;\n}\n.group {\nz-index: -1;\n}\n.area {\nposition: absolute;\n}\n.area-pieces {\nposition: absolute;\ntop: 0;\nleft: 0;\ndisplay: none;\n}\n.area.avoid, .area.pass {\npointer-events: none;\n}\n.area.avoid+.area-pieces {\ndisplay: block;\n}\n.area-piece {\nposition: absolute;\n}\n\n').concat(xs?':global svg *:before {\ncontent:"";\ntransform-origin: inherit;\n}':"","\n"),Ms=[[0,1,2],[1,0,3],[2,0,3],[3,1,2]],Rs=1e-4,Fs=1e-7,Ns=1e-9,Os=Math.pow(10,10),js=-Os,Ls={n:[0,-1],e:[1,0],s:[0,1],w:[-1,0],nw:[-1,-1],ne:[1,-1],sw:[-1,1],se:[1,1]},Bs={n:[0,1],e:[1,3],s:[3,2],w:[2,0],nw:[0],ne:[1],sw:[2],se:[3]},Ks={n:0,s:180,w:270,e:90,nw:315,ne:45,sw:225,se:135},Vs=["isMoveableElement","updateRect","updateTarget","destroy","dragStart","isInside","hitTest","setState","getRect","request","isDragging","getManager","forceUpdate","waitToChangeTarget","updateSelectors","getTargets","stopDrag","getControlBoxElement","getMoveables","getDragElement"];function Hs(e,t,n,r,o,i){var a,s;void 0===i&&(i="draggable");var l=null!==(s=null===(a=t.gestos[i])||void 0===a?void 0:a.move(n,e.inputEvent))&&void 0!==s?s:{},c=l.originalDatas||l.datas,u=c[i]||(c[i]={});return ds(ds({},o?Xu(t,l):l),{isPinch:!!r,parentEvent:!0,datas:u,originalDatas:e.originalDatas})}var $s=function(){function e(e){var t;void 0===e&&(e="draggable"),this.ableName=e,this.prevX=0,this.prevY=0,this.startX=0,this.startY=0,this.isDrag=!1,this.isFlag=!1,this.datas={draggable:{}},this.datas=((t={})[e]={},t)}return e.prototype.dragStart=function(e,t){this.isDrag=!1,this.isFlag=!1;var n=t.originalDatas;return this.datas=n,n[this.ableName]||(n[this.ableName]={}),ds(ds({},this.move(e,t.inputEvent)),{type:"dragstart"})},e.prototype.drag=function(e,t){return this.move([e[0]-this.prevX,e[1]-this.prevY],t)},e.prototype.move=function(e,t){var n,r,o=!1;if(this.isFlag){var i=this.isDrag;n=this.prevX+e[0],r=this.prevY+e[1],(e[0]||e[1])&&(this.isDrag=!0),!i&&this.isDrag&&(o=!0)}else this.prevX=e[0],this.prevY=e[1],this.startX=e[0],this.startY=e[1],n=e[0],r=e[1],this.isFlag=!0;return this.prevX=n,this.prevY=r,{type:"drag",clientX:n,clientY:r,inputEvent:t,isFirstDrag:o,isDrag:this.isDrag,distX:n-this.startX,distY:r-this.startY,deltaX:e[0],deltaY:e[1],datas:this.datas[this.ableName],originalDatas:this.datas,parentEvent:!0,parentGesto:this}},e}();function Us(e,t,n,r){var o=16===e.length?4:3,i=ps(yu(e,n,r,o),4),a=ps(i[0],2),s=a[0],l=a[1],c=ps(i[1],2),u=c[0],d=c[1],p=ps(i[2],2),h=p[0],f=p[1],m=ps(i[3],2),g=m[0],v=m[1],y=ps(vu(e,t,o),2),b=y[0],w=y[1],x=Math.min(s,u,h,g),_=Math.min(l,d,f,v),S=Math.max(s,u,h,g);return s=s-x||0,{left:x,top:_,right:S,bottom:Math.max(l,d,f,v),origin:[b=b-x||0,w=w-_||0],pos1:[s,l=l-_||0],pos2:[u=u-x||0,d=d-_||0],pos3:[h=h-x||0,f=f-_||0],pos4:[g=g-x||0,v=v-_||0],direction:dd(e[0]*e[o+1])}}function Zs(e,t){var n=t.datas,r=e.state,o=r.allMatrix,i=r.beforeMatrix,a=r.is3d,s=r.left,l=r.top,c=r.origin,u=r.offsetMatrix,d=r.targetMatrix,p=r.transformOrigin,h=a?4:3;n.is3d=a,n.matrix=o,n.targetMatrix=d,n.beforeMatrix=i,n.offsetMatrix=u,n.transformOrigin=p,n.inverseMatrix=Zi(o,h),n.inverseBeforeMatrix=Zi(i,h),n.absoluteOrigin=Gi(Qi([s,l],c),h),n.startDragBeforeDist=na(n.inverseBeforeMatrix,n.absoluteOrigin,h),n.startDragDist=na(n.inverseMatrix,n.absoluteOrigin,h)}function qs(e,t,n){var r=t.datas,o=t.originalDatas.beforeRenderable,i=r.transformIndex,a=o.nextTransforms,s=a.length,l=o.nextTransformAppendedIndexes,c=-1;-1===i?("translate"===n?c=0:"rotate"===n&&(c=gi(a,(function(e){return e.match(/scale\(/g)}))),-1===c&&(c=a.length),r.transformIndex=c):c=vi(l,(function(e){return e.index===i&&e.functionName===n}))?i:i+l.filter((function(e){return e.index<i})).length;var u=function(e,t,n){var r,o=ya(e,{"x%":function(e){return e/100*t.offsetWidth},"y%":function(e){return e/100*t.offsetHeight}}),i=e.slice(0,n<0?void 0:n),a=e.slice(0,n<0?void 0:n+1),s=e[n]||"",l=n<0?[]:e.slice(n),c=n<0?[]:e.slice(n+1),u=o.slice(0,n<0?void 0:n),d=o.slice(0,n<0?void 0:n+1),p=null!==(r=o[n])&&void 0!==r?r:ya([""])[0],h=n<0?[]:o.slice(n),f=n<0?[]:o.slice(n+1),m=p?[p]:[],g=va(u),v=va(d),y=va(h),b=va(f),w=Xi(g,y,4);return{transforms:e,beforeFunctionMatrix:g,beforeFunctionMatrix2:v,targetFunctionMatrix:va(m),afterFunctionMatrix:y,afterFunctionMatrix2:b,allFunctionMatrix:w,beforeFunctions:u,beforeFunctions2:d,targetFunction:m[0],afterFunctions:h,afterFunctions2:f,beforeFunctionTexts:i,beforeFunctionTexts2:a,targetFunctionText:s,afterFunctionTexts:l,afterFunctionTexts2:c}}(a,e.state,c),d=u.targetFunction,p="rotate"===n?"rotateZ":n;r.beforeFunctionTexts=u.beforeFunctionTexts,r.afterFunctionTexts=u.afterFunctionTexts,r.beforeTransform=u.beforeFunctionMatrix,r.beforeTransform2=u.beforeFunctionMatrix2,r.targetTansform=u.targetFunctionMatrix,r.afterTransform=u.afterFunctionMatrix,r.afterTransform2=u.afterFunctionMatrix2,r.targetAllTransform=u.allFunctionMatrix,d.functionName===p?(r.afterFunctionTexts.splice(0,1),r.isAppendTransform=!1):s>c&&(r.isAppendTransform=!0,o.nextTransformAppendedIndexes=hs(hs([],ps(l),!1),[{functionName:n,index:c,isAppend:!0}],!1))}function Gs(e,t,n){return"".concat(e.beforeFunctionTexts.join(" ")," ").concat(e.isAppendTransform?n:t," ").concat(e.afterFunctionTexts.join(" "))}function Ws(e){var t=e.datas,n=ps(Xs({datas:t,distX:e.distX,distY:e.distY}),2),r=Ys(t,function(e,t){for(var n=da(t),r=0;r<t-1;++r)n[t*(t-1)+r]=e[r]||0;return n}([n[0],n[1]],4));return na(r,Gi([0,0,0],4),4)}function Ys(e,t,n){var r=e.beforeTransform,o=e.afterTransform,i=e.beforeTransform2,a=e.afterTransform2,s=e.targetAllTransform,l=n?Xi(s,t,4):Xi(t,s,4),c=Xi(Zi(n?i:r,4),l,4);return Xi(c,Zi(n?a:o,4),4)}function Xs(e){var t=e.datas,n=e.distX,r=e.distY,o=t.inverseBeforeMatrix,i=t.is3d,a=t.startDragBeforeDist,s=i?4:3;return Ji(na(o,Qi(t.absoluteOrigin,[n,r]),s),a)}function Qs(e,t){var n=e.datas,r=e.distX,o=e.distY,i=n.inverseBeforeMatrix,a=n.inverseMatrix,s=n.is3d,l=n.startDragBeforeDist,c=n.startDragDist,u=s?4:3;return Ji(na(t?i:a,Qi(n.absoluteOrigin,[r,o]),u),t?l:c)}function Js(e){var t=[];return e[1]>=0&&(e[0]>=0&&t.push(3),e[0]<=0&&t.push(2)),e[1]<=0&&(e[0]>=0&&t.push(1),e[0]<=0&&t.push(0)),t}function el(e,t){var n=(t+1)/2;return[ti(e[0][0],e[1][0],n,1-n),ti(e[0][1],e[1][1],n,1-n)]}function tl(e,t){var n=el([e[0],e[1]],t[0]),r=el([e[2],e[3]],t[0]);return el([n,r],t[1])}function nl(e,t,n,r){return Xi(e,iu(t,r,n),r)}function rl(e,t){var n=sl(t);return{setTransform:function(r,o){void 0===o&&(o=-1),n.startTransforms=oi(r)?r:di(r),il(e,t,o)},setTransformIndex:function(n){il(e,t,n)}}}function ol(e,t,n){il(e,t,gi(sl(t).startTransforms,(function(e){return 0===e.indexOf("".concat(n,"("))})))}function il(e,t,n){var r=sl(t),o=t.datas;if(o.transformIndex=n,-1!==n){var i=r.startTransforms[n];if(i){var a=e.state,s=ya([i],{"x%":function(e){return e/100*a.offsetWidth},"y%":function(e){return e/100*a.offsetHeight}});o.startValue=s[0].functionValue}}}function al(e,t){sl(e).nextTransforms=di(t)}function sl(e){return e.originalDatas.beforeRenderable}function ll(e){return e.originalDatas.beforeRenderable.nextTransforms}function cl(e){return(ll(e)||[]).join(" ")}function ul(e){return sl(e).nextStyle}function dl(e,t,n,r,o){al(o,t);var i=_c.drag(e,Hs(o,e.state,n,r,!1)),a=i?i.transform:t;return ds(ds({transform:t,drag:i},Ou({transform:a},o)),{afterTransform:a})}function pl(e,t,n,r,o,i){var a=function(e,t,n,r){var o,i=e.transformOrigin,a=e.offsetMatrix,s=e.is3d?4:3;if(ii(n)){var l=t.beforeTransform,c=t.afterTransform;o=Wi(r?ga(n):Xi(Xi(l,ga([n]),4),c,4),4,s)}else o=n;return nl(a,o,i,s)}(e.state,o,t,i),s=function(e,t,n,r){void 0===r&&(r=e.state.allMatrix);var o=e.state,i=o.width,a=o.height,s=o.is3d?4:3,l=[i/2*(1+t[0])+n[0],a/2*(1+t[1])+n[1]];return vu(r,l,s)}(e,n,r,a);return s}function hl(e,t,n,r,o,i,a){var s=pl(e,t,n,o,i,a),l=e.state,c=l.left,u=l.top,d=e.props.groupable,p=d?c:0,h=d?u:0,f=Ji(r,s);return Ji(f,[p,h])}function fl(e,t,n,r,o,i){var a=e.props.groupable,s=e.state,l=s.transformOrigin,c=s.offsetMatrix,u=s.is3d,d=s.width,p=s.height,h=s.left,f=s.top,m=i.fixedDirection,g=i.nextTargetMatrix||s.targetMatrix,v=u?4:3,y=function(e,t,n,r,o,i){return void 0===r&&(r=t),void 0===o&&(o=n),void 0===i&&(i=[0,0]),e?e.map((function(e,a){var s=fi(e),l=s.value,c=s.unit,u=a?o:r,d=a?n:t;return"%"===e||isNaN(l)?d*(u?i[a]/u:0):"%"!==c?l:d*l/100})):i}(o,t,n,d,p,l),b=a?h:0,w=a?f:0,x=function(e,t,n,r,o,i){var a=tl(yu(t,n,r,o),i);return[e[0]-a[0],e[1]-a[1]]}(r,nl(c,g,y,v),t,n,v,m);return Ji(x,[b,w])}function ml(e){if(e&&e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t}}function gl(e){var t=e("scale"),n=e("rotate"),r=e("translate"),o=[];return r&&"0px"!==r&&"none"!==r&&o.push("translate(".concat(r.split(/\s+/).join(","),")")),n&&"1"!==n&&"none"!==n&&o.push("rotate(".concat(n,")")),t&&"1"!==t&&"none"!==t&&o.push("scale(".concat(t.split(/\s+/).join(","),")")),o}function vl(e,t,n){for(var r,o,i,a=e,s=[],l=Oi(e)||ji(e),c=!n&&e===t||e===l,u=c,d=!1,p=3,h=!1,f=cu(t,t,!0).offsetParent,m=1;a&&!u;){u=c;var g=_l(a),v=g("position"),y=lu(a),b="fixed"===v,w=gl(g),x=ea(ou(y)),_=void 0,S=!1,C=!1,E=0,k=0,z=0,P=0,D={hasTransform:!1,fixedContainer:null};b&&(h=!0,f=(D=hu(a)).fixedContainer);var A=x.length;d||16!==A&&!w.length||(d=!0,p=4,pu(s),i&&(i=Wi(i,3,4))),d&&9===A&&(x=Wi(x,3,4));var T=uu(a,e),I=T.tagName,M=T.hasOffset,R=T.isSVG,F=T.origin,N=T.targetOrigin,O=ps(T.offset,2),j=O[0],L=O[1];"svg"===I&&!a.ownerSVGElement&&i&&(s.push({type:"target",target:a,matrix:gu(a,p)}),s.push({type:"offset",target:a,matrix:da(p)}));var B=parseFloat(g("zoom"))||1;if(b)_=D.fixedContainer,S=!0;else{var K=cu(a,t,!1,!0,g),V=K.offsetZoom;if(_=K.offsetParent,S=K.isEnd,C=K.isStatic,m*=V,(K.isCustomElement||1!==V)&&C)j-=_.offsetLeft,L-=_.offsetTop;else if(Ps||zs){if(K.parentSlotElement){for(var H=_,$=0,U=0;H&&ml(H);)$+=H.offsetLeft,U+=H.offsetTop,H=H.offsetParent;j-=$,L-=U}}}if(!ws||Ds||!M||R||!C||"relative"!==v&&"static"!==v||(j-=_.offsetLeft,L-=_.offsetTop,c=c||S),b)M&&D.hasTransform&&(z=_.clientLeft,P=_.clientTop);else if(M&&f!==_&&(E=_.clientLeft,k=_.clientTop),M&&_===l){var Z=du(a,!1);j+=Z[0],L+=Z[1]}if(s.push({type:"target",target:a,matrix:iu(x,p,F)}),w.length&&(s.push({type:"offset",target:a,matrix:da(p)}),s.push({type:"target",target:a,matrix:iu(ga(w),p,F)})),M){var q=a===e,G=q?0:a.scrollLeft,W=q?0:a.scrollTop;s.push({type:"offset",target:a,matrix:ha([j-G+E-z,L-W+k-P],p)})}else s.push({type:"offset",target:a,origin:F});if(1!==B&&s.push({type:"zoom",target:a,matrix:iu(pa([B,B],p),p,[0,0])}),i||(i=x),r||(r=F),o||(o=N),u||b)break;a=_,c=S,n&&a!==l||(u=c)}return i||(i=da(p)),r||(r=[0,0]),o||(o=[0,0]),{zoom:m,offsetContainer:f,matrixes:s,targetMatrix:i,transformOrigin:r,targetOrigin:o,is3d:d,hasFixed:h}}var yl=null,bl=null,wl=null;function xl(e){e?(window.Map&&(yl=new Map,bl=new Map),wl=[]):(yl=null,wl=null,bl=null)}function _l(e){var t=null==yl?void 0:yl.get(e);if(!t){var n=Li(e).getComputedStyle(e);if(!yl)return function(e){return n[e]};t={style:n,cached:{}},yl.set(e,t)}var r=t.cached,o=t.style;return function(e){return e in r||(r[e]=o[e]),r[e]}}function Sl(e,t,n){var r=n.originalDatas;r.groupable=r.groupable||{};var o=r.groupable;o.childDatas=o.childDatas||[];var i=o.childDatas;return e.moveables.map((function(e,r){return i[r]=i[r]||{},i[r][t]=i[r][t]||{},ds(ds({},n),{isRequestChild:!0,datas:i[r][t],originalDatas:i[r]})}))}function Cl(e,t,n,r,o,i,a){var s=!!n.match(/Start$/g),l=!!n.match(/End$/g),c=o.isPinch,u=o.datas,d=Sl(e,t.name,o),p=e.moveables,h=[],f=d.map((function(e,o){var d=p[o],f=d.state,m=f.gestos,g=e;if(s)g=new $s(a).dragStart(r,e),h.push(g);else{if(m[a]||(m[a]=u.childGestos[o]),!m[a])return;g=Hs(e,f,r,c,i,a),h.push(g)}var v=t[n](d,ds(ds({},g),{parentFlag:!0}));return l&&(m[a]=null),v}));return s&&(u.childGestos=p.map((function(e){return e.state.gestos[a]}))),{eventParams:f,childEvents:h}}function El(e,t,n,r,o,i){void 0===o&&(o=function(e,t){return t});var a=!!n.match(/End$/g),s=Sl(e,t.name,r),l=e.moveables,c=s.map((function(e,r){var s,c=l[r];s=o(c,e);var u=t[n](c,ds(ds({},s),{parentFlag:!0}));return u&&i&&i(c,e,u,r),a&&(c.state.gestos={}),u}));return c}function kl(e,t,n,r){var o=n.fixedDirection,i=n.fixedPosition,a=tl(r.datas.startPositions||Ru(t.state),o),s=ps(na(ua(-e.rotation/180*Math.PI,3),[a[0]-i[0],a[1]-i[1],1],3),2),l=s[0],c=s[1];return r.datas.originalX=l,r.datas.originalY=c,r}function zl(e,t,n,r){var o=e.getState(),i=o.renderPoses,a=o.rotation,s=o.direction,l=Eu(e.props,t).zoom,c=Gc(a/Math.PI*180),u={},d=e.renderState;d.renderDirectionMap||(d.renderDirectionMap={});var p=d.renderDirectionMap;n.forEach((function(e){var t=e.dir;u[t]=!0}));var h=dd(s);return n.map((function(e){var n=e.data,o=e.classNames,s=e.dir,d=Bs[s];if(!d||!u[s])return null;p[s]=!0;var f=(Di(c,15)+h*Ks[s]+720)%180,m={};return wi(n).forEach((function(e){m["data-".concat(e)]=n[e]})),r.createElement("div",ds({className:nu.apply(void 0,hs(["control","direction",s,t],ps(o),!1)),"data-rotation":f,"data-direction":s},m,{key:"direction-".concat(s),style:Cu.apply(void 0,hs([a,l],ps(d.map((function(e){return i[e]}))),!1))}))}))}function Pl(e,t,n,r){var o=Eu(e.props,n),i=o.renderDirections,a=void 0===i?t:i,s=o.displayAroundControls;if(!a)return[];var l=!0===a?gs:a;return hs(hs([],ps(s?Ml(e,r,n,l):[]),!1),ps(zl(e,n,l.map((function(e){return{data:{},classNames:[],dir:e}})),r)),!1)}function Dl(e,t,n,r,o,i){for(var a=[],s=6;s<arguments.length;s++)a[s-6]=arguments[s];var l=ki(n,r),c=t?Di(l/Math.PI*180,15)%180:-1;return e.createElement("div",{key:"line-".concat(i),className:nu.apply(void 0,hs(["line","direction",t?"edge":"",t],ps(a),!1)),"data-rotation":c,"data-line-key":i,"data-direction":t,style:Su(n,r,o,l)})}function Al(e,t,n,r,o){return(!0===n?ms:n).map((function(n,i){var a=ps(Bs[n],2),s=a[0],l=a[1];if(null!=l)return Dl(e,n,r[s],r[l],o,"".concat(t,"Edge").concat(i),t)})).filter(Boolean)}function Tl(e){return function(t,n){var r=Eu(t.props,e).edge;return r&&(!0===r||r.length)?hs(hs([],ps(Al(n,e,r,t.getState().renderPoses,t.props.zoom)),!1),ps(function(e,t,n){return Pl(e,["nw","ne","sw","se"],t,n)}(t,e,n)),!1):Il(t,e,n)}}function Il(e,t,n){return Pl(e,gs,t,n)}function Ml(e,t,n,r){var o=e.renderState;o.renderDirectionMap||(o.renderDirectionMap={});var i=e.getState(),a=i.renderPoses,s=i.rotation,l=i.direction,c=o.renderDirectionMap,u=e.props.zoom,d=dd(l),p=s/Math.PI*180;return(r||wi(c)).map((function(e){var r=Bs[e];if(!r)return null;var o=(Di(p,15)+d*Ks[e]+720)%180,i=["around-control"];return n&&i.push("direction",n),t.createElement("div",{className:nu.apply(void 0,hs([],ps(i),!1)),"data-rotation":o,"data-direction":e,key:"direction-around-".concat(e),style:Cu.apply(void 0,hs([s,u],ps(r.map((function(e){return a[e]}))),!1))})}))}function Rl(e,t,n){var r=e||{},o=r.position,i=void 0===o?"client":o,a=r.left,s=void 0===a?-1/0:a,l=r.top,c=void 0===l?-1/0:l,u=r.right,d=void 0===u?1/0:u,p=r.bottom,h={position:i,left:s,top:c,right:d,bottom:void 0===p?1/0:p};return{vertical:Nl(h,t,!0),horizontal:Nl(h,n,!1)}}function Fl(e,t){var n=e.state,r=n.containerClientRect,o=r.clientHeight,i=r.clientWidth,a=r.clientLeft,s=r.clientTop,l=n.snapOffset,c=l.left,u=l.top,d=l.right,p=l.bottom,h=t||e.props.bounds||{},f="css"===(h.position||"client"),m=h.left,g=void 0===m?-1/0:m,v=h.top,y=void 0===v?-1/0:v,b=h.right,w=void 0===b?f?-1/0:1/0:b,x=h.bottom,_=void 0===x?f?-1/0:1/0:x;return f&&(w=i+d-c-w,_=o+p-u-_),{left:g+c-a,right:w+c-a,top:y+u-s,bottom:_+u-s}}function Nl(e,t,n){var r=e[n?"left":"top"],o=e[n?"right":"bottom"],i=Math.min.apply(Math,hs([],ps(t),!1)),a=Math.max.apply(Math,hs([],ps(t),!1)),s=[];return r+1>i&&s.push({direction:"start",isBound:!0,offset:i-r,pos:r}),o-1<a&&s.push({direction:"end",isBound:!0,offset:a-o,pos:o}),s.length||s.push({isBound:!1,offset:0,pos:0}),s.sort((function(e,t){return pd(t.offset)-pd(e.offset)}))}function Ol(e,t,n){return(n?e.map((function(e){return sa(e,n)})):e).some((function(e){return e[0]<t.left&&pd(e[0]-t.left)>.1||e[0]>t.right&&pd(e[0]-t.right)>.1||e[1]<t.top&&pd(e[1]-t.top)>.1||e[1]>t.bottom&&pd(e[1]-t.bottom)>.1}))}function jl(e,t,n,r,o){if(!e.props.bounds)return[];var i=o*Math.PI/180,a=Fl(e),s=a.left,l=a.top,c=a.right,u=a.bottom,d=s-r[0],p=c-r[0],h=l-r[1],f=u-r[1],m={left:d,top:h,right:p,bottom:f};if(!Ol(n,m,0))return[];var g=[];return[[d,0],[p,0],[h,1],[f,1]].forEach((function(e){var r=ps(e,2),o=r[0],a=r[1];n.forEach((function(e){var n=ki([0,0],e);g.push.apply(g,hs([],ps(function(e,t,n){var r=xu(e),o=Math.sqrt(r*r-t*t)||0;return[o,-o].sort((function(t,r){return pd(t-e[n?0:1])-pd(r-e[n?0:1])})).map((function(e){return ki([0,0],n?[e,t]:[t,e])}))}(e,o,a).map((function(e){return i+e-n})).filter((function(e){return!Ol(t,m,e)})).map((function(e){return Di(180*e/Math.PI,Fs)}))),!1))}))})),g}var Ll=["left","right","center"],Bl=["top","bottom","middle"],Kl={left:"start",right:"end",center:"center",top:"start",bottom:"end",middle:"center"},Vl={start:"left",end:"right",center:"center"},Hl={start:"top",end:"bottom",center:"middle"};function $l(e,t){var n=e.props,r=n.snappable,o=n.bounds,i=n.innerBounds,a=n.verticalGuidelines,s=n.horizontalGuidelines,l=n.snapGridWidth,c=n.snapGridHeight,u=e.state,d=u.guidelines,p=u.enableSnap;return!(!r||!p||t&&!0!==r&&r.indexOf(t)<0)&&!!(l||c||o||i||d&&d.length||a&&a.length||s&&s.length)}function Ul(e){return!1===e?{}:!0!==e&&e?e:{left:!0,right:!0,top:!0,bottom:!0}}function Zl(e,t){var n=function(e,t){var n=Ul(e),r={};for(var o in n)o in t&&n[o]&&(r[o]=t[o]);return r}(e,t),r=Bl.filter((function(e){return e in n})),o=Ll.filter((function(e){return e in n}));return{horizontalNames:r,verticalNames:o,horizontal:r.map((function(e){return n[e]})),vertical:o.map((function(e){return n[e]}))}}var ql="snapRotationThreshold",Gl="snapRotationDegrees",Wl="snapHorizontalThreshold",Yl="snapVerticalThreshold";function Xl(e,t,n,r,o,i,a){var s;void 0===r&&(r=[]),void 0===o&&(o=[]);var l=e.props,c=(null===(s=e.state.snapThresholdInfo)||void 0===s?void 0:s.multiples)||[1,1],u=Zu(a,l.snapHorizontalThreshold,5),d=Zu(i,l.snapVerticalThreshold,5);return Ql(e.state.guidelines,t,n,r,o,u,d,c)}function Ql(e,t,n,r,o,i,a,s){return{vertical:nc(e,"vertical",t,a*s[0],r),horizontal:nc(e,"horizontal",n,i*s[1],o)}}function Jl(e){var t="";return-1===e||"top"===e||"left"===e?t="start":0===e||"center"===e||"middle"===e?t="center":1!==e&&"right"!==e&&"bottom"!==e||(t="end"),t}function ec(e,t,n,r){var o=Zl(e.props.snapDirections,t),i=Xl(e,o.vertical,o.horizontal,o.verticalNames.map((function(e){return Jl(e)})),o.horizontalNames.map((function(e){return Jl(e)})),n,r),a=Jl(o.horizontalNames[i.horizontal.index]),s=Jl(o.verticalNames[i.vertical.index]);return{vertical:ds(ds({},i.vertical),{direction:s}),horizontal:ds(ds({},i.horizontal),{direction:a})}}function tc(e){var t=e.isSnap;if(!t)return{isSnap:!1,offset:0,dist:-1,pos:0,guideline:null};var n=e.posInfos[0],r=n.guidelineInfos[0],o=r.offset,i=r.dist,a=r.guideline;return{isSnap:t,offset:o,dist:i,pos:n.pos,guideline:a}}function nc(e,t,n,r,o){var i,a;if(void 0===o&&(o=[]),!e||!e.length)return{isSnap:!1,index:-1,direction:"",posInfos:[]};var s="vertical"===t?0:1,l=n.map((function(n,i){var a=o[i]||"",l=e.map((function(e){var t=e.pos,r=n-t[s];return{offset:r,dist:pd(r),guideline:e,direction:a}})).filter((function(e){var n=e.guideline,o=e.dist;return!(n.type!==t||o>r)})).sort((function(e,t){return e.dist-t.dist}));return{pos:n,index:i,guidelineInfos:l,direction:a}})).filter((function(e){return e.guidelineInfos.length>0})).sort((function(e,t){return e.guidelineInfos[0].dist-t.guidelineInfos[0].dist})),c=l.length>0;return{isSnap:c,index:c?l[0].index:-1,direction:null!==(a=null===(i=l[0])||void 0===i?void 0:i.direction)&&void 0!==a?a:"",posInfos:l}}function rc(e,t,n,r,o){var i=[];n[0]&&n[1]?i=[n,[-n[0],n[1]],[n[0],-n[1]]]:n[0]||n[1]?e.props.keepRatio?i.push([-1,-1],[-1,1],[1,-1],[1,1],n):(i.push.apply(i,hs([],ps(function(e,t){return Js(t).map((function(t){return e[t]}))}([[-1,-1],[1,-1],[-1,-1],[1,1]],n)),!1)),i.length>1&&i.push([(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2])):[[-1,-1],[1,-1],[1,1],[-1,1]].forEach((function(e,t,n){var r=n[t+1]||n[0];i.push(e),i.push([(e[0]+r[0])/2,(e[1]+r[1])/2])}));var a=i.map((function(e){return tl(t,e)})),s=Xl(e,a.map((function(e){return e[0]})),a.map((function(e){return e[1]})),i.map((function(e){return Jl(e[0])})),i.map((function(e){return Jl(e[1])})),r,o),l=Jl(i.map((function(e){return e[0]}))[s.vertical.index]),c=Jl(i.map((function(e){return e[1]}))[s.horizontal.index]);return{vertical:ds(ds({},s.vertical),{direction:l}),horizontal:ds(ds({},s.horizontal),{direction:c})}}function oc(e,t){var n=pd(e.offset),r=pd(t.offset);return e.isBound&&t.isBound?r-n:e.isBound?-1:t.isBound?1:e.isSnap&&t.isSnap?r-n:e.isSnap?-1:t.isSnap||n<Fs?1:r<Fs?-1:n-r}function ic(e,t){return e.slice().sort((function(e,n){var r=e.sign[t],o=n.sign[t],i=e.offset[t],a=n.offset[t];return r?o?oc({isBound:e.isBound,isSnap:e.isSnap,offset:i},{isBound:n.isBound,isSnap:n.isSnap,offset:a}):-1:1}))[0]}function ac(e,t){var n=Ei([t[0][0],t[1][0]]),r=Ei([t[0][1],t[1][1]]);return{vertical:n<=e[0],horizontal:r<=e[1]}}function sc(e,t){var n,r,o=ps(t,2),i=o[0],a=o[1],s=a[0]-i[0],l=a[1]-i[1];if(pd(s)<Fs&&(s=0),pd(l)<Fs&&(l=0),s)if(l){n=l/s*(e[0]-i[0])+i[1],r=e[1]}else n=i[1],r=e[1];else n=i[0],r=e[0];return n-r}function lc(e,t,n,r){return void 0===r&&(r=Fs),e.every((function(e){var o=sc(e,t);return o<=0===n||pd(o)<=r}))}function cc(e,t,n,r,o){return void 0===o&&(o=0),r&&t-o<=e||!r&&e<=n+o?{isBound:!0,offset:r?t-e:n-e}:{isBound:!1,offset:0}}function uc(e,t,n,r,o,i){var a,s,l=ps(t,2),c=l[0],u=l[1],d=e[0],p=n[0],h=n[1],f=Ju(h[1]-p[1]),m=u,g=c,v=-c/u;return Ju(h[0]-p[0])?f||i&&!m?{isBound:!1,offset:0}:g?cc((p[1]-d[1])/v+d[0],p[0],h[0],r,o):{isBound:s=pd(a=p[1]-d[1])<=(o||0),offset:s?a:0}:i&&!g?{isBound:!1,offset:0}:m?cc(v*(p[0]-d[0])+d[1],p[1],h[1],r,o):{isBound:s=pd(a=p[0]-d[0])<=(o||0),offset:s?a:0}}function dc(e,t,n){return t.map((function(t){var r=function(e,t){var n=t.line,r=t.centerSign,o=t.verticalSign,i=t.horizontalSign,a=t.lineConstants,s=e.props.innerBounds;if(!s)return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var l=s.left,c=s.top,u=s.width,d=s.height,p=[[l,c],[l,c+d]],h=[[l,c],[l+u,c]],f=[[l+u,c],[l+u,c+d]],m=[[l,c+d],[l+u,c+d]];if(lc([[l,c],[l+u,c],[l,c+d],[l+u,c+d]],n,r))return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var g=uc(n,a,h,o),v=uc(n,a,m,o),y=uc(n,a,p,i),b=uc(n,a,f,i),w=g.isBound&&v.isBound,x=g.isBound||v.isBound,_=y.isBound&&b.isBound,S=y.isBound||b.isBound,C=Wu(g.offset,v.offset),E=Wu(y.offset,b.offset),k=[0,0],z=!1,P=!1;return pd(E)<pd(C)?(k=[C,0],z=x,P=w):(k=[0,E],z=S,P=_),{isAllBound:P,isVerticalBound:x,isHorizontalBound:S,isBound:z,offset:k}}(e,t),o=r.isBound,i=r.offset,a=r.isVerticalBound,s=r.isHorizontalBound,l=t.multiple,c=Qs({datas:n,distX:i[0],distY:i[1]}).map((function(e,t){return e*(l[t]?2/l[t]:0)}));return{sign:l,isBound:o,isVerticalBound:a,isHorizontalBound:s,isSnap:!1,offset:c}}))}function pc(e,t,n){var r,o=dc(e,hc(e,t,[0,0],!1).map((function(e){return ds(ds({},e),{multiple:e.multiple.map((function(e){return 2*pd(e)}))})})),n),i=ic(o,0),a=ic(o,1),s=0,l=0,c=i.isVerticalBound||a.isVerticalBound,u=i.isHorizontalBound||a.isHorizontalBound;return(c||u)&&(r=ps(function(e,t){var n=e.datas,r=e.distX,o=e.distY,i=n.beforeMatrix,a=n.matrix,s=n.is3d,l=n.startDragBeforeDist,c=n.startDragDist,u=n.absoluteOrigin,d=s?4:3;return Ji(na(t?i:a,Qi(t?l:c,[r,o]),d),u)}({datas:n,distX:-i.offset[0],distY:-a.offset[1]}),2),s=r[0],l=r[1]),{vertical:{isBound:c,offset:s},horizontal:{isBound:u,offset:l}}}function hc(e,t,n,r){var o=e.state,i=yu(o.allMatrix,100,100,o.is3d?4:3),a=tl(i,[0,0]);return function(e,t){var n=[],r=e[0],o=e[1];return r&&o?n.push([[0,2*o],e,[-r,o]],[[2*r,0],e,[r,-o]]):r?(n.push([[2*r,0],[r,1],[r,-1]]),t&&n.push([[0,-1],[r,-1],[-r,-1]],[[0,1],[r,1],[-r,1]])):o?(n.push([[0,2*o],[1,o],[-1,o]]),t&&n.push([[-1,0],[-1,o],[-1,-o]],[[1,0],[1,o],[1,-o]])):n.push([[-1,0],[-1,-1],[-1,1]],[[1,0],[1,-1],[1,1]],[[0,-1],[-1,-1],[1,-1]],[[0,1],[-1,1],[1,1]]),n}(n,r).map((function(e){var n=ps(e,3),r=n[0],o=n[1],s=n[2],l=[tl(i,o),tl(i,s)],c=function(e){var t=ps(e,2),n=t[0],r=t[1],o=r[0]-n[0],i=r[1]-n[1];Math.abs(o)<Jo&&(o=0),Math.abs(i)<Jo&&(i=0);var a=0,s=0,l=0;return o?i?(s=1,l=(a=-i/o)*n[0]-n[1]):(s=1,l=-n[1]):(a=-1,l=n[0]),[a,s,l].map((function(e){return Di(e,Jo)}))}(l),u=ac(a,l),d=u.vertical,p=u.horizontal;return{multiple:r,centerSign:sc(a,l)<=0,verticalSign:d,horizontalSign:p,lineConstants:c,line:[tl(t,o),tl(t,s)]}}))}function fc(e,t,n,r){var o=r?e.map((function(e){return sa(e,r)})):e;return[[o[0],o[1]],[o[1],o[3]],[o[3],o[2]],[o[2],o[0]]].some((function(e){var r=sc(n,e)<=0;return!lc(t,e,r)}))}function mc(e,t,n,r,o){var i=e.props.innerBounds,a=o*Math.PI/180;if(!i)return[];var s=i.left,l=i.top,c=i.width,u=i.height,d=s-r[0],p=s+c-r[0],h=l-r[1],f=l+u-r[1],m=[[d,h],[p,h],[d,f],[p,f]],g=tl(n,[0,0]);if(!fc(n,m,g,0))return[];var v=[],y=m.map((function(e){return[xu(e),ki([0,0],e)]}));return[[n[0],n[1]],[n[1],n[3]],[n[3],n[2]],[n[2],n[0]]].forEach((function(e){var n=ki([0,0],function(e){var t=ps(e,2),n=t[0],r=t[1],o=r[0]-n[0],i=r[1]-n[1];if(!o)return[n[0],0];if(!i)return[0,n[1]];var a=i/o,s=-a*n[0]+n[1];return[-s/(a+1/a),s/(a*a+1)]}(e)),r=function(e){var t=ps(e,2),n=t[0],r=t[1],o=r[0]-n[0],i=r[1]-n[1];if(!o)return pd(n[0]);if(!i)return pd(n[1]);var a=i/o;return pd((-a*n[0]+n[1])/Math.sqrt(Math.pow(a,2)+1))}(e);v.push.apply(v,hs([],ps(y.filter((function(e){var t=ps(e,1)[0];return t&&r<=t})).map((function(e){var t=ps(e,2),o=t[0],i=t[1],s=Math.acos(o?r/o:0);return[a+(i+s)-n,a+(i-s)-n]})).reduce((function(e,t){return e.push.apply(e,hs([],ps(t),!1)),e}),[]).filter((function(e){return!fc(t,m,g,e)})).map((function(e){return Di(180*e/Math.PI,Fs)}))),!1))})),v}function gc(e,t,n,r,o){var i=function(e,t,n,r){var o=t[0]-e[0],i=t[1]-e[1];if(pd(o)<Jo&&(o=0),pd(i)<Jo&&(i=0),!o)return r?[0,0]:[0,n];if(!i)return r?[n,0]:[0,0];var a=i/o,s=e[1]-a*e[0];return r?[n,a*(t[0]+n)+s-t[1]]:[(t[1]+n-s)/a-t[0],n]}(e,t,n,r);if(!i)return{isOutside:!1,offset:[0,0]};var a=Pi(e,t),s=Pi(i,e),l=Pi(i,t),c=s>a||l>a,u=ps(Qs({datas:o,distX:i[0],distY:i[1]}),2);return{offset:[u[0],u[1]],isOutside:c}}function vc(e,t){return e.isBound?e.offset:t.isSnap?tc(t).offset:0}function yc(e,t,n,r,o,i){if(!$l(e,"draggable"))return[{isSnap:!1,isBound:!1,offset:0},{isSnap:!1,isBound:!1,offset:0}];var a=Mu(i.absolutePoses,[t,n]),s=bu(a),l=s.left,c=s.right,u=s.top,d=s.bottom,p={horizontal:a.map((function(e){return e[1]})),vertical:a.map((function(e){return e[0]}))},h=bc(e,o,Zl(Ul(e.props.snapDirections),{left:l,right:c,top:u,bottom:d,center:(l+c)/2,middle:(u+d)/2}),p),f=h.vertical,m=h.horizontal,g=pc(e,a,i),v=g.vertical,y=g.horizontal,b=f.isSnap,w=m.isSnap,x=f.isBound||v.isBound,_=m.isBound||y.isBound,S=ps(function(e,t,n,r,o){var i=ps(t,2),a=i[0],s=i[1],l=ps(n,2),c=l[0],u=l[1],d=ps(r,2),p=d[0],h=d[1],f=ps(o,2),m=f[0],g=f[1],v=-m,y=-g;if(e&&a&&s){v=0,y=0;var b=[];if(c&&u?b.push([0,g],[m,0]):c?b.push([m,0]):u?b.push([0,g]):p&&h?b.push([0,g],[m,0]):p?b.push([m,0]):h&&b.push([0,g]),b.length){b.sort((function(e,t){return xu(Ji([a,s],e))-xu(Ji([a,s],t))}));var w=b[0];if(w[0]&&pd(a)>Jo)v=-w[0],y=s*pd(a+v)/pd(a)-s;else if(w[1]&&pd(s)>Jo){var x=s;y=-w[1],v=a*pd(s+y)/pd(x)-a}if(e&&u&&c)if(pd(v)>Jo&&pd(v)<pd(m))v*=_=pd(m)/pd(v),y*=_;else if(pd(y)>Jo&&pd(y)<pd(g)){var _;v*=_=pd(g)/pd(y),y*=_}else v=Wu(-m,v),y=Wu(-g,y)}}else v=a||c?-m:0,y=s||u?-g:0;return[v,y]}(r,[t,n],[x,_],[b,w],[Wu(f.offset,v.offset),Wu(m.offset,y.offset)]),2);return[{isBound:x,isSnap:b,offset:S[0]},{isBound:_,isSnap:w,offset:S[1]}]}function bc(e,t,n,r){void 0===r&&(r=n);var o=Rl(Fl(e),r.vertical,r.horizontal),i=o.horizontal,a=o.vertical,s=t?{horizontal:{isSnap:!1,index:-1},vertical:{isSnap:!1,index:-1}}:Xl(e,n.vertical,n.horizontal,void 0,void 0,void 0,void 0),l=s.horizontal,c=s.vertical,u=vc(i[0],l),d=vc(a[0],c),p=pd(u),h=pd(d);return{horizontal:{isBound:i[0].isBound,isSnap:l.isSnap,snapIndex:l.index,offset:u,dist:p,bounds:i,snap:l},vertical:{isBound:a[0].isBound,isSnap:c.isSnap,snapIndex:c.index,offset:d,dist:h,bounds:a,snap:c}}}function wc(e,t,n,r,o,i){return n.map((function(n){var a=ps(n,2),s=a[0],l=a[1],c=tl(t,s),u=tl(t,l),d=r?function(e,t,n,r){var o=function(e,t,n){var r=Fl(e),o=r.left,i=r.top,a=r.right,s=r.bottom,l=ps(n,2),c=l[0],u=l[1],d=ps(Ji(n,t),2),p=d[0],h=d[1];pd(p)<Fs&&(p=0),pd(h)<Fs&&(h=0);var f=h>0,m=p>0,g={isBound:!1,offset:0,pos:0},v={isBound:!1,offset:0,pos:0};if(0===p&&0===h)return{vertical:g,horizontal:v};if(0===p)f?s<u&&(v.pos=s,v.offset=u-s):i>u&&(v.pos=i,v.offset=u-i);else if(0===h)m?a<c&&(g.pos=a,g.offset=c-a):o>c&&(g.pos=o,g.offset=c-o);else{var y=h/p,b=n[1]-y*c,w=0,x=0,_=!1;m&&a<=c?(w=y*a+b,x=a,_=!0):!m&&c<=o&&(w=y*o+b,x=o,_=!0),_&&(w<i||w>s)&&(_=!1),_||(f&&s<=u?(x=((w=s)-b)/y,_=!0):!f&&u<=i&&(x=((w=i)-b)/y,_=!0)),_&&(g.isBound=!0,g.pos=x,g.offset=c-x,v.isBound=!0,v.pos=w,v.offset=u-w)}return{vertical:g,horizontal:v}}(e,t,n),i=o.horizontal,a=o.vertical,s=r?{horizontal:{isSnap:!1},vertical:{isSnap:!1}}:function(e,t,n){var r=ps(n,2),o=r[0],i=r[1],a=ps(t,2),s=a[0],l=a[1],c=ps(Ji(n,t),2),u=c[0],d=c[1],p=d>0,h=u>0;u=Ju(u),d=Ju(d);var f={isSnap:!1,offset:0,pos:0},m={isSnap:!1,offset:0,pos:0};if(0===u&&0===d)return{vertical:f,horizontal:m};var g=Xl(e,u?[o]:[],d?[i]:[],[],[],void 0,void 0),v=g.vertical,y=g.horizontal;v.posInfos.filter((function(e){var t=e.pos;return h?t>=s:t<=s})),y.posInfos.filter((function(e){var t=e.pos;return p?t>=l:t<=l})),v.isSnap=v.posInfos.length>0,y.isSnap=y.posInfos.length>0;var b=tc(v),w=b.isSnap,x=b.guideline,_=tc(y),S=_.isSnap,C=_.guideline,E=S?C.pos[1]:0,k=w?x.pos[0]:0;if(0===u)S&&(m.isSnap=!0,m.pos=C.pos[1],m.offset=i-m.pos);else if(0===d)w&&(f.isSnap=!0,f.pos=k,f.offset=o-k);else{var z=d/u,P=n[1]-z*o,D=0,A=0,T=!1;w?(D=z*(A=k)+P,T=!0):S&&(A=((D=E)-P)/z,T=!0),T&&(f.isSnap=!0,f.pos=A,f.offset=o-A,m.isSnap=!0,m.pos=D,m.offset=i-D)}return{vertical:f,horizontal:m}}(e,t,n),l=s.horizontal,c=s.vertical,u=xc(i,l),d=xc(a,c),p=pd(u),h=pd(d);return{horizontal:{isBound:i.isBound,isSnap:l.isSnap,offset:u,dist:p},vertical:{isBound:a.isBound,isSnap:c.isSnap,offset:d,dist:h}}}(e,c,u,o):bc(e,o,{vertical:[u[0]],horizontal:[u[1]]}),p=d.horizontal,h=p.offset,f=p.isBound,m=p.isSnap,g=d.vertical,v=g.offset,y=g.isBound,b=g.isSnap,w=Ji(l,s);if(!v&&!h)return{isBound:y||f,isSnap:b||m,sign:w,offset:[0,0]};var x=function(e,t,n,r){var o=ki(e,t)/Math.PI*180,i=n.vertical,a=i.isBound,s=i.isSnap,l=i.dist,c=n.horizontal,u=c.isBound,d=c.isSnap,p=o%180,h=p<3||p>177,f=p>87&&p<93;return c.dist<l&&(a||s&&!f&&(!r||!h))?"vertical":!u&&(!d||h||r&&f)?"":"horizontal"}(c,u,d,r);if(!x)return{sign:w,isBound:!1,isSnap:!1,offset:[0,0]};var _="vertical"===x,S=[0,0];return S=(S=r||1!==pd(l[0])||1!==pd(l[1])||s[0]===l[0]||s[1]===l[1]?gc(c,u,-(_?v:h),_,i).offset:Qs({datas:i,distX:-v,distY:-h})).map((function(e,t){return e*(w[t]?2/w[t]:0)})),{sign:w,isBound:_?y:f,isSnap:_?b:m,offset:S}}))}function xc(e,t){return e.isBound?e.offset:t.isSnap?t.offset:0}var _c={name:"draggable",props:["draggable","throttleDrag","throttleDragRotate","hideThrottleDragRotateLine","startDragRotate","edgeDraggable"],events:["dragStart","drag","dragEnd","dragGroupStart","dragGroup","dragGroupEnd"],requestStyle:function(){return["left","top","right","bottom"]},requestChildStyle:function(){return["left","top","right","bottom"]},render:function(e,t){var n=e.props,r=n.hideThrottleDragRotateLine,o=n.throttleDragRotate,i=n.zoom,a=e.getState(),s=a.dragInfo,l=a.beforeOrigin;if(r||!o||!s)return[];var c=s.dist;if(!c[0]&&!c[1])return[];var u=xu(c),d=ki(c,[0,0]);return[t.createElement("div",{className:nu("line","horizontal","dragline","dashed"),key:"dragRotateGuideline",style:{width:"".concat(u,"px"),transform:"translate(".concat(l[0],"px, ").concat(l[1],"px) rotate(").concat(d,"rad) scaleY(").concat(i,")")}})]},dragStart:function(e,t){var n=t.datas,r=t.parentEvent,o=t.parentGesto,i=e.state,a=i.gestos,s=i.style;if(a.draggable)return!1;a.draggable=o||e.targetGesto,n.datas={},n.left=parseFloat(s.left||"")||0,n.top=parseFloat(s.top||"")||0,n.bottom=parseFloat(s.bottom||"")||0,n.right=parseFloat(s.right||"")||0,n.startValue=[0,0],Zs(e,t),ol(e,t,"translate"),function(e,t){t.absolutePoses=Ru(e.state)}(e,n),n.prevDist=[0,0],n.prevBeforeDist=[0,0],n.isDrag=!1,n.deltaOffset=[0,0];var l=Lu(e,t,ds({set:function(e){n.startValue=e}},rl(e,t)));return!1!==(r||Vu(e,"onDragStart",l))?(n.isDrag=!0,e.state.dragInfo={startRect:e.getRect(),dist:[0,0]}):(a.draggable=null,n.isPinch=!1),!!n.isDrag&&l},drag:function(e,t){if(t){qs(e,t,"translate");var n=t.datas,r=t.parentEvent,o=t.parentFlag,i=t.isPinch,a=t.deltaOffset,s=t.useSnap,l=t.isRequest,c=t.isGroup,u=t.parentThrottleDrag,d=t.distX,p=t.distY,h=n.isDrag,f=n.prevDist,m=n.prevBeforeDist,g=n.startValue;if(h){a&&(d+=a[0],p+=a[1]);var v=e.props,y=v.parentMoveable,b=c?0:v.throttleDrag||u||0,w=r?0:v.throttleDragRotate||0,x=0,_=!1,S=!1,C=!1,E=!1;if(!r&&w>0&&(d||p)){var k=v.startDragRotate||0,z=Di(k+180*ki([0,0],[d,p])/Math.PI,w)-k,P=p*Math.abs(Math.cos((z-90)/180*Math.PI)),D=xu([d*Math.abs(Math.cos(z/180*Math.PI)),P]);x=z*Math.PI/180,d=D*Math.cos(x),p=D*Math.sin(x)}if(!i&&!r&&!o){var A=ps(yc(e,d,p,w,!s&&l||a,n),2),T=A[0],I=A[1];_=T.isSnap,S=T.isBound,C=I.isSnap,E=I.isBound,d+=T.offset,p+=I.offset}var M=Qi(Xs({datas:n,distX:d,distY:p}),g),R=Qi(Ws({datas:n,distX:d,distY:p}),g);Ai(R,Fs),Ai(M,Fs),w||(_||S||(R[0]=Di(R[0],b),M[0]=Di(M[0],b)),C||E||(R[1]=Di(R[1],b),M[1]=Di(M[1],b)));var F=Ji(M,g),N=Ji(R,g),O=Ji(N,f),j=Ji(F,m);n.prevDist=N,n.prevBeforeDist=F,n.passDelta=O,n.passDist=N;var L=n.left+F[0],B=n.top+F[1],K=n.right-F[0],V=n.bottom-F[1],H=Gs(n,"translate(".concat(R[0],"px, ").concat(R[1],"px)"),"translate(".concat(N[0],"px, ").concat(N[1],"px)"));if(al(t,H),e.state.dragInfo.dist=r?[0,0]:N,r||y||!O.every((function(e){return!e}))||!j.some((function(e){return!e}))){var $=e.state,U=$.width,Z=$.height,q=Lu(e,t,ds({transform:H,dist:N,delta:O,translate:R,beforeDist:F,beforeDelta:j,beforeTranslate:M,left:L,top:B,right:K,bottom:V,width:U,height:Z,isPinch:i},Ou({transform:H},t)));return!r&&Vu(e,"onDrag",q),q}}}},dragAfter:function(e,t){var n=t.datas,r=n.deltaOffset;return!(!r[0]&&!r[1])&&(n.deltaOffset=[0,0],this.drag(e,ds(ds({},t),{deltaOffset:r})))},dragEnd:function(e,t){var n=t.parentEvent,r=t.datas;if(e.state.dragInfo=null,r.isDrag){r.isDrag=!1;var o=Bu(e,t,{});return!n&&Vu(e,"onDragEnd",o),o}},dragGroupStart:function(e,t){var n,r,o=t.datas,i=t.clientX,a=t.clientY,s=this.dragStart(e,t);if(!s)return!1;var l=Cl(e,this,"dragStart",[i||0,a||0],t,!1,"draggable"),c=l.childEvents,u=l.eventParams,d=Vu(e,"onDragGroupStart",ds(ds({},s),{targets:e.props.targets,events:u}));o.isDrag=!1!==d;var p=null!==(r=null===(n=c[0])||void 0===n?void 0:n.datas.startValue)&&void 0!==r?r:[0,0];return o.throttleOffset=[p[0]%1,p[1]%1],!!o.isDrag&&s},dragGroup:function(e,t){if(t.datas.isDrag){var n=this.drag(e,ds(ds({},t),{parentThrottleDrag:e.props.throttleDrag})),r=Cl(e,this,"drag",t.datas.passDelta,t,!1,"draggable").eventParams;if(n){var o=ds({targets:e.props.targets,events:r},n);return Vu(e,"onDragGroup",o),o}}},dragGroupEnd:function(e,t){var n=t.isDrag;if(t.datas.isDrag){this.dragEnd(e,t);var r=Cl(e,this,"dragEnd",[0,0],t,!1,"draggable").eventParams;return Vu(e,"onDragGroupEnd",Bu(e,t,{targets:e.props.targets,events:r})),n}},request:function(e){var t={},n=e.getRect(),r=0,o=0,i=!1;return{isControl:!1,requestStart:function(e){return i=e.useSnap,{datas:t,useSnap:i}},request:function(e){return"x"in e?r=e.x-n.left:"deltaX"in e&&(r+=e.deltaX),"y"in e?o=e.y-n.top:"deltaY"in e&&(o+=e.deltaY),{datas:t,distX:r,distY:o,useSnap:i}},requestEnd:function(){return{datas:t,isDrag:!0,useSnap:i}}}},unset:function(e){e.state.gestos.draggable=null,e.state.dragInfo=null}};function Sc(e,t){return{fixedPosition:tl(e,t),fixedDirection:t,fixedOffset:[0,0]}}function Cc(e,t){var n=e.allMatrix,r=e.is3d,o=e.width,i=e.height,a=r?4:3,s=function(e,t,n){return[t?e[0]/(t/2)-1:0,n?e[1]/(n/2)-1:0]}(t,o,i);return{fixedPosition:vu(n,t,a),fixedDirection:s,fixedOffset:[o?0:t[0],i?0:t[1]]}}var Ec=td("resizable"),kc={name:"resizable",ableGroup:"size",canPinch:!0,props:["resizable","throttleResize","renderDirections","displayAroundControls","keepRatio","resizeFormat","keepRatioFinally","edge","checkResizableError"],events:["resizeStart","beforeResize","resize","resizeEnd","resizeGroupStart","beforeResizeGroup","resizeGroup","resizeGroupEnd"],render:Tl("resizable"),dragControlCondition:Ec,viewClassName:ed("resizable"),dragControlStart:function(e,t){var n,r=t.inputEvent,o=t.isPinch,i=t.isGroup,a=t.parentDirection,s=t.parentGesto,l=t.datas,c=t.parentFixedDirection,u=t.parentEvent,d=Tu(a,o,r,l),p=e.state,h=p.target,f=p.width,m=p.height,g=p.gestos;if(!d||!h)return!1;if(g.resizable)return!1;g.resizable=s||e.controlGesto,!o&&Zs(e,t),l.datas={},l.direction=d,l.startOffsetWidth=f,l.startOffsetHeight=m,l.prevWidth=0,l.prevHeight=0,l.minSize=[0,0],l.startWidth=p.inlineCSSWidth||p.cssWidth,l.startHeight=p.inlineCSSHeight||p.cssHeight,l.maxSize=[1/0,1/0],i||(l.minSize=[p.minOffsetWidth,p.minOffsetHeight],l.maxSize=[p.maxOffsetWidth,p.maxOffsetHeight]);var v=e.props.transformOrigin||"% %";function y(e){l.ratio=e&&isFinite(e)?e:0}function b(e){var t=Sc(l.startPositions,e);l.fixedDirection=t.fixedDirection,l.fixedPosition=t.fixedPosition,l.fixedOffset=t.fixedOffset}function w(t){var n=Cc(e.state,t);l.fixedDirection=n.fixedDirection,l.fixedPosition=n.fixedPosition,l.fixedOffset=n.fixedOffset}function x(e){l.minSize=[xi("".concat(e[0]),0)||0,xi("".concat(e[1]),0)||0]}function _(e){var t=[e[0]||1/0,e[1]||1/0];ai(t[0])&&!isFinite(t[0])||(t[0]=xi("".concat(t[0]),0)||1/0),ai(t[1])&&!isFinite(t[1])||(t[1]=xi("".concat(t[1]),0)||1/0),l.maxSize=t}l.transformOrigin=v&&ii(v)?v.split(" "):v,l.startOffsetMatrix=p.offsetMatrix,l.startTransformOrigin=p.transformOrigin,l.isWidth=null!==(n=null==t?void 0:t.parentIsWidth)&&void 0!==n?n:!d[0]&&!d[1]||d[0]||!d[1],l.startPositions=Ru(e.state),y(f/m),b(c||[-d[0],-d[1]]),l.setFixedDirection=b,l.setFixedPosition=w,l.setMin=x,l.setMax=_;var S=Lu(e,t,{direction:d,startRatio:l.ratio,set:function(e){var t=ps(e,2),n=t[0],r=t[1];l.startWidth=n,l.startHeight=r},setMin:x,setMax:_,setRatio:y,setFixedDirection:b,setFixedPosition:w,setOrigin:function(e){l.transformOrigin=e},dragStart:_c.dragStart(e,(new $s).dragStart([0,0],t))}),C=u||Vu(e,"onResizeStart",S);return l.startFixedDirection=l.fixedDirection,l.startFixedPosition=l.fixedPosition,!1!==C&&(l.isResize=!0,e.state.snapRenderInfo={request:t.isRequest,direction:d}),!!l.isResize&&S},dragControl:function(e,t){var n,r=t.datas,o=t.parentFlag,i=t.isPinch,a=t.parentKeepRatio,s=t.dragClient,l=t.parentDist,c=t.useSnap,u=t.isRequest,d=t.isGroup,p=t.parentEvent,h=t.resolveMatrix,f=r.isResize,m=r.transformOrigin,g=r.startWidth,v=r.startHeight,y=r.prevWidth,b=r.prevHeight,w=r.minSize,x=r.maxSize,_=r.ratio,S=r.startOffsetWidth,C=r.startOffsetHeight,E=r.isWidth;if(f){if(h){var k=e.state.is3d,z=r.startOffsetMatrix,P=r.startTransformOrigin,D=k?4:3,A=ga(ll(t)),T=Math.sqrt(A.length);D!==T&&(A=Wi(A,T,D));var I=nl(z,A,P,D),M=yu(I,S,C,D);r.startPositions=M,r.nextTargetMatrix=A,r.nextAllMatrix=I}var R=Eu(e.props,"resizable"),F=R.resizeFormat,N=R.throttleResize,O=void 0===N?o?0:1:N,j=R.parentMoveable,L=R.keepRatioFinally,B=r.direction,K=B,V=0,H=0;B[0]||B[1]||(K=[1,1]);var $=_&&(null!=a?a:R.keepRatio)||!1,U=ps(oe(),2),Z=U[0],q=U[1];p||(r.setFixedDirection(r.fixedDirection),Vu(e,"onBeforeResize",Lu(e,t,{startFixedDirection:r.startFixedDirection,startFixedPosition:r.startFixedPosition,setFixedDirection:function(e){var t;return r.setFixedDirection(e),t=ps(oe(),2),Z=t[0],q=t[1],[Z,q]},setFixedPosition:function(e){var t;return r.setFixedPosition(e),t=ps(oe(),2),Z=t[0],q=t[1],[Z,q]},boundingWidth:Z,boundingHeight:q,setSize:function(e){var t;t=ps(e,2),Z=t[0],q=t[1]}},!0)));var G=s;s||(G=!o&&i?function(e,t){return tl(Ru(e.state),t)}(e,[0,0]):r.fixedPosition);var W=[0,0];if(i||(W=function(e,t,n,r,o,i,a){if(!$l(e,"resizable"))return[0,0];var s=a.fixedDirection,l=a.nextAllMatrix,c=e.state,u=c.allMatrix,d=c.is3d;return qc(e,(function(e,r){return $c(l||u,t+e,n+r,s,o,d)}),t,n,r,o,i,a)}(e,Z,q,B,G,!c&&u,r)),l&&(!l[0]&&(W[0]=0),!l[1]&&(W[1]=0)),$){K[0]&&K[1]&&W[0]&&W[1]&&(pd(W[0])>pd(W[1])?W[1]=0:W[0]=0);var Y=!W[0]&&!W[1];Y&&ie(),K[0]&&!K[1]||W[0]&&!W[1]||Y&&E?(Z+=W[0],q=Z/_):(!K[0]&&K[1]||!W[0]&&W[1]||Y&&!E)&&(q+=W[1],Z=q*_)}else Z+=W[0],q+=W[1],Z=Math.max(0,Z),q=Math.max(0,q);n=ps(Ci([Z,q],w,x,!!$&&_),2),Z=n[0],q=n[1],ie(),$&&(d||L)&&(E?q=Z/_:Z=q*_);var X=[(V=Z-S)-y,(H=q-C)-b];r.prevWidth=V,r.prevHeight=H;var Q=fl(e,Z,q,G,m,r);if(j||!X.every((function(e){return!e}))||!Q.every((function(e){return!e}))){var J=_c.drag(e,Hs(t,e.state,Q,!!i,!1,"draggable")),ee=J.transform,te=g+V,ne=v+H,re=Lu(e,t,ds({width:te,height:ne,offsetWidth:Math.round(Z),offsetHeight:Math.round(q),startRatio:_,boundingWidth:Z,boundingHeight:q,direction:B,dist:[V,H],delta:X,isPinch:!!i,drag:J},ju({style:{width:"".concat(te,"px"),height:"".concat(ne,"px")},transform:ee},J,t)));return!p&&Vu(e,"onResize",re),re}}function oe(){var e=r.fixedDirection,n=ad(K,$,r,t);V=n.distWidth,H=n.distHeight;var o=K[0]-e[0]||$?Math.max(S+V,Fs):S,i=K[1]-e[1]||$?Math.max(C+H,Fs):C;return $&&S&&C&&(E?i=o/_:o=i*_),[o,i]}function ie(){var e;F&&(e=ps(F([Z,q]),2),Z=e[0],q=e[1]),Z=Di(Z,O),q=Di(q,O)}},dragControlAfter:function(e,t){var n=t.datas,r=n.isResize,o=n.startOffsetWidth,i=n.startOffsetHeight,a=n.prevWidth,s=n.prevHeight;if(r&&!1!==e.props.checkResizableError){var l=e.state,c=l.width-(o+a),u=l.height-(i+s),d=pd(c)>3,p=pd(u)>3;return d&&(n.startWidth+=c,n.startOffsetWidth+=c,n.prevWidth+=c),p&&(n.startHeight+=u,n.startOffsetHeight+=u,n.prevHeight+=u),d||p?this.dragControl(e,t):void 0}},dragControlEnd:function(e,t){var n=t.datas,r=t.parentEvent;if(n.isResize){n.isResize=!1;var o=Bu(e,t,{});return!r&&Vu(e,"onResizeEnd",o),o}},dragGroupControlCondition:Ec,dragGroupControlStart:function(e,t){var n=t.datas,r=this.dragControlStart(e,ds(ds({},t),{isGroup:!0}));if(!r)return!1;var o=Sl(e,"resizable",t),i=n.startOffsetWidth,a=n.startOffsetHeight;function s(){var e=n.minSize;o.forEach((function(t){var n=t.datas,r=n.minSize,o=n.startOffsetWidth,s=n.startOffsetHeight,l=i*(o?r[0]/o:0),c=a*(s?r[1]/s:0);e[0]=Math.max(e[0],l),e[1]=Math.max(e[1],c)}))}function l(){var e=n.maxSize;o.forEach((function(t){var n=t.datas,r=n.maxSize,o=n.startOffsetWidth,s=n.startOffsetHeight,l=i*(o?r[0]/o:0),c=a*(s?r[1]/s:0);e[0]=Math.min(e[0],l),e[1]=Math.min(e[1],c)}))}var c=El(e,this,"dragControlStart",t,(function(t,r){return kl(e,t,n,r)}));s(),l();var u=function(t){r.setFixedDirection(t),c.forEach((function(r,i){r.setFixedDirection(t),kl(e,r.moveable,n,o[i])}))};n.setFixedDirection=u;var d=ds(ds({},r),{targets:e.props.targets,events:c.map((function(e){return ds(ds({},e),{setMin:function(t){e.setMin(t),s()},setMax:function(t){e.setMax(t),l()}})})),setFixedDirection:u,setMin:function(e){r.setMin(e),s()},setMax:function(e){r.setMax(e),l()}}),p=Vu(e,"onResizeGroupStart",d);return n.isResize=!1!==p,!!n.isResize&&r},dragGroupControl:function(e,t){var n=t.datas;if(n.isResize){var r=Eu(e.props,"resizable");Ku(e,"onBeforeResize",(function(n){Vu(e,"onBeforeResizeGroup",Lu(e,t,ds(ds({},n),{targets:r.targets}),!0))}));var o=this.dragControl(e,ds(ds({},t),{isGroup:!0}));if(o){var i=o.boundingWidth,a=o.boundingHeight,s=o.dist,l=r.keepRatio,c=[i/(i-s[0]),a/(a-s[1])],u=n.fixedPosition,d=El(e,this,"dragControl",t,(function(t,n){var r=ps(na(ua(e.rotation/180*Math.PI,3),[n.datas.originalX*c[0],n.datas.originalY*c[1],1],3),2),o=r[0],i=r[1];return ds(ds({},n),{parentDist:null,parentScale:c,dragClient:Qi(u,[o,i]),parentKeepRatio:l})})),p=ds({targets:r.targets,events:d},o);return Vu(e,"onResizeGroup",p),p}}},dragGroupControlEnd:function(e,t){var n=t.isDrag;if(t.datas.isResize){this.dragControlEnd(e,t);var r=El(e,this,"dragControlEnd",t);return Vu(e,"onResizeGroupEnd",Bu(e,t,{targets:e.props.targets,events:r})),n}},request:function(e){var t={},n=0,r=0,o=!1,i=e.getRect();return{isControl:!0,requestStart:function(e){var n;return o=e.useSnap,{datas:t,parentDirection:e.direction||[1,1],parentIsWidth:null===(n=null==e?void 0:e.horizontal)||void 0===n||n,useSnap:o}},request:function(e){return"offsetWidth"in e?n=e.offsetWidth-i.offsetWidth:"deltaWidth"in e&&(n+=e.deltaWidth),"offsetHeight"in e?r=e.offsetHeight-i.offsetHeight:"deltaHeight"in e&&(r+=e.deltaHeight),{datas:t,parentDist:[n,r],parentKeepRatio:e.keepRatio,useSnap:o}},requestEnd:function(){return{datas:t,isDrag:!0,useSnap:o}}}},unset:function(e){e.state.gestos.resizable=null}};function zc(e,t,n,r,o){var i=e.props.groupable,a=e.state,s=a.is3d?4:3,l=t.origin,c=vu(e.state.rootMatrix,Ji([l[0],l[1]],i?[0,0]:[a.left,a.top]),s),u=Qi([o.left,o.top],c);t.startAbsoluteOrigin=u,t.prevDeg=ki(u,[n,r])/Math.PI*180,t.defaultDeg=t.prevDeg,t.prevSnapDeg=0,t.loop=0,t.startDist=Pi(u,[n,r])}function Pc(e,t,n){var r=n.defaultDeg,o=n.prevDeg,i=o%360,a=Math.floor(o/360);i<0&&(i+=360),i>e&&i>270&&e<90?++a:i<e&&i<90&&e>270&&--a;var s=t*(360*a+e-r);return n.prevDeg=r+s,s}function Dc(e,t,n,r){return Pc(ki(r.startAbsoluteOrigin,[e,t])/Math.PI*180,n,r)}function Ac(e,t,n,r,o,i){var a=e.props.throttleRotate,s=void 0===a?0:a,l=n.prevSnapDeg,c=0,u=!1;if(i){var d=function(e,t,n,r){var o,i=e.props,a=null!==(o=i.snapRotationThreshold)&&void 0!==o?o:5,s=i.snapRotationDegrees;if($l(e,"rotatable")){var l=t.pos1,c=t.pos2,u=t.pos3,d=t.pos4,p=t.origin,h=n*Math.PI/180,f=[l,c,u,d].map((function(e){return Ji(e,p)})),m=f.map((function(e){return sa(e,h)})),g=hs(hs([],ps(jl(e,f,m,p,n)),!1),ps(mc(e,f,m,p,n)),!1);g.sort((function(e,t){return pd(e-n)-pd(t-n)}));var v=g.length>0;if(v)return{isSnap:v,dist:v?g[0]:n}}if((null==s?void 0:s.length)&&a){var y=s.slice().sort((function(e,t){return Yc(e,r)-Yc(t,r)})),b=y[0];if(Yc(b,r)<=a)return{isSnap:!0,dist:n+Wc(r,b)-r}}return{isSnap:!1,dist:n}}(e,t,r,o+r);u=d.isSnap,c=o+d.dist}u||(c=Di(o+r,s));var p=c-o;return n.prevSnapDeg=p,[p-l,p,c]}function Tc(e,t,n){var r=ps(t,4),o=r[0],i=r[1],a=r[2],s=r[3];if("none"===e)return[];if(oi(e))return e.map((function(e){return Tc(e,[o,i,a,s],n)[0]}));var l=ps((e||"top").split("-"),2),c=l[0],u=l[1],d=[o,i];"left"===c?d=[a,o]:"right"===c?d=[i,s]:"bottom"===c&&(d=[s,a]);var p=[(d[0][0]+d[1][0])/2,(d[0][1]+d[1][1])/2],h=zu(d,n);if(u){var f="top"===u||"left"===u,m="bottom"===c||"left"===c;p=d[f&&!m||!f&&m?0:1]}return[[p,h]]}function Ic(e,t){if(t.isRequest)return"rotatable"===t.requestAble;var n=t.inputEvent.target;if(Ti(n,nu("rotation-control"))||e.props.rotateAroundControls&&Ti(n,nu("around-control"))||Ti(n,nu("control"))&&Ti(n,nu("rotatable")))return!0;var r=e.props.rotationTarget;return!!r&&rd(r,!0).some((function(e){return!!e&&(n===e||n.contains(e))}))}var Mc={name:"rotatable",canPinch:!0,props:["rotatable","rotationPosition","throttleRotate","renderDirections","rotationTarget","rotateAroundControls","edge","resolveAblesWithRotatable","displayAroundControls"],events:["rotateStart","beforeRotate","rotate","rotateEnd","rotateGroupStart","beforeRotateGroup","rotateGroup","rotateGroupEnd"],css:[".rotation {\nposition: absolute;\nheight: 40px;\nwidth: 1px;\ntransform-origin: 50% 100%;\nheight: calc(40px * var(--zoom));\ntop: auto;\nleft: 0;\nbottom: 100%;\nwill-change: transform;\n}\n.rotation .rotation-line {\ndisplay: block;\nwidth: 100%;\nheight: 100%;\ntransform-origin: 50% 50%;\n}\n.rotation .rotation-control {\nborder-color: #4af;\nborder-color: var(--moveable-color);\nbackground:#fff;\ncursor: alias;\n}\n:global .view-rotation-dragging, .rotatable.direction.control {\ncursor: alias;\n}\n.rotatable.direction.control.move {\ncursor: move;\n}\n"],viewClassName:function(e){return e.isDragging("rotatable")?nu("view-rotation-dragging"):""},render:function(e,t){var n=Eu(e.props,"rotatable"),r=n.rotatable,o=n.rotationPosition,i=n.zoom,a=n.renderDirections,s=n.rotateAroundControls,l=n.resolveAblesWithRotatable,c=e.getState(),u=c.renderPoses,d=c.direction;if(!r)return null;var p=Tc(o,u,d),h=[];if(p.forEach((function(e,n){var r=ps(e,2),o=r[0],a=r[1];h.push(t.createElement("div",{key:"rotation".concat(n),className:nu("rotation"),style:{transform:"translate(-50%) translate(".concat(o[0],"px, ").concat(o[1],"px) rotate(").concat(a,"rad)")}},t.createElement("div",{className:nu("line rotation-line"),style:{transform:"scaleX(".concat(i,")")}}),t.createElement("div",{className:nu("control rotation-control"),style:{transform:"translate(0.5px) scale(".concat(i,")")}})))})),a){var f=wi(l||{}),m={};f.forEach((function(e){l[e].forEach((function(t){m[t]=e}))}));var g=[];oi(a)&&(g=a.map((function(e){var t=m[e];return{data:t?{resolve:t}:{},classNames:t?["move"]:[],dir:e}}))),h.push.apply(h,hs([],ps(zl(e,"rotatable",g,t)),!1))}return s&&h.push.apply(h,hs([],ps(Ml(e,t)),!1)),h},dragControlCondition:Ic,dragControlStart:function(e,t){var n,r,o=t.datas,i=t.clientX,a=t.clientY,s=t.parentRotate,l=t.parentFlag,c=t.isPinch,u=t.isRequest,d=e.state,p=d.target,h=d.left,f=d.top,m=d.direction,g=d.beforeDirection,v=d.targetTransform,y=d.moveableClientRect,b=d.offsetMatrix,w=d.targetMatrix,x=d.allMatrix,_=d.width,S=d.height;if(!u&&!p)return!1;var C=e.getRect();o.rect=C,o.transform=v,o.left=h,o.top=f;var E=function(t){var n=Cc(e.state,t);o.fixedDirection=n.fixedDirection,o.fixedOffset=n.fixedOffset,o.fixedPosition=n.fixedPosition,O&&O.setFixedPosition(t)},k=function(t){var n=function(e,t){var n=e.allMatrix,r=e.is3d,o=e.width,i=e.height,a=r?4:3;return{fixedPosition:vu(n,[o/2*(1+t[0]),i/2*(1+t[1])],a),fixedDirection:t,fixedOffset:[0,0]}}(e.state,t);o.fixedDirection=n.fixedDirection,o.fixedOffset=n.fixedOffset,o.fixedPosition=n.fixedPosition,O&&O.setFixedDirection(t)},z=i,P=a;if(u||c||l){var D=s||0;o.beforeInfo={origin:C.beforeOrigin,prevDeg:D,defaultDeg:D,prevSnapDeg:0,startDist:0},o.afterInfo=ds(ds({},o.beforeInfo),{origin:C.origin}),o.absoluteInfo=ds(ds({},o.beforeInfo),{origin:C.origin,startValue:D})}else{var A=null===(r=t.inputEvent)||void 0===r?void 0:r.target;if(A){var T=A.getAttribute("data-direction")||"",I=Ls[T];if(I){o.isControl=!0,o.isAroundControl=Ti(A,nu("around-control")),o.controlDirection=I;var M=A.getAttribute("data-resolve");M&&(o.resolveAble=M);var R=function(e,t,n){var r=16===e.length?4:3,o=t.map((function(t){return vu(e,t,r)})),i=n.left,a=n.top;return o.map((function(e){return[e[0]+i,e[1]+a]}))}(d.rootMatrix,d.renderPoses,y);n=ps(tl(R,I),2),z=n[0],P=n[1]}}o.beforeInfo={origin:C.beforeOrigin},o.afterInfo={origin:C.origin},o.absoluteInfo={origin:C.origin,startValue:C.rotation};var F=E;E=function(t){var n=d.is3d?4:3,r=ps(Qi(qi(w,n),t),2),i=r[0],a=r[1],s=na(b,Gi([i,a],n)),l=na(x,Gi([t[0],t[1]],n));F(t);var c=d.posDelta;o.beforeInfo.origin=Ji(s,c),o.afterInfo.origin=Ji(l,c),o.absoluteInfo.origin=Ji(l,c),zc(e,o.beforeInfo,z,P,y),zc(e,o.afterInfo,z,P,y),zc(e,o.absoluteInfo,z,P,y)},k=function(e){var t=tl([[0,0],[_,0],[0,S],[_,S]],e);E(t)}}o.startClientX=z,o.startClientY=P,o.direction=m,o.beforeDirection=g,o.startValue=0,o.datas={},ol(e,t,"rotate");var N=!1,O=!1;o.isControl&&o.resolveAble&&("resizable"===o.resolveAble&&(O=kc.dragControlStart(e,ds(ds({},new $s("resizable").dragStart([0,0],t)),{parentPosition:o.controlPosition,parentFixedPosition:o.fixedPosition}))));O||(N=_c.dragStart(e,(new $s).dragStart([0,0],t))),E(function(e){var t=e.props,n=t.groupable,r=t.svgOrigin,o=e.getState(),i=o.offsetWidth,a=o.offsetHeight,s=o.svg,l=o.transformOrigin;if(!n&&s&&r)return ld(r,i,a);return l}(e));var j=Lu(e,t,ds(ds({set:function(e){o.startValue=e*Math.PI/180},setFixedDirection:k,setFixedPosition:E},rl(e,t)),{dragStart:N,resizeStart:O})),L=Vu(e,"onRotateStart",j);return o.isRotate=!1!==L,d.snapRenderInfo={request:t.isRequest},!!o.isRotate&&j},dragControl:function(e,t){var n,r,o,i=t.datas,a=t.clientDistX,s=t.clientDistY,l=t.parentRotate,c=t.parentFlag,u=t.isPinch,d=t.groupDelta,p=t.resolveMatrix,h=i.beforeDirection,f=i.beforeInfo,m=i.afterInfo,g=i.absoluteInfo,v=i.isRotate,y=i.startValue,b=i.rect,w=i.startClientX,x=i.startClientY;if(v){qs(e,t,"rotate");var _,S,C,E,k,z,P,D,A,T=function(e){return Us(e.datas.beforeTransform,[50,50],100,100).direction}(t),I=h*T,M=e.props.parentMoveable,R=180/Math.PI*y,F=g.startValue,N=!1,O=w+a,j=x+s;if(!c&&"parentDist"in t){var L=t.parentDist;S=L,k=L,D=L}else u||c?(S=Pc(l,h,f),k=Pc(l,I,m),D=Pc(l,I,g)):(S=Dc(O,j,h,f),k=Dc(O,j,I,m),D=Dc(O,j,I,g),N=!0);if(Vu(e,"onBeforeRotate",Lu(e,t,{beforeRotation:C=R+S,rotation:z=R+k,absoluteRotation:A=F+D,setRotation:function(e){S=k=e-R,D=k}},!0)),_=(n=ps(Ac(e,b,f,S,R,N),3))[0],S=n[1],C=n[2],E=(r=ps(Ac(e,b,m,k,R,N),3))[0],k=r[1],z=r[2],P=(o=ps(Ac(e,b,g,D,F,N),3))[0],D=o[1],A=o[2],P||E||_||M||p){var B=Gs(i,"rotate(".concat(z,"deg)"),"rotate(".concat(k,"deg)"));p&&(i.fixedPosition=pl(e,i.targetAllTransform,i.fixedDirection,i.fixedOffset,i));var K=function(e,t,n){var r=n.fixedDirection,o=n.fixedPosition,i=n.fixedOffset;return hl(e,"rotate(".concat(t,"deg)"),r,o,i,n)}(e,k,i),V=Ji(Qi(d||[0,0],K),i.prevInverseDist||[0,0]);i.prevInverseDist=K,i.requestValue=null;var H=dl(e,B,V,u,t),$=H,U=Pi([O,j],g.startAbsoluteOrigin)-g.startDist,Z=void 0;if("resizable"===i.resolveAble){var q=kc.dragControl(e,ds(ds({},Hs(t,e.state,[t.deltaX,t.deltaY],!!u,!1,"resizable")),{resolveMatrix:!0,parentDistance:U}));q&&(Z=q,$=ju($,q,t))}var G=Lu(e,t,ds(ds({delta:E,dist:k,rotate:z,rotation:z,beforeDist:S,beforeDelta:_,beforeRotate:C,beforeRotation:C,absoluteDist:D,absoluteDelta:P,absoluteRotate:A,absoluteRotation:A,isPinch:!!u,resize:Z},H),$));return Vu(e,"onRotate",G),G}}},dragControlEnd:function(e,t){var n=t.datas;if(n.isRotate){n.isRotate=!1;var r=Bu(e,t,{});return Vu(e,"onRotateEnd",r),r}},dragGroupControlCondition:Ic,dragGroupControlStart:function(e,t){var n=t.datas,r=e.state,o=r.left,i=r.top,a=r.beforeOrigin,s=this.dragControlStart(e,t);if(!s)return!1;s.set(n.beforeDirection*e.rotation);var l=El(e,this,"dragControlStart",t,(function(e,t){var n=e.state,r=n.left,s=n.top,l=n.beforeOrigin,c=Qi(Ji([r,s],[o,i]),Ji(l,a));return t.datas.startGroupClient=c,t.datas.groupClient=c,ds(ds({},t),{parentRotate:0})})),c=Vu(e,"onRotateGroupStart",ds(ds({},s),{targets:e.props.targets,events:l}));return n.isRotate=!1!==c,!!n.isRotate&&s},dragGroupControl:function(e,t){var n=t.datas;if(n.isRotate){Ku(e,"onBeforeRotate",(function(n){Vu(e,"onBeforeRotateGroup",Lu(e,t,ds(ds({},n),{targets:e.props.targets}),!0))}));var r=this.dragControl(e,t);if(r){var o=n.beforeDirection,i=r.beforeDist,a=i/180*Math.PI,s=El(e,this,"dragControl",t,(function(e,t){var n=t.datas.startGroupClient,r=ps(t.datas.groupClient,2),s=r[0],l=r[1],c=ps(sa(n,a*o),2),u=c[0],d=c[1],p=[u-s,d-l];return t.datas.groupClient=[u,d],ds(ds({},t),{parentRotate:i,groupDelta:p})}));e.rotation=o*r.beforeRotation;var l=ds({targets:e.props.targets,events:s,set:function(t){e.rotation=t},setGroupRotation:function(t){e.rotation=t}},r);return Vu(e,"onRotateGroup",l),l}}},dragGroupControlEnd:function(e,t){var n=t.isDrag;if(t.datas.isRotate){this.dragControlEnd(e,t);var r=El(e,this,"dragControlEnd",t);return Vu(e,"onRotateGroupEnd",Bu(e,t,{targets:e.props.targets,events:r})),n}},request:function(e){var t={},n=0,r=e.getRotation();return{isControl:!0,requestStart:function(){return{datas:t}},request:function(e){return"deltaRotate"in e?n+=e.deltaRotate:"rotate"in e&&(n=e.rotate-r),{datas:t,parentDist:n}},requestEnd:function(){return{datas:t,isDrag:!0}}}}};function Rc(e,t){return function(e,t){var n,r=e.direction,o=e.classNames,i=e.size,a=e.pos,s=e.zoom,l=e.key,c="horizontal"===r,u=c?"Y":"X";return t.createElement("div",{key:l,className:o.join(" "),style:(n={},n[c?"width":"height"]="".concat(i),n.transform="translate(".concat(a[0],", ").concat(a[1],") translate").concat(u,"(-50%) scale").concat(u,"(").concat(s,")"),n)})}(ds(ds({},e),{classNames:hs([nu("line","guideline",e.direction)],ps(e.classNames),!1).filter((function(e){return e})),size:e.size||"".concat(e.sizeValue,"px"),pos:e.pos||e.posValue.map((function(e){return"".concat(Di(e,.1),"px")}))}),t)}function Fc(e,t,n,r,o,i,a,s){var l=e.props.zoom;return n.map((function(e,n){var c=e.type,u=e.pos,d=[0,0];return d[a]=r,d[a?0:1]=-o+u,Rc({key:"".concat(t,"TargetGuideline").concat(n),classNames:[nu("target","bold",c)],posValue:d,sizeValue:i,zoom:l,direction:t},s)}))}function Nc(e,t,n,r,o,i){var a=e.props,s=a.zoom,l=a.isDisplayInnerSnapDigit,c="horizontal"===t?Vl:Hl,u=o[c.start],d=o[c.end];return n.filter((function(e){var t=e.hide,n=e.elementRect;if(t)return!1;if(l&&n){var r=n.rect;if(r[c.start]<=u&&d<=r[c.end])return!1}return!0})).map((function(e,n){var o=e.pos,a=e.size,l=e.element,c=e.className,u=[-r[0]+o[0],-r[1]+o[1]];return Rc({key:"".concat(t,"-default-guideline-").concat(n),classNames:l?[nu("bold"),c]:[nu("normal"),c],direction:t,posValue:u,sizeValue:a,zoom:s},i)}))}function Oc(e,t,n,r,o,i,a,s){var l,c=e.props,u=c.snapDigit,d=void 0===u?0:u,p=c.isDisplaySnapDigit,h=void 0===p||p,f=c.snapDistFormat,m=void 0===f?function(e,t){return e}:f,g=c.zoom,v="horizontal"===t?"X":"Y",y="vertical"===t?"height":"width",b=Math.abs(o),w=h?parseFloat(b.toFixed(d)):0;return s.createElement("div",{key:"".concat(t,"-").concat(n,"-guideline-").concat(r),className:nu("guideline-group",t),style:(l={left:"".concat(i[0],"px"),top:"".concat(i[1],"px")},l[y]="".concat(b,"px"),l)},Rc({direction:t,classNames:[nu(n),a],size:"100%",posValue:[0,0],sizeValue:b,zoom:g},s),s.createElement("div",{className:nu("size-value","gap"),style:{transform:"translate".concat(v,"(-50%) scale(").concat(g,")")}},w>0?m(w,t):""))}function jc(e,t,n,r,o){var i=e.props.isDisplayInnerSnapDigit,a=[];return["vertical","horizontal"].forEach((function(s){var l=t.filter((function(e){return e.type===s})),c="vertical"===s?1:0,u=c?0:1,d=function(e,t,n,r){var o="vertical"===e?0:1,i="vertical"===e?1:0,a=o?Vl:Hl,s=n[a.start],l=n[a.end];return qu(t,(function(e){return e.pos[o]})).map((function(t){var n=[],c=[];return t.forEach((function(t){var u,d,p=t.element,h=t.elementRect.rect;if(h[a.end]<s)n.push(t);else if(l<h[a.start])c.push(t);else if(h[a.start]<=s&&l<=h[a.end]&&r){var f=t.pos,m={element:p,rect:ds(ds({},h),(u={},u[a.end]=h[a.start],u))},g={element:p,rect:ds(ds({},h),(d={},d[a.start]=h[a.end],d))},v=[0,0],y=[0,0];v[o]=f[o],v[i]=f[i],y[o]=f[o],y[i]=f[i]+t.size,n.push({type:e,pos:v,size:0,elementRect:m,direction:"",elementDirection:"end"}),c.push({type:e,pos:y,size:0,elementRect:g,direction:"",elementDirection:"start"})}})),n.sort((function(e,t){return t.pos[i]-e.pos[i]})),c.sort((function(e,t){return e.pos[i]-t.pos[i]})),{total:t,start:n,end:c,inner:[]}}))}(s,l,r,i),p=c?Hl:Vl,h=c?Vl:Hl,f=r[p.start],m=r[p.end];d.forEach((function(t){var i=t.total,l=t.start,d=t.end,g=t.inner,v=n[u]+i[0].pos[u]-r[h.start],y=r;l.forEach((function(t){var r=t.elementRect.rect,i=y[p.start]-r[p.end];if(i>0){var l=[0,0];l[c]=n[c]+y[p.start]-f-i,l[u]=v,a.push(Oc(e,s,"dashed",a.length,i,l,t.className,o))}y=r})),y=r,d.forEach((function(t){var r=t.elementRect.rect,i=r[p.start]-y[p.end];if(i>0){var l=[0,0];l[c]=n[c]+y[p.end]-f,l[u]=v,a.push(Oc(e,s,"dashed",a.length,i,l,t.className,o))}y=r})),g.forEach((function(t){var r=t.elementRect.rect,i=f-r[p.start],l=r[p.end]-m,d=[0,0],h=[0,0];d[c]=n[c]-i,d[u]=v,h[c]=n[c]+m-f,h[u]=v,a.push(Oc(e,s,"dashed",a.length,i,d,t.className,o)),a.push(Oc(e,s,"dashed",a.length,l,h,t.className,o))}))}))})),a}function Lc(e){var t,n,r=e.state,o=r.containerClientRect,i=r.hasFixed,a=o.overflow,s=o.scrollHeight,l=o.scrollWidth,c=o.clientHeight,u=o.clientWidth,d=o.clientLeft,p=o.clientTop,h=e.props,f=h.snapGap,m=void 0===f||f,g=h.verticalGuidelines,v=h.horizontalGuidelines,y=h.snapThreshold,b=void 0===y?5:y,w=h.maxSnapElementGuidelineDistance,x=void 0===w?1/0:w,_=h.isDisplayGridGuidelines,S=bu(Ru(e.state)),C=S.top,E=S.left,k=S.bottom,z=S.right,P={top:C,left:E,bottom:k,right:z,center:(E+z)/2,middle:(C+k)/2},D=function(e){var t=e.state,n=e.props.elementGuidelines,r=void 0===n?[]:n;if(!r.length)return t.elementRects=[],[];var o=(t.elementRects||[]).filter((function(e){return!e.refresh})),i=r.map((function(e){return ri(e)&&"element"in e?ds(ds({},e),{element:nd(e.element,!0)}):{element:nd(e,!0)}})).filter((function(e){return e.element})),a=function(e,t){return Ca(e,t,Pa)}(o.map((function(e){return e.element})),i.map((function(e){return e.element}))),s=a.maintained,l=a.added,c=[];s.forEach((function(e){var t=ps(e,2),n=t[0],r=t[1];c[r]=o[n]})),function(e,t){if(!t.length)return[];var n=e.props.groupable,r=e.state,o=r.containerClientRect,i=r.rootMatrix,a=r.is3d,s=r.offsetDelta,l=a?4:3,c=ps(function(e,t,n){var r=vu(e,[t.clientLeft,t.clientTop],n);return[t.left+r[0],t.top+r[1]]}(i,o,l),2),u=c[0],d=c[1],p=n?0:s[0],h=n?0:s[1];return t.map((function(e){var t=e.element.getBoundingClientRect(),n=t.left-u-p,r=t.top-d-h,o=r+t.height,a=n+t.width,s=ps(Yu(i,[n,r],l),2),c=s[0],f=s[1],m=ps(Yu(i,[a,o],l),2),g=m[0],v=m[1];return ds(ds({},e),{rect:{left:c,right:g,top:f,bottom:v,center:(c+g)/2,middle:(f+v)/2}})}))}(e,l.map((function(e){return i[e]}))).map((function(e,t){c[l[t]]=e})),t.elementRects=c;var u=Ul(e.props.elementSnapDirections),d=[];return c.forEach((function(e){var t=e.element,n=e.top,r=void 0===n?u.top:n,o=e.left,i=void 0===o?u.left:o,a=e.right,s=void 0===a?u.right:a,l=e.bottom,c=void 0===l?u.bottom:l,p=e.center,h=void 0===p?u.center:p,f=e.middle,m=void 0===f?u.middle:f,g=e.className,v=e.rect,y=Zl({top:r,right:s,left:i,bottom:c,center:h,middle:m},v),b=y.horizontal,w=y.vertical,x=y.horizontalNames,_=y.verticalNames,S=v.top,C=v.left,E=v.right-C,k=v.bottom-S,z=[E,k];w.forEach((function(n,r){d.push({type:"vertical",element:t,pos:[Di(n,.1),S],size:k,sizes:z,className:g,elementRect:e,elementDirection:Kl[_[r]]||_[r],direction:""})})),b.forEach((function(n,r){d.push({type:"horizontal",element:t,pos:[C,Di(n,.1)],size:E,sizes:z,className:g,elementRect:e,elementDirection:Kl[x[r]]||x[r],direction:""})}))})),d}(e),A=hs([],ps(D),!1),T=(null!==(n=null===(t=r.snapThresholdInfo)||void 0===t?void 0:t.multiples)&&void 0!==n?n:[1,1]).map((function(e){return e*b}));m&&A.push.apply(A,hs([],ps(function(e,t,n){var r=e.props,o=r.maxSnapElementGuidelineDistance,i=void 0===o?1/0:o,a=r.maxSnapElementGapDistance,s=void 0===a?1/0:a,l=e.state.elementRects,c=[];return[["vertical",Vl,Hl],["horizontal",Hl,Vl]].forEach((function(e){var r=ps(e,3),o=r[0],a=r[1],u=r[2],d=t[a.start],p=t[a.end],h=t[a.center],f=t[u.start],m=t[u.end],g={left:n[0],top:n[1]};function v(e){var t=e.rect,n=g[a.start];return t[a.end]<d+n?d-t[a.end]:p-n<t[a.start]?t[a.start]-p:-1}var y=l.filter((function(e){var t=e.rect;return!(t[u.start]>m||t[u.end]<f)&&v(e)>0})).sort((function(e,t){return v(e)-v(t)})),b=[];y.forEach((function(e){y.forEach((function(t){if(e!==t){var n=e.rect,r=t.rect,o=n[u.start],i=n[u.end],a=r[u.start];o>r[u.end]||a>i||b.push([e,t])}}))})),b.forEach((function(e){var n=ps(e,2),r=n[0],l=n[1],u=r.rect,f=l.rect,m=u[a.start],v=u[a.end],y=f[a.start],b=f[a.end],w=g[a.start],x=0,_=0,S=!1,C=!1,E=!1;if(v<=d&&p<=y){if(C=!0,pd((_=v+(x=(y-v-(p-d))/2)+(p-d)/2)-h)>w)return}else if(v<y&&b<d+w){if(S=!0,pd((_=b+(x=y-v))-d)>w)return}else{if(!(v<y&&p-w<m))return;if(E=!0,pd((_=m-(x=y-v))-p)>w)return}x&&Bc(t,f,o,i)&&(x>s||c.push({type:o,pos:"vertical"===o?[_,0]:[0,_],element:l.element,size:0,className:l.className,isStart:S,isCenter:C,isEnd:E,gap:x,hide:!0,gapRects:[r,l],direction:"",elementDirection:""}))}))})),c}(e,P,T)),!1));var I=ds({},r.snapOffset||{left:0,top:0,bottom:0,right:0});if(A.push.apply(A,hs([],ps(function(e,t,n,r,o,i,a){void 0===r&&(r=0);void 0===o&&(o=0);var s=e.props,l=e.state,c=s.snapGridWidth,u=void 0===c?0:c,d=s.snapGridHeight,p=void 0===d?0:d,h=[],f=i.left,m=i.top,g=[0,0];!function(e,t,n,r){var o,i,a=e.props,s=e.state,l=a.snapGridAll,c=a.snapGridWidth,u=void 0===c?0:c,d=a.snapGridHeight,p=void 0===d?0:d,h=s.snapRenderInfo,f=h&&((null===(o=h.direction)||void 0===o?void 0:o[0])||(null===(i=h.direction)||void 0===i?void 0:i[1])),m=e.moveables;if(l&&m&&f&&(u||p)){if(s.snapThresholdInfo)return;s.snapThresholdInfo={multiples:[1,1],offset:[0,0]};var g=e.getRect(),v=g.children,y=h.direction;if(v){var b=y.map((function(e,o){var i=0===o?{snapSize:u,posName:"left",sizeName:"width",clientOffset:r.left-t}:{snapSize:p,posName:"top",sizeName:"height",clientOffset:r.top-n},a=i.snapSize,s=i.posName,l=i.sizeName,c=i.clientOffset;if(!a)return{dir:e,multiple:1,snapSize:a,snapOffset:0};var d,h=g[l],f=g[s],m=(d=v.map((function(e){return[e[s]-f,e[l],h-e[l]-e[s]+f]})),d.reduce((function(e,t){return e.concat(t)}),[])).filter((function(e){return e})).sort((function(e,t){return e-t})),y=m[0],b=m.map((function(e){return Di(e/y,.1)*a})),w=1,x=Di(h/y,.1);for(w=1;w<=10&&!b.every((function(e){return e*w%1==0}));++w);var _=(1-e)/2,S=ti(f-c,f-c+h,_,1-_);return{multiple:x*w,dir:e,snapSize:a,snapOffset:Math.round(S/a)}})),w=b.map((function(e){return e.multiple||1}));s.snapThresholdInfo.multiples=w,s.snapThresholdInfo.offset=b.map((function(e){return e.snapOffset})),b.forEach((function(e,t){e.snapSize}))}}else s.snapThresholdInfo=null}(e,r,o,i);var v=l.snapThresholdInfo,y=u,b=p;v&&(u*=v.multiples[0]||1,p*=v.multiples[1]||1,g=v.offset);if(p){for(var w=function(e){h.push({type:"horizontal",pos:[f,Di(g[1]*b+e-o+m,.1)],className:nu("grid-guideline"),size:t,hide:!a,direction:"",grid:!0})},x=0;x<=2*n;x+=p)w(x);for(x=-p;x>=-n;x-=p)w(x)}if(u){for(w=function(e){h.push({type:"vertical",pos:[Di(g[0]*y+e-r+f,.1),m],className:nu("grid-guideline"),size:n,hide:!a,direction:"",grid:!0})},x=0;x<=2*t;x+=u)w(x);for(x=-u;x>=-t;x-=u)w(x)}return h}(e,a?l:u,a?s:c,d,p,I,_)),!1)),i){var M=o.left,R=o.top;I.left+=M,I.top+=R,I.right+=M,I.bottom+=R}return A.push.apply(A,hs([],ps(Vc(v||!1,g||!1,a?l:u,a?s:c,d,p,I)),!1)),A=A.filter((function(e){var t=e.element,n=e.elementRect,r=e.type;if(!t||!n)return!0;var o=n.rect;return Bc(P,o,r,x)})),A}function Bc(e,t,n,r){return"horizontal"===n?pd(e.right-t.left)<=r||pd(e.left-t.right)<=r||e.left<=t.right&&t.left<=e.right:"vertical"!==n||(pd(e.bottom-t.top)<=r||pd(e.top-t.bottom)<=r||e.top<=t.bottom&&t.top<=e.bottom)}function Kc(e,t){return e?e.map((function(e){var n=ri(e)?e:{pos:e},r=n.pos;return ai(r)?n:ds(ds({},n),{pos:xi(r,t)})})):[]}function Vc(e,t,n,r,o,i,a){void 0===o&&(o=0),void 0===i&&(i=0),void 0===a&&(a={left:0,top:0,right:0,bottom:0});var s=[],l=a.left,c=a.top,u=a.bottom,d=n+a.right-l,p=r+u-c;return Kc(e,p).forEach((function(e){s.push({type:"horizontal",pos:[l,Di(e.pos-i+c,.1)],size:d,className:e.className,direction:""})})),Kc(t,d).forEach((function(e){s.push({type:"vertical",pos:[Di(e.pos-o+l,.1),c],size:p,className:e.className,direction:""})})),s}function Hc(e){var t=e.state,n=t.container,r=e.props.snapContainer||n;if(t.snapContainer===r&&t.guidelines&&t.guidelines.length)return!1;var o=t.containerClientRect,i={left:0,top:0,bottom:0,right:0};if(n!==r){var a=nd(r,!0);if(a){var s=Au(a),l=od(t,[s.left-o.left,s.top-o.top]),c=od(t,[s.right-o.right,s.bottom-o.bottom]);i.left=Di(l[0],1e-5),i.top=Di(l[1],1e-5),i.right=Di(c[0],1e-5),i.bottom=Di(c[1],1e-5)}}return t.snapContainer=r,t.snapOffset=i,t.guidelines=Lc(e),t.enableSnap=!0,!0}function $c(e,t,n,r,o,i){var a=yu(e,t,n,i?4:3);return Mu(a,Ji(o,tl(a,r)))}function Uc(e){return e?e/pd(e):0}function Zc(e,t,n,r,o,i){var a=function(e,t,n){var r=[];if(n)1!==pd(t[0])||1!==pd(t[1])?r.push([t,[-1,-1]],[t,[-1,1]],[t,[1,-1]],[t,[1,1]]):r.push([t,[e[0],-e[1]]],[t,[-e[0],e[1]]]),r.push([t,e]);else if(e[0]&&e[1]||!e[0]&&!e[1]){var o=e[0]?e:[1,1];[1,-1].forEach((function(e){[1,-1].forEach((function(n){var i=[e*o[0],n*o[1]];t[0]===i[0]&&t[1]===i[1]||r.push([t,i])}))}))}else e[0]?(1===pd(t[0])?[1]:[1,-1]).forEach((function(n){r.push([[t[0],-1],[n*e[0],-1]],[[t[0],0],[n*e[0],0]],[[t[0],1],[n*e[0],1]])})):e[1]&&(1===pd(t[1])?[1]:[1,-1]).forEach((function(n){r.push([[-1,t[1]],[-1,n*e[1]]],[[0,t[1]],[0,n*e[1]]],[[1,t[1]],[1,n*e[1]]])}));return r}(n,i.fixedDirection,r),s=hc(e,t,n,r),l=hs(hs([],ps(wc(e,t,a,r,o,i)),!1),ps(dc(e,s,i)),!1),c=ic(l,0),u=ic(l,1);return{width:{isBound:c.isBound,offset:c.offset[0]},height:{isBound:u.isBound,offset:u.offset[1]}}}function qc(e,t,n,r,o,i,a,s){for(var l=Ru(e.state),c=e.props.keepRatio,u=0,d=0,p=0;p<2;++p){var h=Zc(e,t(u,d),o,c,a,s),f=h.width,m=h.height,g=f.isBound,v=m.isBound,y=f.offset,b=m.offset;if(1===p&&(g||(y=0),v||(b=0)),0===p&&a&&!g&&!v)return[0,0];if(c){var w=pd(y)*(n?1/n:1),x=pd(b)*(r?1/r:1);(g&&v?w<x:v||!g&&w<x)?y=n*b/r:b=r*y/n}u+=y,d+=b}if(!c&&o[0]&&o[1]){var _=function(e,t,n,r,o){var i=[-n[0],-n[1]],a=e.state,s=a.width,l=a.height,c=e.props.bounds,u=1/0,d=1/0;if(c){var p=[[n[0],-n[1]],[-n[0],n[1]]],h=c.left,f=void 0===h?-1/0:h,m=c.top,g=void 0===m?-1/0:m,v=c.right,y=void 0===v?1/0:v,b=c.bottom,w=void 0===b?1/0:b;p.forEach((function(e){var n=e[0]!==i[0],a=e[1]!==i[1],c=tl(t,e),p=360*ki(r,c)/Math.PI;if(a){var h=c.slice();(pd(p-360)<2||pd(p-180)<2)&&(h[1]=r[1]);var m=gc(r,h,(r[1]<c[1]?w:g)-c[1],!1,o),v=ps(m.offset,2)[1],b=m.isOutside;isNaN(v)||(d=l+(b?1:-1)*pd(v))}if(n){h=c.slice(),(pd(p-90)<2||pd(p-270)<2)&&(h[0]=r[0]);var x=gc(r,h,(r[0]<c[0]?y:f)-c[0],!0,o),_=ps(x.offset,1)[0],S=x.isOutside;isNaN(_)||(u=s+(S?1:-1)*pd(_))}}))}return{maxWidth:u,maxHeight:d}}(e,l,o,i,s),S=_.maxWidth,C=_.maxHeight,E=ps(function(e,t,n,r,o,i,a,s,l){var c=tl(t,a),u=bc(e,s,{vertical:[c[0]],horizontal:[c[1]]}),d=u.horizontal.offset,p=u.vertical.offset;if(Di(p,Rs)||Di(d,Rs)){var h=ps(Qs({datas:l,distX:-p,distY:-d}),2),f=h[0],m=h[1];return[Math.min(o||1/0,n+a[0]*f)-n,Math.min(i||1/0,r+a[1]*m)-r]}return[0,0]}(e,t(u,d).map((function(e){return e.map((function(e){return Di(e,Rs)}))})),n+u,r+d,S,C,o,a,s),2);u+=y=E[0],d+=b=E[1]}return[u,d]}function Gc(e){return e<0&&(e=e%360+360),e%=360}function Wc(e,t){t=Gc(t);var n=Math.floor(e/360),r=360*n+360-t,o=360*n+t;return pd(e-r)<pd(e-o)?r:o}function Yc(e,t){e=Gc(e),t=Gc(t);var n=Gc(e-t);return Math.min(n,360-n)}function Xc(e,t,n,r,o){if(!$l(e,"scalable"))return[0,0];var i=o.startOffsetWidth,a=o.startOffsetHeight,s=o.fixedPosition,l=o.fixedDirection,c=o.is3d,u=qc(e,(function(e,n){return $c(function(e,t){var n=e.transformOrigin,r=e.offsetMatrix,o=e.is3d,i=e.targetMatrix,a=o?4:3;return nl(r,Xi(e.targetAllTransform||i,pa(t,a),a),n,a)}(o,Qi(t,[e/i,n/a])),i,a,l,s,c)}),i,a,n,s,r,o);return[u[0]/i,u[1]/a]}function Qc(e){var t=[];return e.forEach((function(e){e.guidelineInfos.forEach((function(n){var r=n.guideline;vi(t,(function(e){return e.guideline===r}))||(r.direction="",t.push({guideline:r,posInfo:e}))}))})),t.map((function(e){var t=e.guideline,n=e.posInfo;return ds(ds({},t),{direction:n.direction})}))}function Jc(e,t,n,r,o,i){var a=Rl(Fl(e,i),t,n),s=a.vertical,l=a.horizontal,c={left:!1,top:!1,right:!1,bottom:!1};s.forEach((function(e){e.isBound&&("start"===e.direction&&(c.left=!0),"end"===e.direction&&(c.right=!0),r.push({type:"bounds",pos:e.pos}))})),l.forEach((function(e){e.isBound&&("start"===e.direction&&(c.top=!0),"end"===e.direction&&(c.bottom=!0),o.push({type:"bounds",pos:e.pos}))}));var u=function(e){var t=e.props.innerBounds,n={left:!1,top:!1,right:!1,bottom:!1};if(!t)return{boundMap:n,vertical:[],horizontal:[]};var r=e.getRect(),o=[r.pos1,r.pos2,r.pos3,r.pos4],i=tl(o,[0,0]),a=t.left,s=t.top,l=t.width,c=t.height,u=[[a,s],[a,s+c]],d=[[a,s],[a+l,s]],p=[[a+l,s],[a+l,s+c]],h=[[a,s+c],[a+l,s+c]],f=hc(e,o,[0,0],!1),m=[],g=[];return f.forEach((function(e){var t=e.line,r=e.lineConstants,o=ac(i,t),f=o.horizontal,v=o.vertical,y=uc(t,r,d,v,1,!0),b=uc(t,r,h,v,1,!0),w=uc(t,r,u,f,1,!0),x=uc(t,r,p,f,1,!0);y.isBound&&!n.top&&(m.push(s),n.top=!0),b.isBound&&!n.bottom&&(m.push(s+c),n.bottom=!0),w.isBound&&!n.left&&(g.push(a),n.left=!0),x.isBound&&!n.right&&(g.push(a+l),n.right=!0)})),{boundMap:n,horizontal:m,vertical:g}}(e),d=u.boundMap,p=u.vertical,h=u.horizontal;return p.forEach((function(e){gi(r,(function(t){var n=t.type,r=t.pos;return"bounds"===n&&r===e}))>=0||r.push({type:"bounds",pos:e})})),h.forEach((function(e){gi(o,(function(t){var n=t.type,r=t.pos;return"bounds"===n&&r===e}))>=0||o.push({type:"bounds",pos:e})})),{boundMap:c,innerBoundMap:d}}var eu=td("",["resizable","scalable"]),tu={name:"snappable",dragRelation:"strong",props:["snappable","snapContainer","snapDirections","elementSnapDirections","snapGap","snapGridWidth","snapGridHeight","isDisplaySnapDigit","isDisplayInnerSnapDigit","isDisplayGridGuidelines","snapDigit","snapThreshold","snapRenderThreshold","snapGridAll",ql,Gl,Wl,Yl,"horizontalGuidelines","verticalGuidelines","elementGuidelines","bounds","innerBounds","snapDistFormat","maxSnapElementGuidelineDistance","maxSnapElementGapDistance"],events:["snap","bound"],css:[":host {\n--bounds-color: #d66;\n}\n.guideline {\npointer-events: none;\nz-index: 2;\n}\n.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}\n.guideline-group {\nposition: absolute;\ntop: 0;\nleft: 0;\n}\n.guideline-group .size-value {\nposition: absolute;\ncolor: #f55;\nfont-size: 12px;\nfont-size: calc(12px * var(--zoom));\nfont-weight: bold;\n}\n.guideline-group.horizontal .size-value {\ntransform-origin: 50% 100%;\ntransform: translateX(-50%);\nleft: 50%;\nbottom: 5px;\nbottom: calc(2px + 3px * var(--zoom));\n}\n.guideline-group.vertical .size-value {\ntransform-origin: 0% 50%;\ntop: 50%;\ntransform: translateY(-50%);\nleft: 5px;\nleft: calc(2px + 3px * var(--zoom));\n}\n.guideline.gap {\nbackground: #f55;\n}\n.size-value.gap {\ncolor: #f55;\n}\n"],render:function(e,t){var n=e.state,r=n.top,o=n.left,i=n.pos1,a=n.pos2,s=n.pos3,l=n.pos4,c=n.snapRenderInfo,u=e.props.snapRenderThreshold,d=void 0===u?1:u;if(!c||!c.render||!$l(e,""))return ud(e,"boundMap",{left:!1,top:!1,right:!1,bottom:!1},(function(e){return JSON.stringify(e)})),ud(e,"innerBoundMap",{left:!1,top:!1,right:!1,bottom:!1},(function(e){return JSON.stringify(e)})),[];n.guidelines=Lc(e);var p=Math.min(i[0],a[0],s[0],l[0]),h=Math.min(i[1],a[1],s[1],l[1]),f=c.externalPoses||[],m=Ru(e.state),g=[],v=[],y=[],b=[],w=[],x=bu(m),_=x.width,S=x.height,C=x.top,E=x.left,k=x.bottom,z=x.right,P={left:E,right:z,top:C,bottom:k,center:(E+z)/2,middle:(C+k)/2},D=f.length>0,A=D?bu(f):{};if(!c.request){if(c.direction&&w.push(rc(e,m,c.direction,d,d)),c.snap){var T=bu(m);c.center&&(T.middle=(T.top+T.bottom)/2,T.center=(T.left+T.right)/2),w.push(ec(e,T,d,d))}D&&(c.center&&(A.middle=(A.top+A.bottom)/2,A.center=(A.left+A.right)/2),w.push(ec(e,A,d,d))),w.forEach((function(e){var t=e.vertical.posInfos,n=e.horizontal.posInfos;g.push.apply(g,hs([],ps(t.filter((function(e){return e.guidelineInfos.some((function(e){return!e.guideline.hide}))})).map((function(e){return{type:"snap",pos:e.pos}}))),!1)),v.push.apply(v,hs([],ps(n.filter((function(e){return e.guidelineInfos.some((function(e){return!e.guideline.hide}))})).map((function(e){return{type:"snap",pos:e.pos}}))),!1)),y.push.apply(y,hs([],ps(Qc(t)),!1)),b.push.apply(b,hs([],ps(Qc(n)),!1))}))}var I=Jc(e,[E,z],[C,k],g,v),M=I.boundMap,R=I.innerBoundMap;D&&Jc(e,[A.left,A.right],[A.top,A.bottom],g,v,c.externalBounds);var F=hs(hs([],ps(y),!1),ps(b),!1),N=F.filter((function(e){return e.element&&!e.gapRects})),O=F.filter((function(e){return e.gapRects})).sort((function(e,t){return e.gap-t.gap}));Vu(e,"onSnap",{guidelines:F.filter((function(e){return!e.element})),elements:N,gaps:O},!0);var j=ud(e,"boundMap",M,(function(e){return JSON.stringify(e)}),{left:!1,top:!1,right:!1,bottom:!1}),L=ud(e,"innerBoundMap",R,(function(e){return JSON.stringify(e)}),{left:!1,top:!1,right:!1,bottom:!1});return M!==j&&R!==L||Vu(e,"onBound",{bounds:M,innerBounds:R},!0),hs(hs(hs(hs(hs(hs([],ps(jc(e,N,[p,h],P,t)),!1),ps(function(e,t,n,r,o){var i=[];return["horizontal","vertical"].forEach((function(a){var s=t.filter((function(e){return e.type===a})).slice(0,1),l="vertical"===a?0:1,c=l?0:1,u=l?Hl:Vl,d=l?Vl:Hl,p=r[u.start],h=r[u.end],f=r[d.start],m=r[d.end];s.forEach((function(t){var r=t.gap,a=t.gapRects,s=Math.max.apply(Math,hs([f],ps(a.map((function(e){return e.rect[d.start]}))),!1)),g=Math.min.apply(Math,hs([m],ps(a.map((function(e){return e.rect[d.end]}))),!1)),v=(s+g)/2;s!==g&&v!==(f+m)/2&&a.forEach((function(t){var a=t.rect,s=t.className,d=[n[0],n[1]];if(a[u.end]<p)d[l]+=a[u.end]-p;else{if(!(h<a[u.start]))return;d[l]+=a[u.start]-p-r}d[c]+=v-f,i.push(Oc(e,l?"vertical":"horizontal","gap",i.length,r,d,s,o))}))}))})),i}(e,O,[p,h],P,t)),!1),ps(Nc(e,"horizontal",b,[o,r],P,t)),!1),ps(Nc(e,"vertical",y,[o,r],P,t)),!1),ps(Fc(e,"horizontal",v,p,r,_,0,t)),!1),ps(Fc(e,"vertical",g,h,o,S,1,t)),!1)},dragStart:function(e,t){e.state.snapRenderInfo={request:t.isRequest,snap:!0,center:!0},Hc(e)},drag:function(e){var t=e.state;Hc(e)||(t.guidelines=Lc(e)),t.snapRenderInfo&&(t.snapRenderInfo.render=!0)},pinchStart:function(e){this.unset(e)},dragEnd:function(e){this.unset(e)},dragControlCondition:function(e,t){return!(!eu(e,t)&&!Ic(e,t))||(!t.isRequest&&t.inputEvent?Ti(t.inputEvent.target,nu("snap-control")):void 0)},dragControlStart:function(e){e.state.snapRenderInfo=null,Hc(e)},dragControl:function(e){this.drag(e)},dragControlEnd:function(e){this.unset(e)},dragGroupStart:function(e,t){this.dragStart(e,t)},dragGroup:function(e){this.drag(e)},dragGroupEnd:function(e){this.unset(e)},dragGroupControlStart:function(e){e.state.snapRenderInfo=null,Hc(e)},dragGroupControl:function(e){this.drag(e)},dragGroupControlEnd:function(e){this.unset(e)},unset:function(e){var t=e.state;t.enableSnap=!1,t.guidelines=[],t.snapRenderInfo=null,t.elementRects=[]}};function nu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Zo.apply(void 0,hs([As],ps(e),!1))}function ru(e){e()}function ou(e){return e&&"none"!==e?ri(e)?e:ga(e):[1,0,0,1,0,0]}function iu(e,t,n){return Yi(t,ha(n,t),e,ha(n.map((function(e){return-e})),t))}function au(e){return su(Hu(e,":before").transformOrigin).map((function(t,n){var r=fi(t),o=r.value,i=r.unit;return o*function(e,t,n){return"%"===t?mu(e.ownerSVGElement)[n?"width":"height"]/100:1}(e,i,0===n)}))}function su(e){return e?e.split(" "):["0","0"]}function lu(e){var t=_l(e)("transform");if(t&&"none"!==t)return t;if("transform"in e){var n=e.transform.baseVal;if(!n)return"";var r=n.length;if(!r)return"";for(var o=[],i=function(e){var t=n[e].matrix;o.push("matrix(".concat(["a","b","c","d","e","f"].map((function(e){return t[e]})).join(", "),")"))},a=0;a<r;++a)i(a);return o.join(" ")}return""}function cu(e,t,n,r,o){var i,a,s,l,c=Oi(e)||ji(e),u=!1;if(!e||n)s=e;else{var d=null===(i=null==e?void 0:e.assignedSlot)||void 0===i?void 0:i.parentElement,p=e.parentElement;d?(u=!0,l=p,s=d):s=p}for(var h=!1,f=e===t||s===t,m="relative",g=1,v=parseFloat(null==o?void 0:o("zoom"))||1,y=null==o?void 0:o("position");s&&s!==c;){t===s&&(f=!0);var b=_l(s),w=s.tagName.toLowerCase(),x=lu(s),_=b("willChange"),S=parseFloat(b("zoom"))||1;if(m=b("position"),r&&1!==S){g=S;break}if(!n&&r&&1!==v&&y&&"absolute"!==y||"svg"===w||"foreignobject"===w||"static"!==m||x&&"none"!==x||"transform"===_)break;var C=null===(a=null==e?void 0:e.assignedSlot)||void 0===a?void 0:a.parentNode,E=s.parentNode;C&&(u=!0,l=E);var k=E;if(k&&11===k.nodeType){h=!0,m=_l(s=k.host)("position");break}s=k,m="relative"}return{offsetZoom:g,hasSlot:u,parentSlotElement:l,isCustomElement:h,isStatic:"static"===m,isEnd:f||!s||s===c,offsetParent:s||c}}function uu(e,t){var n,r,o,i=e.tagName.toLowerCase(),a=e.offsetLeft,s=e.offsetTop,l=_l(e),c=ni(a),u=!c;return u||"svg"===i&&!e.ownerSVGElement?o=(r=su(l("transformOrigin")).map((function(e){return parseFloat(e)}))).slice():(o=(r=xs?au(e):su(l("transformOrigin")).map((function(e){return parseFloat(e)}))).slice(),u=!0,"svg"===i?(a=0,s=0):(n=ps(function(e,t,n){var r=e.tagName.toLowerCase();if(!e.getBBox||!n&&"g"===r)return[0,0,0,0];var o="fill-box"===_l(e)("transform-box"),i=e.getBBox(),a=mu(e.ownerSVGElement),s=i.x,l=i.y;"foreignobject"!==r||s||l||(s=parseFloat(e.getAttribute("x"))||0,l=parseFloat(e.getAttribute("y"))||0);var c=s-a.x,u=l-a.y,d=o?t[0]:t[0]-c,p=o?t[1]:t[1]-u;return[c,u,d,p]}(e,r,e===t&&"g"===t.tagName.toLowerCase()),4),a=n[0],s=n[1],r[0]=n[2],r[1]=n[3])),{tagName:i,isSVG:c,hasOffset:u,offset:[a||0,s||0],origin:r,targetOrigin:o}}function du(e,t){var n=_l(e),r=_l(ji(e)),o=r("position");if(!(t||o&&"static"!==o))return[0,0];var i=parseInt(r("marginLeft"),10),a=parseInt(r("marginTop"),10);return"absolute"===n("position")&&("auto"===n("top")&&"auto"===n("bottom")||(a=0),"auto"===n("left")&&"auto"===n("right")||(i=0)),[i,a]}function pu(e){e.forEach((function(e){var t=e.matrix;t&&(e.matrix=Wi(t,3,4))}))}function hu(e){for(var t=e.parentElement,n=!1,r=ji(e);t;){var o=Hu(t).transform;if(o&&"none"!==o){n=!0;break}if(t===r)break;t=t.parentElement}return{fixedContainer:t||r,hasTransform:n}}function fu(e,t){return void 0===t&&(t=e.length>9),"".concat(t?"matrix3d":"matrix","(").concat(ta(e,!t).join(","),")")}function mu(e){var t=e.clientWidth,n=e.clientHeight;if(!e)return{x:0,y:0,width:0,height:0,clientWidth:t,clientHeight:n};var r=e.viewBox,o=r&&r.baseVal||{x:0,y:0,width:0,height:0};return{x:o.x,y:o.y,width:o.width||t,height:o.height||n,clientWidth:t,clientHeight:n}}function gu(e,t){var n,r=mu(e),o=r.width,i=r.height,a=r.clientWidth,s=r.clientHeight,l=a/o,c=s/i,u=e.preserveAspectRatio.baseVal,d=u.align,p=u.meetOrSlice,h=[0,0],f=[l,c],m=[0,0];if(1!==d){var g=(d-2)%3,v=Math.floor((d-2)/3);h[0]=o*g/2,h[1]=i*v/2;var y=2===p?Math.max(c,l):Math.min(l,c);f[0]=y,f[1]=y,m[0]=(a-o)/2*g,m[1]=(s-i)/2*v}var b=pa(f,t);return n=ps(m,2),b[t*(t-1)]=n[0],b[t*(t-1)+1]=n[1],iu(b,t,h)}function vu(e,t,n){return na(e,Gi(t,n),n)}function yu(e,t,n,r){return[[0,0],[t,0],[0,n],[t,n]].map((function(t){return vu(e,t,r)}))}function bu(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]})),r=Math.min.apply(Math,hs([],ps(t),!1)),o=Math.min.apply(Math,hs([],ps(n),!1)),i=Math.max.apply(Math,hs([],ps(t),!1)),a=Math.max.apply(Math,hs([],ps(n),!1));return{left:r,top:o,right:i,bottom:a,width:i-r,height:a-o}}function wu(e,t,n,r){return bu(yu(e,t,n,r))}function xu(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function _u(e,t){return xu([t[0]-e[0],t[1]-e[1]])}function Su(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=ki(e,t));var o=_u(e,t);return{transform:"translateY(-50%) translate(".concat(e[0],"px, ").concat(e[1],"px) rotate(").concat(r,"rad) scaleY(").concat(n,")"),width:"".concat(o,"px")}}function Cu(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n.length,i=n.reduce((function(e,t){return e+t[0]}),0)/o,a=n.reduce((function(e,t){return e+t[1]}),0)/o;return{transform:"translateZ(0px) translate(".concat(i,"px, ").concat(a,"px) rotate(").concat(e,"rad) scale(").concat(t,")")}}function Eu(e,t){var n=e[t];return ri(n)?ds(ds({},e),n):e}function ku(e){var t=e&&!ni(e.offsetWidth),n=0,r=0,o=0,i=0,a=0,s=0,l=0,c=0,u=0,d=0,p=0,h=0,f=1/0,m=1/0,g=1/0,v=1/0,y=0,b=0,w=!1;if(e)if(!t&&e.ownerSVGElement){var x=e.getBBox();w=!0,a=n=x.width,s=r=x.height,l=n,c=r,o=n,i=r}else{var _=_l(e),S=e.style,C="border-box"===_("boxSizing"),E=parseFloat(_("borderLeftWidth"))||0,k=parseFloat(_("borderRightWidth"))||0,z=parseFloat(_("borderTopWidth"))||0,P=parseFloat(_("borderBottomWidth"))||0,D=(parseFloat(_("paddingLeft"))||0)+(parseFloat(_("paddingRight"))||0),A=(parseFloat(_("paddingTop"))||0)+(parseFloat(_("paddingBottom"))||0),T=D+(E+k),I=A+(z+P),M=_("position"),R=0,F=0;if("clientLeft"in e){var N=null;if("absolute"===M)N=cu(e,ji(e)).offsetParent;else N=e.parentElement;if(N){var O=_l(N);R=parseFloat(O("width")),F=parseFloat(O("height"))}}u=Math.max(D,xi(_("minWidth"),R)||0),d=Math.max(A,xi(_("minHeight"),F)||0),f=xi(_("maxWidth"),R),m=xi(_("maxHeight"),F),isNaN(f)&&(f=1/0),isNaN(m)&&(m=1/0),y=xi(S.width,0)||0,b=xi(S.height,0)||0,a=parseFloat(_("width"))||0,s=parseFloat(_("height"))||0,n=l=pd(a-y)<1?_i(u,y||a,f):a,r=c=pd(s-b)<1?_i(d,b||s,m):s,o=l,i=c,C?(g=f,v=m,p=u,h=d,l=n-T,c=r-I):(g=f+T,v=m+I,p=u+T,h=d+I,n=l+T,r=c+I),o=l+D,i=c+A}return{svg:w,offsetWidth:n,offsetHeight:r,clientWidth:o,clientHeight:i,contentWidth:l,contentHeight:c,inlineCSSWidth:y,inlineCSSHeight:b,cssWidth:a,cssHeight:s,minWidth:u,minHeight:d,maxWidth:f,maxHeight:m,minOffsetWidth:p,minOffsetHeight:h,maxOffsetWidth:g,maxOffsetHeight:v}}function zu(e,t){return ki(t>0?e[0]:e[1],t>0?e[1]:e[0])}function Pu(e,t){var n=e===ji(e)||e===Oi(e),r={clientLeft:e.clientLeft,clientTop:e.clientTop,clientWidth:e.clientWidth,clientHeight:e.clientHeight,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,overflow:!1};return n&&(r.clientHeight=Math.max(t.height,r.clientHeight),r.scrollHeight=Math.max(t.height,r.scrollHeight)),r.overflow="visible"!==_l(e)("overflow"),ds(ds({},t),r)}function Du(e,t,n,r){var o=e.left,i=e.right,a=e.top,s=e.bottom,l=t.top,c=t.left,u={left:c+o,top:l+a,right:c+i,bottom:l+s,width:i-o,height:s-a};return n&&r?Pu(n,u):u}function Au(e,t){var n=0,r=0,o=0,i=0;if(e){var a=e.getBoundingClientRect();n=a.left,r=a.top,o=a.width,i=a.height}var s={left:n,top:r,width:o,height:i,right:n+o,bottom:r+i};return e&&t?Pu(e,s):s}function Tu(e,t,n,r){var o;if(e)o=e;else if(t)o=[0,0];else{o=Iu(n.target,r)}return o}function Iu(e,t){if(e){var n=e.getAttribute("data-rotation")||"",r=e.getAttribute("data-direction");if(t.deg=n,r){var o=[0,0];return r.indexOf("w")>-1&&(o[0]=-1),r.indexOf("e")>-1&&(o[0]=1),r.indexOf("n")>-1&&(o[1]=-1),r.indexOf("s")>-1&&(o[1]=1),o}}}function Mu(e,t){return[Qi(t,e[0]),Qi(t,e[1]),Qi(t,e[2]),Qi(t,e[3])]}function Ru(e){var t=e.left,n=e.top;return Mu([e.pos1,e.pos2,e.pos3,e.pos4],[t,n])}function Fu(e,t){e[t?"controlAbles":"targetAbles"].forEach((function(t){t.unset&&t.unset(e)}))}function Nu(e,t){var n=t?"controlGesto":"targetGesto",r=e[n];!1===(null==r?void 0:r.isIdle())&&Fu(e,t),null==r||r.unset(),e[n]=null}function Ou(e,t){if(t){var n=sl(t);n.nextStyle=ds(ds({},n.nextStyle),e)}return{style:e,cssText:wi(e).map((function(t){return"".concat((n=t,r="-",void 0===r&&(r="-"),n.replace(/([a-z])([A-Z])/g,(function(e,t,n){return""+t+r+n.toLowerCase()}))),": ").concat(e[t],";");var n,r})).join("")}}function ju(e,t,n){var r=t.afterTransform||t.transform;return ds(ds({},Ou(ds(ds(ds({},e.style),t.style),{transform:r}),n)),{afterTransform:r,transform:e.transform})}function Lu(e,t,n,r){var o=t.datas;o.datas||(o.datas={});var i=ds(ds({},n),{target:e.state.target,clientX:t.clientX,clientY:t.clientY,inputEvent:t.inputEvent,currentTarget:e,moveable:e,datas:o.datas,isRequest:t.isRequest,isRequestChild:t.isRequestChild,isFirstDrag:!!t.isFirstDrag,isTrusted:!1!==t.isTrusted,stopAble:function(){o.isEventStart=!1},stopDrag:function(){var e;null===(e=t.stop)||void 0===e||e.call(t)}});return o.isStartEvent?r||(o.lastEvent=i):o.isStartEvent=!0,i}function Bu(e,t,n){var r=t.datas,o="isDrag"in n?n.isDrag:t.isDrag;return r.datas||(r.datas={}),ds(ds({isDrag:o},n),{moveable:e,target:e.state.target,clientX:t.clientX,clientY:t.clientY,inputEvent:t.inputEvent,currentTarget:e,lastEvent:r.lastEvent,isDouble:t.isDouble,datas:r.datas,isFirstDrag:!!t.isFirstDrag})}function Ku(e,t,n){e._emitter.on(t,n)}function Vu(e,t,n,r,o){return e.triggerEvent(t,n,r,o)}function Hu(e,t){return Li(e).getComputedStyle(e,t)}function $u(e,t,n){var r={},o={};return e.filter((function(e){var i=e.name;if(r[i]||!t.some((function(t){return e[t]})))return!1;if(!n&&e.ableGroup){if(o[e.ableGroup])return!1;o[e.ableGroup]=!0}return r[i]=!0,!0}))}function Uu(e,t){return e===t||null==e&&null==t}function Zu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.length-1,r=0;r<n;++r){var o=e[r];if(!ni(o))return o}return e[n]}function qu(e,t){var n=[],r=[];return e.forEach((function(o,i){var a=t(o,i,e),s=r.indexOf(a),l=n[s]||[];-1===s&&(r.push(a),n.push(l)),l.push(o)})),n}function Gu(e){return e.reduce((function(e,t){return e.concat(t)}),[])}function Wu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.sort((function(e,t){return pd(t)-pd(e)})),e[0]}function Yu(e,t,n){return na(Zi(e,n),Gi(t,n),n)}function Xu(e,t){var n,r=e.is3d?4:3;return n=ps(Yu(e.rootMatrix,[t.distX,t.distY],r),2),t.distX=n[0],t.distY=n[1],t}function Qu(e,t,n,r){if(!n[0]&&!n[1])return t;var o=vu(e,[Uc(n[0]||1),0],r),i=vu(e,[0,Uc(n[1]||1)],r);return Qi(t,vu(e,[n[0]/xu(o),n[1]/xu(i)],r))}function Ju(e){return pd(e)<=Fs?0:e}function ed(e){return function(t){if(!t.isDragging(e))return"";var n=function(e,t){var n,r=e.targetGesto,o=e.controlGesto;return(null==r?void 0:r.isFlag())&&(n=r.getEventData()[t]),!n&&(null==o?void 0:o.isFlag())&&(n=o.getEventData()[t]),n||{}}(t,e),r=n.deg;return r?nu("view-control-rotation".concat(r)):""}}function td(e,t){return void 0===t&&(t=[e]),function(n,r){if(r.isRequest)return!!t.some((function(e){return r.requestAble===e}))&&r.parentDirection;var o=r.inputEvent.target;return Ti(o,nu("direction"))&&(!e||Ti(o,nu(e)))}}function nd(e,t){return e?Ki(e)?e:ii(e)?t?document.querySelector(e):e:si(e)?e():Bi(e)?e:"current"in e?e.current:e:null}function rd(e,t){return e?((n=e)&&ri(n)&&!Ki(n)&&(oi(n)||"length"in n)?[].slice.call(e):[e]).reduce((function(e,n){return ii(n)&&t?hs(hs([],ps(e),!1),ps([].slice.call(document.querySelectorAll(n))),!1):(oi(n)?e.push(rd(n,t)):e.push(nd(n,t)),e)}),[]):[];var n}function od(e,t){var n=e.rootMatrix,r=e.is3d,o=Zi(n,r?4:3);return r||(o=Wi(o,3,4)),o[12]=0,o[13]=0,o[14]=0,function(e,t){var n=na(e,[t[0],t[1]||0,t[2]||0,1],4),r=n[3]||1;return[n[0]/r,n[1]/r,n[2]/r]}(o,t)}function id(e,t,n,r,o){var i=ps(e,2),a=i[0],s=i[1],l=0,c=0;if(o&&a&&s){var u=ki([0,0],t),d=ki([0,0],r),p=xu(t),h=Math.cos(u-d)*p;if(r[0])if(r[1]){var f=r[0]*a,m=r[1]*s,g=Math.atan2(f+t[0],m+t[1]),v=Math.atan2(f,m);g<0&&(g+=2*Math.PI),v<0&&(v+=2*Math.PI);var y=0;(y=pd(g-v)<Math.PI/2||pd(g-v)>Math.PI/2*3?g-v:g-(v+=Math.PI))>2*Math.PI?y-=2*Math.PI:y>Math.PI?y=2*Math.PI-y:y<-Math.PI&&(y=-2*Math.PI-y);var b=xu([f+t[0],m+t[1]])*Math.cos(y);l=b*Math.sin(v)-f,c=b*Math.cos(v)-m,r[0]<0&&(l*=-1),r[1]<0&&(c*=-1)}else c=(l=h)/n;else l=(c=h)*n}else l=r[0]*t[0],c=r[1]*t[1];return[l,c]}function ad(e,t,n,r){var o,i=n.ratio,a=n.startOffsetWidth,s=n.startOffsetHeight,l=0,c=0,u=r.distX,d=r.distY,p=r.pinchScale,h=r.parentDistance,f=r.parentDist,m=r.parentScale,g=n.fixedDirection,v=[0,1].map((function(t){return pd(e[t]-g[t])})),y=[0,1].map((function(e){var t=v[e];return 0!==t&&(t=2/t),t}));if(f)l=f[0],c=f[1],t&&(l?c||(c=l/i):l=c*i);else if(ai(p))l=(p-1)*a,c=(p-1)*s;else if(m)l=(m[0]-1)*a,c=(m[1]-1)*s;else if(h){var b=a*v[0],w=s*v[1],x=xu([b,w]);l=h/x*b*y[0],c=h/x*w*y[1]}else{var _=Qs({datas:n,distX:u,distY:d});_=y.map((function(e,t){return _[t]*e})),l=(o=ps(id([a,s],_,i,e,t),2))[0],c=o[1]}return{distWidth:l,distHeight:c}}function sd(e,t){if(t){if("left"===e)return{x:"0%",y:"50%"};if("top"===e)return{x:"50%",y:"50%"};if("center"===e)return{x:"50%",y:"50%"};if("right"===e)return{x:"100%",y:"50%"};if("bottom"===e)return{x:"50%",y:"100%"};var n=ps(e.split(" "),2),r=n[0],o=n[1],i=sd(r||""),a=sd(o||""),s=ds(ds({},i),a),l={x:"50%",y:"50%"};return s.x&&(l.x=s.x),s.y&&(l.y=s.y),s.value&&(s.x&&!s.y&&(l.y=s.value),!s.x&&s.y&&(l.x=s.value)),l}return"left"===e?{x:"0%"}:"right"===e?{x:"100%"}:"top"===e?{y:"0%"}:"bottom"===e?{y:"100%"}:e?"center"===e?{value:"50%"}:{value:e}:{}}function ld(e,t,n){var r=sd(e,!0),o=r.x,i=r.y;return[xi(o,t)||0,xi(i,n)||0]}function cd(e,t){return e.length===t.length&&e.every((function(e,n){var r=t[n],o=oi(e),i=oi(r);return o&&i?cd(e,r):!o&&!i&&e===r}))}function ud(e,t,n,r,o){var i=e._store,a=i[t];if(!(t in i)){if(null==o)return i[t]=n,n;i[t]=o,a=o}return a===n||r(a)===r(n)?a:(i[t]=n,n)}function dd(e){return e>=0?1:-1}function pd(e){return Math.abs(e)}function hd(e,t){return function(e){for(var t=[],n=0;n<e;++n)t.push(n);return t}(e).map((function(e){return t(e)}))}function fd(e){return ai(e)?{top:e,left:e,right:e,bottom:e}:{left:e.left||0,top:e.top||0,right:e.right||0,bottom:e.bottom||0}}fs("pinchable",{props:["pinchable"],events:["pinchStart","pinch","pinchEnd","pinchGroupStart","pinchGroup","pinchGroupEnd"],dragStart:function(){return!0},pinchStart:function(e,t){var n=t.datas,r=t.targets,o=t.angle,i=t.originalDatas,a=e.props,s=a.pinchable,l=a.ables;if(!s)return!1;var c="onPinch".concat(r?"Group":"","Start"),u="drag".concat(r?"Group":"","ControlStart"),d=(!0===s?e.controlAbles:l.filter((function(e){return s.indexOf(e.name)>-1}))).filter((function(e){return e.canPinch&&e[u]})),p=Lu(e,t,{});r&&(p.targets=r);var h=Vu(e,c,p);n.isPinch=!1!==h,n.ables=d;var f=n.isPinch;return!!f&&(d.forEach((function(n){if(i[n.name]=i[n.name]||{},n[u]){var r=ds(ds({},t),{datas:i[n.name],parentRotate:o,isPinch:!0});n[u](e,r)}})),e.state.snapRenderInfo={request:t.isRequest,direction:[0,0]},f)},pinch:function(e,t){var n=t.datas,r=t.scale,o=t.distance,i=t.originalDatas,a=t.inputEvent,s=t.targets,l=t.angle;if(n.isPinch){var c=o*(1-1/r),u=Lu(e,t,{});s&&(u.targets=s);var d="onPinch".concat(s?"Group":"");Vu(e,d,u);var p=n.ables,h="drag".concat(s?"Group":"","Control");return p.forEach((function(n){n[h]&&n[h](e,ds(ds({},t),{datas:i[n.name],inputEvent:a,resolveMatrix:!0,pinchScale:r,parentDistance:c,parentRotate:l,isPinch:!0}))})),u}},pinchEnd:function(e,t){var n=t.datas,r=t.isPinch,o=t.inputEvent,i=t.targets,a=t.originalDatas;if(n.isPinch){var s="onPinch".concat(i?"Group":"","End"),l=Bu(e,t,{isDrag:r});i&&(l.targets=i),Vu(e,s,l);var c=n.ables,u="drag".concat(i?"Group":"","ControlEnd");return c.forEach((function(n){n[u]&&n[u](e,ds(ds({},t),{isDrag:r,datas:a[n.name],inputEvent:o,isPinch:!0}))})),r}},pinchGroupStart:function(e,t){return this.pinchStart(e,ds(ds({},t),{targets:e.props.targets}))},pinchGroup:function(e,t){return this.pinch(e,ds(ds({},t),{targets:e.props.targets}))},pinchGroupEnd:function(e,t){return this.pinchEnd(e,ds(ds({},t),{targets:e.props.targets}))}});var md=td("scalable");Tl("scalable"),ed("scalable");function gd(e,t){return e.map((function(e,n){return ti(e,t[n],1,2)}))}function vd(e,t,n){var r=ki(e,t),o=ki(e,n)-r;return o>=0?o:o+2*Math.PI}ed("warpable");var yd=nu("area-pieces"),bd=nu("area-piece"),wd=nu("avoid"),xd=nu("view-dragging");function _d(e){var t=e.areaElement;if(t){var n=e.state,r=n.width,o=n.height;Mi(t,wd),t.style.cssText+="left: 0px; top: 0px; width: ".concat(r,"px; height: ").concat(o,"px")}}function Sd(e){return e.createElement("div",{key:"area_pieces",className:yd},e.createElement("div",{className:bd}),e.createElement("div",{className:bd}),e.createElement("div",{className:bd}),e.createElement("div",{className:bd}))}var Cd={name:"dragArea",props:["dragArea","passDragArea"],events:["click","clickGroup"],render:function(e,t){var n=e.props,r=n.target,o=n.dragArea,i=n.groupable,a=n.passDragArea,s=e.getState(),l=s.width,c=s.height,u=s.renderPoses,d=a?nu("area","pass"):nu("area");if(i)return[t.createElement("div",{key:"area",ref:qo(e,"areaElement"),className:d}),Sd(t)];if(!r||!o)return[];var p=fa([0,0],[l,0],[0,c],[l,c],u[0],u[1],u[2],u[3]),h=p.length?fu(p,!0):"none";return[t.createElement("div",{key:"area",ref:qo(e,"areaElement"),className:d,style:{top:"0px",left:"0px",width:"".concat(l,"px"),height:"".concat(c,"px"),transformOrigin:"0 0",transform:h}}),Sd(t)]},dragStart:function(e,t){var n=t.datas,r=t.clientX,o=t.clientY;if(!t.inputEvent)return!1;n.isDragArea=!1;var i=e.areaElement,a=e.state,s=a.moveableClientRect,l=a.renderPoses,c=a.rootMatrix,u=a.is3d,d=s.left,p=s.top,h=bu(l),f=h.left,m=h.top,g=h.width,v=h.height,y=ps(Yu(c,[r-d,o-p],u?4:3),2),b=y[0],w=y[1],x=[{left:f,top:m,width:g,height:(w-=m)-10},{left:f,top:m,width:(b-=f)-10,height:v},{left:f,top:m+w+10,width:g,height:v-w-10},{left:f+b+10,top:m,width:g-b-10,height:v}],_=[].slice.call(i.nextElementSibling.children);x.forEach((function(e,t){_[t].style.cssText="left: ".concat(e.left,"px;top: ").concat(e.top,"px; width: ").concat(e.width,"px; height: ").concat(e.height,"px;")})),Ii(i,wd),a.disableNativeEvent=!0},drag:function(e,t){var n=t.datas,r=t.inputEvent;if(this.enableNativeEvent(e),!r)return!1;n.isDragArea||(n.isDragArea=!0,_d(e))},dragEnd:function(e,t){this.enableNativeEvent(e);var n=t.inputEvent,r=t.datas;if(!n)return!1;r.isDragArea||_d(e)},dragGroupStart:function(e,t){return this.dragStart(e,t)},dragGroup:function(e,t){return this.drag(e,t)},dragGroupEnd:function(e,t){return this.dragEnd(e,t)},unset:function(e){_d(e),e.state.disableNativeEvent=!1},enableNativeEvent:function(e){var t=e.state;t.disableNativeEvent&&yi((function(){t.disableNativeEvent=!1}))}};fs("origin",{props:["origin","svgOrigin"],render:function(e,t){var n,r=e.props,o=r.zoom,i=r.svgOrigin,a=r.groupable,s=e.getState(),l=s.beforeOrigin,c=s.rotation,u=s.svg,d=s.allMatrix,p=s.is3d,h=s.left,f=s.top,m=s.offsetWidth,g=s.offsetHeight;if(!a&&u&&i){var v=ps(ld(i,m,g),2);n=Cu(c,o,Ji(vu(d,[v[0],v[1]],p?4:3),[h,f]))}else n=Cu(c,o,l);return[t.createElement("div",{className:nu("control","origin"),style:n,key:"beforeOrigin"})]}});var Ed={name:"",props:["target","dragTargetSelf","dragTarget","dragContainer","container","warpSelf","rootContainer","useResizeObserver","useMutationObserver","zoom","dragFocusedInput","transformOrigin","ables","className","pinchThreshold","pinchOutside","triggerAblesSimultaneously","checkInput","cspNonce","translateZ","hideDefaultLines","props","flushSync","stopPropagation","preventClickEventOnDrag","preventClickDefault","viewContainer","persistData","useAccuratePosition","firstRenderState","linePadding","controlPadding","preventDefault","preventRightClick","preventWheelClick","requestStyles"],events:["changeTargets"]};fs("padding",{props:["padding"],render:function(e,t){var n=e.props;if(n.dragArea)return[];var r=fd(n.padding||{}),o=r.left,i=r.top,a=r.right,s=r.bottom,l=e.getState(),c=l.renderPoses,u=[l.pos1,l.pos2,l.pos3,l.pos4],d=[];return o>0&&d.push([0,2]),i>0&&d.push([0,1]),a>0&&d.push([1,3]),s>0&&d.push([2,3]),d.map((function(e,n){var r=ps(e,2),o=r[0],i=r[1],a=fa([0,0],[100,0],[0,100],[100,100],u[o],u[i],c[o],c[i]);if(a.length)return t.createElement("div",{key:"padding".concat(n),className:nu("padding"),style:{transform:fu(a,!0)}})}))}});var kd={isPinch:!0,name:"beforeRenderable",props:[],events:["beforeRenderStart","beforeRender","beforeRenderEnd","beforeRenderGroupStart","beforeRenderGroup","beforeRenderGroupEnd"],dragRelation:"weak",setTransform:function(e,t){var n=e.state,r=n.is3d,o=n.targetMatrix,i=n.inlineTransform,a=r?"matrix3d(".concat(o.join(","),")"):"matrix(".concat(ta(o,!0),")"),s=i&&"none"!==i?i:a;t.datas.startTransforms=function(e,t){var n=da(t?4:3);return e==="matrix".concat(t?"3d":"","(").concat(n.join(","),")")||"matrix(1,0,0,1,0,0)"===e}(s,r)?[]:di(s)},resetStyle:function(e){var t=e.datas;t.nextStyle={},t.nextTransforms=e.datas.startTransforms,t.nextTransformAppendedIndexes=[]},fillDragStartParams:function(e,t){return Lu(e,t,{setTransform:function(e){t.datas.startTransforms=oi(e)?e:di(e)},isPinch:!!t.isPinch})},fillDragParams:function(e,t){return Lu(e,t,{isPinch:!!t.isPinch})},dragStart:function(e,t){this.setTransform(e,t),this.resetStyle(t),Vu(e,"onBeforeRenderStart",this.fillDragStartParams(e,t))},drag:function(e,t){t.datas.startTransforms||this.setTransform(e,t),this.resetStyle(t),Vu(e,"onBeforeRender",Lu(e,t,{isPinch:!!t.isPinch}))},dragEnd:function(e,t){t.datas.startTransforms||(this.setTransform(e,t),this.resetStyle(t)),Vu(e,"onBeforeRenderEnd",Lu(e,t,{isPinch:!!t.isPinch,isDrag:t.isDrag}))},dragGroupStart:function(e,t){var n=this;this.dragStart(e,t);var r=Sl(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.setTransform(r,e),n.resetStyle(e),n.fillDragStartParams(r,e)}));Vu(e,"onBeforeRenderGroupStart",Lu(e,t,{isPinch:!!t.isPinch,targets:e.props.targets,setTransform:function(){},events:i}))},dragGroup:function(e,t){var n=this;this.drag(e,t);var r=Sl(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.resetStyle(e),n.fillDragParams(r,e)}));Vu(e,"onBeforeRenderGroup",Lu(e,t,{isPinch:!!t.isPinch,targets:e.props.targets,events:i}))},dragGroupEnd:function(e,t){this.dragEnd(e,t),Vu(e,"onBeforeRenderGroupEnd",Lu(e,t,{isPinch:!!t.isPinch,isDrag:t.isDrag,targets:e.props.targets}))},dragControlStart:function(e,t){return this.dragStart(e,t)},dragControl:function(e,t){return this.drag(e,t)},dragControlEnd:function(e,t){return this.dragEnd(e,t)},dragGroupControlStart:function(e,t){return this.dragGroupStart(e,t)},dragGroupControl:function(e,t){return this.dragGroup(e,t)},dragGroupControlEnd:function(e,t){return this.dragGroupEnd(e,t)}},zd={name:"renderable",props:[],events:["renderStart","render","renderEnd","renderGroupStart","renderGroup","renderGroupEnd"],dragRelation:"weak",dragStart:function(e,t){Vu(e,"onRenderStart",Lu(e,t,{isPinch:!!t.isPinch}))},drag:function(e,t){Vu(e,"onRender",this.fillDragParams(e,t))},dragAfter:function(e,t){return this.drag(e,t)},dragEnd:function(e,t){Vu(e,"onRenderEnd",this.fillDragEndParams(e,t))},dragGroupStart:function(e,t){Vu(e,"onRenderGroupStart",Lu(e,t,{isPinch:!!t.isPinch,targets:e.props.targets}))},dragGroup:function(e,t){var n=this,r=Sl(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.fillDragParams(r,e)}));Vu(e,"onRenderGroup",Lu(e,t,ds(ds({isPinch:!!t.isPinch,targets:e.props.targets,transform:cl(t),transformObject:{}},Ou(ul(t))),{events:i})))},dragGroupEnd:function(e,t){var n=this,r=Sl(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.fillDragEndParams(r,e)}));Vu(e,"onRenderGroupEnd",Lu(e,t,ds({isPinch:!!t.isPinch,isDrag:t.isDrag,targets:e.props.targets,events:i,transformObject:{},transform:cl(t)},Ou(ul(t)))))},dragControlStart:function(e,t){return this.dragStart(e,t)},dragControl:function(e,t){return this.drag(e,t)},dragControlAfter:function(e,t){return this.dragAfter(e,t)},dragControlEnd:function(e,t){return this.dragEnd(e,t)},dragGroupControlStart:function(e,t){return this.dragGroupStart(e,t)},dragGroupControl:function(e,t){return this.dragGroup(e,t)},dragGroupControlEnd:function(e,t){return this.dragGroupEnd(e,t)},fillDragParams:function(e,t){var n={};return ya(ll(t)||[]).forEach((function(e){n[e.name]=e.functionValue})),Lu(e,t,ds({isPinch:!!t.isPinch,transformObject:n,transform:cl(t)},Ou(ul(t))))},fillDragEndParams:function(e,t){var n={};return ya(ll(t)||[]).forEach((function(e){n[e.name]=e.functionValue})),Lu(e,t,ds({isPinch:!!t.isPinch,isDrag:t.isDrag,transformObject:n,transform:cl(t)},Ou(ul(t))))}};function Pd(e,t,n,r,o,i,a){i.clientDistX=i.distX,i.clientDistY=i.distY;var s="Start"===o,l="End"===o,c="After"===o,u=e.state.target,d=i.isRequest,p=r.indexOf("Control")>-1;if(!u||s&&p&&!d&&e.areaElement===i.inputEvent.target)return!1;var h=hs([],ps(t),!1);if(d){var f=i.requestAble;h.some((function(e){return e.name===f}))||h.push.apply(h,hs([],ps(e.props.ables.filter((function(e){return e.name===f}))),!1))}if(!h.length||h.every((function(e){return e.dragRelation})))return!1;var m,g=i.inputEvent;l&&g&&(m=document.elementFromPoint(i.clientX,i.clientY)||g.target);var v=!1,y=function(){var e;v=!0,null===(e=i.stop)||void 0===e||e.call(i)},b=s&&(!e.targetGesto||!e.controlGesto||!e.targetGesto.isFlag()||!e.controlGesto.isFlag());b&&e.updateRect(o,!0,!1);var w=i.datas,x=p?"controlGesto":"targetGesto",_=e[x],S=function(t,n,r){if(!(n in t)||_!==e[x])return!1;var o=t.name,a=w[o]||(w[o]={});if(s&&(a.isEventStart=!r||!t[r]||t[r](e,i)),!a.isEventStart)return!1;var l=t[n](e,ds(ds({},i),{stop:y,datas:a,originalDatas:w,inputTarget:m}));return e._emitter.off(),s&&!1===l&&(a.isEventStart=!1),l};b&&h.forEach((function(t){t.unset&&t.unset(e)})),S(kd,"drag".concat(r).concat(o));var C=0,E=0;n.forEach((function(t){if(v)return!1;var n="".concat(t).concat(r).concat(o),a="".concat(t).concat(r,"Condition");""!==o||d||Xu(e.state,i);var l=h.filter((function(e){return e[n]}));l=l.filter((function(e,t){return e.name&&l.indexOf(e)===t}));var c=l.filter((function(e){return S(e,n,a)})).length;v&&++C,c&&++E,!v&&s&&l.length&&!c&&(C+=l.filter((function(e){var t=e.name;return!!w[t].isEventStart&&"strong"!==e.dragRelation})).length?1:0)})),c&&!E||S(zd,"drag".concat(r).concat(o));var k=_!==e[x]||C===n.length;if((l||v||k)&&(e.state.gestos={},e.moveables&&e.moveables.forEach((function(e){e.state.gestos={}})),h.forEach((function(t){t.unset&&t.unset(e)}))),s&&!k&&!d&&E&&e.props.preventDefault&&(null==i||i.preventDefault()),e.isUnmounted||k)return!1;(!s&&E&&!a||l)&&(e.props.flushSync||ru)((function(){e.updateRect(l?o:"",!0,!1),e.forceUpdate()}));return s||l||c||!E||a||Pd(e,t,n,r,o+"After",i),!0}function Dd(e,t){return function(n,r){var o;void 0===r&&(r=n.inputEvent.target);var i=r,a=e.areaElement,s=e._dragTarget;return!(!s||!t&&(null===(o=e.controlGesto)||void 0===o?void 0:o.isFlag()))&&(i===s||s.contains(i)||i===a||!e.isMoveableElement(i)&&!e.controlBox.contains(i)||Ti(i,"moveable-area")||Ti(i,"moveable-padding")||Ti(i,"moveable-edgeDraggable"))}}function Ad(e,t,n){var r=e.controlBox,o=[],i=e.props,a=i.dragArea,s=e.state.target,l=i.dragTarget;o.push(r),a&&!l||o.push(t),!a&&l&&s&&t!==s&&i.dragTargetSelf&&o.push(s);var c=Dd(e);return Id(e,o,"targetAbles",n,{dragStart:c,pinchStart:c})}function Td(e,t){var n=e.controlBox,r=[];r.push(n);var o=Dd(e,!0),i=function(e,t){return void 0===t&&(t=e.inputEvent.target),t===n||!o(e,t)};return Id(e,r,"controlAbles",t,{dragStart:i,pinchStart:i})}function Id(e,t,n,r,o){void 0===o&&(o={});var i="targetAbles"===n,a=e.props,s=a.pinchOutside,l=a.pinchThreshold,c=a.preventClickEventOnDrag,u=a.preventClickDefault,d=a.checkInput,p=a.dragFocusedInput,h=a.preventDefault,f=void 0===h||h,m=a.preventRightClick,g=void 0===m||m,v=a.preventWheelClick,y={preventDefault:f,preventRightClick:g,preventWheelClick:void 0===v||v,container:nd(a.dragContainer,!0)||Li(e.getControlBoxElement()),pinchThreshold:l,pinchOutside:s,preventClickEventOnDrag:!!i&&c,preventClickEventOnDragStart:!!i&&u,preventClickEventByCondition:i?null:function(t){return e.controlBox.contains(t.target)},checkInput:!!i&&d,dragFocusedInput:p},b=new ns(t,y),w="Control"===r;return["drag","pinch"].forEach((function(t){["Start","","End"].forEach((function(i){b.on("".concat(t).concat(i),(function(a){var s,l=a.eventType,c="drag"===t&&a.isPinch;if(!o[l]||o[l](a)){if(!c){var u="drag"===t?[t]:["drag",t],d=hs([],ps(e[n]),!1);Pd(e,d,u,r,i,a)?(e.props.stopPropagation||"Start"===i&&w)&&(null===(s=null==a?void 0:a.inputEvent)||void 0===s||s.stopPropagation()):a.stop()}}else a.stop()}))}))})),b}var Md=function(){function e(e,t,n){var r=this;this.target=e,this.moveable=t,this.eventName=n,this.ables=[],this._onEvent=function(e){var t=r.eventName,n=r.moveable;n.state.disableNativeEvent||r.ables.forEach((function(r){r[t](n,{inputEvent:e})}))},e.addEventListener(n.toLowerCase(),this._onEvent)}return e.prototype.setAbles=function(e){this.ables=e},e.prototype.destroy=function(){this.target.removeEventListener(this.eventName.toLowerCase(),this._onEvent),this.target=null,this.moveable=null},e}();function Rd(e,t,n,r){var o;void 0===n&&(n=t);var i=vl(e,t),a=i.matrixes,s=i.is3d,l=i.targetMatrix,c=i.transformOrigin,u=i.targetOrigin,d=i.offsetContainer,p=i.hasFixed,h=i.zoom,f=function(e,t){if(wl){var n=vi(wl,(function(n){return n[0][0]==e&&n[0][1]==t}));if(n)return n[1]}var r=vl(e,t,!0);return wl&&wl.push([[e,t],r]),r}(d,n),m=f.matrixes,g=f.is3d,v=f.offsetContainer,y=f.zoom,b=r||g||s,w=b?4:3,x="svg"!==e.tagName.toLowerCase()&&"ownerSVGElement"in e,_=l,S=da(w),C=da(w),E=da(w),k=da(w),z=a.length,P=m.map((function(e){return ds(ds({},e),{matrix:e.matrix?hs([],ps(e.matrix),!1):void 0})})).reverse();a.reverse(),!s&&b&&(_=Wi(_,3,4),pu(a)),!g&&b&&pu(P),P.forEach((function(e){C=Xi(C,e.matrix,w)}));var D=n||ji(e),A=(null===(o=P[0])||void 0===o?void 0:o.target)||cu(D,D,!0).offsetParent,T=P.slice(1).reduce((function(e,t){return Xi(e,t.matrix,w)}),da(w));a.forEach((function(e,t){if(z-2===t&&(E=S.slice()),z-1===t&&(k=S.slice()),!e.matrix){var n=function(e,t,n,r,o){var i,a=e.target,s=e.origin,l=t.matrix,c=ku(a),u=c.offsetWidth,d=c.offsetHeight,p=n.getBoundingClientRect(),h=[0,0];n===ji(n)&&(h=du(a,!0));for(var f=a.getBoundingClientRect(),m=f.left-p.left+n.scrollLeft-(n.clientLeft||0)+h[0],g=f.top-p.top+n.scrollTop-(n.clientTop||0)+h[1],v=f.width,y=f.height,b=Yi(r,o,l),w=wu(b,u,d,r),x=w.left,_=w.top,S=w.width,C=w.height,E=vu(b,s,r),k=Ji(E,[x,_]),z=[m+k[0]*v/S,g+k[1]*y/C],P=[0,0],D=0;++D<10;){var A=Zi(o,r);i=ps(Ji(vu(A,z,r),vu(A,E,r)),2),P[0]=i[0],P[1]=i[1];var T=wu(Yi(r,o,ha(P,r),l),u,d,r),I=T.left-m,M=T.top-g;if(pd(I)<2&&pd(M)<2)break;z[0]-=I,z[1]-=M}return P.map((function(e){return Math.round(e)}))}(e,a[t+1],A,w,Xi(T,S,w));e.matrix=ha(n,w)}S=Xi(S,e.matrix,w)}));var I=!x&&s;_||(_=da(I?4:3));var M=fu(x&&16===_.length?Wi(_,4,3):_,I),R=C;return C=Ui(C,w,w),{hasZoom:1!==h||1!==y,hasFixed:p,matrixes:a,rootMatrix:C,originalRootMatrix:R,beforeMatrix:E,offsetMatrix:k,allMatrix:S,targetMatrix:_,targetTransform:M,inlineTransform:e.style.transform,transformOrigin:c,targetOrigin:u,is3d:b,offsetContainer:d,offsetRootContainer:v}}function Fd(e,t,n,r){void 0===n&&(n=t);var o=0,i=0,a=0,s={},l=ku(e);if(e&&(o=l.offsetWidth,i=l.offsetHeight),e){var c=Rd(e,t,n,r),u=Us(c.allMatrix,c.transformOrigin,o,i);s=ds(ds({},c),u);var d=Us(c.allMatrix,[50,50],100,100);a=zu([d.pos1,d.pos2],d.direction)}var p=r?4:3;return ds(ds(ds({hasZoom:!1,width:o,height:i,rotation:a},l),{originalRootMatrix:da(p),rootMatrix:da(p),beforeMatrix:da(p),offsetMatrix:da(p),allMatrix:da(p),targetMatrix:da(p),targetTransform:"",inlineTransform:"",transformOrigin:[0,0],targetOrigin:[0,0],is3d:!!r,left:0,top:0,right:0,bottom:0,origin:[0,0],pos1:[0,0],pos2:[0,0],pos3:[0,0],pos4:[0,0],direction:1,hasFixed:!1,offsetContainer:null,offsetRootContainer:null,matrixes:[]}),s)}function Nd(e,t,n,r,o,i){void 0===i&&(i=[]);var a=1,s=[0,0],l={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},c={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},u={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},d={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},p=[0,0],h={},f=Fd(t,n,o,!0);if(t){var m=_l(t);i.forEach((function(e){h[e]=m(e)}));var g=f.is3d?4:3,v=Us(f.offsetMatrix,Qi(f.transformOrigin,qi(f.targetMatrix,g)),f.width,f.height);a=v.direction,s=Qi(v.origin,[v.left-f.left,v.top-f.top]),d=Au(f.offsetRootContainer);var y=cu(r,r,!0).offsetParent||f.offsetRootContainer;if(f.hasZoom){var b=Us(Xi(f.originalRootMatrix,f.allMatrix),f.transformOrigin,f.width,f.height),w=Us(f.originalRootMatrix,su(_l(y)("transformOrigin")).map((function(e){return parseFloat(e)})),y.offsetWidth,y.offsetHeight);if(l=Du(b,d),u=Du(w,d,y,!0),e){var x=b.left,_=b.top;c=Du({left:x,top:_,bottom:_,right:_},d)}}else{l=Au(t),u=function(e){var t=null==bl?void 0:bl.get(e);if(t)return t;var n=Au(e,!0);return bl&&bl.set(e,n),n}(y),e&&(c=Au(e));var S=u.left,C=u.top,E=u.clientLeft,k=u.clientTop,z=[l.left-S,l.top-C];p=Ji(Yu(f.rootMatrix,z,4),[E+f.left,k+f.top])}}return ds({targetClientRect:l,containerClientRect:u,moveableClientRect:c,rootContainerClientRect:d,beforeDirection:a,beforeOrigin:s,originalBeforeOrigin:s,target:t,style:h,offsetDelta:p},f)}function Od(e){var t=e.pos1,n=e.pos2,r=e.pos3,o=e.pos4;if(!(t&&n&&r&&o))return null;var i=ja([t,n,r,o]),a=[i.minX,i.minY],s=Ji(e.origin,a);return t=Ji(t,a),n=Ji(n,a),r=Ji(r,a),o=Ji(o,a),ds(ds({},e),{left:e.left,top:e.top,posDelta:a,pos1:t,pos2:n,pos3:r,pos4:o,origin:s,beforeOrigin:s,isPersisted:!0})}var jd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=ds({container:null,gestos:{},renderLines:[[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]]],renderPoses:[[0,0],[0,0],[0,0],[0,0]],disableNativeEvent:!1,posDelta:[0,0]},Nd(null)),t.renderState={},t.enabledAbles=[],t.targetAbles=[],t.controlAbles=[],t.rotation=0,t.scale=[1,1],t.isMoveableMounted=!1,t.isUnmounted=!1,t.events={mouseEnter:null,mouseLeave:null},t._emitter=new Ma,t._prevOriginalDragTarget=null,t._originalDragTarget=null,t._prevDragTarget=null,t._dragTarget=null,t._prevPropTarget=null,t._propTarget=null,t._prevDragArea=!1,t._isPropTargetChanged=!1,t._hasFirstTarget=!1,t._reiszeObserver=null,t._observerId=0,t._mutationObserver=null,t._rootContainer=null,t._viewContainer=null,t._viewClassNames=[],t._store={},t.checkUpdateRect=function(){if(!t.isDragging()){var e=t.props.parentMoveable;e?e.checkUpdateRect():(bi(t._observerId),t._observerId=yi((function(){t.isDragging()||t.updateRect()})))}},t._onPreventClick=function(e){e.stopPropagation(),e.preventDefault()},t}return us(t,e),t.prototype.render=function(){var e=this.props,t=this.getState(),n=e.parentPosition,r=e.className,o=e.target,i=e.zoom,a=e.cspNonce,s=e.translateZ,c=e.cssStyled,u=e.groupable,d=e.linePadding,p=e.controlPadding;this._checkUpdateRootContainer(),this.checkUpdate(),this.updateRenderPoses();var h=ps(n||[0,0],2),f=h[0],m=h[1],g=t.left,v=t.top,y=t.target,b=t.direction,w=t.hasFixed,x=t.offsetDelta,_=e.targets,S=this.isDragging(),C={};this.getEnabledAbles().forEach((function(e){C["data-able-".concat(e.name.toLowerCase())]=!0}));var E=this._getAbleClassName(),k=_&&_.length&&(y||u)||o||!this._hasFirstTarget&&this.state.isPersisted,z=this.controlBox||this.props.firstRenderState||this.props.persistData,P=[g-f,v-m];!u&&e.useAccuratePosition&&(P[0]+=x[0],P[1]+=x[1]);var D={position:w?"fixed":"absolute",display:k?"block":"none",visibility:z?"visible":"hidden",transform:"translate3d(".concat(P[0],"px, ").concat(P[1],"px, ").concat(s,")"),"--zoom":i,"--zoompx":"".concat(i,"px")};return d&&(D["--moveable-line-padding"]=d),p&&(D["--moveable-control-padding"]=p),l.createElement(c,ds({cspNonce:a,ref:qo(this,"controlBox"),className:"".concat(nu("control-box",-1===b?"reverse":"",S?"dragging":"")," ").concat(E," ").concat(r)},C,{onClick:this._onPreventClick,style:D}),this.renderAbles(),this._renderLines())},t.prototype.componentDidMount=function(){this.isMoveableMounted=!0,this.isUnmounted=!1;var e=this.props,t=e.parentMoveable,n=e.container;this._checkUpdateRootContainer(),this._checkUpdateViewContainer(),this._updateTargets(),this._updateNativeEvents(),this._updateEvents(),this.updateCheckInput(),this._updateObserver(this.props),n||t||this.state.isPersisted||(this.updateRect("",!1,!1),this.forceUpdate())},t.prototype.componentDidUpdate=function(e){this._checkUpdateRootContainer(),this._checkUpdateViewContainer(),this._updateNativeEvents(),this._updateTargets(),this._updateEvents(),this.updateCheckInput(),this._updateObserver(e)},t.prototype.componentWillUnmount=function(){var e,t;this.isMoveableMounted=!1,this.isUnmounted=!0,this._emitter.off(),null===(e=this._reiszeObserver)||void 0===e||e.disconnect(),null===(t=this._mutationObserver)||void 0===t||t.disconnect(),this._viewContainer&&this._changeAbleViewClassNames([]),Nu(this,!1),Nu(this,!0);var n=this.events;for(var r in n){var o=n[r];o&&o.destroy()}},t.prototype.getTargets=function(){var e=this.props.target;return e?[e]:[]},t.prototype.getAble=function(e){return vi(this.props.ables||[],(function(t){return t.name===e}))},t.prototype.getContainer=function(){var e=this.props,t=e.parentMoveable,n=e.wrapperMoveable;return e.container||n&&n.getContainer()||t&&t.getContainer()||this.controlBox.parentElement},t.prototype.getControlBoxElement=function(){return this.controlBox},t.prototype.getDragElement=function(){return this._dragTarget},t.prototype.isMoveableElement=function(e){var t;return e&&((null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"class"))||"").indexOf(As)>-1},t.prototype.dragStart=function(e,t){void 0===t&&(t=e.target);var n=this.targetGesto,r=this.controlGesto;return n&&Dd(this)({inputEvent:e},t)?n.isFlag()||n.triggerDragStart(e):r&&this.isMoveableElement(t)&&(r.isFlag()||r.triggerDragStart(e)),this},t.prototype.hitTest=function(e){var t,n=this.state,r=n.target,o=n.pos1,i=n.pos2,a=n.pos3,s=n.pos4,l=n.targetClientRect;if(!r)return 0;if(Ki(e)){var c=e.getBoundingClientRect();t={left:c.left,top:c.top,width:c.width,height:c.height}}else t=ds({width:0,height:0},e);var u=t.left,d=t.top,p=t.width,h=t.height,f=Oa([o,i,s,a],l),m=Ua(f,[[u,d],[u+p,d],[u+p,d+h],[u,d+h]]),g=Na(f);return m&&g?Math.min(100,m/g*100):0},t.prototype.isInside=function(e,t){var n=this.state,r=n.target,o=n.pos1,i=n.pos2,a=n.pos3,s=n.pos4,l=n.targetClientRect;return!!r&&La([e,t],Oa([o,i,s,a],l))},t.prototype.updateRect=function(e,t,n){void 0===n&&(n=!0);var r=this.props,o=!r.parentPosition&&!r.wrapperMoveable;o&&xl(!0);var i=r.parentMoveable,a=this.state.target||r.target,s=this.getContainer(),l=i?i._rootContainer:this._rootContainer,c=Nd(this.controlBox,a,s,s,l||s,this._getRequestStyles());if(!a&&this._hasFirstTarget&&r.persistData){var u=Od(r.persistData);for(var d in u)c[d]=u[d]}o&&xl(),this.updateState(c,!i&&n)},t.prototype.isDragging=function(e){var t,n,r=this.targetGesto,o=this.controlGesto;return(null==r?void 0:r.isFlag())?!e||!!(null===(t=r.getEventData()[e])||void 0===t?void 0:t.isEventStart):!!(null==o?void 0:o.isFlag())&&(!e||!!(null===(n=o.getEventData()[e])||void 0===n?void 0:n.isEventStart))},t.prototype.updateTarget=function(e){this.updateRect(e,!0)},t.prototype.getRect=function(){var e=this.state,t=Ru(this.state),n=ps(t,4),r=n[0],o=n[1],i=n[2],a=n[3],s=bu(t),l=e.width,c=e.height,u=s.width,d=s.height,p=s.left,h=s.top,f=[e.left,e.top],m=Qi(f,e.origin);return{width:u,height:d,left:p,top:h,pos1:r,pos2:o,pos3:i,pos4:a,offsetWidth:l,offsetHeight:c,beforeOrigin:Qi(f,e.beforeOrigin),origin:m,transformOrigin:e.transformOrigin,rotation:this.getRotation()}},t.prototype.getManager=function(){return this},t.prototype.stopDrag=function(e){var t;e&&"target"!==e||(!1===(null==(t=this.targetGesto)?void 0:t.isIdle())&&Fu(this,!1),null==t||t.stop());e&&"control"!==e||(!1===(null==(t=this.controlGesto)?void 0:t.isIdle())&&Fu(this,!0),null==t||t.stop())},t.prototype.getRotation=function(){var e=this.state;return function(e,t,n){var r=ki(e,t)/Math.PI*180;return(r=n>=0?r:180-r)>=0?r:360+r}(e.pos1,e.pos2,e.direction)},t.prototype.request=function(e,t,n){void 0===t&&(t={});var r=this,o=r.props,i=o.parentMoveable||o.wrapperMoveable||r,a=i.props.ables,s=o.groupable,l=vi(a,(function(t){return t.name===e}));if(this.isDragging()||!l||!l.request)return{request:function(){return this},requestEnd:function(){return this}};var c=l.request(r),u=n||t.isInstant,d=c.isControl?"controlAbles":"targetAbles",p="".concat(s?"Group":"").concat(c.isControl?"Control":""),h=hs([],ps(i[d]),!1),f={request:function(t){return Pd(r,h,["drag"],p,"",ds(ds({},c.request(t)),{requestAble:e,isRequest:!0}),u),f},requestEnd:function(){return Pd(r,h,["drag"],p,"End",ds(ds({},c.requestEnd()),{requestAble:e,isRequest:!0}),u),f}};return Pd(r,h,["drag"],p,"Start",ds(ds({},c.requestStart(t)),{requestAble:e,isRequest:!0}),u),u?f.request(t).requestEnd():f},t.prototype.getMoveables=function(){return[this]},t.prototype.destroy=function(){this.componentWillUnmount()},t.prototype.updateRenderPoses=function(){var e=this.getState(),t=this.props,n=t.padding,r=e.originalBeforeOrigin,o=e.transformOrigin,i=e.allMatrix,a=e.is3d,s=e.pos1,l=e.pos2,c=e.pos3,u=e.pos4,d=e.left,p=e.top,h=e.isPersisted,f=t.zoom||1;if(!n&&f<=1)return e.renderPoses=[s,l,c,u],void(e.renderLines=[[s,l],[l,u],[u,c],[c,s]]);var m=fd(n||{}),g=m.left,v=m.top,y=m.bottom,b=m.right,w=a?4:3,x=Yi(w,ha((h?o:this.controlBox&&t.groupable?r:Qi(r,[d,p])).map((function(e){return-e})),w),i,ha(o,w)),_=Qu(x,s,[-g,-v],w),S=Qu(x,l,[b,-v],w),C=Qu(x,c,[-g,y],w),E=Qu(x,u,[b,y],w);if(e.renderPoses=[_,S,C,E],e.renderLines=[[_,S],[S,E],[E,C],[C,_]],f){var k=f/2;e.renderLines=[[Qu(x,s,[-g-k,-v],w),Qu(x,l,[b+k,-v],w)],[Qu(x,l,[b,-v-k],w),Qu(x,u,[b,y+k],w)],[Qu(x,u,[b+k,y],w),Qu(x,c,[-g-k,y],w)],[Qu(x,c,[-g,y+k],w),Qu(x,s,[-g,-v-k],w)]]}},t.prototype.checkUpdate=function(){this._isPropTargetChanged=!1;var e=this.props,t=e.target,n=e.container,r=e.parentMoveable,o=this.state,i=o.target,a=o.container;if(i||t){this.updateAbles();var s=!Uu(i,t);if(s||!Uu(a,n)){var l=n||this.controlBox;l&&this.unsetAbles(),this.updateState({target:t,container:n}),!r&&l&&this.updateRect("End",!1,!1),this._isPropTargetChanged=s}}},t.prototype.waitToChangeTarget=function(){return new Promise((function(){}))},t.prototype.triggerEvent=function(e,t){var n=this.props;if(this._emitter.trigger(e,t),n.parentMoveable&&t.isRequest&&!t.isRequestChild)return n.parentMoveable.triggerEvent(e,t,!0);var r=n[e];return r&&r(t)},t.prototype.useCSS=function(e,t){var n=this.props.customStyledMap,r=e+t;return n[r]||(n[r]=ls(e,t)),n[r]},t.prototype.getState=function(){var e,t=this.props;(t.target||(null===(e=t.targets)||void 0===e?void 0:e.length))&&(this._hasFirstTarget=!0);var n=this.controlBox,r=t.persistData,o=t.firstRenderState;if(o&&!n)return o;if(!this._hasFirstTarget&&r){var i=Od(r);if(i)return this.updateState(i,!1),this.state}return this.state.isPersisted=!1,this.state},t.prototype.updateSelectors=function(){},t.prototype.unsetAbles=function(){var e=this;this.targetAbles.forEach((function(t){t.unset&&t.unset(e)}))},t.prototype.updateAbles=function(e,t){void 0===e&&(e=this.props.ables),void 0===t&&(t="");var n=this.props.triggerAblesSimultaneously,r=this.getEnabledAbles(e),o="drag".concat(t,"Start"),i="pinch".concat(t,"Start"),a="drag".concat(t,"ControlStart"),s=$u(r,[o,i],n),l=$u(r,[a],n);this.enabledAbles=r,this.targetAbles=s,this.controlAbles=l},t.prototype.updateState=function(e,t){if(t){if(this.isUnmounted)return;this.setState(e)}else{var n=this.state;for(var r in e)n[r]=e[r]}},t.prototype.getEnabledAbles=function(e){void 0===e&&(e=this.props.ables);var t=this.props;return e.filter((function(e){return e&&(e.always&&!1!==t[e.name]||t[e.name])}))},t.prototype.renderAbles=function(){var e,t,n,r,o=this,i=this.props.triggerAblesSimultaneously,a={createElement:l.createElement};return this.renderState={},(e=Gu($u(this.getEnabledAbles(),["render"],i).map((function(e){return(0,e.render)(o,a)||[]}))).filter((function(e){return e})),t=function(e){return e.key},n=[],r={},e.forEach((function(o,i){var a=t(o,i,e),s=r[a];s||(s=[],r[a]=s,n.push(s)),s.push(o)})),n).map((function(e){return e[0]}))},t.prototype.updateCheckInput=function(){this.targetGesto&&(this.targetGesto.options.checkInput=this.props.checkInput)},t.prototype._getRequestStyles=function(){var e=this.getEnabledAbles().reduce((function(e,t){var n,r,o=null!==(r=null===(n=t.requestStyle)||void 0===n?void 0:n.call(t))&&void 0!==r?r:[];return hs(hs([],ps(e),!1),ps(o),!1)}),hs([],ps(this.props.requestStyles||[]),!1));return e},t.prototype._updateObserver=function(e){this._updateResizeObserver(e),this._updateMutationObserver(e)},t.prototype._updateEvents=function(){var e=this.targetAbles.length,t=this.controlAbles.length,n=this._dragTarget;(!e&&this.targetGesto||this._isTargetChanged(!0))&&(Nu(this,!1),this.updateState({gestos:{}})),t||Nu(this,!0),n&&e&&!this.targetGesto&&(this.targetGesto=Ad(this,n,"")),!this.controlGesto&&t&&(this.controlGesto=Td(this,"Control"))},t.prototype._updateTargets=function(){var e=this.props;this._prevPropTarget=this._propTarget,this._prevDragTarget=this._dragTarget,this._prevOriginalDragTarget=this._originalDragTarget,this._prevDragArea=e.dragArea,this._propTarget=e.target,this._originalDragTarget=e.dragTarget||e.target,this._dragTarget=nd(this._originalDragTarget,!0)},t.prototype._renderLines=function(){var e=this.props,t=e.zoom,n=e.hideDefaultLines,r=e.hideChildMoveableDefaultLines,o=e.parentMoveable;if(n||o&&r)return[];var i=this.getState(),a={createElement:l.createElement};return i.renderLines.map((function(e,n){return Dl(a,"",e[0],e[1],t,"render-line-".concat(n))}))},t.prototype._isTargetChanged=function(e){var t=this.props,n=t.dragTarget||t.target,r=this._prevOriginalDragTarget,o=this._prevDragArea,i=t.dragArea;return!i&&r!==n||(e||i)&&o!==i||this._prevPropTarget!=this._propTarget},t.prototype._updateNativeEvents=function(){var e=this,t=this.props.dragArea?this.areaElement:this.state.target,n=this.events,r=wi(n);if(this._isTargetChanged())for(var o in n){var i=n[o];i&&i.destroy(),n[o]=null}if(t){var a=this.enabledAbles;r.forEach((function(r){var o=$u(a,[r]),i=o.length>0,s=n[r];i?(s||(s=new Md(t,e,r),n[r]=s),s.setAbles(o)):s&&(s.destroy(),n[r]=null)}))}},t.prototype._checkUpdateRootContainer=function(){var e=this.props.rootContainer;!this._rootContainer&&e&&(this._rootContainer=nd(e,!0))},t.prototype._checkUpdateViewContainer=function(){var e=this.props.viewContainer;!this._viewContainer&&e&&(this._viewContainer=nd(e,!0)),this._viewContainer&&this._changeAbleViewClassNames(hs(hs([],ps(this._getAbleViewClassNames()),!1),[this.isDragging()?xd:""],!1))},t.prototype._changeAbleViewClassNames=function(e){var t=this._viewContainer,n=qu(e.filter(Boolean),(function(e){return e})).map((function(e){return ps(e,1)[0]})),r=this._viewClassNames,o=Ca(r,n),i=o.removed,a=o.added;i.forEach((function(e){Mi(t,r[e])})),a.forEach((function(e){Ii(t,n[e])})),this._viewClassNames=n},t.prototype._getAbleViewClassNames=function(){var e=this;return(this.getEnabledAbles().map((function(t){var n;return(null===(n=t.viewClassName)||void 0===n?void 0:n.call(t,e))||""})).join(" ")+" ".concat(this._getAbleClassName("-view"))).split(/\s+/g)},t.prototype._getAbleClassName=function(e){var t=this;void 0===e&&(e="");var n=this.getEnabledAbles(),r=this.targetGesto,o=this.controlGesto,i=(null==r?void 0:r.isFlag())?r.getEventData():{},a=(null==o?void 0:o.isFlag())?o.getEventData():{};return n.map((function(n){var r,o,s,l=n.name,c=(null===(r=n.className)||void 0===r?void 0:r.call(n,t))||"";return((null===(o=i[l])||void 0===o?void 0:o.isEventStart)||(null===(s=a[l])||void 0===s?void 0:s.isEventStart))&&(c+=" ".concat(nu("".concat(l).concat(e,"-dragging")))),c.trim()})).filter(Boolean).join(" ")},t.prototype._updateResizeObserver=function(e){var t,n=this.props,r=n.target,o=Li(this.getControlBoxElement());if(o.ResizeObserver&&r&&n.useResizeObserver){if(e.target!==r||!this._reiszeObserver){var i=new o.ResizeObserver(this.checkUpdateRect);i.observe(r,{box:"border-box"}),this._reiszeObserver=i}}else null===(t=this._reiszeObserver)||void 0===t||t.disconnect()},t.prototype._updateMutationObserver=function(e){var t,n=this,r=this.props,o=r.target,i=Li(this.getControlBoxElement());if(i.MutationObserver&&o&&r.useMutationObserver){if(e.target!==o||!this._mutationObserver){var a=new i.MutationObserver((function(e){var t,r;try{for(var o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),i=o.next();!i.done;i=o.next()){var a=i.value;"attributes"===a.type&&"style"===a.attributeName&&n.checkUpdateRect()}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}));a.observe(o,{attributes:!0}),this._mutationObserver=a}}else null===(t=this._mutationObserver)||void 0===t||t.disconnect()},t.defaultProps={dragTargetSelf:!1,target:null,dragTarget:null,container:null,rootContainer:null,origin:!0,parentMoveable:null,wrapperMoveable:null,isWrapperMounted:!1,parentPosition:null,warpSelf:!1,svgOrigin:"",dragContainer:null,useResizeObserver:!1,useMutationObserver:!1,preventDefault:!0,preventRightClick:!0,preventWheelClick:!0,linePadding:0,controlPadding:0,ables:[],pinchThreshold:20,dragArea:!1,passDragArea:!1,transformOrigin:"",className:"",zoom:1,triggerAblesSimultaneously:!1,padding:{},pinchOutside:!0,checkInput:!1,dragFocusedInput:!1,groupable:!1,hideDefaultLines:!1,cspNonce:"",translateZ:0,cssStyled:null,customStyledMap:{},props:{},stopPropagation:!1,preventClickDefault:!1,preventClickEventOnDrag:!0,flushSync:ru,firstRenderState:null,persistData:null,viewContainer:null,requestStyles:[],useAccuratePosition:!1},t}(l.PureComponent),Ld={name:"groupable",props:["defaultGroupRotate","useDefaultGroupRotate","defaultGroupOrigin","groupable","groupableProps","targetGroups","hideChildMoveableDefaultLines"],events:[],render:function(e,t){var n,r=e.props,o=r.targets||[],i=e.getState(),a=i.left,s=i.top,l=i.isPersisted,c=r.zoom||1,u=e.renderGroupRects,d=(null===(n=r.persistData)||void 0===n?void 0:n.children)||[];l?o=d.map((function(){return null})):d=[];var p=ud(e,"parentPosition",[a,s],(function(e){return e.join(",")})),h=ud(e,"requestStyles",e.getRequestChildStyles(),(function(e){return e.join(",")}));return e.moveables=e.moveables.slice(0,o.length),hs(hs([],ps(o.map((function(n,o){return t.createElement(jd,{key:"moveable"+o,ref:Go(e,"moveables",o),target:n,origin:!1,requestStyles:h,cssStyled:r.cssStyled,customStyledMap:r.customStyledMap,useResizeObserver:r.useResizeObserver,useMutationObserver:r.useMutationObserver,hideChildMoveableDefaultLines:r.hideChildMoveableDefaultLines,parentMoveable:e,parentPosition:[a,s],persistData:d[o],zoom:c})}))),!1),ps(Gu(u.map((function(e,n){var r=[e.pos1,e.pos2,e.pos3,e.pos4];return[[0,1],[1,3],[3,2],[2,0]].map((function(e,o){var i=ps(e,2),a=i[0],s=i[1];return Dl(t,"",Ji(r[a],p),Ji(r[s],p),c,"group-rect-".concat(n,"-").concat(o))}))})))),!1)}};fs("clickable",{props:["clickable"],events:["click","clickGroup"],always:!0,dragRelation:"weak",dragStart:function(){},dragControlStart:function(){},dragGroupStart:function(e,t){t.datas.inputTarget=t.inputEvent&&t.inputEvent.target},dragEnd:function(e,t){var n=e.props.target,r=t.inputEvent,o=t.inputTarget,i=!e.isMoveableElement(o)&&e.controlBox.contains(o);if(r&&o&&!t.isDrag&&!e.isMoveableElement(o)&&!i){var a=n.contains(o);Vu(e,"onClick",Lu(e,t,{isDouble:t.isDouble,inputTarget:o,isTarget:n===o,moveableTarget:e.props.target,containsTarget:a}))}},dragGroupEnd:function(e,t){var n=t.inputEvent,r=t.inputTarget;if(n&&r&&!t.isDrag&&!e.isMoveableElement(r)&&t.datas.inputTarget!==r){var o=e.props.targets,i=o.indexOf(r),a=i>-1,s=!1;-1===i&&(s=(i=gi(o,(function(e){return e.contains(r)})))>-1),Vu(e,"onClickGroup",Lu(e,t,{isDouble:t.isDouble,targets:o,inputTarget:r,targetIndex:i,isTarget:a,containsTarget:s,moveableTarget:o[i]}))}},dragControlEnd:function(e,t){this.dragEnd(e,t)},dragGroupControlEnd:function(e,t){this.dragEnd(e,t)}});function Bd(e){var t=e.originalDatas.draggable;return t||(e.originalDatas.draggable={},t=e.originalDatas.draggable),ds(ds({},e),{datas:t})}fs("edgeDraggable",{css:[".edge.edgeDraggable.line {\ncursor: move;\n}"],render:function(e,t){var n=e.props,r=n.edgeDraggable;return r?Al(t,"edgeDraggable",r,e.getState().renderPoses,n.zoom):[]},dragCondition:function(e,t){var n,r=e.props,o=null===(n=t.inputEvent)||void 0===n?void 0:n.target;return!(!r.edgeDraggable||!o)&&(!r.draggable&&Ti(o,nu("direction"))&&Ti(o,nu("edge"))&&Ti(o,nu("edgeDraggable")))},dragStart:function(e,t){return _c.dragStart(e,Bd(t))},drag:function(e,t){return _c.drag(e,Bd(t))},dragEnd:function(e,t){return _c.dragEnd(e,Bd(t))},dragGroupCondition:function(e,t){var n,r=e.props,o=null===(n=t.inputEvent)||void 0===n?void 0:n.target;return!(!r.edgeDraggable||!o)&&(!r.draggable&&Ti(o,nu("direction"))&&Ti(o,nu("line")))},dragGroupStart:function(e,t){return _c.dragGroupStart(e,Bd(t))},dragGroup:function(e,t){return _c.dragGroup(e,Bd(t))},dragGroupEnd:function(e,t){return _c.dragGroupEnd(e,Bd(t))},unset:function(e){return _c.unset(e)}});var Kd={name:"individualGroupable",props:["individualGroupable","individualGroupableProps"],events:[]};function Vd(e,t){var n=ps(e,3),r=n[0],o=n[1],i=n[2];return(r*t[0]+o*t[1]+i)/Math.sqrt(r*r+o*o)}function Hd(e,t){var n=ps(e,2),r=n[0],o=n[1];return-r*t[0]-o*t[1]}function $d(e,t){return Math.max.apply(Math,hs([],ps(e.map((function(e){var n=ps(e,4),r=n[0],o=n[1],i=n[2],a=n[3];return Math.max(r[t],o[t],i[t],a[t])}))),!1))}function Ud(e,t){return Math.min.apply(Math,hs([],ps(e.map((function(e){var n=ps(e,4),r=n[0],o=n[1],i=n[2],a=n[3];return Math.min(r[t],o[t],i[t],a[t])}))),!1))}function Zd(e,t){var n=t.map((function(t){if(oi(t)){var n=Zd(e,t),r=n.length;return r>1?n:1===r?n[0]:null}var o=vi(e,(function(e){return e.manager.props.target===t}));return o?(o.finded=!0,o.manager):null})).filter(Boolean);return 1===n.length&&oi(n[0])?n[0]:n}var qd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.differ=new Aa,t.moveables=[],t.transformOrigin="50% 50%",t.renderGroupRects=[],t._targetGroups=[],t._hasFirstTargets=!1,t}return us(t,e),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this)},t.prototype.checkUpdate=function(){this._isPropTargetChanged=!1,this.updateAbles()},t.prototype.getTargets=function(){return this.props.targets},t.prototype.updateRect=function(e,t,n){var r;void 0===n&&(n=!0);var o=this.state;if(this.controlBox&&!o.isPersisted){xl(!0),this.moveables.forEach((function(t){t.updateRect(e,!1,!1)}));var i=this.props,a=this.moveables,s=o.target||i.target,l=a.map((function(e){return{finded:!1,manager:e}})),c=this.props.targetGroups||[],u=Zd(l,c),d=i.useDefaultGroupRotate;u.push.apply(u,hs([],ps(l.filter((function(e){return!e.finded})).map((function(e){return e.manager}))),!1));var p=[],h=!t||""!==e&&i.updateGroup,f=i.defaultGroupRotate||0;if(!this._hasFirstTargets){var m=null===(r=i.persistData)||void 0===r?void 0:r.rotation;null!=m&&(f=m)}var g=function e(t,n,r){var o=t.map((function(t){if(oi(t)){var r=e(t,n),o=[r.pos1,r.pos2,r.pos3,r.pos4];return p.push(r),{poses:o,rotation:r.rotation}}return{poses:Ru(t.state),rotation:t.getRotation()}})),i=o.map((function(e){return e.rotation})),a=0,s=i[0],l=i.every((function(e){return Math.abs(s-e)<.1}));a=h?!d&&l?s:f:d||r||!l?n:s;var c=o.map((function(e){return e.poses})),u=function(e,t){var n,r,o,i=[0,0],a=[0,0],s=[0,0],l=[0,0],c=0,u=0;if(!e.length)return{pos1:i,pos2:a,pos3:s,pos4:l,minX:0,minY:0,maxX:0,maxY:0,width:c,height:u,rotation:t};var d=Di(t,Fs);if(d%90){var p=d/180*Math.PI,h=Math.tan(p),f=-1/h,m=[Os,js],g=[[0,0],[0,0]],v=[Os,js],y=[[0,0],[0,0]];e.forEach((function(e){e.forEach((function(e){var t=Vd([-h,1,0],e),n=Vd([-f,1,0],e);m[0]>t&&(g[0]=e,m[0]=t),m[1]<t&&(g[1]=e,m[1]=t),v[0]>n&&(y[0]=e,v[0]=n),v[1]<n&&(y[1]=e,v[1]=n)}))}));var b=ps(g,2),w=b[0],x=b[1],_=ps(y,2),S=_[0],C=_[1],E=[-h,1,Hd([-h,1],w)],k=[-h,1,Hd([-h,1],x)],z=[-f,1,Hd([-f,1],S)],P=[-f,1,Hd([-f,1],C)];n=ps([[E,z],[E,P],[k,z],[k,P]].map((function(e){var t=ps(e,2);return Ka(t[0],t[1])[0]})),4),i=n[0],a=n[1],s=n[2],l=n[3],c=v[1]-v[0],u=m[1]-m[0]}else{var D=Ud(e,0),A=Ud(e,1),T=$d(e,0),I=$d(e,1);i=[D,A],a=[T,A],s=[D,I],l=[T,I],c=T-D,u=I-A,d%180&&(i=(r=ps([s,i,l,a],4))[0],a=r[1],s=r[2],l=r[3],c=I-A,u=T-D)}d%360>180&&(i=(o=ps([l,s,a,i],4))[0],a=o[1],s=o[2],l=o[3]);var M=ja([i,a,s,l]);return{pos1:i,pos2:a,pos3:s,pos4:l,width:c,height:u,minX:M.minX,minY:M.minY,maxX:M.maxX,maxY:M.maxY,rotation:t}}(c,a);return u}(u,this.rotation,!0);h&&(this.rotation=g.rotation,this.transformOrigin=i.defaultGroupOrigin||"50% 50%",this.scale=[1,1]),this._targetGroups=c,this.renderGroupRects=p;var v,y,b,w,x,_=this.transformOrigin,S=this.rotation,C=this.scale,E=g.width,k=g.height,z=g.minX,P=g.minY,D=(v=[[0,0],[E,0],[0,k],[E,k]],y=ld(_,E,k),b=this.rotation/180*Math.PI,w=v.map((function(e){return Ji(e,y)})),x=w.map((function(e){return sa(e,b)})),{prev:w,next:x,result:x.map((function(e){return Qi(e,y)}))}),A=ja(D.result),T=A.minX,I=A.minY,M=" rotate(".concat(S,"deg)")+" scale(".concat(dd(C[0]),", ").concat(dd(C[1]),")"),R="translate(".concat(-T,"px, ").concat(-I,"px)").concat(M);this.controlBox.style.transform="translate3d(".concat(z,"px, ").concat(P,"px, ").concat(this.props.translateZ||0,")"),s.style.cssText+="left:0px;top:0px;"+"transform-origin:".concat(_,";")+"width:".concat(E,"px;height:").concat(k,"px;")+"transform: ".concat(R),o.width=E,o.height=k;var F=this.getContainer(),N=Nd(this.controlBox,s,this.controlBox,this.getContainer(),this._rootContainer||F,[]),O=[N.left,N.top],j=ps(Ru(N),4),L=j[0],B=j[1],K=j[2],V=j[3],H=ja([L,B,K,V]),$=[H.minX,H.minY],U=dd(C[0]*C[1]);N.pos1=Ji(L,$),N.pos2=Ji(B,$),N.pos3=Ji(K,$),N.pos4=Ji(V,$),N.left=z-N.left+$[0],N.top=P-N.top+$[1],N.origin=Ji(Qi(O,N.origin),$),N.beforeOrigin=Ji(Qi(O,N.beforeOrigin),$),N.originalBeforeOrigin=Qi(O,N.originalBeforeOrigin),N.transformOrigin=Ji(Qi(O,N.transformOrigin),$),s.style.transform="translate(".concat(-T-$[0],"px, ").concat(-I-$[1],"px)")+M,xl(),this.updateState(ds(ds({},N),{posDelta:$,direction:U,beforeDirection:U}),n)}},t.prototype.getRect=function(){return ds(ds({},e.prototype.getRect.call(this)),{children:this.moveables.map((function(e){return e.getRect()}))})},t.prototype.triggerEvent=function(t,n,r){if(r||t.indexOf("Group")>-1)return e.prototype.triggerEvent.call(this,t,n);this._emitter.trigger(t,n)},t.prototype.getRequestChildStyles=function(){var e=this.getEnabledAbles().reduce((function(e,t){var n,r,o=null!==(r=null===(n=t.requestChildStyle)||void 0===n?void 0:n.call(t))&&void 0!==r?r:[];return hs(hs([],ps(e),!1),ps(o),!1)}),[]);return e},t.prototype.getMoveables=function(){return hs([],ps(this.moveables),!1)},t.prototype.updateAbles=function(){e.prototype.updateAbles.call(this,hs(hs([],ps(this.props.ables),!1),[Ld],!1),"Group")},t.prototype._updateTargets=function(){e.prototype._updateTargets.call(this),this._originalDragTarget=this.props.dragTarget||this.areaElement,this._dragTarget=nd(this._originalDragTarget,!0)},t.prototype._updateEvents=function(){var e=this.state,t=this.props,n=this._prevDragTarget,r=t.dragTarget||this.areaElement,o=t.targets,i=this.differ.update(o),a=i.added,s=i.changed,l=i.removed,c=a.length||l.length;(c||this._prevOriginalDragTarget!==this._originalDragTarget)&&(Nu(this,!1),Nu(this,!0),this.updateState({gestos:{}})),n!==r&&(e.target=null),e.target||(e.target=this.areaElement,this.controlBox.style.display="block"),e.target&&(this.targetGesto||(this.targetGesto=Ad(this,this._dragTarget,"Group")),this.controlGesto||(this.controlGesto=Td(this,"GroupControl")));var u=!Uu(e.container,t.container);u&&(e.container=t.container),(u||c||this.transformOrigin!==(t.defaultGroupOrigin||"50% 50%")||s.length||o.length&&!cd(this._targetGroups,t.targetGroups||[]))&&(this.updateRect(),this._hasFirstTargets=!0),this._isPropTargetChanged=!!c},t.prototype._updateObserver=function(){},t.defaultProps=ds(ds({},jd.defaultProps),{transformOrigin:["50%","50%"],groupable:!0,dragArea:!0,keepRatio:!0,targets:[],defaultGroupRotate:0,defaultGroupOrigin:"50% 50%"}),t}(jd),Gd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.moveables=[],t}return us(t,e),t.prototype.render=function(){var e,t=this,n=this.props,r=n.cspNonce,o=n.cssStyled,i=n.persistData,a=n.targets||[],s=a.length,c=this.isUnmounted||!s,u=null!==(e=null==i?void 0:i.children)&&void 0!==e?e:[];return c&&!s&&u.length?a=u.map((function(){return null})):c||(u=[]),l.createElement(o,{cspNonce:r,ref:qo(this,"controlBox"),className:nu("control-box")},a.map((function(e,r){var o,i,a=null!==(i=null===(o=n.individualGroupableProps)||void 0===o?void 0:o.call(n,e,r))&&void 0!==i?i:{};return l.createElement(jd,ds({key:"moveable"+r,ref:Go(t,"moveables",r)},n,a,{target:e,wrapperMoveable:t,isWrapperMounted:t.isMoveableMounted,persistData:u[r]}))})))},t.prototype.componentDidMount=function(){},t.prototype.componentDidUpdate=function(){},t.prototype.getTargets=function(){return this.props.targets},t.prototype.updateRect=function(e,t,n){void 0===n&&(n=!0),xl(!0),this.moveables.forEach((function(r){r.updateRect(e,t,n)})),xl()},t.prototype.getRect=function(){return ds(ds({},e.prototype.getRect.call(this)),{children:this.moveables.map((function(e){return e.getRect()}))})},t.prototype.request=function(e,t,n){void 0===t&&(t={});var r=this.moveables.map((function(n){return n.request(e,ds(ds({},t),{isInstant:!1}),!1)})),o={request:function(e){return r.forEach((function(t){return t.request(e)})),this},requestEnd:function(){return r.forEach((function(e){return e.requestEnd()})),this}};return n||t.isInstant?o.request(t).requestEnd():o},t.prototype.dragStart=function(e,t){void 0===t&&(t=e.target);var n=t,r=vi(this.moveables,(function(e){var t=e.getTargets()[0],r=e.getControlBoxElement(),o=e.getDragElement();return!(!t||!o)&&(o===n||o.contains(n)||o!==t&&t===n||t.contains(n)||r===n||r.contains(n))}));return r&&r.dragStart(e,t),this},t.prototype.hitTest=function(){return 0},t.prototype.isInside=function(){return!1},t.prototype.isDragging=function(){return!1},t.prototype.getDragElement=function(){return null},t.prototype.getMoveables=function(){return hs([],ps(this.moveables),!1)},t.prototype.updateRenderPoses=function(){},t.prototype.checkUpdate=function(){},t.prototype.triggerEvent=function(){},t.prototype.updateAbles=function(){},t.prototype._updateEvents=function(){},t.prototype._updateObserver=function(){},t}(jd);function Wd(e,t){var n=[];return e.forEach((function(e){e&&(ii(e)?t[e]&&n.push.apply(n,hs([],ps(t[e]),!1)):oi(e)?n.push.apply(n,hs([],ps(Wd(e,t)),!1)):n.push(e))})),n}function Yd(e,t){var n=[];return e.forEach((function(e){e&&(ii(e)?t[e]&&n.push.apply(n,hs([],ps(t[e]),!1)):oi(e)?n.push(Yd(e,t)):n.push(e))})),n}function Xd(e,t){return e.length!==t.length||e.some((function(e,n){var r=t[n];return!(!e&&!r)&&(e!=r&&(!oi(e)||!oi(r)||Xd(e,r)))}))}var Qd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refTargets=[],t.selectorMap={},t._differ=new Aa,t._elementTargets=[],t._tmpRefTargets=[],t._tmpSelectorMap={},t._onChangeTargets=null,t}var n,r;return us(t,e),t.makeStyled=function(){var e={};this.getTotalAbles().forEach((function(t){var n=t.css;n&&n.forEach((function(t){e[t]=!0}))}));var t=wi(e).join("\n");this.defaultStyled=ls("div",function(e,t){return t.replace(/([^}{]*){/gm,(function(t,n){return n.replace(/\.([^{,\s\d.]+)/g,"."+e+"$1")+"{"}))}(As,Is+t))},t.getTotalAbles=function(){return hs([Ed,Ld,Kd,Cd],ps(this.defaultAbles),!1)},t.prototype.render=function(){var e,t=this.constructor;t.defaultStyled||t.makeStyled();var n=this.props,r=n.ables,o=n.props,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["ables","props"]),a=ps(this._updateRefs(!0),2),s=a[0],c=a[1],u=Wd(s,c),d=u.length>1,p=hs(hs([],ps(t.getTotalAbles()),!1),ps(r||[]),!1),h=ds(ds(ds({},i),o||{}),{ables:p,cssStyled:t.defaultStyled,customStyledMap:t.customStyledMap});this._elementTargets=u;var f=null,m=this.moveable,g=i.persistData;if((null==g?void 0:g.children)&&(d=!0),i.individualGroupable)return l.createElement(Gd,ds({key:"individual-group",ref:qo(this,"moveable")},h,{target:null,targets:u}));if(d){var v=Yd(s,c);if(m&&!m.props.groupable&&!m.props.individualGroupable){var y=m.props.target;y&&u.indexOf(y)>-1&&(f=ds({},m.state))}return l.createElement(qd,ds({key:"group",ref:qo(this,"moveable")},h,null!==(e=i.groupableProps)&&void 0!==e?e:{},{target:null,targets:u,targetGroups:v,firstRenderState:f}))}var b=u[0];if(m&&(m.props.groupable||m.props.individualGroupable)){var w=vi(m.moveables||[],(function(e){return e.props.target===b}));w&&(f=ds({},w.state))}return l.createElement(jd,ds({key:"single",ref:qo(this,"moveable")},h,{target:b,firstRenderState:f}))},t.prototype.componentDidMount=function(){this._checkChangeTargets()},t.prototype.componentDidUpdate=function(){this._checkChangeTargets()},t.prototype.componentWillUnmount=function(){this.selectorMap={},this.refTargets=[]},t.prototype.getTargets=function(){var e,t;return null!==(t=null===(e=this.moveable)||void 0===e?void 0:e.getTargets())&&void 0!==t?t:[]},t.prototype.updateSelectors=function(){this.selectorMap={},this._updateRefs(),this.forceUpdate()},t.prototype.waitToChangeTarget=function(){var e,t=this;return this._onChangeTargets=function(){t._onChangeTargets=null,e()},new Promise((function(t){e=t}))},t.prototype.waitToChangeTargets=function(){return this.waitToChangeTarget()},t.prototype.getManager=function(){return this.moveable},t.prototype.getMoveables=function(){return this.moveable.getMoveables()},t.prototype.getDragElement=function(){return this.moveable.getDragElement()},t.prototype._updateRefs=function(e){var t=this.refTargets,n=rd(this.props.target||this.props.targets),r="undefined"!=typeof document,o=Xd(t,n),i=this.selectorMap,a={};return this.refTargets.forEach((function e(t){ii(t)?i[t]?a[t]=i[t]:r&&(o=!0,a[t]=[].slice.call(document.querySelectorAll(t))):oi(t)&&t.forEach(e)})),this._tmpRefTargets=n,this._tmpSelectorMap=a,[n,a,!e&&o]},t.prototype._checkChangeTargets=function(){var e,t,n;this.refTargets=this._tmpRefTargets,this.selectorMap=this._tmpSelectorMap;var r=this._differ.update(this._elementTargets),o=r.added,i=r.removed;(o.length||i.length)&&(null===(t=(e=this.props).onChangeTargets)||void 0===t||t.call(e,{moveable:this.moveable,targets:this._elementTargets}),null===(n=this._onChangeTargets)||void 0===n||n.call(this));var a=ps(this._updateRefs(),3),s=a[0],l=a[1],c=a[2];this.refTargets=s,this.selectorMap=l,c&&this.forceUpdate()},t.defaultAbles=[],t.customStyledMap={},t.defaultStyled=null,function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([(n=Vs,void 0===r&&(r={}),function(e,t){n.forEach((function(n){var o=r[n]||n;o in e||(e[o]=function(){for(var e,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=(e=this[t])[n].apply(e,r);return i===this[t]?this:i})}))})],t.prototype,"moveable",void 0),t}(l.PureComponent);function Jd(e,t){const{"aria-label":n,"aria-labelledby":r,orientation:o="horizontal"}=e;let[i,a]=(0,l.useState)(!1);(0,ro.bt)((()=>{var e;a(!(!t.current||!(null===(e=t.current.parentElement)||void 0===e?void 0:e.closest('[role="toolbar"]'))))}));const{direction:s}=(0,oo.bU)(),c="rtl"===s&&"horizontal"===o;let u=(0,Dr.E7)(t);const d=(0,l.useRef)(null);return{toolbarProps:{role:i?"group":"toolbar","aria-orientation":o,"aria-label":n,"aria-labelledby":null==n?r:void 0,onKeyDownCapture:i?void 0:e=>{if(e.currentTarget.contains(e.target)){if("horizontal"===o&&"ArrowRight"===e.key||"vertical"===o&&"ArrowDown"===e.key)c?u.focusPrevious():u.focusNext();else{if(!("horizontal"===o&&"ArrowLeft"===e.key||"vertical"===o&&"ArrowUp"===e.key))return"Tab"===e.key?(e.stopPropagation(),d.current=document.activeElement,void(e.shiftKey?u.focusFirst():u.focusLast())):void 0;c?u.focusNext():u.focusPrevious()}e.stopPropagation(),e.preventDefault()}},onFocusCapture:i?void 0:e=>{var n,r;d.current&&!e.currentTarget.contains(e.relatedTarget)&&(null===(n=t.current)||void 0===n?void 0:n.contains(e.target))&&(null===(r=d.current)||void 0===r||r.focus(),d.current=null)},onBlurCapture:i?void 0:e=>{e.currentTarget.contains(e.relatedTarget)||d.current||(d.current=e.target)}}}}var ep=n(96486),tp=n(77493),np=n(57645),rp=Object.defineProperty,op=Object.defineProperties,ip=Object.getOwnPropertyDescriptors,ap=Object.getOwnPropertySymbols,sp=Object.prototype.hasOwnProperty,lp=Object.prototype.propertyIsEnumerable,cp=(e,t,n)=>t in e?rp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,up=(e,t)=>{for(var n in t||(t={}))sp.call(t,n)&&cp(e,n,t[n]);if(ap)for(var n of ap(t))lp.call(t,n)&&cp(e,n,t[n]);return e},dp=(e,t)=>{var n={};for(var r in e)sp.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ap)for(var r of ap(e))t.indexOf(r)<0&&lp.call(e,r)&&(n[r]=e[r]);return n},pp=()=>(0,tp.Jh)(),hp=(e,t,n)=>tp.ML.pointRef(e,t,n),fp=e=>tp.W_.isElement(e),mp=(e,t)=>fp(t)&&tp.ML.isBlock(e,t);var gp=(e,t,n)=>!n||("object"==typeof n?Object.entries(n).every((([t,n])=>{const r=function(e){return Array.isArray(e)?e:[e]}(n);return r.includes(e[t])})):n(e,t)),vp=(e,t={})=>{const{block:n,match:r}=t;return((e,t)=>op(e,ip(t)))(up({},t),{match:r||n?(t,o)=>gp(t,o,r)&&(!n||mp(e,t)):void 0})},yp=(e,t)=>tp.ML.above(e,vp(e,t)),bp=(e,t,n={})=>{const{unhang:r=!0,voids:o}=n;return tp.e6.isRange(t)&&r?tp.ML.unhangRange(e,t,{voids:o}):t},wp=(e,t)=>(bp(e,null==t?void 0:t.at,t),tp.ML.nodes(e,vp(e,t))),xp=(e,t)=>tp.ML.previous(e,t),_p=(e,t)=>{let n=!1;return tp.ML.withoutNormalizing(e,(()=>{n=!!t()})),n},Sp=e=>tp.xv.isText(e),Cp=(e,t)=>tp.YR.removeNodes(e,t),Ep=(e,t)=>{tp.YR.select(e,t)},kp=(e,t)=>tp.ML.end(e,t),zp=(e,t,n)=>tp.ML.before(e,t,n),Pp=(e,t)=>tp.ML.start(e,t),Dp=(e,t,n)=>{if(!t)return"";try{return tp.ML.string(e,t,n)}catch(e){return""}},Ap=e=>tp.ML.marks(e),Tp=(e,t,n)=>tp.ML.point(e,t,n),Ip=(e,t,n)=>tp.ML.range(e,t,n),Mp=(e,t,n)=>!!t&&tp.ML.isEnd(e,t,n),Rp=(e,t,n)=>!!t&&tp.ML.isStart(e,t,n),Fp=(e,t)=>tp.ML.normalize(e,t),Np=(e,t)=>tp.ML.removeMark(e,t),Op=e=>tp.NB.string(e),jp=e=>tp.W_.isAncestor(e),Lp=e=>!!e&&tp.e6.isCollapsed(e),Bp=e=>!!e&&tp.e6.isExpanded(e),Kp=e=>{tp.YR.deselect(e)};function Vp(e){return Array.isArray(e)?e:[e]}var Hp=(e,{allow:t,exclude:n,filter:r,level:o,maxLevel:i}={})=>{if(!e)return!1;const[a,s]=e;if(o){if(!Vp(o).includes(s.length))return!1}if(i&&s.length>i)return!1;if(r&&!r(e))return!1;if(t){const e=Vp(t);if(e.length>0&&!e.includes(a.type))return!1}if(n){const e=Vp(n);if(e.length>0&&e.includes(a.type))return!1}return!0},$p=(e,t,n={})=>{var r=n,{nextBlock:o,removeEmpty:i}=r,a=dp(r,["nextBlock","removeEmpty"]);(0,tp.kR)(e,(()=>{if(i){const t=yp(e,{at:a.at});if(t){const n=!0===i?{allow:["p"]}:i,{filter:r}=n;n.filter=([t,n])=>{if(Op(t))return!1;return!t.children.some((t=>((e,t)=>fp(t)&&tp.ML.isInline(e,t))(e,t)))&&(!r||r([t,n]))},Hp(t,n)&&((0,tp.r4)(e,{at:t[1]}),o=!1)}}if(o){const{at:t=e.selection}=a;if(t){const n=kp(e,t),r=yp(e,{at:n,block:!0});r&&(a.at=tp.y$.next(r[1]))}}tp.YR.insertNodes(e,t,a)}))},Up=(e,t)=>{tp.YR.move(e,t)},Zp=(e,t,n)=>tp.YR.setNodes(e,t,n),qp=(e,t)=>tp.YR.splitNodes(e,t),Gp=(e,t={})=>{try{const n=wp(e,up({at:e.selection||[]},vp(e,t)));for(const[e,t]of n)return[e,t]}catch(e){return}},Wp=(e,t)=>!!Gp(e,t),Yp=(e,t,n)=>Zp(e,t,n),Xp=n(50361),Qp=n.n(Xp),Jp=n(66913),eh=n.n(Jp),th=n(84596),nh=n.n(th),rh=n(35161),oh=n.n(rh),ih=(n(10928),"undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent)),ah=(e,t)=>e&&e.nodeName!==t?ah(e.parentElement,t):e,sh=(e,...t)=>()=>{null==e||e(...t)},lh=/^(?:\w+:)?\/\/(\S+)$/,ch=/mailto:([^?\\]+)/,uh=/^localhost[\d:?]*(?:[^\d:?]\S*)?$/,dh=/^[^\s.]+\.\S{2,}$/,ph=(e,{allowedSchemes:t,permitInvalid:n=!1})=>{if(!e)return null;let r=null;try{r=new URL(e)}catch(t){return n?e:null}return t&&!t.includes(r.protocol.slice(0,-1))?null:r.href},hh=e=>{return!((e=>void 0===e)(t=e)||(e=>null===e)(t));var t},fh=Object.defineProperty,mh=Object.defineProperties,gh=Object.getOwnPropertyDescriptors,vh=Object.getOwnPropertySymbols,yh=Object.prototype.hasOwnProperty,bh=Object.prototype.propertyIsEnumerable,wh=(e,t,n)=>t in e?fh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xh=(e,t)=>{for(var n in t||(t={}))yh.call(t,n)&&wh(e,n,t[n]);if(vh)for(var n of vh(t))bh.call(t,n)&&wh(e,n,t[n]);return e},_h=(e,t)=>mh(e,gh(t)),Sh=(e,t)=>{var n={};for(var r in e)yh.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&vh)for(var r of vh(e))t.indexOf(r)<0&&bh.call(e,r)&&(n[r]=e[r]);return n},Ch=(e,t={})=>yp(e,_h(xh({},t),{block:!0})),Eh=(e,t)=>{if(!e)return;const n=Ap(e);return null==n?void 0:n[t]},kh=(e,t)=>{const n=((e,t)=>tp.ML.next(e,t))(e,{at:t});if(n)return Pp(e,n[1])},zh=(e,t={})=>{var n=t,{at:r}=n,o=Sh(n,["at"]);if(r||(r=e.selection),!r)return;const[i,a]=tp.e6.edges(r),s=Ch(e,xh({at:i},o)),l=Ch(e,xh({at:a},o));return s||l?!s||!l||!tp.y$.equals(s[1],l[1]):void 0},Ph=(e,t,n)=>{const r=((e,t,n)=>{var r;if(!n||!n.match&&!n.matchString)return zp(e,t,n);const o=!n.unit||"offset"===n.unit,i=n.matchString?nh()(n.matchString):[""],a=null!=(r=n.matchByRegex)&&r;let s;return i.some((r=>{var i,l;let c=t,u=Tp(e,t,{edge:"end"});const d=r.length+1,p=Array.from({length:d});let h=0;for(;;){const f=zp(e,c,n);if(!f)return;if(zh(e,{at:{anchor:f,focus:u}}))return;const m=Dp(e,{anchor:f,focus:u});let g=m;if(o&&d&&(p.unshift({point:f,text:m}),p.pop(),g=oh()(p.slice(0,-1),"text").join("")),(a?r.match(g):g===r)||(null==(i=n.match)?void 0:i.call(n,{at:t,beforePoint:f,beforeString:g})))return n.afterMatch?d&&o?(s=null==(l=p.at(-1))?void 0:l.point,!!s):(s=u,!0):(s=f,!0);if(u=f,c=f,h+=1,!n.skipInvalid&&(!r||h>=r.length))return}})),s})(e,t,n);if(!r)return;return{anchor:r,focus:Tp(e,t,{edge:"end"})}},Dh=(e,t={})=>{var n;const r=null==(n=Ch(e,t))?void 0:n[1];if(!r)return;const o=Pp(e,r),i=((e,{at:t=e.selection,focus:n}={})=>{let r;return tp.e6.isRange(t)&&(r=n?t.focus:t.anchor),tp.E9.isPoint(t)&&(r=t),tp.y$.isPath(t)&&(r={offset:0,path:t}),r})(e,t);return i?{anchor:o,focus:i}:void 0},Ah=(e,t)=>hh(Eh(e,t)),Th=(e,t,n)=>{$p(e,t,n)},Ih=(e,t)=>{var n,r=t,{at:o,key:i,shouldChange:a=!0}=r,s=Sh(r,["at","key","shouldChange"]);const l=null!=o?o:e.selection;if(i=nh()(i),l)if(tp.e6.isRange(l)&&tp.e6.isExpanded(l))((e,t,n)=>{tp.YR.unsetNodes(e,t,n)})(e,i,xh({at:l,match:Sp,split:!0},s));else if(e.selection){const t=null!=(n=Ap(e))?n:{};i.forEach((e=>{delete t[e]})),e.marks=t,a&&e.onChange()}},Mh=(e,t,n)=>{_p(e,(()=>{for(const[,r]of((e,t,n)=>tp.NB.children(e,t,n))(e,t,{reverse:!0}))Cp(e,_h(xh({},n),{at:r}))}))},Rh=(e,{at:t,insertOptions:n,nodes:r,removeOptions:o})=>{_p(e,(()=>{Mh(e,t,o),$p(e,r,_h(xh({},n),{at:t.concat([0])}))}))},Fh=(e,{clear:t,key:n})=>{e.selection&&_p(e,(()=>{if(Ah(e,n))e.removeMark(n);else{if(t){const n=nh()(t);Ih(e,{key:n})}e.addMark(n,!0)}}))},Nh=n(24350),Oh=n.n(Nh),jh=n(82492),Lh=n.n(jh),Bh=n(52628),Kh=n.n(Bh);function Vh(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Vh(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Hh(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Vh(e))&&(r&&(r+=" "),r+=t);return r}var $h=n(18446),Uh=n.n($h),Zh=n(18156);var qh=n(28623);n(63840);Symbol(),Symbol(),"undefined"==typeof window||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent);const Gh=Symbol(),Wh=Symbol(),Yh="w";let Xh=(e,t)=>new Proxy(e,t);const Qh=Object.getPrototypeOf,Jh=new WeakMap,ef=e=>e&&(Jh.has(e)?Jh.get(e):Qh(e)===Object.prototype||Qh(e)===Array.prototype),tf=e=>"object"==typeof e&&null!==e,nf=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach((e=>{e.configurable=!0})),Object.create(Qh(e),t)},rf=e=>e[Wh]||e,of=(e,t,n,r)=>{if(!ef(e))return e;let o=r&&r.get(e);if(!o){const t=rf(e);o=(e=>Object.values(Object.getOwnPropertyDescriptors(e)).some((e=>!e.configurable&&!e.writable)))(t)?[t,nf(t)]:[t],null==r||r.set(e,o)}const[i,a]=o;let s=n&&n.get(i);return s&&s[1].f===!!a||(s=((e,t)=>{const n={f:t};let r=!1;const o=(t,o)=>{if(!r){let r=n.a.get(e);if(r||(r={},n.a.set(e,r)),t===Yh)r.w=!0;else{let e=r[t];e||(e=new Set,r[t]=e),e.add(o)}}},i={get:(t,r)=>r===Wh?e:(o("k",r),of(Reflect.get(t,r),n.a,n.c,n.t)),has:(t,i)=>i===Gh?(r=!0,n.a.delete(e),!0):(o("h",i),Reflect.has(t,i)),getOwnPropertyDescriptor:(e,t)=>(o("o",t),Reflect.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(o(Yh),Reflect.ownKeys(e))};return t&&(i.set=i.deleteProperty=()=>!1),[i,n]})(i,!!a),s[1].p=Xh(a||i,s[0]),n&&n.set(i,s)),s[1].a=t,s[1].c=n,s[1].t=r,s[1].p},af=(e,t,n,r,o=Object.is)=>{if(o(e,t))return!1;if(!tf(e)||!tf(t))return!0;const i=n.get(rf(e));if(!i)return!0;if(r){const n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let a=null;try{for(const n of i.h||[])if(a=Reflect.has(e,n)!==Reflect.has(t,n),a)return a;if(!0===i.w){if(a=((e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))})(e,t),a)return a}else for(const n of i.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,n)!=!!Reflect.getOwnPropertyDescriptor(t,n),a)return a;for(const s of i.k||[])if(a=af(e[s],t[s],n,r,o),a)return a;return null===a&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a})}},sf=e=>()=>{const[,t]=(0,l.useReducer)((e=>e+1),0),n=new WeakMap,r=(0,l.useRef)(),o=(0,l.useRef)(),i=(0,l.useRef)();(0,l.useEffect)((()=>{r.current=n,o.current!==i.current&&af(o.current,i.current,n,new WeakMap)&&(o.current=i.current,t())}));const a=(0,l.useCallback)((e=>(i.current=e,o.current&&o.current!==e&&r.current&&!af(o.current,e,r.current,new WeakMap)?o.current:(o.current=e,e))),[]),s=e(a);const c=(0,l.useMemo)((()=>new WeakMap),[]);return of(s,n,c)};const lf=new Map,cf=e=>{const t=lf.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},uf=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,store:s,...l}=t;let c;try{c=(null==i||i)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!c)return i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:u,...d}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=lf.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return lf.set(n.name,o),{type:"tracked",store:e,...o}})(s,c,l);let p=!0;o.setState=(e,t,i)=>{const c=n(e,t);if(!p)return c;const d=void 0===i?{type:a||"anonymous"}:"string"==typeof i?{type:i}:i;return void 0===s?(null==u||u.send(d,r()),c):(null==u||u.send({...d,type:`${s}/${d.type}`},{...cf(l.name),[s]:o.getState()}),c)};const h=(...e)=>{const t=p;p=!1,n(...e),p=t},f=e(o.setState,r,o);if("untracked"===d.type?null==u||u.init(f):(d.stores[d.store]=o,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?f:t.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):df(e.payload,(e=>{if("__setState"!==e.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e);else{if(void 0===s)return void h(e.state);1!==Object.keys(e.state).length&&console.error('\n                    [zustand devtools middleware] Unsupported __setState action format. \n                    When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n                    ');const t=e.state[s];if(null==t)return;JSON.stringify(o.getState())!==JSON.stringify(t)&&h(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return h(f),void 0===s?null==u?void 0:u.init(o.getState()):null==u?void 0:u.init(cf(l.name));case"COMMIT":return void 0===s?void(null==u||u.init(o.getState())):null==u?void 0:u.init(cf(l.name));case"ROLLBACK":return df(e.state,(e=>{if(void 0===s)return h(e),void(null==u||u.init(o.getState()));h(e[s]),null==u||u.init(cf(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return df(e.state,(e=>{void 0!==s?JSON.stringify(o.getState())!==JSON.stringify(e[s])&&h(e[s]):h(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return h(void 0===s?r:r[s]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return p=!p}return}})),f},df=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)};function pf(e,t){let n;try{n=e()}catch(e){return}const r={getItem:e=>{var r;const o=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),i=null!=(r=n.getItem(e))?r:null;return i instanceof Promise?i.then(o):o(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)};return r}const hf=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>hf(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>hf(t)(e)}}},ff=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,l=new Set;let c;try{c=i.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const u=hf(i.serialize),d=()=>{const e=i.partialize({...r()});let t;const n=u({state:e,version:i.version}).then((e=>c.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},p=o.setState;o.setState=(e,t)=>{p(e,t),d()};const h=e(((...e)=>{n(...e),d()}),r,o);let f;const m=()=>{var e;if(!c)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return hf(c.getItem.bind(c))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return f=i.merge(e,null!=(t=r())?t:h),n(f,!0),d()})).then((()=>{null==t||t(f,void 0),a=!0,l.forEach((e=>e(f)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i={...i,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),f||h})(e,t)):((e,t)=>(n,r,o)=>{let i={storage:pf((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,l=new Set;let c=i.storage;if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const u=()=>{const e=i.partialize({...r()});return c.setItem(i.name,{state:e,version:i.version})},d=o.setState;o.setState=(e,t)=>{d(e,t),u()};const p=e(((...e)=>{n(...e),u()}),r,o);let h;o.getInitialState=()=>p;const f=()=>{var e,t;if(!c)return;a=!1,s.forEach((e=>{var t;return e(null!=(t=r())?t:p)}));const o=(null==(t=i.onRehydrateStorage)?void 0:t.call(i,null!=(e=r())?e:p))||void 0;return hf(c.getItem.bind(c))(i.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=i.merge(e,null!=(t=r())?t:p),n(h,!0),u()})).then((()=>{null==o||o(h,void 0),h=r(),a=!0,l.forEach((e=>e(h)))})).catch((e=>{null==o||o(void 0,e)}))};return o.persist={setOptions:e=>{i={...i,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>f(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},i.skipHydration||f(),h||p})(e,t);var mf=n(52798);const gf=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,o,i);return i},vf=e=>e?gf(e):gf;const{useDebugValue:yf}=l,{useSyncExternalStoreWithSelector:bf}=mf,wf=e=>e;function xf(e,t=wf,n){const r=bf(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return yf(r),r}n(94150);var _f=Object.defineProperty,Sf=Object.defineProperties,Cf=Object.getOwnPropertyDescriptors,Ef=Object.getOwnPropertySymbols,kf=Object.prototype.hasOwnProperty,zf=Object.prototype.propertyIsEnumerable,Pf=(e,t,n)=>t in e?_f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Df=(e,t)=>{for(var n in t||(t={}))kf.call(t,n)&&Pf(e,n,t[n]);if(Ef)for(var n of Ef(t))zf.call(t,n)&&Pf(e,n,t[n]);return e},Af=(e,t)=>Sf(e,Cf(t)),Tf=e=>(t,n,r)=>{const o=(e,n)=>t((0,qh.Uy)(e),!0,n);return r.setState=o,e(o,n,r)};var If=e=>Af(Df({},e),{extendSelectors:t=>If(((e,t)=>{const n=Df({},t.use),r=Df({},t.useTracked),o=Df({},t.get);return Object.keys(e(t.store.getState(),t.get,t)).forEach((i=>{n[i]=(...n)=>t.useStore((r=>(0,e(r,t.get,t)[i])(...n))),r[i]=(...n)=>{const r=t.useTrackedStore();return(0,e(r,t.get,t)[i])(...n)},o[i]=(...n)=>(0,e(t.store.getState(),t.get,t)[i])(...n)})),Af(Df({},t),{get:o,use:n,useTracked:r})})(t,e)),extendActions:t=>If(((e,t)=>{const n=e(t.set,t.get,t);return Af(Df({},t),{set:Df(Df({},t.set),n)})})(t,e))}),Mf=e=>(t,n={})=>{var r,o;const{middlewares:i=[],devtools:a,persist:s,immer:l}=n;(0,qh.Fl)(null!=(r=null==l?void 0:l.enabledAutoFreeze)&&r),(null==l?void 0:l.enableMapSet)&&(0,qh.MD)();const c=[Tf,...i];if(null==s?void 0:s.enabled){const t=Af(Df({},s),{name:null!=(o=s.name)?o:e});c.push((e=>ff(e,t)))}(null==a?void 0:a.enabled)&&c.push((t=>uf(t,Af(Df({},a),{name:e})))),c.push(vf);const u=function(e,...t){return t.reduce(((e,t)=>t(e)),e)}((()=>t),...c);const d=(e,t)=>xf(u,e,t),p=((e,t)=>{const n={};return Object.keys(e.getState()).forEach((r=>{n[r]=n=>{if(e.getState()[r]===n)return;const o=r.replace(/^\S/,(e=>e.toUpperCase()));e.setState((e=>{e[r]=n}),`@@${t}/set${o}`)}})),n})(u,e),h=((e,t)=>{const n={};return Object.keys(t.getState()).forEach((t=>{n[t]=n=>e((e=>e[t]),n)})),n})(d,u),f=(e=>{const t={};return Object.keys(e.getState()).forEach((n=>{t[n]=()=>e.getState()[n]})),t})(u),m=sf(d),g=((e,t)=>{const n={};return Object.keys(t.getState()).forEach((t=>{n[t]=()=>e()[t]})),n})(m,u),v={get:Df({state:u.getState},f),name:e,set:Df({state:(t,n)=>{u.setState(t,n||`@@${e}/setState`)},mergeState:(t,n)=>{u.setState((e=>{Object.assign(e,t)}),n||`@@${e}/mergeState`)}},p),store:u,use:h,useTracked:g,useStore:d,useTrackedStore:m,extendSelectors:()=>v,extendActions:()=>v};return If(v)},Rf=n(71815),Ff=Object.defineProperty,Nf=Object.defineProperties,Of=Object.getOwnPropertyDescriptors,jf=Object.getOwnPropertySymbols,Lf=Object.prototype.hasOwnProperty,Bf=Object.prototype.propertyIsEnumerable,Kf=(e,t,n)=>t in e?Ff(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vf=(e,t)=>{for(var n in t||(t={}))Lf.call(t,n)&&Kf(e,n,t[n]);if(jf)for(var n of jf(t))Bf.call(t,n)&&Kf(e,n,t[n]);return e},Hf=(e,t)=>Nf(e,Of(t)),$f=(e,t)=>{var n={};for(var r in e)Lf.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&jf)for(var r of jf(e))t.indexOf(r)<0&&Bf.call(e,r)&&(n[r]=e[r]);return n},Uf=(e,t={},n=!1)=>{var r;if(t[e.key]){const r=t[e.key],{plugins:o,then:i}=r,a=$f(r,["plugins","then"]);e=eh()(a,e),n||null==o||o.forEach((t=>{e.plugins||(e.plugins=[]);const n=e.plugins.find((e=>e.key===t.key));n||e.plugins.push(t)}))}e.plugins&&(e.plugins=e.plugins.map((e=>Uf(e,t,!0))));const{then:o}=e;return o?(void 0===e._thenReplaced&&(e._thenReplaced=0),e._thenReplaced<3&&(e.then=(n,r)=>{const i=Vf({key:e.key},o(n,r));return eh()(Uf(i,t),i)},e._thenReplaced++)):(null==(r=t[e.key])?void 0:r.then)&&(e.then=t[e.key].then),e},Zf="p",qf=(e,t)=>{var n;return null!=(n=(e=>{var t;return null!=(t=null==e?void 0:e.pluginsByKey)?t:{}})(e)[t])?n:{key:t}},Gf=(e,t)=>{var n,r;return null!=(r=null!=(n=qf(e,t).type)?n:t)?r:""},Wf=(e,t,n)=>{var r;const{activeType:o,inactiveType:i=Gf(e,Zf)}=t,a=null!=(r=null==n?void 0:n.at)?r:e.selection;if(!o||!a)return;const s=Wp(e,Hf(Vf({},n),{match:{type:o}}));s&&o===i||Yp(e,{type:s?i:o},{at:a})},Yf=e=>(t,n={})=>(n[e.key]=t,Uf(Vf({},e),n)),Xf="deserializeAst",Qf=(Yf({editor:{insertData:{format:"application/x-slate-fragment",getFragment:({data:e})=>{const t=decodeURIComponent(window.atob(e));let n;try{n=JSON.parse(t)}catch(e){}return nh()(n)}}},key:Xf}),(e,t)=>{var n;const{selection:r}=e;if(!r)return!1;const o=null==(n=((e,t={})=>yp(e,Hf(Vf({},t),{block:!0})))(e,t))?void 0:n[1];return!!o&&(Rp(e,r.focus,o)||Bp(e.selection)&&Rp(e,r.anchor,o))}),Jf="editorProtocol",em=(Yf({key:Jf,withOverrides:e=>{const{deleteBackward:t,deleteForward:n,deleteFragment:r}=e,o=()=>{Qf(e)&&(e=>{const t=Ap(e);t&&Object.keys(t).forEach((t=>{Np(e,t)}))})(e)};return e.deleteBackward=e=>{t(e),o()},e.deleteForward=e=>{n(e),o()},e.deleteFragment=e=>{r(e),o()},e}}),Yf({key:"history",withOverrides:e=>(0,np.VC)(e)}),"inline-void"),tm=(Yf({key:em,withOverrides:e=>{const{isInline:t,isVoid:n,markableVoid:r}=e,o=[],i=[],a=[];return e.plugins.forEach((e=>{e.isInline&&i.push(e.type),e.isVoid&&o.push(e.type),e.isMarkableVoid&&a.push(e.type)})),e.isInline=e=>!!i.includes(e.type)||t(e),e.isVoid=e=>!!o.includes(e.type)||n(e),e.markableVoid=e=>!!a.includes(e.type)||r(e),e}}),(e,t)=>{const n=[];return[...e.plugins].reverse().forEach((e=>{var r;const o=null==(r=e.inject.pluginsByKey)?void 0:r[t.key];o&&n.push(o)})),[t,...n]}),nm="insertData",rm=(Yf({key:nm,withOverrides:e=>{const{insertData:t}=e;return e.insertData=n=>{const r=[...e.plugins].reverse().some((t=>{const r=t.editor.insertData;if(!r)return!1;const o=tm(e,t),{format:i,getFragment:a}=r;if(!i)return!1;let s=n.getData(i);if(!s)return;if(!((e,{data:t,dataTransfer:n})=>e.every((e=>{var r,o;const i=null==(o=null==(r=e.editor)?void 0:r.insertData)?void 0:o.query;return!i||i({data:t,dataTransfer:n})})))(o,{data:s,dataTransfer:n}))return!1;s=((e,{data:t,dataTransfer:n})=>(e.forEach((e=>{var r,o;const i=null==(o=null==(r=e.editor)?void 0:r.insertData)?void 0:o.transformData;i&&(t=i(t,{dataTransfer:n}))})),t))(o,{data:s,dataTransfer:n});let l=null==a?void 0:a({data:s,dataTransfer:n});return!!(null==l?void 0:l.length)&&(l=((e,t)=>{var n=t,{fragment:r}=n,o=$f(n,["fragment"]);return e.forEach((e=>{var t,n;const i=null==(n=null==(t=e.editor)?void 0:t.insertData)?void 0:n.transformFragment;i&&(r=i(r,o))})),r})(o,{data:s,dataTransfer:n,fragment:l}),0!==l.length&&(((e,t,n)=>{var r=n,{fragment:o}=r,i=$f(r,["fragment"]);_p(e,(()=>{t.some((e=>{var t,n,r;return!0===(null==(r=null==(n=null==(t=e.editor)?void 0:t.insertData)?void 0:n.preInsert)?void 0:r.call(n,o,i))})),e.insertFragment(o)}))})(e,o,{data:s,dataTransfer:n,fragment:l}),!0))}));r||t(n)},e}}),"length"),om=(Yf({key:rm,withOverrides:(e,{options:t})=>{const{apply:n}=e;return e.apply=r=>{_p(e,(()=>{if(n(r),t.maxLength){const n=Dp(e,[]).length;if(n>t.maxLength){const r=n-t.maxLength;e.delete({distance:r,reverse:!0,unit:"character"})}}}))},e}}),({apply:e,node:t,path:n=[],query:r,source:o})=>{Hp([t,n],r)&&e(t,o instanceof Function?o():o),jp(t)&&t.children.forEach(((t,i)=>{om({apply:e,node:t,path:n.concat([i]),query:r,source:o})}))}),im=(e,t)=>{var n;return null!=(n=qf(e,t).options)?n:{}},am=(e,t,n)=>(e=((e,t,n)=>{const r=((e,t)=>e.some(((e,n,r)=>{const o=r[n-1];return 0!==n&&t(e)!==t(o)})))(e,t),{fragment:o}=e.reduce(((e,o)=>{if(r&&t(o)){let t=e.precedingBlock;t||(t=n(),e.precedingBlock=t,e.fragment.push(t)),t.children.push(o)}else e.fragment.push(o),e.precedingBlock=null;return e}),{fragment:[],precedingBlock:null});return o})(e=(e=>0===e.length?[{text:""}]:e)(e),t,n),e=e.map((e=>fp(e)?Hf(Vf({},e),{children:am(e.children,t,n)}):e))),sm=(e,{descendants:t})=>{const n=(e=>t=>Sp(t)||fp(t)&&e.isInline(t))(e),r=Gf(e,Zf),o=(i=r,()=>({children:[],type:i}));var i;return am(t,n,o)},lm={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",insertSoftBreak:"shift+enter",italic:"mod+i",moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",splitBlock:"enter",tab:"tab",undo:"mod+z",untab:"shift+tab"},cm={deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},um={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},dm=e=>{const t=lm[e],n=cm[e],r=um[e],o=t&&(0,Zh.TB)(t),i=n&&(0,Zh.TB)(n),a=r&&(0,Zh.TB)(r);return e=>!!(null==o?void 0:o(e))||(!(!ih||!(null==i?void 0:i(e)))||!(ih||!(null==a?void 0:a(e))))},pm=(dm("bold"),dm("compose"),dm("deleteBackward"),dm("deleteForward"),dm("deleteLineBackward"),dm("deleteLineForward"),dm("deleteWordBackward"),dm("deleteWordForward"),dm("extendBackward"),dm("extendForward"),dm("extendLineBackward"),dm("extendLineForward"),dm("italic"),dm("moveBackward"),dm("moveForward"),dm("moveLineBackward"),dm("moveLineForward"),dm("moveWordBackward"),dm("moveWordForward"),dm("redo"),dm("insertSoftBreak"),dm("splitBlock"),dm("transposeCharacter"),dm("undo"),"nodeFactory"),hm=(Yf({key:pm,withOverrides:e=>(e.blockFactory=t=>Vf({children:[{text:""}],type:Gf(e,Zf)},t),e.childrenFactory=()=>[e.blockFactory()],e)}),"prevSelection"),fm=(Yf({handlers:{onKeyDown:e=>t=>{t.persist(),e.currentKeyboardEvent=t}},key:hm,withOverrides:e=>{const{apply:t}=e;return e.apply=n=>{if("set_selection"===n.type){const{properties:r}=n;return e.prevSelection=r,t(n),void(e.currentKeyboardEvent=null)}t(n)},e}}),Mf("event-editor")({blur:null,focus:null,last:null})),mm=fm.set,gm=fm.get,vm=(fm.use,"event-editor"),ym=(Yf({handlers:{onBlur:e=>()=>{gm.focus()===e.id&&mm.focus(null),mm.blur(e.id),document.dispatchEvent(new CustomEvent("blur-editor-event",{detail:{id:e.id}}))},onFocus:e=>()=>{mm.focus(e.id),document.dispatchEvent(new CustomEvent("focus-editor-event",{detail:{id:e.id}}))}},key:vm}),new Set(["A","ABBR","B","BDI","BDO","BR","CITE","CODE","DATA","DFN","EM","I","KBD","MARK","Q","S","SAMP","SMALL","SPAN","STRONG","SUB","SUP","TIME","U","VAR","WBR","IMG","MAP","TRACK","VIDEO","EMBED","IFRAME","OBJECT","PICTURE","PORTAL","SOURCE","svg","math","CANVAS","DEL","INS","BUTTON","INPUT","LABEL","METER","OUTPUT","PROGRESS","SELECT","TEXTAREA","ACRONYM","BIG","CONTENT","FONT","IMG","MARQUEE","MENUITEM","NOBR","SHADOW","STRIKE","TT"])),bm=e=>e.nodeType===Node.ELEMENT_NODE,wm=e=>{if(!bm(e))return!1;const t=e,n=ym.has(t.tagName),r=t.style.display.split(" ")[0];return""===r?n:!!r.startsWith("inline")||("inherit"===r&&t.parentElement?wm(t.parentElement):!!["contents","initial","none","revert","revert-layer","unset"].includes(r)&&n)},xm=e=>e.nodeType===Node.TEXT_NODE,_m=e=>{if(!bm(e))return!1;return!wm(e)},Sm=e=>{e.inlineFormattingContext=null},Cm=(e,t)=>{const n=e.textContent||"",r=""===n.trim();!t.inlineFormattingContext&&r||(e=>{e.inlineFormattingContext?e.inlineFormattingContext.atStart=!1:e.inlineFormattingContext={atStart:!0,lastHasTrailingWhiteSpace:!1}})(t);const{whiteSpaceRule:o}=t,i="normal"!==o?"collapse":!t.inlineFormattingContext||t.inlineFormattingContext.atStart||t.inlineFormattingContext.lastHasTrailingWhiteSpace?"all":"collapse",a="normal"===o?"collapse":(e=>{let t=e;for(;;){if(t.nextSibling)t=t.nextSibling;else{if(t=t.parentElement,t&&_m(t))return!0;t=(null==t?void 0:t.nextSibling)||null}if(!t)return!0;if(_m(t))return!0;if((t.textContent||"").length>0)return!1}})(e)?"single-newline":"collapse",s={normal:!0,pre:!1,"pre-line":!0}[o],l=((e,{shouldCollapseWhiteSpace:t=!0,trimEnd:n="collapse",trimStart:r="collapse",whiteSpaceIncludesNewlines:o=!0}={})=>("all"===r&&(e=e.replace(/^\s+/,"")),"single-newline"===n&&(e=e.replace(/\n$/,"")),t&&(e=o?e.replaceAll(/\s+/g," "):(e=(e=e.replaceAll(/[^\S\n\r]+/g," ")).replaceAll(/^[^\S\n\r]+/gm,"")).replaceAll(/[^\S\n\r]+$/gm,"")),e))(n||"",{shouldCollapseWhiteSpace:s,trimEnd:a,trimStart:i,whiteSpaceIncludesNewlines:"pre-line"!==o});t.inlineFormattingContext&&s&&(t.inlineFormattingContext.lastHasTrailingWhiteSpace=l.endsWith(" ")),e.textContent=l},Em=(e,t)=>{bm(e)?zm(e,t):xm(e)?Cm(e,t):km(e,t)},km=(e,t)=>{const n=Array.from(e.childNodes);for(const e of n)Em(e,t)},zm=(e,t)=>{const n=wm(e),r=t.whiteSpaceRule,o=(e=>{const t=e.style.whiteSpace;switch(t){case"normal":case"nowrap":return"normal";case"pre":case"pre-wrap":case"break-spaces":return"pre";case"pre-line":return"pre-line"}return"PRE"===e.tagName?"pre":"initial"===t?"normal":null})(e);o&&(t.whiteSpaceRule=o),n||Sm(t),km(e,t),n||Sm(t),t.whiteSpaceRule=r},Pm=(e,t)=>Array.from(t.childNodes).flatMap(Im(e)),Dm=(e,t,{deserializeLeaf:n,element:r})=>{var o;const{deserializeHtml:i,isElement:a,isLeaf:s,type:l}=t;if(!i)return;const{attributeNames:c,isElement:u,isLeaf:d,query:p,rules:h}=i;let{getNode:f}=i;const m=u||a,g=d||s;if(!n&&!m)return;if(n&&!g)return;if(h){if(!h.some((({validAttribute:e,validClassName:n,validNodeName:o="*",validStyle:i})=>{var a;if(o){const e=nh()(o);if(e.length>0&&!e.includes(r.nodeName)&&"*"!==o)return!1}if(n&&!r.classList.contains(n))return!1;if(i)for(const[e,n]of Object.entries(i)){if(!nh()(n).includes(r.style[e])&&"*"!==n)return;if("*"===n&&!r.style[e])return;const o=null==(a=t.inject.props)?void 0:a.defaultNodeValue;if(o&&o===r.style[e])return!1}if(e)if("string"==typeof e){if(!r.getAttributeNames().includes(e))return!1}else for(const[t,n]of Object.entries(e)){const e=nh()(n),o=r.getAttribute(t);if(!hh(o)||!e.includes(o))return!1}return!0})))return}if(p&&!p(r))return;if(!f)if(m)f=()=>({type:l});else{if(!g)return;f=()=>({[l]:!0})}let v=null!=(o=f(r,{}))?o:{};if(0===Object.keys(v).length)return;if(tm(e,t).forEach((e=>{var t,n;const o=null==(n=null==(t=e.deserializeHtml)?void 0:t.getNode)?void 0:n.call(t,r,v);o&&(v=Vf(Vf({},v),o))})),c){const e={},t=r.getAttributeNames();for(const n of t)c.includes(n)&&(e[n]=r.getAttribute(n));Object.keys(e).length>0&&(v.attributes=e)}return Hf(Vf({},i),{node:v})},Am=(e,t)=>{var n;const r=((e,t)=>{let n;return[...e.plugins].reverse().some((r=>(n=Dm(e,r,{element:t}),!!n))),n})(e,t);if(r){const{node:o,withoutChildren:i}=r;let a=null!=(n=o.children)?n:Pm(e,t);return(0===a.length||i)&&(a=[{text:""}]),(0,Rf.tZ)("element",o,a)}},Tm=(e,t)=>{const n=((e,t)=>{let n={};return[...e.plugins].reverse().forEach((r=>{const o=Dm(e,r,{deserializeLeaf:!0,element:t});o&&(n=Vf(Vf({},n),o.node))})),n})(e,t);return Pm(e,t).reduce(((e,t)=>{if(!t)return e;if(fp(t))Object.keys(n).length>0&&(r={node:t,query:{filter:([e])=>Sp(e)},source:n},om(Hf(Vf({},r),{apply:Lh()}))),e.push(t);else{const r=Vf({},n);Sp(t)&&t.text&&Object.keys(r).forEach((e=>{r[e]&&t[e]&&(r[e]=t[e])})),e.push((0,Rf.tZ)("text",r,t))}var r;return e}),[])},Im=e=>t=>{const n=(e=>{if(xm(e))return e.textContent||""})(t);if(n)return n;if(!bm(t))return null;const r=(e=>{if("BR"===e.nodeName)return"\n"})(t);if(r)return r;const o=((e,t)=>{if("BODY"===t.nodeName)return(0,Rf.tZ)("fragment",{},Pm(e,t))})(e,t);if(o)return o;const i=Am(e,t);return i||Tm(e,t)},Mm=(e,{collapseWhiteSpace:t=!0,element:n})=>{"string"==typeof n&&(n=(e=>{const t=document.createElement("body");return t.innerHTML=e,t})(n)),t&&(n=(e=>{const t=e.cloneNode(!0);return zm(t,{inlineFormattingContext:null,whiteSpaceRule:"normal"}),t})(n));const r=((e,t)=>Im(e)(t))(e,n);return sm(e,{descendants:r})},Rm=e=>(new DOMParser).parseFromString(e,"text/html"),Fm="deserializeHtml",Nm=(Yf({key:Fm,then:e=>({editor:{insertData:{format:"text/html",getFragment:({data:t})=>{const n=Rm(t);return Mm(e,{element:n.body})}}}})}),(e,t)=>{if(!t(e))return;let n=e.firstChild;for(;n;){const r=n,o=n.previousSibling;n=n.nextSibling,Nm(r,t),r.previousSibling||r.nextSibling||r.parentNode||!n||o===n.previousSibling||!n.parentNode?r.previousSibling||r.nextSibling||r.parentNode||!n||n.previousSibling||n.nextSibling||n.parentNode||(o?n=o.nextSibling?o.nextSibling.nextSibling:null:e.firstChild&&(n=e.firstChild.nextSibling)):n=o?o.nextSibling:e.firstChild}}),Om=(e,t)=>{Nm(e,(e=>!bm(e)||t(e)))},jm=(e,t)=>!!((e,t)=>{let n=null;return Om(e,(e=>!t(e)||(n=e,!1))),n})(e,t),Lm=e=>()=>e;Yf({key:"react",withOverrides:e=>(e.hasEditableTarget=Lm(!1),e.hasRange=Lm(!1),e.hasSelectableTarget=Lm(!1),e.hasTarget=Lm(!1),e.insertData=Lm(),e.insertFragmentData=Lm(),e.insertTextData=Lm(!1),e.isTargetInsideNonReadonlyVoid=Lm(!1),e.setFragmentData=Lm(),e)});function Bm(){return Bm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bm.apply(this,arguments)}function Km(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}const Vm=(0,l.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=l.Children.toArray(n),i=o.find(Um);if(i){const e=i.props.children,n=o.map((t=>t===i?l.Children.count(e)>1?l.Children.only(null):(0,l.isValidElement)(e)?e.props.children:null:t));return(0,l.createElement)(Hm,Bm({},r,{ref:t}),(0,l.isValidElement)(e)?(0,l.cloneElement)(e,void 0,n):null)}return(0,l.createElement)(Hm,Bm({},r,{ref:t}),n)}));Vm.displayName="Slot";const Hm=(0,l.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,l.isValidElement)(n)?(0,l.cloneElement)(n,{...Zm(r,n.props),ref:t?Km(t,n.ref):n.ref}):l.Children.count(n)>1?l.Children.only(null):null}));Hm.displayName="SlotClone";const $m=({children:e})=>(0,l.createElement)(l.Fragment,null,e);function Um(e){return(0,l.isValidElement)(e)&&e.type===$m}function Zm(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}var qm,Gm=Object.defineProperty,Wm=Object.defineProperties,Ym=Object.getOwnPropertyDescriptors,Xm=Object.getOwnPropertySymbols,Qm=Object.prototype.hasOwnProperty,Jm=Object.prototype.propertyIsEnumerable,eg=(e,t,n)=>t in e?Gm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tg=(e,t)=>{for(var n in t||(t={}))Qm.call(t,n)&&eg(e,n,t[n]);if(Xm)for(var n of Xm(t))Jm.call(t,n)&&eg(e,n,t[n]);return e},ng=(e,t)=>Wm(e,Ym(t)),rg=(e,t)=>{var n={};for(var r in e)Qm.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Xm)for(var r of Xm(e))t.indexOf(r)<0&&Jm.call(e,r)&&(n[r]=e[r]);return n},og=e=>l.forwardRef(((t,n)=>{var r=t,{as:o,asChild:i=!1}=r,a=rg(r,["as","asChild"]);const s=i?Vm:o||e;return l.createElement(s,tg({ref:n},a))})),ig=og("div"),ag=og("span"),sg=(...e)=>l.useCallback(((...e)=>t=>e.forEach((e=>((e,t)=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})(e,t))))(...e),e),lg=e=>{const t=og(e);return({propsHook:e,stateHook:n}={})=>l.forwardRef(((r,o)=>{var i,a,s=r,{asChild:c,className:u,getClassName:d,options:p,state:h}=s,f=rg(s,["asChild","className","getClassName","options","state"]);const m=hh(h)?h:n?n(p):void 0,{hidden:g,props:v,ref:y}=e?e(m):{hidden:!1,props:{},ref:null},b=sg(o,y),w=hh(null==v?void 0:v.className)||hh(u)?Hh(null==v?void 0:v.className,u):void 0,x=(null==v?void 0:v.style)||f.style?tg(tg({},null==v?void 0:v.style),f.style):void 0;return!c&&g?null:l.createElement(t,tg(tg(ng(tg({asChild:c,ref:b},v),{className:w,style:x}),f),null!=(a=null==(i=f.setProps)?void 0:i.call(f,null!=v?v:{}))?a:{}))}))};"undefined"!=typeof window&&void 0!==(null==(qm=window.document)?void 0:qm.createElement)?l.useLayoutEffect:l.useEffect;function cg(e){return l.forwardRef(e)}n(91747);var ug=Object.defineProperty,dg=Object.defineProperties,pg=Object.getOwnPropertyDescriptors,hg=Object.getOwnPropertySymbols,fg=Object.prototype.hasOwnProperty,mg=Object.prototype.propertyIsEnumerable,gg=(e,t,n)=>t in e?ug(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vg=(e,t)=>{for(var n in t||(t={}))fg.call(t,n)&&gg(e,n,t[n]);if(hg)for(var n of hg(t))mg.call(t,n)&&gg(e,n,t[n]);return e},yg=(e,t)=>dg(e,pg(t)),bg=(e,t)=>{var n={};for(var r in e)fg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&hg)for(var r of hg(e))t.indexOf(r)<0&&mg.call(e,r)&&(n[r]=e[r]);return n},wg=l.forwardRef(((e,t)=>{const{props:n,ref:r}=(e=>{const t=e,{attributes:n,editor:r,element:o,elementToAttributes:i,nodeProps:a}=t,s=bg(t,["attributes","editor","element","elementToAttributes","nodeProps"]);return{props:yg(vg(vg(vg(vg({},n),s),a),null==i?void 0:i(o)),{className:Hh(e.className,null==a?void 0:a.className)}),ref:sg(e.ref,n.ref)}})(yg(vg({},e),{ref:t}));return l.createElement(ig,yg(vg({},n),{ref:r}))}));wg.displayName="PlateElement";var xg=l.forwardRef(((e,t)=>{const{props:n,ref:r}=(e=>{const t=e,{attributes:n,editor:r,leaf:o,leafToAttributes:i,nodeProps:a,text:s}=t,l=bg(t,["attributes","editor","leaf","leafToAttributes","nodeProps","text"]);return{props:yg(vg(vg(vg(vg({},n),l),a),null==i?void 0:i(o)),{className:Hh(e.className,null==a?void 0:a.className)}),ref:sg(e.ref,n.ref)}})(yg(vg({},e),{ref:t}));return l.createElement(ag,yg(vg({},n),{ref:r}))}));xg.displayName="PlateLeaf";var _g=(e,{options:{clear:t,hotkey:n},type:r})=>o=>{o.defaultPrevented||n&&(0,Zh.P6)(n,o)&&(o.preventDefault(),Fh(e,{clear:t,key:r}))},Sg="bold",Cg=Yf({deserializeHtml:{query:e=>!jm(e,(e=>"normal"===e.style.fontWeight)),rules:[{validNodeName:["STRONG","B"]},{validStyle:{fontWeight:["600","700","bold"]}}]},handlers:{onKeyDown:_g},isLeaf:!0,key:Sg,options:{hotkey:"mod+b"}}),Eg=Yf({deserializeHtml:{query(e){const t=ah(e,"P");return"Consolas"!==(null==t?void 0:t.style.fontFamily)&&!ah(e,"PRE")},rules:[{validNodeName:["CODE"]},{validStyle:{fontFamily:"Consolas"}}]},handlers:{onKeyDown:_g},isLeaf:!0,key:"code",options:{hotkey:"mod+e"}}),kg="italic",zg=Yf({deserializeHtml:{query:e=>!jm(e,(e=>"normal"===e.style.fontStyle)),rules:[{validNodeName:["EM","I"]},{validStyle:{fontStyle:"italic"}}]},handlers:{onKeyDown:_g},isLeaf:!0,key:kg,options:{hotkey:"mod+i"}}),Pg=Yf({deserializeHtml:{query:e=>!jm(e,(e=>"none"===e.style.textDecoration)),rules:[{validNodeName:["S","DEL","STRIKE"]},{validStyle:{textDecoration:"line-through"}}]},handlers:{onKeyDown:_g},isLeaf:!0,key:"strikethrough",options:{hotkey:"mod+shift+x"}}),Dg=Yf({deserializeHtml:{rules:[{validNodeName:["SUB"]},{validStyle:{verticalAlign:"sub"}}]},handlers:{onKeyDown:_g},isLeaf:!0,key:"subscript",options:{clear:"superscript",hotkey:"mod+,"}}),Ag=Yf({deserializeHtml:{rules:[{validNodeName:["SUP"]},{validStyle:{verticalAlign:"super"}}]},handlers:{onKeyDown:_g},isLeaf:!0,key:"superscript",options:{clear:"subscript",hotkey:"mod+."}}),Tg="underline",Ig=Yf({deserializeHtml:{query:e=>!jm(e,(e=>"none"===e.style.textDecoration)),rules:[{validNodeName:["U"]},{validStyle:{textDecoration:["underline"]}}]},handlers:{onKeyDown:_g},isLeaf:!0,key:Tg,options:{hotkey:"mod+u"}});Yf({key:"basicMarks",plugins:[Cg(),Eg(),zg(),Pg(),Dg(),Ag(),Ig()]});let Mg=0;function Rg(e,t){const n="atom"+ ++Mg,r={toString(){return this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?r.read=e:(r.init=e,r.read=Fg,r.write=Ng),t&&(r.write=t),r}function Fg(e){return e(this)}function Ng(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}const Og=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,jg=e=>"init"in e,Lg=e=>!!e.write,Bg=Symbol("CONTINUE_PROMISE"),Kg="pending",Vg=new WeakMap,Hg=e=>"v"in e||"e"in e,$g=e=>{if("e"in e)throw e.e;if(!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},Ug=e=>{const t=e.v;return"object"==typeof(n=t)&&null!==n&&Bg in n&&t.status===Kg?t:null;var n},Zg=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then((()=>{n.p.delete(e)}),(()=>{n.p.delete(e)})))},qg=()=>[new Map,new Map,new Set],Gg=(e,t,n)=>{e[0].has(t)||e[0].set(t,new Set),e[1].set(t,n)},Wg=(e,t)=>{e[2].add(t)},Yg=e=>{for(;e[1].size||e[2].size;){e[0].clear();const t=new Set(e[1].values());e[1].clear();const n=new Set(e[2]);e[2].clear(),t.forEach((e=>{var t;return null==(t=e.m)?void 0:t.l.forEach((e=>e()))})),n.forEach((e=>e()))}},Xg=()=>{const e=new WeakMap;let t;t=new Set;const n=t=>{let n=e.get(t);return n||(n={d:new Map,p:new Set,n:0},e.set(t,n)),n},r=(e,t,r,o=(()=>{}),i=(()=>{}))=>{const a="v"in t,s=t.v,l=Ug(t);if("function"==typeof(null==(c=r)?void 0:c.then))if(l)l!==r&&(l[Bg](r,o),++t.n);else{const a=((e,t,n)=>{if(!Vg.has(e)){let r;const o=new Promise(((i,a)=>{let s=e;const l=e=>t=>{s===e&&(o.status="fulfilled",o.value=t,i(t),n())},c=e=>t=>{s===e&&(o.status="rejected",o.reason=t,a(t),n())};e.then(l(e),c(e)),r=(e,n)=>{e&&(Vg.set(e,o),s=e,e.then(l(e),c(e)),t(),t=n)}}));o.status=Kg,o[Bg]=r,Vg.set(e,o)}return Vg.get(e)})(r,o,i);if(a.status===Kg)for(const r of t.d.keys()){const t=n(r);Zg(e,a,t)}t.v=a,delete t.e}else l&&l[Bg](Promise.resolve(r),o),t.v=r,delete t.e;var c;a&&Object.is(s,t.v)||++t.n},o=(e,t,r,o)=>{var i;if(r===t)throw new Error("[Bug] atom cannot depend on itself");const a=n(t);a.d.set(r,o.n);const s=Ug(a);s&&Zg(t,s,o),null==(i=o.m)||i.t.add(t),e&&((e,t,n)=>{const r=e[0].get(t);r&&r.add(n)})(e,r,t)},i=(e,t,a)=>{const s=n(t);if(!(null==a?void 0:a(t))&&Hg(s)){if(s.m)return s;if(Array.from(s.d).every((([t,n])=>i(e,t,a).n===n)))return s}s.d.clear();let u=!0;const d=l=>{if(Og(t,l)){const e=n(l);if(!Hg(e)){if(!jg(l))throw new Error("no atom init");r(l,e,l.init)}return $g(e)}const d=i(e,l,a);if(u)o(e,t,l,d);else{const e=qg();o(e,t,l,d),c(e,t,s),Yg(e)}return $g(d)};let p,h;const f={get signal(){return p||(p=new AbortController),p.signal},get setSelf(){return Lg(t)||console.warn("setSelf function cannot be used with read-only atom"),!h&&Lg(t)&&(h=(...e)=>{if(u&&console.warn("setSelf function cannot be called in sync"),!u)return l(t,...e)}),h}};try{const e=t.read(d,f);return r(t,s,e,(()=>null==p?void 0:p.abort()),(()=>{if(s.m){const e=qg();c(e,t,s),Yg(e)}})),s}catch(e){return delete s.v,s.e=e,++s.n,s}finally{u=!1}},a=(e,t)=>{const r=[],o=new Set,a=t=>{if(!o.has(t)){o.add(t);for(const r of(t=>{var r,o;const i=n(t),a=new Set(null==(r=i.m)?void 0:r.t);for(const e of i.p)a.add(e);return null==(o=((e,t)=>e[0].get(t))(e,t))||o.forEach((e=>{a.add(e)})),a})(t))t!==r&&a(r);r.push(t)}};a(t);const s=new Set([t]),l=e=>o.has(e);for(let t=r.length-1;t>=0;--t){const a=r[t],u=n(a),d=u.n;let p=!1;for(const e of u.d.keys())if(e!==a&&s.has(e)){p=!0;break}p&&(i(e,a,l),c(e,a,u),d!==u.n&&(Gg(e,a,u),s.add(a))),o.delete(a)}},s=(e,t,...o)=>{const l=t.write((t=>$g(i(e,t))),((o,...i)=>{let l;if(Og(t,o)){if(!jg(o))throw new Error("atom not writable");const t=n(o),s="v"in t,l=t.v,u=i[0];r(o,t,u),c(e,o,t),s&&Object.is(l,t.v)||(Gg(e,o,t),a(e,o))}else l=s(e,o,...i);return Yg(e),l}),...o);return l},l=(e,...t)=>{const n=qg(),r=s(n,e,...t);return Yg(n),r},c=(e,t,n)=>{if(n.m&&!Ug(n)){for(const r of n.d.keys())if(!n.m.d.has(r)){u(e,r).t.add(t),n.m.d.add(r)}for(const r of n.m.d||[])if(!n.d.has(r)){n.m.d.delete(r);const o=d(e,r);null==o||o.t.delete(t)}}},u=(e,r)=>{const o=n(r);if(!o.m){i(e,r);for(const t of o.d.keys()){u(e,t).t.add(r)}if(o.m={l:new Set,d:new Set(o.d.keys()),t:new Set},t.add(r),Lg(r)&&r.onMount){const t=o.m,{onMount:n}=r;Wg(e,(()=>{const o=n(((...t)=>s(e,r,...t)));o&&(t.u=o)}))}}return o.m},d=(e,r)=>{const o=n(r);if(!o.m||o.m.l.size||Array.from(o.m.t).some((e=>{var t;return null==(t=n(e).m)?void 0:t.d.has(r)})))return o.m;{const n=o.m.u;n&&Wg(e,n),delete o.m,t.delete(r);for(const t of o.d.keys()){const n=d(e,t);null==n||n.t.delete(r)}const i=Ug(o);i&&i[Bg](void 0,(()=>{}))}},p={get:e=>$g(i(void 0,e)),set:l,sub:(e,t)=>{const n=qg(),r=u(n,e);Yg(n);const o=r.l;return o.add(t),()=>{o.delete(t);const n=qg();d(n,e),Yg(n)}}};{const o={dev4_get_internal_weak_map:()=>e,dev4_get_mounted_atoms:()=>t,dev4_restore_atoms:e=>{const t=qg();for(const[o,i]of e)if(jg(o)){const e=n(o),s="v"in e,l=e.v;r(o,e,i),c(t,o,e),s&&Object.is(l,e.v)||(Gg(t,o,e),a(t,o))}Yg(t)}};Object.assign(p,o)}return p};let Qg;const Jg=(0,l.createContext)(void 0),ev=e=>{const t=(0,l.useContext)(Jg);return(null==e?void 0:e.store)||t||(Qg||(Qg=Xg(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Qg),globalThis.__JOTAI_DEFAULT_STORE__!==Qg&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),Qg)},tv=l.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)});function nv(e,t){const n=ev(t),[[r,o,i],a]=(0,l.useReducer)((t=>{const r=n.get(e);return Object.is(t[0],r)&&t[1]===n&&t[2]===e?t:[r,n,e]}),void 0,(()=>[n.get(e),n,e]));let s=r;o===n&&i===e||(a(),s=n.get(e));const c=null==t?void 0:t.delay;return(0,l.useEffect)((()=>{const t=n.sub(e,(()=>{"number"!=typeof c?a():setTimeout(a,c)}));return a(),t}),[n,e,c]),(0,l.useDebugValue)(s),"function"==typeof(null==(u=s)?void 0:u.then)?tv(s):s;var u}function rv(e,t){const n=ev(t);return(0,l.useCallback)(((...t)=>{if(!("write"in e))throw new Error("not writable atom");return n.set(e,...t)}),[n,e])}Symbol("RESET");const ov=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),iv=new WeakMap;function av(e,t,n=Object.is){return((e,t,n,r)=>{const o=ov((()=>new WeakMap),iv,t),i=ov((()=>new WeakMap),o,n);return ov(e,i,r)})((()=>{const r=Symbol(),o=Rg((i=>{const a=i(o);return(([e,o])=>{if(o===r)return t(e);const i=t(e,o);return n(o,i)?o:i})([i(e),a])}));return o.init=r,o}),e,t,n)}const sv=e=>"function"==typeof(null==e?void 0:e.then);!function(e=(()=>{try{return window.localStorage}catch(e){return void("undefined"!=typeof window&&console.warn(e))}}),t){var n;let r,o;const i={getItem:(n,i)=>{var a,s;const l=e=>{if(r!==(e=e||"")){try{o=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return i}r=e}return o},c=null!=(s=null==(a=e())?void 0:a.getItem(n))?s:null;return sv(c)?c.then(l):l(c)},setItem:(n,r)=>{var o;return null==(o=e())?void 0:o.setItem(n,JSON.stringify(r,null==t?void 0:t.replacer))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let a;try{a=null==(n=e())?void 0:n.subscribe}catch(e){}var s;!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),a&&(i.subscribe=(s=a,(e,t,n)=>s(e,(e=>{let r;try{r=JSON.parse(e||"")}catch(e){r=n}t(r)}))))}();const lv=new WeakMap;const cv=e=>{let t=lv.get(e);return t||(t=new WeakSet,lv.set(e,t)),t};var uv=Object.defineProperty,dv=Object.defineProperties,pv=Object.getOwnPropertyDescriptors,hv=Object.getOwnPropertySymbols,fv=Object.prototype.hasOwnProperty,mv=Object.prototype.propertyIsEnumerable,gv=(e,t,n)=>t in e?uv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vv=(e,t)=>{for(var n in t||(t={}))fv.call(t,n)&&gv(e,n,t[n]);if(hv)for(var n of hv(t))mv.call(t,n)&&gv(e,n,t[n]);return e},yv=(e,t)=>dv(e,pv(t)),bv=(e,t)=>{var n={};for(var r in e)fv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&hv)for(var r of hv(e))t.indexOf(r)<0&&mv.call(e,r)&&(n[r]=e[r]);return n},wv=e=>"function"==typeof e?{__fn:e}:e,xv=e=>{const t=Rg(wv(e));return Rg((e=>{return(n=e(t))&&"object"==typeof n&&"__fn"in n?n.__fn:n;var n}),((e,n,r)=>n(t,wv(r))))},_v=(e,t,n={})=>{const r=[];for(const n of Object.keys(e)){const o=t[n];void 0!==o&&r.push([e[n],o])}!function(e,t){const n=ev(t),r=cv(n);for(const[o,i]of e)r.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(o),n.set(o,i))}(r,n)},Sv=(e,t)=>`${e}:${t}`,Cv="provider",Ev=l.createContext(new Map),kv=e=>{var t=e,{initialValues:n,children:r,store:o,atoms:i}=t,a=bv(t,["initialValues","children","store","atoms"]);return _v(i,vv(vv({},n),a),{store:o}),((e,t,{store:n}={})=>{for(const r of Object.keys(e)){const o=t[r],i=rv(e[r],{store:n});l.useEffect((()=>{null!=o&&i(o)}),[i,o])}})(i,a,{store:o}),l.createElement(l.Fragment,null,r)},zv=(e="")=>e.length>0?e[0].toUpperCase()+e.slice(1):"",Pv=(e,t)=>Object.fromEntries(Object.entries(e).map((([e,n])=>[e,(e={})=>n(vv(vv({},t),e))]))),Dv=(e={})=>"string"==typeof e?{scope:e}:e,Av=(e,{name:t,delay:n,effect:r,extend:o})=>{const i=((e="")=>`${zv(e)}Provider`)(t),a=((e="")=>`use${zv(e)}Store`)(t),s=((e="")=>e.length>0?`${e}Store`:"store")(t),c={},u={},d={};for(const[t,n]of Object.entries(e)){const e=(p=n)&&"object"==typeof p&&"read"in p&&"function"==typeof p.read?n:xv(n);c[t]=e;const r="write"in e;d[t]=r,r&&(u[t]=e)}var p;const h=vv({},c);if(o){const e=o(c);for(const[t,n]of Object.entries(e))h[t]=n,d[t]="write"in n}const f={},m={},g={},v=(e={})=>{const{scope:n,store:r,warnIfNoStore:o=!0}=Dv(e),i=((e,t="provider",n=!0)=>{var r;const o=l.useContext(Ev),i=null!=(r=o.get(Sv(e,t)))?r:o.get(Sv(e,Cv));return!i&&n&&console.warn(`Tried to access jotai store '${e}' outside of a matching provider.`),i})(t,n,!r&&o);return null!=r?r:i},y=(e,t)=>{var r;const o=Dv(t);return nv(e,{store:v(vv({warnIfNoStore:!1},o)),delay:null!=(r=o.delay)?r:n})},b=(e,t)=>rv(e,{store:v(t)}),w=(e,t)=>{const r=v(t),{delay:o=n}=Dv(t);return function(e,t){return[nv(e,t),rv(e,t)]}(e,{store:r,delay:o})};for(const e of Object.keys(h)){const t=h[e],n=d[e];f[e]=(e={})=>y(t,e),n&&(m[e]=(e={})=>b(t,e),g[e]=(e={})=>w(t,e))}const x=((e,t,n={})=>{const r=n.effect;return n=>{var o=n,{store:i,scope:a,children:s,resetKey:c}=o,u=bv(o,["store","scope","children","resetKey"]);const[d,p]=l.useState(Xg());l.useEffect((()=>{c&&p(Xg())}),[c]);const h=l.useContext(Ev),f=l.useMemo((()=>{const t=new Map(h);return a&&t.set(Sv(e,a),d),t.set(Sv(e,Cv),d),t}),[h,a,d]);return l.createElement(Ev.Provider,{value:f},l.createElement(kv,vv({store:d,atoms:t},u),!!r&&l.createElement(r,null),s))}})(t,u,{effect:r});return{[i]:x,[a]:(e={})=>({get:yv(vv({},Pv(f,Dv(e))),{atom:(t,n)=>y(t,vv(vv({},Dv(e)),Dv(n)))}),set:yv(vv({},Pv(m,Dv(e))),{atom:(t,n)=>b(t,vv(vv({},Dv(e)),Dv(n)))}),use:yv(vv({},Pv(g,Dv(e))),{atom:(t,n)=>w(t,vv(vv({},Dv(e)),Dv(n)))}),store:t=>v(vv(vv({},Dv(e)),Dv(t)))}),[s]:{atom:h,name:t},name:t}};var Tv=["shift","alt","meta","mod","ctrl"],Iv={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Mv(e){return(Iv[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}"undefined"!=typeof document&&(document.addEventListener("keydown",(function(e){void 0!==e.key&&Fv([Mv(e.key),Mv(e.code)])})),document.addEventListener("keyup",(function(e){void 0!==e.key&&Nv([Mv(e.key),Mv(e.code)])}))),"undefined"!=typeof window&&window.addEventListener("blur",(function(){Rv.clear()}));var Rv=new Set;function Fv(e){var t=Array.isArray(e)?e:[e];Rv.has("meta")&&Rv.forEach((function(e){return!function(e){return Tv.includes(e)}(e)&&Rv.delete(e.toLowerCase())})),t.forEach((function(e){return Rv.add(e.toLowerCase())}))}function Nv(e){var t=Array.isArray(e)?e:[e];"meta"===e?Rv.clear():t.forEach((function(e){return Rv.delete(e.toLowerCase())}))}"undefined"!=typeof window?l.useLayoutEffect:l.useEffect;var Ov=n(6907),jv=n.n(Ov),Lv=n(23279),Bv=n.n(Lv),Kv=n(23493),Vv=n.n(Kv);const Hv=e=>"object"==typeof e&&null!=e&&1===e.nodeType,$v=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Uv=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return $v(n.overflowY,t)||$v(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Zv=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,qv=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},Gv=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!Hv(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let f=e;for(;Hv(f)&&d(f);){if(f=qv(f),f===p){h.push(f);break}null!=f&&f===document.body&&Uv(f)&&!Uv(document.documentElement)||null!=f&&Uv(f,u)&&h.push(f)}const m=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:y}=window,{height:b,width:w,top:x,right:_,bottom:S,left:C}=e.getBoundingClientRect(),{top:E,right:k,bottom:z,left:P}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let D="start"===s||"nearest"===s?x-E:"end"===s?S+z:x+b/2-E+z,A="center"===l?C+w/2-P+k:"end"===l?_+k:C-P;const T=[];for(let e=0;e<h.length;e++){const t=h[e],{height:n,width:r,top:o,right:i,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===a&&x>=0&&C>=0&&S<=g&&_<=m&&x>=o&&S<=c&&C>=u&&_<=i)return T;const d=getComputedStyle(t),f=parseInt(d.borderLeftWidth,10),E=parseInt(d.borderTopWidth,10),k=parseInt(d.borderRightWidth,10),z=parseInt(d.borderBottomWidth,10);let P=0,I=0;const M="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-k:0,R="offsetHeight"in t?t.offsetHeight-t.clientHeight-E-z:0,F="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,N="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)P="start"===s?D:"end"===s?D-g:"nearest"===s?Zv(y,y+g,g,E,z,y+D,y+D+b,b):D-g/2,I="start"===l?A:"center"===l?A-m/2:"end"===l?A-m:Zv(v,v+m,m,f,k,v+A,v+A+w,w),P=Math.max(0,P+y),I=Math.max(0,I+v);else{P="start"===s?D-o-E:"end"===s?D-c+z+R:"nearest"===s?Zv(o,c,n,E,z+R,D,D+b,b):D-(o+n/2)+R/2,I="start"===l?A-u-f:"center"===l?A-(u+r/2)+M/2:"end"===l?A-i+k+M:Zv(u,i,r,f,k+M,A,A+w,w);const{scrollLeft:e,scrollTop:a}=t;P=0===N?0:Math.max(0,Math.min(a+P/N,t.scrollHeight-n/N+R)),I=0===F?0:Math.max(0,Math.min(e+I/F,t.scrollWidth-r/F+M)),D+=a-P,A+=e-I}T.push({el:t,top:P,left:I})}return T};function Wv(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(Gv(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of Gv(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}var Yv=n(86254);function Xv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Qv(e){return Qv="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},Qv(e)}function Jv(e){var t=function(e,t){if("object"!==Qv(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Qv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Qv(t)?t:String(t)}function ey(e,t,n){return(t=Jv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ty,ny,ry=(0,l.createContext)(null),oy=()=>{var e=(0,l.useContext)(ry);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},iy=parseInt(l.version.split(".")[0],10),ay="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,sy="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),ly="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),cy="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),uy="undefined"!=typeof navigator&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),dy="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),py="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),hy="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),fy=ly&&"undefined"!=typeof navigator&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),my="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),gy="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),vy="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),yy=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement);"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&null!==(ty=navigator.userAgent.match(/Version\/(\d+)/))&&void 0!==ty&&ty[1]&&parseInt(null===(ny=navigator.userAgent.match(/Version\/(\d+)/))||void 0===ny?void 0:ny[1],10);var by=(!hy||!fy)&&!dy&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,wy=new WeakMap,xy=new WeakMap,_y=new WeakMap,Sy=new WeakMap,Cy=new WeakMap,Ey=new WeakMap,ky=new WeakMap,zy=new WeakMap,Py=new WeakMap,Dy=new WeakMap,Ay=new WeakMap,Ty=new WeakMap,Iy=new WeakMap,My=new WeakMap,Ry=new WeakMap,Fy=new WeakMap,Ny=new WeakMap,Oy=new WeakMap,jy=new WeakMap,Ly=new WeakMap,By=new WeakMap,Ky=Symbol("placeholder"),Vy=Symbol("mark-placeholder"),Hy=globalThis.Text,$y=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,Uy=e=>Zy(e)&&1===e.nodeType,Zy=e=>{var t=$y(e);return!!t&&e instanceof t.Node},qy=e=>{var t=e&&e.anchorNode&&$y(e.anchorNode);return!!t&&e instanceof t.Selection},Gy=e=>Zy(e)&&3===e.nodeType,Wy=(e,t,n)=>{for(var r,{childNodes:o}=e,i=o[t],a=t,s=!1,l=!1;(Zy(r=i)&&8===r.nodeType||Uy(i)&&0===i.childNodes.length||Uy(i)&&"false"===i.getAttribute("contenteditable"))&&(!s||!l);)a>=o.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},Yy=(e,t,n)=>{var[r]=Wy(e,t,n);return r},Xy=e=>{var t="";if(Gy(e)&&e.nodeValue)return e.nodeValue;if(Uy(e)){for(var n of Array.from(e.childNodes))t+=Xy(n);var r=getComputedStyle(e).getPropertyValue("display");"block"!==r&&"list"!==r&&"BR"!==e.tagName||(t+="\n")}return t},Qy=/data-slate-fragment="(.+?)"/m,Jy=e=>{var t=e.getData("text/html"),[,n]=t.match(Qy)||[];return n},eb=e=>null!=e.getSelection?e.getSelection():document.getSelection(),tb=(e,t,n)=>{var{target:r}=t;if(Uy(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=ob.getWindow(e);if(o.contains(r))return ob.hasDOMNode(e,r,{editable:!0});var i=n.find((e=>{var{addedNodes:t,removedNodes:n}=e;for(var o of t)if(o===r||o.contains(r))return!0;for(var i of n)if(i===r||i.contains(r))return!0}));return!(!i||i===t)&&tb(e,i,n)},nb=0;class rb{constructor(){ey(this,"id",void 0),this.id="".concat(nb++)}}var ob={androidPendingDiffs:e=>Oy.get(e),androidScheduleFlush:e=>{var t;null===(t=Ry.get(e))||void 0===t||t()},blur:e=>{var t=ob.toDOMNode(e,e),n=ob.findDocumentOrShadowRoot(e);Ay.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=ob.findDocumentOrShadowRoot(e),r=eb(n);r&&r.rangeCount>0&&r.removeAllRanges(),t&&tp.YR.deselect(e)},findDocumentOrShadowRoot:e=>{var t=ob.toDOMNode(e,e),n=t.getRootNode();return n instanceof Document||n instanceof ShadowRoot?n:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:o}=t;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,a=ob.toSlateNode(e,t.target),s=ob.findPath(e,a);if(tp.W_.isElement(a)&&tp.ML.isVoid(e,a)){var l=o.getBoundingClientRect(),c=e.isInline(a)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,u=tp.ML.point(e,s,{edge:c?"start":"end"}),d=c?tp.ML.before(e,u):tp.ML.after(e,u);if(d)return tp.ML.range(e,d)}var{document:p}=ob.getWindow(e);if(p.caretRangeFromPoint)i=p.caretRangeFromPoint(n,r);else{var h=p.caretPositionFromPoint(n,r);h&&((i=p.createRange()).setStart(h.offsetNode,h.offset),i.setEnd(h.offsetNode,h.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return ob.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},findKey:(e,t)=>{var n=zy.get(t);return n||(n=new rb,zy.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var o=xy.get(r);if(null==o){if(tp.ML.isEditor(r))return n;break}var i=wy.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: ".concat(tp.o4.stringify(t)))},focus:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retries:5};if(!Ay.get(e)){if(t.retries<=0)throw new Error("Could not set focus, editor seems stuck with pending operations");if(e.operations.length>0)setTimeout((()=>{ob.focus(e,{retries:t.retries-1})}),10);else{var n=ob.toDOMNode(e,e),r=ob.findDocumentOrShadowRoot(e);if(r.activeElement!==n){if(e.selection&&r instanceof Document){var o=eb(r),i=ob.toDOMRange(e,e.selection);null==o||o.removeAllRanges(),null==o||o.addRange(i)}e.selection||tp.YR.select(e,tp.ML.start(e,[])),Ay.set(e,!0),n.focus({preventScroll:!0})}}}},getWindow:e=>{var t=_y.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:o=!1}=r,i=ob.toDOMNode(e,e);try{n=Uy(t)?t:t.parentElement}catch(e){if(e instanceof Error&&!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&!(n.closest("[data-slate-editor]")!==i||o&&!n.isContentEditable&&("boolean"!=typeof n.isContentEditable||n.closest('[contenteditable="false"]')!==i)&&!n.getAttribute("data-slate-zero-width"))},hasEditableTarget:(e,t)=>Zy(t)&&ob.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return tp.ML.hasPath(e,n.path)&&tp.ML.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>ob.hasEditableTarget(e,t)||ob.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>Zy(t)&&ob.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!Ty.get(e),isFocused:e=>!!Ay.get(e),isReadOnly:e=>!!Dy.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(Dy.get(e))return!1;var n=ob.hasTarget(e,t)&&ob.toSlateNode(e,t);return tp.W_.isElement(n)&&tp.ML.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=Py.get(e),r=tp.ML.isEditor(t)?Sy.get(e):null==n?void 0:n.get(ob.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(tp.o4.stringify(t)));return r},toDOMPoint:(e,t)=>{var n,[r]=tp.ML.node(e,t.path),o=ob.toDOMNode(e,r);tp.ML.void(e,{at:t})&&(t={path:t.path,offset:0});for(var i=Array.from(o.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,s=0;s<i.length;s++){var l=i[s],c=l.childNodes[0];if(null!=c&&null!=c.textContent){var{length:u}=c.textContent,d=l.getAttribute("data-slate-length"),p=a+(null==d?u:parseInt(d,10)),h=i[s+1];if(t.offset===p&&null!=h&&h.hasAttribute("data-slate-mark-placeholder")){var f,m=h.childNodes[0];n=[m instanceof Hy?m:h,null!==(f=h.textContent)&&void 0!==f&&f.startsWith("\ufeff")?1:0];break}if(t.offset<=p){n=[c,Math.min(u,Math.max(0,t.offset-a))];break}a=p}}if(!n)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(tp.o4.stringify(t)));return n},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,o=tp.e6.isBackward(t),i=ob.toDOMPoint(e,n),a=tp.e6.isCollapsed(t)?i:ob.toDOMPoint(e,r),s=ob.getWindow(e).document.createRange(),[l,c]=o?a:i,[u,d]=o?i:a,p=!!(Uy(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(Uy(u)?u:u.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,p?1:c),s.setEnd(u,h?1:d),s},toSlateNode:(e,t)=>{var n=Uy(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Ey.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(e,t,n)=>{var{exactMatch:r,suppressThrow:o}=n,[i,a]=r?t:(e=>{var[t,n]=e;if(Uy(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=Wy(t,o,r?"backward":"forward"),r=o<n;Uy(t)&&t.childNodes.length;){var i=r?t.childNodes.length-1:0;t=Yy(t,i,r?"backward":"forward")}n=r&&null!=t.textContent?t.textContent.length:0}return[t,n]})(t),s=i.parentNode,l=null,c=0;if(s){var u,d,p=ob.toDOMNode(e,e),h=s.closest('[data-slate-void="true"]'),f=h&&p.contains(h)?h:null,m=s.closest("[data-slate-leaf]"),g=null;if(m){if(l=m.closest('[data-slate-node="text"]')){var v=ob.getWindow(e).document.createRange();v.setStart(l,0),v.setEnd(i,a);var y=v.cloneContents();[...Array.prototype.slice.call(y.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(y.querySelectorAll("[contenteditable=false]"))].forEach((e=>{ly&&!r&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)})),c=y.textContent.length,g=l}}else if(f){for(var b=f.querySelectorAll("[data-slate-leaf]"),w=0;w<b.length;w++){var x=b[w];if(ob.hasDOMNode(e,x)){m=x;break}}m?(l=m.closest('[data-slate-node="text"]'),c=(g=m).textContent.length,g.querySelectorAll("[data-slate-zero-width]").forEach((e=>{c-=e.textContent.length}))):c=1}g&&c===g.textContent.length&&ly&&"z"===g.getAttribute("data-slate-zero-width")&&null!==(u=g.textContent)&&void 0!==u&&u.startsWith("\ufeff")&&(s.hasAttribute("data-slate-zero-width")||cy&&null!==(d=g.textContent)&&void 0!==d&&d.endsWith("\n\n"))&&c--}if(ly&&!l&&!r){var _=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(_&&ob.hasDOMNode(e,_,{editable:!0})){var S=ob.toSlateNode(e,_),{path:C,offset:E}=tp.ML.start(e,ob.findPath(e,S));return _.querySelector("[data-slate-leaf]")||(E=a),{path:C,offset:E}}}if(!l){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var k=ob.toSlateNode(e,l);return{path:ob.findPath(e,k),offset:c}},toSlateRange:(e,t,n)=>{var r,o,i,a,s,l,c,{exactMatch:u,suppressThrow:d}=n;if(qy(t)?t.anchorNode:t.startContainer)if(qy(t)){if(cy&&t.rangeCount>1){a=t.focusNode;var p=t.getRangeAt(0),h=t.getRangeAt(t.rangeCount-1);if(a instanceof HTMLTableRowElement&&p.startContainer instanceof HTMLTableRowElement&&h.startContainer instanceof HTMLTableRowElement){function x(e){return e.childElementCount>0?x(e.children[0]):e}var f=p.startContainer,m=h.startContainer,g=x(f.children[p.startOffset]),v=x(m.children[h.startOffset]);s=0,o=v.childNodes.length>0?v.childNodes[0]:v,a=g.childNodes.length>0?g.childNodes[0]:g,i=v instanceof HTMLElement?v.innerHTML.length:0}else p.startContainer===a?(o=h.endContainer,i=h.endOffset,s=p.startOffset):(o=p.startContainer,i=p.endOffset,s=h.startOffset)}else o=t.anchorNode,i=t.anchorOffset,a=t.focusNode,s=t.focusOffset;l=py&&(e=>{for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1})(o)||cy?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed}else o=t.startContainer,i=t.startOffset,a=t.endContainer,s=t.endOffset,l=t.collapsed;if(null==o||null==a||null==i||null==s)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));(cy&&null!==(r=a.textContent)&&void 0!==r&&r.endsWith("\n\n")&&s===a.textContent.length&&s--,"getAttribute"in a&&"false"===a.getAttribute("contenteditable")&&"true"!==a.getAttribute("data-slate-void"))&&(a=o,s=(null===(c=o.textContent)||void 0===c?void 0:c.length)||0);var y=ob.toSlatePoint(e,[o,i],{exactMatch:u,suppressThrow:d});if(!y)return null;var b=l?y:ob.toSlatePoint(e,[a,s],{exactMatch:u,suppressThrow:d});if(!b)return null;var w={anchor:y,focus:b};return tp.e6.isExpanded(w)&&tp.e6.isForward(w)&&Uy(a)&&tp.ML.void(e,{at:w.focus,mode:"highest"})&&(w=tp.ML.unhangRange(e,w,{voids:!0})),w}};function ib(e,t){var{path:n,diff:r}=t;if(!tp.ML.hasPath(e,n))return!1;var o=tp.NB.get(e,n);if(!tp.xv.isText(o))return!1;if(r.start!==o.text.length||0===r.text.length)return o.text.slice(r.start,r.start+r.text.length)===r.text;var i=tp.y$.next(n);if(!tp.ML.hasPath(e,i))return!1;var a=tp.NB.get(e,i);return tp.xv.isText(a)&&a.text.startsWith(r.text)}function ab(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end)),e)}function sb(e,t){var{start:n,end:r,text:o}=t,i=e.slice(n,r),a=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}(i,o),s=function(e,t,n){for(var r=Math.min(e.length,t.length,n),o=0;o<r;o++)if(e.charAt(e.length-o-1)!==t.charAt(t.length-o-1))return o;return r}(i,o,Math.min(i.length-a,o.length-a)),l={start:n+a,end:r-s,text:o.slice(a,o.length-s)};return l.start===l.end&&0===l.text.length?null:l}function lb(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function cb(e,t){var{path:n,offset:r}=t;if(!tp.ML.hasPath(e,n))return null;var o=tp.NB.get(e,n);if(!tp.xv.isText(o))return null;var i=tp.ML.above(e,{match:t=>tp.W_.isElement(t)&&tp.ML.isBlock(e,t),at:n});if(!i)return null;for(;r>o.text.length;){var a=tp.ML.next(e,{at:n,match:tp.xv.isText});if(!a||!tp.y$.isDescendant(a[1],i[1]))return null;r-=o.text.length,o=a[0],n=a[1]}return{path:n,offset:r}}function ub(e,t){var n=cb(e,t.anchor);if(!n)return null;if(tp.e6.isCollapsed(t))return{anchor:n,focus:n};var r=cb(e,t.focus);return r?{anchor:n,focus:r}:null}function db(e,t,n){var r=Oy.get(e),o=null==r?void 0:r.find((e=>{var{path:n}=e;return tp.y$.equals(n,t.path)}));if(!o||t.offset<=o.diff.start)return tp.E9.transform(t,n,{affinity:"backward"});var{diff:i}=o;if(t.offset<=i.start+i.text.length){var a={path:t.path,offset:i.start},s=tp.E9.transform(a,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-i.start}:null}var l={path:t.path,offset:t.offset-i.text.length+i.end-i.start},c=tp.E9.transform(l,n,{affinity:"backward"});return c?"split_node"===n.type&&tp.y$.equals(n.path,t.path)&&l.offset<n.position&&i.start<n.position?c:{path:c.path,offset:c.offset+i.text.length-i.end+i.start}:null}function pb(e,t,n){var r=db(e,t.anchor,n);if(!r)return null;if(tp.e6.isCollapsed(t))return{anchor:r,focus:r};var o=db(e,t.focus,n);return o?{anchor:r,focus:o}:null}function hb(e,t){var{path:n,diff:r,id:o}=e;switch(t.type){case"insert_text":return!tp.y$.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:o,path:n};case"remove_text":return!tp.y$.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:o,path:n};case"split_node":return!tp.y$.equals(t.path,n)||t.position>=r.end?{diff:r,id:o,path:tp.y$.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:o,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:o,path:tp.y$.transform(n,t,{affinity:"forward"})};case"merge_node":return tp.y$.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:o,path:tp.y$.transform(n,t)}:{diff:r,id:o,path:tp.y$.transform(n,t)}}var i=tp.y$.transform(n,t);return i?{diff:r,path:i,id:o}:null}function fb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fb(Object(n),!0).forEach((function(t){ey(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gb(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,i=null,a=null,s=null,l=0,c=!1,u=()=>{var e=Ly.get(t);if(Ly.delete(t),e){var{selection:n}=t,r=ub(t,e);!r||n&&tp.e6.equals(r,n)||tp.YR.select(t,r)}},d=()=>{if(a&&(clearTimeout(a),a=null),s&&(clearTimeout(s),s=null),g()||m()){o||(o=!0,setTimeout((()=>o=!1))),m()&&(o="action");var e=t.selection&&tp.ML.rangeRef(t,t.selection,{affinity:"forward"});Ny.set(t,t.marks),jy.get(t),Oy.get(t);for(var i,l=g();i=null===(d=Oy.get(t))||void 0===d?void 0:d[0];){var d,p,h=Fy.get(t);void 0!==h&&(Fy.delete(t),t.marks=h),h&&!1===c&&(c=null);var f=lb(i);t.selection&&tp.e6.equals(t.selection,f)||tp.YR.select(t,f),i.diff.text?tp.ML.insertText(t,i.diff.text):tp.ML.deleteFragment(t),Oy.set(t,null===(p=Oy.get(t))||void 0===p?void 0:p.filter((e=>{var{id:t}=e;return t!==i.id}))),ib(t,i)||(l=!1,jy.delete(t),Ny.delete(t),o="action",Ly.delete(t),n.cancel(),r.cancel(),null==e||e.unref())}var v=null==e?void 0:e.unref();if(!v||Ly.get(t)||t.selection&&tp.e6.equals(v,t.selection)||tp.YR.select(t,v),m())(()=>{var e=jy.get(t);if(jy.delete(t),e){if(e.at){var n=tp.E9.isPoint(e.at)?cb(t,e.at):ub(t,e.at);if(!n)return;var r=tp.ML.range(t,n);t.selection&&tp.e6.equals(t.selection,r)||tp.YR.select(t,n)}e.run()}})();else{l&&n(),n.flush(),r.flush(),u();var y=Ny.get(t);Ny.delete(t),void 0!==y&&(t.marks=y,t.onChange())}}else u()},p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Cy.get(t);n&&(g()||e?n.style.display="none":n.style.removeProperty("display"))},h=(e,n)=>{var r,o=null!==(r=Oy.get(t))&&void 0!==r?r:[];Oy.set(t,o);var i=tp.NB.leaf(t,e),a=o.findIndex((t=>tp.y$.equals(t.path,e)));if(a<0)return sb(i.text,n)&&o.push({path:e,diff:n,id:l++}),void p();var s=function(e,t,n){var r=Math.min(t.start,n.start),o=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),i=ab(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-o),s=i.slice(r,a);return sb(e,{start:r,end:Math.max(t.end,n.end-t.text.length+(t.end-t.start)),text:s})}(i.text,o[a].diff,n);if(!s)return o.splice(a,1),void p();o[a]=mb(mb({},o[a]),{},{diff:s})},f=function(e){var{at:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c=!1,Ly.delete(t),n.cancel(),r.cancel(),m()&&d(),jy.set(t,{at:o,run:e}),s=setTimeout(d)},m=()=>!!jy.get(t),g=()=>{var e;return!(null===(e=Oy.get(t))||void 0===e||!e.length)},v=e=>{Ly.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var r=!n||!tp.y$.equals(n.anchor.path,e.anchor.path),o=!n||!tp.y$.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(r&&c||o)&&(c=!1),(r||g())&&(a=setTimeout(d,200))}},y=()=>{m()||(s=setTimeout(d))};return{flush:d,scheduleFlush:y,hasPendingDiffs:g,hasPendingAction:m,hasPendingChanges:()=>m()||g(),isFlushing:()=>o,handleUserSelect:v,handleCompositionEnd:e=>{i&&clearTimeout(i),i=setTimeout((()=>{Ty.set(t,!1),d()}),25)},handleCompositionStart:e=>{Ty.set(t,!0),i&&(clearTimeout(i),i=null)},handleDOMBeforeInput:e=>{var n;a&&(clearTimeout(a),a=null);var{inputType:r}=e,o=null,i=e.dataTransfer||e.data||void 0;!1!==c&&"insertText"!==r&&"insertCompositionText"!==r&&(c=!1);var[s]=e.getTargetRanges();s&&(o=ob.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=ob.getWindow(t).getSelection();if(!o&&l&&(s=l,o=ob.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0})),o=null!==(n=o)&&void 0!==n?n:t.selection){var u,d=!0;if(r.startsWith("delete")){if(tp.e6.isExpanded(o)){var[p,m]=tp.e6.edges(o);if(tp.NB.leaf(t,p.path).text.length===p.offset&&0===m.offset){var g=tp.ML.next(t,{at:p.path,match:tp.xv.isText});g&&tp.y$.equals(g[1],m.path)&&(o={anchor:m,focus:m})}}var b=r.endsWith("Backward")?"backward":"forward",[w,x]=tp.e6.edges(o),[_,S]=tp.ML.leaf(t,w.path),C={text:"",start:w.offset,end:x.offset},E=Oy.get(t),k=null==E?void 0:E.find((e=>tp.y$.equals(e.path,S))),z=k?[k.diff,C]:[C];if(0===ab(_.text,...z).length&&(d=!1),tp.e6.isExpanded(o)){if(d&&tp.y$.equals(o.anchor.path,o.focus.path)){var P={path:o.anchor.path,offset:w.offset},D=tp.ML.range(t,P,P);return v(D),h(o.anchor.path,{text:"",end:x.offset,start:w.offset})}return f((()=>tp.ML.deleteFragment(t,{direction:b})),{at:o})}}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return f((()=>tp.ML.deleteFragment(t)),{at:o});case"deleteContent":case"deleteContentForward":var{anchor:A}=o;if(d&&tp.e6.isCollapsed(o)){var T=tp.NB.leaf(t,A.path);if(A.offset<T.text.length)return h(A.path,{text:"",start:A.offset,end:A.offset+1})}return f((()=>tp.ML.deleteForward(t)),{at:o});case"deleteContentBackward":var I,{anchor:M}=o,R=qy(s)?s.isCollapsed:!(null===(I=s)||void 0===I||!I.collapsed);return d&&R&&tp.e6.isCollapsed(o)&&M.offset>0?h(M.path,{text:"",start:M.offset-1,end:M.offset}):f((()=>tp.ML.deleteBackward(t)),{at:o});case"deleteEntireSoftLine":return f((()=>{tp.ML.deleteBackward(t,{unit:"line"}),tp.ML.deleteForward(t,{unit:"line"})}),{at:o});case"deleteHardLineBackward":return f((()=>tp.ML.deleteBackward(t,{unit:"block"})),{at:o});case"deleteSoftLineBackward":return f((()=>tp.ML.deleteBackward(t,{unit:"line"})),{at:o});case"deleteHardLineForward":return f((()=>tp.ML.deleteForward(t,{unit:"block"})),{at:o});case"deleteSoftLineForward":return f((()=>tp.ML.deleteForward(t,{unit:"line"})),{at:o});case"deleteWordBackward":return f((()=>tp.ML.deleteBackward(t,{unit:"word"})),{at:o});case"deleteWordForward":return f((()=>tp.ML.deleteForward(t,{unit:"word"})),{at:o});case"insertLineBreak":return f((()=>tp.ML.insertSoftBreak(t)),{at:o});case"insertParagraph":return f((()=>tp.ML.insertBreak(t)),{at:o});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("DataTransfer"===(null==(u=i)?void 0:u.constructor.name))return f((()=>ob.insertData(t,i)),{at:o});var F=null!=i?i:"";if(Fy.get(t)&&(F=F.replace("\ufeff","")),"insertText"===r&&/.*\n.*\n$/.test(F)&&(F=F.slice(0,-1)),F.includes("\n"))return f((()=>{var e=F.split("\n");e.forEach(((n,r)=>{n&&tp.ML.insertText(t,n),r!==e.length-1&&tp.ML.insertSoftBreak(t)}))}),{at:o});if(tp.y$.equals(o.anchor.path,o.focus.path)){var[N,O]=tp.e6.edges(o),j={start:N.offset,end:O.offset,text:F};if(F&&c&&"insertCompositionText"===r){var L=c.start+c.text.search(/\S|$/);j.start+j.text.search(/\S|$/)===L+1&&j.end===c.start+c.text.length?(j.start-=1,c=null,y()):c=!1}else c="insertText"===r&&(null===c?j:!(!c||!tp.e6.isCollapsed(o)||c.end+c.text.length!==N.offset)&&mb(mb({},c),{},{text:c.text+F}));if(d)return void h(N.path,j)}return f((()=>tp.ML.insertText(t,F)),{at:o})}}},handleKeyDown:e=>{g()||(p(!0),setTimeout(p))},handleDomMutations:e=>{var n;g()||m()||e.some((n=>tb(t,n,e)))&&(null===(n=By.get(t))||void 0===n||n())},handleInput:()=>{!m()&&g()||d()}}}var vb=yy?l.useLayoutEffect:l.useEffect;var yb=["node"];function bb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var wb={subtree:!0,childList:!0,characterData:!0},xb=ly?e=>{var{node:t}=e,n=Xv(e,yb);if(!ly)return null;var r,o=oy(),i=(r=(0,l.useRef)(!1),(0,l.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[]),r.current),[a]=(0,l.useState)((()=>gb(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bb(Object(n),!0).forEach((function(t){ey(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({editor:o},n))));return function(e,t,n){var[r]=(0,l.useState)((()=>new MutationObserver(t)));vb((()=>{r.takeRecords()})),(0,l.useEffect)((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()}),[r,e,n])}(t,a.handleDomMutations,wb),Ry.set(o,a.scheduleFlush),i&&a.flush(),a}:()=>null,_b=["anchor","focus"],Sb=["anchor","focus"],Cb=(e,t)=>{var n,r,o=Xv(e,_b),i=Xv(t,Sb);return e[Ky]===t[Ky]&&(n=o,r=i,Object.keys(n).length===Object.keys(r).length&&Object.keys(n).every((e=>r.hasOwnProperty(e)&&n[e]===r[e])))};function Eb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var kb=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,i=oy(),a=ob.findPath(i,o),s=tp.y$.parent(a),c=Boolean(n[Vy]);return i.isVoid(r)?l.createElement(Db,{length:tp.NB.string(r).length}):""!==n.text||r.children[r.children.length-1]!==o||i.isInline(r)||""!==tp.ML.string(i,s)?""===n.text?l.createElement(Db,{isMarkPlaceholder:c}):t&&"\n"===n.text.slice(-1)?l.createElement(zb,{isTrailing:!0,text:n.text}):l.createElement(zb,{text:n.text}):l.createElement(Db,{isLineBreak:!0,isMarkPlaceholder:c})},zb=e=>{var{text:t,isTrailing:n=!1}=e,r=(0,l.useRef)(null),o=()=>"".concat(null!=t?t:"").concat(n?"\n":""),[i]=(0,l.useState)(o);return vb((()=>{var e=o();r.current&&r.current.textContent!==e&&(r.current.textContent=e)})),l.createElement(Pb,{ref:r},i)},Pb=(0,l.memo)((0,l.forwardRef)(((e,t)=>l.createElement("span",{"data-slate-string":!0,ref:t},e.children)))),Db=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,o={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(o["data-slate-mark-placeholder"]=!0),l.createElement("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eb(Object(n),!0).forEach((function(t){ey(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o),(ly||ay)&&n?null:"\ufeff",n?l.createElement("br",null):null)};function Ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ab(Object(n),!0).forEach((function(t){ey(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ab(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ib=ly?300:0;function Mb(e){e.current&&(clearTimeout(e.current),e.current=null)}var Rb=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:i,renderLeaf:a=(e=>l.createElement(Nb,Tb({},e)))}=e,s=oy(),c=(0,l.useRef)(null),u=(0,l.useRef)(null),[d,p]=(0,l.useState)(!1),h=(0,l.useRef)(null),f=(0,l.useCallback)((e=>{if(function(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}(c,null==e),null==e){var n;Cy.delete(s),null===(n=t.onPlaceholderResize)||void 0===n||n.call(t,null)}else{if(Cy.set(s,e),!c.current){var r=window.ResizeObserver||Yv.do;c.current=new r((()=>{var n;null===(n=t.onPlaceholderResize)||void 0===n||n.call(t,e)}))}c.current.observe(e),u.current=e}}),[u,t,s]),m=l.createElement(kb,{isLast:n,leaf:t,parent:o,text:r}),g=Boolean(t[Ky]);if((0,l.useEffect)((()=>(g?h.current||(h.current=setTimeout((()=>{p(!0),h.current=null}),Ib)):(Mb(h),p(!1)),()=>Mb(h))),[g,p]),g&&d){var v={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:uy?"inherit":void 0},contentEditable:!1,ref:f}};m=l.createElement(l.Fragment,null,i(v),m)}return a({attributes:{"data-slate-leaf":!0},children:m,leaf:t,text:r})},Fb=l.memo(Rb,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&tp.xv.equals(t.leaf,e.leaf)&&t.leaf[Ky]===e.leaf[Ky])),Nb=e=>{var{attributes:t,children:n}=e;return l.createElement("span",Tb({},t),n)},Ob=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:i,text:a}=e,s=oy(),c=(0,l.useRef)(null),u=tp.xv.decorations(a,t),d=ob.findKey(s,a),p=[],h=0;h<u.length;h++){var f=u[h];p.push(l.createElement(Fb,{isLast:n&&h===u.length-1,key:"".concat(d.id,"-").concat(h),renderPlaceholder:o,leaf:f,text:a,parent:r,renderLeaf:i}))}var m=(0,l.useCallback)((e=>{var t=Py.get(s);e?(null==t||t.set(d,e),ky.set(a,e),Ey.set(e,a)):(null==t||t.delete(d),ky.delete(a),c.current&&Ey.delete(c.current)),c.current=e}),[c,s,d,a]);return l.createElement("span",{"data-slate-node":"text",ref:m},p)},jb=l.memo(Ob,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&((e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(r.anchor.offset!==o.anchor.offset||r.focus.offset!==o.focus.offset||!Cb(r,o))return!1}return!0})(t.decorations,e.decorations)));function Lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lb(Object(n),!0).forEach((function(t){ey(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kb=e=>{var{decorations:t,element:n,renderElement:r=(e=>l.createElement(Hb,Bb({},e))),renderPlaceholder:o,renderLeaf:i,selection:a}=e,s=oy(),c=Gb(),u=s.isInline(n),d=ob.findKey(s,n),p=(0,l.useCallback)((e=>{var t=Py.get(s);e?(null==t||t.set(d,e),ky.set(n,e),Ey.set(e,n)):(null==t||t.delete(d),ky.delete(n))}),[s,d,n]),h=Zb({decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:a}),f={"data-slate-node":"element",ref:p};if(u&&(f["data-slate-inline"]=!0),!u&&tp.ML.hasInlines(s,n)){var m=tp.NB.string(n),g=jv()(m);"rtl"===g&&(f.dir=g)}if(tp.ML.isVoid(s,n)){f["data-slate-void"]=!0,!c&&u&&(f.contentEditable=!1);var v=u?"span":"div",[[y]]=tp.NB.texts(n);h=l.createElement(v,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},l.createElement(jb,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:y})),wy.set(y,0),xy.set(y,n)}return r({attributes:f,children:h,element:n})},Vb=l.memo(Kb,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&((e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(!tp.e6.equals(r,o)||!Cb(r,o))return!1}return!0})(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&tp.e6.equals(e.selection,t.selection)))),Hb=e=>{var{attributes:t,children:n,element:r}=e,o=oy().isInline(r)?"span":"div";return l.createElement(o,Bb(Bb({},t),{},{style:{position:"relative"}}),n)},$b=(0,l.createContext)((()=>[])),Ub=(0,l.createContext)(!1),Zb=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:a}=e,s=(0,l.useContext)($b),c=oy(),u=ob.findPath(c,n),d=[],p=tp.W_.isElement(n)&&!c.isInline(n)&&tp.ML.hasInlines(c,n),h=0;h<n.children.length;h++){var f=u.concat(h),m=n.children[h],g=ob.findKey(c,m),v=tp.ML.range(c,f),y=a&&tp.e6.intersection(v,a),b=s([m,f]);for(var w of t){var x=tp.e6.intersection(w,v);x&&b.push(x)}tp.W_.isElement(m)?d.push(l.createElement(Ub.Provider,{key:"provider-".concat(g.id),value:!!y},l.createElement(Vb,{decorations:b,element:m,key:g.id,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:y}))):d.push(l.createElement(jb,{decorations:b,key:g.id,isLast:p&&h===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:i,text:m})),wy.set(m,h),xy.set(m,n)}return d},qb=(0,l.createContext)(!1),Gb=()=>(0,l.useContext)(qb),Wb=(0,l.createContext)(null),Yb=()=>{var e=(0,l.useContext)(Wb);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};var Xb={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},Qb={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Jb={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},ew=e=>{var t=Xb[e],n=Qb[e],r=Jb[e],o=t&&(0,Zh.P6)(t),i=n&&(0,Zh.P6)(n),a=r&&(0,Zh.P6)(r);return e=>!(!o||!o(e))||(!!(sy&&i&&i(e))||!(sy||!a||!a(e)))},tw={isBold:ew("bold"),isCompose:ew("compose"),isMoveBackward:ew("moveBackward"),isMoveForward:ew("moveForward"),isDeleteBackward:ew("deleteBackward"),isDeleteForward:ew("deleteForward"),isDeleteLineBackward:ew("deleteLineBackward"),isDeleteLineForward:ew("deleteLineForward"),isDeleteWordBackward:ew("deleteWordBackward"),isDeleteWordForward:ew("deleteWordForward"),isExtendBackward:ew("extendBackward"),isExtendForward:ew("extendForward"),isExtendLineBackward:ew("extendLineBackward"),isExtendLineForward:ew("extendLineForward"),isItalic:ew("italic"),isMoveLineBackward:ew("moveLineBackward"),isMoveLineForward:ew("moveLineForward"),isMoveWordBackward:ew("moveWordBackward"),isMoveWordForward:ew("moveWordForward"),isRedo:ew("redo"),isSoftBreak:ew("insertSoftBreak"),isSplitBlock:ew("splitBlock"),isTransposeCharacter:ew("transposeCharacter"),isUndo:ew("undo")},nw={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class rw extends l.Component{constructor(){super(...arguments),ey(this,"context",null),ey(this,"manager",null),ey(this,"mutationObserver",null)}observe(){var e,{node:t}=this.props;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,nw)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=((e,t)=>{var n=[],r=()=>{n=[]};return{registerMutations:r=>{if(t.current){var o=r.filter((t=>tb(e,t,r)));n.push(...o)}},restoreDOM:function(){n.length>0&&(n.reverse().forEach((e=>{"characterData"!==e.type&&(e.removedNodes.forEach((t=>{e.target.insertBefore(t,e.nextSibling)})),e.addedNodes.forEach((t=>{e.target.removeChild(t)})))})),r())},clear:r}})(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,n,r,o=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();null!=o&&o.length&&(null===(r=this.manager)||void 0===r||r.registerMutations(o));return null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}ey(rw,"contextType",ry);var ow=ly?rw:e=>{var{children:t}=e;return l.createElement(l.Fragment,null,t)},iw=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],aw=["text"];function sw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sw(Object(n),!0).forEach((function(t){ey(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cw=e=>l.createElement(l.Fragment,null,Zb(e)),uw=e=>{var t=(0,l.useCallback)((e=>l.createElement(dw,lw({},e))),[]),{autoFocus:n,decorate:r=pw,onDOMBeforeInput:o,placeholder:i,readOnly:a=!1,renderElement:s,renderLeaf:c,renderPlaceholder:u=t,scrollSelectionIntoView:d=hw,style:p={},as:h="div",disableDefaultStyles:f=!1}=e,m=Xv(e,iw),g=Yb(),[v,y]=(0,l.useState)(!1),b=(0,l.useRef)(null),w=(0,l.useRef)([]),[x,_]=(0,l.useState)(),S=(0,l.useRef)(!1),{onUserInput:C,receivedUserInput:E}=function(){var e=oy(),t=(0,l.useRef)(!1),n=(0,l.useRef)(0),r=(0,l.useCallback)((()=>{if(!t.current){t.current=!0;var r=ob.getWindow(e);r.cancelAnimationFrame(n.current),n.current=r.requestAnimationFrame((()=>{t.current=!1}))}}),[e]);return(0,l.useEffect)((()=>()=>cancelAnimationFrame(n.current)),[]),{receivedUserInput:t,onUserInput:r}}(),[,k]=(0,l.useReducer)((e=>e+1),0);By.set(g,k),Dy.set(g,a);var z=(0,l.useMemo)((()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1})),[]);(0,l.useEffect)((()=>{b.current&&n&&b.current.focus()}),[n]);var P=(0,l.useRef)(),D=(0,l.useMemo)((()=>Vv()((()=>{var e=ob.toDOMNode(g,g).getRootNode();if(!S.current&&uy&&e instanceof ShadowRoot){S.current=!0;var t=(()=>{for(var e=document.activeElement;null!==(t=e)&&void 0!==t&&t.shadowRoot&&null!==(n=e.shadowRoot)&&void 0!==n&&n.activeElement;){var t,n,r;e=null===(r=e)||void 0===r||null===(r=r.shadowRoot)||void 0===r?void 0:r.activeElement}return e})();return t?document.execCommand("indent"):tp.YR.deselect(g),void(S.current=!1)}var n=P.current;if((ly||!ob.isComposing(g))&&(!z.isUpdatingSelection||null!=n&&n.isFlushing())&&!z.isDraggingInternally){var r=ob.findDocumentOrShadowRoot(g),{activeElement:o}=r,i=ob.toDOMNode(g,g),s=eb(r);if(o===i?(z.latestElement=o,Ay.set(g,!0)):Ay.delete(g),!s)return tp.YR.deselect(g);var{anchorNode:l,focusNode:c}=s,u=ob.hasEditableTarget(g,l)||ob.isTargetInsideNonReadonlyVoid(g,l),d=ob.hasEditableTarget(g,c)||ob.isTargetInsideNonReadonlyVoid(g,c);if(u&&d){var p=ob.toSlateRange(g,s,{exactMatch:!1,suppressThrow:!0});p&&(ob.isComposing(g)||null!=n&&n.hasPendingChanges()||null!=n&&n.isFlushing()?null==n||n.handleUserSelect(p):tp.YR.select(g,p))}!a||u&&d||tp.YR.deselect(g)}}),100)),[g,a,z]),A=(0,l.useMemo)((()=>Bv()(D,0)),[D]);P.current=xb({node:b,onDOMSelectionChange:D,scheduleOnDOMSelectionChange:A}),vb((()=>{var e,t,n;b.current&&(n=$y(b.current))?(_y.set(g,n),Sy.set(g,b.current),ky.set(g,b.current),Ey.set(b.current,g)):ky.delete(g);var{selection:r}=g,o=ob.findDocumentOrShadowRoot(g),i=eb(o);if(i&&ob.isFocused(g)&&(null===(e=P.current)||void 0===e||!e.hasPendingAction())){var a=e=>{var t="None"!==i.type;if(r||t){var n,o=i.focusNode;if(cy&&i.rangeCount>1){var a=i.getRangeAt(0),s=i.getRangeAt(i.rangeCount-1);n=a.startContainer===o?s.endContainer:a.startContainer}else n=i.anchorNode;var l=Sy.get(g),c=!1;if(l.contains(n)&&l.contains(o)&&(c=!0),t&&c&&r&&!e){var u=ob.toSlateRange(g,i,{exactMatch:!0,suppressThrow:!0});if(u&&tp.e6.equals(u,r)){var p;if(!z.hasMarkPlaceholder)return;if(null!==(p=n)&&void 0!==p&&null!==(p=p.parentElement)&&void 0!==p&&p.hasAttribute("data-slate-mark-placeholder"))return}}if(!r||ob.hasRange(g,r)){z.isUpdatingSelection=!0;var h=r&&ob.toDOMRange(g,r);return h?(ob.isComposing(g)&&!ly?i.collapseToEnd():tp.e6.isBackward(r)?i.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):i.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset),d(g,h)):i.removeAllRanges(),h}g.selection=ob.toSlateRange(g,i,{exactMatch:!1,suppressThrow:!0})}};i.rangeCount<=1&&a();var s="action"===(null===(t=P.current)||void 0===t?void 0:t.isFlushing());if(ly&&s){var l=null,c=requestAnimationFrame((()=>{if(s){var e=e=>{try{ob.toDOMNode(g,g).focus(),a(e)}catch(e){}};e(),l=setTimeout((()=>{e(!0),z.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(c),l&&clearTimeout(l)}}setTimeout((()=>{z.isUpdatingSelection=!1}))}}));var T=(0,l.useCallback)((e=>{var t=ob.toDOMNode(g,g).getRootNode();if(null!=S&&S.current&&uy&&t instanceof ShadowRoot){var n=e.getTargetRanges()[0],r=new window.Range;r.setStart(n.startContainer,n.startOffset),r.setEnd(n.endContainer,n.endOffset);var i=ob.toSlateRange(g,r,{exactMatch:!1,suppressThrow:!1});return tp.YR.select(g,i),e.preventDefault(),void e.stopImmediatePropagation()}if(C(),!a&&ob.hasEditableTarget(g,e.target)&&!gw(e,o)){var s;if(P.current)return P.current.handleDOMBeforeInput(e);A.flush(),D.flush();var{selection:l}=g,{inputType:c}=e,u=e.dataTransfer||e.data||void 0,d="insertCompositionText"===c||"deleteCompositionText"===c;if(d&&ob.isComposing(g))return;var p=!1;if("insertText"===c&&l&&tp.e6.isCollapsed(l)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==l.anchor.offset){var h,f;p=!0,g.marks&&(p=!1);var{anchor:m}=l,[v,b]=ob.toDOMPoint(g,m),x=null===(h=v.parentElement)||void 0===h?void 0:h.closest("a"),_=ob.getWindow(g);if(p&&x&&ob.hasDOMNode(g,x)){var E,k=null==_?void 0:_.document.createTreeWalker(x,NodeFilter.SHOW_TEXT).lastChild();k===v&&(null===(E=k.textContent)||void 0===E?void 0:E.length)===b&&(p=!1)}if(p&&v.parentElement&&"pre"===(null==_||null===(f=_.getComputedStyle(v.parentElement))||void 0===f?void 0:f.whiteSpace)){var z=tp.ML.above(g,{at:m.path,match:e=>tp.W_.isElement(e)&&tp.ML.isBlock(g,e)});z&&tp.NB.string(z[0]).includes("\t")&&(p=!1)}}if(!c.startsWith("delete")||c.startsWith("deleteBy")){var[T]=e.getTargetRanges();if(T){var I=ob.toSlateRange(g,T,{exactMatch:!1,suppressThrow:!1});if(!l||!tp.e6.equals(l,I)){p=!1;var M=!d&&g.selection&&tp.ML.rangeRef(g,g.selection);tp.YR.select(g,I),M&&Iy.set(g,M)}}}if(d)return;if(p||e.preventDefault(),l&&tp.e6.isExpanded(l)&&c.startsWith("delete")){var R=c.endsWith("Backward")?"backward":"forward";return void tp.ML.deleteFragment(g,{direction:R})}switch(c){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":tp.ML.deleteFragment(g);break;case"deleteContent":case"deleteContentForward":tp.ML.deleteForward(g);break;case"deleteContentBackward":tp.ML.deleteBackward(g);break;case"deleteEntireSoftLine":tp.ML.deleteBackward(g,{unit:"line"}),tp.ML.deleteForward(g,{unit:"line"});break;case"deleteHardLineBackward":tp.ML.deleteBackward(g,{unit:"block"});break;case"deleteSoftLineBackward":tp.ML.deleteBackward(g,{unit:"line"});break;case"deleteHardLineForward":tp.ML.deleteForward(g,{unit:"block"});break;case"deleteSoftLineForward":tp.ML.deleteForward(g,{unit:"line"});break;case"deleteWordBackward":tp.ML.deleteBackward(g,{unit:"word"});break;case"deleteWordForward":tp.ML.deleteForward(g,{unit:"word"});break;case"insertLineBreak":tp.ML.insertSoftBreak(g);break;case"insertParagraph":tp.ML.insertBreak(g);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===c&&ob.isComposing(g)&&(y(!1),Ty.set(g,!1)),"DataTransfer"===(null==u?void 0:u.constructor.name)?ob.insertData(g,u):"string"==typeof u&&(p?w.current.push((()=>tp.ML.insertText(g,u))):tp.ML.insertText(g,u))}var F=null===(s=Iy.get(g))||void 0===s?void 0:s.unref();Iy.delete(g),!F||g.selection&&tp.e6.equals(g.selection,F)||tp.YR.select(g,F)}}),[g,D,C,o,a,A]),I=(0,l.useCallback)((e=>{null==e?(D.cancel(),A.cancel(),Sy.delete(g),ky.delete(g),b.current&&by&&b.current.removeEventListener("beforeinput",T)):by&&e.addEventListener("beforeinput",T),b.current=e}),[D,A,g,T]);vb((()=>{var e=ob.getWindow(g);e.document.addEventListener("selectionchange",A);var t=()=>{z.isDraggingInternally=!1};return e.document.addEventListener("dragend",t),e.document.addEventListener("drop",t),()=>{e.document.removeEventListener("selectionchange",A),e.document.removeEventListener("dragend",t),e.document.removeEventListener("drop",t)}}),[A,z]);var M=r([g,[]]),R=i&&1===g.children.length&&1===Array.from(tp.NB.texts(g)).length&&""===tp.NB.string(g)&&!v,F=(0,l.useCallback)((e=>{var t;e&&R?_(null===(t=e.getBoundingClientRect())||void 0===t?void 0:t.height):_(void 0)}),[R]);if(R){var N=tp.ML.start(g,[]);M.push({[Ky]:!0,placeholder:i,onPlaceholderResize:F,anchor:N,focus:N})}var{marks:O}=g;if(z.hasMarkPlaceholder=!1,g.selection&&tp.e6.isCollapsed(g.selection)&&O){var{anchor:j}=g.selection,L=tp.NB.leaf(g,j.path),B=Xv(L,aw);if(!tp.xv.equals(L,O,{loose:!0})){z.hasMarkPlaceholder=!0;var K=Object.fromEntries(Object.keys(B).map((e=>[e,null])));M.push(lw(lw(lw({[Vy]:!0},K),O),{},{anchor:j,focus:j}))}}return(0,l.useEffect)((()=>{setTimeout((()=>{var{selection:e}=g;if(e){var{anchor:t}=e,n=tp.NB.leaf(g,t.path);if(O&&!tp.xv.equals(n,O,{loose:!0}))return void Fy.set(g,O)}Fy.delete(g)}))})),l.createElement(qb.Provider,{value:a},l.createElement($b.Provider,{value:r},l.createElement(ow,{node:b,receivedUserInput:E},l.createElement(h,lw(lw({role:a?void 0:"textbox","aria-multiline":!a||void 0},m),{},{spellCheck:!(!by&&yy)&&m.spellCheck,autoCorrect:by||!yy?m.autoCorrect:"false",autoCapitalize:by||!yy?m.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:I,style:lw(lw({},f?{}:lw({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},x?{minHeight:x}:{})),p),onBeforeInput:(0,l.useCallback)((e=>{if(!by&&!a&&!fw(e,m.onBeforeInput)&&ob.hasSelectableTarget(g,e.target)&&(e.preventDefault(),!ob.isComposing(g))){var t=e.data;tp.ML.insertText(g,t)}}),[m.onBeforeInput,g,a]),onInput:(0,l.useCallback)((e=>{if(!fw(e,m.onInput))if(P.current)P.current.handleInput();else{for(var t of w.current)t();w.current=[]}}),[m.onInput]),onBlur:(0,l.useCallback)((e=>{if(!a&&!z.isUpdatingSelection&&ob.hasSelectableTarget(g,e.target)&&!fw(e,m.onBlur)){var t=ob.findDocumentOrShadowRoot(g);if(z.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===ob.toDOMNode(g,g)||Uy(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&Zy(n)&&ob.hasDOMNode(g,n)){var r=ob.toSlateNode(g,n);if(tp.W_.isElement(r)&&!g.isVoid(r))return}if(uy){var o=eb(t);null==o||o.removeAllRanges()}Ay.delete(g)}}}}),[a,z.isUpdatingSelection,z.latestElement,g,m.onBlur]),onClick:(0,l.useCallback)((e=>{if(ob.hasTarget(g,e.target)&&!fw(e,m.onClick)&&Zy(e.target)){var t=ob.toSlateNode(g,e.target),n=ob.findPath(g,t);if(!tp.ML.hasPath(g,n)||tp.NB.get(g,n)!==t)return;if(3===e.detail&&n.length>=1){var r=n;if(!tp.W_.isElement(t)||!tp.ML.isBlock(g,t)){var o,i=tp.ML.above(g,{match:e=>tp.W_.isElement(e)&&tp.ML.isBlock(g,e),at:n});r=null!==(o=null==i?void 0:i[1])&&void 0!==o?o:n.slice(0,1)}var s=tp.ML.range(g,r);return void tp.YR.select(g,s)}if(a)return;var l=tp.ML.start(g,n),c=tp.ML.end(g,n),u=tp.ML.void(g,{at:l}),d=tp.ML.void(g,{at:c});if(u&&d&&tp.y$.equals(u[1],d[1])){var p=tp.ML.range(g,l);tp.YR.select(g,p)}}}),[g,m.onClick,a]),onCompositionEnd:(0,l.useCallback)((e=>{if(ob.hasSelectableTarget(g,e.target)){var t;if(ob.isComposing(g)&&Promise.resolve().then((()=>{y(!1),Ty.set(g,!1)})),null===(t=P.current)||void 0===t||t.handleCompositionEnd(e),fw(e,m.onCompositionEnd)||ly)return;if(!uy&&!my&&!ay&&!vy&&!gy&&e.data){var n=Fy.get(g);Fy.delete(g),void 0!==n&&(Ny.set(g,g.marks),g.marks=n),tp.ML.insertText(g,e.data);var r=Ny.get(g);Ny.delete(g),void 0!==r&&(g.marks=r)}}}),[m.onCompositionEnd,g]),onCompositionUpdate:(0,l.useCallback)((e=>{ob.hasSelectableTarget(g,e.target)&&!fw(e,m.onCompositionUpdate)&&(ob.isComposing(g)||(y(!0),Ty.set(g,!0)))}),[m.onCompositionUpdate,g]),onCompositionStart:(0,l.useCallback)((e=>{if(ob.hasSelectableTarget(g,e.target)){var t;if(null===(t=P.current)||void 0===t||t.handleCompositionStart(e),fw(e,m.onCompositionStart)||ly)return;y(!0);var{selection:n}=g;if(n&&tp.e6.isExpanded(n))return void tp.ML.deleteFragment(g)}}),[m.onCompositionStart,g]),onCopy:(0,l.useCallback)((e=>{!ob.hasSelectableTarget(g,e.target)||fw(e,m.onCopy)||mw(e)||(e.preventDefault(),ob.setFragmentData(g,e.clipboardData,"copy"))}),[m.onCopy,g]),onCut:(0,l.useCallback)((e=>{if(!a&&ob.hasSelectableTarget(g,e.target)&&!fw(e,m.onCut)&&!mw(e)){e.preventDefault(),ob.setFragmentData(g,e.clipboardData,"cut");var{selection:t}=g;if(t)if(tp.e6.isExpanded(t))tp.ML.deleteFragment(g);else{var n=tp.NB.parent(g,t.anchor.path);tp.ML.isVoid(g,n)&&tp.YR.delete(g)}}}),[a,g,m.onCut]),onDragOver:(0,l.useCallback)((e=>{if(ob.hasTarget(g,e.target)&&!fw(e,m.onDragOver)){var t=ob.toSlateNode(g,e.target);tp.W_.isElement(t)&&tp.ML.isVoid(g,t)&&e.preventDefault()}}),[m.onDragOver,g]),onDragStart:(0,l.useCallback)((e=>{if(!a&&ob.hasTarget(g,e.target)&&!fw(e,m.onDragStart)){var t=ob.toSlateNode(g,e.target),n=ob.findPath(g,t);if(tp.W_.isElement(t)&&tp.ML.isVoid(g,t)||tp.ML.void(g,{at:n,voids:!0})){var r=tp.ML.range(g,n);tp.YR.select(g,r)}z.isDraggingInternally=!0,ob.setFragmentData(g,e.dataTransfer,"drag")}}),[a,g,m.onDragStart,z]),onDrop:(0,l.useCallback)((e=>{if(!a&&ob.hasTarget(g,e.target)&&!fw(e,m.onDrop)){e.preventDefault();var t=g.selection,n=ob.findEventRange(g,e),r=e.dataTransfer;tp.YR.select(g,n),z.isDraggingInternally&&(!t||tp.e6.equals(t,n)||tp.ML.void(g,{at:n,voids:!0})||tp.YR.delete(g,{at:t})),ob.insertData(g,r),ob.isFocused(g)||ob.focus(g)}}),[a,g,m.onDrop,z]),onDragEnd:(0,l.useCallback)((e=>{!a&&z.isDraggingInternally&&m.onDragEnd&&ob.hasTarget(g,e.target)&&m.onDragEnd(e)}),[a,z,m,g]),onFocus:(0,l.useCallback)((e=>{if(!a&&!z.isUpdatingSelection&&ob.hasEditableTarget(g,e.target)&&!fw(e,m.onFocus)){var t=ob.toDOMNode(g,g),n=ob.findDocumentOrShadowRoot(g);if(z.latestElement=n.activeElement,cy&&e.target!==t)return void t.focus();Ay.set(g,!0)}}),[a,z,g,m.onFocus]),onKeyDown:(0,l.useCallback)((e=>{if(!a&&ob.hasEditableTarget(g,e.target)){var t;null===(t=P.current)||void 0===t||t.handleKeyDown(e);var{nativeEvent:n}=e;if(ob.isComposing(g)&&!1===n.isComposing&&(Ty.set(g,!1),y(!1)),fw(e,m.onKeyDown)||ob.isComposing(g))return;var{selection:r}=g,o=g.children[null!==r?r.focus.path[0]:0],i="rtl"===jv()(tp.NB.string(o));if(tw.isRedo(n)){e.preventDefault();var s=g;return void("function"==typeof s.redo&&s.redo())}if(tw.isUndo(n)){e.preventDefault();var l=g;return void("function"==typeof l.undo&&l.undo())}if(tw.isMoveLineBackward(n))return e.preventDefault(),void tp.YR.move(g,{unit:"line",reverse:!0});if(tw.isMoveLineForward(n))return e.preventDefault(),void tp.YR.move(g,{unit:"line"});if(tw.isExtendLineBackward(n))return e.preventDefault(),void tp.YR.move(g,{unit:"line",edge:"focus",reverse:!0});if(tw.isExtendLineForward(n))return e.preventDefault(),void tp.YR.move(g,{unit:"line",edge:"focus"});if(tw.isMoveBackward(n))return e.preventDefault(),void(r&&tp.e6.isCollapsed(r)?tp.YR.move(g,{reverse:!i}):tp.YR.collapse(g,{edge:i?"end":"start"}));if(tw.isMoveForward(n))return e.preventDefault(),void(r&&tp.e6.isCollapsed(r)?tp.YR.move(g,{reverse:i}):tp.YR.collapse(g,{edge:i?"start":"end"}));if(tw.isMoveWordBackward(n))return e.preventDefault(),r&&tp.e6.isExpanded(r)&&tp.YR.collapse(g,{edge:"focus"}),void tp.YR.move(g,{unit:"word",reverse:!i});if(tw.isMoveWordForward(n))return e.preventDefault(),r&&tp.e6.isExpanded(r)&&tp.YR.collapse(g,{edge:"focus"}),void tp.YR.move(g,{unit:"word",reverse:i});if(by){if((py||uy)&&r&&(tw.isDeleteBackward(n)||tw.isDeleteForward(n))&&tp.e6.isCollapsed(r)){var c=tp.NB.parent(g,r.anchor.path);if(tp.W_.isElement(c)&&tp.ML.isVoid(g,c)&&(tp.ML.isInline(g,c)||tp.ML.isBlock(g,c)))return e.preventDefault(),void tp.ML.deleteBackward(g,{unit:"block"})}}else{if(tw.isBold(n)||tw.isItalic(n)||tw.isTransposeCharacter(n))return void e.preventDefault();if(tw.isSoftBreak(n))return e.preventDefault(),void tp.ML.insertSoftBreak(g);if(tw.isSplitBlock(n))return e.preventDefault(),void tp.ML.insertBreak(g);if(tw.isDeleteBackward(n))return e.preventDefault(),void(r&&tp.e6.isExpanded(r)?tp.ML.deleteFragment(g,{direction:"backward"}):tp.ML.deleteBackward(g));if(tw.isDeleteForward(n))return e.preventDefault(),void(r&&tp.e6.isExpanded(r)?tp.ML.deleteFragment(g,{direction:"forward"}):tp.ML.deleteForward(g));if(tw.isDeleteLineBackward(n))return e.preventDefault(),void(r&&tp.e6.isExpanded(r)?tp.ML.deleteFragment(g,{direction:"backward"}):tp.ML.deleteBackward(g,{unit:"line"}));if(tw.isDeleteLineForward(n))return e.preventDefault(),void(r&&tp.e6.isExpanded(r)?tp.ML.deleteFragment(g,{direction:"forward"}):tp.ML.deleteForward(g,{unit:"line"}));if(tw.isDeleteWordBackward(n))return e.preventDefault(),void(r&&tp.e6.isExpanded(r)?tp.ML.deleteFragment(g,{direction:"backward"}):tp.ML.deleteBackward(g,{unit:"word"}));if(tw.isDeleteWordForward(n))return e.preventDefault(),void(r&&tp.e6.isExpanded(r)?tp.ML.deleteFragment(g,{direction:"forward"}):tp.ML.deleteForward(g,{unit:"word"}))}}}),[a,g,m.onKeyDown]),onPaste:(0,l.useCallback)((e=>{a||!ob.hasEditableTarget(g,e.target)||fw(e,m.onPaste)||(!by||(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||uy)&&(e.preventDefault(),ob.insertData(g,e.clipboardData))}),[a,g,m.onPaste])}),l.createElement(cw,{decorations:M,node:g,renderElement:s,renderPlaceholder:u,renderLeaf:c,selection:g.selection})))))},dw=e=>{var{attributes:t,children:n}=e;return l.createElement("span",lw({},t),n,ly&&l.createElement("br",null))},pw=()=>[],hw=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&tp.e6.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),Wv(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},fw=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},mw=e=>Zy(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),gw=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},vw=(0,l.createContext)(!1);var yw=(0,l.createContext)({});var bw=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],ww=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:o,onValueChange:i,initialValue:a}=e,s=Xv(e,bw),[c,u]=l.useState((()=>{if(!tp.NB.isNodeList(a))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(tp.o4.stringify(a)));if(!tp.ML.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(tp.o4.stringify(t)));return t.children=a,Object.assign(t,s),{v:0,editor:t}})),{selectorContext:d,onChange:p}=function(e){var t=(0,l.useRef)([]).current,n=(0,l.useRef)({editor:e}).current,r=(0,l.useCallback)((e=>{n.editor=e,t.forEach((t=>t(e)))}),[t,n]);return{selectorContext:(0,l.useMemo)((()=>({getSlate:()=>n.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,n]),onChange:r}}(t),h=(0,l.useCallback)((e=>{var n;if(r&&r(t.children),"set_selection"===(null==e||null===(n=e.operation)||void 0===n?void 0:n.type))null==o||o(t.selection);else null==i||i(t.children);u((e=>({v:e.v+1,editor:t}))),p(t)}),[t,p,r,o,i]);(0,l.useEffect)((()=>(My.set(t,h),()=>{My.set(t,(()=>{}))})),[t,h]);var[f,m]=(0,l.useState)(ob.isFocused(t));return(0,l.useEffect)((()=>{m(ob.isFocused(t))}),[t]),vb((()=>{var e=()=>m(ob.isFocused(t));return iy>=17?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),l.createElement(yw.Provider,{value:d},l.createElement(Wb.Provider,{value:c},l.createElement(ry.Provider,{value:c.editor},l.createElement(vw.Provider,{value:f},n))))},xw=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},_w=(e,t,n)=>{var r=ob.toDOMRange(e,t).getBoundingClientRect(),o=ob.toDOMRange(e,n).getBoundingClientRect();return xw(r,o)&&xw(o,r)},Sw=(e,t)=>{var n=tp.ML.range(e,tp.e6.end(t)),r=Array.from(tp.ML.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(_w(e,tp.ML.range(e,r[o]),n))return tp.ML.range(e,r[o],n);if(r.length<2)return tp.ML.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)_w(e,tp.ML.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return tp.ML.range(e,r[i],n)};function Cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ew(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cw(Object(n),!0).forEach((function(t){ey(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kw=(e,t)=>{var n=[];for(var[r,o]of tp.ML.levels(e,{at:t})){var i=ob.findKey(e,r);n.push([o,i])}return n},zw=(e,t)=>{try{return ob.findPath(e,t)}catch(e){}},Pw=(e,t)=>{t&&_p(e,(()=>{Kp(e),Ep(e,t)})),ob.focus(e)};var Dw=n(57557),Aw=n.n(Dw),Tw=Object.prototype.hasOwnProperty;function Iw(e,t,n){for(n of e.keys())if(Mw(n,t))return n}function Mw(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Mw(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=Iw(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=Iw(t,o)))return!1;if(!Mw(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(Tw.call(e,n)&&++r&&!Tw.call(t,n))return!1;if(!(n in t)||!Mw(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function Rw(e){const t=l.useRef(e),n=l.useRef(0);return Mw(e,t.current)||(t.current=e,n.current+=1),l.useMemo((()=>t.current),[n.current])}function Fw(e,t){return l.useMemo(e,Rw(t))}const Nw=e=>e,Ow=e=>({_tag:"Left",value:e}),jw=e=>({_tag:"Right",value:e}),Lw={dimap:(e,t,n)=>r=>t(n(e(r))),first:e=>([t,n])=>[e(t),n],right:e=>t=>"Left"===t._tag?t:jw(e(t.value)),wander:e=>t=>t.map(e)},Bw={empty:()=>{},foldMap:(e,t)=>{for(let n=0;n<t.length;n++){const r=e(t[n]);if(null!=r)return r}}},Kw={empty:()=>[],foldMap:(e,t)=>{let n=[];return t.forEach((t=>{n=n.concat(e(t))})),n}},Vw=e=>({dimap:(e,t,n)=>t=>n(e(t)),first:e=>([t,n])=>e(t),right:t=>n=>"Left"===n._tag?e.empty():t(n.value),wander:t=>n=>e.foldMap(t,n)}),Hw={Equivalence:{Equivalence:"Equivalence",Iso:"Iso",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Iso:{Equivalence:"Iso",Iso:"Iso",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Lens:{Equivalence:"Lens",Iso:"Lens",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Prism:{Equivalence:"Prism",Iso:"Prism",Lens:"Prism",Prism:"Prism",Traversal:"Traversal",Getter:"AffineFold",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Traversal:{Equivalence:"Traversal",Iso:"Traversal",Lens:"Traversal",Prism:"Traversal",Traversal:"Traversal",Getter:"Fold",AffineFold:"Fold",Fold:"Fold",Setter:"Setter"},Getter:{Equivalence:"Getter",Iso:"Getter",Lens:"Getter",Prism:"AffineFold",Traversal:"Fold",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:void 0},AffineFold:{Equivalence:"AffineFold",Iso:"AffineFold",Lens:"AffineFold",Prism:"AffineFold",Traversal:"Fold",Getter:"AffineFold",AffineFold:"AffineFold",Fold:"Fold",Setter:void 0},Fold:{Equivalence:"Fold",Iso:"Fold",Lens:"Fold",Prism:"Fold",Traversal:"Fold",Getter:"Fold",AffineFold:"Fold",Fold:"Fold",Setter:void 0},Setter:{Equivalence:void 0,Iso:void 0,Lens:void 0,Prism:void 0,Traversal:void 0,Getter:void 0,AffineFold:void 0,Fold:void 0,Setter:void 0}},$w=(e,t)=>{const n=t;return n._tag=e,n},Uw=e=>(e._removable=!0,e);function Zw(e,t,n){if(2===arguments.length){const n=(n,r)=>e(n,t(n,r));return n._tag=Hw[e._tag][t._tag],n._removable=t._removable||!1,n}{const r=Hw[e._tag][t._tag],o=(r,o)=>e(r,t(r,n(r,o)));return o._tag=Hw[r][n._tag],o._removable=n._removable||!1,o}}const qw=$w("Equivalence",((e,t)=>t)),Gw=(e,t)=>$w("Iso",((n,r)=>n.dimap(e,t,r))),Ww=(e,t)=>$w("Lens",((n,r)=>n.dimap((t=>[e(t),t]),t,n.first(r)))),Yw=(e,t)=>$w("Prism",((n,r)=>n.dimap(e,(e=>((e,t,n)=>"Left"===n._tag?e(n.value):t(n.value))(Nw,t,e)),n.right(r)))),Xw=$w("Traversal",((e,t)=>e.dimap(Nw,Nw,e.wander(t)))),Qw=(e,t,n)=>e(Lw,t)(n),Jw=(e,t,n)=>e(Lw,(()=>t))(n),ex=(e,t)=>e(Vw(Kw),(e=>[e]))(t),tx=Gw((e=>e.map(((e,t)=>[t,e]))),(e=>{const t=[...e].sort(((e,t)=>e[0]-t[0])),n=[];for(let e=0;e<t.length;++e)e!==t.length-1&&t[e][0]===t[e+1][0]||n.push(t[e][1]);return n})),nx=e=>Ww((t=>t[e]),(([t,n])=>Object.assign(Object.assign({},n),{[e]:t}))),rx=e=>Ww((t=>t[e]),(([t,n])=>{const r=n.slice();return r[e]=t,r})),ox=rx(0),ix=e=>Yw((t=>e(t)?jw(t):Ow(t)),Nw),ax=Symbol("__no_match__"),sx=ix((e=>e!==ax)),lx=Symbol("__remove_me__"),cx=e=>Uw(Zw(Ww((t=>0<=e&&e<t.length?t[e]:ax),(([t,n])=>{if(t===ax)return n;if(t===lx)return"string"==typeof n?n.substring(0,e)+n.substring(e+1):[...n.slice(0,e),...n.slice(e+1)];if("string"==typeof n)return 0===e?t+n.substring(1):e===n.length?n.substring(0,e-1)+t:n.substring(0,e)+t+n.substring(e+1);{const r=n.slice();return r[e]=t,r}})),sx)),ux=Yw((e=>void 0===e?Ow(void 0):jw(e)),Nw),dx=Ww((e=>{}),(([e,t])=>void 0===e?t:[e,...t])),px=Ww((e=>{}),(([e,t])=>void 0===e?t:[...t,e])),hx=Zw(Gw((e=>e.split("")),(e=>e.join(""))),Xw),fx=Zw(Gw((e=>e.split(/\b/)),(e=>e.join(""))),Xw,ix((e=>!/\s+/.test(e))));class mx{constructor(e){this._ref=e}get _tag(){return this._ref._tag}get _removable(){return this._ref._removable}compose(e){return new mx(Zw(this._ref,e._ref))}iso(e,t){return new mx(Zw(this._ref,Gw(e,t)))}lens(e,t){return new mx(Zw(this._ref,Ww(e,(([e,n])=>t(n,e)))))}indexed(){return new mx(Zw(this._ref,tx))}prop(e){return new mx(Zw(this._ref,nx(e)))}path(...e){return 1===e.length&&(e=e[0].split(".")),new mx(e.reduce(((e,t)=>Zw(e,nx(t))),this._ref))}pick(e){return new mx(Zw(this._ref,(e=>Ww((t=>{const n={};for(const r of e)n[r]=t[r];return n}),(([t,n])=>{const r=Object.assign({},n);for(const t of e)delete r[t];return Object.assign(r,t)})))(e)))}nth(e){return new mx(Zw(this._ref,rx(e)))}filter(e){return new mx(Zw(this._ref,(e=>Zw(Ww((t=>{const n=t.map(((t,n)=>e(t)?n:null)).filter((e=>null!=e));return[n.map((e=>t[e])),n]}),(([[e,t],n])=>{const r=n.length,o=e.length;let i=0,a=0,s=0;const l=[];for(;i<r;)t[a]===i?(++a,s<o&&(l.push(e[s]),++s)):l.push(n[i]),++i;for(;s<o;)l.push(e[s++]);return l})),ox))(e)))}valueOr(e){return new mx(Zw(this._ref,(e=>Ww((t=>void 0===t?e:t),(([e,t])=>e)))(e)))}partsOf(e){const t="function"==typeof e?e(gx):e;return new mx(Zw(this._ref,(e=>Zw(Ww((t=>{const n=ex(e,t);return[n,n.length]}),(([[t,n],r])=>{if(t.length!==n)throw new Error("cannot add/remove elements through partsOf");let o=0;return Qw(e,(()=>t[o++]),r)})),ox))(t._ref)))}reread(e){return new mx(Zw(this._ref,(e=>Ww((t=>e(t)),(([e,t])=>e)))(e)))}rewrite(e){return new mx(Zw(this._ref,(e=>Ww((e=>e),(([t,n])=>e(t))))(e)))}optional(){return new mx(Zw(this._ref,ux))}guard_(){return e=>this.guard(e)}guard(e){return new mx(Zw(this._ref,(e=>Yw((t=>e(t)?jw(t):Ow(t)),Nw))(e)))}at(e){return new mx(Zw(this._ref,cx(e)))}head(){return new mx(Zw(this._ref,cx(0)))}index(e){return new mx(Zw(this._ref,cx(e)))}find(e){return new mx(Zw(this._ref,(e=>Uw(Zw(Ww((t=>{const n=t.findIndex(e);return-1===n?[ax,-1]:[t[n],n]}),(([[e,t],n])=>{if(e===ax)return n;if(e===lx)return[...n.slice(0,t),...n.slice(t+1)];const r=n.slice();return r[t]=e,r})),ox,sx)))(e)))}elems(){return new mx(Zw(this._ref,Xw))}to(e){return new mx(Zw(this._ref,(e=>$w("Getter",((t,n)=>t.dimap(e,Nw,n))))(e)))}when(e){return new mx(Zw(this._ref,ix(e)))}chars(){return new mx(Zw(this._ref,hx))}words(){return new mx(Zw(this._ref,fx))}prependTo(){return new mx(Zw(this._ref,dx))}appendTo(){return new mx(Zw(this._ref,px))}}const gx=new mx(qw);function vx(e){return t=>((e,t)=>e(Vw({}),Nw)(t))(e._ref,t)}function yx(e){return t=>((e,t)=>e(Vw(Bw),Nw)(t))(e._ref,t)}const bx=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),wx=new WeakMap;function xx(e,t){return((n,r,o)=>{const i=bx((()=>new WeakMap),wx,r);return bx((()=>{const n=t(gx);return Rg((t=>{const r=t(e);return r instanceof Promise?r.then((e=>_x(n,e))):_x(n,r)}),((t,r,o)=>{const i="function"==typeof o?function(e){return t=>n=>Qw(e._ref,t,n)}(n)(o):function(e){return t=>n=>Jw(e._ref,t,n)}(n)(o),a=t(e);return r(e,a instanceof Promise?a.then(i):i(a))}))}),i,o)})(0,e,t)}const _x=(e,t)=>"Traversal"===e._tag?function(e){return t=>ex(e._ref,t)}(e)(t):"Prism"===e._tag?yx(e)(t):vx(e)(t);var Sx=Object.defineProperty,Cx=Object.defineProperties,Ex=Object.getOwnPropertyDescriptors,kx=Object.getOwnPropertySymbols,zx=Object.prototype.hasOwnProperty,Px=Object.prototype.propertyIsEnumerable,Dx=(e,t,n)=>t in e?Sx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ax=(e,t)=>{for(var n in t||(t={}))zx.call(t,n)&&Dx(e,n,t[n]);if(kx)for(var n of kx(t))Px.call(t,n)&&Dx(e,n,t[n]);return e},Tx=(e,t)=>Cx(e,Ex(t)),Ix=(e,t)=>{var n={};for(var r in e)zx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&kx)for(var r of kx(e))t.indexOf(r)<0&&Px.call(e,r)&&(n[r]=e[r]);return n},Mx=["readOnly","plugins","onChange","decorate","renderElement","renderLeaf"],{ElementProvider:Rx,useElementStore:Fx}=Av({element:null},{name:"element"}),Nx=Mf("event-editor")({blur:null,focus:null,last:null}),Ox=Nx.set,jx=Nx.get,Lx=(Nx.use,(e,t={},n=!1)=>{var r;if(t[e.key]){const r=t[e.key],{plugins:o,then:i}=r,a=Ix(r,["plugins","then"]);e=eh()(a,e),n||null==o||o.forEach((t=>{e.plugins||(e.plugins=[]);const n=e.plugins.find((e=>e.key===t.key));n||e.plugins.push(t)}))}e.plugins&&(e.plugins=e.plugins.map((e=>Lx(e,t,!0))));const{then:o}=e;return o?(void 0===e._thenReplaced&&(e._thenReplaced=0),e._thenReplaced<3&&(e.then=(n,r)=>{const i=Ax({key:e.key},o(n,r));return eh()(Lx(i,t),i)},e._thenReplaced++)):(null==(r=t[e.key])?void 0:r.then)&&(e.then=t[e.key].then),e}),Bx=(e,{components:t,overrideByKey:n}={})=>{let r={};return n&&(r=Qp()(n)),t&&Object.keys(t).forEach((e=>{r[e]||(r[e]={}),r[e].component=t[e]})),Object.keys(r).length>0?e.map((e=>Lx(e,r))):e},Kx=e=>{((e,t)=>{Rh(e,Ax({at:[],nodes:e.childrenFactory()},t))})(e),e.history.undos=[],e.history.redos=[],e.operations=[]},Vx="p",Hx=(e,t)=>{var n;return null!=(n=(e=>{var t;return null!=(t=null==e?void 0:e.pluginsByKey)?t:{}})(e)[t])?n:{key:t}},$x=(e,t)=>{var n,r;return null!=(r=null!=(n=Hx(e,t).type)?n:t)?r:""},Ux=e=>(t,n={})=>(n[e.key]=t,Lx(Ax({},e),n)),Zx="deserializeAst",qx=Ux({editor:{insertData:{format:"application/x-slate-fragment",getFragment:({data:e})=>{const t=decodeURIComponent(window.atob(e));let n;try{n=JSON.parse(t)}catch(e){}return nh()(n)}}},key:Zx}),Gx=(e,t)=>{var n;const{selection:r}=e;if(!r)return!1;const o=null==(n=((e,t={})=>yp(e,Tx(Ax({},t),{block:!0})))(e,t))?void 0:n[1];return!!o&&(Rp(e,r.focus,o)||Bp(e.selection)&&Rp(e,r.anchor,o))},Wx="editorProtocol",Yx=Ux({key:Wx,withOverrides:e=>{const{deleteBackward:t,deleteForward:n,deleteFragment:r}=e,o=()=>{Gx(e)&&(e=>{const t=Ap(e);t&&Object.keys(t).forEach((t=>{Np(e,t)}))})(e)};return e.deleteBackward=e=>{t(e),o()},e.deleteForward=e=>{n(e),o()},e.deleteFragment=e=>{r(e),o()},e}}),Xx=Ux({key:"history",withOverrides:e=>(0,np.VC)(e)}),Qx="inline-void",Jx=Ux({key:Qx,withOverrides:e=>{const{isInline:t,isVoid:n,markableVoid:r}=e,o=[],i=[],a=[];return e.plugins.forEach((e=>{e.isInline&&i.push(e.type),e.isVoid&&o.push(e.type),e.isMarkableVoid&&a.push(e.type)})),e.isInline=e=>!!i.includes(e.type)||t(e),e.isVoid=e=>!!o.includes(e.type)||n(e),e.markableVoid=e=>!!a.includes(e.type)||r(e),e}}),e_=(e,t)=>{const n=[];return[...e.plugins].reverse().forEach((e=>{var r;const o=null==(r=e.inject.pluginsByKey)?void 0:r[t.key];o&&n.push(o)})),[t,...n]},t_="insertData",n_=Ux({key:t_,withOverrides:e=>{const{insertData:t}=e;return e.insertData=n=>{const r=[...e.plugins].reverse().some((t=>{const r=t.editor.insertData;if(!r)return!1;const o=e_(e,t),{format:i,getFragment:a}=r;if(!i)return!1;let s=n.getData(i);if(!s)return;if(!((e,{data:t,dataTransfer:n})=>e.every((e=>{var r,o;const i=null==(o=null==(r=e.editor)?void 0:r.insertData)?void 0:o.query;return!i||i({data:t,dataTransfer:n})})))(o,{data:s,dataTransfer:n}))return!1;s=((e,{data:t,dataTransfer:n})=>(e.forEach((e=>{var r,o;const i=null==(o=null==(r=e.editor)?void 0:r.insertData)?void 0:o.transformData;i&&(t=i(t,{dataTransfer:n}))})),t))(o,{data:s,dataTransfer:n});let l=null==a?void 0:a({data:s,dataTransfer:n});return!!(null==l?void 0:l.length)&&(l=((e,t)=>{var n=t,{fragment:r}=n,o=Ix(n,["fragment"]);return e.forEach((e=>{var t,n;const i=null==(n=null==(t=e.editor)?void 0:t.insertData)?void 0:n.transformFragment;i&&(r=i(r,o))})),r})(o,{data:s,dataTransfer:n,fragment:l}),0!==l.length&&(((e,t,n)=>{var r=n,{fragment:o}=r,i=Ix(r,["fragment"]);_p(e,(()=>{t.some((e=>{var t,n,r;return!0===(null==(r=null==(n=null==(t=e.editor)?void 0:t.insertData)?void 0:n.preInsert)?void 0:r.call(n,o,i))})),e.insertFragment(o)}))})(e,o,{data:s,dataTransfer:n,fragment:l}),!0))}));r||t(n)},e}}),r_="length",o_=Ux({key:r_,withOverrides:(e,{options:t})=>{const{apply:n}=e;return e.apply=r=>{_p(e,(()=>{if(n(r),t.maxLength){const n=Dp(e,[]).length;if(n>t.maxLength){const r=n-t.maxLength;e.delete({distance:r,reverse:!0,unit:"character"})}}}))},e}}),i_=({apply:e,node:t,path:n=[],query:r,source:o})=>{Hp([t,n],r)&&e(t,o instanceof Function?o():o),jp(t)&&t.children.forEach(((t,i)=>{i_({apply:e,node:t,path:n.concat([i]),query:r,source:o})}))},a_=(e,t)=>{const n=Ax({},t),{then:r}=n;if(r){delete n.then;const{plugins:t}=n,o=a_(e,eh()(r(e,n),n));if(t&&o.plugins){const e=Lh()(Oh()(t,"key"),Oh()(o.plugins,"key"));o.plugins=Kh()(e)}return o}return n},s_=(e,t)=>{t&&t.forEach((t=>{let n=(e=>(void 0===e.type&&(e.type=e.key),e.options||(e.options={}),e.inject||(e.inject={}),e.editor||(e.editor={}),e))(t);if(n=a_(e,n),!1!==n.enabled){if(e.pluginsByKey[n.key]){const t=e.plugins.indexOf(e.pluginsByKey[n.key]),r=eh()(n,e.pluginsByKey[n.key]);t>=0&&(e.plugins[t]=r),e.pluginsByKey[n.key]=r}else e.plugins.push(n),e.pluginsByKey[n.key]=n;s_(e,n.plugins)}}))},l_=e=>`slate-${e}`,c_=({attributes:e,nodeProps:t,props:n,type:r})=>{var o;let i={};n&&(i=null!=(o="function"==typeof n?n(t):n)?o:{}),!i.nodeProps&&e&&(i.nodeProps=e),(t=Ax(Ax({},t),i)).nodeProps&&Object.keys(t.nodeProps).forEach((e=>{var n,r;void 0===(null==(n=t.nodeProps)?void 0:n[e])&&(null==(r=t.nodeProps)||delete r[e])}));const{className:a}=t;return Tx(Ax({},t),{className:Hh(l_(r),a)})},u_=(e,t,n)=>(e=((e,t,n)=>{const r=((e,t)=>e.some(((e,n,r)=>{const o=r[n-1];return 0!==n&&t(e)!==t(o)})))(e,t),{fragment:o}=e.reduce(((e,o)=>{if(r&&t(o)){let t=e.precedingBlock;t||(t=n(),e.precedingBlock=t,e.fragment.push(t)),t.children.push(o)}else e.fragment.push(o),e.precedingBlock=null;return e}),{fragment:[],precedingBlock:null});return o})(e=(e=>0===e.length?[{text:""}]:e)(e),t,n),e=e.map((e=>fp(e)?Tx(Ax({},e),{children:u_(e.children,t,n)}):e))),d_=(e,{descendants:t})=>{const n=(e=>t=>Sp(t)||fp(t)&&e.isInline(t))(e),r=$x(e,Vx),o=(i=r,()=>({children:[],type:i}));var i;return u_(t,n,o)},p_=(e,t)=>{const n=e.plugins.flatMap((t=>{var n,r;return null!=(r=null==(n=t.decorate)?void 0:n.call(t,e,t))?r:[]}));if(t&&n.push(t),0!==n.length)return e=>{let t=[];return n.forEach((n=>{var r;(null==(r=n(e))?void 0:r.length)&&(t=[...t,...r])})),t}},h_=(e,t)=>{if(!t)return!1;const n=t(e);return null!=n?n:e.isPropagationStopped()},f_=(e,{editableProps:t,handlerKey:n})=>{let r=[];r=e.plugins.flatMap((t=>{var r,o,i;return null!=(i=null==(o=null==(r=t.handlers)?void 0:r[n])?void 0:o.call(r,e,t))?i:[]}));const o=null==t?void 0:t[n];if(0!==r.length||o)return e=>{const t=e instanceof Event?(e=>{let t=!1;return Tx(Ax({},e),{bubbles:e.bubbles,cancelable:e.cancelable,currentTarget:e.currentTarget,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>t,isTrusted:e.isTrusted,nativeEvent:e,persist:()=>{throw new Error("persist is not implemented for synthetic events created using convertDomEventToSyntheticEvent")},preventDefault:()=>e.preventDefault(),stopPropagation:()=>{t=!0,e.stopPropagation()},target:e.target,timeStamp:e.timeStamp,type:e.type})})(e):e;return!!r.some((e=>h_(t,e)))||h_(t,o)}},m_=(e,t)=>(e.plugins.forEach((e=>{if(e.inject.props){const n=((e,{inject:{props:t},key:n},r)=>{var o,i,a,s;const{className:l,element:c,style:u,text:d}=r,p=null!=c?c:d;if(!p)return;if(!t)return;const{classNames:h,defaultNodeValue:f,nodeKey:m=n,query:g,styleKey:v=m,transformClassName:y,transformNodeValue:b,transformProps:w,transformStyle:x,validNodeValues:_,validTypes:S}=t,C=null==g?void 0:g(t,r);if(!C&&S&&fp(p)&&p.type&&!S.includes(p.type))return;const E=p[m];if(!C&&(!hh(E)||_&&!_.includes(E)||E===f))return;const k=Tx(Ax({},r),{nodeValue:E}),z=null!=(o=null==b?void 0:b(k))?o:E;k.value=z;let P={};return c&&(P.className=Hh(l,`slate-${m}-${E}`)),((null==h?void 0:h[E])||y)&&(P.className=null!=(i=null==y?void 0:y(k))?i:Hh(l,null==h?void 0:h[z])),v&&(P.style=null!=(a=null==x?void 0:x(k))?a:Tx(Ax({},u),{[v]:z})),w&&(P=null!=(s=w(k,P))?s:P),P})(0,e,t);n&&(t=Ax(Ax({},t),n))}})),Tx(Ax({},t),{editor:e})),g_={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",insertSoftBreak:"shift+enter",italic:"mod+i",moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",splitBlock:"enter",tab:"tab",undo:"mod+z",untab:"shift+tab"},v_={deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},y_={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},b_=e=>{const t=g_[e],n=v_[e],r=y_[e],o=t&&(0,Zh.TB)(t),i=n&&(0,Zh.TB)(n),a=r&&(0,Zh.TB)(r);return e=>!!(null==o?void 0:o(e))||(!(!ih||!(null==i?void 0:i(e)))||!(ih||!(null==a?void 0:a(e))))},w_={isBold:b_("bold"),isCompose:b_("compose"),isDeleteBackward:b_("deleteBackward"),isDeleteForward:b_("deleteForward"),isDeleteLineBackward:b_("deleteLineBackward"),isDeleteLineForward:b_("deleteLineForward"),isDeleteWordBackward:b_("deleteWordBackward"),isDeleteWordForward:b_("deleteWordForward"),isExtendBackward:b_("extendBackward"),isExtendForward:b_("extendForward"),isExtendLineBackward:b_("extendLineBackward"),isExtendLineForward:b_("extendLineForward"),isItalic:b_("italic"),isMoveBackward:b_("moveBackward"),isMoveForward:b_("moveForward"),isMoveLineBackward:b_("moveLineBackward"),isMoveLineForward:b_("moveLineForward"),isMoveWordBackward:b_("moveWordBackward"),isMoveWordForward:b_("moveWordForward"),isRedo:b_("redo"),isSoftBreak:b_("insertSoftBreak"),isSplitBlock:b_("splitBlock"),isTransposeCharacter:b_("transposeCharacter"),isUndo:b_("undo")},x_="nodeFactory",__=Ux({key:x_,withOverrides:e=>(e.blockFactory=t=>Ax({children:[{text:""}],type:$x(e,Vx)},t),e.childrenFactory=()=>[e.blockFactory()],e)}),S_="prevSelection",C_=Ux({handlers:{onKeyDown:e=>t=>{t.persist(),e.currentKeyboardEvent=t}},key:S_,withOverrides:e=>{const{apply:t}=e;return e.apply=n=>{if("set_selection"===n.type){const{properties:r}=n;return e.prevSelection=r,t(n),void(e.currentKeyboardEvent=null)}t(n)},e}}),E_="focus-editor-event",k_="blur-editor-event",z_="event-editor",P_=Ux({handlers:{onBlur:e=>()=>{jx.focus()===e.id&&Ox.focus(null),Ox.blur(e.id),document.dispatchEvent(new CustomEvent(k_,{detail:{id:e.id}}))},onFocus:e=>()=>{Ox.focus(e.id),document.dispatchEvent(new CustomEvent(E_,{detail:{id:e.id}}))}},key:z_}),D_=new Set(["A","ABBR","B","BDI","BDO","BR","CITE","CODE","DATA","DFN","EM","I","KBD","MARK","Q","S","SAMP","SMALL","SPAN","STRONG","SUB","SUP","TIME","U","VAR","WBR","IMG","MAP","TRACK","VIDEO","EMBED","IFRAME","OBJECT","PICTURE","PORTAL","SOURCE","svg","math","CANVAS","DEL","INS","BUTTON","INPUT","LABEL","METER","OUTPUT","PROGRESS","SELECT","TEXTAREA","ACRONYM","BIG","CONTENT","FONT","IMG","MARQUEE","MENUITEM","NOBR","SHADOW","STRIKE","TT"]),A_=e=>e.nodeType===Node.ELEMENT_NODE,T_=e=>{if(!A_(e))return!1;const t=e,n=D_.has(t.tagName),r=t.style.display.split(" ")[0];return""===r?n:!!r.startsWith("inline")||("inherit"===r&&t.parentElement?T_(t.parentElement):!!["contents","initial","none","revert","revert-layer","unset"].includes(r)&&n)},I_=e=>e.nodeType===Node.TEXT_NODE,M_=e=>{if(!A_(e))return!1;return!T_(e)},R_=e=>{e.inlineFormattingContext=null},F_=(e,t)=>{const n=e.textContent||"",r=""===n.trim();!t.inlineFormattingContext&&r||(e=>{e.inlineFormattingContext?e.inlineFormattingContext.atStart=!1:e.inlineFormattingContext={atStart:!0,lastHasTrailingWhiteSpace:!1}})(t);const{whiteSpaceRule:o}=t,i="normal"!==o?"collapse":!t.inlineFormattingContext||t.inlineFormattingContext.atStart||t.inlineFormattingContext.lastHasTrailingWhiteSpace?"all":"collapse",a="normal"===o?"collapse":(e=>{let t=e;for(;;){if(t.nextSibling)t=t.nextSibling;else{if(t=t.parentElement,t&&M_(t))return!0;t=(null==t?void 0:t.nextSibling)||null}if(!t)return!0;if(M_(t))return!0;if((t.textContent||"").length>0)return!1}})(e)?"single-newline":"collapse",s={normal:!0,pre:!1,"pre-line":!0}[o],l=((e,{shouldCollapseWhiteSpace:t=!0,trimEnd:n="collapse",trimStart:r="collapse",whiteSpaceIncludesNewlines:o=!0}={})=>("all"===r&&(e=e.replace(/^\s+/,"")),"single-newline"===n&&(e=e.replace(/\n$/,"")),t&&(e=o?e.replaceAll(/\s+/g," "):(e=(e=e.replaceAll(/[^\S\n\r]+/g," ")).replaceAll(/^[^\S\n\r]+/gm,"")).replaceAll(/[^\S\n\r]+$/gm,"")),e))(n||"",{shouldCollapseWhiteSpace:s,trimEnd:a,trimStart:i,whiteSpaceIncludesNewlines:"pre-line"!==o});t.inlineFormattingContext&&s&&(t.inlineFormattingContext.lastHasTrailingWhiteSpace=l.endsWith(" ")),e.textContent=l},N_=(e,t)=>{A_(e)?j_(e,t):I_(e)?F_(e,t):O_(e,t)},O_=(e,t)=>{const n=Array.from(e.childNodes);for(const e of n)N_(e,t)},j_=(e,t)=>{const n=T_(e),r=t.whiteSpaceRule,o=(e=>{const t=e.style.whiteSpace;switch(t){case"normal":case"nowrap":return"normal";case"pre":case"pre-wrap":case"break-spaces":return"pre";case"pre-line":return"pre-line"}return"PRE"===e.tagName?"pre":"initial"===t?"normal":null})(e);o&&(t.whiteSpaceRule=o),n||R_(t),O_(e,t),n||R_(t),t.whiteSpaceRule=r},L_=(e,t)=>Array.from(t.childNodes).flatMap(H_(e)),B_=(e,t,{deserializeLeaf:n,element:r})=>{var o;const{deserializeHtml:i,isElement:a,isLeaf:s,type:l}=t;if(!i)return;const{attributeNames:c,isElement:u,isLeaf:d,query:p,rules:h}=i;let{getNode:f}=i;const m=u||a,g=d||s;if(!n&&!m)return;if(n&&!g)return;if(h){if(!h.some((({validAttribute:e,validClassName:n,validNodeName:o="*",validStyle:i})=>{var a;if(o){const e=nh()(o);if(e.length>0&&!e.includes(r.nodeName)&&"*"!==o)return!1}if(n&&!r.classList.contains(n))return!1;if(i)for(const[e,n]of Object.entries(i)){if(!nh()(n).includes(r.style[e])&&"*"!==n)return;if("*"===n&&!r.style[e])return;const o=null==(a=t.inject.props)?void 0:a.defaultNodeValue;if(o&&o===r.style[e])return!1}if(e)if("string"==typeof e){if(!r.getAttributeNames().includes(e))return!1}else for(const[t,n]of Object.entries(e)){const e=nh()(n),o=r.getAttribute(t);if(!hh(o)||!e.includes(o))return!1}return!0})))return}if(p&&!p(r))return;if(!f)if(m)f=()=>({type:l});else{if(!g)return;f=()=>({[l]:!0})}let v=null!=(o=f(r,{}))?o:{};if(0===Object.keys(v).length)return;if(e_(e,t).forEach((e=>{var t,n;const o=null==(n=null==(t=e.deserializeHtml)?void 0:t.getNode)?void 0:n.call(t,r,v);o&&(v=Ax(Ax({},v),o))})),c){const e={},t=r.getAttributeNames();for(const n of t)c.includes(n)&&(e[n]=r.getAttribute(n));Object.keys(e).length>0&&(v.attributes=e)}return Tx(Ax({},i),{node:v})},K_=(e,t)=>{var n;const r=((e,t)=>{let n;return[...e.plugins].reverse().some((r=>(n=B_(e,r,{element:t}),!!n))),n})(e,t);if(r){const{node:o,withoutChildren:i}=r;let a=null!=(n=o.children)?n:L_(e,t);return(0===a.length||i)&&(a=[{text:""}]),(0,Rf.tZ)("element",o,a)}},V_=(e,t)=>{const n=((e,t)=>{let n={};return[...e.plugins].reverse().forEach((r=>{const o=B_(e,r,{deserializeLeaf:!0,element:t});o&&(n=Ax(Ax({},n),o.node))})),n})(e,t);return L_(e,t).reduce(((e,t)=>{if(!t)return e;if(fp(t))Object.keys(n).length>0&&(r={node:t,query:{filter:([e])=>Sp(e)},source:n},i_(Tx(Ax({},r),{apply:Lh()}))),e.push(t);else{const r=Ax({},n);Sp(t)&&t.text&&Object.keys(r).forEach((e=>{r[e]&&t[e]&&(r[e]=t[e])})),e.push((0,Rf.tZ)("text",r,t))}var r;return e}),[])},H_=e=>t=>{const n=(e=>{if(I_(e))return e.textContent||""})(t);if(n)return n;if(!A_(t))return null;const r=(e=>{if("BR"===e.nodeName)return"\n"})(t);if(r)return r;const o=((e,t)=>{if("BODY"===t.nodeName)return(0,Rf.tZ)("fragment",{},L_(e,t))})(e,t);if(o)return o;const i=K_(e,t);return i||V_(e,t)},$_=(e,{collapseWhiteSpace:t=!0,element:n})=>{"string"==typeof n&&(n=(e=>{const t=document.createElement("body");return t.innerHTML=e,t})(n)),t&&(n=(e=>{const t=e.cloneNode(!0);return j_(t,{inlineFormattingContext:null,whiteSpaceRule:"normal"}),t})(n));const r=((e,t)=>H_(e)(t))(e,n);return d_(e,{descendants:r})},U_=e=>(new DOMParser).parseFromString(e,"text/html"),Z_="deserializeHtml",q_=Ux({key:Z_,then:e=>({editor:{insertData:{format:"text/html",getFragment:({data:t})=>{const n=U_(t);return $_(e,{element:n.body})}}}})}),G_=Ux({key:"react",withOverrides:e=>{const t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",n=e,{apply:r,onChange:o,deleteBackward:i,addMark:a,removeMark:s}=n;return Py.set(n,new WeakMap),n.addMark=(e,t)=>{var r,o;null===(r=Ry.get(n))||void 0===r||r(),!Fy.get(n)&&null!==(o=Oy.get(n))&&void 0!==o&&o.length&&Fy.set(n,null),Ny.delete(n),a(e,t)},n.removeMark=e=>{var t;!Fy.get(n)&&null!==(t=Oy.get(n))&&void 0!==t&&t.length&&Fy.set(n,null),Ny.delete(n),s(e)},n.deleteBackward=e=>{if("line"!==e)return i(e);if(n.selection&&tp.e6.isCollapsed(n.selection)){var t=tp.ML.above(n,{match:e=>tp.W_.isElement(e)&&tp.ML.isBlock(n,e),at:n.selection});if(t){var[,r]=t,o=tp.ML.range(n,r,n.selection.anchor),a=Sw(n,o);tp.e6.isCollapsed(a)||tp.YR.delete(n,{at:a})}}},n.apply=t=>{var o=[],i=[],a=Oy.get(n);if(null!=a&&a.length){var s=a.map((e=>hb(e,t))).filter(Boolean);Oy.set(n,s)}var l=Ly.get(n);l&&Ly.set(n,pb(n,l,t));var c=jy.get(n);if(null!=c&&c.at){var u=tp.E9.isPoint(null==c?void 0:c.at)?db(n,c.at,t):pb(n,c.at,t);jy.set(n,u?Ew(Ew({},c),{},{at:u}):null)}switch(t.type){case"insert_text":case"remove_text":case"set_node":case"split_node":o.push(...kw(n,t.path));break;case"set_selection":var d;null===(d=Iy.get(n))||void 0===d||d.unref(),Iy.delete(n);break;case"insert_node":case"remove_node":o.push(...kw(n,tp.y$.parent(t.path)));break;case"merge_node":var p=tp.y$.previous(t.path);o.push(...kw(n,p));break;case"move_node":var h,f=tp.y$.common(tp.y$.parent(t.path),tp.y$.parent(t.newPath));o.push(...kw(n,f)),tp.y$.isBefore(t.path,t.newPath)?(o.push(...kw(n,tp.y$.parent(t.path))),h=t.newPath):(o.push(...kw(n,tp.y$.parent(t.newPath))),h=t.path);var m=tp.NB.get(e,tp.y$.parent(h)),g=ob.findKey(n,m),v=tp.ML.pathRef(n,tp.y$.parent(h));i.push([v,g])}for(var[y,b]of(r(t),o)){var[w]=tp.ML.node(n,y);zy.set(w,b)}for(var[x,_]of i)if(x.current){var[S]=tp.ML.node(n,x.current);zy.set(S,_)}},n.setFragmentData=e=>{var{selection:r}=n;if(r){var[o,i]=tp.e6.edges(r),a=tp.ML.void(n,{at:o.path}),s=tp.ML.void(n,{at:i.path});if(!tp.e6.isCollapsed(r)||a){var l=ob.toDOMRange(n,r),c=l.cloneContents(),u=c.childNodes[0];if(c.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(u=e)})),s){var[d]=s,p=l.cloneRange(),h=ob.toDOMNode(n,d);p.setEndAfter(h),c=p.cloneContents()}if(a&&(u=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),Gy(u)){var f=u.ownerDocument.createElement("span");f.style.whiteSpace="pre",f.appendChild(u),c.appendChild(f),u=f}var m=n.getFragment(),g=JSON.stringify(m),v=window.btoa(encodeURIComponent(g));u.setAttribute("data-slate-fragment",v),e.setData("application/".concat(t),v);var y=c.ownerDocument.createElement("div");return y.appendChild(c),y.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(y),e.setData("text/html",y.innerHTML),e.setData("text/plain",Xy(y)),c.ownerDocument.body.removeChild(y),e}}},n.insertData=e=>{n.insertFragmentData(e)||n.insertTextData(e)},n.insertFragmentData=e=>{var r=e.getData("application/".concat(t))||Jy(e);if(r){var o=decodeURIComponent(window.atob(r)),i=JSON.parse(o);return n.insertFragment(i),!0}return!1},n.insertTextData=e=>{var t=e.getData("text/plain");if(t){var r=t.split(/\r\n|\r|\n/),o=!1;for(var i of r)o&&tp.YR.splitNodes(n,{always:!0}),n.insertText(i),o=!0;return!0}return!1},n.onChange=e=>{(iy<18?jn.unstable_batchedUpdates:e=>e())((()=>{var t=My.get(n);t&&t(e),o(e)}))},n}(e),{reset:n}=t;return t.reset=()=>{const t=(e=>ob.isFocused(e))(e);n(),t&&((e,{edge:t="start"}={})=>{const n="start"===t?Pp(e,[]):kp(e,[]);Pw(e,n)})(e,{edge:"start"})},t}}),W_=(e,{disableCorePlugins:t,maxLength:n,plugins:r=[]})=>{var o,i,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,_,S,C,E;let k=[];if(!0!==t){const r=t;"object"==typeof r&&(null==r?void 0:r.react)||k.push(null!=(i=null==(o=null==e?void 0:e.pluginsByKey)?void 0:o.react)?i:G_()),"object"==typeof r&&(null==r?void 0:r.history)||k.push(null!=(s=null==(a=null==e?void 0:e.pluginsByKey)?void 0:a.history)?s:Xx()),"object"==typeof r&&(null==r?void 0:r.nodeFactory)||k.push(null!=(c=null==(l=null==e?void 0:e.pluginsByKey)?void 0:l.nodeFactory)?c:__()),"object"==typeof r&&(null==r?void 0:r.eventEditor)||k.push(null!=(d=null==(u=null==e?void 0:e.pluginsByKey)?void 0:u["event-editor"])?d:P_()),"object"==typeof r&&(null==r?void 0:r.inlineVoid)||k.push(null!=(h=null==(p=null==e?void 0:e.pluginsByKey)?void 0:p["inline-void"])?h:Jx()),"object"==typeof r&&(null==r?void 0:r.insertData)||k.push(null!=(m=null==(f=null==e?void 0:e.pluginsByKey)?void 0:f.insertData)?m:n_()),"object"==typeof r&&(null==r?void 0:r.selection)||k.push(null!=(v=null==(g=null==e?void 0:e.pluginsByKey)?void 0:g.prevSelection)?v:C_()),"object"==typeof r&&(null==r?void 0:r.length)||!hh(n)||k.push(null!=(b=null==(y=null==e?void 0:e.pluginsByKey)?void 0:y.length)?b:o_({options:{maxLength:n}})),"object"==typeof r&&(null==r?void 0:r.deserializeHtml)||k.push(null!=(x=null==(w=null==e?void 0:e.pluginsByKey)?void 0:w.deserializeHtml)?x:q_()),"object"==typeof r&&(null==r?void 0:r.deserializeAst)||k.push(null!=(S=null==(_=null==e?void 0:e.pluginsByKey)?void 0:_.deserializeAst)?S:qx()),"object"==typeof r&&(null==r?void 0:r.editorProtocol)||k.push(null!=(E=null==(C=null==e?void 0:e.pluginsByKey)?void 0:C.editorProtocol)?E:Yx())}k=[...k,...r],e.plugins=[],e.pluginsByKey={},s_(e,k),e.plugins.forEach((t=>{if(t.overrideByKey){const n=e.plugins.map((e=>Lx(e,t.overrideByKey)));e.plugins=[],e.pluginsByKey={},s_(e,n)}}))},Y_=e=>()=>{console.warn(`editor.${e} should have been overriden but was not. Please report this issue here: https://github.com/udecode/plate/issues`)},X_=(e={})=>{var t=e,{components:n,editor:r=pp(),normalizeInitialValue:o,overrideByKey:i,plugins:a=[]}=t,s=Ix(t,["components","editor","normalizeInitialValue","overrideByKey","plugins"]);a=Bx(a,{components:n,overrideByKey:i});const l=((e,{disableCorePlugins:t,id:n,maxLength:r,plugins:o=[]}={})=>{let i=e;return i.id=null!=n?n:i.id,i.prevSelection=null,i.isFallback=!1,i.currentKeyboardEvent=null,i.reset=()=>Kx(i),i.redecorate=()=>Y_("redecorate"),i.plate={get set(){return Y_("plate.set"),null}},i.key||(i.key=Math.random()),W_(i,{disableCorePlugins:t,maxLength:r,plugins:o}),i.plugins.forEach((e=>{e.withOverrides&&(i=e.withOverrides(i,e))})),i})(r,Ax({plugins:a},s));return o&&Fp(l,{force:!0}),l},Q_=(e={})=>{const t=X_(e);return t.isFallback=!0,t.apply=()=>{throw new Error("Cannot apply operations on the fallback editor. The fallback editor is used when a hook that depends on the Plate store was unable to locate a valid store. If you are using PlateController, use `useEditorMounted(id?: PlateId)` or `!editor.isFallback` to ensure that a valid Plate store is available before attempting to call operations on the editor.")},t},J_=e=>(t,n,{composing:r}={})=>!!b_(e)(n)&&!!r===(e=>ob.isComposing(e))(t),eS=Tx(Ax({},w_),{isTab:J_("tab"),isUntab:J_("untab")}),tS=(e,t)=>{const n=[];return e.plugins.forEach((t=>{t.isElement&&n.push(((e,{component:t,key:n,props:r,type:o})=>function(i){const{children:a,element:s}=i;if(s.type===o){const c=null!=t?t:Hb,u=e.plugins.flatMap((e=>{var t,n;return null!=(n=null==(t=e.inject)?void 0:t.aboveComponent)?n:[]})),d=e.plugins.flatMap((e=>{var t,n;return null!=(n=null==(t=e.inject)?void 0:t.belowComponent)?n:[]}));i=c_({attributes:s.attributes,nodeProps:i,props:r,type:o});let p=a;d.forEach((e=>{const t=e(Tx(Ax({},i),{key:n}));t&&(p=t(Tx(Ax({},i),{children:p})))}));let h=l.createElement(c,Ax({},i),p);return u.forEach((e=>{const t=e(Tx(Ax({},i),{key:n}));t&&(h=t(Tx(Ax({},i),{children:h})))})),l.createElement(Rx,{element:s,scope:n},h)}})(e,t))})),function(r){const o=m_(e,r);let i;return n.some((e=>(i=e(o),!!i))),i||(t?t(o):l.createElement(Hb,Ax({},o)))}};function nS(e){var t=e,{attributes:n,children:r,editor:o,leaf:i,nodeProps:a,text:s}=t,c=Ix(t,["attributes","children","editor","leaf","nodeProps","text"]);return l.createElement("span",Ax(Ax({},n),c),r)}var rS=["onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onDOMBeforeInput","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],oS=(e,t)=>{const n=[];return e.plugins.forEach((e=>{e.isLeaf&&e.key&&n.push(((e,{component:t,key:n,props:r,type:o=n})=>function(e){const{children:n,leaf:i}=e;if(i[o]){const a=null!=t?t:nS;return e=c_({attributes:i.attributes,nodeProps:e,props:r,type:o}),l.createElement(a,Ax({},e),n)}return n})(0,e))})),function(r){const o=m_(e,r);return n.forEach((e=>{const t=e(o);void 0!==t&&(o.children=t)})),t?t(o):l.createElement(nS,Ax({},o))}},{PlateControllerProvider:iS,plateControllerStore:aS,usePlateControllerStore:sS}=Av({activeId:Rg(null),editorStores:Rg({}),primaryEditorIds:Rg([])},{name:"plateController"}),lS=()=>sS().set,cS=e=>{const t=l.useMemo((()=>Rg((t=>{const n=t(aS.atom.editorStores),r=e=>{var t;return e&&null!=(t=n[e])?t:null};if(e)return r(e);const o=[t(aS.atom.activeId),...t(aS.atom.primaryEditorIds)];for(const e of o){const t=r(e);if(t)return t}return null}))),[e]);return sS().get.atom(t)},{PlateProvider:uS,plateStore:dS,usePlateStore:pS}=(Symbol("global-plate"),((e={})=>{var t=e,{decorate:n=null,editor:r=Q_(),editorRef:o=null,id:i,isMounted:a=!1,onChange:s=null,onSelectionChange:l=null,onValueChange:c=null,plugins:u=[],primary:d=!0,rawPlugins:p=[],readOnly:h=null,renderElement:f=null,renderLeaf:m=null,value:g=null,versionDecorate:v=1,versionEditor:y=1,versionSelection:b=1}=t,w=Ix(t,["decorate","editor","editorRef","id","isMounted","onChange","onSelectionChange","onValueChange","plugins","primary","rawPlugins","readOnly","renderElement","renderLeaf","value","versionDecorate","versionEditor","versionSelection"]);return Av(Ax({decorate:n,editor:r,editorRef:o,id:i,isMounted:a,onChange:s,onSelectionChange:l,onValueChange:c,plugins:u,primary:d,rawPlugins:p,readOnly:h,renderElement:f,renderLeaf:m,value:g,versionDecorate:v,versionEditor:y,versionSelection:b},w),{extend:e=>({trackedEditor:Rg((t=>({editor:t(e.editor),version:t(e.versionEditor)}))),trackedSelection:Rg((t=>({selection:t(e.editor).selection,version:t(e.versionSelection)})))}),name:"plate"})})()),hS=(e,{debugHookName:t="usePlateEditorStore"}={})=>{var n;const r=null!=(n=pS(e).store({warnIfNoStore:!1}))?n:null,[o]=l.useState(!!r),i=o?r:cS(e),a=!!sS().store({warnIfNoStore:!1}),s=l.useMemo((()=>Xg()),[]);if(!i){if(a)return s;throw new Error(`${t} must be used inside a Plate or PlateController`)}return i},fS=(e,t)=>{const n=hS(e,Ax({debugHookName:"usePlateSelectors"},t));return pS({store:n}).get},mS=(e,t)=>{const n=hS(e,Ax({debugHookName:"usePlateActions"},t));return pS({store:n}).set},gS=(e,t,n={})=>{const r=l.useRef(1),o=mS(t,Ax({debugHookName:"useIncrementVersion"},n))[e]();return l.useCallback((()=>{const e=r.current+1;o(e),r.current=e}),[o])},vS=(e,t={})=>fS(e,Ax({debugHookName:"useEditorRef"},t)).editor(),yS=(e,t,n={})=>{var r=n,{equalityFn:o=((e,t)=>e===t),id:i}=r,a=Ix(r,["equalityFn","id"]);const s=l.useMemo((()=>av(dS.atom.trackedEditor,(({editor:t},n)=>e(t,n)),o)),t);return fS(i,Ax({debugHookName:"useEditorSelector"},a)).atom(s)},bS=({id:e})=>{const t=vS(e),n=((e,t={})=>{const n=gS("versionDecorate",e,Ax({debugHookName:"useRedecorate"},t));return l.useCallback((()=>{n()}),[n])})(e),r=pS(e),o=Object.fromEntries(Mx.map((e=>[e,r.set[e]()]))),i=l.useMemo((()=>o),[]);return l.useEffect((()=>{t.redecorate=n,t.plate={set:i}}),[t,n,i]),null};function wS({id:e,plugin:t}){var n;const r=vS(e);return null==(n=t.useHooks)||n.call(t,r,t),null}function xS({id:e}){const t=mS(e).isMounted(),n=fS(e).plugins(),r=vS(e),o=fS(e).editorRef();return l.useEffect((()=>(t(!0),()=>{t(!1)})),[t]),l.useEffect((()=>"function"==typeof o?(o(r),()=>o(null)):o?(o.current=r,()=>{o.current=null}):void 0),[o,r]),l.createElement(l.Fragment,null,n.map((t=>l.createElement(wS,{id:e,key:t.key,plugin:t}))))}var _S=l.memo((({id:e})=>{const t=Yb(),n=gS("versionEditor",e);l.useEffect((()=>{n()}));const r=gS("versionSelection",e),o=l.useRef(t.selection),i=SS(o.current,t.selection);return l.useEffect((()=>{i||r(),o.current=t.selection}),[t.selection,i,r]),null})),SS=(e,t)=>!e&&!t||!(!e||!t)&&tp.e6.equals(e,t),CS=({disableCorePlugins:e,id:t,plugins:n})=>{const r=vS(t),o=((e,t)=>{const n=hS(e,Ax({debugHookName:"usePlateStates"},t));return pS({store:n}).use})(t),[i,a]=o.rawPlugins(),[,s]=o.plugins();l.useEffect((()=>{hh(n)&&n!==i&&(a(i),W_(r,{disableCorePlugins:e,plugins:n}),s(r.plugins))}),[e,r,i,n,s,a])};function ES(e){var t=e,{children:n}=t,r=Ix(t,["children"]);return CS(r),l.createElement(l.Fragment,null,n)}function kS({children:e,decorate:t,disableCorePlugins:n,editor:r,editorRef:o,id:i,initialValue:a,maxLength:s,normalizeInitialValue:c,onChange:u,onSelectionChange:d,onValueChange:p,plugins:h,primary:f,readOnly:m,renderElement:g,renderLeaf:v,value:y}){const[b]=l.useState((()=>{var e,t;return null!=(t=null!=(e=null==r?void 0:r.id)?e:i)?t:((e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t})()})),w=l.useMemo((()=>null!=r?r:X_({disableCorePlugins:n,id:b,maxLength:s,plugins:h})),[]),x=l.useMemo((()=>{let e=null!=a?a:y;e||(e=w.children.length>0?w.children:w.childrenFactory());const t=((e,t)=>{let n=Qp()(t);if(e.plugins.forEach((e=>{var t;const r=null==(t=e.normalizeInitialValue)?void 0:t.call(e,n);r&&(n=r)})),!Uh()(t,n))return n})(w,e);return t&&(e=t),w.children=e,c&&Fp(w,{force:!0}),w.children}),[]);return l.createElement(uS,{decorate:t,editor:w,editorRef:o,id:b,onChange:u,onSelectionChange:d,onValueChange:p,plugins:w.plugins,primary:f,rawPlugins:h,readOnly:m,renderElement:g,renderLeaf:v,scope:b,value:x},l.createElement(ES,{disableCorePlugins:n,id:b,plugins:h},e))}function zS(e){const{id:t}=e;return l.createElement(kS,Ax({key:null==t?void 0:t.toString()},e))}var PS=({id:e})=>{const t=fS(void 0,{debugHookName:"usePlateId"}).id(),n=null!=e?e:t,r=l.useMemo((()=>xx(aS.atom.editorStores,(e=>e.prop(n)))),[n]),o=lS().atom(r,{warnIfNoStore:!1}),i=pS(n).store(),a=fS(n).primary(),s=lS().primaryEditorIds({warnIfNoStore:!1}),c=(0,l.useContext)(vw),u=lS().activeId({warnIfNoStore:!1});return l.useEffect((()=>(o(null!=i?i:null),()=>{o(null),u((e=>e===n?null:e))})),[i,o,u,n]),l.useEffect((()=>{if(a)return s((e=>[...e,n])),()=>{s((e=>e.filter((e=>e!==n))))}}),[n,a,s]),l.useEffect((()=>{n&&c&&u(n)}),[n,c,u]),null};function DS({children:e,id:t}){var n;const r=(({id:e})=>{const t=vS(e),n=fS(e).value(),r=mS(e).value(),o=fS(e).onChange(),i=fS(e).onValueChange(),a=fS(e).onSelectionChange(),s=l.useCallback((e=>{const n=(e=>{const t=e.plugins.flatMap((t=>{var n,r,o;return null!=(o=null==(r=null==(n=t.handlers)?void 0:n.onChange)?void 0:r.call(n,e,t))?o:[]}));return e=>t.some((t=>{if(!t)return!1;const n=t(e);return null!=n&&n}))})(t)(e);n||null==o||o(e),r(e)}),[t,r,o]),c=l.useMemo((()=>i),[i]),u=l.useMemo((()=>a),[a]);return l.useMemo((()=>({editor:t,initialValue:n,key:t.key,onChange:s,onSelectionChange:u,onValueChange:c,value:n})),[t,s,u,c,n])})({id:t}),o=vS(t);let i=l.createElement(ww,Ax({},r),e);return null==(n=o.plugins)||n.forEach((e=>{const{renderAboveSlate:t}=e;t&&(i=l.createElement(t,null,i))})),i}var AS=l.forwardRef(((e,t)=>{var n=e,{renderEditable:r}=n,o=Ix(n,["renderEditable"]);const{id:i}=o,a=vS(i);if(!a)throw new Error("Editor not found. Please ensure that PlateContent is rendered below Plate.");const s=((e={})=>{const{id:t}=e,n=vS(t),r=fS(t),o=r.versionDecorate(),i=r.readOnly(),a=r.decorate(),s=r.renderLeaf(),c=r.renderElement(),u=l.useMemo((()=>p_(n,null!=a?a:null==e?void 0:e.decorate)),[null==e?void 0:e.decorate,n,a]),d=l.useMemo((()=>{if(o&&u)return e=>u(e)}),[u,o]),p=l.useMemo((()=>tS(n,null!=c?c:null==e?void 0:e.renderElement)),[null==e?void 0:e.renderElement,n,c]),h=l.useMemo((()=>oS(n,null!=s?s:null==e?void 0:e.renderLeaf)),[null==e?void 0:e.renderLeaf,n,s]),f=Fw((()=>{const t={decorate:d,renderElement:p,renderLeaf:h};return hh(i)&&(t.readOnly=i),rS.forEach((r=>{const o=f_(n,{editableProps:e,handlerKey:r});o&&(t[r]=o)})),t}),[d,e,p,h,i]);return Fw((()=>Ax(Ax({},Aw()(e,[...rS,"renderElement","renderLeaf"])),f)),[e,f])})(o),c=l.createElement(uw,Ax({ref:t},s));let u=null,d=null;a.plugins.forEach((e=>{const{renderAfterEditable:t,renderBeforeEditable:n}=e;t&&(u=l.createElement(l.Fragment,null,u,l.createElement(t,Ax({},s)))),n&&(d=l.createElement(l.Fragment,null,d,l.createElement(n,Ax({},s))))}));let p=l.createElement(l.Fragment,null,d,r?r(c):c,l.createElement(bS,{id:i}),l.createElement(_S,{id:i}),l.createElement(xS,{id:i}),l.createElement(PS,{id:i}),u);return a.plugins.forEach((e=>{const{renderAboveEditable:t}=e;t&&(p=l.createElement(t,null,p))})),l.createElement(DS,{id:i},p)}));AS.displayName="PlateContent";var TS=Object.defineProperty,IS=Object.defineProperties,MS=Object.getOwnPropertyDescriptors,RS=Object.getOwnPropertySymbols,FS=Object.prototype.hasOwnProperty,NS=Object.prototype.propertyIsEnumerable,OS=(e,t,n)=>t in e?TS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jS=(e,t)=>{for(var n in t||(t={}))FS.call(t,n)&&OS(e,n,t[n]);if(RS)for(var n of RS(t))NS.call(t,n)&&OS(e,n,t[n]);return e},LS=(e,t)=>IS(e,MS(t)),BS=(e,t)=>{var n={};for(var r in e)FS.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&RS)for(var r of RS(e))t.indexOf(r)<0&&NS.call(e,r)&&(n[r]=e[r]);return n},KS=l.forwardRef(((e,t)=>{const{props:n,ref:r}=(e=>{const t=e,{attributes:n,editor:r,element:o,elementToAttributes:i,nodeProps:a}=t,s=BS(t,["attributes","editor","element","elementToAttributes","nodeProps"]);return{props:LS(jS(jS(jS(jS({},n),s),a),null==i?void 0:i(o)),{className:Hh(e.className,null==a?void 0:a.className)}),ref:sg(e.ref,n.ref)}})(LS(jS({},e),{ref:t}));return l.createElement(ig,LS(jS({},n),{ref:r}))}));KS.displayName="PlateElement";var VS=l.forwardRef(((e,t)=>{const{props:n,ref:r}=(e=>{const t=e,{attributes:n,editor:r,leaf:o,leafToAttributes:i,nodeProps:a,text:s}=t,l=BS(t,["attributes","editor","leaf","leafToAttributes","nodeProps","text"]);return{props:LS(jS(jS(jS(jS({},n),l),a),null==i?void 0:i(o)),{className:Hh(e.className,null==a?void 0:a.className)}),ref:sg(e.ref,n.ref)}})(LS(jS({},e),{ref:t}));return l.createElement(ag,LS(jS({},n),{ref:r}))}));VS.displayName="PlateLeaf";var HS="backgroundColor",$S=Yf({inject:{props:{nodeKey:HS}},key:HS,then:(e,{type:t})=>({deserializeHtml:{getNode:e=>({[t]:e.style.backgroundColor}),isLeaf:!0,rules:[{validStyle:{backgroundColor:"*"}}]}})}),US="color",ZS=Yf({inject:{props:{defaultNodeValue:"black",nodeKey:US}},key:US,then:(e,{type:t})=>({deserializeHtml:{getNode(e){if(e.style.color)return{[t]:e.style.color}},isLeaf:!0,rules:[{validStyle:{color:"*"}}]}})}),qS="fontFamily",GS=(Yf({inject:{props:{nodeKey:qS}},key:qS,then:(e,{type:t})=>({deserializeHtml:{getNode:e=>({[t]:e.style.fontFamily}),isLeaf:!0,rules:[{validStyle:{fontFamily:"*"}}]}})}),"fontSize"),WS=(Yf({inject:{props:{nodeKey:GS}},key:GS,then:(e,{type:t})=>({deserializeHtml:{getNode:e=>({[t]:e.style.fontSize}),isLeaf:!0,rules:[{validStyle:{fontSize:"*"}}]}})}),"fontWeight"),YS=(Yf({inject:{props:{nodeKey:WS}},key:WS,then:(e,{type:t})=>({deserializeHtml:{getNode:e=>({[t]:e.style.fontWeight}),isLeaf:!0,rules:[{validStyle:{fontWeight:"*"}}]}})}),({closeOnSelect:e=!0,colors:t,customColors:n,nodeType:r})=>{const o=vS(),i=yS((e=>!!e.selection),[]),a=yS((e=>Eh(e,r)),[r]),[s,c]=l.useState(),[u,d]=l.useState(!1),p=l.useCallback(((e=!u)=>{d(e)}),[u,d]),h=l.useCallback((e=>{o.selection&&(c(e),Ep(o,o.selection),Pw(o),((e,t,n=[])=>{e.selection&&_p(e,(()=>{const r=nh()(n);Ih(e,{key:r}),Ih(e,{key:Object.keys(t)}),Object.keys(t).forEach((n=>{e.addMark(n,t[n])}))}))})(o,{[r]:e}))}),[o,r]),f=l.useCallback((t=>{h(t),e&&p()}),[e,p,h]),m=l.useCallback((()=>{o.selection&&(Ep(o,o.selection),Pw(o),s&&Ih(o,{key:r}),e&&p())}),[o,s,e,p,r]);return l.useEffect((()=>{i&&c(a)}),[a,i]),{clearColor:m,color:a,colors:t,customColors:n,onToggle:p,open:u,selectedColor:s,updateColor:h,updateColorAndClose:f}}),XS="p",QS=Yf({deserializeHtml:{query:e=>"Consolas"!==e.style.fontFamily,rules:[{validNodeName:"P"}]},handlers:{onKeyDown:(e,{options:{hotkey:t},type:n})=>r=>{if(r.defaultPrevented)return;const o=Gf(e,Zf);if(!t)return;const i=nh()(t);for(const t of i)if((0,Zh.P6)(t,r))return r.preventDefault(),void Wf(e,{activeType:n,inactiveType:o})}},isElement:!0,key:XS,options:{hotkey:["mod+opt+0","mod+shift+0"]}});Math.min,Math.max,Math.round,Math.floor;"undefined"!=typeof document?l.useLayoutEffect:l.useEffect;new WeakMap,new WeakMap;var JS="undefined"==typeof Element;JS||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,!JS&&Element.prototype.getRootNode;"undefined"!=typeof document?l.useLayoutEffect:l.useEffect;c["useId".toString()];c["useInsertionEffect".toString()];Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Yf({key:"normalizeTypes",options:{rules:[]},withOverrides:(e,{options:{onError:t,rules:n}})=>{const{normalizeNode:r}=e;return e.normalizeNode=([o,i])=>{if(0===i.length){const r=n.some((({path:n,strictType:r,type:o})=>{const i=((e,t)=>{try{for(let n=0;n<t.length;n++){const r=t[n];if(Sp(e)||!e.children[r])return null;e=e.children[r]}return e}catch(e){return null}})(e,n);if(i){if(r&&fp(i)&&i.type!==r)return Yp(e,{type:r},{at:n}),!0}else try{return Th(e,{children:[{text:""}],type:null!=r?r:o},{at:n}),!0}catch(e){null==t||t(e)}return!1}));if(r)return}return r([o,i])},e}});var eC=(e,{options:{types:t}})=>{const n=nh()(t),{normalizeNode:r}=e;return e.normalizeNode=([t,o])=>{fp(t)&&t.type&&n.includes(t.type)&&""===Op(t)?Cp(e,{at:o}):r([t,o])},e},tC=(Yf({key:"removeEmptyNodes",withOverrides:eC}),Object.defineProperty),nC=Object.defineProperties,rC=Object.getOwnPropertyDescriptors,oC=Object.getOwnPropertySymbols,iC=Object.prototype.hasOwnProperty,aC=Object.prototype.propertyIsEnumerable,sC=(e,t,n)=>t in e?tC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lC=(e,t)=>{for(var n in t||(t={}))iC.call(t,n)&&sC(e,n,t[n]);if(oC)for(var n of oC(t))aC.call(t,n)&&sC(e,n,t[n]);return e},cC=(e,t)=>nC(e,rC(t)),uC=(e,t)=>{var n={};for(var r in e)iC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&oC)for(var r of oC(e))t.indexOf(r)<0&&aC.call(e,r)&&(n[r]=e[r]);return n},dC=(e,{children:t,target:n,text:r="",url:o})=>({children:null!=t?t:[{text:r}],target:n,type:Gf(e,_C),url:o}),pC=(e,t)=>{const{allowedSchemes:n,dangerouslySkipSanitization:r,defaultLinkAttributes:o}=im(e,_C),i=lC({},o),a=r?t.url:ph(t.url,{allowedSchemes:n})||void 0;return void 0!==a&&(i.href=a),"target"in t&&(i.target=t.target),i},hC=Mf("floatingLink")({isEditing:!1,mode:"",mouseDown:!1,newTab:!1,openEditorId:null,text:"",updated:!1,url:""}).extendActions((e=>({reset:()=>{e.url(""),e.text(""),e.newTab(!1),e.mode(""),e.isEditing(!1)}}))).extendActions((e=>({hide:()=>{e.openEditorId(null),e.reset()},show:(t,n)=>{e.mode(t),e.isEditing(!1),e.openEditorId(n)}}))).extendSelectors((e=>({isOpen:t=>e.openEditorId===t}))),fC=hC.set,mC=hC.get,gC=()=>hC.use,vC=(lg("input")({propsHook:({checked:e,ref:t,setChecked:n})=>{const r=l.useCallback((e=>{n(e.target.checked),fC.newTab(e.target.checked)}),[n]);return{props:{checked:e,onChange:r,type:"checkbox"},ref:t}},stateHook:()=>{const e=gC().updated(),t=l.useRef(null),[n,r]=l.useState(mC.newTab());return l.useEffect((()=>{t.current&&e&&setTimeout((()=>{var e;null==(e=t.current)||e.focus()}),0)}),[e]),{checked:n,ref:t,setChecked:r}}}),lg("input")({propsHook:e=>{const t=l.useCallback((e=>{const t=(e=>{try{return e!==decodeURIComponent(e)?e:encodeURI(e)}catch(t){if(t instanceof URIError)return e;throw t}})(e.target.value);fC.url(t)}),[]);return{props:{defaultValue:mC.url(),onChange:t},ref:e.ref}},stateHook:()=>{const e=gC().updated(),t=l.useRef(null);return l.useEffect((()=>{t.current&&e&&setTimeout((()=>{const e=t.current;e&&(e.focus(),e.value=mC.url()?(e=>{try{return decodeURI(e)}catch(t){if(t instanceof URIError)return e;throw t}})(mC.url()):"")}),0)}),[e]),{ref:t}}}),lg("a")({propsHook:({element:e})=>{const t=vS();if(!e)return{props:{}};const n=pC(t,e);return{props:cC(lC({},n),{"aria-label":"Open link in a new tab",onMouseOver:e=>{e.stopPropagation()},target:"_blank"})}},stateHook:()=>{const e=vS(),t=((e,t={})=>fS(e,Ax({debugHookName:"useEditorSelection"},t)).trackedSelection().selection)(),n=l.useMemo((()=>Gp(e,{match:{type:Gf(e,_C)}})),[e,t]);if(!n)return{};const[r]=n;return{element:r}}}),(e,t)=>_p(e,(()=>{var n,r,o,i,a,s;if(null==t?void 0:t.split){if(yp(e,{at:null==(n=e.selection)?void 0:n.anchor,match:{type:Gf(e,_C)}}))return qp(e,{at:null==(r=e.selection)?void 0:r.anchor,match:t=>fp(t)&&t.type===Gf(e,_C)}),vC(e,{at:null==(o=e.selection)?void 0:o.anchor}),!0;if(yp(e,{at:null==(i=e.selection)?void 0:i.focus,match:{type:Gf(e,_C)}}))return qp(e,{at:null==(a=e.selection)?void 0:a.focus,match:t=>fp(t)&&t.type===Gf(e,_C)}),vC(e,{at:null==(s=e.selection)?void 0:s.focus}),!0}((e,t)=>{tp.YR.unwrapNodes(e,vp(e,t))})(e,lC({match:{type:Gf(e,_C)}},t))}))),yC=(e,{text:t})=>{const n=yp(e,{match:{type:Gf(e,_C)}});if(n){const[r,o]=n;if((null==t?void 0:t.length)&&t!==Dp(e,o)){const n=r.children[0];Rh(e,{at:o,insertOptions:{select:!0},nodes:cC(lC({},n),{text:t})})}}},bC=(e,t)=>{var n=t,{target:r,url:o}=n,i=uC(n,["target","url"]);((e,t,n)=>{bp(e,null==n?void 0:n.at,n),tp.YR.wrapNodes(e,t,n)})(e,{children:[],target:r,type:Gf(e,_C),url:o},lC({split:!0},i))},wC=(e,{insertNodesOptions:t,insertTextInLink:n,skipValidation:r=!1,target:o,text:i,url:a})=>{var s,l,c;const u=e.selection;if(!u)return;const d=yp(e,{at:u,match:{type:Gf(e,_C)}});if(n&&d)return e.insertText(a),!0;if(!r&&!xC(e,a))return;if(hh(i)&&0===i.length&&(i=a),d)return a===(null==(s=d[0])?void 0:s.url)&&o===(null==(l=d[0])?void 0:l.target)||Zp(e,{target:o,url:a},{at:d[1]}),yC(e,{target:o,text:i,url:a}),!0;const p=Gp(e,{at:u,match:{type:Gf(e,_C)}}),[h,f]=null!=p?p:[];let m=!1;if(f&&(null==i?void 0:i.length)){i!==Dp(e,f)&&(m=!0)}if(Bp(u))return vC(e,d?{at:d[1]}:{split:!0}),bC(e,{target:o,url:a}),yC(e,{target:o,text:i,url:a}),!0;m&&Cp(e,{at:f});const g=(v=null!=h?h:{},tp.NB.extractProps(v));var v;const y=null==(c=e.selection)?void 0:c.focus.path;if(!y)return;const b=((e,t)=>tp.NB.leaf(e,t))(e,y);return(null==i?void 0:i.length)||(i=a),((e,t,n)=>{$p(e,[dC(e,t)],n)})(e,cC(lC({},g),{children:[cC(lC({},b),{text:i})],target:o,url:a}),t),!0},xC=(e,t)=>{const{allowedSchemes:n,dangerouslySkipSanitization:r,isUrl:o}=im(e,_C);return!(o&&!o(t))&&!(!r&&!ph(t,{allowedSchemes:n,permitInvalid:!0}))},_C="a",SC=Yf({isElement:!0,isInline:!0,key:_C,options:{allowedSchemes:["http","https","mailto","tel"],dangerouslySkipSanitization:!1,defaultLinkAttributes:{},isUrl:e=>{if("string"!=typeof e)return!1;const t=e.match(lh),n=e.match(ch),r=t||n;if(!r)return!1;const o=r[1];if(!o)return!1;try{new URL(e)}catch(e){return!1}return uh.test(o)||dh.test(o)},keepSelectedTextOnPaste:!0,rangeBeforeOptions:{afterMatch:!0,matchString:" ",skipInvalid:!0},triggerFloatingLinkHotkeys:"meta+k, ctrl+k"},then:(e,{type:t})=>({deserializeHtml:{getNode:n=>{const r=n.getAttribute("href");if(r&&xC(e,r))return{target:n.getAttribute("target")||"_blank",type:t,url:r}},rules:[{validNodeName:"A"}]},props:({element:t})=>({nodeProps:pC(e,t)})}),withOverrides:(e,{options:{getUrlHref:t,isUrl:n,keepSelectedTextOnPaste:r,rangeBeforeOptions:o},type:i})=>{const{apply:a,insertBreak:s,insertData:l,insertText:c,normalizeNode:u}=e,d=()=>{_p(e,(()=>{var r;const i=e.selection;let a=Ph(e,i,o);if(a||(a=Dh(e)),!a)return;if(Wp(e,{at:a,match:{type:Gf(e,_C)}}))return;let s=Dp(e,a);s=null!=(r=null==t?void 0:t(s))?r:s,n(s)&&(Ep(e,a),wC(e,{url:s}),((e,t)=>{tp.YR.collapse(e,t)})(e,{edge:"end"}))}))};return e.insertBreak=()=>{if(!Lp(e.selection))return s();d(),s()},e.insertText=t=>{" "===t&&Lp(e.selection)&&d(),c(t)},e.insertData=n=>{const o=n.getData("text/plain"),i=null==t?void 0:t(o);if(o){const t=i||o;if(wC(e,{insertTextInLink:!0,text:r?void 0:t,url:t}))return}l(n)},e.apply=t=>{if("set_selection"===t.type){const n=t.newProperties;if((null==n?void 0:n.focus)&&n.anchor&&Lp(n)){const r=yp(e,{at:n,match:{type:Gf(e,_C)}});if(r){const[,o]=r;let i;Rp(e,n.focus,o)&&(i=((e,t)=>{const n=xp(e,{at:t});if(n)return kp(e,n[1])})(e,o)),Mp(e,n.focus,o)&&(i=kh(e,o)),i&&(t.newProperties={anchor:i,focus:i})}}}a(t)},e.normalizeNode=([t,n])=>{if(t.type===Gf(e,_C)){const t=e.selection;if(t&&Lp(t)&&Mp(e,t.focus,n)){const t=kh(e,n);if(t)Ep(e,t);else{const t=tp.y$.next(n);$p(e,{text:""},{at:t}),Ep(e,t)}}}u([t,n])},e=eC(e,Vf({editor:{},inject:{},key:"",options:{},type:""},{options:{types:i}}))}});function CC(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=CC(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function EC(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=CC(e))&&(r&&(r+=" "),r+=t);return r}const kC=EC;function zC(e){const t=function(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return IC(Object.entries(e.classGroups),n).forEach((([e,n])=>{AC(n,r,e,t)})),r}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),PC(n,t)||function(e){if(DC.test(e)){const t=DC.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}}function PC(e,t){if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?PC(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId}const DC=/^\[(.+)\]$/;function AC(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void AC(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{AC(o,TC(t,e),n,r)}))}else{(""===e?t:TC(t,e)).classGroupId=n}}))}function TC(e,t){let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function IC(e,t){return t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e}function MC(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(o,i){n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}}function RC(e){const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length;function a(e){const n=[];let a,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===u){a=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}}return n?function(e){return n({className:e,parseClassName:a})}:a}const FC=/\s+/;function NC(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=OC(e))&&(r&&(r+=" "),r+=t);return r}function OC(e){if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=OC(e[r]))&&(n&&(n+=" "),n+=t);return n}function jC(e,...t){let n,r,o,i=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:MC(e.cacheSize),parseClassName:RC(e),...zC(e)}}(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=function(e,t){const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(FC).map((e=>{const{modifiers:t,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a}=n(e);let s=Boolean(a),l=r(s?i.substring(0,a):i);if(!l){if(!s)return{isTailwindClass:!1,originalClassName:e};if(l=r(i),!l)return{isTailwindClass:!1,originalClassName:e};s=!1}const c=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:o?c+"!":c,classGroupId:l,originalClassName:e,hasPostfixModifier:s}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,a=t+n;return!i.has(a)&&(i.add(a),o(n,r).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return o(e,i),i}return function(){return i(NC.apply(null,arguments))}}function LC(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const BC=/^\[(?:([a-z-]+):)?(.+)\]$/i,KC=/^\d+\/\d+$/,VC=new Set(["px","full","screen"]),HC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$C=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,UC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ZC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function GC(e){return YC(e)||VC.has(e)||KC.test(e)}function WC(e){return cE(e,"length",uE)}function YC(e){return Boolean(e)&&!Number.isNaN(Number(e))}function XC(e){return cE(e,"number",YC)}function QC(e){return Boolean(e)&&Number.isInteger(Number(e))}function JC(e){return e.endsWith("%")&&YC(e.slice(0,-1))}function eE(e){return BC.test(e)}function tE(e){return HC.test(e)}const nE=new Set(["length","size","percentage"]);function rE(e){return cE(e,nE,dE)}function oE(e){return cE(e,"position",dE)}const iE=new Set(["image","url"]);function aE(e){return cE(e,iE,hE)}function sE(e){return cE(e,"",pE)}function lE(){return!0}function cE(e,t,n){const r=BC.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function uE(e){return $C.test(e)&&!UC.test(e)}function dE(){return!1}function pE(e){return ZC.test(e)}function hE(e){return qC.test(e)}Symbol.toStringTag;function fE(){const e=LC("colors"),t=LC("spacing"),n=LC("blur"),r=LC("brightness"),o=LC("borderColor"),i=LC("borderRadius"),a=LC("borderSpacing"),s=LC("borderWidth"),l=LC("contrast"),c=LC("grayscale"),u=LC("hueRotate"),d=LC("invert"),p=LC("gap"),h=LC("gradientColorStops"),f=LC("gradientColorStopPositions"),m=LC("inset"),g=LC("margin"),v=LC("opacity"),y=LC("padding"),b=LC("saturate"),w=LC("scale"),x=LC("sepia"),_=LC("skew"),S=LC("space"),C=LC("translate"),E=()=>["auto",eE,t],k=()=>[eE,t],z=()=>["",GC,WC],P=()=>["auto",YC,eE],D=()=>["","0",eE],A=()=>[YC,XC],T=()=>[YC,eE];return{cacheSize:500,separator:":",theme:{colors:[lE],spacing:[GC,WC],blur:["none","",tE,eE],brightness:A(),borderColor:[e],borderRadius:["none","","full",tE,eE],borderSpacing:k(),borderWidth:z(),contrast:A(),grayscale:D(),hueRotate:T(),invert:D(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[JC,WC],inset:E(),margin:E(),opacity:A(),padding:k(),saturate:A(),scale:A(),sepia:D(),skew:T(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",eE]}],container:["container"],columns:[{columns:[tE]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",eE]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",QC,eE]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",eE]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",QC,eE]}],"grid-cols":[{"grid-cols":[lE]}],"col-start-end":[{col:["auto",{span:["full",QC,eE]},eE]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[lE]}],"row-start-end":[{row:["auto",{span:[QC,eE]},eE]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",eE]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",eE]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",eE,t]}],"min-w":[{"min-w":[eE,t,"min","max","fit"]}],"max-w":[{"max-w":[eE,t,"none","full","min","max","fit","prose",{screen:[tE]},tE]}],h:[{h:[eE,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[eE,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[eE,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[eE,t,"auto","min","max","fit"]}],"font-size":[{text:["base",tE,WC]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",XC]}],"font-family":[{font:[lE]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",eE]}],"line-clamp":[{"line-clamp":["none",YC,XC]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",GC,eE]}],"list-image":[{"list-image":["none",eE]}],"list-style-type":[{list:["none","disc","decimal",eE]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",GC,WC]}],"underline-offset":[{"underline-offset":["auto",GC,eE]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",eE]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",eE]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",oE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},aE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[GC,eE]}],"outline-w":[{outline:[GC,WC]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[GC,WC]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",tE,sE]}],"shadow-color":[{shadow:[lE]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",tE,eE]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",eE]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",eE]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",eE]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[QC,eE]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",eE]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",eE]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",eE]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[GC,WC,XC]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const mE=jC(fE);var gE=Object.defineProperty,vE=Object.defineProperties,yE=Object.getOwnPropertyDescriptors,bE=Object.getOwnPropertySymbols,wE=Object.prototype.hasOwnProperty,xE=Object.prototype.propertyIsEnumerable,_E=(e,t,n)=>t in e?gE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SE=(e,t)=>{for(var n in t||(t={}))wE.call(t,n)&&_E(e,n,t[n]);if(bE)for(var n of bE(t))xE.call(t,n)&&_E(e,n,t[n]);return e};function CE(...e){return mE(kC(e))}function EE(e,t){const n=e;return l.forwardRef((function(e,r){return l.createElement(n,((e,t)=>vE(e,yE(t)))(SE(SE({ref:r},t),e),{className:CE(t.className,e.className)}))}))}var kE=n(4286),zE=n.n(kE);const PE={};function DE(e,t){"string"!=typeof t&&(t=DE.defaultChars);const n=function(e){let t=PE[e];if(t)return t;t=PE[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,(function(e){let t="";for(let r=0,o=e.length;r<o;r+=3){const i=parseInt(e.slice(r+1,r+3),16);if(i<128)t+=n[i];else{if(192==(224&i)&&r+3<o){const n=parseInt(e.slice(r+4,r+6),16);if(128==(192&n)){const e=i<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),r+=3;continue}}if(224==(240&i)&&r+6<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16);if(128==(192&n)&&128==(192&o)){const e=i<<12&61440|n<<6&4032|63&o;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&i)&&r+9<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16),a=parseInt(e.slice(r+10,r+12),16);if(128==(192&n)&&128==(192&o)&&128==(192&a)){let e=i<<18&1835008|n<<12&258048|o<<6&4032|63&a;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t}))}DE.defaultChars=";/?:@&=+$,#",DE.componentChars="";const AE=DE,TE={};function IE(e,t,n){"string"!=typeof t&&(n=t,t=IE.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=TE[e];if(t)return t;t=TE[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t);let o="";for(let t=0,i=e.length;t<i;t++){const a=e.charCodeAt(t);if(n&&37===a&&t+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))o+=e.slice(t,t+3),t+=2;else if(a<128)o+=r[a];else if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&t+1<i){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){o+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}o+="%EF%BF%BD"}else o+=encodeURIComponent(e[t])}return o}IE.defaultChars=";/?:@&=+$,-_.!~*'()#",IE.componentChars="-_.!~*'()";const ME=IE;function RE(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function FE(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const NE=/^([a-z0-9.+-]+:)/i,OE=/:[0-9]*$/,jE=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,LE=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),BE=["'"].concat(LE),KE=["%","/","?",";","#"].concat(BE),VE=["/","?","#"],HE=/^[+a-z0-9A-Z_-]{0,63}$/,$E=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,UE={javascript:!0,"javascript:":!0},ZE={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};FE.prototype.parse=function(e,t){let n,r,o,i=e;if(i=i.trim(),!t&&1===e.split("#").length){const e=jE.exec(i);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let a=NE.exec(i);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,i=i.substr(a.length)),(t||a||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o="//"===i.substr(0,2),!o||a&&UE[a]||(i=i.substr(2),this.slashes=!0)),!UE[a]&&(o||a&&!ZE[a])){let e,t,n=-1;for(let e=0;e<VE.length;e++)r=i.indexOf(VE[e]),-1!==r&&(-1===n||r<n)&&(n=r);t=-1===n?i.lastIndexOf("@"):i.lastIndexOf("@",n),-1!==t&&(e=i.slice(0,t),i=i.slice(t+1),this.auth=e),n=-1;for(let e=0;e<KE.length;e++)r=i.indexOf(KE[e]),-1!==r&&(-1===n||r<n)&&(n=r);-1===n&&(n=i.length),":"===i[n-1]&&n--;const o=i.slice(0,n);i=i.slice(n),this.parseHost(o),this.hostname=this.hostname||"";const a="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!a){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(HE)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(HE)){const r=e.slice(0,t),o=e.slice(t+1),a=n.match($E);a&&(r.push(a[1]),o.unshift(a[2])),o.length&&(i=o.join(".")+i),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),a&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=i.indexOf("#");-1!==s&&(this.hash=i.substr(s),i=i.slice(0,s));const l=i.indexOf("?");return-1!==l&&(this.search=i.substr(l),i=i.slice(0,l)),i&&(this.pathname=i),ZE[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},FE.prototype.parseHost=function(e){let t=OE.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const qE=function(e,t){if(e&&e instanceof FE)return e;const n=new FE;return n.parse(e,t),n},GE=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,WE=/[\0-\x1F\x7F-\x9F]/,YE=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,XE=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,QE=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,JE=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ek=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),tk=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var nk;const rk=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),ok=null!==(nk=String.fromCodePoint)&&void 0!==nk?nk:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function ik(e){return ok(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=rk.get(e))&&void 0!==t?t:e}(e))}var ak,sk;function lk(e){return function(t,n){let r="",o=0,i=0;for(;(i=t.indexOf("&",i))>=0;){if(r+=t.slice(o,i),o=i,i+=1,t.charCodeAt(i)===ak.NUM){let e=i+1,a=10,s=t.charCodeAt(e);(s|ak.To_LOWER_BIT)===ak.LOWER_X&&(a=16,i+=1,e+=1);do{s=t.charCodeAt(++i)}while(s>=ak.ZERO&&s<=ak.NINE||16===a&&(s|ak.To_LOWER_BIT)>=ak.LOWER_A&&(s|ak.To_LOWER_BIT)<=ak.LOWER_F);if(e!==i){const s=t.substring(e,i),l=parseInt(s,a);if(t.charCodeAt(i)===ak.SEMI)i+=1;else if(n)continue;r+=ik(l),o=i}continue}let a=0,s=1,l=0,c=e[l];for(;i<t.length&&(l=ck(e,c,l+1,t.charCodeAt(i)),!(l<0));i++,s++){c=e[l];const r=c&sk.VALUE_LENGTH;if(r){n&&t.charCodeAt(i)!==ak.SEMI||(a=l,s=0);const e=(r>>14)-1;if(0===e)break;l+=e}}if(0!==a){const t=(e[a]&sk.VALUE_LENGTH)>>14;r+=1===t?String.fromCharCode(e[a]&~sk.VALUE_LENGTH):2===t?String.fromCharCode(e[a+1]):String.fromCharCode(e[a+1],e[a+2]),o=i-s+1}}return r+t.slice(o)}}function ck(e,t,n,r){const o=(t&sk.BRANCH_LENGTH)>>7,i=t&sk.JUMP_TABLE;if(0===o)return 0!==i&&r===i?n:-1;if(i){const t=r-i;return t<0||t>=o?-1:e[n+t]-1}let a=n,s=a+o-1;for(;a<=s;){const t=a+s>>>1,n=e[t];if(n<r)a=t+1;else{if(!(n>r))return e[t+o];s=t-1}}return-1}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.To_LOWER_BIT=32]="To_LOWER_BIT"}(ak||(ak={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(sk||(sk={}));const uk=lk(ek);lk(tk);function dk(e){return uk(e,!1)}function pk(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}new Map(pk([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(pk([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(pk([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(pk([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));const hk=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);String.prototype.codePointAt;function fk(e,t){return function(n){let r,o=0,i="";for(;r=e.exec(n);)o!==r.index&&(i+=n.substring(o,r.index)),i+=t.get(r[0].charCodeAt(0)),o=r.index+1;return i+n.substring(o)}}fk(/[&<>'"]/g,hk),fk(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),fk(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var mk,gk,vk;function yk(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(mk||(mk={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict"}(gk||(gk={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(vk||(vk={}));const bk=Object.prototype.hasOwnProperty;function wk(e,t){return bk.call(e,t)}function xk(e){const t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}function _k(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Sk(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function Ck(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Ek=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,kk=new RegExp(Ek.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),zk=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Pk(e){return e.indexOf("\\")<0?e:e.replace(Ek,"$1")}function Dk(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(kk,(function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&zk.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Sk(n)?Ck(n):e}const n=dk(e);return n!==e?n:e}(e,n)}))}const Ak=/[&<>"]/,Tk=/[&<>"]/g,Ik={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Mk(e){return Ik[e]}function Rk(e){return Ak.test(e)?e.replace(Tk,Mk):e}const Fk=/[.?*+^$[\]\\(){}|-]/g;function Nk(e){return e.replace(Fk,"\\$&")}function Ok(e){switch(e){case 9:case 32:return!0}return!1}function jk(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Lk(e){return XE.test(e)||QE.test(e)}function Bk(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Kk(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Vk={mdurl:r,ucmicro:o};function Hk(e,t,n){let r,o,i,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(i=e.src.charCodeAt(e.pos),93===i&&(r--,0===r)){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===i)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}let c=-1;return o&&(c=e.pos),e.pos=l,c}function $k(e,t,n){let r,o=t;const i={ok:!1,pos:0,str:""};if(60===e.charCodeAt(o)){for(o++;o<n;){if(r=e.charCodeAt(o),10===r)return i;if(60===r)return i;if(62===r)return i.pos=o+1,i.str=Dk(e.slice(t+1,o)),i.ok=!0,i;92===r&&o+1<n?o+=2:o++}return i}let a=0;for(;o<n&&(r=e.charCodeAt(o),32!==r)&&!(r<32||127===r);)if(92===r&&o+1<n){if(32===e.charCodeAt(o+1))break;o+=2}else{if(40===r&&(a++,a>32))return i;if(41===r){if(0===a)break;a--}o++}return t===o||0!==a||(i.str=Dk(e.slice(t,o)),i.pos=o,i.ok=!0),i}function Uk(e,t,n,r){let o,i=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(i>=n)return a;let r=e.charCodeAt(i);if(34!==r&&39!==r&&40!==r)return a;t++,i++,40===r&&(r=41),a.marker=r}for(;i<n;){if(o=e.charCodeAt(i),o===a.marker)return a.pos=i+1,a.str+=Dk(e.slice(t,i)),a.ok=!0,a;if(40===o&&41===a.marker)return a;92===o&&i+1<n&&i++,i++}return a.can_continue=!0,a.str+=Dk(e.slice(t,i)),a}const Zk={};function qk(){this.rules=xk({},Zk)}Zk.code_inline=function(e,t,n,r,o){const i=e[t];return"<code"+o.renderAttrs(i)+">"+Rk(i.content)+"</code>"},Zk.code_block=function(e,t,n,r,o){const i=e[t];return"<pre"+o.renderAttrs(i)+"><code>"+Rk(e[t].content)+"</code></pre>\n"},Zk.fence=function(e,t,n,r,o){const i=e[t],a=i.info?Dk(i.info).trim():"";let s,l="",c="";if(a){const e=a.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(s=n.highlight&&n.highlight(i.content,l,c)||Rk(i.content),0===s.indexOf("<pre"))return s+"\n";if(a){const e=i.attrIndex("class"),t=i.attrs?i.attrs.slice():[];e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l);const r={attrs:t};return`<pre><code${o.renderAttrs(r)}>${s}</code></pre>\n`}return`<pre><code${o.renderAttrs(i)}>${s}</code></pre>\n`},Zk.image=function(e,t,n,r,o){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.renderToken(e,t,n)},Zk.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},Zk.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},Zk.text=function(e,t){return Rk(e[t].content)},Zk.html_block=function(e,t){return e[t].content},Zk.html_inline=function(e,t){return e[t].content},qk.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+Rk(e.attrs[t][0])+'="'+Rk(e.attrs[t][1])+'"';return r},qk.prototype.renderToken=function(e,t,n){const r=e[t];let o="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===r.nesting?"</":"<")+r.tag,o+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(o+=" /");let i=!1;if(r.block&&(i=!0,1===r.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===r.tag)&&(i=!1)}return o+=i?">\n":">",o},qk.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let i=0,a=e.length;i<a;i++){const a=e[i].type;void 0!==o[a]?r+=o[a](e,i,t,n,this):r+=this.renderToken(e,i,t)}return r},qk.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,i=e.length;o<i;o++)switch(e[o].type){case"text":case"html_inline":case"html_block":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},qk.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let i=0,a=e.length;i<a;i++){const a=e[i].type;"inline"===a?r+=this.renderInline(e[i].children,t,n):void 0!==o[a]?r+=o[a](e,i,t,n,this):r+=this.renderToken(e,i,t,n)}return r};const Gk=qk;function Wk(){this.__rules__=[],this.__cache__=null}Wk.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Wk.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},Wk.prototype.at=function(e,t,n){const r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},Wk.prototype.before=function(e,t,n,r){const o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},Wk.prototype.after=function(e,t,n,r){const o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},Wk.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},Wk.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach((function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},Wk.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},Wk.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach((function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},Wk.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};const Yk=Wk;function Xk(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Xk.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},Xk.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Xk.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},Xk.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},Xk.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};const Qk=Xk;function Jk(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Jk.prototype.Token=Qk;const ez=Jk,tz=/\r\n?|\n/g,nz=/\0/g;function rz(e){return/^<\/a\s*>/i.test(e)}const oz=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,iz=/\((c|tm|r)\)/i,az=/\((c|tm|r)\)/gi,sz={c:"©",r:"®",tm:"™"};function lz(e,t){return sz[t.toLowerCase()]}function cz(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(az,lz)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function uz(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||oz.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}const dz=/['"]/,pz=/['"]/g;function hz(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function fz(e,t){let n;const r=[];for(let o=0;o<e.length;o++){const i=e[o],a=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,"text"!==i.type)continue;let s=i.content,l=0,c=s.length;e:for(;l<c;){pz.lastIndex=l;const u=pz.exec(s);if(!u)break;let d=!0,p=!0;l=u.index+1;const h="'"===u[0];let f=32;if(u.index-1>=0)f=s.charCodeAt(u.index-1);else for(n=o-1;n>=0&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n--)if(e[n].content){f=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(l<c)m=s.charCodeAt(l);else for(n=o+1;n<e.length&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n++)if(e[n].content){m=e[n].content.charCodeAt(0);break}const g=Bk(f)||Lk(String.fromCharCode(f)),v=Bk(m)||Lk(String.fromCharCode(m)),y=jk(f),b=jk(m);if(b?d=!1:v&&(y||g||(d=!1)),y?p=!1:g&&(b||v||(p=!1)),34===m&&'"'===u[0]&&f>=48&&f<=57&&(p=d=!1),d&&p&&(d=g,p=v),d||p){if(p)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<a)break;if(d.single===h&&r[n].level===a){let a,p;d=r[n],h?(a=t.md.options.quotes[2],p=t.md.options.quotes[3]):(a=t.md.options.quotes[0],p=t.md.options.quotes[1]),i.content=hz(i.content,u.index,p),e[d.token].content=hz(e[d.token].content,d.pos,a),l+=p.length-1,d.token===o&&(l+=a.length-1),s=i.content,c=s.length,r.length=n;continue e}}d?r.push({token:o,pos:u.index,single:h,level:a}):p&&h&&(i.content=hz(i.content,u.index,"’"))}else h&&(i.content=hz(i.content,u.index,"’"))}}}const mz=[["normalize",function(e){let t;t=e.src.replace(tz,"\n"),t=t.replace(nz,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}],["linkify",function(e){const t=e.tokens;var n;if(e.md.options.linkify)for(let r=0,o=t.length;r<o;r++){if("inline"!==t[r].type||!e.md.linkify.pretest(t[r].content))continue;let o=t[r].children,i=0;for(let a=o.length-1;a>=0;a--){const s=o[a];if("link_close"!==s.type){if("html_inline"===s.type&&(n=s.content,/^<a[>\s]/i.test(n)&&i>0&&i--,rz(s.content)&&i++),!(i>0)&&"text"===s.type&&e.md.linkify.test(s.content)){const n=s.content;let i=e.md.linkify.match(n);const l=[];let c=s.level,u=0;i.length>0&&0===i[0].index&&a>0&&"text_special"===o[a-1].type&&(i=i.slice(1));for(let t=0;t<i.length;t++){const r=i[t].url,o=e.md.normalizeLink(r);if(!e.md.validateLink(o))continue;let a=i[t].text;a=i[t].schema?"mailto:"!==i[t].schema||/^mailto:/i.test(a)?e.md.normalizeLinkText(a):e.md.normalizeLinkText("mailto:"+a).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+a).replace(/^http:\/\//,"");const s=i[t].index;if(s>u){const t=new e.Token("text","",0);t.content=n.slice(u,s),t.level=c,l.push(t)}const d=new e.Token("link_open","a",1);d.attrs=[["href",o]],d.level=c++,d.markup="linkify",d.info="auto",l.push(d);const p=new e.Token("text","",0);p.content=a,p.level=c,l.push(p);const h=new e.Token("link_close","a",-1);h.level=--c,h.markup="linkify",h.info="auto",l.push(h),u=i[t].lastIndex}if(u<n.length){const t=new e.Token("text","",0);t.content=n.slice(u),t.level=c,l.push(t)}t[r].children=o=_k(o,a,l)}}else for(a--;o[a].level!==s.level&&"link_open"!==o[a].type;)a--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(iz.test(e.tokens[t].content)&&cz(e.tokens[t].children),oz.test(e.tokens[t].content)&&uz(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&dz.test(e.tokens[t].content)&&fz(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const r=e.tokens,o=r.length;for(let e=0;e<o;e++){if("inline"!==r[e].type)continue;const o=r[e].children,i=o.length;for(t=0;t<i;t++)"text_special"===o[t].type&&(o[t].type="text");for(t=n=0;t<i;t++)"text"===o[t].type&&t+1<i&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}}]];function gz(){this.ruler=new Yk;for(let e=0;e<mz.length;e++)this.ruler.push(mz[e][0],mz[e][1])}gz.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},gz.prototype.State=ez;const vz=gz;function yz(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let e=0,t=0,n=0,r=0,i=o.length,a=!1;t<i;t++){const s=o.charCodeAt(t);if(!a){if(Ok(s)){n++,9===s?r+=4-r%4:r++;continue}a=!0}10!==s&&t!==i-1||(10!==s&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),a=!1,n=0,r=0,e=t+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}yz.prototype.push=function(e,t,n){const r=new Qk(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},yz.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},yz.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},yz.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){if(!Ok(this.src.charCodeAt(e)))break}return e},yz.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Ok(this.src.charCodeAt(--e)))return e+1;return e},yz.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},yz.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},yz.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const o=new Array(t-e);for(let i=0,a=e;a<t;a++,i++){let e=0;const s=this.bMarks[a];let l,c=s;for(l=a+1<t||r?this.eMarks[a]+1:this.eMarks[a];c<l&&e<n;){const t=this.src.charCodeAt(c);if(Ok(t))9===t?e+=4-(e+this.bsCount[a])%4:e++;else{if(!(c-s<this.tShift[a]))break;e++}c++}o[i]=e>n?new Array(e-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return o.join("")},yz.prototype.Token=Qk;const bz=yz;function wz(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function xz(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),i=!1,a=0,s="";for(;r<n;)124===o&&(i?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),i=92===o,r++,o=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function _z(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(r++);if(42!==o&&45!==o&&43!==o)return-1;if(r<n){if(!Ok(e.src.charCodeAt(r)))return-1}return r}function Sz(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let o=n;if(o+1>=r)return-1;let i=e.src.charCodeAt(o++);if(i<48||i>57)return-1;for(;;){if(o>=r)return-1;if(i=e.src.charCodeAt(o++),!(i>=48&&i<=57)){if(41===i||46===i)break;return-1}if(o-n>=10)return-1}return o<r&&(i=e.src.charCodeAt(o),!Ok(i))?-1:o}const Cz="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Ez="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",kz=new RegExp("^(?:"+Cz+"|"+Ez+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),zz=new RegExp("^(?:"+Cz+"|"+Ez+")"),Pz=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(zz.source+"\\s*$"),/^$/,!1]];const Dz=[["table",function(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent)return!1;if(e.sCount[o]-e.blkIndent>=4)return!1;let i=e.bMarks[o]+e.tShift[o];if(i>=e.eMarks[o])return!1;const a=e.src.charCodeAt(i++);if(124!==a&&45!==a&&58!==a)return!1;if(i>=e.eMarks[o])return!1;const s=e.src.charCodeAt(i++);if(124!==s&&45!==s&&58!==s&&!Ok(s))return!1;if(45===a&&Ok(s))return!1;for(;i<e.eMarks[o];){const t=e.src.charCodeAt(i);if(124!==t&&45!==t&&58!==t&&!Ok(t))return!1;i++}let l=wz(e,t+1),c=l.split("|");const u=[];for(let e=0;e<c.length;e++){const t=c[e].trim();if(!t){if(0===e||e===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?u.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?u.push("left"):u.push("")}if(l=wz(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;c=xz(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();const d=c.length;if(0===d||d!==u.length)return!1;if(r)return!0;const p=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRules("blockquote"),f=[t,0];e.push("table_open","table",1).map=f,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){const n=e.push("th_open","th",1);u[t]&&(n.attrs=[["style","text-align:"+u[t]]]);const r=e.push("inline","",0);r.content=c[t].trim(),r.children=[],e.push("th_close","th",-1)}let m;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let r=!1;for(let t=0,i=h.length;t<i;t++)if(h[t](e,o,n,!0)){r=!0;break}if(r)break;if(l=wz(e,o).trim(),!l)break;if(e.sCount[o]-e.blkIndent>=4)break;if(c=xz(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),g+=d-c.length,g>65536)break;if(o===t+2){e.push("tbody_open","tbody",1).map=m=[t+2,0]}e.push("tr_open","tr",1).map=[o,o+1];for(let t=0;t<d;t++){const n=e.push("td_open","td",1);u[t]&&(n.attrs=[["style","text-align:"+u[t]]]);const r=e.push("inline","",0);r.content=c[t]?c[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return m&&(e.push("tbody_close","tbody",-1),m[1]=o),e.push("table_close","table",-1),f[1]=o,e.parentType=p,e.line=o,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;r++,o=r}e.line=o;const i=e.push("code_block","code",0);return i.content=e.getLines(t,o,4+e.blkIndent,!1)+"\n",i.map=[t,e.line],!0}],["fence",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(o+3>i)return!1;const a=e.src.charCodeAt(o);if(126!==a&&96!==a)return!1;let s=o;o=e.skipChars(o,a);let l=o-s;if(l<3)return!1;const c=e.src.slice(s,o),u=e.src.slice(o,i);if(96===a&&u.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let d=t,p=!1;for(;(d++,!(d>=n))&&(o=s=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],!(o<i&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(o)===a&&!(e.sCount[d]-e.blkIndent>=4||(o=e.skipChars(o,a),o-s<l||(o=e.skipSpaces(o),o<i)))){p=!0;break}l=e.sCount[t],e.line=d+(p?1:0);const h=e.push("fence","code",0);return h.info=u,h.content=e.getLines(t+1,d,l,!0),h.markup=c,h.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(o))return!1;if(r)return!0;const s=[],l=[],c=[],u=[],d=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let h,f=!1;for(h=t;h<n;h++){const t=e.sCount[h]<e.blkIndent;if(o=e.bMarks[h]+e.tShift[h],i=e.eMarks[h],o>=i)break;if(62===e.src.charCodeAt(o++)&&!t){let t,n,r=e.sCount[h]+1;32===e.src.charCodeAt(o)?(o++,r++,n=!1,t=!0):9===e.src.charCodeAt(o)?(t=!0,(e.bsCount[h]+r)%4==3?(o++,r++,n=!1):n=!0):t=!1;let a=r;for(s.push(e.bMarks[h]),e.bMarks[h]=o;o<i;){const t=e.src.charCodeAt(o);if(!Ok(t))break;9===t?a+=4-(a+e.bsCount[h]+(n?1:0))%4:a++,o++}f=o>=i,l.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(t?1:0),c.push(e.sCount[h]),e.sCount[h]=a-r,u.push(e.tShift[h]),e.tShift[h]=o-e.bMarks[h];continue}if(f)break;let r=!1;for(let t=0,o=d.length;t<o;t++)if(d[t](e,h,n,!0)){r=!0;break}if(r){e.lineMax=h,0!==e.blkIndent&&(s.push(e.bMarks[h]),l.push(e.bsCount[h]),u.push(e.tShift[h]),c.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}s.push(e.bMarks[h]),l.push(e.bsCount[h]),u.push(e.tShift[h]),c.push(e.sCount[h]),e.sCount[h]=-1}const m=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const v=[t,0];g.map=v,e.md.block.tokenize(e,t,h),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=a,e.parentType=p,v[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=c[n],e.bsCount[n+t]=l[n];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(i++);if(42!==a&&45!==a&&95!==a)return!1;let s=1;for(;i<o;){const t=e.src.charCodeAt(i++);if(t!==a&&!Ok(t))return!1;t===a&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){let o,i,a,s,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let u,d,p,h=!1;if(r&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(h=!0),(p=Sz(e,l))>=0){if(u=!0,a=e.bMarks[l]+e.tShift[l],d=Number(e.src.slice(a,p-1)),h&&1!==d)return!1}else{if(!((p=_z(e,l))>=0))return!1;u=!1}if(h&&e.skipSpaces(p)>=e.eMarks[l])return!1;if(r)return!0;const f=e.src.charCodeAt(p-1),m=e.tokens.length;u?(s=e.push("ordered_list_open","ol",1),1!==d&&(s.attrs=[["start",d]])):s=e.push("bullet_list_open","ul",1);const g=[l,0];s.map=g,s.markup=String.fromCharCode(f);let v=!1;const y=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l<n;){i=p,o=e.eMarks[l];const t=e.sCount[l]+p-(e.bMarks[l]+e.tShift[l]);let r=t;for(;i<o;){const t=e.src.charCodeAt(i);if(9===t)r+=4-(r+e.bsCount[l])%4;else{if(32!==t)break;r++}i++}const d=i;let h;h=d>=o?1:r-t,h>4&&(h=1);const m=t+h;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(f);const g=[l,0];s.map=g,u&&(s.info=e.src.slice(a,p-1));const b=e.tight,w=e.tShift[l],x=e.sCount[l],_=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!v||(c=!1),v=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=_,e.tShift[l]=w,e.sCount[l]=x,e.tight=b,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(f),l=e.line,g[1]=l,l>=n)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;let S=!1;for(let t=0,r=y.length;t<r;t++)if(y[t](e,l,n,!0)){S=!0;break}if(S)break;if(u){if(p=Sz(e,l),p<0)break;a=e.bMarks[l]+e.tShift[l]}else if(p=_z(e,l),p<0)break;if(f!==e.src.charCodeAt(p-1))break}return s=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(f),g[1]=l,e.line=l,e.parentType=b,c&&function(e,t){const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,m),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(o))return!1;function s(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),o=e.parentType;e.parentType="reference";let i=!1;for(let o=0,a=r.length;o<a;o++)if(r[o](e,t,n,!0)){i=!0;break}if(e.parentType=o,i)return null}const o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(o,i+1)}let l=e.src.slice(o,i+1);i=l.length;let c=-1;for(o=1;o<i;o++){const e=l.charCodeAt(o);if(91===e)return!1;if(93===e){c=o;break}if(10===e){const e=s(a);null!==e&&(l+=e,i=l.length,a++)}else if(92===e&&(o++,o<i&&10===l.charCodeAt(o))){const e=s(a);null!==e&&(l+=e,i=l.length,a++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(o=c+2;o<i;o++){const e=l.charCodeAt(o);if(10===e){const e=s(a);null!==e&&(l+=e,i=l.length,a++)}else if(!Ok(e))break}const u=e.md.helpers.parseLinkDestination(l,o,i);if(!u.ok)return!1;const d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;o=u.pos;const p=o,h=a,f=o;for(;o<i;o++){const e=l.charCodeAt(o);if(10===e){const e=s(a);null!==e&&(l+=e,i=l.length,a++)}else if(!Ok(e))break}let m,g=e.md.helpers.parseLinkTitle(l,o,i);for(;g.can_continue;){const t=s(a);if(null===t)break;l+=t,o=i,i=l.length,a++,g=e.md.helpers.parseLinkTitle(l,o,i,g)}for(o<i&&f!==o&&g.ok?(m=g.str,o=g.pos):(m="",o=p,a=h);o<i;){if(!Ok(l.charCodeAt(o)))break;o++}if(o<i&&10!==l.charCodeAt(o)&&m)for(m="",o=p,a=h;o<i;){if(!Ok(l.charCodeAt(o)))break;o++}if(o<i&&10!==l.charCodeAt(o))return!1;const v=Kk(l.slice(1,c));return!!v&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[v]&&(e.env.references[v]={title:m,href:d}),e.line=a),!0)}],["html_block",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(o))return!1;let a=e.src.slice(o,i),s=0;for(;s<Pz.length&&!Pz[s][0].test(a);s++);if(s===Pz.length)return!1;if(r)return Pz[s][2];let l=t+1;if(!Pz[s][1].test(a))for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],i=e.eMarks[l],a=e.src.slice(o,i),Pz[s][1].test(a)){0!==a.length&&l++;break}e.line=l;const c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(o);if(35!==a||o>=i)return!1;let s=1;for(a=e.src.charCodeAt(++o);35===a&&o<i&&s<=6;)s++,a=e.src.charCodeAt(++o);if(s>6||o<i&&!Ok(a))return!1;if(r)return!0;i=e.skipSpacesBack(i,o);const l=e.skipCharsBack(i,35,o);l>o&&Ok(e.src.charCodeAt(l-1))&&(i=l),e.line=t+1;const c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[t,e.line];const u=e.push("inline","",0);return u.content=e.src.slice(o,i).trim(),u.map=[t,e.line],u.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let i,a=0,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s];const n=e.eMarks[s];if(t<n&&(i=e.src.charCodeAt(t),(45===i||61===i)&&(t=e.skipChars(t,i),t=e.skipSpaces(t),t>=n))){a=61===i?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let o=0,i=r.length;o<i;o++)if(r[o](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const c=e.push("heading_open","h"+String(a),1);c.markup=String.fromCharCode(i),c.map=[t,e.line];const u=e.push("inline","",0);return u.content=l,u.map=[t,e.line-1],u.children=[],e.push("heading_close","h"+String(a),-1).markup=String.fromCharCode(i),e.parentType=o,!0}],["paragraph",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3)continue;if(e.sCount[i]<0)continue;let t=!1;for(let o=0,a=r.length;o<a;o++)if(r[o](e,i,n,!0)){t=!0;break}if(t)break}const a=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i,e.push("paragraph_open","p",1).map=[t,e.line];const s=e.push("inline","",0);return s.content=a,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}]];function Az(){this.ruler=new Yk;for(let e=0;e<Dz.length;e++)this.ruler.push(Dz[e][0],Dz[e][1],{alt:(Dz[e][2]||[]).slice()})}Az.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,i=e.md.options.maxNesting;let a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=i){e.line=n;break}const t=e.line;let l=!1;for(let i=0;i<o;i++)if(l=r[i](e,a,n,!1),l){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Az.prototype.parse=function(e,t,n,r){if(!e)return;const o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)},Az.prototype.State=bz;const Tz=Az;function Iz(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Iz.prototype.pushPending=function(){const e=new Qk("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Iz.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Qk(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},Iz.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let i=e;for(;i<n&&this.src.charCodeAt(i)===r;)i++;const a=i-e,s=i<n?this.src.charCodeAt(i):32,l=Bk(o)||Lk(String.fromCharCode(o)),c=Bk(s)||Lk(String.fromCharCode(s)),u=jk(o),d=jk(s),p=!d&&(!c||u||l),h=!u&&(!l||d||c);return{can_open:p&&(t||!h||l),can_close:h&&(t||!p||c),length:a}},Iz.prototype.Token=Qk;const Mz=Iz;function Rz(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}const Fz=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;const Nz=[];for(let e=0;e<256;e++)Nz.push(0);function Oz(e,t){let n;const r=[],o=t.length;for(let i=0;i<o;i++){const o=t[i];if(126!==o.marker)continue;if(-1===o.end)continue;const a=t[o.end];n=e.tokens[o.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[a.token-1].type&&"~"===e.tokens[a.token-1].content&&r.push(a.token-1)}for(;r.length;){const t=r.pop();let o=t+1;for(;o<e.tokens.length&&"s_close"===e.tokens[o].type;)o++;o--,t!==o&&(n=e.tokens[o],e.tokens[o]=e.tokens[t],e.tokens[t]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){Nz[e.charCodeAt(0)]=1}));const jz={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const o=e.scanDelims(e.pos,!0);let i=o.length;const a=String.fromCharCode(r);if(i<2)return!1;let s;i%2&&(s=e.push("text","",0),s.content=a,i--);for(let t=0;t<i;t+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Oz(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Oz(e,t[r].delimiters)}};function Lz(e,t){for(let n=t.length-1;n>=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const o=t[r.end],i=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===o.token+1,a=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=i?"strong_open":"em_open",s.tag=i?"strong":"em",s.nesting=1,s.markup=i?a+a:a,s.content="";const l=e.tokens[o.token];l.type=i?"strong_close":"em_close",l.tag=i?"strong":"em",l.nesting=-1,l.markup=i?a+a:a,l.content="",i&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}const Bz={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const o=e.scanDelims(e.pos,42===r);for(let t=0;t<o.length;t++){e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Lz(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Lz(e,t[r].delimiters)}};const Kz=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Vz=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;const Hz=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,$z=/^&([a-z][a-z0-9]{1,31});/i;function Uz(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const i=[];for(let a=0;a<n;a++){const n=e[a];if(i.push(0),e[r].marker===n.marker&&o===n.token-1||(r=a),o=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const s=t[n.marker][(n.open?3:0)+n.length%3];let l=r-i[r]-1,c=l;for(;l>s;l-=i[l]+1){const t=e[l];if(t.marker===n.marker&&(t.open&&t.end<0)){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?i[l-1]+1:0;i[a]=a-l+r,i[l]=r,n.open=!1,t.end=a,t.close=!1,c=-1,o=-2;break}}}-1!==c&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}const Zz=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!Rz(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const r=e.pending.match(Fz);if(!r)return!1;const o=r[1],i=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!i)return!1;let a=i.url;if(a.length<=o.length)return!1;a=a.replace(/\*+$/,"");const s=e.md.normalizeLink(a);if(!e.md.validateLink(s))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const t=e.push("link_open","a",1);t.attrs=[["href",s]],t.markup="linkify",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(a);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=a.length-o.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<o&&Ok(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos;const r=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,n>=r)return!1;let o=e.src.charCodeAt(n);if(10===o){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),Ok(o));)n++;return e.pos=n,!0}let i=e.src[n];if(o>=55296&&o<=56319&&n+1<r){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(i+=e.src[n+1],n++)}const a="\\"+i;if(!t){const t=e.push("text_special","",0);o<256&&0!==Nz[o]?t.content=i:t.content=a,t.markup=a,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const o=e.posMax;for(;n<o&&96===e.src.charCodeAt(n);)n++;const i=e.src.slice(r,n),a=i.length;if(e.backticksScanned&&(e.backticks[a]||0)<=r)return t||(e.pending+=i),e.pos+=a,!0;let s,l=n;for(;-1!==(s=e.src.indexOf("`",l));){for(l=s+1;l<o&&96===e.src.charCodeAt(l);)l++;const r=l-s;if(r===a){if(!t){const t=e.push("code_inline","code",0);t.markup=i,t.content=e.src.slice(n,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[r]=s}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=a,!0}],["strikethrough",jz.tokenize],["emphasis",Bz.tokenize],["link",function(e,t){let n,r,o,i,a="",s="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const u=e.pos,d=e.posMax,p=e.pos+1,h=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(h<0)return!1;let f=h+1;if(f<d&&40===e.src.charCodeAt(f)){for(c=!1,f++;f<d&&(n=e.src.charCodeAt(f),Ok(n)||10===n);f++);if(f>=d)return!1;if(l=f,o=e.md.helpers.parseLinkDestination(e.src,f,e.posMax),o.ok){for(a=e.md.normalizeLink(o.str),e.md.validateLink(a)?f=o.pos:a="",l=f;f<d&&(n=e.src.charCodeAt(f),Ok(n)||10===n);f++);if(o=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<d&&l!==f&&o.ok)for(s=o.str,f=o.pos;f<d&&(n=e.src.charCodeAt(f),Ok(n)||10===n);f++);}(f>=d||41!==e.src.charCodeAt(f))&&(c=!0),f++}if(c){if(void 0===e.env.references)return!1;if(f<d&&91===e.src.charCodeAt(f)?(l=f+1,f=e.md.helpers.parseLinkLabel(e,f),f>=0?r=e.src.slice(l,f++):f=h+1):f=h+1,r||(r=e.src.slice(p,h)),i=e.env.references[Kk(r)],!i)return e.pos=u,!1;a=i.href,s=i.title}if(!t){e.pos=p,e.posMax=h;const t=[["href",a]];e.push("link_open","a",1).attrs=t,s&&t.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=f,e.posMax=d,!0}],["image",function(e,t){let n,r,o,i,a,s,l,c,u="";const d=e.pos,p=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const h=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(f<0)return!1;if(i=f+1,i<p&&40===e.src.charCodeAt(i)){for(i++;i<p&&(n=e.src.charCodeAt(i),Ok(n)||10===n);i++);if(i>=p)return!1;for(c=i,s=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?i=s.pos:u=""),c=i;i<p&&(n=e.src.charCodeAt(i),Ok(n)||10===n);i++);if(s=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<p&&c!==i&&s.ok)for(l=s.str,i=s.pos;i<p&&(n=e.src.charCodeAt(i),Ok(n)||10===n);i++);else l="";if(i>=p||41!==e.src.charCodeAt(i))return e.pos=d,!1;i++}else{if(void 0===e.env.references)return!1;if(i<p&&91===e.src.charCodeAt(i)?(c=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?o=e.src.slice(c,i++):i=f+1):i=f+1,o||(o=e.src.slice(h,f)),a=e.env.references[Kk(o)],!a)return e.pos=d,!1;u=a.href,l=a.title}if(!t){r=e.src.slice(h,f);const t=[];e.md.inline.parse(r,e.md,e.env,t);const n=e.push("image","img",0),o=[["src",u],["alt",""]];n.attrs=o,n.children=t,n.content=r,l&&o.push(["title",l])}return e.pos=i,e.posMax=p,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const i=e.src.slice(r+1,n);if(Vz.test(i)){const n=e.md.normalizeLink(i);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=i.length+2,!0}if(Kz.test(i)){const n=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=i.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const o=e.src.charCodeAt(r+1);if(33!==o&&63!==o&&47!==o&&!function(e){const t=32|e;return t>=97&&t<=122}(o))return!1;const i=e.src.slice(r).match(kz);if(!i)return!1;if(!t){const t=e.push("html_inline","",0);t.content=i[0],a=t.content,/^<a[>\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var a;return e.pos+=i[0].length,!0}],["entity",function(e,t){const n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(Hz);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=Sk(t)?Ck(t):Ck(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match($z);if(r){const n=dk(r[0]);if(n!==r[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],qz=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Uz(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Uz(t[e].delimiters)}],["strikethrough",jz.postProcess],["emphasis",Bz.postProcess],["fragments_join",function(e){let t,n,r=0;const o=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,"text"===o[t].type&&t+1<i&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}]];function Gz(){this.ruler=new Yk;for(let e=0;e<Zz.length;e++)this.ruler.push(Zz[e][0],Zz[e][1]);this.ruler2=new Yk;for(let e=0;e<qz.length;e++)this.ruler2.push(qz[e][0],qz[e][1])}Gz.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,i=e.cache;if(void 0!==i[t])return void(e.pos=i[t]);let a=!1;if(e.level<o){for(let o=0;o<r;o++)if(e.level++,a=n[o](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,i[t]=e.pos},Gz.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){const i=e.pos;let a=!1;if(e.level<o)for(let r=0;r<n;r++)if(a=t[r](e,!1),a){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(a){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Gz.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const i=this.ruler2.getRules(""),a=i.length;for(let e=0;e<a;e++)i[e](o)},Gz.prototype.State=Mz;const Wz=Gz;function Yz(e){const t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function Xz(e){return Object.prototype.toString.call(e)}function Qz(e){return"[object Function]"===Xz(e)}function Jz(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const eP={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const tP={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},nP="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function rP(e){const t=e.re=function(e){const t={};return e=e||{},t.src_Any=GE.source,t.src_Cc=WE.source,t.src_Z=JE.source,t.src_P=XE.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><｜]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><｜]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><｜]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><｜]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const o=[];function i(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===Xz(n))return!function(e){return"[object RegExp]"===Xz(e)}(n.validate)?Qz(n.validate)?r.validate=n.validate:i(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(Qz(n.normalize)?r.normalize=n.normalize:n.normalize?i(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===Xz(e)}(n)?i(t,n):o.push(t)})),o.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(Jz).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function oP(e,t){const n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function iP(e,t){const n=new oP(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function aP(e,t){if(!(this instanceof aP))return new aP(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||eP.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=Yz({},eP,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Yz({},tP,e),this.__compiled__={},this.__tlds__=nP,this.__tlds_replaced__=!1,this.re={},rP(this)}aP.prototype.add=function(e,t){return this.__schemas__[e]=t,rP(this),this},aP.prototype.set=function(e){return this.__opts__=Yz(this.__opts__,e),this},aP.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,o,i,a,s,l,c;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex),o){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a))),this.__index__>=0},aP.prototype.pretest=function(e){return this.re.pretest.test(e)},aP.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},aP.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(iP(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(iP(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},aP.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,iP(this,0)):null},aP.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),rP(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,rP(this),this)},aP.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},aP.prototype.onCompile=function(){};const sP=aP,lP=2147483647,cP=36,uP=/^xn--/,dP=/[^\0-\x7F]/,pP=/[\x2E\u3002\uFF0E\uFF61]/g,hP={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},fP=Math.floor,mP=String.fromCharCode;function gP(e){throw new RangeError(hP[e])}function vP(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const o=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(pP,".")).split("."),t).join(".");return r+o}function yP(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}const bP=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},wP=function(e,t,n){let r=0;for(e=n?fP(e/700):e>>1,e+=fP(e/t);e>455;r+=cP)e=fP(e/35);return fP(r+36*e/(e+38))},xP=function(e){const t=[],n=e.length;let r=0,o=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n<a;++n)e.charCodeAt(n)>=128&&gP("not-basic"),t.push(e.charCodeAt(n));for(let l=a>0?a+1:0;l<n;){const a=r;for(let t=1,o=cP;;o+=cP){l>=n&&gP("invalid-input");const a=(s=e.charCodeAt(l++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:cP;a>=cP&&gP("invalid-input"),a>fP((lP-r)/t)&&gP("overflow"),r+=a*t;const c=o<=i?1:o>=i+26?26:o-i;if(a<c)break;const u=cP-c;t>fP(lP/u)&&gP("overflow"),t*=u}const c=t.length+1;i=wP(r-a,c,0==a),fP(r/c)>lP-o&&gP("overflow"),o+=fP(r/c),r%=c,t.splice(r++,0,o)}var s;return String.fromCodePoint(...t)},_P=function(e){const t=[],n=(e=yP(e)).length;let r=128,o=0,i=72;for(const n of e)n<128&&t.push(mP(n));const a=t.length;let s=a;for(a&&t.push("-");s<n;){let n=lP;for(const t of e)t>=r&&t<n&&(n=t);const l=s+1;n-r>fP((lP-o)/l)&&gP("overflow"),o+=(n-r)*l,r=n;for(const n of e)if(n<r&&++o>lP&&gP("overflow"),n===r){let e=o;for(let n=cP;;n+=cP){const r=n<=i?1:n>=i+26?26:n-i;if(e<r)break;const o=e-r,a=cP-r;t.push(mP(bP(r+o%a,0))),e=fP(o/a)}t.push(mP(bP(e,0))),i=wP(o,l,s===a),o=0,++s}++o,++r}return t.join("")},SP={version:"2.3.1",ucs2:{decode:yP,encode:e=>String.fromCodePoint(...e)},decode:xP,encode:_P,toASCII:function(e){return vP(e,(function(e){return dP.test(e)?"xn--"+_P(e):e}))},toUnicode:function(e){return vP(e,(function(e){return uP.test(e)?xP(e.slice(4).toLowerCase()):e}))}},CP={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},EP=/^(vbscript|javascript|file|data):/,kP=/^data:image\/(gif|png|jpeg|webp);/;function zP(e){const t=e.trim().toLowerCase();return!EP.test(t)||kP.test(t)}const PP=["http:","https:","mailto:"];function DP(e){const t=qE(e,!0);if(t.hostname&&(!t.protocol||PP.indexOf(t.protocol)>=0))try{t.hostname=SP.toASCII(t.hostname)}catch(e){}return ME(RE(t))}function AP(e){const t=qE(e,!0);if(t.hostname&&(!t.protocol||PP.indexOf(t.protocol)>=0))try{t.hostname=SP.toUnicode(t.hostname)}catch(e){}return AE(RE(t),AE.defaultChars+"%")}function TP(e,t){if(!(this instanceof TP))return new TP(e,t);t||yk(e)||(t=e||{},e="default"),this.inline=new Wz,this.block=new Tz,this.core=new vz,this.renderer=new Gk,this.linkify=new sP,this.validateLink=zP,this.normalizeLink=DP,this.normalizeLinkText=AP,this.utils=i,this.helpers=xk({},a),this.options={},this.configure(e),t&&this.set(t)}TP.prototype.set=function(e){return xk(this.options,e),this},TP.prototype.configure=function(e){const t=this;if(yk(e)){const t=e;if(!(e=CP[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach((function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)})),this},TP.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},TP.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},TP.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},TP.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},TP.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},TP.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},TP.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const IP=TP;let MP=null;function RP(e,t="assertive",n=7e3){MP||(MP=new FP),MP.announce(e,t,n)}class FP{createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){if(!this.node)return;let r=document.createElement("div");r.textContent=e,"assertive"===t?this.assertiveLog.appendChild(r):this.politeLog.appendChild(r),""!==e&&setTimeout((()=>{r.remove()}),n)}clear(e){this.node&&(e&&"assertive"!==e||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}const NP={none:"toolbar",single:"radiogroup",multiple:"toolbar"};const OP={none:void 0,single:"radio",multiple:"checkbox"};var jP=typeof document<"u"?l.useLayoutEffect:()=>{};function LP(e){let t=(0,l.useRef)(null);return jP((()=>{t.current=e}),[e]),(0,l.useCallback)(((...e)=>(0,t.current)?.(...e)),[])}var BP=e=>{var t;return null!==(t=e?.ownerDocument)&&void 0!==t?t:document},KP=e=>{if(e&&"window"in e&&e.window===e)return e;let t=VP(e);return t instanceof ShadowRoot?t.ownerDocument.defaultView||window:t?.defaultView||window},VP=e=>{if(!e)return document;let t=e.getRootNode?e.getRootNode():document;return e.isConnected?t:null};function HP(...e){return 1===e.length?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}var $P=new Set(["id"]),UP=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ZP=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),qP=/^(data-.*)$/;function GP(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&($P.has(t)||n&&UP.has(t)||r&&ZP.has(t)||o?.has(t)||qP.test(t))&&(i[t]=e[t]);return i}function WP(e){var t;return!(typeof window>"u"||null==window.navigator)&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function YP(e){var t;return typeof window<"u"&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function XP(){return YP(/^iPad/i)||YP(/^Mac/i)&&navigator.maxTouchPoints>1}function QP(){return YP(/^iPhone/i)||XP()}function JP(){return WP(/Firefox/i)}function eD(e){let t=(0,l.useRef)(null);return(0,l.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}function tD(e){let{ref:t,onResize:n}=e;(0,l.useEffect)((()=>{let e=t?.current;if(e){if(typeof window.ResizeObserver<"u"){let t=new window.ResizeObserver((e=>{e.length&&n()}));return t.observe(e),()=>{e&&t.unobserve(e)}}return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}}}),[n,t])}function nD(e){return!!e&&"label"in e&&!!e.label&&!("children"in e)}function rD(){return(0,l.useCallback)((e=>function(e){return function(e){return!!e&&"children"in e&&!!e.children&&"title"in e}(e)?(0,gr.jsx)(nr.$0,{items:e.children,title:e.title,children:e=>(0,gr.jsx)(nr.ck,{textValue:e.label,children:e.label},e.id)},e.id):(0,gr.jsx)(nr.ck,{textValue:e.label,children:e.label},e.id)}(e)),[])}function oD(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function iD(e,t,n){return(t=oD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aD(Object(n),!0).forEach((function(t){iD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lD(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}var cD=(e,t,n)=>{for(var r of Object.keys(e)){var o;if(e[r]!==(null!==(o=t[r])&&void 0!==o?o:n[r]))return!1}return!0},uD=e=>{var t=t=>{var n=e.defaultClassName,r=sD(sD({},e.defaultVariants),t);for(var o in r){var i,a=null!==(i=r[o])&&void 0!==i?i:e.defaultVariants[o];if(null!=a){var s=a;"boolean"==typeof s&&(s=!0===s?"true":"false");var l=e.variantClassNames[o][s];l&&(n+=" "+l)}}for(var[c,u]of e.compoundVariants)cD(c,r,e.defaultVariants)&&(n+=" "+u);return n};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return lD(e.variantClassNames,(e=>lD(e,(e=>e.split(" ")[0]))))}},t},dD=uD({defaultClassName:"_6n12k9b _1yep5z6l0 _1yep5z6kz _1yep5z6hk _1yep5z6ki",variantClassNames:{isDropTarget:{true:"_1yep5z612n"},orientation:{vertical:"_1yep5z6166",horizontal:"_1yep5z6167"}},defaultVariants:{},compoundVariants:[]}),pD=uD({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),hD=uD({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6ki _1yep5z6kl _1yep5z6ky _1yep5z6kx _1yep5z6kv _1yep5z6ks",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z612n _1yep5z616c _1yep5z616a _1yep5z616d _1yep5z612w _1yep5z612x _1yep5z612y"},isHovered:{true:"_1yep5z6114",false:"_1yep5z6113"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),fD=uD({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]}),mD=l.forwardRef((({className:e,style:t,variant:n="primary",orientation:r="horizontal",UNSAFE_omitRole:o,elementType:i="div","data-block-id":a,"data-block-class":l,...c},u)=>{let{separatorProps:d}=(0,Jn.zA)({...c,orientation:r,elementType:i});return(0,gr.jsx)(i,{...d,className:(0,s.AK)(fD({isVertical:"vertical"===r,isSecondary:"secondary"===n}),"BaselineUI-Separator",e),"data-orientation":r,"data-block-id":a,"data-block-class":l,style:t,role:o?void 0:d.role,ref:u})}));function gD(e){return yr.Kj.properties.has(e)}mD.displayName="Separator";var vD=l.forwardRef((({elementType:e="div",children:t,...n},r)=>{let o=e,{sprinkleProps:i,domProps:a}=(0,l.useMemo)((()=>{let e={},t={};for(let r in n)gD(r)?e[r]=n[r]:t[r]=n[r];return{sprinkleProps:e,domProps:t}}),[n]);return(0,gr.jsx)(o,{...a,className:(0,s.AK)((0,yr.Kj)(i),"BaselineUI-Box",a.className),ref:r,children:t})}));vD.displayName="Box";var yD=l.forwardRef((({item:e,isDisabled:t,isFocusVisible:n,isSelected:r,liProps:o,showSelectedIcon:i,description:a,descriptionProps:l,labelProps:c,isFocused:u,isPressed:d,_state:p},h)=>{(0,s.kG)(e.value&&nD(e.value),"Item cannot be a section");let{icon:f,label:m}=e.value,{hoverProps:g,isHovered:v}=(0,Jn.XI)({isDisabled:t}),y=(0,s.mS)({"data-selected":r,"data-disabled":t,"data-focused":u,"data-hovered":v,"data-pressed":d,"data-focus-visible":n,"data-selection-mode":p.selectionManager.selectionMode});return(0,gr.jsxs)("li",{...(0,Jn.dG)(o,g,y),className:(0,s.AK)(hD({isHovered:v,isFocused:n,isFirstChild:p.collection.getFirstKey()===e.key,isLastChild:p.collection.getLastKey()===e.key,isDisabled:t}),"BaselineUI-ListBox-Option"),ref:h,children:[(0,gr.jsxs)(vD,{display:"flex",alignItems:"center",gap:"lg",children:[i?(0,gr.jsx)("span",{"aria-hidden":!0,style:{height:24,width:24},children:r?(0,gr.jsx)(vr.KML,{size:24}):null}):null,f?(0,gr.jsx)(f,{size:24}):null,(0,gr.jsx)("span",{...c,children:m})]}),a?(0,gr.jsx)("span",{className:pD({isDisabled:t}),...l,children:a}):null]})}));yD.displayName="DefaultRenderOption";var bD=({dropState:e,orientation:t="vertical",dropIndicatorStyle:n,dropIndicatorClassName:r,renderDropIndicator:o=(({isDropTarget:e,isHidden:t,dropIndicatorProps:o,orientation:i},a)=>t?null:(0,gr.jsx)("li",{...o,ref:a,"data-drop-target":e,className:(0,s.AK)(dD({isDropTarget:e,orientation:i}),"BaselineUI-DropIndicator",r),style:n})),...i})=>{let a=l.useRef(null),{dropIndicatorProps:c,isHidden:u,isDropTarget:d}=(0,Jn.Dr)(i,e,a);return o({dropIndicatorProps:{...c,role:"option"},isHidden:u,isDropTarget:d,orientation:t},a)},wD=({item:e,children:t,state:n,dragState:r,...o})=>{let{dragProps:i}=(0,Jn.J4)({key:e.key},r);return(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsx)(bD,{target:{type:"item",key:e.key,dropPosition:"before"},...o}),t(i),null==n.collection.getKeyAfter(e.key)&&(0,gr.jsx)(bD,{target:{type:"item",key:e.key,dropPosition:"after"},...o})]})};wD.displayName="DraggableListOption";var xD=l.forwardRef((({item:e,renderOption:t=((e,t,n)=>(0,gr.jsx)(yD,{item:e,liProps:t.optionProps,...t,ref:n})),showSelectedIcon:n,state:r,dragState:o,dropState:i,orientation:a,dropIndicatorStyle:c,dropIndicatorClassName:u,optionStyle:d,optionClassName:p},h)=>{let f=l.useRef(null),m=(0,Jn.Fv)({key:e.key},r,f),{value:g}=e;(0,s.kG)(!!g),(0,s.kG)(!("children"in e),"ListSection should not be passed to ListOption");let v={style:"function"==typeof d?d(g):d,className:"function"==typeof p?p(g):p};return o&&i?(0,gr.jsx)(wD,{orientation:a,state:r,item:e,dropState:i,dragState:o,dropIndicatorStyle:c,dropIndicatorClassName:u,children:o=>t(e,{...m,showSelectedIcon:n,_state:r,optionProps:(0,Jn.dG)(m.optionProps,o,v)},HP(f,h))}):t(e,{...m,showSelectedIcon:n,_state:r,optionProps:(0,Jn.dG)(m.optionProps,v)},HP(f,h))}));xD.displayName="Option";var _D=({section:e,state:t,sectionClassName:n,sectionStyle:r,showSectionHeader:o,renderSectionHeader:i,withSectionHeaderPadding:a=!1,...c})=>{let u=l.useRef(null),{itemProps:d,groupProps:p,headingProps:h}=(0,Jn.TV)({heading:o?i?.(e,u)||e.rendered:void 0,"aria-label":e["aria-label"]}),f=t.collection.getChildren?.(e.key);(0,s.kG)(f,"items with type `section` must have children");let{value:m}=e,g="function"==typeof r?r(m):r,v="function"==typeof n?n(m):n;return(0,gr.jsxs)(gr.Fragment,{children:[e.key!==t.collection.getFirstKey()&&(0,gr.jsx)(mD,{UNSAFE_omitRole:!0}),(0,gr.jsxs)("li",{...d,style:{...d.style,...g},className:(0,s.AK)("_6n12k90",v,"BaselineUI-ListBox-Section"),children:[e.rendered&&o?i?.(e,u)||(0,gr.jsx)(vD,{...h,className:(0,s.AK)("BaselineUI-ListBox-SectionHeader","_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it"),ref:u,paddingX:"lg",typography:"label.md.medium",color:"text.primary",paddingInlineStart:a?"5xl":"lg",paddingInlineEnd:"lg",children:e.rendered}):null,(0,gr.jsx)("ul",{...p,children:[...f].map((e=>(0,gr.jsx)(xD,{item:e,state:t,...c},e.key)))})]})]})},SD=l.createContext(null),CD=l.forwardRef((({className:e,layout:t="stack",orientation:n="vertical",showSelectedIcon:r=!0,style:o,renderOption:i,enableReorder:a=!1,"data-block-id":c,"data-block-class":u,renderDragPreview:d,onReorder:p,state:h,listBoxHandle:f,...m},g)=>{let v=l.useRef(null),{direction:y}=(0,Jn.bU)(),b=l.useRef(null),{listBoxProps:w}=(0,Jn.co)({...m,shouldSelectOnPressUp:a,keyboardDelegate:new Jn.dp({collection:h.collection,ref:b,layout:t,orientation:n,direction:y,disabledKeys:h.disabledKeys})},h,b);(0,l.useImperativeHandle)(f,(()=>({scrollIntoView:(e,t)=>{b.current?.querySelector(`[data-key="${e}"][role="option"]`)?.scrollIntoView(t)}})));let x=it(),_=(0,l.useCallback)((e=>{let t=BP(b.current);p&&(!x&&"startViewTransition"in t?t.startViewTransition((()=>{p(e)})):p(e))}),[p,x]),{collectionProps:S,dragState:C,dropState:E}=function(e,t,n){let{direction:r}=(0,Jn.bU)(),o=(0,tr.h)({...e,collection:t.collection,selectionManager:t.selectionManager,isDisabled:!e.enableReorder,getItems:e.getItems||(e=>[...e].map((e=>{let n=t.collection.getItem(e);return(0,s.kG)(n,"Expected item to be defined."),{"text/plain":n.textValue}})))});(0,Jn.Xu)(e,o,n);let i=(0,tr.x)({...e,collection:t.collection,selectionManager:t.selectionManager}),{collectionProps:a}=(0,Jn.zw)({...e,keyboardDelegate:new Jn.dp({collection:t.collection,disabledKeys:t.disabledKeys,ref:n,orientation:e.orientation,layout:e.layout,direction:r}),dropTargetDelegate:new Jn.hO(t.collection,n)},i,n);return{collectionProps:a,dragState:o,dropState:i}}({...m,onReorder:_,layout:t,orientation:n,enableReorder:a,preview:v},h,b),{isFocusVisible:k,isFocused:z,focusProps:P}=(0,Jn.Fx)(),D=(0,s.mS)({"data-block-id":c,"data-block-class":u,"data-layout":t,"data-empty":0===h.collection.size,"data-focused":z,"data-focus-visible":k,"data-orientation":n});return(0,gr.jsxs)("ul",{...(0,Jn.dG)(w,P,D,S),className:(0,s.AK)("_6n12k98 _1yep5z6ky _1yep5z6i0 _1yep5z6i1 _1yep5z6i2","BaselineUI-ListBox",e),style:o,ref:HP(g,b),children:[[...h.collection].map((e=>{let t={key:e.key,state:h,dragState:C,dropState:E,renderOption:i,renderDropIndicator:m.renderDropIndicator,renderSectionHeader:m.renderSectionHeader,showSelectedIcon:r,orientation:n,dropIndicatorStyle:m.dropIndicatorStyle,dropIndicatorClassName:m.dropIndicatorClassName,optionStyle:m.optionStyle,optionClassName:m.optionClassName,showSectionHeader:m.showSectionHeader,withSectionHeaderPadding:m.withSectionHeaderPadding};return"section"===e.type?(0,gr.jsx)(_D,{...t,section:e}):(0,gr.jsx)(xD,{...t,item:e})})),d?(0,gr.jsx)(Jn.vI,{ref:v,children:d}):null]})}));CD.displayName="ListBoxCore";var ED=l.forwardRef(((e,t)=>{let n=rD(),r=(0,rr.n_)({...e,children:n});return(0,gr.jsx)(CD,{...e,ref:t,state:r})}));ED.displayName="ListBoxStandalone";var kD=l.forwardRef(((e,t)=>{let n=(0,l.useContext)(SD);return(0,l.useEffect)((()=>{if(!e.items&&!n)throw new Error("ListBox: You must provide a `state` or `items` prop to render the listbox.")}),[e.items,n]),n?(0,gr.jsx)(CD,{...e,ref:t,state:n}):(0,gr.jsx)(ED,{...e,ref:t})}));kD.displayName="ListBox";var zD="uf19bsf _1yep5z6ki",PD=uD({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0 _1yep5z6kx _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ks",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6vw _1yep5z6vx _1yep5z6vy _1yep5z6wk _1yep5z6wl _1yep5z6wm _1yep5z6x8 _1yep5z6x9 _1yep5z6xa _1yep5z6xw _1yep5z6xx _1yep5z6xy"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z610d"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"uf19bsd _1yep5z6we _1yep5z6wf _1yep5z6wg _1yep5z6x2 _1yep5z6x3 _1yep5z6x4 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg",popover:"uf19bse _1yep5z6oz _1yep5z6p0 _1yep5z6p1 _1yep5z6mn _1yep5z6mo _1yep5z6mp _1yep5z6le _1yep5z6lf _1yep5z6lg _1yep5z6nq _1yep5z6nr _1yep5z6ns _1yep5z6uz _1yep5z6v0 _1yep5z6v1"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61mg"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61mg"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61ln"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61lm _1yep5z61mg"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61ls"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61o1 _1yep5z61rl _1yep5z61rp _1yep5z61rm"],[{variant:"ghost",isDisabled:!1},"_1yep5z61lr"],[{variant:"popover",size:"lg"},"_1yep5z61h4 _1yep5z61h5 _1yep5z61h6 _1yep5z61hs _1yep5z61ht _1yep5z61hu _1yep5z61ig _1yep5z61ih _1yep5z61ii _1yep5z61j4 _1yep5z61j5 _1yep5z61j6"]]}),DD=l.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),AD=({children:e,...t})=>{let n=l.useRef(null),r=(0,ar.d)(t),o=(0,Jn.IB)(t,r),i=(0,l.useMemo)((()=>({state:r,overlayTriggerAria:o,triggerRef:n})),[r,o]);return(0,gr.jsx)(DD.Provider,{value:i,children:e})},TD={bottom:"_1gzftth2",top:"_1gzftth3",right:"_1gzftth4",left:"_1gzftth5"};function ID(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}function MD(e){return!("object"!=typeof e||"number"!=typeof e.left||"number"!=typeof e.top||"number"!=typeof e.width&&void 0!==e.width||"number"!=typeof e.height&&void 0!==e.height)}var RD=l.createContext({isSelected:!1,ref:void 0}),FD=({children:e,anchorRect:t})=>{let{state:n,overlayTriggerAria:r,triggerRef:o}=(0,l.useContext)(DD);(0,s.kG)(n,"PopoverTrigger must be used within a Popover");let{triggerProps:i}=r,a=(0,l.useMemo)((()=>({...i,isSelected:n.isOpen,ref:o})),[i,n.isOpen,o]);return(0,s.kG)(!t&&e||t&&!e,"Either one of anchorRect or children has to be provided."),(0,s.kG)(!t||MD(t),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height."),(0,gr.jsx)(RD.Provider,{value:a,children:t?(0,gr.jsx)("button",{className:(0,s.AK)("_1gzftth8","BaselineUI-PopoverTrigger-Hidden"),style:t,ref:o,tabIndex:-1},JSON.stringify(t)):e})},ND=e=>{let t=l.useRef(null),{ref:n,...r}=(0,l.useContext)(RD)||{},{buttonProps:o,isPressed:i}=(0,Jn.UW)({...e,...r},t);return{buttonProps:o,isPressed:i,ref:HP(t,n||null)}},OD=(e,t)=>{let n=l.useRef(null),{ref:r,...o}=(0,l.useContext)(RD)||{},{buttonProps:i,isPressed:a}=(0,Jn.kI)({...e,...o},t,n);return("radio"===i.role||"checkbox"===i.role)&&(i["aria-pressed"]=void 0),{buttonProps:i,isPressed:a,ref:HP(n,r||null)}},jD=uD({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6dy _1yep5z6ki",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5",toolbar:"oom8bs6",success:"oom8bs7",warning:"oom8bs8",error:"oom8bs9"},isDisabled:{true:"oom8bsa"},isFocusVisible:{true:"oom8bsb"},isHovered:{true:"oom8bsc"},size:{sm:"oom8bsd",md:"oom8bse",lg:"oom8bsf"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"oom8bsg"],[{variant:"secondary",isHovered:!0},"oom8bsh"],[{variant:"tertiary",isHovered:!0},"oom8bsi"],[{variant:"popover",isHovered:!0},"oom8bsj"],[{variant:"ghost",isHovered:!0},"oom8bsk"],[{variant:"success",isHovered:!0},"oom8bsl"],[{variant:"warning",isHovered:!0},"oom8bsm"],[{variant:"error",isHovered:!0},"oom8bsn"],[{variant:"primary",isFocusVisible:!0},"oom8bso"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsp"],[{variant:"success",isFocusVisible:!0},"oom8bsq"],[{variant:"warning",isFocusVisible:!0},"oom8bsr"],[{variant:"error",isFocusVisible:!0},"oom8bss"]]}),LD={sm:16,md:20,lg:24},BD=l.forwardRef((({label:e,style:t,className:n,iconStart:r,iconEnd:o,variant:i="primary",elementType:a="button",isDisabled:l,size:c="sm","data-block-id":u,"data-block-class":d,...p},h)=>{let{buttonProps:f,isPressed:m,ref:g}=ND({...p,elementType:a,isDisabled:l}),v=LD[c],{hoverProps:y,isHovered:b}=(0,Jn.XI)({isDisabled:l}),{isFocusVisible:w,isFocused:x,focusProps:_}=(0,Jn.Fx)(),S=(0,s.mS)({"data-block-id":u,"data-block-class":d,"data-disabled":l,"data-focused":x,"data-focus-visible":w,"data-hovered":b,"data-pressed":m});return(0,gr.jsxs)(a,{...(0,Jn.dG)(f,y,_,S),className:(0,s.AK)(jD({isDisabled:!!l,isFocusVisible:w,isHovered:b,variant:i,size:c}),"BaselineUI-ActionButton",n),style:t,ref:HP(h,g),children:[!!r&&(0,gr.jsx)(r,{size:v}),e,!!o&&(0,gr.jsx)(o,{size:v}),"popover"===i&&(0,gr.jsx)(br.v4,{size:8,className:zD})]})}));BD.displayName="ActionButton";var KD=uD({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]}),VD="z9nup80",HD="z9nup83",$D=l.forwardRef((({className:e,node:t,...n},r)=>{let o=l.useRef(null);return l.useEffect((()=>{let e=o.current;return e?.append(t),()=>{e?.contains(t)&&t.remove()}}),[t]),(0,gr.jsx)("div",{className:(0,s.AK)(VD,e),ref:HP(r,o),...n})}));$D.displayName="DomNodeRenderer";var UD=uD({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),ZD=uD({defaultClassName:"_14uvjige _14uvjig1",variantClassNames:{active:{true:"_14uvjigf _14uvjig2"},isDisabled:{true:"_14uvjigg"},isReadOnly:{true:"_14uvjigh"},isFocusVisible:{true:"_14uvjigi _14uvjig2"},isHovered:{true:"_14uvjigj _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),qD=uD({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]}),GD=uD({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),WD=uD({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),YD=uD({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),XD="nrh1eh3",QD=uD({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),JD=uD({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),eA=uD({defaultClassName:"nrh1eh9 z9nup82",variantClassNames:{validationState:{valid:"nrh1eha",error:"nrh1ehb",warning:"nrh1ehc"},isHovered:{true:"nrh1ehd"},isFocused:{true:"nrh1ehe"},isDisabled:{true:"nrh1ehf"},variant:{primary:"nrh1ehg",ghost:"nrh1ehh"},isReadOnly:{true:"nrh1ehi"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"nrh1ehj"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"nrh1ehk"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"nrh1ehl"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"nrh1ehm"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"nrh1ehn"]]});function tA({description:e,errorMessageProps:t,descriptionProps:n,warningMessage:r,errorMessage:o,labelPosition:i,isDisabled:a}){return e?(0,gr.jsx)("div",{...n,className:GD({isDisabled:a,labelPosition:i}),children:e}):o?(0,gr.jsx)("div",{...t,className:GD({hasError:!0,labelPosition:i}),children:o}):r?(0,gr.jsx)("div",{className:GD({isDisabled:a,labelPosition:i}),children:r}):null}var nA=uD({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),rA={xxs:8,xs:12,sm:16,md:20,lg:24},oA=l.forwardRef((({className:e,style:t,icon:n,size:r="md",variant:o="primary",UNSAFE_NON_INTERACTIVE:i,elementType:a=(i?"div":"button"),...l},c)=>{!l["aria-label"]&&!l["aria-labelledby"]&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");let{buttonProps:u,isPressed:d,ref:p}=ND({...l,elementType:a}),{isFocusVisible:h,isFocused:f,focusProps:m}=(0,Jn.Fx)(),{hoverProps:g,isHovered:v}=(0,Jn.XI)({isDisabled:l.isDisabled}),y=(0,s.mS)({"data-block-id":l["data-block-id"],"data-block-class":l["data-block-class"],"data-focused":f,"data-focus-visible":h,"data-disabled":l.isDisabled,"data-hovered":v,"data-pressed":d});return(0,gr.jsxs)(a,{...(0,Jn.dG)(u,g,m,y),className:(0,s.AK)(PD({variant:o,size:r,isDisabled:!!l.isDisabled,isFocusVisible:h,isHovered:v}),"BaselineUI-ActionIconButton",e),ref:HP(c,p),style:t,...i&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[(0,gr.jsx)(n,{role:"presentation",size:rA[r]}),"popover"===o&&(0,gr.jsx)(br.v4,{size:8,className:zD})]})}));oA.displayName="ActionIconButton";var iA=l.forwardRef((({className:e,style:t,labelPosition:n="top",variant:r="primary",showStepper:o=!0,...i},a)=>{let c=l.useRef(null),{locale:u}=(0,Jn.bU)(),d=(0,ir.j)({...i,locale:u}),{hoverProps:p,isHovered:h}=(0,Jn.XI)({isDisabled:i.isDisabled}),{focusProps:f,isFocusVisible:m,isFocused:g}=(0,Jn.Fx)(),{labelProps:v,decrementButtonProps:y,inputProps:b,incrementButtonProps:w,groupProps:x,descriptionProps:_,errorMessageProps:S}=(0,Jn.IL)(i,d,c),C=(0,l.useMemo)((()=>i.isReadOnly?wr.CP:i.isInvalid?wr.Rv:null),[i.isInvalid,i.isReadOnly]),E=tA({description:i.description,errorMessageProps:S,descriptionProps:_,errorMessage:i.errorMessage,labelPosition:n,isDisabled:i.isDisabled}),k=(0,s.mS)({"data-disabled":i.isDisabled,"data-readonly":i.isReadOnly,"data-hovered":h,"data-focused":g,"data-focus-visible":m,"data-invalid":i.isInvalid,"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"]});return(0,gr.jsxs)("div",{style:t,className:(0,s.AK)(JD({labelPosition:n}),"BaselineUI-NumberInput",e),...k,ref:a,children:[i.label?(0,gr.jsxs)("div",{className:QD({labelPosition:n,hasMessage:!!E}),children:[(0,gr.jsx)("label",{...v,className:XD,children:i.label}),"start"===n&&E]}):null,(0,gr.jsxs)("div",{className:(0,s.AK)({[HD]:i.isDisabled}),children:[(0,gr.jsxs)("div",{...(0,Jn.dG)(x,p),className:(0,s.AK)(eA({isHovered:h,isDisabled:!!i.isDisabled,isReadOnly:!!i.isReadOnly,validationState:i.isInvalid?"error":"valid",isFocused:g,variant:r}),{_1lnwne0:"start"===n},"BaselineUI-NumberInput-Container"),children:[(0,gr.jsx)("input",{...(0,Jn.dG)(b,f),ref:c,className:(0,s.AK)("BaselineUI-NumberInput-Input",WD({isDisabled:i.isDisabled,labelPosition:n}))}),C?(0,gr.jsx)(C,{className:YD({validationState:"error",isReadOnly:i.isReadOnly}),size:16}):null,o?(0,gr.jsxs)("div",{className:nA({isHoveredOrFocused:h||g,isInteractive:!i.isReadOnly&&!i.isDisabled}),children:[(0,gr.jsx)(oA,{variant:"secondary",size:"xxs",icon:br.V_,...y,className:"BaselineUI-NumberInput-DecrementButton"}),(0,gr.jsx)(mD,{style:{height:16},orientation:"vertical"}),(0,gr.jsx)(oA,{variant:"secondary",size:"xxs",icon:br.pO,...w,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),"top"===n&&E]})]})}));iA.displayName="NumberInput";var aA=l.forwardRef((({className:e,style:t,onChange:n,onChangeEnd:r,numberFormatOptions:o,isDisabled:i,step:a,minValue:c,maxValue:u,value:d,"aria-label":p,"aria-labelledby":h,"aria-details":f,"aria-describedby":m,"data-block-id":g,"data-block-class":v,defaultValue:y,isReadOnly:b,label:w,id:x,includeNumberInput:_},S)=>{let C=l.useRef(null),E={onChange:void 0===n?void 0:e=>{n(e[0])},isDisabled:i||b,step:a,minValue:c,maxValue:u,onChangeEnd:void 0===r?void 0:e=>{r(e[0])},value:void 0===d?void 0:[d],defaultValue:void 0===y?void 0:[y],"aria-label":p,"aria-labelledby":h,"aria-details":f,"aria-describedby":m,id:x,label:w},k=(0,Jn.Ux)(o),z=(0,ur.x)({...E,numberFormatter:k}),{trackProps:P,groupProps:D,labelProps:A}=(0,Jn.oN)(E,z,C),T=(0,gr.jsx)(iA,{variant:"ghost",showStepper:!1,"aria-label":p,"aria-labelledby":A.id,value:z.getThumbValue(0),formatOptions:o,onChange:e=>{z.setThumbValue(0,e)},style:{width:55,textAlign:"right",flexShrink:0}});return(0,gr.jsxs)("div",{...D,style:t,"data-block-id":g,"data-block-class":v,className:(0,s.AK)("_14uvjig0 z9nup81","BaselineUI-Slider",e),children:[w?(0,gr.jsxs)("div",{className:"_14uvjig3",children:[(0,gr.jsx)("label",{...A,className:(0,s.AK)(UD({isDisabled:i,hasNumberInput:!!_}),"BaselineUI-Slider-Label"),children:w}),_?T:null]}):null,(0,gr.jsxs)("div",{className:"_14uvjig7",children:[(0,gr.jsx)("div",{...P,className:(0,s.AK)("_14uvjig8","BaselineUI-Slider-Track"),ref:HP(C,S),"data-testid":"track",children:(0,gr.jsx)(sA,{state:z,trackRef:C,isDisabled:i,isReadOnly:b})}),_&&!w?T:null]})]})}));function sA({state:e,trackRef:t,isDisabled:n,isReadOnly:r}){let o=l.useRef(null),{thumbProps:i,inputProps:a,isDragging:c}=(0,Jn.pS)({trackRef:t,inputRef:o},e),{focusProps:u,isFocused:d,isFocusVisible:p}=(0,Jn.Fx)(),{hoverProps:h,isHovered:f}=(0,Jn.XI)({isDisabled:n}),m=(0,s.mS)({"data-disabled":n,"data-readonly":r,"data-hovered":f,"data-focus-visible":p,"data-dragging":c,"data-focused":d});return(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsx)("div",{className:(0,s.AK)(qD({isDisabled:n,isFocusVisible:p,active:c,isHovered:f}),"BaselineUI-Slider-TrackHighlight"),style:{width:i.style?.left},"data-testid":"track-highlight"}),(0,gr.jsx)("div",{...(0,Jn.dG)(i,h,m),className:(0,s.AK)(ZD({isDisabled:n,isFocusVisible:p,active:c,isReadOnly:r,isHovered:f}),"BaselineUI-Slider-Thumb"),"data-testid":"thumb",children:(0,gr.jsx)(Jn.TX,{children:(0,gr.jsx)("input",{ref:o,...(0,Jn.dG)(a,u)})})})]})}function lA({ref:e,onIntersect:t,isDisabled:n,threshold:r,rootMargin:o,root:i}){let a=l.useRef(null);(0,l.useEffect)((()=>{if(n)return a.current?.disconnect(),void(a.current=null);a.current=new IntersectionObserver((([e])=>{t(e)}),{root:i?.current,rootMargin:o,threshold:r})}),[t,n,i,o,r]),(0,l.useEffect)((()=>{let{current:t}=a;return e.current&&t?.observe(e.current),()=>t?.disconnect()}),[e])}function cA({ref:e,onResize:t,isDisabled:n}){let r=l.useRef(null),[o,i]=l.useState();return l.useEffect((()=>{if(n)return r.current?.disconnect(),void(r.current=null);r.current=new ResizeObserver((([e])=>{i(e.contentRect),t?.(e)}))}),[t,n,i]),l.useEffect((()=>{let{current:t}=r;return e.current&&t?.observe(e.current),()=>t?.disconnect()}),[e]),{size:o}}function uA({src:e,alt:t}){let[n,r]=(0,l.useState)(!1),[o,i]=(0,l.useState)(!1),[a,s]=(0,l.useState)(!1),c=()=>{r(!0),s(!1)},u=()=>{i(!0),s(!1)};return(0,l.useEffect)((()=>{if(!e)return;s(!0);let t=new Image;return t.src=e,t.addEventListener("load",c),t.addEventListener("error",u),()=>{t.removeEventListener("load",c),t.removeEventListener("error",u)}}),[e]),{isLoaded:n,hasError:o,isLoading:a,imgProps:{src:n?e:void 0,alt:t}}}function dA(){let e=(0,l.useRef)(!0);return(0,l.useEffect)((()=>{e.current=!1}),[]),e.current}aA.displayName="Slider";var pA="SET_STATE",hA="UNDO",fA="REDO",mA=(e,t)=>{let{past:n,present:r,future:o}=e;switch(t.type){case pA:return{past:[...n,r],present:t.data,future:[]};case hA:return{past:n.slice(0,n?.length-1),present:n[n?.length-1],future:[r,...o]};case fA:return{past:[...n,r],present:o[0],future:o.slice(1)};default:throw new Error("Invalid action type")}},gA=(e={},{isDisabled:t,onAction:n})=>{let r=dA(),[o,i]=(0,l.useReducer)(mA,{past:[],present:e,future:[]}),{past:a,present:s,future:c}=o,u=(0,l.useRef)(),d=!!a?.length,p=!!c?.length;return(0,_r.useGranularEffect)((()=>{(u.current===hA||u.current===fA)&&(n?.(s,u.current),u.current=void 0)}),[s],[n,r]),{state:s,push:t?()=>{}:e=>{i({type:pA,data:e})},undo:t?()=>{}:()=>{u.current=hA,i({type:hA})},redo:t?()=>{}:()=>{u.current=fA,i({type:fA})},pastStates:a,futureStates:c,canUndo:d,canRedo:p}},vA=l.createContext({messages:{}}),yA=({children:e,messages:t={},...n})=>{let r=l.useMemo((()=>({messages:t})),[t]);return(0,gr.jsx)(Jn.bd,{...n,children:(0,gr.jsx)(vA.Provider,{value:r,children:e})})};function bA(e){let{messages:t}=(0,l.useContext)(vA);!e&&Cr()(t)&&console.warn("BUI 🌍: No messages object provided and no messages found in the `I18nProvider`. Please provide a messages object to the `useI18n` hook.");let n=(0,Jn.hX)(e?(0,s.gn)(e):t);return{formatMessage:(e,t)=>{if("object"==typeof e)try{return n(e.id,t)}catch{return console.log(`BUI 🌍: Translation not found for key: \`${e.id.toString()}\`. The default message, i.e. \`${e.defaultMessage}\`, will be used instead.`),e.defaultMessage||e.id}else try{return n(e,t)}catch{return console.log(`BUI 🌍: Translation not found for key: \`${e.toString()}\`. The default message, i.e. \`${e.toString()}\`, will be used instead.`),e}},locale:(0,Jn.bU)()}}yA.displayName="I18nProvider";var wA=e=>e;function xA(e,t,n){let r=l.useRef(null);return l.useEffect((()=>{if(e)return r.current=new MutationObserver(n),r.current.observe(e,t),()=>{r.current&&r.current.disconnect()}}),[e,t,n]),r.current}function _A(e,t){let[n,r]=(0,l.useState)((()=>{try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.log(e),t}}));return[n,t=>{try{let o=t instanceof Function?t(n):t;r(o),window.localStorage.setItem(e,JSON.stringify(o))}catch(e){console.log(e)}}]}function SA({ref:e,onSelectionChange:t,onSelectionEnd:n,isDisabled:r}){let o=l.useRef(null);(0,Jn.r7)({ref:e,isDisabled:r,onPressEnd(){let t=KP(e.current).getSelection();t&&e.current?.contains(t.anchorNode)&&n?.(t)},onPressStart(){let t=KP(e.current);o.current=t.getSelection(),o.current&&o.current.removeAllRanges()}}),(0,l.useEffect)((()=>{let n=e.current;if(!n||r)return;function o(){let r=KP(n).getSelection();r&&e.current?.contains(r.anchorNode)&&t(r)}let i=BP(n);return i.addEventListener("selectionchange",o),()=>{i.removeEventListener("selectionchange",o)}}),[e,t,r])}function CA(e){let t=(0,l.useCallback)((()=>{let t=KP(e??document.body),n=t.matchMedia(yr.o$.tablet);return t.matchMedia(yr.o$.desktop).matches?"desktop":n.matches?"tablet":"mobile"}),[e]),[n,r]=l.useState(t);return jP((()=>{let n=KP(e),o=()=>{r(t())};return n.addEventListener("resize",o),o(),()=>{n.removeEventListener("resize",o)}}),[e,t]),n}var EA=l.createContext(void 0),kA=({portalContainer:e,children:t})=>(0,gr.jsx)(EA.Provider,{value:e,children:t});function zA(e){let t=(0,l.useContext)(EA);return e||t}kA.displayName="PortalContainerProvider";var PA=uD({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z6105",title:"_1yep5z6105",label:"_1yep5z6106",value:"_1yep5z6106",helper:"_1yep5z6107",body:"_1yep5z6105"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61jz"],[{type:"title",size:"md"},"_1yep5z61k2"],[{type:"title",size:"lg"},"_1yep5z61k5"],[{type:"body",size:"sm"},"_1yep5z61kp"],[{type:"body",size:"md"},"_1yep5z61ks"],[{type:"body",size:"lg"},"_1yep5z61ks"],[{type:"subtitle",size:"sm"},"_1yep5z61kl"],[{type:"subtitle",size:"md"},"_1yep5z61ko"],[{type:"subtitle",size:"lg"},"_1yep5z61ko"],[{type:"label",size:"md"},"_1yep5z61kn"],[{type:"label",size:"lg"},"_1yep5z61kn"],[{type:"value",size:"md"},"_1yep5z61kn"],[{type:"value",size:"lg"},"_1yep5z61kn"],[{type:"helper",size:"sm"},"_1yep5z61kh"]]}),DA=l.forwardRef((({elementType:e="span",type:t="title",children:n,size:r="md",...o},i)=>(0,gr.jsx)(e,{...o,className:(0,s.AK)(PA({size:r,type:t}),"BaselineUI-Text",o.className),ref:i,children:n})));DA.displayName="Text";var AA=uD({defaultClassName:"siobe21 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6l9 _1yep5z6l7 _1yep5z6gq _1yep5z6ky _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie",variantClassNames:{background:{subtle:"_1yep5z6113",medium:"_1yep5z6114"}},defaultVariants:{},compoundVariants:[]}),TA=l.forwardRef((({className:e,style:t,children:n,background:r="medium",title:o,action:i,"data-block-id":a,"data-block-class":c,onCloseRequest:u,...d},p)=>{let{formatMessage:h}=bA(),f=l.useRef(null),{dialogProps:m,titleProps:g}=(0,Jn.Rh)(d,f);return(0,gr.jsxs)("div",{...m,className:(0,s.AK)(AA({background:r}),"BaselineUI-Drawer",e),"data-block-id":a,"data-block-class":c,style:t,ref:HP(p,f),children:[(0,gr.jsxs)(vD,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:"siobe24",children:[(0,gr.jsx)(DA,{type:"title",size:"sm",...g,className:"z9nup87",children:o}),(0,gr.jsxs)(vD,{children:[i?(0,gr.jsx)(oA,{...i,variant:"secondary"}):null,(0,gr.jsx)(oA,{variant:"secondary",size:"md",icon:xr.b0,onPress:u,"aria-label":h(IA.close)})]})]}),(0,gr.jsx)(mD,{variant:"subtle"===r?"primary":"secondary"}),n]})}));TA.displayName="Drawer";var IA=wA({close:{id:"close",defaultMessage:"Close"}});function MA(e,t,n){let{isDisabled:r}=e,o=it(),[i,a]=l.useState("100vh");(0,l.useEffect)((()=>{if(!QP()&&!WP(/Android/i))return;let e=KP(n.current);function t(){a(`${e?.visualViewport.height}px`)}return t(),e?.visualViewport.addEventListener("resize",t),()=>{e?.visualViewport.removeEventListener("resize",t)}}),[n]);let[{y:s},c]=An((()=>({y:0,immediate:o,config:{easing:ze.easeOutCubic}}))),u=(0,l.useRef)(0),d=(0,l.useCallback)((()=>{c.start({y:u.current,onRest:()=>{t.close()}})}),[c,t]),p=(0,l.useCallback)((e=>{e.target.closest("[data-drawer]")||d()}),[d]);(0,_r.useGranularLayoutEffect)((()=>{u.current=n.current?.offsetHeight||0,c.set({y:u.current}),c.start({y:0,immediate:!!o})}),[],[c,o]);let h=s.to({range:[0,u.current/2,u.current],output:[.5,.2,0],extrapolate:"clamp"}).to((e=>`rgba(0,0,0,${e})`));return{overlayProps:{style:r?void 0:{transform:s.to((e=>`translateY(${e}px)`))}},underlayProps:{style:r?void 0:{backgroundColor:h},onPointerDown:r?void 0:p},close:d,containerHeight:r?void 0:i}}var RA=uD({defaultClassName:"aml2vl0 _1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6hr _1yep5z6hs _1yep5z6ht",variantClassNames:{enableDrawer:{false:"_1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn",true:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});function FA(e=window){let[t,n]=(0,l.useState)("light"),[r,o]=(0,l.useState)(!1),[i,a]=(0,l.useState)(!1),[s,c]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{let t=e.matchMedia("(prefers-color-scheme: dark)"),r=e=>{n(e.matches?"dark":"light")};return t.matches&&n("dark"),t.addEventListener("change",r),()=>{t.addEventListener("change",r)}}),[e]),(0,l.useEffect)((()=>{let t=e.matchMedia("(prefers-contrast: more)"),n=e=>{o(e.matches)};return o(t.matches),t.addEventListener("change",n),()=>{t.addEventListener("change",n)}}),[e]),(0,l.useEffect)((()=>{let t=e.matchMedia("(prefers-reduced-motion: reduce)"),n=e=>{a(e.matches)};return t.matches&&a(!0),t.addEventListener("change",n),()=>{t.addEventListener("change",n)}}),[e]),(0,l.useEffect)((()=>{let t=e.matchMedia("(prefers-reduced-transparency: reduce)"),n=e=>{c(e.matches)};return t.matches&&c(!0),t.addEventListener("change",n),()=>{t.addEventListener("change",n)}}),[e]),{colorScheme:t,highContrast:r,reducedMotion:i,transparency:s}}var NA=(0,l.createContext)({theme:yr.Wb,setTheme:()=>{}}),OA={LIGHT:{name:"light",theme:yr.Wb},DARK:{name:"dark",theme:yr.$_}},jA=l.forwardRef((({theme:e="system",children:t,setTheme:n,className:r,style:o,UNSAFE_domProps:i,"data-block-id":a,"data-block-class":c},u)=>{let{direction:d}=(0,Jn.bU)(),{colorScheme:p,reducedMotion:h,highContrast:f,transparency:m}=FA(),{name:g,theme:v}=(0,l.useMemo)((()=>{switch(e){case"system":return"light"===p?OA.LIGHT:OA.DARK;case"light":return OA.LIGHT;case"dark":return OA.DARK;default:return{name:"custom",theme:e}}}),[p,e]),y={"data-theme":g,"data-block-id":a,"data-block-class":c,"data-reduced-motion":h,"data-high-contrast":f,"data-transparency":m,"data-device":CA()},b=(0,l.useMemo)((()=>({theme:v,setTheme:n})),[v,n]);return(0,gr.jsx)(NA.Provider,{value:b,children:(0,gr.jsx)("div",{...(0,Jn.dG)(i,y),className:(0,s.AK)(VD,"BaselineUI-ThemeProvider",r),style:{...zr(yr.themeVars,v),...zr({"var(--hj25q10)":"rtl"===d?"-1":"1"}),...o},ref:u,children:t})})}));jA.displayName="ThemeProvider";var LA=l.createContext({state:null,triggerProps:{},overlayProps:{}}),BA=({children:e,...t})=>{let n=(0,ar.d)(t),{triggerProps:r,overlayProps:o}=(0,Jn.IB)({type:"dialog"},n),i=(0,l.useMemo)((()=>({state:n,triggerProps:r,overlayProps:o})),[n,r,o]);return(0,gr.jsx)(LA.Provider,{value:i,children:e})};BA.displayName="Modal";var KA=l.createContext({isDrawer:!1,closeDrawer:()=>{}}),VA=Qn(jA),HA=Qn((({children:e,className:t,style:n,isDismissable:r=!0,isKeyboardDismissDisabled:o=!1,portalContainer:i,disableAnimation:a,enableDrawer:c=!1,"data-block-id":u,"data-block-class":d})=>{let{state:p}=l.useContext(LA),h=CA(i),f=zA(i),m="boolean"==typeof c&&c||"auto"===c&&"mobile"===h;(0,s.kG)(p,"ModalContent must be a child of Modal");let g=l.useRef(null),v="function"==typeof r?r(m):r,y="function"==typeof o?o(m):o,{underlayProps:b,overlayProps:w,close:x,containerHeight:_}=MA({isDisabled:!m,isDismissable:v},p,g),{modalProps:S,underlayProps:C}=(0,Jn.NE)({isDismissable:!1,isKeyboardDismissDisabled:y},p,g),{theme:E}=(0,l.useContext)(NA),k=An({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!it()||a,config:{easing:ze.easeInBounce}}),z=(0,l.useMemo)((()=>({...S.style,...m?{...w.style,width:"100%"}:k})),[w.style,S.style,m,k]),P=(0,l.useMemo)((()=>({isDrawer:m,closeDrawer:x})),[m,x]),D=(0,l.useMemo)((()=>(0,Jn.dG)(C,b,{onPointerDown:m?b.onPointerDown:C.onPointerDown,onClick:()=>{r&&!m&&p.close()}})),[b,r,m,p,C]);return(0,gr.jsx)(Jn.aV,{portalContainer:f,children:(0,gr.jsx)(KA.Provider,{value:P,children:(0,gr.jsxs)(VA,{className:(0,s.AK)(RA({enableDrawer:m}),t),theme:E,"data-block-id":u,"data-block-class":d,style:{...n,height:m?_:"auto",...zr({"var(--siobe20)":_})},children:[(0,gr.jsx)(Qn.div,{...D,"data-testid":"underlay",style:b.style,className:(0,s.AK)("_1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6g2 _1yep5z6hr _1yep5z6hs _1yep5z6ht","BaselineUI-Modal-Underlay")}),(0,gr.jsx)(Qn.div,{...(0,Jn.dG)(S,w),style:z,ref:g,"data-drawer":m,className:"BaselineUI-Modal-Content",children:"function"==typeof e?e(p):e})]})})})})),$A=({children:e,style:t,...n})=>{let{state:r}=l.useContext(LA);(0,s.kG)(r,"ModalContent must be a child of Modal");let o=it();return Tn(r.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!o||n.disableAnimation})(((o,i)=>i&&(0,gr.jsx)(HA,{...n,style:{...t,...o},children:"function"==typeof e?e(r):e})))},UA=uD({defaultClassName:"cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6fs _1yep5z6d7",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z6121 _1yep5z616i _1yep5z616k",ghost:"cjv3et6"},isDrawer:{true:"cjv3et7 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg _1yep5z6166"}},defaultVariants:{},compoundVariants:[]}),ZA=l.createContext({titleProps:{}}),qA=l.forwardRef((({children:e,className:t,style:n,inheritDrawer:r,size:o="md",variant:i="primary","data-block-id":a,"data-block-class":c,drawerBackground:u,...d},p)=>{let h=l.useRef(null),f=l.useRef(null),{isDrawer:m,closeDrawer:g}=(0,l.useContext)(KA),[v,y]=l.useState("");(0,l.useLayoutEffect)((()=>{let e=f.current?.getRootNode(),t=d["aria-label"]||"";d["aria-labelledby"]&&(t=e?.querySelector(`#${d["aria-labelledby"].replaceAll(":","\\:")}`)?.textContent||""),y(t)}),[d]);let{dialogProps:b,titleProps:w}=(0,Jn.Rh)(d,h),x=(0,l.useMemo)((()=>({titleProps:w})),[w]);return m&&r?(0,gr.jsx)(TA,{title:v,onCloseRequest:g,className:t,...d,"data-drawer":!0,"data-block-id":a,"data-block-class":c,ref:HP(f,p),background:u,children:e}):(0,gr.jsx)(ZA.Provider,{value:x,children:(0,gr.jsx)("section",{...b,"data-block-id":a,"data-block-class":c,ref:HP(h,p),style:n,className:(0,s.AK)(UA({size:m?"content":o,variant:i,isDrawer:m}),"BaselineUI-Dialog",t),children:e})})}));qA.displayName="Dialog";var GA=l.forwardRef((({children:e,className:t,style:n},r)=>{let{titleProps:o}=(0,l.useContext)(ZA);return l.isValidElement(e)?l.cloneElement(e,{...o,ref:r,className:(0,s.AK)(e.props.className,t),style:{...e.props.style,...n}}):(0,gr.jsx)("h3",{...o,ref:r,className:t,style:n,children:e})}));GA.displayName="DialogTitle";var WA=l.forwardRef((({className:e,style:t,children:n,"data-block-id":r,"data-block-class":o,...i},a)=>{let{theme:c}=(0,l.useContext)(NA);return(0,gr.jsx)(Jn.aV,{...i,children:(0,gr.jsx)(jA,{ref:a,theme:c,style:t,className:(0,s.AK)("BaselineUI-Portal",e),"data-block-id":r,"data-block-class":o,children:n})})}));WA.displayName="Portal";var{color:YA}=yr.themeVars,XA=l.forwardRef((({className:e,style:t,state:n,overlayProps:r,underlayClassName:o,children:i,includeArrow:a=!1,offset:c=2,portalContainer:u,contentContainerClassName:d,contentContainerStyle:p,"data-block-id":h,"data-block-class":f,...m},g)=>{let v=l.useRef(null),y=zA(u),b=a?8:0,{underlayProps:w,popoverProps:x,placement:_,arrowProps:S}=(0,Jn.Sv)({...m,offset:c+b,popoverRef:v,containerPadding:m.containerPadding||0},n);delete x.style?.position;let C=function({placement:e}){return Tn(!0,{from:{opacity:0,transform:`translate3d(${"bottom"===e?"0, 4px, 0":"0, -4px, 0"})`},enter:{opacity:1,transform:"translate3d(0, 0, 0)"},immediate:!!it(),config:Nt.stiff})}({placement:_}),E="center"===_?"bottom":_;return C(((l,c)=>c&&(0,gr.jsxs)(WA,{portalContainer:y,style:t,ref:g,"data-block-id":h,"data-block-class":f,children:[!m.isNonModal&&(0,gr.jsx)("div",{...w,className:(0,s.AK)("_1gzftth7",o,"BaselineUI-Popover-Underlay")}),(0,gr.jsxs)(Qn.div,{...x,style:{...x.style,...l,...zr({"var(--_1gzftth0)":`${m.triggerRef?.current?.offsetWidth}px`})},ref:HP(v,g),className:(0,s.AK)("_1gzftth1 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2","BaselineUI-Popover-Content",e),"data-placement":["top","bottom","left","right"].filter((e=>_?.includes(e))),children:[a?(0,gr.jsxs)("svg",{className:(0,s.AK)(TD[E],"BaselineUI-PopoverContent-Arrow"),...S,style:{...S.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,gr.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.019 0h1.228l6.272 7.237L13.791 0h1.228v1h-.772L7.519 8.763.791 1H.019V0Z",fill:YA.border.medium}),(0,gr.jsx)("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:YA.background.primary.subtle,stroke:YA.background.primary.subtle})]}):null,(0,gr.jsx)(Jn.U4,{onDismiss:n.close}),(0,gr.jsx)("div",{...r,style:p,className:(0,s.AK)("_1gzftth6",d),children:"function"==typeof i?i(n):i}),(0,gr.jsx)(Jn.U4,{onDismiss:n.close})]})]})))}));XA.displayName="PopoverContentCore";var QA=l.forwardRef(((e,t)=>{let{state:n,overlayTriggerAria:{overlayProps:r},triggerRef:o}=(0,l.useContext)(DD);return(0,s.kG)(o),n?.isOpen?(0,gr.jsx)(XA,{ref:t,...e,triggerRef:e.triggerRef||o,overlayProps:r,state:n}):null}));QA.displayName="PopoverContent";var JA=uD({defaultClassName:"_1mdhlqv3",variantClassNames:{isOpen:{true:"_1mdhlqv4"}},defaultVariants:{},compoundVariants:[]}),eT="_1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",tT=uD({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6eu _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isDisabled:{true:"z9nup83 _1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),nT="_1mdhlqv7 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6fs",rT=uD({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),oT=uD({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6g0 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6fs _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]}),iT=l.forwardRef((({children:e,state:t,overlayProps:n,arrowProps:r,placement:o,variant:i,size:a,tooltipProps:s,includeArrow:c},u)=>{let{tooltipProps:d}=(0,Jn.lL)({isOpen:t.isOpen},t),p=(0,l.useMemo)((()=>{switch(o){case"top":return{x:0,y:4};case"bottom":return{x:0,y:-4};case"left":return{x:4,y:0};case"right":return{x:-4,y:0};default:return{x:0,y:0}}}),[o]),h=it(),[f]=An((()=>({from:{opacity:0,transform:`translate(${p.x}px, ${p.y}px)`},to:{opacity:1,transform:"translate(0, 0)"},immediate:!!h}))),m="center"===o?"bottom":o;return(0,gr.jsxs)(Qn.span,{...n,style:{...f,...n.style},ref:u,"data-placement":m,children:[c?(0,gr.jsx)("div",{className:rT({placement:m,variant:i}),...r}):null,(0,gr.jsx)("div",{...(0,Jn.dG)(d,s),className:oT({variant:i,size:a}),children:e})]})}));iT.displayName="TooltipContent";var aT=l.forwardRef((({children:e,placement:t="bottom",delay:n=1e3,closeDelay:r=500,variant:o="default",size:i="md",includeArrow:a=!0,portalContainer:s,className:c,style:u,"data-block-id":d,"data-block-class":p,...h},f)=>{let m=l.useRef(null),g=l.useRef(null),v=!h.text||h.isDisabled,y=(0,hr.O)({...h,delay:n,closeDelay:r,isDisabled:v}),{triggerProps:b,tooltipProps:w}=(0,Jn.QM)({...h,isDisabled:v,delay:n,closeDelay:r},y,m),x=zA(s),{overlayProps:_,arrowProps:S,placement:C,updatePosition:E}=(0,Jn.tN)({arrowSize:a?13:0,targetRef:m,arrowBoundaryOffset:a?8:0,offset:a?12:2,overlayRef:g,placement:t,isOpen:y.isOpen,...h});return lA({ref:g,threshold:1,onIntersect:E,isDisabled:!y.isOpen}),cA({ref:m,onResize:E,isDisabled:!y.isOpen}),(0,gr.jsxs)(Dr.tB,{...b,ref:m,children:[e,y.isOpen?(0,gr.jsx)(WA,{disableFocusManagement:!0,portalContainer:x,className:c,style:u,"data-block-id":d,"data-block-class":p,children:(0,gr.jsx)(iT,{ref:HP(f,g),state:y,arrowProps:S,overlayProps:_,placement:C,tooltipProps:w,variant:o,size:i,includeArrow:a,children:h.text})}):null]})}));aT.displayName="Tooltip";var sT=l.forwardRef((({className:e,style:t,onChange:n,"data-block-id":r,icon:o,formatValue:i=(e=>e),tooltipProps:a,popoverContentProps:c,...d},p)=>{let h=eD(p),[f,m]=u(d.value,d.defaultValue||0,n),[g,v]=l.useState(!1),{keyboardProps:y}=(0,Jn.v5)({onKeyDown:e=>{("Enter"===e.key||"Escape"===e.key)&&v(!1)}}),b=i(f||0),w=a?.isDisabled||d["aria-label"]?`${d["aria-label"]}, ${b}`:b.toString();return(0,gr.jsxs)(vD,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:(0,s.AK)("BaselineUI-IconSlider",e),"data-block-id":r,style:t,ref:h,children:[o?(0,gr.jsx)(o,{size:24,className:(0,yr.Kj)({color:"icon.primary"})}):null,(0,gr.jsxs)(AD,{type:"dialog",isOpen:g,onOpenChange:v,children:[(0,gr.jsx)(FD,{children:(0,gr.jsx)(aT,{text:d["aria-label"],size:"sm",variant:"inverse",includeArrow:!1,...a,children:(0,gr.jsx)(BD,{label:b,variant:"popover","aria-label":w,style:{fontVariantNumeric:"tabular-nums"}})})}),(0,gr.jsx)(QA,{placement:"bottom start",...c,className:(0,s.AK)(eT,c?.className),children:(0,gr.jsx)(qA,{size:"content","aria-label":w,children:(0,gr.jsx)(Jn.MT,{autoFocus:!0,children:(0,gr.jsx)(vD,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...y,children:(0,gr.jsx)(aA,{...d,onChange:e=>{m(e),n?.(e)},value:f})})})})})]})]})}));sT.displayName="IconSlider";var lT=uD({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),cT=uD({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),uT=uD({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),dT=uD({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]}),pT=l.forwardRef((({className:e,label:t,labelPosition:n="top",statusLabel:r,style:o,"data-block-id":i,"data-block-class":a,...c},u)=>{let d=l.useRef(null),p=(0,pr.l)(c),{inputProps:h,isPressed:f}=(0,Jn.h9)(c,p,d),{isFocusVisible:m,focusProps:g}=(0,Jn.Fx)(),{hoverProps:v,isHovered:y}=(0,Jn.XI)({isDisabled:c.isDisabled}),b=(0,s.mS)({"data-block-id":i,"data-block-class":a,"data-focused":m,"data-disabled":c.isDisabled,"data-focus-visible":m,"data-selected":p.isSelected,"data-readonly":c.isReadOnly,"data-hovered":y,"data-pressed":f}),w=(0,gr.jsx)("div",{className:(0,s.AK)(lT({isSelected:p.isSelected,isDisabled:!!c.isDisabled,isFocused:m,isReadOnly:!!c.isReadOnly}),"BaselineUI-Switch-Track"),children:(0,gr.jsx)("div",{className:(0,s.AK)(cT({isSelected:p.isSelected,isDisabled:c.isDisabled,isReadOnly:c.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return(0,gr.jsxs)("label",{...(0,Jn.dG)(b,v),className:(0,s.AK)(uT({labelPosition:n}),"BaselineUI-Switch",e),style:o,ref:u,children:[t?(0,gr.jsx)("span",{className:(0,s.AK)("bpklwad","BaselineUI-Switch-Label"),children:t}):null,(0,gr.jsx)(Jn.TX,{children:(0,gr.jsx)("input",{...(0,Jn.dG)(h,g),ref:d})}),r?(0,gr.jsxs)("div",{className:dT({labelPosition:n}),children:[(0,gr.jsx)("span",{className:(0,s.AK)("BaselineUI-Switch-Status-Label","bpklwa6"),children:p.isSelected?r.on:r.off}),w]}):w]})}));pT.displayName="Switch";var hT=uD({defaultClassName:"_19n40yy0",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3"},variant:{primary:"_19n40yy4",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_19n40yy7"},isDisabled:{true:"_19n40yy8"}},defaultVariants:{},compoundVariants:[]}),fT={sm:xr.W1,md:vr.W1M,lg:vr.W1M},mT=l.forwardRef((({className:e,size:t="md",variant:n="primary","data-block-id":r,"data-block-class":o,style:i,...a},c)=>{let u=l.useRef(null),d=(0,lr.c)(a),{inputProps:p,clearButtonProps:h}=(0,Jn.tJ)({...a,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},d,u),{focusProps:f,isFocusVisible:m,isFocused:g}=(0,Jn.Fx)({within:!0,isTextInput:!0}),v=fT[t],y="sm"===t?Ar.b0:wr.b0,b=(0,s.mS)({"data-block-id":r,"data-block-class":o,"data-focused":g,"data-disabled":a.isDisabled,"data-focus-visible":m});return(0,gr.jsxs)("div",{...b,className:(0,s.AK)(hT({size:t,isFocused:g,variant:n,hasText:!!d.value,isDisabled:a.isDisabled}),"BaselineUI-SearchInput",e),style:i,ref:c,children:[(0,gr.jsx)(v,{size:"sm"===t?20:24}),(0,gr.jsx)("input",{...(0,Jn.dG)(p,f),className:"_19n40yy9",ref:u}),""!==d.value&&(0,gr.jsx)(oA,{icon:y,...h,size:"sm"===t?"xs":"sm",variant:"secondary"})]})}));mT.displayName="SearchInput";var gT=({section:e,showSelectedIcon:t,state:n})=>{let{itemProps:r,groupProps:o,headingProps:i}=(0,Jn.x7)({heading:e.value?.title,"aria-label":e["aria-label"]});return(0,gr.jsxs)(gr.Fragment,{children:[e.key!==n.collection.getFirstKey()&&(0,gr.jsx)(mD,{elementType:"li"}),(0,gr.jsxs)("li",{...r,children:[e.value?.title?(0,gr.jsx)(Jn.TX,{children:(0,gr.jsx)("span",{...i,children:e.value.title})}):null,(0,gr.jsx)("ul",{...o,className:"xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b",children:[...e.childNodes].map((e=>((0,s.kG)("item"===e.type),(0,gr.jsx)(vT,{item:e,state:n,showSelectedIcon:t},e.key))))})]})]})};gT.displayName="MenuSection";var vT=({item:e,state:t,className:n,showSelectedIcon:r})=>{let o=l.useRef(null),i=(0,Jn.iX)({key:e.key},t,o),{isFocusVisible:a,focusProps:s}=(0,Jn.Fx)();return(0,gr.jsx)(yD,{item:e,liProps:(0,Jn.dG)(i.menuItemProps,s,{className:n}),...i,isFocusVisible:a,ref:o,description:e.value?.keyboardShortcut,descriptionProps:i.keyboardShortcutProps,_state:t,showSelectedIcon:r})};vT.displayName="MenuItem";var yT=l.forwardRef((({className:e,itemClassName:t,onContentKeyDown:n,...r},o)=>{let i=(0,fr.D)(r),a=l.useRef(null),{menuProps:c}=(0,Jn.H9)(r,i,a),{keyboardProps:u}=(0,Jn.v5)({onKeyDown:n});return(0,gr.jsx)("ul",{...(0,Jn.dG)(c,u),className:(0,s.AK)("xyd2ss1 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6l0 _1yep5z6kz _1yep5z6he _1yep5z6l3 _1yep5z6fs",e),ref:HP(a,o),children:[...i.collection].map((e=>"section"===e.type?(0,gr.jsx)(gT,{section:e,state:i,showSelectedIcon:"multiple"===r.selectionMode||"single"===r.selectionMode},e.key):(0,gr.jsx)(vT,{item:e,state:i,className:t,showSelectedIcon:"multiple"===r.selectionMode||"single"===r.selectionMode},e.key)))})}));yT.displayName="MenuContent";var bT=l.forwardRef((({defaultOpen:e,onOpenChange:t,isOpen:n,isDisabled:r,contentClassName:o,placement:i="bottom start",isNonModal:a,shouldFlip:c,shouldUpdatePosition:u,boundaryElement:d,crossOffset:p,offset:h,triggerLabel:f,renderTrigger:m=(({buttonProps:e,ref:t})=>(0,gr.jsx)(BD,{...e,variant:"popover",ref:t})),portalContainer:g,...v},y)=>{let b=l.useRef(null),w=zA(g),x=(0,or.W)({defaultOpen:e,isOpen:n,onOpenChange:t}),{menuTriggerProps:_,menuProps:S}=(0,Jn.u4)({isDisabled:r,type:"menu"},x,b),C=rD(),E=(0,l.useMemo)((()=>(0,Jn.dG)(_,{isDisabled:r,isSelected:x.isOpen,className:"BaselineUI-Menu-Trigger",label:"function"==typeof f?f(x.isOpen):f})),[_,r,x.isOpen,f]);return(0,l.useEffect)((()=>{!f&&!m&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.")}),[m,f]),(0,gr.jsxs)(gr.Fragment,{children:[m({buttonProps:E,ref:b}),x.isOpen?(0,gr.jsx)(XA,{triggerRef:b,state:x,placement:i,isNonModal:a,shouldFlip:c,shouldUpdatePosition:u,boundaryElement:d,crossOffset:p,offset:h||2,className:(0,s.AK)(eT,"BaselineUI-Menu-Popover"),portalContainer:w,children:(0,gr.jsx)(yT,{className:o,...S,...v,ref:y,autoFocus:x.focusStrategy||"first",children:C})}):null]})}));bT.displayName="Menu";var wT=uD({defaultClassName:"_13f0naj0",variantClassNames:{variant:{default:"_13f0naj1",inline:"_13f0naj2"},isHovered:{true:"_13f0naj3"},isFocusVisible:{true:"_13f0naj4"},isDisabled:{true:"_13f0naj5"},size:{sm:"_13f0naj6",md:"_13f0naj7",lg:"_13f0naj8"},type:{body:"_13f0naj9",label:"_13f0naja"},isActive:{true:"_13f0najb"}},defaultVariants:{},compoundVariants:[[{isActive:!0,isDisabled:!1},"_13f0najc"],[{type:"body",size:"sm"},"_13f0najd"],[{type:"body",size:"md"},"_13f0naje"],[{type:"body",size:"lg"},"_13f0najf"],[{type:"label",size:"sm"},"_13f0najg"],[{type:"label",size:"md"},"_13f0najh"],[{type:"label",size:"lg"},"_13f0naji"]]}),xT=l.forwardRef((({className:e,style:t,children:n,variant:r="default",size:o="md",elementType:i="a",type:a="body","data-block-id":c,"data-block-class":u,title:d,...p},h)=>{let f=l.useRef(null),{linkProps:m,isPressed:g}=(0,Jn.nB)({...p,elementType:p.onPress?"span":i},f),{isFocusVisible:v,isFocused:y,focusProps:b}=(0,Jn.Fx)(),{hoverProps:w,isHovered:x}=(0,Jn.XI)({isDisabled:p.isDisabled}),_=i,S=(0,s.mS)({"data-block-id":c,"data-block-class":u,"data-disabled":p.isDisabled,"data-focused":y,"data-pressed":g,"data-focus-visible":v,"data-hovered":x,title:d});return(0,gr.jsx)(_,{...(0,Jn.dG)(m,b,w,S),className:(0,s.AK)(wT({variant:r,isFocusVisible:v,isHovered:x,isDisabled:p.isDisabled,size:o,isActive:g,type:a}),"BaselineUI-Link",e),ref:HP(f,h),style:t,children:n})}));async function _T({items:e}){let t=e.filter((e=>"file"===e.kind)).map((async e=>((0,s.kG)("file"===e.kind),e.getFile())));return await Promise.all(t)}xT.displayName="Link";var ST=uD({defaultClassName:"_180w5ed0",variantClassNames:{variant:{default:"_180w5ed1",inline:"_180w5ed2"},hoveredOrFocusedOrActive:{true:"_180w5ed3"},disabled:{true:"_180w5ed4"}},defaultVariants:{},compoundVariants:[[{variant:"inline",hoveredOrFocusedOrActive:!0},"_180w5ed5"],[{variant:"default",hoveredOrFocusedOrActive:!0},"_180w5ed6"],[{variant:"default",disabled:!0},"_180w5ed7"],[{variant:"inline",disabled:!0},"_180w5ed8"]]}),CT=uD({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),ET=uD({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),kT=uD({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]}),zT=l.forwardRef((({className:e,label:t,description:n,icon:r,variant:o="default",...i},a)=>{let c=l.useRef(null),{inputProps:u,descriptionProps:d,labelProps:p}=function({isDisabled:e,onValueChange:t,onChange:n,name:r,"aria-describedby":o,"aria-label":i,accept:a,multiple:s}){let l=(0,Jn.Me)(),c=(0,Jn.Me)(),u=(0,Jn.Me)();return{inputProps:{type:"file",id:c,disabled:!!e,"aria-labelledby":i?void 0:l,"aria-describedby":o||u,"aria-label":i,onChange:e=>{let r=[...e.target.files||[]];t?.(r),n?.(e)},name:r,accept:a,multiple:s},labelProps:{htmlFor:c,id:l},descriptionProps:{id:u}}}(i),{dropProps:h}=(0,Jn.LW)({ref:c,onDrop:async({items:e})=>{let t=e.filter((e=>"file"===e.kind)).map((async e=>((0,s.kG)("file"===e.kind),e.getFile()))),n=await Promise.all(t);i.onValueChange?.(n)}}),{focusProps:f,isFocusVisible:m}=(0,Jn.Fx)(),{hoverProps:g,isHovered:v}=(0,Jn.XI)({isDisabled:i.isDisabled});return(0,gr.jsxs)("label",{...(0,Jn.dG)(h,g,p),className:(0,s.AK)(ST({variant:o,disabled:i.isDisabled,hoveredOrFocusedOrActive:v||m}),e),ref:HP(a,c),children:[(0,gr.jsx)(Jn.TX,{children:(0,gr.jsx)("input",{...(0,Jn.dG)(f,u)})}),r?(0,gr.jsx)(r,{size:20,className:ET({disabled:i.isDisabled})}):null,(0,gr.jsxs)("div",{children:[(0,gr.jsx)("div",{className:kT({disabled:i.isDisabled,hovered:v}),children:t}),n?(0,gr.jsx)("div",{...d,className:CT({disabled:i.isDisabled}),children:n}):null]})]})}));zT.displayName="FileUpload";var PT=uD({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),DT=uD({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]}),AT=l.forwardRef((({className:e,style:t,variant:n="active",showValue:r,description:o,errorMessage:i,"data-block-id":a,"data-block-class":l,...c},u)=>{let d=(0,Jn.Me)(),{labelProps:p,progressBarProps:h}=(0,Jn.D6)({...c,"aria-describedby":o?d:c["aria-describedby"]}),{minValue:f=0,maxValue:m=100,value:g=0,label:v}=c,y=(g-f)/(m-f),b=`${Math.round(100*y)}%`,w=(0,gr.jsx)("output",{className:DT({hasLabel:!!v}),children:h["aria-valuetext"]}),x="error"===n?i:o;return(0,gr.jsxs)("div",{...h,style:t,className:(0,s.AK)("_12vfhl40 z9nup81","BaselineUI-ProgressBar",e),"data-block-id":a,"data-block-class":l,ref:u,children:[v?(0,gr.jsxs)("div",{className:"_12vfhl41 z9nup82",children:[(0,gr.jsx)("label",{...p,className:"_12vfhl42",children:v}),r?w:null]}):null,(0,gr.jsxs)("div",{className:"_12vfhl45",children:[(0,gr.jsxs)("div",{className:"_12vfhl46 z9nup82",children:[(0,gr.jsx)("div",{className:"_12vfhl47",children:(0,gr.jsx)("div",{style:{width:b},className:PT({variant:n})})}),!v&&r?w:null]}),x?(0,gr.jsx)("div",{className:GD({hasError:"error"===n}),id:d,children:x}):null]})]})}));function TT({isReadOnly:e,validationState:t}){return e?wr.CP:"error"===t?wr.Rv:"warning"===t?wr.av:null}AT.displayName="ProgressBar";var IT=l.forwardRef((({className:e,validationState:t,variant:n="primary",style:r,labelPosition:o="top",inputStyle:i,inputClassName:a,"data-block-id":c,"data-block-class":u,...d},p)=>{let h=l.useRef(null),{inputProps:f,labelProps:m,descriptionProps:g,errorMessageProps:v,validationErrors:y}=(0,Jn.hR)({...d,validationState:t?"error"===t?"invalid":"valid":void 0},h),b=d.errorMessage||y.join(" "),w=tA({...d,errorMessage:b,descriptionProps:g,errorMessageProps:v,labelPosition:o});b&&(t="error");let{hoverProps:x,isHovered:_}=(0,Jn.XI)({isDisabled:d.isDisabled}),{isFocused:S,focusProps:C,isFocusVisible:E}=(0,Jn.Fx)(),k=TT({isReadOnly:d.isReadOnly,validationState:t}),z=(0,s.mS)({"data-readonly":d.isReadOnly,"data-disabled":d.isDisabled,"data-validation-state":t,"data-focused":S,"data-focus-visible":E});return(0,gr.jsxs)("div",{className:(0,s.AK)(JD({labelPosition:o}),"BaselineUI-TextInput",e),"data-block-id":c,"data-block-class":u,style:r,ref:p,children:[d.label||"start"===o&&w?(0,gr.jsxs)("div",{className:QD({labelPosition:o,hasMessage:!!w}),children:[(0,gr.jsx)("label",{...m,className:XD,children:d.label}),"start"===o&&w]}):null,(0,gr.jsxs)("div",{className:(0,s.AK)({[HD]:d.isDisabled}),children:[(0,gr.jsxs)("div",{...x,className:eA({validationState:t,isHovered:_,isFocused:S,variant:n,isReadOnly:!!d.isReadOnly,isDisabled:!!d.isDisabled}),children:[(0,gr.jsx)("input",{...(0,Jn.dG)(f,C,z),className:(0,s.AK)(WD({isDisabled:d.isDisabled,labelPosition:o}),"BaselineUI-TextInput-Input",a),style:i,ref:h}),k?(0,gr.jsx)(k,{className:YD({validationState:t,isReadOnly:d.isReadOnly}),size:16}):null]}),"top"===o&&w]})]})}));IT.displayName="TextInput";var MT=({value:e,...t})=>{let n=(0,Jn.Ux)(t);return(0,gr.jsx)(gr.Fragment,{children:n.format(e)})};MT.displayName="NumberFormat";var RT=uD({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup83"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0,isReadOnly:!1},"_9b1tml7"],[{isSelected:!0,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml8"],[{isSelected:!1,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml9"],[{isSelected:!0,isDisabled:!0},"_9b1tmla"],[{isSelected:!0,isReadOnly:!0},"_9b1tmlb"]]}),FT=uD({defaultClassName:"_9b1tmlf",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_9b1tmlk"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"_9b1tmll"],[{isSelected:!0,isDisabled:!0},"_9b1tmlm"],[{isSelected:!1,isDisabled:!0},"_9b1tmln"]]}),NT=uD({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]}),OT=l.forwardRef((({className:e,count:t,style:n,size:r="md",icon:o,"data-block-id":i,"data-block-class":a,...c},u)=>{let d={isRequired:!1},p=o||("md"===r?xr.KM:wr.KM);!c["aria-label"]&&!c["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let h=l.useRef(null),f=(0,pr.l)({...c,...d}),{inputProps:m,isPressed:g,isDisabled:v,isReadOnly:y,isSelected:b}=(0,Jn.h9)({...c,...d},f,h),{focusProps:w,isFocused:x,isFocusVisible:_}=(0,Jn.Fx)(),{hoverProps:S,isHovered:C}=(0,Jn.XI)({}),E=(0,s.mS)({"data-block-id":i,"data-block-class":a,"data-focused":x,"data-focus-visible":_,"data-disabled":v,"data-hovered":C,"data-pressed":g,"data-selected":b});return(0,gr.jsxs)("label",{ref:u,style:n,className:(0,s.AK)("_1yep5z6i3 _1yep5z6i4 _1yep5z6i5","BaselineUI-Reaction",e),...E,children:[(0,gr.jsx)(Jn.TX,{children:(0,gr.jsx)("input",{...m,...w,ref:h})}),(0,gr.jsxs)("div",{...S,className:RT({isSelected:b,isFocusVisible:_,isHovered:C,isReadOnly:y,isDisabled:v}),children:[(0,gr.jsx)("div",{className:NT({isDisabled:v,isReadOnly:y}),children:(0,gr.jsx)(p,{size:"md"===r?20:16})}),(0,gr.jsx)("div",{className:FT({isSelected:f.isSelected,isDisabled:v,isReadOnly:y,size:r}),children:(0,gr.jsx)(MT,{value:t})})]})]})}));OT.displayName="Reaction";var jT={sm:16,md:20},LT={sm:[wr.gq,wr.rx],md:[xr.gq,xr.rx]},BT=l.forwardRef((({className:e,style:t,size:n="md",variant:r="active","data-block-id":o,"data-block-class":i,...a},l)=>{let{labelProps:c,progressBarProps:u}=(0,Jn.D6)({...a,isIndeterminate:!0}),d=jT[n],p=d/2-2,h=2*p*Math.PI,f=LT[n]["success"===r?0:1];return(0,gr.jsxs)("div",{className:(0,s.AK)("_1azy5681 z9nup82","BaselineUI-ProgressSpinner",e),ref:l,style:{...zr({"var(--_1azy5680)":`${h}px`}),...t},"data-block-id":o,"data-block-class":i,children:[(0,gr.jsxs)("div",{...u,className:"_1azy5682",children:[("active"===r||"inactive"===r)&&(0,gr.jsxs)("svg",{height:d,width:d,viewBox:`0 0 ${d} ${d}`,children:[(0,gr.jsx)("circle",{role:"presentation",className:"_1azy5686",cx:d/2,cy:d/2,r:p}),"active"===r&&(0,gr.jsx)("circle",{role:"presentation",className:"_1azy5685",cx:d/2,cy:d/2,r:p})]}),"success"===r&&(0,gr.jsx)(f,{className:"_1azy5687",size:d}),"error"===r&&(0,gr.jsx)(f,{className:"_1azy5688",size:d})]}),a.label?(0,gr.jsx)("span",{...c,className:"_1azy5689",children:a.label}):null]})}));BT.displayName="ProgressSpinner";var KT=uD({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{sm:"_5uw3kp5",md:"_5uw3kp6",lg:"_5uw3kp7"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0},"_5uw3kp8"],[{isSelected:!0,isDisabled:!0},"_5uw3kp9"]]}),VT={sm:16,md:20,lg:24},HT=l.forwardRef((({className:e,style:t,iconStart:n,size:r="md",elementType:o="button",...i},a)=>{let l=(0,pr.l)(i),{buttonProps:c,isPressed:u,ref:d}=OD(i,l),{hoverProps:p,isHovered:h}=(0,Jn.XI)({isDisabled:i.isDisabled}),{isFocusVisible:f,isFocused:m,focusProps:g}=(0,Jn.Fx)(),v=(0,s.mS)({"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"],"data-focused":m,"data-focus-visible":f,"data-disabled":i.isDisabled,"data-hovered":h,"data-pressed":u,"data-selected":l.isSelected});return(0,gr.jsxs)(o,{...(0,Jn.dG)(c,p,g,v),className:(0,s.AK)(KT({isHovered:h,isFocusVisible:f,isSelected:l.isSelected,size:r,isDisabled:i.isDisabled}),"BaselineUI-ToggleButton",e),style:t,ref:HP(d,a),children:[n?(0,gr.jsx)(n,{size:VT[r]}):null,i.label]})}));HT.displayName="ToggleButton";var $T=uD({defaultClassName:"_16vugd0e",variantClassNames:{isDisabled:{true:"_16vugd0f"}},defaultVariants:{},compoundVariants:[]}),UT=uD({defaultClassName:"_16vugd01 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{labelPosition:{end:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6ut _1yep5z6uu _1yep5z6uv",start:"_1yep5z613q _1yep5z613r _1yep5z613s _1yep5z6152 _1yep5z6153 _1yep5z6154"}},defaultVariants:{},compoundVariants:[]}),ZT=uD({defaultClassName:"_16vugd05",variantClassNames:{isIndeterminate:{true:"_16vugd04"},isSelected:{true:"_16vugd04"},isFocusVisible:{true:"_16vugd08"},isHovered:{true:"_16vugd09"},isDisabled:{true:"_16vugd0a"},isReadOnly:{true:"_16vugd0b"},hasError:{true:"_16vugd0c"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_16vugd0d"]]}),qT=l.forwardRef((({className:e,style:t,label:n,labelPosition:r="end","data-block-id":o,"data-block-class":i,...a},c)=>{let u=l.useRef(null),d=(0,pr.l)(a),{isFocusVisible:p,isFocused:h,focusProps:f}=(0,Jn.Fx)(),{inputProps:m,isPressed:g,isDisabled:v,isSelected:y,isReadOnly:b}=(0,Jn.O)({...a,children:n},d,u),{hoverProps:w,isHovered:x}=(0,Jn.XI)({isDisabled:v}),_=(0,s.mS)({"data-disabled":v,"data-readonly":b,"data-hovered":x,"data-selected":y,"data-pressed":g,"data-indeterminate":a.isIndeterminate,"data-invalid":a.isInvalid,"data-focus-visible":p,"data-focused":h,"data-block-id":o,"data-block-class":i});return(0,gr.jsxs)("label",{..._,className:(0,s.AK)(UT({labelPosition:r}),"BaselineUI-Checkbox",e),style:t,ref:c,children:[(0,gr.jsx)(Jn.TX,{children:(0,gr.jsx)("input",{...(0,Jn.dG)(m,f),ref:u})}),(0,gr.jsxs)("div",{...w,className:ZT({isSelected:y&&!a.isIndeterminate,isIndeterminate:a.isIndeterminate,isFocusVisible:p,isDisabled:v,isReadOnly:b,hasError:a.isInvalid,isHovered:x}),children:[y&&!a.isIndeterminate?(0,gr.jsx)(Ar.KM,{size:12}):null,a.isIndeterminate?(0,gr.jsx)(Ar.V_,{size:12}):null]}),n?(0,gr.jsx)("span",{className:$T({isDisabled:v}),children:n}):null]})}));qT.displayName="Checkbox";var GT={ar:{goToPage:"انتقال إلى صفحة",nextPage:"الصفحة التالية",pageXofY:"صفحة {arg0} من {arg1}",prevPage:"الصفحة السابقة"},cs:{goToPage:"Přejít na stranu",nextPage:"Další stránka",pageXofY:"Strana {arg0} z {arg1}",prevPage:"Předchozí strana"},cy:{goToPage:"Mynd i Dudalen",nextPage:"Tudalen Nesaf",pageXofY:"Tudalen {arg0} o {arg1}",prevPage:"Tudalen Blaenorol"},da:{goToPage:"Gå til side",nextPage:"Næste side",pageXofY:"Side {arg0} af {arg1}",prevPage:"Forrige side"},de:{goToPage:"Zu Seite wechseln",nextPage:"Nächste Seite",pageXofY:"Seite {arg0} von {arg1}",prevPage:"Vorherige Seite"},el:{goToPage:"Μετάβαση στη σελίδα",nextPage:"Επόμενη σελίδα",pageXofY:"Σελίδα {arg0} από {arg1}",prevPage:"Προηγούμενη σελίδα"},"en-GB":{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},en:{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},es:{goToPage:"Ir a la página",nextPage:"Página siguiente",pageXofY:"Página {arg0} de {arg1}",prevPage:"Página anterior"},fi:{goToPage:"Mene sivulle",nextPage:"Seuraava sivu",pageXofY:"Sivu {arg0} / {arg1}",prevPage:"Edellinen sivu"},"fr-CA":{goToPage:"Aller à la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page précédente"},fr:{goToPage:"Aller à la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page précédente"},he:{goToPage:"מעבר לעמוד",nextPage:"העמוד הבא",pageXofY:"עמוד {arg0} מתוך {arg1}",prevPage:"העמוד הקודם"},hr:{goToPage:"Idi na stranicu",nextPage:"Slijedeća stranica",pageXofY:"Stranica {arg0} od {arg1}",prevPage:"Prethodna stranica"},id:{goToPage:"Buka halaman",nextPage:"Halaman Berikutnya",pageXofY:"Halaman {arg0} dari {arg1}",prevPage:"Halaman Sebelumnya"},it:{goToPage:"Vai a pagina",nextPage:"Pagina successiva",pageXofY:"Pagina {arg0} di {arg1}",prevPage:"Pagina precedente"},ja:{goToPage:"ページに移動",nextPage:"次のページ",pageXofY:"ページ {arg0}/{arg1}",prevPage:"前のページ"},ko:{goToPage:"페이지로 이동",nextPage:"다음 페이지",pageXofY:"{arg0}/{arg1} 페이지",prevPage:"이전 페이지"},ms:{goToPage:"Pergi ke Halaman",nextPage:"Halaman Seterusnya",pageXofY:"Halaman {arg0} daripada {arg1}",prevPage:"Halaman Sebelumnya"},"nb-NO":{goToPage:"Gå til side",nextPage:"Neste side",pageXofY:"Side {arg0} av {arg1}",prevPage:"Forrige side"},nl:{goToPage:"Ga naar pagina",nextPage:"Volgende pagina",pageXofY:"Pagina {arg0} van {arg1}",prevPage:"Vorige pagina"},pl:{goToPage:"Przejdź do strony",nextPage:"Następna strona",pageXofY:"Strona {arg0} z {arg1}",prevPage:"Poprzednia strona"},"pt-PT":{goToPage:"Ir para página",nextPage:"Página seguinte",pageXofY:"Página {arg0} de {arg1}",prevPage:"Página anterior"},pt:{goToPage:"Ir à Página",nextPage:"Página Seguinte",pageXofY:"Página {arg0} de {arg1}",prevPage:"Página Anterior"},ru:{goToPage:"Перейти к странице",nextPage:"Следующая страница",pageXofY:"Страница {arg0} из {arg1}",prevPage:"Предыдущая страница"},sk:{goToPage:"Ísť na stranu",nextPage:"Dalšia strana",pageXofY:"Strana {arg0} z {arg1}",prevPage:"Predchádzajúca strana"},sl:{goToPage:"Pojdi na stran",nextPage:"Naslednja stran",pageXofY:"Stran {arg0} od {arg1}",prevPage:"Prejšnja stran"},sv:{goToPage:"Gå till sida",nextPage:"Nästa sida",pageXofY:"Sida {arg0} av {arg1}",prevPage:"Föregående sida"},th:{goToPage:"ไปที่หน้า",nextPage:"หน้าถัดไป",pageXofY:"หน้า {arg0} จาก {arg1}",prevPage:"หน้าก่อนหน้า"},tr:{goToPage:"Sayfaya Git",nextPage:"Sonraki Sayfa",pageXofY:"Sayfa {arg0}/{arg1}",prevPage:"Önceki Sayfa"},uk:{goToPage:"Перейти на сторінку",nextPage:"Наступна сторінка",pageXofY:"Сторінка {arg0} з {arg1}",prevPage:"Попередня сторінка"},"zh-Hans":{goToPage:"前往页面",nextPage:"下一页",pageXofY:"第 {arg0}/{arg1} 页",prevPage:"上一页"},"zh-Hant":{goToPage:"到此頁",nextPage:"下一頁",pageXofY:"第{arg0}頁，共{arg1}頁",prevPage:"上一頁"}},WT=uD({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),YT=uD({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6fs _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6vt _1yep5z6vu _1yep5z6vv _1yep5z6wh _1yep5z6wi _1yep5z6wj _1yep5z6x5 _1yep5z6x6 _1yep5z6x7 _1yep5z6xt _1yep5z6xu _1yep5z6xv _1yep5z6z6",sm:"_1nsi9h12 _1yep5z6z9",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6yi _1yep5z616k _1yep5z616i _1yep5z6120",pinned:"_1yep5z6166"}},defaultVariants:{},compoundVariants:[]}),XT=uD({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),QT={style:"decimal"},JT={xs:[Ar.BN,Ar.QU],sm:[wr.BN,wr.QU],md:[xr.BN,xr.QU],lg:[vr.BNd,vr.QUb]},eI=l.forwardRef((({className:e,style:t,minValue:n=1,defaultValue:r=1,incrementAriaLabel:o,decrementAriaLabel:i,"aria-label":a,size:c="md",variant:u="floating",hideActions:d,isDisabled:p,...h},f)=>{let{locale:m}=(0,Jn.bU)(),g=bA(GT),v={...h,formatOptions:QT,minValue:n,incrementAriaLabel:o||g.formatMessage("nextPage"),decrementAriaLabel:i||g.formatMessage("prevPage"),defaultValue:r,"aria-label":a||g.formatMessage("goToPage")},y=l.useRef(null),b=(0,ir.j)({...v,locale:m}),{inputProps:w,decrementButtonProps:x,incrementButtonProps:_,groupProps:S}=(0,Jn.IL)({...v,onKeyDown:e=>{"Enter"===e.key&&y.current?.blur(),h.onKeyDown?.(e)},isDisabled:p},b,y),{hoverProps:C,isHovered:E}=(0,Jn.XI)({}),{focusProps:k,isFocused:z,isFocusVisible:P}=(0,Jn.Fx)(),D="floating"===u,[A,T]=JT[c],I=(0,s.mS)({"data-focus-visible":P,"data-focused":z,"data-hovered":E,"data-block-id":h["data-block-id"],"data-block-class":h["data-block-class"]}),M="keyboard"===(0,Tr.Kf)();return(0,gr.jsxs)("div",{...(0,Jn.dG)(S,C,I),className:(0,s.AK)(YT({size:c,variant:u}),"BaselineUI-Pagination",e),style:t,ref:f,children:[d?null:(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsx)(oA,{icon:A,...x,elementType:"div",size:c,style:{height:"100%",...D&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",UNSAFE_NON_INTERACTIVE:M,isDisabled:p||x.isDisabled}),"floating"===u&&(0,gr.jsx)(mD,{orientation:"vertical"})]}),(0,gr.jsxs)("div",{className:WT({isFocused:z,variant:u,size:c}),"aria-label":g.formatMessage("pageXofY",{arg0:w.value,arg1:b.maxValue}),children:[(0,gr.jsx)("input",{...(0,Jn.dG)(w,k),ref:y,className:(0,s.AK)("BaselineUI-Pagination-Input","_1nsi9h1f _1yep5z6l6 _1yep5z6ky _1yep5z6eu"),style:{width:`${w.value?.toString().length||1}ch`}}),(0,gr.jsxs)("span",{className:XT({isDisabled:p}),children:["/ ",(0,gr.jsx)(MT,{value:b.maxValue})]})]}),d?null:(0,gr.jsxs)(gr.Fragment,{children:["floating"===u&&(0,gr.jsx)(mD,{orientation:"vertical"}),(0,gr.jsx)(oA,{icon:T,..._,elementType:"div",size:c,style:{height:"100%",...D&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",UNSAFE_NON_INTERACTIVE:M,isDisabled:p||_.isDisabled})]})]})}));eI.displayName="Pagination";var tI=({date:e,...t})=>{let n=(0,Jn.aQ)(t);return(0,gr.jsx)(gr.Fragment,{children:n.format(e)})};tI.displayName="DateFormat";var nI=uD({defaultClassName:"_1f789qj1",variantClassNames:{isFocusVisible:{true:"_1f789qj2"},variant:{neutral:"_1f789qj3",red:"_1f789qj4",green:"_1f789qj5",blue:"_1f789qj6","high-contrast":"_1f789qj7"},isDisabled:{true:"_1f789qj8"},allowsRemoving:{true:"_1f789qj9"},isSelected:{true:"_1f789qja"},allowsSelection:{true:"_1f789qjb"},isHovered:{true:"_1f789qjc"}},defaultVariants:{},compoundVariants:[[{allowsSelection:!0,isHovered:!0,variant:"neutral"},"_1f789qjd"],[{allowsSelection:!0,isHovered:!0,variant:"red"},"_1f789qje"],[{allowsSelection:!0,isHovered:!0,variant:"blue"},"_1f789qjf"],[{allowsSelection:!0,isHovered:!0,variant:"green"},"_1f789qjg"],[{allowsSelection:!0,isHovered:!0,variant:"high-contrast"},"_1f789qjh"],[{allowsSelection:!0,isSelected:!0,isHovered:!0},"_1f789qji"]]}),rI=uD({defaultClassName:"_1f789qjk",variantClassNames:{variant:{neutral:"_1f789qjl",red:"_1f789qjm",green:"_1f789qjn",blue:"_1f789qjo","high-contrast":"_1f789qjp"},isHovered:{true:"_1f789qjq"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,variant:"neutral"},"_1f789qjr"],[{isHovered:!0,variant:"red"},"_1f789qjs"],[{isHovered:!0,variant:"blue"},"_1f789qjt"],[{isHovered:!0,variant:"green"},"_1f789qju"],[{isHovered:!0,variant:"high-contrast"},"_1f789qjv"]]}),oI=({item:e,state:t,variant:n="neutral"})=>{let r=l.useRef(null),{focusProps:o,isFocusVisible:i}=(0,Jn.Fx)({within:!0}),{rowProps:a,gridCellProps:c,removeButtonProps:u,allowsRemoving:d,isDisabled:p,isSelected:h,allowsSelection:f}=(0,Jn.E6)({item:e},t,r),m=l.useRef(null),{buttonProps:g}=(0,Jn.UW)(u,m),{hoverProps:v,isHovered:y}=(0,Jn.XI)({isDisabled:p}),{hoverProps:b,isHovered:w}=(0,Jn.XI)({isDisabled:p}),x=e.value?.icon,_=e.value?.data?.variant??n;return(0,gr.jsx)("div",{...(0,Jn.dG)(a,o,b),ref:r,className:(0,s.AK)(nI({isFocusVisible:i,variant:_,isDisabled:p,allowsRemoving:d,isSelected:h,allowsSelection:f,isHovered:w}),"BaselineUI-Tag"),children:(0,gr.jsxs)("div",{...c,className:"_1f789qjj",children:[h?(0,gr.jsx)(wr.KM,{size:16}):null,!h&&x?(0,gr.jsx)(x,{size:16}):null,e.rendered,d?(0,gr.jsx)("button",{...(0,Jn.dG)(g,v),className:rI({variant:_,isHovered:y}),children:(0,gr.jsx)(Ar.b0,{})}):null]})})},iI=l.forwardRef((({className:e,style:t,"data-block-id":n,"data-block-class":r,items:o,...i},a)=>{let c=(0,l.useMemo)((()=>o.map((e=>({...e,data:{variant:e.variant}})))),[o]),u=rD(),d=l.useRef(null),p=(0,rr.n_)({...i,items:c,children:u}),{gridProps:h}=(0,Jn.Hb)(i,p,d);return(0,gr.jsx)("div",{...h,className:(0,s.AK)("_1f789qj0","BaselineUI-TagGroup",e),style:t,"data-block-id":n,"data-block-class":r,ref:HP(a,d),children:[...p.collection].map((e=>(0,gr.jsx)(oI,{state:p,item:e,variant:i.variant},e.key)))})}));iI.displayName="TagGroup";var aI=uD({defaultClassName:"_1kvz17db _1yep5z6ki _1yep5z6kk",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),sI=uD({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ki _1yep5z6kj",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),lI=uD({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6ki _1yep5z6kl",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6ft",false:"_1yep5z6fu"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),cI=uD({defaultClassName:"_1kvz17d7 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]}),uI=l.forwardRef((({children:e,className:t,style:n},r)=>{let{headers:o}=(0,l.useContext)(dI),{disabledKeys:i}=(0,l.useContext)(dI),{keyboardProps:a}=(0,Jn.v5)({onKeyDown:e=>{let t=VP(e.target),n=[...o?.keys()||[]].findIndex((e=>o?.get(e)?.current===t?.activeElement)),r=o?.get(n||0),a=o?.size||0,s=e=>{let t=o.get(e-1<0?a-1:e-1);i?.has(t?.current?.getAttribute("data-key")||"")?s(e-1):t?.current?.focus()},l=e=>{let t=o.get((e+1)%a);i?.has(t?.current?.getAttribute("data-key")||"")?l(e+1):t?.current?.focus()};if(r)switch(e.key){case"Home":e.preventDefault(),l(-1);break;case"End":e.preventDefault(),s(a);break;case"ArrowDown":e.preventDefault(),l(n);break;case"ArrowUp":e.preventDefault(),s(n);break;default:e.continuePropagation()}}});return(0,gr.jsx)("div",{...a,style:n,className:(0,s.AK)("_1yep5z6kv",t),ref:r,children:l.Children.map(e,((e,t)=>l.cloneElement(e,{index:t})))})}));uI.displayName="AccordionBase";var dI=l.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),pI=l.forwardRef((({children:e,disabledKeys:t,defaultExpandedKeys:n=new Set,expandedKeys:r,expansionMode:o="multiple",onChange:i,className:a,style:s},c)=>{let[u,d]=l.useState(n),p=l.useRef(new Map).current,[h,f]=l.useState(o);(0,l.useEffect)((()=>{f(h)}),[h]),(0,l.useEffect)((()=>{i?.(u)}),[u,i]);let m=(0,l.useMemo)((()=>({expandedKeys:r||u,setExpandedKeys:r?()=>{}:d,disabledKeys:t,headers:p,expansionMode:h})),[r,u,t,p,h]);return(0,gr.jsx)(dI.Provider,{value:m,children:(0,gr.jsx)(Jn.MT,{children:(0,gr.jsx)(uI,{className:a,style:s,ref:c,children:e})})})}));pI.displayName="Accordion";var hI=l.forwardRef((({title:e,actions:t,controlId:n,value:r,id:o,index:i,subLabel:a,showActionsOnTriggerOnly:c},u)=>{let d=l.useRef(null),{expandedKeys:p,setExpandedKeys:h,expansionMode:f,disabledKeys:m,headers:g}=(0,l.useContext)(dI),v=m?.has(r),y=(0,Jn.bO)();(0,s.kG)(y);let{focusNext:b,focusPrevious:w}=y,{keyboardProps:x}=(0,Jn.v5)({onKeyDown:e=>{"ArrowRight"===e.key?b({wrap:!0}):"ArrowLeft"===e.key?w({wrap:!0}):e.continuePropagation()},isDisabled:v});(0,l.useEffect)((()=>{(0,s.kG)("number"==typeof i,"AccordionItem must have an index"),g?.set(i,d)}),[i,g]);let _=()=>{h((e=>{let t=new Set(e);return t.has(r)?t.delete(r):("single"===f&&t.clear(),t.add(r)),t}))},{buttonProps:S}=(0,Jn.UW)({"aria-expanded":p.has(r),"aria-controls":n,onPress:_,isDisabled:v},d),{pressProps:C}=(0,Jn.r7)({onPress:_,isDisabled:v}),{focusProps:E,isFocusVisible:k}=(0,Jn.Fx)(),{hoverProps:z,isHovered:P}=(0,Jn.XI)({isDisabled:v}),{focusProps:D,isFocusVisible:A}=(0,Jn.Fx)({within:!0}),T=p.has(r);return(0,gr.jsxs)("h3",{...(0,Jn.dG)(x,C,z,D),className:lI({isFocusVisible:k,isHovered:P,isDisabled:v}),ref:u,children:[(0,gr.jsxs)("div",{className:cI({isDisabled:!!v}),children:[(0,gr.jsx)(br.XC,{className:sI({isExpanded:T}),size:8}),(0,gr.jsx)("button",{...(0,Jn.dG)(S,E),id:o,"data-key":r,className:"_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",ref:d,children:e})]}),t?.length?(0,gr.jsx)("div",{"data-testid":"action-buttons",className:aI({showActionsOnTriggerOnly:c,isTriggered:A||P}),children:t.map(((e,t)=>(0,gr.jsx)(oA,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:v,...e},t)))}):null,a?(0,gr.jsx)("div",{className:"_1yep5z6ev _1yep5z6dy",children:a}):null]})}));hI.displayName="AccordionHeader";var fI=l.forwardRef((({title:e,actions:t,children:n,value:r,index:o,subLabel:i,style:a,className:s,showActionsOnTriggerOnly:c},u)=>{let d=(0,Jn.Me)(),p=(0,Jn.Me)(),{expandedKeys:h}=(0,l.useContext)(dI),f=l.useRef(null),m=h.has(r),g=dA(),v=it(),y=Tn(m?[r]:[],{from:!g&&!v&&{height:0,opacity:0},enter:()=>async e=>{await e({height:f.current?.scrollHeight,opacity:1})},leave:{height:0,opacity:0},keys:e=>e.toString()});return(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsx)(Jn.MT,{children:(0,gr.jsx)(hI,{value:r,actions:t,id:p,title:e,controlId:d,ref:u,index:o,subLabel:i,showActionsOnTriggerOnly:c})}),y((e=>(0,gr.jsx)(Qn.div,{role:"region","aria-labelledby":p,id:d,style:{...e,overflow:"hidden"},children:(0,gr.jsx)("div",{ref:f,className:s,style:a,children:n})})))]})}));fI.displayName="AccordionItem";var mI=l.forwardRef((({variant:e,isOpen:t,selectedIcon:n,validationState:r="valid",valueProps:o,label:i,...a},c)=>{let u=l.useRef(null),{buttonProps:d,isPressed:p}=(0,Jn.UW)({...a,isDisabled:a.isDisabled||a.isReadOnly},u),{hoverProps:h,isHovered:f}=(0,Jn.XI)({isDisabled:a.isDisabled}),{focusProps:m,isFocused:g,isFocusVisible:v}=(0,Jn.Fx)(),y=TT({isReadOnly:a.isReadOnly,validationState:r});a.isReadOnly&&(d.disabled=!1);let b=(0,s.mS)({"data-disabled":a.isDisabled,"data-readonly":a.isReadOnly,"data-focused":g,"data-focus-visible":v,"data-hovered":f,"data-pressed":p,"data-open":t});return(0,gr.jsxs)("button",{...(0,Jn.dG)(d,h,m,b),ref:HP(c,u),className:(0,s.AK)(tT({isFocused:v,isDisabled:a.isDisabled}),eA({variant:e,isHovered:f,isFocused:v,validationState:r,isDisabled:!!a.isDisabled,isReadOnly:a.isReadOnly}),"BaselineUI-Select-Button"),children:[(0,gr.jsxs)("span",{className:"_1mdhlqv5 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69i _1yep5z69j _1yep5z69k",children:[n?(0,gr.jsx)(n,{size:24}):null,(0,gr.jsx)("span",{...o,children:i})]}),y?(0,gr.jsx)("span",{"aria-hidden":!0,className:(0,s.AK)(YD({validationState:r,isReadOnly:!!a.isReadOnly}),"_1yep5z66x _1yep5z66y _1yep5z66z"),children:(0,gr.jsx)(y,{size:16})}):null,(0,gr.jsx)("span",{"aria-hidden":!0,children:(0,gr.jsx)(br.v4,{size:8,className:JA({isOpen:t})})})]})}));mI.displayName="SelectButton";var gI=l.createContext({state:null,popoverAnchorRef:null}),vI=l.forwardRef((({className:e,style:t,labelPosition:n="top",variant:r="primary","data-block-id":o,"data-block-class":i,optionStyle:a,optionClassName:c,placement:u="bottom start",state:d,renderTrigger:p=(({buttonProps:e,selectedValue:t,valueProps:n,isOpen:o,ref:i})=>{let a=t&&"icon"in t&&t.icon;return(0,gr.jsx)(mI,{...e,isOpen:o,isReadOnly:h.isReadOnly,ref:i,variant:r,validationState:h.validationState,selectedIcon:a||void 0,label:t?"label"in t&&t?.label:h.placeholder,valueProps:n})}),...h},f)=>{let{popoverAnchorRef:m}=(0,l.useContext)(gI),g=l.useRef(null),v=zA(h.portalContainer),{labelProps:y,triggerProps:b,valueProps:w,menuProps:x,descriptionProps:_,errorMessageProps:S}=(0,Jn.L7)({...h,validationState:"error"===h.validationState?"invalid":"valid"},d,g),C=tA({...h,descriptionProps:_,errorMessageProps:S,labelPosition:n}),E=d.selectedItem?.value??null;return(0,gr.jsxs)(SD.Provider,{value:d,children:[(0,gr.jsxs)("div",{style:t,className:(0,s.AK)(JD({labelPosition:n}),"BaselineUI-Select",e),"data-block-id":o,"data-block-class":i,ref:f,children:[h.label||C?(0,gr.jsxs)("div",{className:QD({labelPosition:n,hasMessage:!!C}),children:[h.label?(0,gr.jsx)("div",{...y,className:(0,s.AK)(XD,"BaselineUI-Select-Label"),children:h.label}):null,"start"===n&&C]}):null,(0,gr.jsx)(Jn.MG,{state:d,triggerRef:g,isDisabled:h.isDisabled,label:h.label,name:h.name}),p({buttonProps:b,selectedValue:E,valueProps:w,isOpen:d.isOpen,ref:g}),"top"===n&&C]}),d.isOpen?(0,gr.jsx)(XA,{placement:u,portalContainer:v,offset:h.offset||2,state:d,triggerRef:m||g,style:t,className:(0,s.AK)(eT,"BaselineUI-Select-Popover"),...h,children:(0,gr.jsx)(kD,{...x,label:h.label,items:h.items,showSelectedIcon:h.showSelectedIcon,className:nT,optionStyle:a,optionClassName:c})}):null]})}));vI.displayName="SelectCore";var yI=l.forwardRef(((e,t)=>{let n=rD(),r=(0,cr.d)({...e,validationState:"error"===e.validationState?"invalid":"valid",children:n});return(0,gr.jsx)(vI,{...e,ref:t,state:r})}));yI.displayName="SelectStandalone";var bI=l.forwardRef(((e,t)=>{let{state:n}=(0,l.useContext)(gI);return(0,l.useEffect)((()=>{(0,s.kG)(n||e.items,"Select: A `state` that can be passed via context or `items` are required.")}),[e.items,n]),n?(0,gr.jsx)(vI,{state:n,...e,ref:t}):(0,gr.jsx)(yI,{...e,ref:t})}));bI.displayName="Select";var wI=l.forwardRef((({className:e,style:t,variant:n,"data-block-id":r,icon:o,tooltipProps:i,...a},c)=>{let u=l.useRef(null),d=(0,l.useCallback)((({buttonProps:e,selectedValue:t,valueProps:r,isOpen:o,ref:s})=>{let l=t&&"icon"in t&&t.icon;return(0,gr.jsx)(aT,{variant:"inverse",size:"sm",includeArrow:!1,text:a["aria-label"],offset:4,...i,children:(0,gr.jsx)(mI,{...e,isOpen:o,isReadOnly:a.isReadOnly,ref:s,variant:n,validationState:a.validationState,selectedIcon:l||void 0,label:t?"label"in t&&t?.label:a.placeholder,valueProps:r})})}),[a,i,n]);return(0,gr.jsxs)(vD,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:(0,s.AK)("BaselineUI-IconSelect",e),"data-block-id":r,style:t,ref:HP(c,u),children:[o?(0,gr.jsx)(o,{size:24,className:(0,yr.Kj)({color:"icon.primary",display:"flex",flexShrink:0})}):null,(0,gr.jsx)(bI,{...a,renderTrigger:d})]})}));wI.displayName="IconSelect";var xI=uD({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),_I={sm:wr.fM,md:vr.fMw},SI=l.forwardRef((({className:e,style:t,size:n="md",icon:r=_I[n],name:o,imgSrc:i,showInitials:a,isDisabled:l,hasNotifications:c,imgLoading:u,"data-block-id":d,"data-block-class":p},h)=>{let{imgProps:f}=uA({src:i,alt:o}),m=o?.split(" ").map((e=>e[0])).join("");return(0,gr.jsxs)("span",{className:(0,s.AK)(xI({size:n,isDisabled:l}),"BaselineUI-Avatar",e),"data-disabled":l,ref:h,style:t,"aria-disabled":l,"data-block-id":d,"data-block-class":p,children:[i?(0,gr.jsx)("img",{...f,loading:u,className:"_1017q4c4"}):null,!a&&!i&&(0,gr.jsx)(r,{size:"sm"===n?16:24}),a&&!i?"sm"===n?m[0]:m:null,c?(0,gr.jsx)("div",{"data-testid":"notification",className:"_1017q4c5"}):null]})}));SI.displayName="Avatar";var CI=uD({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ki _1yep5z6kl _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z6105"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6109"},variant:{primary:"_1x62fhbb _1yep5z6z6",ghost:"_1yep5z6z9"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61lg"],[{variant:"primary",isSelected:!0},"_1yep5z61me"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61lr"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:!0},"_1yep5z61mf"]]}),EI=uD({defaultClassName:"_1x62fhb3 _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6ut _1yep5z6uu _1yep5z6uv"}},defaultVariants:{},compoundVariants:[]}),kI=uD({defaultClassName:"_1x62fhb0 _1yep5z6kv _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{variant:{primary:"_1yep5z6115",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]}),zI=({state:e,...t})=>{let n=l.useRef(null),{tabPanelProps:r}=(0,Jn.WE)(t,e,n),{selectedItem:o}=e,{focusProps:i,isFocusVisible:a}=(0,Jn.Fx)();if(!o?.value)return null;let{className:c,style:u,"data-block-id":d}=o.value;return(0,gr.jsx)("div",{...(0,Jn.dG)(r,i),ref:n,className:(0,s.AK)({"_1yep5z6l2 _1yep5z6kz _1yep5z6hc _1yep5z6l1":a},"Baseline-Tabs-TabPanel",c),"data-block-id":d,style:u,children:o?.props.children})},PI=l.forwardRef((({className:e,style:t,tabHeaderStyle:n,tabHeaderClassName:r,variant:o="primary",actions:i,onRemove:a,"data-block-id":c,...u},d)=>{let p=(0,dr.p)({...u,selectedKey:u.selectedValue,defaultSelectedKey:u.defaultSelectedValue,disabledKeys:u.disabledValues}),h=l.useRef(null),{tabListProps:f}=(0,Jn.HJ)({...u,selectedKey:u.selectedValue,defaultSelectedKey:u.defaultSelectedValue,disabledKeys:u.disabledValues},p,h);return(0,gr.jsxs)("div",{className:(0,s.AK)("BaselineUI-Tabs",e),style:t,ref:d,"data-block-id":c,children:[(0,gr.jsxs)("div",{className:(0,s.AK)(kI({variant:o}),r),style:n,children:[(0,gr.jsx)("div",{...f,className:EI({variant:o}),ref:h,children:[...p.collection].map((e=>((0,s.kG)(e.value,"TabItem requires a value prop"),(0,gr.jsx)(DI,{item:e,state:p,onRemove:a,variant:o},e.key))))}),i?.map(((e,t)=>(0,gr.jsx)("div",{className:"_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",children:(0,gr.jsx)(oA,{...e,variant:"secondary",size:"sm",className:(0,s.AK)("_1x62fhbf",e.className)})},t)))]}),(0,gr.jsx)(zI,{state:p},p.selectedItem?.key)]})}));PI.displayName="TabsBase";var DI=({item:e,onRemove:t,state:n,variant:r})=>{let{key:o,value:i}=e,a=l.useRef(null),{tabProps:c,isSelected:u,isDisabled:d}=(0,Jn.xD)({key:o},n,a),{hoverProps:p,isHovered:h}=(0,Jn.XI)({});(0,s.kG)(i,"TabButton requires a value prop");let{title:f,icon:m,titleStyle:g,titleClassName:v}=i,{focusProps:y,isFocusVisible:b,isFocused:w}=(0,Jn.Fx)(),{keyboardProps:x}=(0,Jn.v5)({onKeyDown:e=>{"Backspace"===e.key&&t?t(o):e.continuePropagation()}}),_=(0,s.mS)({"data-selected":u,"data-disabled":d,"data-focused":w,"data-hovered":h,"data-focus-visible":b});return(0,gr.jsxs)("div",{...(0,Jn.dG)(x,c,p,y,_),className:(0,s.AK)(CI({isHovered:h,isSelected:u,isFocusVisible:b,isDisabled:d,variant:r}),"BaselineUI-Tabs-TabButton",v),style:g,ref:a,children:[m?(0,gr.jsx)(m,{size:20}):null,f,t?(0,gr.jsx)(oA,{variant:"secondary",elementType:"div",icon:br.b0,size:"xxs",onPress:()=>{t(o)},excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",color:"inherit",opacity:u||w||h?1:0}}):null]})};DI.displayName="TabButton";var AI=l.forwardRef((({children:e,...t},n)=>{let r=(0,l.useMemo)((()=>l.Children.map(e,(e=>e&&l.isValidElement(e)&&"string"!=typeof e.type?{...e.props,id:e.props.value}:null)).filter(Boolean)),[e]);return(0,gr.jsx)(PI,{...t,ref:n,items:r,children:e=>(0,gr.jsx)(nr.ck,{title:e.title,children:e.children},e.key)})}));AI.displayName="Tabs";var TI=({children:e,title:t,value:n})=>((0,s.kG)(n,"TabItem requires a value prop"),(0,s.kG)(t,"TabItem requires a title prop"),(0,s.kG)(e,"TabItem requires children"),e);TI.displayName="TabItem";var II={ar:{close:"إغلاق"},cs:{close:"Zavřít"},cy:{close:"Cau"},da:{close:"Luk"},de:{close:"Schließen"},el:{close:"Κλείσιμο"},"en-GB":{close:"Close"},en:{close:"Close"},es:{close:"Cerrar"},fi:{close:"Sulje"},"fr-CA":{close:"Fermer"},fr:{close:"Fermer"},he:{close:"סגירה"},hr:{close:"Zatvori"},id:{close:"Tutup"},it:{close:"Chiudi"},ja:{close:"閉じる"},ko:{close:"닫기"},ms:{close:"Tutup"},"nb-NO":{close:"Lukk"},nl:{close:"Sluit"},pl:{close:"Zamknij"},"pt-PT":{close:"Fechar"},pt:{close:"Fechar"},ru:{close:"Закрыть"},sk:{close:"Zavrieť"},sl:{close:"Zapri"},sv:{close:"Stäng"},th:{close:"ปิด"},tr:{close:"Kapat"},uk:{close:"Закрити"},"zh-Hans":{close:"关闭"},"zh-Hant":{close:"關閉"}},MI=uD({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),RI=uD({defaultClassName:"kfun6y0 z9nup82",variantClassNames:{variant:{info:"kfun6y1",warning:"kfun6y2",error:"kfun6y3",success:"kfun6y4"},arrangement:{single:"kfun6y5",multi:"kfun6y6",compact:"kfun6y7"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:!1,arrangement:"single"},"kfun6ya"],[{hasButton:!0,arrangement:"compact"},"kfun6yb"],[{hasCloseButton:!0,arrangement:"compact"},"kfun6yc"]]}),FI=uD({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),NI=uD({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),OI=uD({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),jI=uD({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),LI=uD({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]}),BI={error:{sm:wr.rx,md:xr.rx},info:{sm:wr.F3,md:xr.F3},success:{sm:wr.gq,md:xr.gq},warning:{sm:wr.av,md:xr.av}},KI=l.forwardRef((({className:e,description:t,actionLabel:n,onAction:r,style:o,variant:i="info",title:a,arrangement:l="single",onClose:c,size:u="sm","data-block-id":d,"data-block-class":p},h)=>{let f=bA(II),m=n&&(0,gr.jsx)(BD,{variant:"compact"===l?"tertiary":"ghost",label:n,onPress:r}),g=BI[i][u];return(0,gr.jsxs)("div",{className:(0,s.AK)(RI({variant:i,arrangement:l,hasButton:!!n||!!c,hasCloseButton:!!c}),"BaselineUI-InlineAlert",e),"data-block-id":d,"data-block-class":p,style:o,role:"alert",ref:h,children:[(0,gr.jsxs)("div",{className:LI({arrangement:l}),children:[(0,gr.jsx)(g,{className:OI({variant:i}),size:16}),(0,gr.jsxs)("div",{className:MI({arrangement:l}),children:[(0,gr.jsx)("h3",{className:jI({size:u}),children:a}),(0,gr.jsx)("section",{className:FI({size:u}),children:t})]}),"compact"===l&&m]}),(0,gr.jsxs)("div",{className:NI({arrangement:l}),children:["compact"!==l&&m,c?(0,gr.jsx)(oA,{variant:"secondary",icon:wr.Tw,size:"sm",onPress:c,"aria-label":f.formatMessage("close")}):null]})]})}));KI.displayName="InlineAlert";var VI={ar:{add:"إضافة",addColor:"إضافة لون",cancel:"إلغاء",colorFormat:"تنسيق اللون",colorPresets:"الألوان المسبقة",customColors:"ألوان مخصصة",newColor:"لون مخصص جديد",noColor:"لا يوجد",removeColor:"إزالة اللون",transparent:"شفاف"},cs:{add:"Přidat",addColor:"Přidat barvu",cancel:"Zrušit",colorFormat:"Formát barvy",colorPresets:"Předvolby barev",customColors:"Vlastní barvy",newColor:"Vlastní barva",noColor:"Není",removeColor:"Odebrat barvu",transparent:"Průhledná"},cy:{add:"Ychwanegu",addColor:"Ychwanegu Lliw",cancel:"Canslo",colorFormat:"Fformat Lliw",colorPresets:"Rhagosodiadau Lliw",customColors:"Lliwiau Custom",newColor:"Lliw Personol Newydd",noColor:"Dim",removeColor:"Tynnu Lliw",transparent:"Tryloyw"},da:{add:"Tilføj",addColor:"Tilføj Farve",cancel:"Annuller",colorFormat:"Farveformat",colorPresets:"Farvevalg",customColors:"Brugerdefinerede farver",newColor:"Ny tilpasset farve",noColor:"Ingen",removeColor:"Fjern Farve",transparent:"Transparent"},de:{add:"Hinzufügen",addColor:"Farbe hinzufügen",cancel:"Abbrechen",colorFormat:"Farbformat",colorPresets:"Farbvorlagen",customColors:"Benutzerdefinierte Farben",newColor:"Neue benutzerdefinierte Farbe",noColor:"Kein",removeColor:"Farbe entfernen",transparent:"Transparent"},el:{add:"Προσθήκη",addColor:"Προσθήκη Χρώματος",cancel:"Ακύρωση",colorFormat:"Μορφή χρώματος",colorPresets:"Προεπιλογές χρωμάτων",customColors:"Προσαρμοσμένα Χρώματα",newColor:"Νέο προσαρμοσμένο χρώμα",noColor:"Κανένας",removeColor:"Αφαίρεση Χρώματος",transparent:"Ημιδιαφανής"},"en-GB":{add:"Add",addColor:"Add Colour",cancel:"Cancel",colorFormat:"Colour Format",colorPresets:"Colour Presets",customColors:"Custom Colours",newColor:"New Custom Colour",noColor:"None",removeColor:"Remove Colour",transparent:"Transparent"},en:{add:"Add",addColor:"Add Color",cancel:"Cancel",colorFormat:"Color Format",colorPresets:"Color Presets",customColors:"Custom Colors",newColor:"New Custom Color",noColor:"None",removeColor:"Remove Color",transparent:"Transparent"},es:{add:"Añadir",addColor:"Añadir color",cancel:"Cancelar",colorFormat:"Formato de color",colorPresets:"Preajustes de color",customColors:"Colores personalizados",newColor:"Nuevo color personalizado",noColor:"Ninguna",removeColor:"Eliminar color",transparent:"Transparente"},fi:{add:"Lisää",addColor:"Lisää väri",cancel:"Kumoa",colorFormat:"Värimuoto",colorPresets:"Värin esiasetukset",customColors:"Mukautetut värit",newColor:"Uusi muokattu väri",noColor:"Ei mitään",removeColor:"Poista väri",transparent:"Läpinäkyvä"},"fr-CA":{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Préréglages de couleur",customColors:"Couleurs personnalisées",newColor:"Nouvelle couleur personnalisée",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},fr:{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Préréglages de couleur",customColors:"Couleurs personnalisées",newColor:"Nouvelle couleur personnalisée",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},he:{add:"הוספה",addColor:"הוסף צבע",cancel:"ביטול",colorFormat:"פורמט צבע",colorPresets:"מצבי צבע מתוכנתים",customColors:"צבעים מותאמים אישית",newColor:"צבע מותאם אישית חדש",noColor:"ללא",removeColor:"הסר צבע",transparent:"שקוף"},hr:{add:"Dodati",addColor:"Dodaj boju",cancel:"Otkaži",colorFormat:"Format boje",colorPresets:"Prijedlozi boja",customColors:"Prilagođene boje",newColor:"Nova prilagođena boja",noColor:"Prazno",removeColor:"Ukloni boju",transparent:"Prozirna"},id:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batalkan",colorFormat:"Format Warna",colorPresets:"Preset Warna",customColors:"Warna Kustom",newColor:"Warna Khusus Baru",noColor:"Tidak ada",removeColor:"Hapus Warna",transparent:"Transparan"},it:{add:"Aggiungi",addColor:"Aggiungi colore",cancel:"Annulla",colorFormat:"Formato del colore",colorPresets:"Colori predefiniti",customColors:"Colori personalizzati",newColor:"Nuovo colore personalizzato",noColor:"Nessuno",removeColor:"Rimuovi colore",transparent:"Trasparente"},ja:{add:"追加",addColor:"色を追加",cancel:"キャンセル",colorFormat:"カラーフォーマット",colorPresets:"カラープリセット",customColors:"カスタムカラー",newColor:"新規カスタムカラー",noColor:"なし",removeColor:"色を削除",transparent:"透明"},ko:{add:"추가",addColor:"색상 추가",cancel:"취소",colorFormat:"색상 형식",colorPresets:"색상 미리설정",customColors:"사용자 정의 색상",newColor:"새로운 사용자지정 색상",noColor:"없음",removeColor:"색상 제거",transparent:"투명"},ms:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batal",colorFormat:"Format Warna",colorPresets:"Praset Warna",customColors:"Warna Kustom",newColor:"Warna Tersuai Baharu",noColor:"Tiada",removeColor:"Buang Warna",transparent:"Lut Sinar"},"nb-NO":{add:"Legg til",addColor:"Legg til farge",cancel:"Avbryt",colorFormat:"Fargeformat",colorPresets:"Fargeinnstillinger",customColors:"Egendefinerte farger",newColor:"Ny tilpasset farge",noColor:"Ingen",removeColor:"Fjern farge",transparent:"Gjennomsiktig"},nl:{add:"Voeg toe",addColor:"Kleur toevoegen",cancel:"Annuleer",colorFormat:"Kleurformaat",colorPresets:"Kleurvoorinstellingen",customColors:"Aangepaste kleuren",newColor:"Nieuwe aangepaste kleur",noColor:"Geen",removeColor:"Kleur verwijderen",transparent:"Doorzichtig"},pl:{add:"Dodaj",addColor:"Dodaj kolor",cancel:"Anuluj",colorFormat:"Format koloru",colorPresets:"Wstępnie ustawione kolory",customColors:"Niestandardowe kolory",newColor:"Nowy kolor niestandardowy",noColor:"Brak",removeColor:"Usuń kolor",transparent:"Przeświecające"},"pt-PT":{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Predefinições de cor",customColors:"Cores personalizadas",newColor:"Nova cor personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},pt:{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Pré-ajustes de Cores",customColors:"Cores personalizadas",newColor:"Nova Cor Personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},ru:{add:"Добавить",addColor:"Добавить цвет",cancel:"Отменить",colorFormat:"Формат цвета",colorPresets:"Библиотека цветов",customColors:"Пользовательские цвета",newColor:"Новый собственный цвет",noColor:"Нет",removeColor:"Удалить цвет",transparent:"Прозрачный"},sk:{add:"Pridať",addColor:"Pridať farbu",cancel:"Zrušiť",colorFormat:"Formát farby",colorPresets:"Predvoľby farieb",customColors:"Vlastné farby",newColor:"Vlastná farba",noColor:"Žiadny",removeColor:"Odstrániť farbu",transparent:"Priehľadná"},sl:{add:"Dodaj",addColor:"Dodaj barvo",cancel:"Prekliči",colorFormat:"Barvni format",colorPresets:"Barvne predloge",customColors:"Prilagojene barve",newColor:"Nova barva po meri",noColor:"Prazna stran",removeColor:"Odstrani barvo",transparent:"Prosojna"},sv:{add:"Lägg till",addColor:"Lägg till färg",cancel:"Avbryt",colorFormat:"Färgformat",colorPresets:"Förval för färger",customColors:"Anpassade färger",newColor:"Ny anpassad färg",noColor:"Ingen",removeColor:"Ta bort färg",transparent:"Genomskinligt"},th:{add:"เพิ่ม",addColor:"เพิ่มสี",cancel:"ยกเลิก",colorFormat:"รูปแบบสี",colorPresets:"ค่าสีที่ตั้งไว้ล่วงหน้า",customColors:"สีที่กำหนดเอง",newColor:"สีที่กำหนดเองใหม่",noColor:"ไม่มีเลย",removeColor:"ลบสี",transparent:"โปร่งใส"},tr:{add:"Ekle",addColor:"Renk Ekle",cancel:"Vazgeç",colorFormat:"Renk Formatı",colorPresets:"Renk Önayarları",customColors:"Özel Renkler",newColor:"Yeni özel renk",noColor:"Hiçbiri",removeColor:"Rengi Kaldır",transparent:"Şeffaf"},uk:{add:"Додати",addColor:"Додати колір",cancel:"Скасувати",colorFormat:"Формат кольору",colorPresets:"Бібліотека кольорів",customColors:"Користувацькі кольори",newColor:"Новий власний колір",noColor:"Немає",removeColor:"Видалити колір",transparent:"Прозорий"},"zh-Hans":{add:"添加",addColor:"添加颜色",cancel:"取消",colorFormat:"颜色格式",colorPresets:"颜色预设",customColors:"自定义颜色",newColor:"新自定义颜色",noColor:"无",removeColor:"移除颜色",transparent:"透明"},"zh-Hant":{add:"加入",addColor:"添加顏色",cancel:"取消",colorFormat:"顏色格式",colorPresets:"顏色預設項",customColors:"自訂顏色",newColor:"新自訂顏色",noColor:"無",removeColor:"移除顏色",transparent:"透明"}},HI=({children:e})=>{let{triggerProps:t}=l.useContext(LA);return(0,gr.jsx)(Tr.NL,{...t,children:e})};HI.displayName="ModalTrigger";var $I=({children:e})=>{let{state:t}=l.useContext(LA);return(0,gr.jsx)(Tr.NL,{onPress:()=>{t?.close()},children:e})},UI=uD({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6l6 _1yep5z6ky _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6kx _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z6109"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),ZI=uD({defaultClassName:"_1dbkl50 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6nq _1yep5z6nr _1yep5z6ns",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),qI="_1dbkl5l _1yep5z6i6 _1yep5z6i7 _1yep5z6i8 _1yep5z69f _1yep5z69g _1yep5z69h",GI="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6hl _1yep5z6hm _1yep5z6hn",WI=uD({defaultClassName:"_1dbkl5h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6fs",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6me _1yep5z6mf _1yep5z6mg"}},defaultVariants:{},compoundVariants:[]}),YI="_1dbkl5v _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",XI=uD({defaultClassName:"_1dbkl5q _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6l7 _1yep5z6gq _1yep5z6ky _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z611y"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6wh _1yep5z6wi _1yep5z6wj _1yep5z6xt _1yep5z6xu _1yep5z6xv _1yep5z6166"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61nd"]]}),QI=uD({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f0 _1yep5z6kx _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6ki _1yep5z6kl",variantClassNames:{isHovered:{true:"_1yep5z6115"},isFocusVisible:{true:"_1yep5z616c _1yep5z616a _1yep5z616d _1yep5z612n"},isDisabled:{true:"_1yep5z610d"}},defaultVariants:{},compoundVariants:[]}),JI="_1dbkl5u",eM="_1dbkl5g _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",tM="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69f _1yep5z69g _1yep5z69h",nM="_1dbkl5x",rM="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69l _1yep5z69m _1yep5z69n",oM=uD({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6l2 _1yep5z6ho _1yep5z6hp _1yep5z6hq _1yep5z6l7 _1yep5z6la",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z616a _1yep5z612n _1yep5z616c"}},defaultVariants:{},compoundVariants:[]}),iM="z9nup84 z9nup86 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6ho _1yep5z6hp _1yep5z6hq",aM=uD({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6ks _1yep5z6hk _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z616c _1yep5z616a _1yep5z612n _1yep5z616f"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isFocusVisible:!0},"_1344e9q6"],[{isSelected:!0,isFocusVisible:!0},"_1344e9q7 _1yep5z61rn _1yep5z61rl _1yep5z61ny _1yep5z61rq"],[{isSelected:!0,isDisabled:!0},"_1yep5z61rn _1yep5z61rl _1yep5z61ny _1yep5z61rq _1yep5z61o5"],[{isHovered:!0,isSelected:!1},"_1yep5z61rq _1yep5z61rn _1yep5z61rl _1yep5z61o2"]]}),sM=l.forwardRef((({color:e,isFocusVisible:t,isSelected:n,isInteractive:r,isDisabled:o,style:i,className:a,id:c,"data-block-id":u,"data-block-class":d,...p},h)=>{let f=e&&e!==fM&&("string"==typeof e?(0,Ir.lu)(e):e),{formatMessage:m}=bA(),g=!f,{colorSwatchProps:v}=function(e){let{color:t,colorName:n}=e,r=t||"#fff0",o=(0,l.useMemo)((()=>"string"==typeof r?jr(r):r),[r]),{locale:i}=(0,oo.bU)(),a=(0,ro.zL)(e,{labelable:!0}),s=(0,oo.qb)(function(e){return e&&e.__esModule?e.default:e}(Pr),"@react-aria/color"),c=(0,ro.Me)(e.id);return n||(n=0===o.getChannelValue("alpha")?s.format("transparent"):o.getColorName(i)),{colorSwatchProps:{...a,role:"img","aria-roledescription":s.format("colorSwatch"),"aria-label":[n,e["aria-label"]||""].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]?`${c} ${e["aria-labelledby"]}`:void 0,id:c,style:{backgroundColor:o.toString("css"),forcedColorAdjust:"none"}},color:o||null}}({color:g?"#000000":e}),{hoverProps:y,isHovered:b}=(0,Jn.XI)({isDisabled:o||!r}),w=(0,s.mS)({"data-focus-visible":t,"data-selected":n,"data-hovered":b,"data-block-id":u,"data-block-class":d,"data-disabled":o,"data-interactive":r});return(0,gr.jsx)("div",{...(0,Jn.dG)(y,w,g?{}:v),style:i,"aria-label":g?m(lM.none):v["aria-label"],role:"img",className:(0,s.AK)(aM({removeBlendMode:g,isFocusVisible:t,isDisabled:!!o,isSelected:!!n,isHovered:b}),"BaselineUI-ColorSwatch",a),ref:h,id:c,...p,children:(0,gr.jsx)(vD,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:o?"medium":void 0,style:f?gM(f,4):void 0,children:g?(0,gr.jsx)(wr.zs,{size:14}):null})})}));sM.displayName="ColorSwatch";var lM=wA({none:{id:"none",defaultMessage:"None"}}),cM=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],uM=(0,Ir.lu)("#000000").toFormat("hsla"),dM="hsla",pM="hexa";function hM(e){return"string"==typeof e?(0,Ir.lu)(e).toFormat(dM):e?e.toFormat(dM):null}var fM="NONE";var mM=(e,{optionProps:t,isFocusVisible:n,isSelected:r},o)=>((0,s.kG)(e.value&&"label"in e.value,"Item must have label"),(0,gr.jsx)("li",{...t,ref:o,className:"_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ky",children:(0,gr.jsx)(sM,{color:e.value.id,isFocusVisible:n,isSelected:r,"aria-label":e.value.label,isInteractive:!0})})),gM=(e,t=4)=>{let n=0===e.getChannelValue("alpha"),r=`repeating-conic-gradient(transparent 0% 25%, ${yr.themeVars.color.background.secondary.medium} 25% 50%)`;return{backgroundImage:n?r:`linear-gradient(${e.toString("hexa")}, ${e.toString("hexa")}), ${r}`,backgroundSize:`${t}px ${t}px`}},vM=({value:e,...t})=>{let n=l.useRef(null),r=l.useRef(null),o=l.useRef(null),i=(0,Ir.Eg)({...t,value:e}),{colorAreaProps:a,xInputProps:c,yInputProps:u,thumbProps:d}=ao({...t,value:e,inputXRef:n,inputYRef:r,containerRef:o},i);(0,l.useEffect)((()=>{n.current?.focus()}),[]);let{focusProps:p,isFocusVisible:h}=(0,Jn.Fx)();return(0,gr.jsx)("div",{ref:o,...a,className:(0,s.AK)("_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6kv","BaselineUI-ColorInput-ColorArea"),children:(0,gr.jsxs)("div",{...d,className:(0,s.AK)(oM({isFocusVisible:h}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...d.style,transform:"translate(-50%, -50%)",backgroundColor:hM(e)?.withChannelValue("alpha",1).toString("css")},children:[(0,gr.jsx)("input",{ref:n,...c,...p}),(0,gr.jsx)("input",{ref:r,...u,...p})]})})},yM=({color:e,setColor:t,allowAlpha:n,...r})=>{let o=(0,Ir.jF)({value:e,onChange:n=>{t(hM(n)?.toFormat(dM).withChannelValue("alpha",e.getChannelValue("alpha")??1)||uM)}}),i=l.useRef(null),{inputProps:a}=function(e,t,n){let{isDisabled:r,isReadOnly:o,isRequired:i,isWheelDisabled:a,validationBehavior:s="aria"}=e,{colorValue:c,inputValue:u,increment:d,decrement:p,incrementToMax:h,decrementToMin:f,commit:m}=t,g=(0,ro.Me)(),{spinButtonProps:v}=(0,co.G)({isDisabled:r,isReadOnly:o,isRequired:i,maxValue:16777215,minValue:0,onIncrement:d,onIncrementToMax:h,onDecrement:p,onDecrementToMin:f,value:c?c.toHexInt():void 0,textValue:c?c.toString("hex"):void 0}),[y,b]=(0,l.useState)(!1),{focusWithinProps:w}=(0,Tr.L_)({isDisabled:r,onFocusWithinChange:b}),x=(0,l.useCallback)((e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?d():e.deltaY<0&&p())}),[p,d]),_=a||r||o||!y;(0,Tr.y0)({onScroll:x,isDisabled:_},n);let{inputProps:S,...C}=(0,lo.h)({...e,id:g,value:u,defaultValue:void 0,validate:void 0,[mr.tL]:t,type:"text",autoComplete:"off",onChange:e=>{t.validate(e)&&t.setInputValue(e)}},t,n);return S=(0,ro.dG)(S,v,w,{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false",onBlur:m}),"native"===s&&(S["aria-required"]=void 0),{inputProps:S,...C}}({...r,"aria-label":"Hex"},o,i),{focusProps:c,isFocused:u}=(0,Jn.Fx)({isTextInput:!0}),{hoverProps:d,isHovered:p}=(0,Jn.XI)({});return(0,gr.jsxs)("div",{className:(0,s.AK)(YI,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":n?"hexa":"hex",children:[(0,gr.jsx)("input",{...(0,Jn.dG)(a,c,d),ref:i,className:XI({isFocused:u,isHovered:p,allowAlpha:n})}),n?(0,gr.jsx)(xM,{color:e,setColor:t}):null]})},bM=({color:e,setColor:t,allowAlpha:n})=>{let r=e.toFormat("rgba"),{locale:o}=(0,Jn.bU)();return(0,gr.jsxs)("div",{className:(0,s.AK)(YI,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":n?"rgba":"rgb",children:[(0,gr.jsx)(iA,{"aria-label":e.getChannelName("red",o),value:r.getChannelValue("red"),showStepper:!1,className:JI,onChange:e=>{t(r.withChannelValue("red",e).toFormat(dM))},step:1,minValue:0,maxValue:255}),(0,gr.jsx)(iA,{"aria-label":e.getChannelName("green",o),value:r.getChannelValue("green"),showStepper:!1,className:JI,onChange:e=>{t(r.withChannelValue("green",e).toFormat(dM))},step:1,minValue:0,maxValue:255}),(0,gr.jsx)(iA,{"aria-label":e.getChannelName("blue",o),value:r.getChannelValue("blue"),showStepper:!1,className:JI,onChange:e=>{t(r.withChannelValue("blue",e).toFormat(dM))},step:1,minValue:0,maxValue:255}),n?(0,gr.jsx)(xM,{color:e,setColor:t}):null]})},wM={style:"percent",maximumFractionDigits:0},xM=({color:e,setColor:t})=>{let{locale:n}=(0,Jn.bU)(),r=(0,l.useCallback)((n=>{t(e.withChannelValue("alpha",n))}),[e,t]);return(0,gr.jsx)(iA,{"aria-label":e.getChannelName("alpha",n),value:e.getChannelValue("alpha"),formatOptions:wM,className:JI,showStepper:!1,onChange:r,minValue:0,maxValue:1})},_M=({channel:e,...t})=>{let{locale:n}=(0,Jn.bU)(),r=(0,Ir.Y3)({...t,channel:e,locale:n}),o=l.useRef(null),i=l.useRef(null),{trackProps:a,thumbProps:c,inputProps:u}=function(e,t){let{trackRef:n,inputRef:r,orientation:o,channel:i,"aria-label":a,name:s}=e,{locale:l,direction:c}=(0,oo.bU)();e.label||a||e["aria-labelledby"]||(a=t.value.getChannelName(i,l));let{groupProps:u,trackProps:d,labelProps:p,outputProps:h}=(0,so.o)({...e,"aria-label":a},t,n),{inputProps:f,thumbProps:m}=(0,so.p)({index:0,orientation:o,isDisabled:e.isDisabled,name:s,trackRef:n,inputRef:r},t),g=t.getDisplayColor(),v={forcedColorAdjust:"none"};"hue"===i?f["aria-valuetext"]+=`, ${g.getHueName(l)}`:"alpha"!==i&&(f["aria-valuetext"]+=`, ${g.getColorName(l)}`);let{visuallyHiddenProps:y}=(0,io.S)({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}});return{trackProps:{...(0,ro.dG)(u,d),style:{...d.style,...v,background:(()=>{let e;switch(e="vertical"===o?"top":"ltr"===c?"right":"left",i){case"hue":return`linear-gradient(to ${e}, ${[0,60,120,180,240,300,360].map((e=>g.withChannelValue("hue",e).toString("css"))).join(", ")})`;case"lightness":{let n=t.getThumbMinValue(0),r=t.getThumbMaxValue(0);return`linear-gradient(to ${e}, ${g.withChannelValue(i,n).toString("css")}, ${g.withChannelValue(i,(r-n)/2).toString("css")}, ${g.withChannelValue(i,r).toString("css")})`}case"saturation":case"brightness":case"red":case"green":case"blue":case"alpha":return`linear-gradient(to ${e}, ${g.withChannelValue(i,t.getThumbMinValue(0)).toString("css")}, ${g.withChannelValue(i,t.getThumbMaxValue(0)).toString("css")})`;default:throw new Error("Unknown color channel: "+i)}})()}},inputProps:{...f,style:{...f.style,...y.style}},thumbProps:{...m,style:{...m.style,...v}},labelProps:p,outputProps:h}}({...t,channel:e,trackRef:o,inputRef:i,"aria-label":r.value.getChannelName(e,n)},r),{focusProps:d,isFocusVisible:p}=(0,Jn.Fx)();return(0,gr.jsxs)("div",{className:(0,s.AK)(GI,{[KD({size:"xs"})]:"alpha"===e},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...a,ref:o,children:["alpha"===e&&(0,gr.jsx)("div",{className:iM}),(0,gr.jsx)("div",{className:GI,style:a.style}),(0,gr.jsxs)("div",{className:(0,s.AK)(oM({isFocusVisible:p}),"BaselineUI-ColorInput-ColorSliderThumb"),...c,children:[(0,gr.jsx)("div",{className:iM,style:{backgroundColor:"#ffffff"}}),(0,gr.jsx)("div",{style:{backgroundColor:r.getDisplayColor().toString("css"),height:8},className:GI}),(0,gr.jsx)(Jn.TX,{children:(0,gr.jsx)("input",{ref:i,...u,...d})})]})]})},SM=({color:e,setColor:t,allowAlpha:n})=>{let[r,o]=l.useState("hex"),{formatMessage:i}=bA(VI);return(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsx)(vM,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:t}),(0,gr.jsxs)("div",{className:rM,children:[(0,gr.jsx)(_M,{channel:"hue",value:e,onChange:t}),n?(0,gr.jsx)(_M,{channel:"alpha",value:e,onChange:t}):null]}),(0,gr.jsxs)("div",{className:(0,s.AK)(rM,yr.Kj.variants({paddingTop:"none",gap:"sm"})),children:[(0,gr.jsx)(bI,{label:i("colorFormat"),labelPosition:"start",variant:"ghost",items:cM,selectedKey:r,onSelectionChange:e=>{o(e)}}),"hex"===r&&(0,gr.jsx)(yM,{color:e,setColor:t,allowAlpha:n}),"rgb"===r&&(0,gr.jsx)(bM,{color:e,setColor:t,allowAlpha:n})]})]})},CM=({color:e,setColor:t,storePickedColorKey:n,addColorButtonLabel:r,removeColorButtonLabel:o,customColorsLabel:i,pickerMode:a,allowAlpha:c})=>{let{locale:u}=(0,Jn.bU)(),{formatMessage:d}=bA(VI),p=l.useRef(null),h=CA(p.current),[f,m]=_A(n,[]),g=l.useRef(null),[v,y]=l.useState(e),b=l.useMemo((()=>f.map((e=>({id:e,label:(0,Ir.lu)(e).getColorName(u),description:e})))),[f,u]),w=(0,l.useCallback)((()=>{let t="active"===a?e:v;f.includes(t.toString(dM))?g.current?.querySelector(`[data-key='${t.toString(dM)}']`)?.classList.add(nM):m([...f,t.toString(dM)])}),[f,e,m,v,a]);(0,l.useEffect)((()=>{let e=g.current;function t(e){"_1dbkl5w"===e.animationName&&e.target?.classList.remove(nM)}return e?.addEventListener("animationend",t),()=>{e?.removeEventListener("animationend",t)}}),[]);let x=(0,Jn.Me)(),_=(0,gr.jsx)(oA,{ref:p,variant:"secondary",size:"md","aria-label":r,icon:xr.pO,onPress:"active"===a?w:void 0}),S=(0,l.useCallback)((e=>(0,gr.jsxs)(qA,{size:"content",className:WI({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":d("newColor"),children:[(0,gr.jsx)(SM,{color:v,setColor:y,allowAlpha:c}),(0,gr.jsx)(mD,{}),(0,gr.jsx)(vD,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:(0,gr.jsxs)(vD,{display:"inline-flex",gap:"lg",children:[(0,gr.jsx)(BD,{label:d("cancel"),size:"sm",variant:"secondary",onPress:e}),(0,gr.jsx)(BD,{label:d("add"),variant:"primary",onPress:()=>{w(),e()},size:"sm"})]})})]})),[v,w,d,c]),C=(0,l.useCallback)((e=>{(0,s.kG)(e instanceof Set,"Key must be a set");let n=[...e][0];n&&t((0,Ir.lu)(n).toFormat(dM))}),[t]);return(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsx)(mD,{}),(0,gr.jsxs)("div",{className:(0,s.AK)("_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ir _1yep5z6is _1yep5z6it","BaselineUI-ColorInput-CustomColors"),children:[(0,gr.jsx)("span",{id:x,children:i}),(0,gr.jsxs)(vD,{display:"flex",children:[!!f.length&&f.includes(e.toString(dM))&&(0,gr.jsx)(oA,{variant:"secondary",size:"md",elementType:"div",icon:xr.V_,"aria-label":o,onPress:()=>{m(f.filter((t=>t!==e.toString(dM))))}}),"active"===a&&_,"lazy"===a&&("mobile"===h?(0,gr.jsxs)(BA,{children:[(0,gr.jsx)(HI,{children:_}),(0,gr.jsx)($A,{style:{zIndex:1e5},children:({close:e})=>S(e)})]}):(0,gr.jsxs)(AD,{type:"dialog",children:[(0,gr.jsx)(FD,{children:_}),(0,gr.jsx)(QA,{placement:"right top",className:eM,offset:6,children:({close:e})=>S(e)})]}))]})]}),!!f.length&&(0,gr.jsx)(kD,{items:b,layout:"grid","aria-labelledby":x,className:(0,s.AK)(qI,tM,yr.Kj.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:mM,ref:g,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(dM)],onSelectionChange:C})]})},EM=l.forwardRef((({setColor:e,color:t,triggerRef:n,autoFocus:r,presets:o,state:i},a)=>{let{formatMessage:c}=bA(VI),u=(0,l.useCallback)((t=>{if(t instanceof Set&&t.size){let n=[...t][0],r=o.find((e=>e.id===n));(0,s.kG)(r,"Preset not found"),e(r.id===fM?null:(0,Ir.lu)(r.id).toFormat(dM)),i.close()}}),[i,o,e]);return(0,gr.jsx)("div",{className:(0,s.AK)(tM,"BaselineUI-ColorInput-Presets"),style:{minWidth:n.current?.offsetWidth},ref:a,children:(0,gr.jsx)(kD,{autoFocus:r,items:o,layout:"grid","aria-label":c("colorPresets"),className:qI,renderOption:mM,selectionMode:"single",selectedKeys:[t?.toString(pM)||fM],onSelectionChange:u})})}));EM.displayName="ColorPresetList";var kM=l.forwardRef((({color:e,colorLabel:t,colorName:n,...r},o)=>{let i=l.useRef(null),{hoverProps:a,isHovered:c}=(0,Jn.XI)({isDisabled:r.isDisabled}),{buttonProps:u,isPressed:d}=(0,Jn.UW)(r,i),{isFocusVisible:p,focusProps:h}=(0,Jn.Fx)(),f=(0,s.mS)({"data-block-id":r["data-block-id"],"data-focused":p,"data-focus-visible":p,"data-disabled":r.isDisabled,"data-hovered":c,"data-pressed":d});return(0,gr.jsxs)("button",{...(0,Jn.dG)(u,a,h,f),style:r.style,className:(0,s.AK)(UI({isHovered:c,isFocusVisible:p||r.isOpen,isDisabled:r.isDisabled,labelPosition:r.labelPosition}),"BaselineUI-ColorInputButton",r.className),ref:HP(o,i),children:[(0,gr.jsx)(sM,{color:e?.toString("hexa")}),t?(0,gr.jsx)("div",{className:"_1dbkl5f z9nup87",children:n}):(0,gr.jsx)(Jn.TX,{children:n})]})}));kM.displayName="ColorInputButton";var zM=l.forwardRef((({className:e,style:t,icon:n,...r},o)=>{let i=l.useRef(null),{hoverProps:a,isHovered:c}=(0,Jn.XI)({isDisabled:r.isDisabled}),{buttonProps:u,isPressed:d}=(0,Jn.UW)(r,i),{isFocusVisible:p,focusProps:h}=(0,Jn.Fx)(),f=(0,s.mS)({"data-block-id":r["data-block-id"],"data-focused":p,"data-focus-visible":p,"data-disabled":r.isDisabled,"data-hovered":c,"data-pressed":d});return(0,gr.jsxs)("button",{...(0,Jn.dG)(u,a,h,f),ref:HP(o,i),style:t,className:(0,s.AK)(QI({isHovered:c||d||r.isOpen,isFocusVisible:p,isDisabled:r.isDisabled}),"BaselineUI-IconColorInputButton",e),children:[(0,gr.jsx)(n,{size:16}),(0,gr.jsx)("div",{className:"_1dbkl5e",style:{backgroundColor:r.color||void 0}})]})}));function PM({colorLabel:e,color:t,presets:n}){let{formatMessage:r}=bA(),{locale:o}=(0,Jn.bU)(),i=(0,l.useMemo)((()=>n.find((e=>e.id===fM?!t:!!t&&function(e,t){return e?.getChannelValue("alpha")?t?.toString(pM)===e.toString(pM):!t?.getChannelValue("alpha")}(t,(0,Ir.lu)(e.id))))),[n,t]),a=(0,l.useMemo)((()=>"function"==typeof e?e?.(t):!!e&&function(e,t,n){return t?.label?t.label:0===e?.getChannelValue("alpha")?n:e?.toString("rgba")}(t,i,r(DM.transparent))),[t,e,r,i]);return{colorName:a,humanReadableName:(0,l.useMemo)((()=>{if(i?.label)return i.label;t?.getColorName(o)}),[t,o,i?.label])}}zM.displayName="IconColorInputButton";var DM=wA({transparent:{defaultMessage:"Transparent",id:"transparent"}}),AM=l.forwardRef((({className:e,style:t,allowRemoval:n,allowAlpha:r=!0,presets:o,labelPosition:i="top",colorLabel:a=!0,includePicker:c=!0,onChange:d,defaultValue:p,storePickedColorKey:h="baselinePickedColor",value:f,addColorButtonLabel:m,removeColorButtonLabel:g,customColorsLabel:v,renderTriggerButton:y=(({isOpen:e,color:t,ref:n,colorName:r,triggerProps:o,labelId:s})=>(0,gr.jsx)(kM,{...(0,Jn.dG)(o,{...C.label?{"aria-labelledby":s}:{"aria-label":C["aria-label"]}}),ref:n,isOpen:e,isDisabled:C.isDisabled,labelPosition:i,color:t,colorLabel:a,colorName:r})),pickerMode:b="active",offset:w=2,placement:x=("start"===i?"bottom end":"bottom start"),"data-block-id":_,"data-block-class":S,...C},E)=>{let k=l.useRef(null),z=l.useRef(null),P=(0,ar.d)(C),{triggerProps:D,overlayProps:A}=(0,Jn.IB)({type:"listbox"},P,k),T=zA(C.portalContainer),[I,M]=u(void 0===f?void 0:hM(f),hM(p),(e=>d?.(e?.toFormat("rgba")||null))),{formatMessage:R}=bA(VI),F=(0,l.useMemo)((()=>function(e,t){let n=t?.map((e=>({id:(0,Ir.lu)(e.color).toString(pM),label:e.label})))||[];return[...n,{id:fM,label:e}]}(R(TM.noColor),o)),[o,R]),N=(0,Jn.Me)(),{colorName:O}=PM({colorLabel:a,color:I,presets:F}),j=(0,l.useMemo)((()=>F.filter((e=>n||e.id!==fM))),[F,n]),L=m||R(TM.addColor),B=g||R(TM.removeColor),K=v||R(TM.customColors);return(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsxs)("div",{className:(0,s.AK)({"_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt":"start"===i},"BaselineUI-ColorInput-Trigger",e),"data-block-id":_,"data-block-class":S,style:t,ref:E,children:[C.label?(0,gr.jsx)("label",{id:N,className:ZI({labelPosition:i}),children:C.label}):null,y({isOpen:P.isOpen,color:I,ref:k,colorName:O,triggerProps:D,labelId:N})]}),P.isOpen?(0,gr.jsx)(XA,{...C,portalContainer:T,placement:x,state:P,offset:w,className:(0,s.AK)(eM,"BaselineUI-ColorInput-Popover"),triggerRef:k,overlayProps:A,children:(0,gr.jsxs)(qA,{size:"content",className:WI({includesCustomColorPicker:c}),ref:z,"aria-labelledby":N,"aria-label":C["aria-label"],children:[c&&"active"===b?(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsx)(SM,{color:I||uM,setColor:M,allowAlpha:r}),(0,gr.jsx)(CM,{color:I||uM,setColor:M,storePickedColorKey:h,addColorButtonLabel:L,removeColorButtonLabel:B,customColorsLabel:K,pickerMode:b,allowAlpha:r})]}):null,!!j.length&&(0,gr.jsxs)(gr.Fragment,{children:[c&&"active"===b?(0,gr.jsx)(mD,{}):null,(0,gr.jsx)(EM,{autoFocus:(!c||"active"!==b)&&"first",state:P,triggerRef:k,presets:j,color:I,setColor:M})]}),c&&"lazy"===b?(0,gr.jsx)(CM,{color:I||uM,setColor:M,storePickedColorKey:h,addColorButtonLabel:L,removeColorButtonLabel:B,customColorsLabel:K,pickerMode:b,allowAlpha:r}):null]})}):null]})}));AM.displayName="ColorInput";var TM=wA({addColor:{defaultMessage:"Add color",id:"addColor"},removeColor:{defaultMessage:"Remove color",id:"removeColor"},customColors:{defaultMessage:"Custom colors",id:"customColors"},noColor:{defaultMessage:"No color",id:"noColor"},transparent:{defaultMessage:"Transparent",id:"transparent"}}),IM=l.forwardRef((({className:e,style:t,icon:n,variant:r="standard","data-block-id":o,tooltipProps:i,...a},c)=>{let u=l.useRef(null),d=(0,l.useCallback)((({isOpen:e,color:t,ref:n,colorName:o,triggerProps:s})=>(0,gr.jsx)(aT,{variant:"inverse",size:"sm",includeArrow:!1,text:a["aria-label"],placement:"bottom start",offset:4,...i,children:"standard"===r?(0,gr.jsx)(kM,{...s,"aria-label":a["aria-label"],ref:n,isOpen:e,isDisabled:a.isDisabled,color:t,colorLabel:!1,colorName:o}):(0,gr.jsx)(zM,{...s,isOpen:e,icon:xr.VL,color:t?.toString("hexa"),ref:n,isDisabled:a.isDisabled,"aria-label":a["aria-label"]})})),[a,i,r]);return(0,gr.jsxs)(vD,{display:"flex",flexDirection:"row",gap:"md",paddingX:"standard"===r?"md":"none",alignItems:"center",className:(0,s.AK)("BaselineUI-IconColorInput",e),"data-block-id":o,style:t,ref:HP(c,u),children:["standard"===r&&n?(0,gr.jsx)(n,{size:24,className:(0,yr.Kj)({color:"icon.primary"})}):null,(0,gr.jsx)(AM,{...a,colorLabel:!1,renderTriggerButton:d})]})}));IM.displayName="IconColorInput";var MM={ar:{redo:"إعادة",undo:"تراجع"},cs:{redo:"Opakovat",undo:"Zrušit"},cy:{redo:"Ail-wneud",undo:"Dad-wneud"},da:{redo:"Gentag",undo:"Fortryd"},de:{redo:"Wiederholen",undo:"Rückgängig machen"},el:{redo:"Επανάληψη",undo:"Αναίρεση"},"en-GB":{redo:"Redo",undo:"Undo"},en:{redo:"Redo",undo:"Undo"},es:{redo:"Rehacer",undo:"Deshacer"},fi:{redo:"Tee sittenkin",undo:"Peru"},"fr-CA":{redo:"Rétablir",undo:"Annuler"},fr:{redo:"Rétablir",undo:"Annuler"},he:{redo:"ביצוע מחדש",undo:"ביטול פעולה"},hr:{redo:"Ponovi",undo:"Vrati"},id:{redo:"Ulangi",undo:"Kembalikan"},it:{redo:"Ripristina",undo:"Annulla"},ja:{redo:"やり直す",undo:"取り消す"},ko:{redo:"실행복귀",undo:"실행취소"},ms:{redo:"Buat Semula",undo:"Buat Asal"},"nb-NO":{redo:"Gjør om igjen",undo:"Angre"},nl:{redo:"Opnieuw",undo:"Herstel"},pl:{redo:"Ponów",undo:"Cofnij"},"pt-PT":{redo:"Refazer",undo:"Desfazer"},pt:{redo:"Refazer",undo:"Desfazer"},ru:{redo:"Повторить",undo:"Отменить"},sk:{redo:"Opakovať",undo:"Zrušiť"},sl:{redo:"Uveljavi",undo:"Razveljavi"},sv:{redo:"Gör om",undo:"Ångra"},th:{redo:"ทำซ้ำ",undo:"ถอนคำสั่งกลับ"},tr:{redo:"Yinele",undo:"Geri Al"},uk:{redo:"Повторити",undo:"Скасувати"},"zh-Hans":{redo:"重做",undo:"撤销"},"zh-Hant":{redo:"重作",undo:"復原"}},RM=uD({defaultClassName:"mnnh5s1 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6ki _1yep5z6kl _1yep5z6kx _1yep5z6kw _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6kv",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6vw _1yep5z6vx _1yep5z6vy _1yep5z6wk _1yep5z6wl _1yep5z6wm _1yep5z6x8 _1yep5z6x9 _1yep5z6xa _1yep5z6xw _1yep5z6xx _1yep5z6xy _1yep5z6122 _1yep5z616j _1yep5z616k",false:"_1yep5z6166 _1yep5z6116"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6115"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z6126 _1yep5z616c _1yep5z616a _1yep5z612n _1yep5z616d"},isDisabled:{true:"mnnh5s8 _1yep5z6yl"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61mo"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61nd"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61mg"]]}),FM=uD({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]}),NM=uD({defaultClassName:"_1i0ytqa3 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6kv _1yep5z6kw _1yep5z6ky",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z611e",false:"_1yep5z611g"},isDisabled:{true:"_1i0ytqa7 _1yep5z6yl",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61n9 _1yep5z61rt _1yep5z61rv"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61mp"],[{isInline:!1,isDisabled:!0},"_1yep5z61mr"]]}),OM=uD({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6kv",variantClassNames:{isInline:{false:"_1yep5z6115"},isDisabled:{true:"_1i0ytqad _1yep5z6yl"}},defaultVariants:{},compoundVariants:[]}),jM=uD({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kv",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});var LM=180,BM={size:1,thinning:0,smoothing:0,streamline:0,easing:e=>e,start:{taper:0,easing:e=>e,cap:!0},end:{taper:0,easing:e=>e,cap:!0},simulatePressure:!1},KM=l.forwardRef((({className:e,style:t,canvasClassName:n,canvasStyle:r,isBound:o=!0,strokeWidth:i=2,strokeColor:a="#3A87FD",onChange:c,defaultValue:u,onChangeEnd:p,enableHistory:h=!1,isInline:f=!0,isDisabled:m,placeholder:g,clearLabel:v,undoLabel:y,redoLabel:b,footerClassName:w,canvasRef:x,value:_,footerStyle:S,"data-block-id":C,"data-block-class":E,"aria-label":k="Drawing canvas",description:z="This is a canvas for drawing using a mouse or touch input.",...P},D)=>{let A=bA(MM),T=l.useRef(null),[I,M]=l.useState(_||u||[]),R=l.useMemo((()=>({...BM,...P})),[P]),[F,N]=l.useState(),O=(0,Jn.Me)(),{labelProps:j,fieldProps:L}=(0,Jn.NP)({...P,"aria-label":k,labelElementType:"span"}),{isFocusVisible:B,focusProps:K}=(0,Jn.Fx)({within:!0}),{hoverProps:V,isHovered:H}=(0,Jn.XI)({isDisabled:m}),{undo:$,redo:U,canRedo:Z,canUndo:q,push:G}=gA(I,{onAction:e=>{e&&(M(e),p?.(e))},isDisabled:!h}),{keyboardProps:W}=(0,Jn.v5)({onKeyDown:e=>{"Backspace"===e.key?ee():"z"===e.key&&(e.metaKey||e.ctrlKey)&&(e.shiftKey?Z&&U():q&&$())}}),[Y,X]=(0,l.useState)(!1),Q=(0,l.useCallback)((e=>{let t=e.currentTarget.getBoundingClientRect();N(t),e.target.setPointerCapture(e.pointerId);let n=[e.clientX-t.x,e.clientY-t.y,e.pressure];M((e=>[...e,[n]])),X(!0)}),[]),J=(0,l.useCallback)((e=>{if(1!==e.buttons||!F)return;let t=$M(e.nativeEvent).map((e=>[o?d(e.clientX-F.left,0,F.width):e.clientX-F.left,o?d(e.clientY-F.top,0,F.height):e.clientY-F.top,e.pressure]));M((e=>{let n=[...e];return n[e.length-1]=[...n[e.length-1],...t],n}))}),[F,o]);(0,l.useEffect)((()=>{c?.(I)}),[I,c]);let ee=()=>{M([]),c?.([]),G([])};return(0,gr.jsxs)("div",{ref:HP(T,D),className:(0,s.AK)("_1i0ytqa0","BaselineUI-FreehandCanvas",e),style:t,"aria-disabled":m,"data-block-id":C,"data-block-class":E,children:[P.label||h?(0,gr.jsxs)("div",{className:jM({isInline:f}),children:[P.label?(0,gr.jsx)(DA,{type:"label",size:"sm",...j,children:P.label}):(0,gr.jsx)("span",{}),h?(0,gr.jsxs)("div",{children:[(0,gr.jsx)(oA,{variant:"secondary",size:"sm",isDisabled:!q||m,icon:wr.UE,onPress:$,"aria-label":y||A.formatMessage("undo")}),(0,gr.jsx)(oA,{variant:"secondary",size:"sm",isDisabled:!Z||m,icon:wr.zG,onPress:U,"aria-label":b||A.formatMessage("redo")})]}):null]}):null,(0,gr.jsxs)("div",{role:"application",...(0,Jn.dG)(K,W,V,L),tabIndex:m?void 0:0,className:(0,s.AK)(RM({isInline:f,isHovered:H}),NM({isFocusVisible:B,isInline:f,isDisabled:!!m}),n),"aria-describedby":P["aria-describedby"]||O,style:r,ref:x,children:[(0,gr.jsx)(Jn.TX,{children:(0,gr.jsx)("div",{id:O,children:z})}),(0,gr.jsx)("svg",{width:r?.width||"100%",height:r?.height||"100%",onPointerDown:Q,onPointerMove:J,onPointerUp:()=>{F&&(p?.(I),G(I),X(!1))},children:(_||I).map(((e,t,n)=>t<n.length-1||!Y?(0,gr.jsx)(VM,{line:e,options:R,strokeColor:a,strokeWidth:i},t):(0,gr.jsx)(HM,{line:e,options:R,strokeColor:a,strokeWidth:i},t)))})]}),g||v?(0,gr.jsx)("div",{style:S,className:(0,s.AK)(OM({isInline:f,isDisabled:m}),w),children:!I.length&&g||!v?(0,gr.jsx)(BD,{size:"sm",variant:"ghost",label:g,isDisabled:!0}):(0,gr.jsx)(BD,{size:"sm",variant:"ghost",label:v,isDisabled:m,onPress:ee})}):null]})}));KM.displayName="FreehandCanvas";var VM=l.memo((({line:e,options:t,strokeColor:n,strokeWidth:r})=>{let o=(0,l.useMemo)((()=>(0,s.US)(zo(e.map((([e,t,n])=>({x:e,y:t,pressure:n}))),t))),[e,t]);return(0,gr.jsx)("path",{d:o,stroke:n,strokeWidth:r})}));VM.displayName="Stroke";var HM=l.memo((({line:e,options:t,strokeColor:n,strokeWidth:r})=>{let o=function({line:e,options:t}){let n=(0,l.useRef)([]),r=(0,l.useMemo)((()=>{let r,o=Math.ceil(e.length/LM);for(let i=0;i<o;i++)if(i===o-1||!n.current[i]){let o=e.slice(i*LM-(i>0?1:0),i*LM+LM);r=(0,s.US)(zo(o.map((([e,t,n])=>({x:e,y:t,pressure:n}))),t)),o.length>=(i>0?LM+1:LM)&&(n.current[i]=r)}return r}),[e,t]);return[...n.current,r]}({line:e,options:t});return(0,gr.jsx)(gr.Fragment,{children:o.map(((e,t)=>(0,gr.jsx)("path",{d:e,stroke:n,strokeWidth:r},t)))})}));function $M(e){if("function"==typeof e.getCoalescedEvents){let t=e.getCoalescedEvents();return t.length>0?t.flatMap((e=>$M(e))):[e]}return[e]}HM.displayName="SplitStroke";var UM=uD({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});var ZM=function(e){var t;return t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return us(t,e),t}(Qd),t.defaultAbles=e,t}([_c,kc,Mc,tu]),qM=l.forwardRef((({className:e,children:t,isRotatable:n,isResizable:r,isDraggable:o,style:i,onTransform:a,onTransformStart:c,onTransformEnd:u,onDoubleClick:d,onDragStart:p,onDragEnd:h,onDrag:f,onResizeStart:m,onResizeEnd:g,onResize:v,onRotateStart:y,onRotateEnd:b,onRotate:w,onSnap:x,isSnappable:_,elementGuidelines:S,hideAnchorOnDrag:C=!0,title:E,rotationPosition:k,autoUpdate:z,bound:P,snapRotationDegrees:D,snapRotationThreshold:A,scrollableAncestor:T,renderDirections:I,stopPropagation:M,transformOrigin:R,preventDefault:F},N)=>{let O=(0,l.useRef)(null),j=(0,l.useRef)(null),[L,B]=(0,l.useState)(document),K=(0,l.useRef)(L.createElement("div")),[V,H]=(0,l.useState)({}),[$,U]=(0,l.useState)(!1),[Z,q]=(0,l.useState)(!1),[G,W]=(0,l.useState)(),Y=function(e,t){let[n,r]=(0,l.useState)([]),o=()=>e?.flatMap((e=>[...t.querySelectorAll(e)])).map((e=>({current:e})));return(0,_r.useGranularEffect)((()=>{r(o())}),[],[o]),(0,_r.useGranularEffect)((()=>{let e=o();r(e)}),[e],[o]),n}(S,L);(0,l.useLayoutEffect)((()=>{let e=K.current;return K.current=L.createElement("div"),()=>{e.remove()}}),[L]);let{keyboardProps:X}=(0,Jn.v5)({onKeyDown:e=>{let t=e.shiftKey?10:1,n=e.metaKey||e.ctrlKey;function r(e,r="x"){n?j.current?.request("rotatable",{deltaRotate:e*t},!0):j.current?.request("draggable","x"===r?{deltaX:e*t}:{deltaY:e*t},!0)}switch(n&&e.shiftKey&&(t=45),e.key){case"ArrowRight":r(1);break;case"ArrowLeft":r(-1);break;case"ArrowUp":r(-1,"y");break;case"ArrowDown":r(1,"y")}requestAnimationFrame((()=>{j.current?.updateRect()}))}});(0,l.useEffect)((()=>{let e=BP(O.current);B(e);let t=K.current;function n(e){q(e.shiftKey)}function r(){q(!1)}return e.body.append(K.current),e.addEventListener("keydown",n),e.addEventListener("keyup",r),()=>{e.removeEventListener("keydown",n),e.removeEventListener("keyup",r),t.remove()}}),[]),function(e){let{scrollable:t,ownerDocument:n,onScroll:r}=e;(0,l.useEffect)((()=>{let e=(0,s.SD)(t,n);if(e)return("static"===e.style.position||!e.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),e.addEventListener("scroll",r),()=>{e.removeEventListener("scroll",r)}}),[t,r,n])}({scrollable:T,onScroll:()=>{j.current?.updateRect()},ownerDocument:L});let Q=(0,l.useCallback)((e=>{H((t=>({...t,...e.style}))),a?.(e)}),[a]),J=(0,l.useCallback)((e=>{if(U(!0),O.current?.focus(),P){let e=(0,s.SD)(P,L)?.getBoundingClientRect();W({position:"client",left:e?.left??0,top:e?.top??0,right:e?.right??0,bottom:e?.bottom??0})}p?.(e)}),[P,L,p]),ee=(0,l.useCallback)((e=>{U(!1),h?.(e)}),[h]),te=t({style:{...V.width&&{width:V.width},...V.height&&{height:V.height}}});return(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsx)("div",{role:"button",...X,ref:HP(O,N),style:{display:"inline-block",...i,...V},className:(0,s.AK)("_1vac7ws0",e),onDoubleClick:d,tabIndex:0,title:E,children:te}),(0,jn.createPortal)((0,gr.jsx)(ZM,{ref:j,target:O,draggable:o,resizable:r,rotatable:n,keepRatio:Z,throttleDrag:1,snappable:_||!!P,elementGuidelines:Y,snapRenderThreshold:.9,className:UM({isDragging:$&&C}),onRender:Q,onDragStart:J,onDragEnd:ee,useResizeObserver:z,useMutationObserver:z,onRenderEnd:u,onDrag:f,onResizeStart:m,onResizeEnd:g,onResize:v,onRotateStart:y,onRotateEnd:b,onRotate:w,onRenderStart:c,onSnap:x,rotationPosition:k,bounds:G,snapRotationDegrees:D,snapRotationThreshold:A,renderDirections:I,stopPropagation:M,preventDefault:F,transformOrigin:R}),K.current)]})}));qM.displayName="Transform";var GM={ar:{delete:"حذف",selectImage:"تحديد صورة"},cs:{delete:"Smazat",selectImage:"Vybrat obrázek"},cy:{delete:"Dileu",selectImage:"Dewiswch Ddelwedd"},da:{delete:"Slet",selectImage:"Vælg billede"},de:{delete:"Löschen",selectImage:"Bild auswählen"},el:{delete:"Διαγραφή",selectImage:"Επιλογή εικόνας"},"en-GB":{delete:"Delete",selectImage:"Select Image"},en:{delete:"Delete",selectImage:"Select Image"},es:{delete:"Eliminar",selectImage:"Seleccionar imagen"},fi:{delete:"Poista",selectImage:"Valitse kuva"},"fr-CA":{delete:"Supprimer",selectImage:"Sélectionner une image"},fr:{delete:"Supprimer",selectImage:"Sélectionner une image"},he:{delete:"מחיקה",selectImage:"בחירת תמונה"},hr:{delete:"Obriši",selectImage:"Odaberi sliku"},id:{delete:"Hapus",selectImage:"Pilih Gambar"},it:{delete:"Elimina",selectImage:"Seleziona immagine"},ja:{delete:"削除",selectImage:"イメージを選択"},ko:{delete:"삭제",selectImage:"이미지 선택"},ms:{delete:"Padam",selectImage:"Pilih Imej"},"nb-NO":{delete:"Slett",selectImage:"Velg bilde"},nl:{delete:"Verwijder",selectImage:"Selecteer afbeelding"},pl:{delete:"Usuń",selectImage:"Wybierz obraz"},"pt-PT":{delete:"Apagar",selectImage:"Selecionar imagem"},pt:{delete:"Apagar",selectImage:"Selecionar Imagem"},ru:{delete:"Удалить",selectImage:"Выбрать изобр."},sk:{delete:"Zmazať",selectImage:"Vybrať obrázok"},sl:{delete:"Izbriši",selectImage:"Izberi sliko"},sv:{delete:"Radera",selectImage:"Välj bild"},th:{delete:"ลบ",selectImage:"เลือกรูปภาพ"},tr:{delete:"Sil",selectImage:"Resim Seç"},uk:{delete:"Видалити",selectImage:"Обрати зображення"},"zh-Hans":{delete:"删除",selectImage:"选择图像"},"zh-Hant":{delete:"刪除",selectImage:"選取圖像"}},WM=l.forwardRef((({className:e,style:t,isInline:n=!0,accept:r="image/*",defaultImageSrc:o,imageSrc:i,imageAlt:a,pickerButtonLabel:c,isDisabled:d,onDrop:p,onPaste:h,includeCheckeredBackground:f=!0,"data-block-id":m,"data-block-class":g,pickerButtonStyle:v,pickerButtonClassName:y,footerClassName:b,footerStyle:w,clearLabel:x,placeholder:_,labelStyle:S,labelClassName:C,...E},k)=>{let z=l.useRef(null),P=l.useRef(null),{formatMessage:D}=bA(GM),[A,T]=u(i,o||null,(e=>{(0,s.kG)("string"!=typeof e),E.onValueChange?.(e?[e]:[])})),I=(0,l.useMemo)((()=>function(e){return e instanceof File?URL.createObjectURL(e):e}(A||void 0)),[A]),{fieldProps:M,labelProps:R}=(0,Jn.U$)(E),{dropProps:F,isDropTarget:N}=(0,Jn.LW)({ref:z,onDrop:async e=>{if(d)return;let t=await _T({items:e.items});t.length&&T(t[0]),p?.(e)},...E}),{clipboardProps:O}=(0,Jn.VP)({onPaste:async e=>{if(d)return;let t=await _T({items:e});t.length&&T(t[0]),h?.(e)},...E}),j={type:"file",onChange:e=>{let t=[...e.target.files];T(t[0]),E.onChange?.(e)},accept:r,disabled:d},{focusProps:L,isFocused:B,isFocusVisible:K}=(0,Jn.Fx)({within:!0}),{hoverProps:V,isHovered:H}=(0,Jn.XI)({isDisabled:d}),{imgProps:$,isLoading:U,isLoaded:Z}=uA({src:I,alt:a||""}),q={label:c||D("selectImage"),onPress:()=>z.current?.click(),variant:"secondary",isDisabled:d,excludeFromTabOrder:!0,className:(0,s.AK)(jD({isFocusVisible:K}),{_1yep5z6d8:N&&!d},y),style:v},G=(0,s.mS)({"data-loaded":Z,"data-block-id":m,"data-block-class":g,"data-hovered":H,"data-focused":B,"data-drop-target":N,"data-disabled":d,"data-focus-visible":K});return(0,gr.jsxs)(vD,{...G,className:(0,s.AK)("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:t,ref:k,children:[(0,gr.jsxs)("label",{...(0,Jn.dG)(F,V,L,R),className:(0,s.AK)(RM({isInline:n,isHovered:H,isDisabled:d,hasLoadedImage:!!I&&Z,showFocusRing:N||!!I&&K}),C),style:S,ref:z,children:[(0,gr.jsx)(Jn.TX,{children:(0,gr.jsx)("input",{...(0,Jn.dG)(M,O,j),ref:P})}),!I&&(0,gr.jsx)(BD,{...q}),!!I&&(U?(0,gr.jsx)(BT,{}):(0,gr.jsx)("img",{className:FM({isInline:n,isDisabled:d,hasLoadedImage:!!I&&Z&&f}),...$}))]}),_||x?(0,gr.jsx)("div",{style:w,className:(0,s.AK)(OM({isInline:n,isDisabled:d}),b),children:!I&&_||!x?(0,gr.jsx)(BD,{size:"sm",variant:"ghost",label:_,isDisabled:!0}):(0,gr.jsx)(BD,{size:"sm",variant:"ghost",label:x,isDisabled:d,onPress:()=>{T(null),P.current&&(P.current.value="")}})}):null]})}));WM.displayName="ImageDropZone";var YM="_1vm2oh48 _1yep5z6kw _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6jc _1yep5z6jd _1yep5z6je",XM=uD({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6l1 _1yep5z6kz _1yep5z6hk _1yep5z6l2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6ki _1yep5z6kx _1yep5z6hl _1yep5z6hm _1yep5z6hn",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6vt _1yep5z6vu _1yep5z6vv _1yep5z6wh _1yep5z6wi _1yep5z6wj _1yep5z6x5 _1yep5z6x6 _1yep5z6x7 _1yep5z6xt _1yep5z6xu _1yep5z6xv _1yep5z6121 _1yep5z616i _1yep5z616k",false:"_1yep5z611g"},isFocusVisible:{true:"_1yep5z6126 _1yep5z616c _1yep5z616a _1yep5z612n _1yep5z616d"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6yl"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61mp"],[{accent:"theme",isInline:!0},"_1yep5z61me"],[{accent:"positive",isInline:!1},"_1yep5z61mr"],[{accent:"theme",isInline:!1},"_1yep5z61mg"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61ny _1yep5z61rl _1yep5z61rn _1yep5z61ro"],[{isHovered:!0,isInline:!0},"_1yep5z61ro _1yep5z61ny _1yep5z61rl _1yep5z61rn"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61mq"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61mi"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61mf"]]}),QM=l.forwardRef((({className:e,style:t,isDisabled:n,isInline:r=!0,imageAlt:o,imageSrc:i,svgSrc:a,textValue:l,textStyle:c,onPress:u,onDelete:d,deleteAriaLabel:p,addAriaLabel:h,accent:f="positive","data-block-id":m,"data-block-class":g,...v},y)=>{let{focusProps:b,isFocused:w,isFocusVisible:x}=(0,Jn.Fx)({within:!0}),{isHovered:_,hoverProps:S}=(0,Jn.XI)({isDisabled:n}),{pressProps:C}=(0,Jn.r7)({isDisabled:n,onPress:u});(0,s.kG)(i||a||l,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let E=(0,s.mS)({"data-hovered":_,"data-focus-visible":x,"data-focused":w,"data-disabled":n});return(0,gr.jsxs)("div",{...v,className:(0,s.AK)(XM({isInline:r,isFocusVisible:x,isDisabled:n,isHovered:_,accent:f}),"BaselineUI-Preview",e),"data-block-id":m,"data-block-class":g,"aria-label":v["aria-label"]||o||l,style:t,ref:y,children:["string"==typeof a?(0,gr.jsx)("button",{disabled:n,...(0,Jn.dG)(S,b,C,E),className:YM,"aria-label":h,dangerouslySetInnerHTML:{__html:a}}):(0,gr.jsxs)("button",{...(0,Jn.dG)(S,b,C,E),disabled:n,style:c,"aria-label":h,className:YM,children:[i?(0,gr.jsx)("img",{src:i,alt:o,className:FM({isInline:r,isDisabled:n})}):null,!!a&&"object"==typeof a&&a,l]}),d?(0,gr.jsx)(oA,{isDisabled:n,className:"_1vm2oh49 _1yep5z6ho _1yep5z6hp _1yep5z6hq _1yep5z6fv","aria-label":p,size:"xs",icon:wr.XH,onPress:d}):null]})}));QM.displayName="Preview";var JM=uD({defaultClassName:"cw3m0n8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),eR=uD({defaultClassName:"cw3m0n0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{labelPosition:{end:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6ut _1yep5z6uu _1yep5z6uv",start:"_1yep5z613q _1yep5z613r _1yep5z613s _1yep5z6152 _1yep5z6153 _1yep5z6154"}},defaultVariants:{},compoundVariants:[]}),tR=uD({defaultClassName:"cw3m0n3 _16vugd05",variantClassNames:{isFocusVisible:{true:"_16vugd08"},isSelected:{true:"_16vugd07"},isDisabled:{true:"_16vugd0a"}},defaultVariants:{},compoundVariants:[]}),nR=({label:e,description:t},{isSelected:n,isFocusVisible:r,isDisabled:o,optionLabelPosition:i})=>(0,gr.jsxs)("div",{className:eR({labelPosition:i}),children:[(0,gr.jsx)("div",{className:tR({isSelected:n,isFocusVisible:r,isDisabled:o}),children:n?(0,gr.jsx)("div",{className:"cw3m0n7"}):null}),e?(0,gr.jsxs)("div",{className:"_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69c _1yep5z69d _1yep5z69e",children:[(0,gr.jsx)("span",{className:$T({isDisabled:o}),children:e}),t?(0,gr.jsx)("span",{className:JM({isDisabled:o}),children:t}):null]}):null]}),rR=({state:e,renderOption:t=nR,item:n,optionLabelPosition:r="end",optionStyle:o,optionClassName:i,isReadOnly:a,...c})=>{let u=!!c.isDisabled||!!c.disabledValues?.includes(n.id),d=l.useRef(null),{inputProps:p,isPressed:h,isSelected:f}=(0,Jn.xL)({...c,isDisabled:u,children:n.label,value:n.id},e,d),{focusProps:m,isFocusVisible:g,isFocused:v}=(0,Jn.Fx)(),{isHovered:y}=(0,Jn.XI)({isDisabled:u}),b=(0,s.mS)({"data-selected":f,"data-focused":v,"data-focus-visible":g,"data-hovered":y,"data-disabled":u,"data-pressed":h,"data-read-only":a});return(0,gr.jsxs)("label",{...b,style:o,className:(0,s.AK)("BaselineUI-Radio-Item",i),children:[(0,gr.jsx)(Jn.TX,{children:(0,gr.jsx)("input",{...(0,Jn.dG)(p,m),ref:d})}),t(n,{isFocusVisible:g,isSelected:f,isFocused:v,isHovered:y,isDisabled:u,optionLabelPosition:r,isReadOnly:a})]})},oR=l.forwardRef((({className:e,style:t,optionsContainerClassName:n,optionsContainerStyle:r,items:o,labelPosition:i="top",renderOption:a,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,"aria-details":d,"data-block-id":p,"data-block-class":h,...f},m)=>{let g=(0,sr.w)(f),{radioGroupProps:v,labelProps:y,descriptionProps:b,errorMessageProps:w}=(0,Jn.ar)({...f,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,"aria-details":d},g),x=tA({...f,descriptionProps:b,errorMessageProps:w,labelPosition:i}),_=(0,s.mS)({"data-orientation":f.orientation,"data-block-id":p,"data-block-class":h,"data-disabled":f.isDisabled,"data-readonly":f.isReadOnly});return(0,gr.jsxs)("div",{...(0,Jn.dG)(v,_),className:(0,s.AK)(JD({labelPosition:i}),"BaselineUI-RadioGroup",e),style:t,ref:m,children:[f.label||x?(0,gr.jsxs)("div",{className:QD({labelPosition:i,hasMessage:!!x}),children:[(0,gr.jsx)("span",{...y,className:(0,s.AK)(XD,"BaselineUI-RadioGroup-Label"),children:f.label}),"start"===i&&x]}):null,(0,gr.jsxs)("div",{className:(0,s.AK)({[HD]:f.isDisabled}),children:[(0,gr.jsx)("div",{className:(0,s.AK)("_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ks",n),style:r,children:o.map((e=>(0,gr.jsx)(rR,{state:g,renderOption:a,item:e,...f,value:e.id},e.id)))}),"top"===i&&x]})]})}));oR.displayName="RadioGroup";var iR=({id:e,defaultMessage:t,elementType:n=l.Fragment})=>{(0,s.kG)(e||t,"`id` or `defaultMessage` is required.");let r=bA();return(0,gr.jsx)(n,{children:r.formatMessage(e)||t})};iR.displayName="MessageFormat";var aR=l.forwardRef((({className:e,style:t,children:n,"data-block-id":r,"data-block-class":o,role:i="group",isDisabled:a,...s},l)=>{let{hoverProps:c,isHovered:u}=(0,Jn.XI)({isDisabled:a});return(0,gr.jsx)("div",{...c,role:i,"data-hovered":u,"data-disabled":a,"data-block-id":r,"data-block-class":o,className:e,style:t,...s,ref:l,children:n})}));aR.displayName="Group";var sR="UNSUPPORTED_IN_MENU";function lR(e,t){return t?(0,ep.flatMapDeep)(l.Children.toArray(e),(e=>l.isValidElement(e)&&e.props.children?[e,...l.Children.toArray(e.props.children)]:[e])).find((e=>l.isValidElement(e)&&e.type===t)):void 0}function cR(e){return lR(e,BD)||lR(e,oA)}var uR={horizontal:"xvr3wn0",vertical:"xvr3wn1"},dR=l.forwardRef((({className:e,style:t,children:n,collapsibleMenuProps:r,"data-block-id":o,"data-block-class":i,renderSpacer:a,onKeyDown:c,...u},d)=>{let{formatMessage:p}=bA(),[h,f]=(0,l.useState)(),m=function(e){return(0,l.useMemo)((()=>l.Children.toArray(e).map((e=>{let t,n,r=e,o=(0,ep.uniqueId)("item"),i=lR(r,AD),a=cR(r);if(i){let e=lR(i,FD);(0,s.kG)(e),t=cR(e),n=lR(i,QA).props.children}else t=a||r;let{onPress:c,label:u,"aria-label":d,iconStart:p,isDisabled:h,icon:f}=t.props,m=u||d||sR;(0,s.kG)("string"==typeof m,"ActionGroup children must have a string label");let g=`${o}-${m}`;return(0,l.createElement)(nr.ck,{key:g,onPress:c,textValue:m,"aria-label":d,icon:p||f,dialogContent:n,isDisabled:h,key:g},r)}))),[e])}(n),g=(0,rr.n_)({...u,children:m}),v=eD(d),y=(0,l.useRef)(null),[{visibleItems:b,isMeasuring:w},x]=function(e){let[t,n]=(0,l.useState)(e),r=(0,l.useRef)(null),o=LP((()=>{if(!r.current)return;let e=r.current.next();e.done?r.current=null:t===e.value?o():n(e.value)}));jP((()=>{r.current&&o()}));let i=LP((e=>{r.current=e(t),o()}));return[t,i]}({visibleItems:g.collection.size,isMeasuring:!1}),_=(0,l.useCallback)((()=>{let e=e=>{if(y.current&&v.current){let t=[...y.current.children],n=v.current.getBoundingClientRect().width,r=0,o=0;if(e<g.collection.size){let e=t.pop();e&&(r+=pR(e,!1,!0))}for(let[e,i]of t.entries()){if(r+=pR(i,0===e,e===t.length-1),!(Math.round(r)<=Math.round(n)))break;o++}return o}return e};x((function*(){yield{visibleItems:g.collection.size,isMeasuring:!0};let t=e(g.collection.size),n=t<g.collection.size&&t>0;yield{visibleItems:t,isMeasuring:n},n&&(yield{visibleItems:e(t),isMeasuring:!1})}))}),[x,v,g.collection.size]);tD({ref:(0,l.useMemo)((()=>({get current(){return v.current?.parentElement}})),[v]),onResize:_}),jP(_,[g.collection,_]);let{toolbarProps:S}=Jd(u,v),C=[...g.collection],E=C.slice(0,b),k=C.slice(b).filter((e=>e.textValue!==sR)),z=k.length>0;(0,l.useEffect)((()=>{f(void 0)}),[k.length]),(0,l.useEffect)((()=>{"vertical"===u.orientation&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.")}),[u.orientation]);let{keyboardProps:P}=(0,Jn.v5)({onKeyDown:c});return(0,gr.jsxs)(Jn.MT,{children:[(0,gr.jsx)("div",{...(0,Jn.dG)(S,P),className:e,"data-block-id":o,"data-block-class":i,"data-collapse":!0,style:{...t,flexBasis:w?"100%":void 0},ref:v,children:(0,gr.jsxs)("div",{ref:y,className:"_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6kv _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6kn",children:[E.map((e=>e.rendered)),z?(0,gr.jsxs)(gr.Fragment,{children:[!w&&a?(0,gr.jsx)(vD,{flexGrow:1}):null,(0,gr.jsx)(bT,{placement:"bottom end",renderTrigger:({buttonProps:e,ref:t})=>(0,gr.jsx)(oA,{...e,size:"md",icon:vr.nXP,"aria-label":p(fR.more),variant:"toolbar",ref:t}),...r,disabledKeys:k.filter((e=>e.props?.isDisabled)).map((e=>e.key)),items:k.map((e=>{let t=e.textValue||e["aria-label"];return(0,s.kG)(t,"ActionItem must have a label"),{id:e.key,label:t,icon:e.props.icon}})),onAction:e=>{let t=g.collection.getItem(e);(0,s.kG)(t,"Item not found");let{onPress:n,dialogContent:r}=t.props;n?.(),f(r)}})]}):null]})}),(0,gr.jsx)(BA,{isOpen:!!h,onOpenChange:e=>{e||f(void 0)},children:(0,gr.jsx)($A,{enableDrawer:"auto",style:{zIndex:1e5},children:h?l.cloneElement(h,{inheritDrawer:!0}):null})})]})}));function pR(e,t,n){let r=KP(e).getComputedStyle(e);return e.getBoundingClientRect().width+(t?0:hR(r.marginLeft))+(n?0:hR(r.marginRight))}function hR(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}dR.displayName="CollapsibleToolbar";var fR=wA({more:{id:"more",defaultMessage:"More"}}),mR=l.forwardRef((({className:e,style:t,"data-block-id":n,"data-block-class":r,"aria-controls":o,onKeyDown:i,...a},c)=>{let u=l.useRef(null),{toolbarProps:d}=Jd(a,u),{keyboardProps:p}=(0,Jn.v5)({onKeyDown:i});return(0,gr.jsx)("div",{...(0,Jn.dG)(d,p),"aria-controls":o,className:(0,s.AK)(uR[a.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,"data-block-id":n,"data-block-class":r,ref:HP(c,u),children:a.children})}));mR.displayName="WrappedToolbar";var gR=l.forwardRef(((e,t)=>{let n=e.isCollapsible?dR:mR;return(0,gr.jsx)(n,{...e,ref:t})}));gR.displayName="Toolbar";var vR=uD({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),yR=uD({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6fs _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z610d"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61ro _1yep5z61rn _1yep5z61rl _1yep5z61o5 _1yep5z61lo"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6fu"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61ro _1yep5z61rn _1yep5z61ny _1yep5z61rl"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61rm _1yep5z61rl _1yep5z61nz _1yep5z61lp"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61rl _1yep5z61rn _1yep5z61ny _1yep5z61ro"]]}),bR=uD({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z616d _1yep5z616c _1yep5z612n _1yep5z616a"},isSelected:{true:"_1yep5z610c"},isDisabled:{true:"z9nup83 _1yep5z610d"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61ln"]]}),wR=uD({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z616d _1yep5z616c _1yep5z612n _1yep5z616a"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z610d"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61mg"],[{isSelected:!0,isDisabled:!1},"_1yep5z61mg _1yep5z61lq"],[{isSelected:!0,isDisabled:!0},"_1yep5z61mg _1yep5z61lo"]]}),xR=uD({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z610e"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61lp"],[{isSelected:!1,isDisabled:!0},"_1j5skr7d _1yep5z61lo"],[{isSelected:!1,isHovered:!0},"_1yep5z61mg"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61ro _1yep5z61rn _1yep5z61ny _1yep5z61rl"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61rm _1yep5z61rl _1yep5z61nz"]]}),_R={xxs:8,xs:12,sm:16,md:20,lg:24},SR=l.forwardRef((({className:e,style:t,icon:n,size:r="md",variant:o="primary","data-block-id":i,"data-block-class":a,...c},u)=>{let d=(0,pr.l)(c),{buttonProps:p,isPressed:h,ref:f}=OD(c,d),{hoverProps:m,isHovered:g}=(0,Jn.XI)({isDisabled:c.isDisabled}),{isFocusVisible:v,isFocused:y,focusProps:b}=(0,Jn.Fx)(),w=(0,l.useMemo)((()=>"function"==typeof n?n:d.isSelected?n.selected:n.unselected),[n,d.isSelected]),x={isSelected:d.isSelected,isHovered:g,isFocusVisible:v,isDisabled:!!c.isDisabled},_=(0,s.mS)({"data-hovered":g,"data-selected":d.isSelected,"data-focus-visible":v,"data-disabled":c.isDisabled,"data-block-id":i,"data-block-class":a,"data-focused":y,"data-pressed":h});return(0,gr.jsx)("button",{...(0,Jn.dG)(p,m,b,_),className:(0,s.AK)("toolbar"===o&&xR(x),"primary"===o&&yR(x),"secondary"===o&&bR(x),"tertiary"===o&&wR(x),vR({size:r}),"BaselineUI-ToggleIconButton",e),style:t,ref:HP(f,u),children:(0,gr.jsx)(w,{size:_R[r]})})}));SR.displayName="ToggleIconButton";var CR="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",ER=uD({defaultClassName:"f6jv6b0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6fs",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6uw _1yep5z6ux _1yep5z6uy _1yep5z6142 _1yep5z6143 _1yep5z6144",false:"_1yep5z613n _1yep5z613o _1yep5z613p"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61h7 _1yep5z61h8 _1yep5z61h9 _1yep5z61hv _1yep5z61hw _1yep5z61hx _1yep5z61ij _1yep5z61ik _1yep5z61il _1yep5z61j7 _1yep5z61j8 _1yep5z61j9 _1yep5z61rv _1yep5z61rt _1yep5z61nc"]]}),kR=uD({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6ky",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),zR=uD({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ky _1yep5z6ki _1yep5z6kl _1yep5z6kx",variantClassNames:{isHovered:{true:"_1yep5z6115"},isDisabled:{true:"_1yep5z6yl"}},defaultVariants:{},compoundVariants:[]}),PR=uD({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jc _1yep5z6jd _1yep5z6je",variantClassNames:{isInline:{true:"_1yep5z6oz _1yep5z6p0 _1yep5z6p1 _1yep5z616k _1yep5z616i _1yep5z6121",false:"_1yep5z6p2 _1yep5z6p3 _1yep5z6p4 _1yep5z6we _1yep5z6wf _1yep5z6wg _1yep5z6x2 _1yep5z6x3 _1yep5z6x4 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg"}},defaultVariants:{},compoundVariants:[]}),DR=uD({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),AR="f6jv6b9 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it",TR="f6jv6bo",IR=[["Toolbar Focus","Alt+F10"],["Bold","Ctrl+B"],["Italic","Ctrl+I"],["Underline","Ctrl+U"],["Select All","Ctrl+A"],["Cut","Ctrl+X"],["Copy","Ctrl+C"],["Paste","Ctrl+V"],["Undo","Ctrl+Z"],["Redo","Ctrl+Shift+Z"],["Submit","Ctrl+Enter"],["Open Help Dialog","Ctrl+Shift+H"]],{dialog:{row:MR}}=yr.layoutSprinkleValues,RR=({isOpen:e,onClose:t})=>{let{formatMessage:n}=bA(),r=(0,Jn.Me)();return(0,gr.jsx)(BA,{isOpen:e,onOpenChange:e=>{e||t()},children:(0,gr.jsx)($A,{enableDrawer:"auto",style:{zIndex:999999},children:(0,gr.jsxs)(qA,{"aria-labelledby":r,className:"f6jv6bj _1yep5z6vz _1yep5z6w0 _1yep5z6w1 _1yep5z6wn _1yep5z6wo _1yep5z6wp _1yep5z6xb _1yep5z6xc _1yep5z6xd _1yep5z6xz _1yep5z6y0 _1yep5z6y1",drawerBackground:"subtle",children:[(0,gr.jsxs)(vD,{paddingLeft:MR.padding.horizontal.lg,paddingRight:MR.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:"f6jv6bk",children:[(0,gr.jsx)(DA,{id:r,elementType:"h3",type:"title",size:"md",children:n(FR.help)}),(0,gr.jsx)(oA,{icon:xr.b0,size:"md",variant:"secondary","aria-label":n(FR.close),onPress:t})]}),(0,gr.jsx)(mD,{className:"f6jv6bl"}),(0,gr.jsxs)(vD,{paddingX:MR.padding.horizontal.lg,role:"table","aria-labelledby":r,backgroundColor:"background.primary.subtle",children:[(0,gr.jsx)("div",{role:"rowgroup",children:(0,gr.jsxs)(vD,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:MR.padding.vertical.md,color:"text.primary",children:[(0,gr.jsx)("h6",{className:(0,yr.Kj)({typography:"heading.h6.semibold"}),role:"columnheader",children:n(FR.action)}),(0,gr.jsx)("h6",{className:(0,yr.Kj)({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:n(FR.shortcut)})]})}),(0,gr.jsx)("div",{role:"rowgroup",children:IR.map((([e,t],r)=>(0,gr.jsxs)(l.Fragment,{children:[(0,gr.jsxs)(vD,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:MR.padding.vertical.xs,style:{minHeight:40},children:[(0,gr.jsx)(DA,{type:"subtitle",size:"sm",role:"cell",children:n(FR[(0,ep.camelCase)(e)])}),(0,gr.jsx)(DA,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:(0,s._t)(t,!0)})]}),r!==IR.length-1&&(0,gr.jsx)(mD,{})]},e)))})]})]})})})},FR=wA({toolbarFocus:{id:"toolbarFocus",defaultMessage:"Toolbar Focus"},help:{id:"help",defaultMessage:"Help"},close:{id:"close",defaultMessage:"Close"},action:{id:"action",defaultMessage:"Action"},shortcut:{id:"shortcut",defaultMessage:"Shortcut"},bold:{id:"bold",defaultMessage:"Bold"},italic:{id:"italic",defaultMessage:"Italic"},underline:{id:"underline",defaultMessage:"Underline"},selectAll:{id:"selectAll",defaultMessage:"Select All"},cut:{id:"cut",defaultMessage:"Cut"},copy:{id:"copy",defaultMessage:"Copy"},paste:{id:"paste",defaultMessage:"Paste"},undo:{id:"undo",defaultMessage:"Undo"},redo:{id:"redo",defaultMessage:"Redo"},openHelpDialog:{id:"openHelpDialog",defaultMessage:"Open Help Dialog"},submit:{id:"submit",defaultMessage:"Submit"}}),NR=l.forwardRef((({value:e,defaultValue:t,onChange:n,placeholder:r,spellCheck:o,textBoxRef:i,isInline:a,isMinimal:c,isDisabled:d,editableContentAriaLabel:p,editorHandle:h,autoFocus:f,saveOnEnter:m,onSave:g},v)=>{let y=l.useRef(null),[b,w]=u(e,t||"",n),x=(0,l.useCallback)((e=>{w(e.currentTarget.value||"")}),[w]),_=(0,l.useCallback)((e=>{(m&&"Enter"===e.key&&!e.shiftKey||(e.ctrlKey||e.metaKey)&&"Enter"===e.key)&&(e.preventDefault(),g())}),[m,g]);(0,l.useImperativeHandle)(v,(()=>({clear:()=>{w("")}})));let S=(0,l.useCallback)((e=>{e.currentTarget.style.height="16px",e.currentTarget.style.height=e.currentTarget.scrollHeight+"px"}),[]);(0,_r.useGranularLayoutEffect)((()=>{let e=y.current;e&&(e.style.height="16px",e.style.height=e.scrollHeight+"px")}),[c],[b]),(0,l.useImperativeHandle)(h,(()=>({setCaretPosition:e=>{y.current&&(y.current.focus(),y.current.setSelectionRange(e,e))},focus:()=>{y.current&&y.current.focus()}})));let{focusProps:C,isFocused:E,isFocusVisible:k}=(0,Jn.Fx)(),{hoverProps:z,isHovered:P}=(0,Jn.XI)({}),D=(0,s.mS)({"data-focus-visible":k,"data-hovered":P,"data-focused":E});return(0,gr.jsx)("textarea",{...(0,Jn.dG)(C,z,D),ref:HP(y,i),className:(0,s.AK)(c?"f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6hx _1yep5z6hy _1yep5z6hz _1yep5z6eu _1yep5z6e3 _1yep5z6kv":[kR(),DR({isInline:a}),"f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6hx _1yep5z6hy _1yep5z6hz _1yep5z6eu"]),autoFocus:f,onChange:x,disabled:d,onInput:S,value:b,placeholder:r,spellCheck:o,"aria-label":p,onKeyDown:_})}));NR.displayName="PlainEditor";var OR="mention",jR="mention_input",LR=l.forwardRef((({onCancel:e,editor:t,element:n,onSelectionChange:r},o)=>{let{containerRef:i,items:a,maxMentionableUsersSuggestions:c}=(0,l.useContext)(nF),u=(0,l.useContext)(Ub),[d,p]=(0,l.useState)(""),{contains:h}=(0,Jn.L0)({sensitivity:"base"}),{formatMessage:f}=bA(),m=(0,l.useMemo)((()=>{let e=a.filter((e=>""===d||h(e.displayName,d))).map((e=>({id:e.id,label:e.displayName,data:e})));return c?(0,ep.take)(e,c):e}),[a,c,d,h]),g=(0,l.useCallback)((e=>(0,gr.jsx)(nr.ck,{children:e.label},e.id)),[]),v=(0,l.useCallback)(((e=!1)=>{let r=zw(t,n);r&&(Cp(t,{at:r}),e&&Pw(t))}),[t,n]),y=(0,er.P)({items:m,children:g,menuTrigger:"focus",onSelectionChange:e=>{v(!0),r?.(e)}}),b=l.useRef(null),w=l.useRef(null),x=l.useRef(null),_=l.useRef(null),S=(e=>{const[t,n]=(0,l.useState)(!1),[r,o]=(0,l.useState)(!1),i=(0,l.useCallback)((()=>{setTimeout((()=>{if(!e.current)return;const{selectionEnd:t,selectionStart:r,value:i}=e.current;n(0===r),o(t===i.length)}))}),[e]);return(0,l.useEffect)((()=>{i();const t=e.current;if(t)return t.addEventListener("input",i),t.addEventListener("selectionchange",i),t.addEventListener("keydown",i),t.addEventListener("pointerdown",i),t.addEventListener("pointerup",i),()=>{t.removeEventListener("input",i),t.removeEventListener("selectionchange",i),t.removeEventListener("keydown",i),t.removeEventListener("pointerdown",i),t.removeEventListener("pointerup",i)}}),[i,e]),(0,l.useMemo)((()=>({atStart:t,atEnd:r})),[t,r])})(w);(0,Jn.Fc)({ref:_,onInteractOutside:()=>{y.close()}});let{inputProps:C,listBoxProps:E}=(0,Jn.E_)({defaultItems:m,inputRef:w,buttonRef:b,listBoxRef:x,popoverRef:_,menuTrigger:"focus","aria-label":f(VR.mention)},y);(0,l.useEffect)((()=>{w.current?.focus()}),[]);let k=(0,l.useCallback)(((t="manual",n=!1)=>{v(n),e?.(t,y.inputValue)}),[e,v,y.inputValue]),z=(0,l.useRef)(u);(0,l.useEffect)((()=>{z.current&&!u&&k("deselect"),z.current=u}),[u,k]);let P=S?.atStart??!1,D=S?.atEnd??!1,A=(0,l.useCallback)((e=>{"Backspace"===e.key&&P?k("backspace",!0):"Escape"===e.key?k("escape",!0):"ArrowLeft"===e.key&&P?k("arrowLeft",!0):"ArrowRight"===e.key&&D&&k("arrowRight",!0);let n=eS.isUndo(e)&&t.history.undos.length>0,r=eS.isRedo(e)&&t.history.redos.length>0;(n||r)&&(e.preventDefault(),t[n?"undo":"redo"](),Pw(t))}),[P,D,k,t]),T=(0,l.useMemo)((()=>{if(!CSS.supports("field-sizing","content")){let e=KP(w.current),t=w.current?e?.getComputedStyle(w.current).font:void 0;return{width:t?(0,s.Zw)({text:y.inputValue,font:t}).width+10:"4ch"}}}),[y.inputValue]);return(0,gr.jsxs)(SD.Provider,{value:y,children:[(0,gr.jsx)("input",{...(0,Jn.dG)(C,{onKeyDown:A,onBlur:()=>{k("blur",!0)},onChange:e=>{p(e.target.value)}}),style:T,className:"f6jv6bn _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6l6 _1yep5z6l1 _1yep5z6kz _1yep5z6hc _1yep5z6eu",ref:HP(o,w)}),y.isOpen?(0,gr.jsx)(XA,{triggerRef:i,className:"f6jv6bi _1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6fs _1yep5z6l0 _1yep5z6kz _1yep5z6hf _1yep5z6l3",isNonModal:!0,ref:_,state:y,children:(0,gr.jsx)(kD,{...E,items:void 0,autoFocus:"first",ref:x,className:(0,yr.Kj)({width:"full"}),renderOption:oF})}):null]})}));LR.displayName="MentionInputContentElement";var BR=cg((({className:e,...t},n)=>{let{children:r,editor:o,element:i}=t,{items:a}=(0,l.useContext)(nF),c=(0,l.useRef)(null),[u,d]=(0,l.useState)(null);(0,l.useEffect)((()=>{let e=zw(o,i);if(!e)return;let t=zp(o,e);if(!t)return;let n=hp(o,t);return d(n),()=>{n.unref()}}),[o,i]);let p=(0,l.useCallback)((()=>{let e=c.current?.getRootNode()instanceof ShadowRoot;Up(o,{unit:"offset"}),Up(o,{unit:"character",distance:1}),JP()&&e&&Pw(o)}),[o]),h=(0,l.useCallback)((e=>{if(!e)return;let t=c.current?.getRootNode()instanceof ShadowRoot,n=a.find((t=>t.id===e));(0,s.kG)(n,"User not found");let r={type:OR,value:n.id,displayName:n.displayName,children:[{text:""}]};$p(o,[r,{text:" "}]),t?setTimeout((()=>{p()}),0):p()}),[o,a,p]);return(0,gr.jsxs)(KS,{as:"span","data-slate-value":i.value,contentEditable:!1,className:e,ref:n,...t,children:[(0,gr.jsx)(LR,{onCancel:(e,t)=>{var n,r,i;"backspace"!==e&&(n=o,r="@"+t,i={at:u?.current??void 0},tp.YR.insertText(n,r,i)),("arrowLeft"===e||"arrowRight"===e)&&Up(o,{distance:1,reverse:"arrowLeft"===e})},onSelectionChange:h,ref:c,element:i,editor:o}),r]})}));BR.displayName="MentionInputElement";var KR=cg((({className:e,onClick:t,children:n,...r},o)=>{let i=((e="element")=>Fx(e).get.element()||(console.warn("The `useElement(pluginKey)` hook must be used inside the node component's context"),{}))();return(0,gr.jsxs)(KS,{as:"span",className:e,contentEditable:!1,"data-user-id":i.value,onClick:sh(t,i),ref:o,...r,children:["@",i.displayName,n]})}));KR.displayName="MentionElement";var VR=wA({mention:{defaultMessage:"Mention",id:"mention"}});function HR(e){if(!e)return"";function t(e){if(function(e){return"text"in e}(e)){let t=function(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}(e.text);return e.bold&&(t=`<b>${t}</b>`),e.italic&&(t=`<i>${t}</i>`),e.underline&&(t=`<u>${t}</u>`),(e.color||e.backgroundColor)&&(t=`<span style="${function(e){return Object.entries(e).map((([e,t])=>`${(0,ep.kebabCase)(e)}:${t}`)).filter((([,e])=>!!e)).join(";")}((0,s.mS)({color:e.color||void 0,backgroundColor:e.backgroundColor||void 0}))}">${t}</span>`),t}let t=e.children?.map(HR).join("");switch(e.type){case XS:return`<p>${t}</p>`;case _C:return`<a href="${e.url}">${t}</a>`;case OR:return`<span data-user-id="${e.value}">${e.displayName}</span>`;default:return t}}return Array.isArray(e)?e.map((e=>t(e))).join(""):t(e)}function $R(e){e.startsWith("<p>")||(e=`<p>${e}</p>`);let t=(new DOMParser).parseFromString(zE().sanitize(e),"text/html"),n=t.querySelectorAll("[style]");for(let e of n)"underline"===e.style.textDecoration&&(e.style.textDecoration="",e.style.cssText||e.removeAttribute("style"),e.hasAttributes()?e.innerHTML=`<u>${e.innerHTML}</u>`:e.outerHTML=`<u>${e.innerHTML}</u>`);let r=t.querySelectorAll("br");for(let e of r)e.outerHTML=e.closest("p")?"\n":"<p>";return UR(t.body)}function UR(e,t){if(e.nodeType===Node.TEXT_NODE)return(0,Rf.tZ)("text",t,e.textContent);if(e.nodeType!==Node.ELEMENT_NODE)return null;let n={...t};switch(e.nodeName.toUpperCase()){case"B":n.bold=!0;break;case"I":case"EM":n.italic=!0;break;case"U":n.underline=!0;break;case"SPAN":{let t=function(e){return e?((e=e.trim()).endsWith(";")&&(e=e.slice(0,-1)),Object.fromEntries(e.split(";").map((e=>e.split(":").map((e=>e.trim())))).map((([e,t])=>[(0,ep.camelCase)(e),t])))):{}}(e.getAttribute("style")||"");"underline"===t["text-decoration"]&&(n.underline=!0),t.color&&(n.color=t.color),t.backgroundColor&&(n.backgroundColor=t.backgroundColor);break}}let r=[...e.childNodes].flatMap((e=>UR(e,n)));switch(0===r.length&&r.push((0,Rf.tZ)("text",n,"")),e.nodeName.toUpperCase()){case"BR":return(0,Rf.tZ)("text",t,"\n");case"SPAN":{let t=e.dataset.userId;return t?(0,Rf.tZ)("element",{type:OR,value:t,displayName:e.textContent},{text:""}):r}case"P":return(0,Rf.tZ)("element",{type:XS},r);case"A":return(0,Rf.tZ)("element",{type:_C,url:e.getAttribute("href")},r);default:return r}}function ZR(e){let t={children:[{text:" "}],type:jR};e.insertNode(t)}var qR=Ux({isElement:!0,isInline:!0,isMarkableVoid:!0,isVoid:!0,key:OR,options:{trigger:"@",triggerPreviousCharPattern:/^$|^[\s"']$/},plugins:[{isElement:!0,isInline:!0,isVoid:!0,key:jR}],withOverrides:(e,{options:{trigger:t,triggerPreviousCharPattern:n,triggerQuery:r}})=>{let{insertText:o}=e;return e.insertText=i=>{if(!e.selection||!(e=>e===t)(i)||r&&!r(e))return void o(i);let a=Dp(e,Ip(e,e.selection,zp(e,e.selection)));n?.test(a)?ZR(e):o(i)},e}}),GR=Bx([QS({component:function({className:e,children:t,...n}){return(0,gr.jsx)(KS,{asChild:!0,className:e,...n,children:(0,gr.jsx)("p",{children:t})})}}),Cg({component:EE(VS,{as:"b"})}),zg({component:EE(VS,{as:"i"})}),Ig({component:EE(VS,{as:"u"})}),ZS(),$S(),SC({component:function({className:e,children:t,...n}){return(0,gr.jsx)(KS,{asChild:!0,className:e,...n,children:(0,gr.jsx)("a",{className:wT({size:"sm"}),children:t})})}}),qR({component:KR})],{components:{[jR]:BR}}),WR=({isDisabled:e})=>{let{formatMessage:t}=bA(),n=vS();return(0,gr.jsxs)(AD,{type:"dialog",children:[(0,gr.jsx)(FD,{children:(0,gr.jsx)(oA,{icon:xr.xP,size:"sm",isDisabled:e,"aria-label":t(XR.addLink),className:CR,preventFocusOnPress:!0})}),(0,gr.jsx)(QA,{className:(0,yr.Kj)({boxShadow:"medium"}),placement:"top end",children:({close:e})=>(0,gr.jsx)(qA,{size:"content",style:{minWidth:240},children:(0,gr.jsx)(YR,{close:()=>{e(),setTimeout((()=>{Pw(n,n.selection)}),0)}})})})]})},YR=({close:e})=>{let t=vS(),{formatMessage:n}=bA(),r=yS((e=>function(e){let t=Gp(e,{match:{type:$x(e,_C)}}),[n]=t||[{url:""}];return n?.url}(e)),[]),[o,i]=l.useState(r?"show":"add"),[a,c]=l.useState(r||""),u=(0,gr.jsx)(vD,{padding:"lg",children:(0,gr.jsx)(IT,{label:n(XR.link),value:a,autoFocus:!0,onChange:c,placeholder:"https://yourdomain.com"})});return(0,gr.jsxs)(gr.Fragment,{children:["add"===o&&(0,gr.jsxs)(gr.Fragment,{children:[u,(0,gr.jsx)(vD,{display:"flex",justifyContent:"flex-end",padding:"lg",className:"f6jv6bm",children:(0,gr.jsx)(BD,{isDisabled:!(0,s.CB)(a,!0),label:n(XR.addLink),size:"sm",onPress:()=>{wC(t,{url:a,skipValidation:!0}),e?.()},preventFocusOnPress:!0})})]}),"show"===o&&(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsx)(vD,{padding:"lg",children:(0,gr.jsx)(DA,{type:"subtitle",size:"sm",children:r})}),(0,gr.jsxs)(vD,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[(0,gr.jsx)(BD,{label:n(XR.editLink),size:"sm",variant:"secondary",onPress:()=>{i("edit")},style:{flex:1,justifyContent:"center"}}),(0,gr.jsx)(BD,{label:n(XR.removeLink),size:"sm",onPress:()=>{vC(t),e?.()},preventFocusOnPress:!0,style:{flex:1,justifyContent:"center"}})]})]}),"edit"===o&&(0,gr.jsxs)(gr.Fragment,{children:[u,(0,gr.jsxs)(vD,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[(0,gr.jsx)(BD,{label:n(XR.cancel),size:"sm",variant:"secondary",onPress:()=>{i("show"),e?.()}}),(0,gr.jsx)(BD,{label:n(XR.save),size:"sm",onPress:()=>{wC(t,{url:a,skipValidation:!0}),e?.()}})]})]})]})};var XR=wA({addLink:{id:"addLink",defaultMessage:"Add Link",description:"Add Link"},editLink:{id:"editLink",defaultMessage:"Edit Link",description:"Edit Link"},removeLink:{id:"removeLink",defaultMessage:"Remove Link",description:"Remove Link"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},save:{id:"save",defaultMessage:"Save",description:"Save"},link:{id:"linkAnnotation",defaultMessage:"Link",description:"Link"}}),QR=((0,Ir.lu)("#ffffff00").toString("hexa"),[{label:"Red",color:"#ff0000"},{label:"Green",color:"#00ff00"},{label:"Blue",color:"#0000ff"},{label:"Yellow",color:"#ffff00"},{label:"Cyan",color:"#00ffff"},{label:"Magenta",color:"#ff00ff"},{label:"Black",color:"#000000"},{label:"White",color:"#ffffff"},{label:"Gray",color:"#808080"},{label:"Orange",color:"#ffa500"},{label:"Brown",color:"#a52a2a"},{label:"Purple",color:"#800080"}]),JR=({nodeType:e,icon:t,ariaLabel:n,isDisabled:r})=>{let o=yS((t=>Ah(t,e)),[]),i=vS();return(0,gr.jsx)(SR,{variant:"tertiary",isSelected:o,size:"sm",icon:t,"aria-label":n,isDisabled:r,onPress:()=>{Fh(i,{key:e})},preventFocusOnPress:!0})},eF=({nodeType:e,"aria-label":t,isDisabled:n})=>{let{updateColor:r,clearColor:o,color:i}=YS({customColors:[],colors:[],nodeType:e}),a=(0,l.useCallback)((({ref:r,triggerProps:o})=>(0,gr.jsx)(oA,{icon:"color"===e?vr.VL1:vr.mc$,"aria-label":t,size:"md",variant:"popover",isDisabled:n,className:CR,preventFocusOnPress:!0,...o,ref:r})),[e,t,n]),s=(0,l.useCallback)((e=>{e?r(e.toString("rgba")):o()}),[o,r]);return(0,gr.jsx)(AM,{presets:QR,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:a,value:i||"#000000",onChange:s,isDisabled:n})},tF=[{type:XS,children:[{text:""}]}],nF=l.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),rF=l.forwardRef((({value:e,defaultValue:t,onChange:n,style:r,spellCheck:o,placeholder:i,isInline:a,isDisabled:c,editableContentAriaLabel:d,containerRef:p,onHelpDialogOpenRequest:h,mentionableUsers:f,editorHandle:m,maxMentionableUsersSuggestions:g,autoFocus:v,editorRef:y,saveOnEnter:b,onSave:w},x)=>{let _=(0,l.useRef)(null),S=(0,Jn.Me)(),{formatMessage:C}=bA(),E=(0,l.useRef)(null),k=E.current,z=(0,l.useRef)(null),P=(0,l.useMemo)((()=>k?.getRootNode()instanceof ShadowRoot),[k]),[D,A]=u(e?$R(e):void 0,$R(t||"<p></p>"),(e=>{n&&n(HR(e))})),{keyboardProps:T}=(0,Jn.v5)({onKeyDown:e=>{(b&&"Enter"===e.key&&!e.shiftKey||(e.ctrlKey||e.metaKey)&&"Enter"===e.key)&&(e.preventDefault(),w()),e.altKey&&"F10"===e.key?(e.preventDefault(),_.current&&_.current.querySelector("button")?.focus()):e.continuePropagation(),JP()&&P&&z.current&&Pw(z.current)}});(0,l.useEffect)((()=>{c&&z.current&&Kp(z.current)}),[c]),(0,l.useImperativeHandle)(x,(()=>({startMention:()=>{z.current&&!E.current?.querySelector("input[role='combobox']")&&ZR(z.current)}}))),(0,l.useImperativeHandle)(m,(()=>({setCaretPosition:e=>{z.current&&(Pw(z.current),Up(z.current,{distance:e,unit:"character"}))},focus:()=>{z.current&&Pw(z.current)}})));let I=(0,l.useMemo)((()=>({items:f||[],containerRef:p,maxMentionableUsersSuggestions:g})),[f,p,g]);return(0,gr.jsx)(nF.Provider,{value:I,children:(0,gr.jsxs)(zS,{initialValue:D||tF,plugins:GR,editorRef:HP(z,y||null),onChange:e=>{A(e)},children:[(0,gr.jsxs)(gR,{className:AR,"aria-controls":S,ref:_,children:[(0,gr.jsxs)(vD,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[(0,gr.jsx)(JR,{nodeType:Sg,icon:xr.mY,ariaLabel:C(iF.bold),isDisabled:c}),(0,gr.jsx)(JR,{nodeType:kg,icon:xr.h3,ariaLabel:C(iF.italic),isDisabled:c}),(0,gr.jsx)(JR,{nodeType:Tg,icon:xr.Ad,ariaLabel:C(iF.underline),isDisabled:c})]}),(0,gr.jsx)(mD,{orientation:"vertical",className:TR}),(0,gr.jsx)(eF,{nodeType:US,"aria-label":C(iF.fontColor),isDisabled:c}),(0,gr.jsx)(mD,{orientation:"vertical",className:TR}),(0,gr.jsx)(eF,{nodeType:HS,"aria-label":C(iF.backgroundColor),isDisabled:c}),(0,gr.jsx)(mD,{orientation:"vertical",className:TR}),(0,gr.jsx)(WR,{isDisabled:c}),(0,gr.jsx)(mD,{orientation:"vertical",className:TR}),(0,gr.jsx)(oA,{className:CR,icon:vr.hYA,size:"sm","aria-label":C(iF.help),onPress:h})]}),(0,gr.jsx)(mD,{variant:"secondary"}),(0,gr.jsx)("div",{...T,ref:E,children:(0,gr.jsx)(AS,{id:S,disabled:c,readOnly:c,style:r,placeholder:i,autoFocus:v,spellCheck:o,"aria-label":d,className:(0,s.AK)(kR({isDisabled:c}),DR({isInline:a})),renderPlaceholder:({attributes:e,children:t})=>(0,gr.jsx)("span",{...e,className:(0,yr.Kj)({paddingY:"lg"}),children:t})})})]})})}));rF.displayName="RichEditor";var oF=({key:e,value:t},{isDisabled:n,optionProps:r,isFocused:o,_state:i},a)=>{let{hoverProps:s}=(0,Jn.XI)({isDisabled:n}),{label:l,data:c}=t;return(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsxs)("li",{...(0,Jn.dG)(r,s),className:zR({isDisabled:n,isHovered:o}),"data-active":o,ref:a,children:[(0,gr.jsx)(SI,{name:l,...c?.avatar}),(0,gr.jsxs)(vD,{display:"flex",flexDirection:"column",children:[(0,gr.jsx)(DA,{type:"subtitle",size:"sm",children:l}),(0,gr.jsx)(DA,{type:"helper",size:"sm",children:c?.description})]})]}),e===i.collection.getLastKey()?null:(0,gr.jsx)(mD,{})]})},iF=wA({bold:{defaultMessage:"Bold",id:"bold"},italic:{defaultMessage:"Italic",id:"italic"},underline:{defaultMessage:"Underline",id:"underline"},backgroundColor:{defaultMessage:"Background color",id:"backgroundColor"},fontColor:{defaultMessage:"Font color",id:"fontColor"},help:{defaultMessage:"Help",id:"help"}}),aF=l.memo(l.forwardRef((({className:e,style:t,"data-block-id":n,"data-block-class":r,enableRichText:o=!1,onCancel:i,onSave:a,isInline:c=!0,submitButtonIcon:u=xr.TY,submitButtonAriaLabel:d,cancelButtonAriaLabel:p,"aria-label":h,"aria-describedby":f,"aria-labelledby":m,"aria-details":g,editableContentAriaLabel:v="Editing Area",footerButtons:y,clearOnCancel:b,clearOnSave:w,...x},_)=>{let S=(0,l.useRef)(null),{formatMessage:C}=bA(),E=(0,l.useRef)(null),k=(0,l.useRef)(null),z=(0,l.useRef)(null),P=!o&&"minimal"===x.variant,D=(0,l.useRef)(null),[A,T]=l.useState(x.value||x.defaultValue),I=x.isDisabled||x.isSaveDisabled||!(0,s.iT)(A||""),{fieldProps:M}=(0,Jn.NP)({"aria-label":h,"aria-labelledby":m,"aria-describedby":f,"aria-details":g,labelElementType:"div"});P&&!x.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let R=(0,l.useCallback)((()=>{T(""),o?S.current?.reset():k.current?.clear()}),[o]),F=(0,l.useCallback)((()=>{I||(a?.(o?HR(S.current?.children):E.current.value),w&&R())}),[R,w,o,a,I]),N=(0,gr.jsx)(oA,{variant:"ghost","aria-label":d||C(sF.save),icon:u,isDisabled:I,size:"md",excludeFromTabOrder:P,className:P?"_1yep5z6j6 _1yep5z6j7 _1yep5z6j8":void 0,onPress:F,preventFocusOnPress:!0}),[O,j]=l.useState(!1),{keyboardProps:L}=(0,Jn.v5)({onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&e.shiftKey&&"h"===e.key&&(e.preventDefault(),j(!0))}}),B=(0,l.useCallback)((e=>{T(e),x.onChange?.(e)}),[x]);return(0,gr.jsxs)("div",{...(0,Jn.dG)(M,o?L:{}),role:"application",ref:HP(z,_),style:t,"data-block-id":n,"data-block-class":r,className:(0,s.AK)(ER({isInline:c,isMinimal:P}),"BaselineUI-Editor",e),"aria-disabled":x.isDisabled,children:[P?(0,gr.jsxs)(gr.Fragment,{children:[c?(0,gr.jsx)(SI,{className:"_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6j0 _1yep5z6j1 _1yep5z6j2",name:x.avatarName||""}):null,(0,gr.jsxs)("div",{className:PR({isInline:c}),children:[(0,gr.jsx)(NR,{isMinimal:P,textBoxRef:E,isInline:c,editableContentAriaLabel:v,...x,onChange:B,onSave:F}),N]})]}):(0,gr.jsxs)(gr.Fragment,{children:[o?(0,gr.jsx)(rF,{containerRef:z,ref:D,editorRef:S,isInline:c,editableContentAriaLabel:v,onHelpDialogOpenRequest:()=>{j(!0)},...x,onChange:B,onSave:F}):(0,gr.jsxs)(gr.Fragment,{children:[!c&&(0,gr.jsx)(mD,{variant:"secondary"}),(0,gr.jsx)(NR,{onCancel:i,textBoxRef:E,ref:k,isInline:c,editableContentAriaLabel:v,...x,onChange:e=>{T(e),x.onChange?.(e)},onSave:F})]}),(0,gr.jsx)(mD,{variant:"secondary"}),(0,gr.jsxs)("div",{className:(0,s.AK)(AR,(0,yr.Kj)({justifyContent:"space-between"})),children:[(0,gr.jsxs)(vD,{paddingX:"sm",gap:"sm",display:"flex",children:[o&&x.mentionableUsers?(0,gr.jsx)(oA,{icon:xr.lO,size:"sm","aria-label":C(sF.mention),onPress:()=>D.current?.startMention(),preventFocusOnPress:!0}):null,y?.map((({type:e,props:t},n)=>"action"===e?(0,gr.jsx)(oA,{...t,size:"sm",isDisabled:x.isDisabled||t.isDisabled},n):(0,gr.jsx)(SR,{...t,size:"sm",variant:"tertiary",isDisabled:x.isDisabled||t.isDisabled},n)))]}),(0,gr.jsxs)(vD,{children:[!!i&&(0,gr.jsx)(oA,{variant:"secondary",icon:xr.Ni,isDisabled:x.isDisabled,size:"md",onPress:()=>{i(),b&&R()},"aria-label":p||C(sF.cancel)}),N]})]})]}),(0,gr.jsx)(RR,{isOpen:O,onClose:()=>{j(!1)}})]})})));aF.displayName="Editor";var sF=wA({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}}),lF=l.forwardRef((({className:e,style:t,"data-block-id":n,"data-block-class":r,isMounted:o,children:i,transitions:a,elementType:s="div",...l},c)=>{let u=Tn(o,a),d=Qn[s];return u(((o,a)=>a&&(0,gr.jsx)(d,{className:e,"data-block-id":n,"data-block-class":r,style:{...t,...o},...l,ref:c,children:i})))}));lF.displayName="Transition";var cF=l.forwardRef((({className:e,style:t,hideForKeyboard:n,scrollRef:r,label:o,delay:i=1500,smoothScroll:a=!0,"data-block-id":c,"data-block-class":u},d)=>{let p=l.useRef(null),h=(0,Tr.Kf)(),[f,m]=l.useState(!1),g=(0,l.useCallback)((()=>{let e=r?.current||BP(p.current).body;return"column-reverse"===KP(e).getComputedStyle(e).flexDirection?e.scrollTop+2>=0:e.scrollTop+e.clientHeight+2>=e.scrollHeight}),[r]),[v,y]=l.useState(g),b=dA(),{buttonProps:w,isPressed:x}=(0,Jn.UW)({onPress:()=>{let e=r?.current||BP(p.current).body;e.scrollTo({top:e.scrollHeight,behavior:a?"smooth":"auto"})}},p),{focusProps:_,isFocused:S,isFocusVisible:C}=(0,Jn.Fx)(),{hoverProps:E,isHovered:k}=(0,Jn.XI)({}),z=(0,s.mS)({"data-block-id":c,"data-block-class":u,"data-pressed":x,"data-focus-visible":C,"data-hovered":k,"data-focused":S});return(0,l.useEffect)((()=>{y(g())}),[g]),(0,l.useEffect)((()=>{let e=r?.current||BP(p.current).body,t="onscrollend"in KP(e),n=()=>{setTimeout((()=>{m(!1),y(g())}),i)},o=()=>{m(!0),t||n()};return e.addEventListener("scroll",o),e.addEventListener("scrollend",n),()=>{e.removeEventListener("scroll",o),e.removeEventListener("scrollend",n)}}),[r,i,g]),(0,gr.jsxs)(lF,{isMounted:!(n&&"keyboard"===h||f||v),elementType:"button",transitions:{from:{opacity:0,transform:"translateX(-50%) translateY(10px)"},enter:{opacity:1,transform:"translateX(-50%) translateY(0)"},leave:{opacity:0,transform:"translateX(-50%) translateY(10px)"},immediate:b},...(0,Jn.dG)(w,_,E,z),className:(0,s.AK)("_8kqf970 _1yep5z6ow _1yep5z6ox _1yep5z6oy _1yep5z613b _1yep5z613c _1yep5z613d _1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6142 _1yep5z6143 _1yep5z6144 _1yep5z6yh _1yep5z6uq _1yep5z6ur _1yep5z6us _1yep5z6168",nI({isFocusVisible:C,variant:"high-contrast",isHovered:k}),"BaselineUI-ScrollControlButton",e),style:t,ref:HP(d,p),children:[(0,gr.jsx)(wr.Ov,{size:16}),o]})}));cF.displayName="ScrollControlButton";var uF="_1yep5z6jc _1yep5z6jd _1yep5z6je _1yep5z6jl _1yep5z6jm _1yep5z6jn",dF=uD({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6le _1yep5z6lf _1yep5z6lg _1yep5z6nw _1yep5z6nx _1yep5z6ny"},hasNoCloseBtn:{true:"_1yep5z6lk _1yep5z6ll _1yep5z6lm _1yep5z6nw _1yep5z6nx _1yep5z6ny _1yep5z6p2 _1yep5z6p3 _1yep5z6p4 _1yep5z6mq _1yep5z6mr _1yep5z6ms"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61g7 _1yep5z61g8 _1yep5z61g9"]]}),pF=l.forwardRef((({className:e,style:t,"data-block-id":n,"data-block-class":r,message:o,title:i,primaryActionLabel:a,cancelLabel:s,textInputProps:l,icon:c,iconColor:u,showCloseButton:d=!0,onPrimaryAction:p,onCancel:h,autoFocusButton:f,isPrimaryActionDisabled:m},g)=>{let v=(0,Jn.Me)(),{formatMessage:y}=bA(),b=i&&(0,gr.jsx)(DA,{id:v,type:"title",size:"sm",elementType:"h3",children:i});return(0,gr.jsxs)(qA,{className:e,style:t,"data-block-id":n,"data-block-class":r,size:"sm",variant:"primary",role:"alertdialog",ref:g,"aria-labelledby":v,children:[(0,gr.jsxs)("div",{className:dF({hasTitleAndIcon:!(!c||!i),hasNoCloseBtn:!d}),children:[(0,gr.jsxs)(vD,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[c?(0,gr.jsx)(c,{style:{color:u},size:24}):null,!c&&b,d?(0,gr.jsx)(oA,{icon:xr.b0,variant:"secondary",size:"md","aria-label":y(hF.close),onPress:h}):null]}),c?b:null]}),o?(0,gr.jsx)(vD,{elementType:"section",className:"_1v0p2z10",paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:o}):null,l?(0,gr.jsx)(vD,{paddingX:"lg",paddingBottom:"lg",children:(0,gr.jsx)(IT,{...l})}):null,s||a?(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsx)(mD,{}),(0,gr.jsxs)(vD,{padding:"lg",display:"flex",gap:"xl",children:[s?(0,gr.jsx)(BD,{variant:"secondary",className:uF,label:s,onPress:h,autoFocus:"cancel"===f}):null,a?(0,gr.jsx)(BD,{className:uF,label:a,onPress:p,autoFocus:"primary"===f,isDisabled:m}):null]})]}):null]})}));pF.displayName="AlertDialog";var hF=wA({close:{id:"close",defaultMessage:"Close",description:"Close button label"}}),fF=IP(),mF=l.forwardRef((({className:e,style:t,children:n,"data-block-id":r,"data-block-class":o,showCaret:i},a)=>{let c=(0,l.useMemo)((()=>{let e=n;return(!n||Array.isArray(n)&&0===n.length)&&(e=""),fF.render(e)}),[n]);return(0,gr.jsx)("div",{className:(0,s.AK)("_1yep5z6e3 _1yep5z6eu _1yep5z6i6 _1yep5z6i7 _1yep5z6i8 _1yep5z69i _1yep5z69j _1yep5z69k","_1t55bp70",{_1t55bp71:i},"BaselineUI-Markdown",e),"data-block-id":r,"data-block-class":o,style:t,ref:a,dangerouslySetInnerHTML:{__html:c}})}));function gF(e){let{formatMessage:t,locale:n}=bA(),[r,o]=l.useState(!1),[i,a]=l.useState(0),[s,c]=l.useState(0),[u,d]=l.useState(!1);(0,l.useEffect)((()=>{if(!e.current)return;let t=e.current,n=()=>{o(!1),a(0)},r=()=>{u||a(100*t.currentTime/t.duration)},i=()=>{c(t.duration)};return t.addEventListener("ended",n),t.addEventListener("timeupdate",r),t.addEventListener("loadedmetadata",i),()=>{t.removeEventListener("ended",n),t.removeEventListener("timeupdate",r),t.removeEventListener("loadedmetadata",i)}}),[u,e]);let p=(0,l.useCallback)((()=>{(async()=>{e.current&&(e.current.paused?(await e.current.play(),o(!0),RP(t(vF.playing),"polite")):(e.current.pause(),o(!1),RP(t(vF.paused),"polite")))})()}),[t,e]),h=(0,l.useCallback)((t=>{e.current&&(e.current.currentTime=t*e.current.duration/100,RP(function(e,t){let n=Math.floor(e/3600),r=Math.floor(e%3600/60),o=e%60,i={...n&&{hours:n},...r&&{minutes:r},seconds:Math.floor(o)};return new Intl.DurationFormat(t,{style:"long"}).format(i)}(e.current.currentTime,n.locale),"assertive"))}),[n.locale,e]);return{isPlaying:r,progress:i,duration:s,togglePlay:p,seek:h,setProgress:a,formattedCurrentTime:e.current?.currentTime?yF(e.current?.currentTime):"00:00",formattedDuration:s?yF(s):"00:00",setIsSliderDragging:d}}mF.displayName="Markdown";var vF=wA({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function yF(e){return[Math.floor(e%3600/60),Math.floor(e%60)].map((e=>e.toString().padStart(2,"0"))).join(":")}var bF=l.forwardRef((({className:e,style:t,size:n="lg",sources:r,"data-block-id":o,"data-block-class":i,...a},c)=>{let u=l.useRef(null),{isPlaying:d,progress:p,duration:h,togglePlay:f,seek:m,formattedDuration:g,formattedCurrentTime:v,setProgress:y,setIsSliderDragging:b}=gF(u),{formatMessage:w}=bA(),x=(0,s.mS)({"data-block-id":o,"data-block-class":i,"data-state":d?"playing":"paused","data-loaded":h>0});return(0,gr.jsxs)("div",{...x,...a,className:(0,s.AK)("_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q","BaselineUI-AudioPlayer",e),role:"group",style:t,ref:c,children:[(0,gr.jsx)(Jn.TX,{children:(0,gr.jsx)("audio",{ref:u,children:r.map((({url:e,type:t})=>(0,gr.jsx)("source",{src:e,type:t},e)))})}),(0,gr.jsx)(SR,{icon:d?vr.fpf:vr.o1U,variant:"toolbar",isSelected:d,size:n,"aria-label":w(d?wF.pause:wF.play),style:{borderRadius:"50%"},onPress:f}),(0,gr.jsxs)("div",{className:"rta2n91 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6z9 _1yep5z6ut _1yep5z6uu _1yep5z6uv _1yep5z6166 _1yep5z6106",children:[(0,gr.jsx)("span",{"aria-hidden":!0,children:v}),(0,gr.jsx)(aA,{"aria-label":w(wF.audioTimeline),value:p,minValue:0,maxValue:100,className:"rta2n90",onChange:e=>{y(e),b(!0)},onChangeEnd:e=>{m(e),b(!1)}}),(0,gr.jsx)("span",{"aria-hidden":!0,children:g})]})]})}));bF.displayName="AudioPlayer";var wF=wA({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}}),xF=uD({defaultClassName:"_1w920rn2 _1yep5z6d6 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6hl _1yep5z6hm _1yep5z6hn",variantClassNames:{isFocusVisible:{true:"_1yep5z6l1 _1yep5z6kz _1yep5z6hc"},isSelected:{true:"_1yep5z6l1 _1yep5z6kz _1yep5z6hc"},isLoading:{true:"_1yep5z614w _1yep5z614x _1yep5z614y"},imageWidth:{sm:"_1w920rn6",md:"_1w920rn7"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rn8 _1yep5z6l1 _1yep5z6kz _1yep5z6hc"]]}),_F=uD({defaultClassName:"_1w920rn9 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6fw _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocusVisible:{true:"_1w920rna _1yep5z6l1 _1yep5z6kz _1yep5z6hc"},isSelected:{true:"_1w920rnb"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rnc _1yep5z61rm _1yep5z61rl _1yep5z61nz"]]}),SF=({items:e,ulRef:t})=>{let{length:n}=e,r=l.useRef(null);return(0,l.useLayoutEffect)((()=>{if(!r.current)return;let t=r.current.closest(".BaselineUI-ImageGallery")?.querySelector(`[data-image-key='${e?.at(-1)?.key}']`)?.cloneNode(!0);(0,s.kG)(t,"Node is not defined."),r.current?.prepend(t)}),[e,t]),(0,gr.jsx)("div",{className:xF(),ref:r,children:(0,gr.jsx)(vD,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:"_1w920rne",children:n})})},CF=({fit:e,item:t,deleteElement:n})=>{let{formatMessage:r}=bA(),{imgProps:o,isLoading:i,isLoaded:a}=uA({src:t.data?.src,alt:t.data?.alt??""}),s=Tn(a,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}});return i?(0,gr.jsx)(BT,{"aria-label":r(DF.loading)}):s(((t,r)=>r&&(0,gr.jsx)(Qn.div,{role:"img","aria-label":o.alt,style:{...t,backgroundImage:`url(${o.src})`,backgroundSize:e},className:"_1w920rnd _1yep5z6kw",children:n})))},EF=({item:{value:e},options:{optionProps:t,isFocusVisible:n,isSelected:r},liRef:o,fit:i="contain",imageWidth:a=102,onDelete:l,aspectRatio:c,className:u,imageClassName:d,imageLabelClassName:p,renderImage:h=((e,{deleteElement:t})=>(0,gr.jsx)(CF,{item:e,deleteElement:t,fit:i}))})=>{let f=(0,Jn.Me)(),{formatMessage:m}=bA();(0,s.kG)(e&&nD(e),"Expected value to be a list option");let g=(0,ep.isNumber)(a)?void 0:xF({imageWidth:a}),v=(0,ep.isNumber)(a)?{width:a}:void 0,y=l?(0,gr.jsx)("div",{className:"_1w920rnf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6fs _1yep5z6ho _1yep5z6hp _1yep5z6hq",children:(0,gr.jsx)(oA,{"aria-label":m(DF.delete),size:"xs",icon:Ar.b0,onPress:()=>{l(e.id)},UNSAFE_NON_INTERACTIVE:!0})}):null;return(0,gr.jsxs)("li",{...t,ref:o,className:(0,s.AK)("_1w920rn1 _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69i _1yep5z69j _1yep5z69k",u),"aria-labelledby":f,children:[(0,gr.jsx)("div",{className:(0,s.AK)(xF({isFocusVisible:n,isSelected:r,isLoading:!0}),g,d),style:{aspectRatio:c?.toString(),...v},"data-image-key":e.id,children:h(e,{deleteElement:y??void 0,onDelete:l})}),(0,gr.jsx)("span",{id:f,className:(0,s.AK)(_F({isFocusVisible:n,isSelected:r}),p),children:e.label})]})};function kF(e){return e.map((e=>({id:e.id,label:e.label,data:{src:e.src,alt:e.alt}})))}var zF={width:0,display:"block"},PF=l.forwardRef((({className:e,style:t,fit:n="cover",onReorder:r,"data-block-id":o,"data-block-class":i,onDelete:a,imageWidth:c="sm",aspectRatio:d=3/4,items:p,defaultItems:h=[],onKeyDown:f,imageContainerClassName:m,imageClassName:g,labelClassName:v,onListChange:y,renderImage:b,...w},x)=>{let _=l.useRef(null),[S,C]=(0,l.useState)([]),{formatMessage:E}=bA(),[k,z]=u(w.selectedKeys,w.defaultSelectedKeys??[],w.onSelectionChange),[P,D]=u(p?kF(p):void 0,kF(h),y?e=>{y?.(function(e){return e.map((e=>({id:e.id,label:e.label,src:e.data?.src,alt:e.data?.alt})))}(e))}:void 0),A=(0,l.useCallback)((e=>{let t=e.target.key,n=e.keys;if("before"===e.target.dropPosition){let e=function(e,t,n){let r=e.findIndex((e=>e.id===t)),o=[...n].map((t=>e.findIndex((e=>e.id===t)))),i=[...e];for(let e of o){let[t]=i.splice(e,1);i.splice(r,0,t)}return i}(P,t,n);D(e)}else if("after"===e.target.dropPosition){let e=function(e,t,n){let r=e.findIndex((e=>e.id===t)),o=[...n].map((t=>e.findIndex((e=>e.id===t)))),i=[...e],a=0;for(let e of o){let[t]=i.splice(e-a,1);i.splice(r,0,t),a++}return i}(P,t,n);D(e)}r?.(e)}),[P,r,D]),T=(0,l.useCallback)((()=>{a&&S.length&&(D(P.filter((e=>!S.includes(e.id)))),a(new Set(S)),C([]))}),[S,P,a,D]),I=(0,l.useCallback)(((e,t,r)=>(0,gr.jsx)(EF,{item:e,options:t,liRef:r,fit:n,imageWidth:c,aspectRatio:d,onDelete:a?e=>{C([e])}:void 0,renderImage:b,className:m,imageClassName:g,imageLabelClassName:v})),[n,c,d,a,b,m,g,v]),{keyboardProps:M}=(0,Jn.v5)({onKeyDown(e){if(f?.(e),"Backspace"===e.key||"Delete"===e.key){if(!a)return;if([...k].length)C([...k]);else{let t=e.target.dataset.key;C([t])}}}});return(0,gr.jsxs)("div",{...M,ref:x,style:t,className:(0,s.AK)("BaselineUI-ImageGallery",e),"data-block-id":o,"data-block-class":i,children:[(0,gr.jsx)(kD,{...w,selectedKeys:k,items:P,onReorder:A,layout:"grid",orientation:"vertical",className:"_1w920rn0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6km",ref:_,dropIndicatorStyle:zF,renderOption:I,renderDragPreview:e=>(0,gr.jsx)(SF,{items:e,ulRef:_}),onSelectionChange:z,getItems:e=>[...e].map((e=>{let t=function(e,t){return e.find((e=>e.id===t))}(P,e);return{src:t?.src||"",alt:t?.alt||"",key:e}}))}),(0,gr.jsx)(BA,{isOpen:!![...S].length,onOpenChange:e=>{e||C([])},children:(0,gr.jsx)($A,{isDismissable:!0,children:(0,gr.jsx)(pF,{showCloseButton:!1,title:"Are you sure you want to delete this item?",primaryActionLabel:E(DF.delete),cancelLabel:E(DF.cancel),onCancel:()=>{C([])},onPrimaryAction:T,autoFocusButton:"cancel"})})})]})}));PF.displayName="ImageGallery";var DF=wA({delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},loading:{id:"loading",defaultMessage:"Loading"}}),AF=l.forwardRef((({className:e,style:t,items:n,"data-block-id":r,"data-block-class":o,hideLabel:i,size:a="md",isDisabled:c,showSelectedIcon:d=!0,excludeFromTabOrder:p,onPress:h,isSelected:f,defaultSelected:m,onButtonSelectionChange:g,moreAriaLabel:v,...y},b)=>{let{formatMessage:w}=bA(),x=rD(),_=(0,cr.d)({items:n,...y,defaultSelectedKey:y.defaultSelectedKey||n?.[0]?.id,children:x,validationState:"error"===y.validationState?"invalid":"valid"}),[S,C]=u(f,!!m,(e=>{g?.({isSelected:e,selectedKey:_.selectedKey})})),{hoverProps:E,isHovered:k}=(0,Jn.XI)({isDisabled:c}),z=(0,l.useMemo)((()=>{let e=_.collection.getItem(_.selectedKey),t=e?.textValue||e?.["aria-label"],n=e?.value?.icon,r={size:a,isSelected:S,onPress:e=>{C(!S),h?.(e)},isDisabled:c,excludeFromTabOrder:p};return i&&n?(0,gr.jsx)(SR,{icon:n,"aria-label":t,variant:"toolbar",...r}):(0,gr.jsx)(HT,{iconStart:n,label:t,...r})}),[p,i,S,c,h,C,a,_.collection,_.selectedKey]),P=y["aria-label"],D=(0,l.useCallback)((({buttonProps:e,ref:t})=>(delete e["aria-labelledby"],(0,gr.jsx)(Tr.NL,{...e,children:(0,gr.jsx)(oA,{"aria-label":v||`${w(TF.more)} ${P}`,ref:t,icon:br.v4,variant:"toolbar",size:a,className:(0,s.AK)(KT({isSelected:S}),"_1sexph01 _1yep5z616p _1yep5z616q _1yep5z616r _1yep5z6191 _1yep5z6192 _1yep5z6193 _1yep5z61a7 _1yep5z61a8 _1yep5z61a9 _1yep5z617v _1yep5z617w _1yep5z617x _1yep5z61q4 _1yep5z61q5 _1yep5z61q6"),isDisabled:c,excludeFromTabOrder:p})}))),[P,p,w,S,c,v,a]),A=(0,s.mS)({"data-block-id":r,"data-block-class":o,"data-hovered":k,"data-selected":S,"data-disabled":c}),T=eD(b),I=(0,l.useMemo)((()=>({state:_,popoverAnchorRef:T})),[_,T]);return(0,gr.jsx)(gI.Provider,{value:I,children:(0,gr.jsxs)(vD,{...E,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:(0,s.AK)("_1sexph00","BaselineUI-ButtonSelect",e),"aria-label":y["aria-label"],"aria-labelledby":y["aria-labelledby"],"aria-describedby":y["aria-describedby"],"aria-details":y["aria-details"],style:t,ref:T,...A,children:[z,(0,gr.jsx)(bI,{isDisabled:c,showSelectedIcon:d,placement:"bottom start",items:n,...y,style:{width:20},variant:"ghost",renderTrigger:D})]})})}));AF.displayName="ButtonSelect";var TF=wA({more:{id:"more",defaultMessage:"More"}}),IF=uD({defaultClassName:"_18v88n10 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6kv",variantClassNames:{labelPosition:{top:"_1yep5z613n _1yep5z613o _1yep5z613p",start:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6152 _1yep5z6153 _1yep5z6154 _1yep5z6ut _1yep5z6uu _1yep5z6uv"}},defaultVariants:{},compoundVariants:[]}),MF=uD({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6kv _1yep5z6l6 _1yep5z6ky _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z6109"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),RF=uD({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6ks",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z6zp",warning:"_1yep5z6zx"},isReadOnly:{true:"_1yep5z610b"}},defaultVariants:{},compoundVariants:[]}),FF=uD({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6l9 _1yep5z6l7 _1yep5z6gq _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z611k",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6vt _1yep5z6vu _1yep5z6vv _1yep5z6wh _1yep5z6wi _1yep5z6wj _1yep5z6x5 _1yep5z6x6 _1yep5z6x7 _1yep5z6xt _1yep5z6xu _1yep5z6xv _1yep5z616k _1yep5z616i _1yep5z611y _1yep5z616b _1yep5z616a _1yep5z612n _1yep5z616d"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z612n"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"_1yep5z61rv _1yep5z61rt _1yep5z61nc"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"_18v88n1n"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"_1yep5z61nd"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"_1yep5z61nd"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"_18v88n1o"]]}),NF=uD({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),OF=uD({defaultClassName:"_18v88n19 _1yep5z6i3 _1yep5z6i4 _1yep5z6i5",variantClassNames:{labelPosition:{top:"_1yep5z6sh _1yep5z6si _1yep5z6sj",start:"_1yep5z6me _1yep5z6mf _1yep5z6mg _1yep5z613n _1yep5z613o _1yep5z613p"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"_1yep5z61q7 _1yep5z61q8 _1yep5z61q9"]]}),jF=uD({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6ky",variantClassNames:{isFocusVisible:{true:"_1yep5z6116 _1yep5z612v _1yep5z6169"},isHovered:{true:"_1yep5z6116 _1yep5z612v _1yep5z6169"},isOpen:{true:"_1yep5z612v _1yep5z6169"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0},"_1yep5z61mh _1yep5z61o6 _1yep5z61rk"],[{isHovered:!0},"_1yep5z61mh _1yep5z61o6 _1yep5z61rk"],[{isOpen:!0},"_1yep5z61o6 _1yep5z61rk"]]}),LF=l.forwardRef((({className:e,style:t,inputStyle:n,inputClassName:r,"data-block-id":o,"data-block-class":i,label:a,items:c,showSelectedIcon:u=!1,onSelectionChange:d,onInputChange:p,isInvalid:h=!1,labelPosition:f="top",validationState:m="valid",variant:g="primary",toggleLabel:v,renderOption:y,showIcon:b=!0,filter:w,minValue:x,maxValue:_,inputType:S="text",...C},E)=>{let{contains:k}=(0,Jn.L0)({sensitivity:"base"}),z=rD(),P=(0,er.P)({...C,defaultFilter:w||k,defaultItems:c,onSelectionChange:d,onInputChange:p,children:z,validationState:h?"invalid":"valid"}),D=l.useRef(null),A=l.useRef(null),T=l.useRef(null),I=l.useRef(null),M=l.useRef(null),{buttonProps:R,inputProps:F,listBoxProps:N,labelProps:O,errorMessageProps:j,descriptionProps:L,validationErrors:B}=(0,Jn.E_)({...C,inputRef:A,defaultItems:c,buttonRef:D,listBoxRef:T,popoverRef:I,validationState:"error"===m?"invalid":"valid"},P),K=C.errorMessage||B.join(" "),V=tA({...C,errorMessage:K,descriptionProps:L,errorMessageProps:j,labelPosition:f});K&&(m="error");let{hoverProps:H,isHovered:$}=(0,Jn.XI)({isDisabled:C.isDisabled}),{isFocused:U,focusProps:Z,isFocusVisible:q}=(0,Jn.Fx)(),G=TT({isReadOnly:C.isReadOnly,validationState:m}),W=(0,s.mS)({"data-read-only":C.isReadOnly,"data-disabled":C.isDisabled,"data-validation-state":m,"data-focused":U,"data-focus-visible":q}),{labelProps:Y,fieldProps:X}=(0,Jn.NP)({label:a,"aria-label":C["aria-label"],"aria-labelledby":C["aria-labelledby"],"aria-describedby":C["aria-describedby"],"aria-details":C["aria-details"]});return(0,gr.jsx)(SD.Provider,{value:P,children:(0,gr.jsxs)("div",{className:(0,s.AK)(IF({labelPosition:f}),e,"BaselineUI-ComboBox"),"data-block-id":o,"data-block-class":i,style:t,ref:E,children:[a||"start"===f&&V?(0,gr.jsxs)("div",{className:OF({labelPosition:f,hasMessage:!!V}),children:[(0,gr.jsx)("label",{...(0,Jn.dG)(O,Y),className:NF({isDisabled:C.isDisabled}),children:a}),"start"===f&&V]}):null,(0,gr.jsxs)("div",{...H,className:FF({validationState:m,isHovered:$,isFocused:U,variant:g,isReadOnly:!!C.isReadOnly,isDisabled:!!C.isDisabled}),ref:M,children:[(0,gr.jsx)("input",{...(0,Jn.dG)(F,Z,W,X,"number"===S?{type:"number",min:x,max:_,onKeyDown:e=>{("ArrowUp"===e.key||"ArrowDown"===e.key)&&e.preventDefault()}}:null),ref:A,className:(0,s.AK)(MF({isDisabled:C.isDisabled,labelPosition:f}),"BaselineUI-ComboBox-Input",r),style:n}),G&&b?(0,gr.jsx)(G,{className:RF({validationState:m,isReadOnly:C.isReadOnly}),size:16}):null,(0,gr.jsx)(BD,{...R,ref:D,variant:"popover",label:v,className:jF({isFocusVisible:!C.isDisabled&&!C.isReadOnly&&q,isHovered:!C.isDisabled&&!C.isReadOnly&&$,isOpen:P.isOpen})})]}),P.isOpen?(0,gr.jsx)(XA,{className:eT,ref:I,triggerRef:M,state:P,children:(0,gr.jsx)(kD,{...N,items:c,ref:T,renderOption:y,selectionMode:"single",showSelectedIcon:u,className:nT})}):null,"top"===f&&V]})})}));LF.displayName="ComboBox";var BF=l.forwardRef((({item:e,renderGridItem:t,state:n},r)=>{let o=eD(r),i=(0,Jn.Fb)({node:e},n,o),a="none"!==n.selectionManager.selectionMode&&"toggle"===n.selectionManager.selectionBehavior,{checkboxProps:s}=(0,Jn.fQ)({key:e.key},n);return t(e,{...i,checkBoxProps:a?s:void 0},o)}));BF.displayName="GridListItem";var KF=e=>{"Enter"===e.key||"Escape"===e.key||e.stopPropagation()},VF=l.forwardRef((({className:e,style:t,isEditing:n=!1,"data-block-id":r,"data-block-class":o,...i},a)=>{let l=rD(),c=(0,rr.n_)({...i,children:l}),u=eD(a),{gridProps:d}=(0,Jn.c)(i,c,u),p=n?KF:d.onKeyDownCapture;return(0,gr.jsx)("ul",{...d,className:(0,s.AK)("BaselineUI-GridList",e),"data-block-id":r,"data-block-class":o,style:t,ref:u,onKeyDownCapture:p,children:[...c.collection].map((e=>(0,gr.jsx)(BF,{item:e,state:c,renderGridItem:i.renderGridItem},e.key)))})}));VF.displayName="GridList";var HF=l.forwardRef((({className:e,selectionMode:t,style:n,"data-block-id":r,"data-block-class":o,tooltipProps:i,renderActionItem:a,...c},u)=>{let d=eD(u),p=rD(),h=(0,rr.n_)({...c,selectionMode:t,suppressTextValueWarning:!0,children:p}),{actionGroupProps:f}=function(e,t,n){let{isDisabled:r,orientation:o="horizontal"}=e,[i,a]=(0,l.useState)(!1);(0,ro.bt)((()=>{var e;a(!(!n.current||!(null===(e=n.current.parentElement)||void 0===e?void 0:e.closest('[role="toolbar"]'))))}),[n]),[...t.collection.getKeys()].some((e=>!t.disabledKeys.has(e)))||(r=!0);let{direction:s}=(0,oo.bU)(),c=(0,Dr.E7)(n),u="rtl"===s&&"horizontal"===o,d=NP[t.selectionManager.selectionMode];return i&&"toolbar"===d&&(d="group"),{actionGroupProps:{...(0,ro.zL)(e,{labelable:!0}),role:d,"aria-orientation":"toolbar"===d?o:void 0,"aria-disabled":r,onKeyDown:e=>{if(e.currentTarget.contains(e.target))switch(e.key){case"ArrowRight":case"ArrowDown":e.preventDefault(),e.stopPropagation(),"ArrowRight"===e.key&&u?c.focusPrevious({wrap:!0}):c.focusNext({wrap:!0});break;case"ArrowLeft":case"ArrowUp":e.preventDefault(),e.stopPropagation(),"ArrowLeft"===e.key&&u?c.focusNext({wrap:!0}):c.focusPrevious({wrap:!0})}}}}}({...c,selectionMode:t,children:p},h,d);return(0,gr.jsx)(vD,{...f,display:"flex",flexDirection:"row",gap:"xs",className:(0,s.AK)("BaselineUI-ActionGroup",e),"data-block-id":r,"data-block-class":o,style:n,ref:d,children:[...h.collection].map((e=>((0,s.kG)(e.value),(0,gr.jsx)($F,{item:e,state:h,isDisabled:c.isDisabled,onAction:c.onAction,tooltipProps:i,renderActionItem:a},e.key))))})}));HF.displayName="ActionGroup";var $F=({item:e,state:t,tooltipProps:n,renderActionItem:r,onAction:o,isDisabled:i})=>{let{buttonProps:a}=function(e,t,n){let r=t.selectionManager.selectionMode,o={role:OP[r]};if("none"!==r){let n=t.selectionManager.isSelected(e.key);o["aria-checked"]=n}let i=e.key===t.selectionManager.focusedKey,a=(0,ro.iW)((()=>{i&&t.selectionManager.setFocusedKey(null)}));return(0,l.useEffect)((()=>()=>{a()}),[a]),{buttonProps:(0,ro.dG)(o,{tabIndex:i||null==t.selectionManager.focusedKey?0:-1,onFocus(){t.selectionManager.setFocusedKey(e.key)},onPress(){t.selectionManager.select(e.key)}})}}({key:e.key},t),c=i||t.selectionManager.isDisabled(e.key),u=t.selectionManager.isSelected(e.key);(0,s.kG)(e.value);let{icon:d}=e.value;(0,s.kG)(d);let p=(0,l.useMemo)((()=>((0,s.kG)(e.value),"function"==typeof n?n(e.value):n)),[n,e.value]);return(0,gr.jsx)(Tr.NL,{...(0,Jn.dG)(a,{onPress:()=>{o?.(e.key)}}),children:(0,gr.jsx)(aT,{text:e.textValue,size:"sm",variant:"inverse",includeArrow:!1,offset:4,...p,children:r?.(e,{isSelected:u,isDisabled:c})||(0,gr.jsx)(oA,{variant:"tertiary",icon:d,"aria-label":e.textValue,size:"sm",isDisabled:c,className:(0,s.AK)({_1dc3b8m0:u},"BaselineUI-ActionGroup-Item")})})})},UF=l.forwardRef((({className:e,style:t,items:n,optionsContainerClassName:r,label:o,icon:i,value:a,defaultValue:c,onChange:u,isDisabled:d,optionClassName:p,optionStyle:h,labelPosition:f="top","data-block-id":m,"data-block-class":g,...v},y)=>{let b=(0,l.useMemo)((()=>n.map((e=>({id:e.color,label:e.label})))),[n]),w=(0,Jn.Me)();return(0,l.useEffect)((()=>{!o&&!v["aria-label"]&&!v["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.")}),[o,v]),(0,gr.jsxs)(vD,{...GP(v),className:(0,s.AK)("BaselineUI-ColorSwatchPicker",e),"data-block-id":m,"data-block-class":g,display:"flex",flexDirection:"top"===f?"column":"row",alignItems:"top"===f?"flex-start":"center",justifyContent:"space-between",gap:"md",style:t,ref:y,children:[i||o?(0,gr.jsxs)(vD,{display:"flex",alignItems:"center",gap:"md",children:[i?(0,gr.jsx)(i,{size:24,className:(0,yr.Kj)({color:"icon.primary"})}):null,o?(0,gr.jsx)(DA,{id:w,type:"label",size:"sm",children:o}):null]}):null,(0,gr.jsx)(kD,{className:(0,s.AK)("_1yep5z61ov _1yep5z61ow _1yep5z61ox _1yep5z61g1 _1yep5z61g2 _1yep5z61g3",r),selectionMode:"single",items:b,orientation:"horizontal",defaultSelectedKeys:c?[c]:void 0,disabledKeys:d?b.map((e=>e.id)):void 0,isDisabled:d,selectedKeys:a?[a]:void 0,onSelectionChange:e=>{u?.([...e][0])},optionClassName:p,optionStyle:h,renderOption:({key:e,textValue:t},{isSelected:n,isFocusVisible:r,isDisabled:o,optionProps:i},a)=>(0,gr.jsx)("li",{...i,"data-disabled":o,className:(0,s.AK)("ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",i.className),ref:a,children:(0,gr.jsx)(sM,{isFocusVisible:r,color:e,isSelected:n,"aria-label":t,isInteractive:!0,isDisabled:o})}),...v,"aria-labelledby":o?w:v["aria-labelledby"]})]})}));UF.displayName="ColorSwatchPicker"},4286:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=_(Array.prototype.forEach),d=_(Array.prototype.pop),p=_(Array.prototype.push),h=_(String.prototype.toLowerCase),f=_(String.prototype.toString),m=_(String.prototype.match),g=_(String.prototype.replace),v=_(String.prototype.indexOf),y=_(String.prototype.trim),b=_(Object.prototype.hasOwnProperty),w=_(RegExp.prototype.test),x=S(TypeError);function _(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l(e,t,r)}}function S(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(e,n)}}function C(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function E(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function k(t){const n=s(null);for(const[r,o]of e(t))b(t,r)&&(Array.isArray(o)?n[r]=E(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=k(o):n[r]=o);return n}function z(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return _(n.get);if("function"==typeof n.value)return _(n.value)}e=r(e)}function n(){return null}return n}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"]),D=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"]),A=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"]),T=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"]),I=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"]),M=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=i(["#text"]),F=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"]),N=i(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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"]),O=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"]),j=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),B=a(/<%[\w\W]*|[\w\W]*%>/gm),K=a(/\${[\w\W]*}/gm),V=a(/^data-[\-\w.\u00B7-\uFFFF]/),H=a(/^aria-[\-\w]+$/),$=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=a(/^(?:\w+script|data):/i),Z=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=a(/^html$/i),G=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var W=Object.freeze({__proto__:null,MUSTACHE_EXPR:L,ERB_EXPR:B,TMPLIT_EXPR:K,DATA_ATTR:V,ARIA_ATTR:H,IS_ALLOWED_URI:$,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:Z,DOCTYPE_NAME:q,CUSTOM_ELEMENT:G});const Y={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},X=function(){return"undefined"==typeof window?null:window},Q=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));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}};function J(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X();const n=e=>J(e);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==Y.document)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:c,Node:_,Element:S,NodeFilter:E,NamedNodeMap:L=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:B,DOMParser:K,trustedTypes:V}=t,H=S.prototype,U=z(H,"cloneNode"),Z=z(H,"remove"),G=z(H,"nextSibling"),ee=z(H,"childNodes"),te=z(H,"parentNode");if("function"==typeof c){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ne,re="";const{implementation:oe,createNodeIterator:ie,createDocumentFragment:ae,getElementsByTagName:se}=r,{importNode:le}=o;let ce={};n.isSupported="function"==typeof e&&"function"==typeof te&&oe&&void 0!==oe.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:de,TMPLIT_EXPR:pe,DATA_ATTR:he,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:me,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ve}=W;let{IS_ALLOWED_URI:ye}=W,be=null;const we=C({},[...P,...D,...A,...I,...R]);let xe=null;const _e=C({},[...F,...N,...O,...j]);let Se=Object.seal(s(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}})),Ce=null,Ee=null,ke=!0,ze=!0,Pe=!1,De=!0,Ae=!1,Te=!0,Ie=!1,Me=!1,Re=!1,Fe=!1,Ne=!1,Oe=!1,je=!0,Le=!1;const Be="user-content-";let Ke=!0,Ve=!1,He={},$e=null;const Ue=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ze=null;const qe=C({},["audio","video","img","source","image","track"]);let Ge=null;const We=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Je=Qe,et=!1,tt=null;const nt=C({},[Ye,Xe,Qe],f);let rt=null;const ot=["application/xhtml+xml","text/html"],it="text/html";let at=null,st=null;const lt=r.createElement("form"),ct=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!st||st!==e){if(e&&"object"==typeof e||(e={}),e=k(e),rt=-1===ot.indexOf(e.PARSER_MEDIA_TYPE)?it:e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===rt?f:h,be=b(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,at):we,xe=b(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,at):_e,tt=b(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,f):nt,Ge=b(e,"ADD_URI_SAFE_ATTR")?C(k(We),e.ADD_URI_SAFE_ATTR,at):We,Ze=b(e,"ADD_DATA_URI_TAGS")?C(k(qe),e.ADD_DATA_URI_TAGS,at):qe,$e=b(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,at):Ue,Ce=b(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,at):{},Ee=b(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,at):{},He=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,ze=!1!==e.ALLOW_DATA_ATTR,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ae=e.SAFE_FOR_TEMPLATES||!1,Te=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Le=e.SANITIZE_NAMED_PROPS||!1,Ke=!1!==e.KEEP_CONTENT,Ve=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||$,Je=e.NAMESPACE||Qe,Se=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(ze=!1),Ne&&(Fe=!0),He&&(be=C({},R),xe=[],!0===He.html&&(C(be,P),C(xe,F)),!0===He.svg&&(C(be,D),C(xe,N),C(xe,j)),!0===He.svgFilters&&(C(be,A),C(xe,N),C(xe,j)),!0===He.mathMl&&(C(be,I),C(xe,O),C(xe,j))),e.ADD_TAGS&&(be===we&&(be=k(be)),C(be,e.ADD_TAGS,at)),e.ADD_ATTR&&(xe===_e&&(xe=k(xe)),C(xe,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&C(Ge,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&($e===Ue&&($e=k($e)),C($e,e.FORBID_CONTENTS,at)),Ke&&(be["#text"]=!0),Ie&&C(be,["html","head","body"]),be.table&&(C(be,["tbody"]),delete Ce.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,re=ne.createHTML("")}else void 0===ne&&(ne=Q(V,a)),null!==ne&&"string"==typeof re&&(re=ne.createHTML(""));i&&i(e),st=e}},dt=C({},["mi","mo","mn","ms","mtext"]),pt=C({},["foreignobject","annotation-xml"]),ht=C({},["title","style","font","a","script"]),ft=C({},[...D,...A,...T]),mt=C({},[...I,...M]),gt=function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});const n=h(e.tagName),r=h(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Xe?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Ye?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(ft[n]):e.namespaceURI===Ye?t.namespaceURI===Qe?"math"===n:t.namespaceURI===Xe?"math"===n&&pt[r]:Boolean(mt[n]):e.namespaceURI===Qe?!(t.namespaceURI===Xe&&!pt[r])&&!(t.namespaceURI===Ye&&!dt[r])&&!mt[n]&&(ht[n]||!ft[n]):!("application/xhtml+xml"!==rt||!tt[e.namespaceURI]))},vt=function(e){p(n.removed,{element:e});try{te(e).removeChild(e)}catch(t){Z(e)}},yt=function(e,t){try{p(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(Fe||Ne)try{vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){let t=null,n=null;if(Re)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===rt&&Je===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ne?ne.createHTML(e):e;if(Je===Qe)try{t=(new K).parseFromString(o,rt)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?re:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Je===Qe?se.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},wt=function(e){return ie.call(e.ownerDocument||e,e,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},xt=function(e){return e instanceof B&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof L)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},_t=function(e){return"function"==typeof _&&e instanceof _},St=function(e,t,r){ce[e]&&u(ce[e],(e=>{e.call(n,t,r,st)}))},Ct=function(e){let t=null;if(St("beforeSanitizeElements",e,null),xt(e))return vt(e),!0;const r=at(e.nodeName);if(St("uponSanitizeElement",e,{tagName:r,allowedTags:be}),e.hasChildNodes()&&!_t(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return vt(e),!0;if(e.nodeType===Y.progressingInstruction)return vt(e),!0;if(Te&&e.nodeType===Y.comment&&w(/<[/\w]/g,e.data))return vt(e),!0;if(!be[r]||Ce[r]){if(!Ce[r]&&kt(r)){if(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,r))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))return!1}if(Ke&&!$e[r]){const t=te(e)||e.parentNode,n=ee(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=U(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,G(e))}}return vt(e),!0}return e instanceof S&&!gt(e)?(vt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ae&&e.nodeType===Y.text&&(t=e.textContent,u([ue,de,pe],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(n.removed,{element:e.cloneNode()}),e.textContent=t)),St("afterSanitizeElements",e,null),!1):(vt(e),!0)},Et=function(e,t,n){if(je&&("id"===t||"name"===t)&&(n in r||n in lt))return!1;if(ze&&!Ee[t]&&w(he,t));else if(ke&&w(fe,t));else if(!xe[t]||Ee[t]){if(!(kt(e)&&(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&w(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ge[t]);else if(w(ye,g(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!Ze[e])if(Pe&&!w(me,g(n,ge,"")));else if(n)return!1;return!0},kt=function(e){return"annotation-xml"!==e&&m(e,ve)},zt=function(e){St("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:l}=i,c=at(a);let p="value"===a?l:y(l);if(r.attrName=c,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,St("uponSanitizeAttribute",e,r),p=r.attrValue,Te&&w(/((--!?|])>)|<\/(style|title)/i,p)){yt(a,e);continue}if(r.forceKeepAttr)continue;if(yt(a,e),!r.keepAttr)continue;if(!De&&w(/\/>/i,p)){yt(a,e);continue}Ae&&u([ue,de,pe],(e=>{p=g(p,e," ")}));const h=at(e.nodeName);if(Et(h,c,p)){if(!Le||"id"!==c&&"name"!==c||(yt(a,e),p=Be+p),ne&&"object"==typeof V&&"function"==typeof V.getAttributeType)if(s);else switch(V.getAttributeType(h,c)){case"TrustedHTML":p=ne.createHTML(p);break;case"TrustedScriptURL":p=ne.createScriptURL(p)}try{s?e.setAttributeNS(s,a,p):e.setAttribute(a,p),xt(e)?vt(e):d(n.removed)}catch(e){}}}St("afterSanitizeAttributes",e,null)},Pt=function e(t){let n=null;const r=wt(t);for(St("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)St("uponSanitizeShadowNode",n,null),Ct(n)||(n.content instanceof l&&e(n.content),zt(n));St("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,s=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!_t(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Me||ut(t),n.removed=[],"string"==typeof e&&(Ve=!1),Ve){if(e.nodeName){const t=at(e.nodeName);if(!be[t]||Ce[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof _)r=bt("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===Y.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Fe&&!Ae&&!Ie&&-1===e.indexOf("<"))return ne&&Oe?ne.createHTML(e):e;if(r=bt(e),!r)return Fe?null:Oe?re:""}r&&Re&&vt(r.firstChild);const c=wt(Ve?e:r);for(;a=c.nextNode();)Ct(a)||(a.content instanceof l&&Pt(a.content),zt(a));if(Ve)return e;if(Fe){if(Ne)for(s=ae.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(xe.shadowroot||xe.shadowrootmode)&&(s=le.call(o,s,!0)),s}let d=Ie?r.outerHTML:r.innerHTML;return Ie&&be["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&w(q,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Ae&&u([ue,de,pe],(e=>{d=g(d,e," ")})),ne&&Oe?ne.createHTML(d):d},n.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Me=!0},n.clearConfig=function(){st=null,Me=!1},n.isValidAttribute=function(e,t,n){st||ut({});const r=at(e),o=at(t);return Et(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(ce[e]=ce[e]||[],p(ce[e],t))},n.removeHook=function(e){if(ce[e])return d(ce[e])},n.removeHooks=function(e){ce[e]&&(ce[e]=[])},n.removeAllHooks=function(){ce={}},n}return J()}()},31108:(e,t,n)=>{"use strict";var r=n(85893),o=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.03 9.53a.75.75 0 0 0 0-1.06L5.56 6l2.47-2.47a.75.75 0 0 0-1.06-1.06l-3 3a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06 0",clipRule:"evenodd"})]}),i=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.97 2.47a.75.75 0 0 0 0 1.06L6.44 6 3.97 8.47a.75.75 0 0 0 1.06 1.06l3-3a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),a=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.47 8.03a.75.75 0 0 0 1.06 0L6 5.56l2.47 2.47a.75.75 0 0 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 0 0 0 1.06",clipRule:"evenodd"})]}),s=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#checkmark-icon_svg__a)",children:r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.03 2.845a.75.75 0 0 1 0 1.06l-6.53 6.53-3.53-3.53a.75.75 0 0 1 1.06-1.06l2.47 2.47 5.47-5.47a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"checkmark-icon_svg__a",children:r.jsx("path",{fill:"#fff",d:"M0 0h12v12H0z"})})})]}),l=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 10.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12",clipRule:"evenodd"})]}),c=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.75 3.5a1.25 1.25 0 1 1 2.5 0v.75h-2.5zm-1.5.75V3.5a2.75 2.75 0 0 1 5.5 0v.75H9c.966 0 1.75.784 1.75 1.75v3A1.75 1.75 0 0 1 9 10.75H3A1.75 1.75 0 0 1 1.25 9V6c0-.966.784-1.75 1.75-1.75z",clipRule:"evenodd"})]}),u=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.75 3.5a1.25 1.25 0 1 1 2.5 0v.75h-2.5zm-1.5.75V3.5a2.75 2.75 0 0 1 5.5 0v.75H9c.966 0 1.75.784 1.75 1.75v3A1.75 1.75 0 0 1 9 10.75H3A1.75 1.75 0 0 1 1.25 9V6c0-.966.784-1.75 1.75-1.75zM8 5.75H3a.25.25 0 0 0-.25.25v3c0 .138.112.25.25.25h6A.25.25 0 0 0 9.25 9V6A.25.25 0 0 0 9 5.75z",clipRule:"evenodd"})]}),d=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.75 6a.75.75 0 0 1-.75.75H1a.75.75 0 0 1 0-1.5h10a.75.75 0 0 1 .75.75",clipRule:"evenodd"})]}),p=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.5 6A1.25 1.25 0 1 1 0 6a1.25 1.25 0 0 1 2.5 0m4.75 0a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m3.5 1.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5",clipRule:"evenodd"})]}),h=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.75 4.5a2.75 2.75 0 0 1 5.396-.75H5c-.69 0-1.25.56-1.25 1.25v2.146a2.75 2.75 0 0 1-2-2.646m2 4.184A4.251 4.251 0 1 1 8.684 3.75H10.5c.69 0 1.25.56 1.25 1.25v5.5c0 .69-.56 1.25-1.25 1.25H5c-.69 0-1.25-.56-1.25-1.25zm1.5 1.566v-5h5v5z",clipRule:"evenodd"})]}),f=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6 .25a.75.75 0 0 1 .75.75v4.25H11a.75.75 0 0 1 0 1.5H6.75V11a.75.75 0 0 1-1.5 0V6.75H1a.75.75 0 0 1 0-1.5h4.25V1A.75.75 0 0 1 6 .25",clipRule:"evenodd"})]}),m=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.243 1.757a.75.75 0 0 1 0 1.061L7.061 6l3.182 3.182a.75.75 0 0 1-1.06 1.06L6 7.062l-3.182 3.182a.75.75 0 1 1-1.06-1.061L4.94 6 1.758 2.818a.75.75 0 1 1 1.06-1.06L6 4.938l3.182-3.182a.75.75 0 0 1 1.061 0",clipRule:"evenodd"})]});t.BN=o,t.QU=i,t.KM=s,t.V_=d,t.b0=m},83034:(e,t,n)=>{"use strict";var r=n(85893),o=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{clipPath:"url(#anonymous-icon_svg__a)",children:[r.jsx("path",{fillRule:"evenodd",d:"M9.122.622a2.35 2.35 0 0 1 3.57.954l1.403 3.274H15.2a.75.75 0 0 1 0 1.5H.8a.75.75 0 0 1 0-1.5h1.106l1.403-3.274a2.35 2.35 0 0 1 3.57-.954l.611.458a.85.85 0 0 0 1.02 0zm2.19 1.545 1.15 2.683H3.539l1.15-2.683a.85.85 0 0 1 1.291-.345l.611.458a2.35 2.35 0 0 0 2.82 0l.612-.458a.85.85 0 0 1 1.29.345ZM2.45 6.85h11.1V8a2.75 2.75 0 0 1-5.478.35h-.144A2.75 2.75 0 0 1 2.45 8zM4 8.35a1.25 1.25 0 0 0 2.4 0zm5.6 0a1.25 1.25 0 0 0 2.4 0z",clipRule:"evenodd"}),r.jsx("path",{d:"M1.6 11.25a.75.75 0 0 0-.624 1.166l1.128 1.693-.84.42a.75.75 0 1 0 .671 1.342l1.6-.8a.75.75 0 0 0 .289-1.087L3 12.75h4.25v2.45a.75.75 0 0 0 1.5 0v-2.45h4.248l-.822 1.234a.75.75 0 0 0 .288 1.087l1.6.8a.75.75 0 1 0 .671-1.342l-.84-.42 1.129-1.693a.75.75 0 0 0-.624-1.166z"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"anonymous-icon_svg__a",children:r.jsx("path",{d:"M0 0h16v16H0z"})})})]}),i=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#arrow-down-circle-filled-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.75-11.6a.75.75 0 0 0-1.5 0v5.39L5.73 8.27a.75.75 0 1 0-1.06 1.06L8 12.66l3.33-3.33a.75.75 0 0 0-1.06-1.06L8.75 9.79z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"arrow-down-circle-filled-icon_svg__a",children:r.jsx("path",{d:"M0 0h16v16H0z"})})})]}),a=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.136 2.47a.75.75 0 0 0 0 1.06l3.72 3.72h-8.19a.75.75 0 1 0 0 1.5h8.19l-3.72 3.72a.75.75 0 1 0 1.06 1.06L13.726 8l-5.53-5.53a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),s=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.286 2.697a1.75 1.75 0 0 0-2.475 0l-5.48 5.48a3 3 0 0 0 4.242 4.242L12.993 8a.75.75 0 1 1 1.06 1.062L9.634 13.48A4.5 4.5 0 1 1 3.27 7.116l5.48-5.48a3.25 3.25 0 1 1 4.596 4.596l-5.48 5.48a2 2 0 0 1-2.828-2.828l4.42-4.42a.75.75 0 1 1 1.06 1.061l-4.42 4.42a.5.5 0 0 0 .708.707l5.48-5.48a1.75 1.75 0 0 0 0-2.475",clipRule:"evenodd"})]}),l=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 8a2 2 0 1 0 .001-3.999A2 2 0 0 0 8 8m0 1c-1.335 0-4 .67-4 2v1h8v-1c0-1.33-2.665-2-4-2",clipRule:"evenodd"})]}),c=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3 12.992C3 13.548 3.451 14 4.008 14H8.64c2.657 0 4.286-1.269 4.286-3.377 0-1.44-.823-2.537-2.297-2.863 1.234-.463 1.834-1.354 1.834-2.657C12.463 3.234 11.074 2 8.777 2H4.008C3.451 2 3 2.451 3 3.008zM5.88 6.68V4.4h2.246c.908 0 1.405.446 1.405 1.114 0 .737-.548 1.166-1.354 1.166zm0 4.92V9.08h2.537c1.029 0 1.594.48 1.594 1.251 0 .823-.634 1.269-1.542 1.269z"})]}),u=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6 .583c-1.15 0-2.083.933-2.083 2.084v12a.75.75 0 0 0 1.296.514L8 12.226l2.788 2.955a.75.75 0 0 0 1.296-.514v-12c0-1.15-.933-2.084-2.084-2.084z",clipRule:"evenodd"})]}),d=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6 2.083a.583.583 0 0 0-.583.584v10.112l2.038-2.16a.75.75 0 0 1 1.09 0l2.039 2.16V2.667A.583.583 0 0 0 10 2.083zm-2.083.584C3.917 1.517 4.85.583 6 .583h4c1.15 0 2.084.933 2.084 2.084v12a.75.75 0 0 1-1.296.514L8 12.226l-2.787 2.955a.75.75 0 0 1-1.296-.514z",clipRule:"evenodd"})]}),p=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#calendar-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M14 1.75h-1.75V1c0-.41-.34-.75-.75-.75s-.75.34-.75.75v.75h-5.5V1c0-.41-.34-.75-.75-.75s-.75.34-.75.75v.75H2c-.97 0-1.75.78-1.75 1.75V14c0 .97.78 1.75 1.75 1.75h12c.97 0 1.75-.78 1.75-1.75V3.5c0-.97-.78-1.75-1.75-1.75M14.25 14c0 .14-.11.25-.25.25H2c-.14 0-.25-.11-.25-.25V7.75h12.5zm0-7.75H1.75V3.5c0-.14.11-.25.25-.25h1.75V4c0 .41.34.75.75.75s.75-.34.75-.75v-.75h5.5V4c0 .41.34.75.75.75s.75-.34.75-.75v-.75H14c.14 0 .25.11.25.25z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"calendar-icon_svg__a",children:r.jsx("path",{d:"M0 0h16v16H0z"})})})]}),h=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.53 12.53a.75.75 0 0 0 0-1.06L7.06 8l3.47-3.47a.75.75 0 1 0-1.06-1.06l-4 4a.75.75 0 0 0 0 1.06l4 4a.75.75 0 0 0 1.06 0",clipRule:"evenodd"})]}),f=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.47 3.47a.75.75 0 0 0 0 1.06L8.94 8l-3.47 3.47a.75.75 0 1 0 1.06 1.06l4-4a.75.75 0 0 0 0-1.06l-4-4a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),m=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m3.33-8.32a.75.75 0 0 0-1.06-1.06L7.2 8.69 6.13 7.62a.75.75 0 1 0-1.06 1.06l2.13 2.13z",clipRule:"evenodd"})]}),g=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m3.33-8.32a.75.75 0 0 0-1.06-1.06L7.2 8.69 6.13 7.62a.75.75 0 1 0-1.06 1.06l2.13 2.13z",clipRule:"evenodd"})]}),v=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.53 3.97a.75.75 0 0 1 0 1.06L6 13.56 1.47 9.03a.75.75 0 0 1 1.06-1.06L6 11.44l7.47-7.47a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),y=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("circle",{cx:8,cy:8,r:4})]}),b=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m2.93-4.07a.75.75 0 0 1-1.06 0L8 9.06l-1.87 1.87a.75.75 0 1 1-1.06-1.06L6.938 8l-1.87-1.87a.75.75 0 0 1 1.06-1.06L8 6.94l1.87-1.87a.75.75 0 1 1 1.061 1.06L9.06 8l1.87 1.87a.75.75 0 0 1 0 1.06",clipRule:"evenodd"})]}),w=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.48 2.52a.75.75 0 0 1 0 1.06L9.062 8l4.42 4.42a.75.75 0 1 1-1.061 1.06L8 9.06l-4.419 4.42a.75.75 0 0 1-1.06-1.06L6.94 8 2.52 3.58a.75.75 0 0 1 1.061-1.06l4.42 4.42 4.419-4.42a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),x=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#copy-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M2.4.291A2.11 2.11 0 0 0 .29 2.4v7.7c0 1.165.944 2.109 2.109 2.109H3.79V13.6c0 1.165.944 2.109 2.109 2.109h7.7a2.11 2.11 0 0 0 2.109-2.109V5.9A2.11 2.11 0 0 0 13.6 3.791h-1.391V2.4A2.11 2.11 0 0 0 10.1.29zm8.391 3.5V2.4a.69.69 0 0 0-.691-.691H2.4a.69.69 0 0 0-.691.69V10.1c0 .382.309.691.69.691h1.392v-4.89c0-1.166.944-2.11 2.109-2.11zm-5.582 7.72V5.9c0-.382.309-.691.69-.691H13.6c.382 0 .691.31.691.691v7.7c0 .382-.31.691-.691.691H5.9a.69.69 0 0 1-.691-.69z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"copy-icon_svg__a",children:r.jsx("path",{d:"M0 0h16v16H0z"})})})]}),_=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#edit-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M10.409 1.53a2.25 2.25 0 0 1 3.182 0l.879.879a2.25 2.25 0 0 1 0 3.182l-9.72 9.72a1.5 1.5 0 0 1-1.06.439H.25v-3.44c0-.397.158-.779.44-1.06zm2.121 1.061a.75.75 0 0 0-1.06 0L10.06 4 12 5.94l1.409-1.41a.75.75 0 0 0 0-1.06zM10.94 7 9 5.06l-7.25 7.25v1.94h1.94z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"edit-icon_svg__a",children:r.jsx("path",{d:"M0 0h16v16H0z"})})})]}),S=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14",clipRule:"evenodd"})]}),C=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{clipPath:"url(#emoji-smile-icon_svg__a)",children:[r.jsx("path",{fillRule:"evenodd",d:"M8 14.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16",clipRule:"evenodd"}),r.jsx("path",{fillRule:"evenodd",d:"M4.522 8.904a.75.75 0 0 1 .974.418c.34.848 1.298 1.528 2.504 1.528s2.164-.68 2.504-1.528a.75.75 0 1 1 1.392.556C11.304 11.36 9.75 12.35 8 12.35s-3.304-.99-3.896-2.472a.75.75 0 0 1 .418-.974",clipRule:"evenodd"}),r.jsx("path",{d:"M6.8 6a1.2 1.2 0 1 1-2.4 0 1.2 1.2 0 0 1 2.4 0m4.8 0a1.2 1.2 0 1 1-2.4 0 1.2 1.2 0 0 1 2.4 0"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"emoji-smile-icon_svg__a",children:r.jsx("path",{d:"M0 0h16v16H0z"})})})]}),E=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m2.93-8.87a.75.75 0 0 0-1.06-1.06l-4.8 4.8a.75.75 0 1 0 1.06 1.06z",clipRule:"evenodd"})]}),k=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m2.93-8.87a.75.75 0 0 0-1.06-1.06l-4.8 4.8a.75.75 0 1 0 1.06 1.06z",clipRule:"evenodd"})]}),z=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M8 4.25a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-1.5 0V5A.75.75 0 0 1 8 4.25m0 7.25a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"})]}),P=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M8 4.25a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-1.5 0V5A.75.75 0 0 1 8 4.25m0 7.25a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"})]}),D=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M8 4.25a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-1.5 0V5A.75.75 0 0 1 8 4.25m0 7.25a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"})]}),A=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.47.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1-1.06 1.06L8 2.06 4.53 5.53a.75.75 0 0 1-1.06-1.06zm-4 10a.75.75 0 0 1 1.06 0L8 13.94l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})]}),T=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M.584 10c0 1.15.933 2.083 2.083 2.083h8a.75.75 0 0 0 .492-.184l3.833-3.333a.75.75 0 0 0 0-1.132L11.16 4.101a.75.75 0 0 0-.492-.184h-8A2.083 2.083 0 0 0 .584 6z"})]}),I=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.61 8.44c.24-.33.17-.8-.16-1.05a.75.75 0 0 0-1.05.16c-.03.04-2.75 3.69-6.39 3.69s-6.38-3.65-6.4-3.68A.75.75 0 0 0 .56 7.4.75.75 0 0 0 .4 8.45c.06.09.83 1.12 2.12 2.16l-1.35 1.93a.74.74 0 0 0 .18 1.04c.13.09.28.14.43.14.24 0 .47-.11.61-.32l1.35-1.92c1 .61 2.18 1.1 3.51 1.24v2.29c0 .41.34.75.75.75s.75-.34.75-.75v-2.29c1.33-.14 2.51-.64 3.51-1.24l1.35 1.92c.15.21.38.32.62.32.15 0 .3-.04.43-.14.34-.24.42-.71.18-1.04l-1.35-1.93c1.29-1.03 2.06-2.07 2.12-2.16z"})]}),M=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.762 2.177a1.75 1.75 0 0 1 2.475 0l1.586 1.586a1.75 1.75 0 0 1 0 2.474l-7.586 7.586a1.75 1.75 0 0 1-2.214.215l-.712.712H.189l2.773-2.773a1.75 1.75 0 0 1 .215-2.214zM5.83 12.769l-1.6-1.599a.25.25 0 0 1 .007-.347L7.5 7.561 9.44 9.5l-3.263 3.262a.25.25 0 0 1-.347.007",clipRule:"evenodd"})]}),R=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2zm2 2.75a.75.75 0 0 0 0 1.5h3.25v6.883a.75.75 0 0 0 1.5 0V5.25H12a.75.75 0 0 0 0-1.5H4",clipRule:"evenodd"})]}),F=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"m.04 8 2.53-2.53a.75.75 0 0 1 1.06 1.06l-.72.72H5a.75.75 0 0 1 0 1.5H2.91l.72.72a.75.75 0 1 1-1.06 1.06zm15.92 0-2.53 2.53a.75.75 0 0 1-1.06-1.06l.72-.72H11a.75.75 0 0 1 0-1.5h2.09l-.72-.72a.75.75 0 0 1 1.06-1.06zM7 8a1 1 0 1 0 2 0 1 1 0 0 0-2 0"})]}),N=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-2.75 3A.75.75 0 0 1 7 6.75h1.75v4H9a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1 0-1.5h.25v-2.5H7a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),O=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#info-filled-icon_svg__a)",children:r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 10c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10m-8.75-4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M8.5 8.25a.75.75 0 0 0 0 1.5h.75v4.5H8.5a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-.75v-6z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"info-filled-icon_svg__a",children:r.jsx("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),j=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.05 3.5a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5H9.398l-1.659 7.3H8.8a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1 0-1.5h1.402l1.66-7.3H6.8a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),L=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.1 3.545a1.25 1.25 0 0 0-1.767 0L7.504 6.373a1.25 1.25 0 0 0 0 1.768l.283.283a.75.75 0 0 1-1.06 1.06l-.283-.283a2.75 2.75 0 0 1 0-3.889l2.828-2.828a2.75 2.75 0 0 1 3.89 0l.565.566a2.75 2.75 0 0 1 0 3.889l-1.556 1.555a.75.75 0 0 1-1.06-1.06l1.555-1.556a1.25 1.25 0 0 0 0-1.768zM8.425 6.726a.75.75 0 0 1 1.06 0l.283.283a2.75 2.75 0 0 1 0 3.89L6.94 13.726a2.75 2.75 0 0 1-3.89 0l-.565-.566a2.75 2.75 0 0 1 0-3.889L3.947 7.81a.75.75 0 0 1 1.06 1.06l-1.461 1.462a1.25 1.25 0 0 0 0 1.768l.566.565a1.25 1.25 0 0 0 1.767 0l2.829-2.828a1.25 1.25 0 0 0 0-1.768l-.283-.283a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})]}),B=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 4.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3.75-1.75a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5zm0 4.667a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5zM6 12.667a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75M4 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-1 5.667a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"})]}),K=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8 8.75a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 8.75"}),r.jsx("path",{fillRule:"evenodd",d:"M4.75 5.75V4a3.25 3.25 0 1 1 6.5 0v1.75H12c.966 0 1.75.784 1.75 1.75v6A1.75 1.75 0 0 1 12 15.25H4a1.75 1.75 0 0 1-1.75-1.75v-6c0-.966.784-1.75 1.75-1.75zM6.25 4a1.75 1.75 0 1 1 3.5 0v1.75h-3.5zM12 7.25a.25.25 0 0 1 .25.25v6a.25.25 0 0 1-.25.25H4a.25.25 0 0 1-.25-.25v-6A.25.25 0 0 1 4 7.25z",clipRule:"evenodd"})]}),V=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#magic-icon_svg__a)",children:r.jsx("path",{d:"M8.627.853c-.104-.725-1.15-.725-1.254 0l-.149 1.038-1.038.149c-.725.103-.725 1.15 0 1.254l1.038.148.149 1.038c.103.725 1.15.725 1.254 0l.148-1.038 1.038-.148c.725-.104.725-1.15 0-1.254l-1.038-.15zM4.109 8.558 3.961 7.52c-.104-.725-1.15-.725-1.254 0l-.149 1.038-1.038.148c-.725.104-.725 1.15 0 1.254l1.038.149.149 1.038c.103.725 1.15.725 1.254 0l.148-1.038 1.038-.149c.725-.103.725-1.15 0-1.254L4.11 8.558Zm9.333 3.333-.148-1.038c-.104-.725-1.15-.725-1.254 0l-.148 1.038-1.039.149c-.725.103-.725 1.15 0 1.254l1.039.148.148 1.038c.103.725 1.15.725 1.254 0l.148-1.038 1.038-.148c.725-.104.725-1.15 0-1.254zM15 6.333a1 1 0 1 1-2 0 1 1 0 0 1 2 0M9.333 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2m-6-5.667a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 11.667a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"magic-icon_svg__a",children:r.jsx("path",{d:"M0 0h16v16H0z"})})})]}),H=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.75 8a.75.75 0 0 1-.75.75H2a.75.75 0 0 1 0-1.5h12a.75.75 0 0 1 .75.75",clipRule:"evenodd"})]}),$=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#monkey-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M8 .05a7.95 7.95 0 0 0 0 15.9h4a.75.75 0 1 0 0-1.5H8a6.45 6.45 0 1 1 0-12.9h1.092a5.36 5.36 0 0 1 5.358 5.358V9.4a1.45 1.45 0 1 1-2.9 0V4a.75.75 0 0 0-1.5 0v.4a3.75 3.75 0 0 0-6 3v1.2a3.75 3.75 0 0 0 6.541 2.504A2.95 2.95 0 0 0 15.95 9.4V6.908A6.86 6.86 0 0 0 9.093.05zm2.05 8.552V7.398a2.25 2.25 0 0 0-4.5.002v1.2a2.25 2.25 0 0 0 4.5.002",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"monkey-icon_svg__a",children:r.jsx("path",{d:"M0 0h16v16H0z"})})})]}),U=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0M6.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m-5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3",clipRule:"evenodd"})]}),Z=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 13a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-6.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m1.5-5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0",clipRule:"evenodd"})]}),q=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 14 14","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("mask",{id:"none-icon_svg__a",width:14,height:14,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:r.jsx("circle",{cx:7,cy:7,r:7,fill:"#2B2E36"})}),r.jsx("g",{mask:"url(#none-icon_svg__a)",children:r.jsx("path",{stroke:"#C83C29",strokeWidth:2,d:"M15-1-1 15"})})]}),G=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.807 1.53a.667.667 0 0 0-.947 0L6.974 3.418a.67.67 0 0 0-.194.474.7.7 0 0 0 .194.473L8.507 5.89H1.334a.667.667 0 0 0-.667.666v2.667a.667.667 0 0 0 .667.667h7.173l-1.533 1.526a.667.667 0 0 0 0 .947l1.886 1.88a.666.666 0 0 0 .947 0l5.887-5.88a.7.7 0 0 0 .193-.473.67.67 0 0 0-.193-.474z",clipRule:"evenodd"})]}),W=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.666 2.86a.667.667 0 0 0-.94 0l-5.4 5.427-1.966-2a.667.667 0 0 0-.947 0L1.526 8.2a.667.667 0 0 0 0 .94l4.327 4.327a.67.67 0 0 0 .473.2.67.67 0 0 0 .467-.2l7.78-7.774a.666.666 0 0 0 0-.946z",clipRule:"evenodd"})]}),Y=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 1.333a6.667 6.667 0 1 0 0 13.334A6.667 6.667 0 0 0 8 1.333m0 9.334a2.667 2.667 0 1 1 0-5.334 2.667 2.667 0 0 1 0 5.334",clipRule:"evenodd"})]}),X=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m14.693 4.027-3.92 3.913 3.92 3.92a.665.665 0 0 1 0 .947l-1.886 1.886a.67.67 0 0 1-.947 0l-3.92-3.92-3.913 3.92a.67.67 0 0 1-.947 0l-1.887-1.886a.666.666 0 0 1 0-.947l3.92-3.92-3.92-3.913A.67.67 0 0 1 1 3.553a.67.67 0 0 1 .193-.473L3.08 1.193A.67.67 0 0 1 3.553 1a.7.7 0 0 1 .474.193l3.913 3.92 3.92-3.92a.666.666 0 0 1 .947 0l1.886 1.887a.666.666 0 0 1 0 .947",clipRule:"evenodd"})]}),Q=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.667 5.331a.7.7 0 0 1-.193.474.66.66 0 0 1-.474.193H3.334a.66.66 0 0 1-.667-.667c0-.966.26-1.906.76-2.74A5.32 5.32 0 0 1 8.247.005c.96.046 1.893.346 2.7.88a5.36 5.36 0 0 1 1.867 2.14 5.4 5.4 0 0 1 .5 2.793 5.25 5.25 0 0 1-1.007 2.653 5.45 5.45 0 0 1-2.227 1.767l-.08.04v.047c0 .18-.073.346-.193.473a.65.65 0 0 1-.473.193H6.667A.66.66 0 0 1 6 10.324v-.333c.04-.76.3-1.486.747-2.1a3.84 3.84 0 0 1 1.773-1.34c.22-.093.414-.246.554-.44.14-.193.226-.426.253-.666a1.34 1.34 0 0 0-.593-1.234 1.33 1.33 0 0 0-1.367-.06 1.35 1.35 0 0 0-.513.494 1.3 1.3 0 0 0-.187.686M8 15.998c.394 0 .78-.12 1.114-.34.326-.22.586-.533.733-.9.153-.367.193-.767.113-1.153a2.03 2.03 0 0 0-.546-1.027 1.96 1.96 0 0 0-1.027-.547 1.95 1.95 0 0 0-1.153.114 1.992 1.992 0 0 0-.653 3.26 2 2 0 0 0 1.413.586z",clipRule:"evenodd"})]}),J=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#note-inset-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M7.293 1.022a1 1 0 0 1 1.414 0l4.771 4.77a1 1 0 0 1 0 1.415L12.3 8.385a1 1 0 0 1-1.414 0L9.834 7.333v1c0 .972.353 1.649 1.061 2.152.668.474 1.77.87 3.44.983.55.037.999.48.999 1.032v1.667c0 .552-.448 1.003-1 .974-2.219-.119-4.123-.645-5.562-1.667a6.5 6.5 0 0 1-.772-.64 6.5 6.5 0 0 1-.771.64c-1.44 1.022-3.344 1.548-5.562 1.667-.552.03-1-.422-1-.974V12.5c0-.552.448-.995 1-1.032 1.67-.113 2.77-.509 3.438-.983.709-.503 1.062-1.18 1.062-2.152v-1L5.115 8.385a1 1 0 0 1-1.414 0L2.522 7.207a1 1 0 0 1 0-1.414z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"note-inset-icon_svg__a",children:r.jsx("path",{d:"M0 0h16v16H0z"})})})]}),ee=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13.38 2.367A4.667 4.667 0 0 0 5.786 7.5a.2.2 0 0 1 0 .08l-4.533 4.553a1.33 1.33 0 0 0-.353.62l-.194.78a1.333 1.333 0 0 0 1.44 1.647l.707-.08A1.33 1.33 0 0 0 4 14.1l.313-1.26.173-.167 1.92-.173a1.33 1.33 0 0 0 1.14-.907l.52-1.56.08-.08a.2.2 0 0 1 .08 0A4.666 4.666 0 0 0 13.36 2.36zM12 5.193a1 1 0 1 1-1.416-1.413A1 1 0 0 1 12 5.193",clipRule:"evenodd"})]}),te=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.334 10.667H6V14c0 .368.299.667.667.667H8A.667.667 0 0 0 8.667 14V4.333C8.667 4.15 8.817 4 9 4h1.334c.184 0 .333.15.333.333V14c0 .368.299.667.667.667h1.333a.667.667 0 0 0 .667-.667V4.333c0-.184.149-.333.333-.333h1a.667.667 0 0 0 .667-.667V2a.667.667 0 0 0-.667-.667H5.334a4.667 4.667 0 0 0 0 9.334",clipRule:"evenodd"})]}),ne=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 0c.133 0 .2 0 .333.067A.52.52 0 0 1 8.6.333l5.333 9.334A.6.6 0 0 1 14 10c0 .133 0 .2-.067.333a.52.52 0 0 1-.266.267c-.134.067-.2.067-.334.067H2.667c-.134 0-.2 0-.334-.067a.52.52 0 0 1-.266-.267c0-.133-.067-.2-.067-.333s0-.2.067-.333L7.4.333a.52.52 0 0 1 .267-.266C7.8 0 7.867 0 8 0M3 11.6c-.067-.067-.133-.067-.267-.133-.066 0-.2 0-.266.066l-.2.2c-.067.067-.067.2-.067.267v3.333a.5.5 0 0 0 .133.334.5.5 0 0 0 .334.133.5.5 0 0 0 .333-.133.5.5 0 0 0 .133-.334v-2.266l3.2 2.666c.067.067.134.067.267.134.067 0 .2 0 .267-.067l.2-.2c.066-.067.066-.2.066-.267V12A.5.5 0 0 0 7 11.667a.5.5 0 0 0-.333-.134.5.5 0 0 0-.334.134A.5.5 0 0 0 6.2 12v2.267zm6.333-.133h3c.4 0 .8.133 1.067.466.267.267.467.667.467 1.067s-.134.8-.467 1.067c-.267.266-.667.466-1.067.466H9.8v.8a.5.5 0 0 1-.133.334.5.5 0 0 1-.334.133.5.5 0 0 1-.333-.133.5.5 0 0 1-.133-.334V12c0-.133.066-.267.133-.333.067-.134.2-.134.333-.2m.467 2v-1h2.533a.5.5 0 0 1 .334.133.5.5 0 0 1 .133.333c0 .134 0 .334-.133.4a.5.5 0 0 1-.334.134z",clipRule:"evenodd"})]}),re=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.626 8.707 10 13.333V8.667h4.666zm.04-1.374H10a1.333 1.333 0 0 0-1.334 1.334v4.666h-6A1.333 1.333 0 0 1 1.333 12V4a1.333 1.333 0 0 1 1.333-1.333h10.667A1.333 1.333 0 0 1 14.666 4z",clipRule:"evenodd"})]}),oe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13.905 6.772 3.322 1.484A1.373 1.373 0 0 0 1.498 3.35L3.96 8l-2.463 4.643a1.371 1.371 0 0 0 1.825 1.873l10.582-5.288a1.372 1.372 0 0 0 0-2.456Z",clipRule:"evenodd"})]}),ie=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.666 3.333V10a1.333 1.333 0 0 1-1.333 1.333H5.566l-3.153 2.52a.666.666 0 0 1-1.08-.52v-10A1.333 1.333 0 0 1 2.666 2h10.667a1.333 1.333 0 0 1 1.333 1.333",clipRule:"evenodd"})]}),ae=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.487 6.8 11.4 9.04l1.18 3.627a1 1 0 0 1-1.54 1.12L7.953 11.54 4.86 13.793a1 1 0 0 1-1.533-1.126l1.18-3.634L1.413 6.8A1 1 0 0 1 2 4.987h3.82L7 1.333a1 1 0 0 1 1.9 0l1.18 3.627h3.82a1 1 0 0 1 .587 1.84",clipRule:"evenodd"})]}),se=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.667 3C15.403 3 16 3.597 16 4.333v7.334c0 .736-.597 1.333-1.333 1.333H1.333A1.333 1.333 0 0 1 0 11.667V4.333C0 3.597.597 3 1.333 3zm-.917 1h.917c.184 0 .333.15.333.333v7.334c0 .184-.15.333-.333.333h-.917zm-10 0h8.5v8h-8.5zm-1.5 0h-.917A.333.333 0 0 0 1 4.333v7.334c0 .184.15.333.333.333h.917z",clipRule:"evenodd"})]}),le=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.667 3C15.403 3 16 3.597 16 4.333v7.334c0 .736-.597 1.333-1.333 1.333H1.333A1.333 1.333 0 0 1 0 11.667V4.333C0 3.597.597 3 1.333 3zM11.5 4h3.167c.184 0 .333.15.333.333v7.334c0 .184-.15.333-.333.333H11.5zm-7 8H1.333A.333.333 0 0 1 1 11.667V4.333C1 4.15 1.15 4 1.333 4H4.5zM6 4.5h4v7H6z",clipRule:"evenodd"})]}),ce=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M0 3.75h1.25v8.5H0v1.5h1.333c.783 0 1.417-.634 1.417-1.417V3.667c0-.783-.634-1.417-1.417-1.417H0z"}),r.jsx("path",{fillRule:"evenodd",d:"M4.25 3.667c0-.783.634-1.417 1.417-1.417h4.666c.783 0 1.417.634 1.417 1.417v8.666c0 .783-.634 1.417-1.417 1.417H5.667a1.417 1.417 0 0 1-1.417-1.417zm1.5.083v8.5h4.5v-8.5z",clipRule:"evenodd"}),r.jsx("path",{d:"M14.75 3.75H16v-1.5h-1.333c-.783 0-1.417.634-1.417 1.417v8.666c0 .783.634 1.417 1.417 1.417H16v-1.5h-1.25z"})]}),ue=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.667 13.75A1.417 1.417 0 0 1 .25 12.333V3.667c0-.783.634-1.417 1.417-1.417h12.666c.783 0 1.417.634 1.417 1.417v8.666c0 .783-.634 1.417-1.417 1.417zm.083-1.5v-8.5h5.5v8.5zm7-8.5v8.5h5.5v-8.5z",clipRule:"evenodd"})]}),de=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.75 1.75v12.5h8.5V1.75zm-1.5-.083C2.25.884 2.884.25 3.667.25h8.666c.783 0 1.417.634 1.417 1.417v12.666c0 .783-.634 1.417-1.417 1.417H3.667a1.417 1.417 0 0 1-1.417-1.417z",clipRule:"evenodd"})]}),pe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3.75 0v2.25h8.5V0h1.5v2.333c0 .783-.634 1.417-1.417 1.417H3.667A1.417 1.417 0 0 1 2.25 2.333V0zm0 16V6.75h8.5V16h1.5V6.667c0-.783-.634-1.417-1.417-1.417H3.667c-.783 0-1.417.634-1.417 1.417V16z"})]}),he=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6 3.25a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0V4A.75.75 0 0 1 6 3.25m4 0a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0V4a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})]}),fe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.04 6a3.96 3.96 0 0 1 7.859-.706H6.666c-.758 0-1.372.615-1.372 1.373v3.23A3.96 3.96 0 0 1 2.04 6m3.254 5.326a5.374 5.374 0 1 1 6.033-6.032H14c.758 0 1.372.615 1.372 1.373V14c0 .758-.614 1.373-1.372 1.373H6.667A1.373 1.373 0 0 1 5.293 14zm1.412 2.635V6.706h7.255v7.255z",clipRule:"evenodd"})]}),me=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#plus-icon_svg__a)",children:r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 .25a.75.75 0 0 1 .75.75v6.25H15a.75.75 0 0 1 0 1.5H8.75V15a.75.75 0 0 1-1.5 0V8.75H1a.75.75 0 0 1 0-1.5h6.25V1A.75.75 0 0 1 8 .25",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"plus-icon_svg__a",children:r.jsx("path",{fill:"#fff",d:"M0 0h16v16H0z"})})})]}),ge=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",d:"M9 11c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1M7 6.18c0-.49.42-.93 1-.93s1 .44 1 .93c0 .37-.23.7-.6.85-.48.19-1.15.69-1.15 1.53v.14c0 .41.34.75.75.75s.75-.34.75-.75v-.13s0-.01.02-.02a.7.7 0 0 1 .2-.13c.89-.36 1.53-1.22 1.53-2.24 0-1.37-1.15-2.43-2.5-2.43S5.5 4.81 5.5 6.18c0 .41.34.75.75.75S7 6.59 7 6.18M8 1C4.13 1 1 4.13 1 8s3.13 7 7 7 7-3.13 7-7-3.13-7-7-7m0 12.5c-3.04 0-5.5-2.46-5.5-5.5S4.96 2.5 8 2.5s5.5 2.46 5.5 5.5-2.46 5.5-5.5 5.5"})]}),ve=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.262 1.677a1.75 1.75 0 0 1 2.475 0l1.586 1.585a1.75 1.75 0 0 1 0 2.475L11.53 8.53l-1.06-1.06.969-.97-1.94-1.94-.969.97-1.06-1.06zM10.56 3.5l.763-.763a.25.25 0 0 1 .354 0l1.585 1.586a.25.25 0 0 1 0 .354l-.763.762zM1.97 1.971a.75.75 0 0 1 1.06 0l11 11a.75.75 0 0 1-1.06 1.06L9.5 10.562l-4.69 4.69H.75V11.19L5.438 6.5l-3.47-3.468a.75.75 0 0 1 0-1.06Zm4.53 5.59-4.25 4.25v1.94h1.94l4.25-4.25z",clipRule:"evenodd"})]}),ye=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.136 2.136a.75.75 0 0 0 0 1.061l1.386 1.386H6.666a4.75 4.75 0 0 0 0 9.5H8a.75.75 0 0 0 0-1.5H6.666a3.25 3.25 0 0 1 0-6.5h4.856L10.136 7.47a.75.75 0 1 0 1.06 1.06l3.198-3.197-3.197-3.197a.75.75 0 0 0-1.061 0",clipRule:"evenodd"})]}),be=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"m9.526 3.75-1.09 2.997-1.14-1.255.633-1.742H5.713L4.35 2.25H14a.75.75 0 0 1 0 1.5zm-5.231 9.994 1.271-3.495 1.14 1.255-1.001 2.752a.75.75 0 1 1-1.41-.512M2.605 2.546a.75.75 0 1 0-1.11 1.009l9.949 10.95a.75.75 0 0 0 1.11-1.01l-9.95-10.95Z"})]}),we=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.417 3a.75.75 0 0 1-.75.75H2.334a.75.75 0 0 1 0-1.5h11.333a.75.75 0 0 1 .75.75m0 10a.75.75 0 0 1-.75.75H2.334a.75.75 0 0 1 0-1.5h11.333a.75.75 0 0 1 .75.75m-.75-4.25a.75.75 0 0 0 0-1.5H2.334a.75.75 0 0 0 0 1.5z",clipRule:"evenodd"})]}),xe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.172 1.898A.75.75 0 1 1 8.16.768l2.667 2.334a.75.75 0 0 1 0 1.129L8.16 6.564a.75.75 0 0 1-.988-1.128l1.32-1.155a3.917 3.917 0 1 0 3.424 3.886.75.75 0 0 1 1.5 0A5.417 5.417 0 1 1 8.15 2.752l-.977-.854Z"})]}),_e=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.828 1.898A.75.75 0 1 0 7.84.768L5.173 3.103a.75.75 0 0 0 0 1.129L7.84 6.564a.75.75 0 0 0 .988-1.128L7.508 4.28a3.917 3.917 0 1 1-3.424 3.886.75.75 0 1 0-1.5 0 5.417 5.417 0 1 0 5.268-5.415z"})]}),Se=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{fillRule:"evenodd",clipPath:"url(#settings-icon_svg__a)",clipRule:"evenodd",children:[r.jsx("path",{d:"M5.096 8A2.91 2.91 0 0 1 8 5.097 2.91 2.91 0 0 1 10.903 8 2.91 2.91 0 0 1 8 10.903 2.91 2.91 0 0 1 5.096 8m1.452 0A1.45 1.45 0 0 0 8 9.452 1.45 1.45 0 0 0 9.45 8 1.45 1.45 0 0 0 8 6.548 1.45 1.45 0 0 0 6.548 8"}),r.jsx("path",{d:"m13.061 5.9 1.335.271A1.37 1.37 0 0 1 15.5 7.516v.978a1.37 1.37 0 0 1-1.104 1.345l-1.335.27.755 1.133c.358.542.29 1.268-.174 1.732l-.687.687a1.38 1.38 0 0 1-1.733.175l-1.132-.755-.27 1.335a1.37 1.37 0 0 1-1.346 1.103h-.977a1.37 1.37 0 0 1-1.346-1.103l-.27-1.335-1.133.755a1.38 1.38 0 0 1-1.732-.175l-.687-.687a1.38 1.38 0 0 1-.174-1.732l.754-1.132-1.335-.271A1.37 1.37 0 0 1 .47 8.494v-.978c0-.658.464-1.22 1.103-1.345L2.909 5.9l-.754-1.132a1.38 1.38 0 0 1 .174-1.732l.687-.688a1.38 1.38 0 0 1 1.732-.174l1.132.755.271-1.335A1.37 1.37 0 0 1 7.497.49h.977c.658 0 1.22.465 1.345 1.104l.271 1.335 1.132-.755a1.38 1.38 0 0 1 1.733.174l.687.688c.464.464.532 1.19.174 1.732zm-3.532 5.816a1.39 1.39 0 0 1 1.326.116l1.122.745.6-.6-.745-1.122a1.44 1.44 0 0 1-.116-1.326 1.41 1.41 0 0 1 1.016-.852l1.316-.26v-.843l-1.316-.261a1.39 1.39 0 0 1-1.016-.852 1.39 1.39 0 0 1 .116-1.325l.745-1.123-.6-.6-1.122.745c-.417.28-.92.28-1.326.116a1.41 1.41 0 0 1-.852-1.016l-.261-1.316h-.842l-.261 1.316a1.39 1.39 0 0 1-.852 1.016 1.39 1.39 0 0 1-1.326-.116l-1.122-.745-.6.6.745 1.123c.28.416.28.919.116 1.325a1.41 1.41 0 0 1-1.016.852l-1.316.261v.842l1.316.261c.493.097.851.446 1.016.852.174.407.164.91-.116 1.326l-.745 1.122.6.6 1.122-.745c.416-.27.92-.28 1.326-.116.397.165.755.523.852 1.016l.26 1.316h.843l.261-1.316a1.39 1.39 0 0 1 .852-1.016"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"settings-icon_svg__a",children:r.jsx("path",{d:"M0 0h16v16H0z"})})})]}),Ce=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.039 8.167 2.913 8A11 11 0 0 1 4.2 6.546C5.211 5.596 6.534 4.75 8 4.75s2.788.845 3.798 1.796A11 11 0 0 1 13.087 8q-.058.078-.127.167c-.271.352-.667.82-1.162 1.287-1.01.95-2.332 1.796-3.798 1.796s-2.788-.845-3.799-1.796c-.495-.466-.89-.935-1.162-1.287M13.999 8c.637-.397.636-.398.636-.398zm.636-.398.25.398-.25.398L14 8l.635.398V8.4l-.003.004-.008.011-.026.04a11 11 0 0 1-.45.627c-.306.399-.755.93-1.322 1.464-1.114 1.05-2.792 2.204-4.826 2.204s-3.712-1.155-4.827-2.204a12.6 12.6 0 0 1-1.677-1.95l-.095-.14-.026-.04-.008-.012-.002-.004-.001-.002L1.999 8l-.635.398L1.115 8l.249-.397.635.397c-.636-.397-.635-.398-.635-.398l.001-.002.002-.004.008-.011.026-.04a11 11 0 0 1 .45-.627c.307-.399.755-.93 1.322-1.464C4.288 4.404 5.966 3.25 8 3.25s3.712 1.155 4.826 2.204a12.6 12.6 0 0 1 1.677 1.95l.095.14.026.04.008.012.002.004zM8 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4",clipRule:"evenodd"})]}),Ee=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M2.25 3A.75.75 0 0 1 3 2.25h10a.75.75 0 0 1 0 1.5H8.75v2h-1.5v-2H3A.75.75 0 0 1 2.25 3m5 11v-3.75h1.5V14a.75.75 0 0 1-1.5 0M1 7.25a.75.75 0 0 0 0 1.5h14a.75.75 0 0 0 0-1.5z"})]}),ke=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 2.25a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zm2 3.333a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5zM1.25 9.667a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75M4 12.25a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),ze=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 2.25a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zm0 3.333a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zm-.75 4.084a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75M2 12.25a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),Pe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 2.25a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zm0 3.333a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5zm-.75 4.084a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75M2 12.25a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),De=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 2.25a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zm4 3.333a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5zM1.25 9.667a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75M6 12.25a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),Ae=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.25 3A.75.75 0 0 1 3 2.25h10a.75.75 0 0 1 0 1.5H8.75V14a.75.75 0 0 1-1.5 0V3.75H3A.75.75 0 0 1 2.25 3",clipRule:"evenodd"})]}),Te=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.179 10.036h-.036a3.893 3.893 0 1 1 0-7.786h6.286a.75.75 0 0 1 0 1.5h-1.792V14a.75.75 0 0 1-1.5 0V3.75H7.679V14a.75.75 0 0 1-1.5 0zM3.75 6.143A2.393 2.393 0 0 1 6.143 3.75h.036v4.786h-.036A2.393 2.393 0 0 1 3.75 6.143",clipRule:"evenodd"})]}),Ie=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.5 1.75h-4c-.41 0-.75.33-.75.75v4c0 .41.34.75.75.75h4c.42 0 .75-.34.75-.75v-4c0-.42-.33-.75-.75-.75m-.75 4h-2.5v-2.5h2.5zm.75 3h-4c-.41 0-.75.33-.75.75v4c0 .41.34.75.75.75h4c.42 0 .75-.34.75-.75v-4c0-.42-.33-.75-.75-.75m-.75 4h-2.5v-2.5h2.5zm7.75-4h-4c-.41 0-.75.33-.75.75v4c0 .41.34.75.75.75h4c.42 0 .75-.34.75-.75v-4c0-.42-.33-.75-.75-.75m-.75 4h-2.5v-2.5h2.5zm.75-11h-4c-.41 0-.75.33-.75.75v4c0 .41.34.75.75.75h4c.42 0 .75-.34.75-.75v-4c0-.42-.33-.75-.75-.75m-.75 4h-2.5v-2.5h2.5z",clipRule:"evenodd"})]}),Me=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#thumbs-down-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M6.8 9.388c.85 1.035 1.965 2.398 3.13 4.723a.285.285 0 0 0 .345.136l.004-.001a.29.29 0 0 0 .186-.341l-1.113-2.697a1.56 1.56 0 0 1 1.441-2.158h2.39q.033 0 .064.003a.33.33 0 0 0 .184-.084.41.41 0 0 0 .085-.465c-.029-.049-.09-.118-.24-.164a.75.75 0 0 1 .122-1.462c.163-.02.224-.083.253-.125a.4.4 0 0 0 .053-.268.4.4 0 0 0-.118-.246c-.039-.034-.111-.078-.272-.058a.75.75 0 0 1-.188-1.488c.158-.02.218-.081.248-.126.042-.06.07-.16.055-.277a.4.4 0 0 0-.114-.245c-.035-.03-.102-.073-.26-.051h-.001a.75.75 0 0 1-.267-1.475.4.4 0 0 0-.034-.165c-.083-.205-.408-.604-1.337-.604H9.224c-2.469 0-4.046 1.928-4.046 4.096 0 .719.123 1.236.327 1.688.211.467.523.898.96 1.442l.336.412Zm6.376 1.17a1 1 0 0 1-.104-.008h-2.279a.06.06 0 0 0-.054.087l1.129 2.734.022.061a1.79 1.79 0 0 1-1.123 2.232 1.785 1.785 0 0 1-2.175-.875l-.002-.004c-1.088-2.172-2.108-3.419-2.949-4.445l-.253-.31H3.201c-.465 0-.851-.214-1.14-.488-.285-.27-.507-.627-.678-1.01C1.042 7.764.851 6.756.851 5.68s.191-2.085.532-2.852c.17-.383.393-.74.678-1.01.289-.274.675-.488 1.14-.488h2.678C6.769.66 7.902.25 9.224.25h2.192c1.404 0 2.366.653 2.726 1.538.14.342.186.723.107 1.083l.053.045c.364.318.563.759.616 1.19.046.374-.012.78-.204 1.141.275.3.431.678.478 1.051a1.9 1.9 0 0 1-.396 1.425c.23.383.305.836.235 1.26-.134.806-.805 1.574-1.855 1.574Zm-8.655-7.73H3.203a.3.3 0 0 0-.11.077c-.098.093-.22.262-.34.53-.236.534-.402 1.326-.402 2.243 0 .918.166 1.71.403 2.244.119.267.241.437.34.53a.3.3 0 0 0 .109.076h1.124a5 5 0 0 1-.189-.377c-.3-.665-.46-1.396-.46-2.306A5.8 5.8 0 0 1 4.52 2.83Z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"thumbs-down-icon_svg__a",children:r.jsx("path",{d:"M0 0h16v16H0z"})})})]}),Re=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#thumbs-up-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M6.8 6.625c.85-1.035 1.965-2.398 3.13-4.723a.285.285 0 0 1 .345-.136l.004.001a.29.29 0 0 1 .186.341L9.351 4.806a1.56 1.56 0 0 0 1.442 2.157h2.39l.064-.003a.33.33 0 0 1 .184.084.41.41 0 0 1 .085.465c-.029.049-.09.118-.24.164a.75.75 0 0 0 .122 1.462c.163.02.224.083.253.125.04.057.067.153.053.267a.4.4 0 0 1-.118.247c-.039.034-.111.078-.272.058a.75.75 0 0 0-.188 1.488c.158.02.218.08.248.125.042.061.07.16.055.278a.4.4 0 0 1-.114.245c-.035.03-.103.073-.261.05a.75.75 0 0 0-.267 1.476.4.4 0 0 1-.034.165c-.083.205-.408.604-1.337.604H9.224c-2.469 0-4.046-1.928-4.046-4.096 0-.719.123-1.236.327-1.688.211-.467.523-.898.96-1.443l.336-.41Zm6.376-1.17a1 1 0 0 0-.104.008h-2.279c-.04 0-.073-.04-.054-.087l1.129-2.734A1.79 1.79 0 0 0 10.767.349a1.785 1.785 0 0 0-2.175.875l-.002.004C7.502 3.4 6.482 4.647 5.64 5.673l-.253.31H3.201c-.465 0-.851.214-1.14.488-.285.27-.507.627-.678 1.01-.341.767-.532 1.776-.532 2.852 0 1.077.191 2.085.532 2.853.17.383.393.739.678 1.01.289.274.675.487 1.14.487h2.678c.89.67 2.023 1.08 3.345 1.08h2.192c1.404 0 2.366-.653 2.726-1.538a1.84 1.84 0 0 0 .107-1.083l.053-.045a1.9 1.9 0 0 0 .616-1.19 1.93 1.93 0 0 0-.204-1.141c.275-.301.431-.678.478-1.051a1.9 1.9 0 0 0-.396-1.425c.23-.383.305-.836.235-1.26-.134-.806-.805-1.575-1.855-1.575m-8.655 7.728a5.8 5.8 0 0 1-.843-3.016c0-.91.16-1.64.46-2.306q.088-.194.19-.378H3.202a.3.3 0 0 0-.11.076c-.098.093-.22.263-.34.531-.236.534-.402 1.325-.402 2.243s.166 1.71.403 2.243c.119.268.241.438.34.531a.3.3 0 0 0 .109.076H4.52Z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"thumbs-up-icon_svg__a",children:r.jsx("path",{d:"M0 0h16v16H0z"})})})]}),Fe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#trash-icon_svg__a)",children:r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.75c-.621 0-1.125.504-1.125 1.125v.375h2.25v-.375c0-.621-.504-1.125-1.125-1.125m0-1.5a2.625 2.625 0 0 1 2.625 2.625v.375H14.5a.75.75 0 0 1 0 1.5h-.75v8.583a2.417 2.417 0 0 1-2.417 2.417H4.667a2.417 2.417 0 0 1-2.417-2.417V4.75H1.5a.75.75 0 0 1 0-1.5h3.875v-.375A2.625 2.625 0 0 1 8 .25m-4.25 4.5v8.583c0 .507.41.917.917.917h6.666c.507 0 .917-.41.917-.917V4.75zm5.75 1.5a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75M7.25 7a.75.75 0 0 0-1.5 0v5a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"trash-icon_svg__a",children:r.jsx("path",{fill:"#fff",d:"M0 0h16v16H0z"})})})]}),Ne=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.55 3.2a.75.75 0 1 0-1.5 0v5.6a3.95 3.95 0 1 0 7.9 0V3.2a.75.75 0 0 0-1.5 0v5.6a2.45 2.45 0 0 1-4.9 0zM2.4 13.65a.75.75 0 0 0 0 1.5h11.2a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),Oe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.864 2.136a.75.75 0 0 1 0 1.061L4.478 4.583h4.856a4.75 4.75 0 0 1 0 9.5H8a.75.75 0 0 1 0-1.5h1.334a3.25 3.25 0 0 0 0-6.5H4.478L5.864 7.47a.75.75 0 1 1-1.06 1.06L1.605 5.333l3.197-3.197a.75.75 0 0 1 1.061 0Z",clipRule:"evenodd"})]}),je=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.5 8.75a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75"}),r.jsx("path",{fillRule:"evenodd",d:"M10.75 4a1.75 1.75 0 1 1 3.5 0v1a.75.75 0 0 0 1.5 0V4a3.25 3.25 0 0 0-6.5 0v1.75H3.5A1.75 1.75 0 0 0 1.75 7.5v6c0 .966.784 1.75 1.75 1.75h8a1.75 1.75 0 0 0 1.75-1.75v-6a1.75 1.75 0 0 0-1.75-1.75h-.75zM3.5 7.25a.25.25 0 0 0-.25.25v6c0 .138.112.25.25.25h8a.25.25 0 0 0 .25-.25v-6a.25.25 0 0 0-.25-.25z",clipRule:"evenodd"})]}),Le=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"m8 .039 2.53 2.53a.75.75 0 1 1-1.06 1.06l-.72-.719V5a.75.75 0 0 1-1.5 0V2.91l-.72.72a.75.75 0 0 1-1.06-1.06L8 .038Zm0 15.922-2.53-2.53a.75.75 0 1 1 1.06-1.06l.72.719V11a.75.75 0 0 1 1.5 0v2.09l.72-.72a.75.75 0 1 1 1.06 1.06zM8 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2"})]}),Be=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.75 5a.75.75 0 0 0-1.5 0v2.25H5.5a.75.75 0 0 0 0 1.5h3.25z"}),r.jsx("path",{fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-1.5 0a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0",clipRule:"evenodd"})]}),Ke=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m6.55 3.537-5.122 8.965A1.67 1.67 0 0 0 2.878 15h10.244a1.67 1.67 0 0 0 1.45-2.498L9.45 3.537c-.641-1.122-2.259-1.122-2.9 0M8 5.75a.75.75 0 0 1 .75.75v3a.75.75 0 1 1-1.5 0v-3a.75.75 0 0 1 .75-.75m0 7.25a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"})]}),Ve=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.114 2.289.756 11.767C-.06 13.211.983 15 2.643 15h10.714c1.66 0 2.703-1.788 1.886-3.233L9.886 2.29C9.057.82 6.943.82 6.114 2.289m1.306.738-5.358 9.478a.667.667 0 0 0 .58.995h10.715c.51 0 .832-.55.58-.995L8.582 3.027a.667.667 0 0 0-1.161 0ZM8.75 6a.75.75 0 0 0-1.5 0v3a.75.75 0 0 0 1.5 0zM9 11.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"})]}),He=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13.48 2.52a.75.75 0 0 1 0 1.06L9.06 8l4.42 4.42a.75.75 0 1 1-1.061 1.06l-4.42-4.42-4.419 4.42a.75.75 0 0 1-1.06-1.06L6.938 8l-4.42-4.42A.75.75 0 0 1 3.58 2.52L8 6.94l4.419-4.42a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"})]});t.sp=o,t.Ov=i,t.LZ=a,t.fM=l,t.pl=d,t.BN=h,t.QU=f,t.gq=m,t.KM=v,t.Tw=w,t.TI=x,t.rx=k,t.Rv=D,t.F3=O,t.nX=U,t.zs=q,t.CP=ve,t.zG=ye,t.XH=Fe,t.UE=Oe,t.av=Ke,t.b0=He},56479:(e,t,n)=>{"use strict";var r=n(85893),o=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#arrow-up-circle-filled-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m.53-15.03L10 4.44l-.53.53-3.5 3.5a.75.75 0 1 0 1.06 1.06l2.22-2.22v7.19a.75.75 0 0 0 1.5 0V7.31l2.22 2.22a.75.75 0 0 0 1.06-1.06z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"arrow-up-circle-filled-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),i=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 .25C4.615.25.25 4.615.25 10s4.365 9.75 9.75 9.75h5a.75.75 0 0 0 0-1.5h-5a8.25 8.25 0 0 1 0-16.5h1.365a6.885 6.885 0 0 1 6.885 6.885v3.115a2 2 0 1 1-4 0V5a.75.75 0 0 0-1.5 0v.896a4.5 4.5 0 0 0-7.5 3.354v1.5a4.5 4.5 0 0 0 8.009 2.818 3.5 3.5 0 0 0 6.491-1.818V8.635A8.385 8.385 0 0 0 11.365.25zm2.75 10.5v-1.5a3 3 0 1 0-6 0v1.5a3 3 0 1 0 6 0",clipRule:"evenodd"})]}),a=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m2.5-12.5a2.5 2.5 0 1 1-4.999.001A2.5 2.5 0 0 1 12.5 7.5M5 13.75c0-1.662 3.331-2.5 5-2.5s5 .838 5 2.5V15H5z",clipRule:"evenodd"})]}),s=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M4 15.74c0 .696.564 1.26 1.26 1.26h5.79c3.321 0 5.357-1.586 5.357-4.221 0-1.8-1.028-3.172-2.871-3.579 1.543-.579 2.293-1.693 2.293-3.321C15.829 3.543 14.093 2 11.22 2H5.26A1.26 1.26 0 0 0 4 3.26zm3.6-7.89V5h2.807c1.136 0 1.757.557 1.757 1.393 0 .921-.685 1.457-1.693 1.457zm0 6.15v-3.15h3.171c1.286 0 1.993.6 1.993 1.564 0 1.029-.793 1.586-1.928 1.586z"})]}),l=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#callout-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M4.75 5A3.25 3.25 0 0 1 8 1.75h7A3.25 3.25 0 0 1 18.25 5v3A3.25 3.25 0 0 1 15 11.25H8A3.25 3.25 0 0 1 4.75 8zM8 .25A4.75 4.75 0 0 0 3.25 5v3A4.75 4.75 0 0 0 8 12.75h7A4.75 4.75 0 0 0 19.75 8V5A4.75 4.75 0 0 0 15 .25zm1 3a.75.75 0 0 0 0 1.5h1.75V9a.75.75 0 0 0 1.5 0V4.75H14a.75.75 0 0 0 0-1.5zm1.75 12.635V14.25h1.5v2.25a.75.75 0 0 1-.603.735L2.92 18.98a1.5 1.5 0 1 1-.294-1.47l8.123-1.625Z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"callout-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),c=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13.03 15.53a.75.75 0 0 0 0-1.06L8.56 10l4.47-4.47a.75.75 0 0 0-1.06-1.06l-5 5a.75.75 0 0 0 0 1.06l5 5a.75.75 0 0 0 1.06 0",clipRule:"evenodd"})]}),u=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.97 4.47a.75.75 0 0 0 0 1.06L11.44 10l-4.47 4.47a.75.75 0 1 0 1.06 1.06l5-5a.75.75 0 0 0 0-1.06l-5-5a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),d=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#check-circle-filled-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m4.53-11.97a.75.75 0 1 0-1.06-1.06L9 11.44 7.03 9.47a.75.75 0 1 0-1.06 1.06L9 13.56z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"check-circle-filled-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),p=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#check-filled-icon_svg__a)",children:r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m4.53-11.97a.75.75 0 1 0-1.06-1.06L9 11.44 7.03 9.47a.75.75 0 1 0-1.06 1.06L9 13.56z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"check-filled-icon_svg__a",children:r.jsx("path",{fill:"transparent",d:"M0 0h20v20H0z"})})})]}),h=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#checkmark-circle-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M18.5 10a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0m1.5 0c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10m-5.47-1.97a.75.75 0 1 0-1.06-1.06L9 11.44 7.03 9.47a.75.75 0 1 0-1.06 1.06L9 13.56z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"checkmark-circle-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),f=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M16.53 5.47a.75.75 0 0 1 0 1.06L8 15.06l-4.53-4.53a.75.75 0 1 1 1.06-1.06L8 12.94l7.47-7.47a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),m=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M17.53 13.47a.75.75 0 1 1-1.06 1.06l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 1 1 1.06 1.06L14.06 10zM2.47 6.53a.75.75 0 0 1 1.06-1.06l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06L5.94 10z"})]}),g=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.667 2.25A2.417 2.417 0 0 0 1.25 4.667v8.666a2.417 2.417 0 0 0 2.417 2.417H5.25v2.75a.75.75 0 0 0 1.244.564l3.788-3.314h6.051a2.417 2.417 0 0 0 2.417-2.417V4.667a2.417 2.417 0 0 0-2.417-2.417zM2.75 4.667c0-.507.41-.917.917-.917h12.666c.507 0 .917.41.917.917v8.666c0 .507-.41.917-.917.917H10a.75.75 0 0 0-.494.186L6.75 16.847V15a.75.75 0 0 0-.75-.75H3.667a.917.917 0 0 1-.917-.917zM7 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2m7.667-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-4.333 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"})]}),v=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#copy-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M3.334.917A2.417 2.417 0 0 0 .917 3.333V12.5a2.417 2.417 0 0 0 2.417 2.417h1.749v1.75A2.417 2.417 0 0 0 7.5 19.083h9.166a2.417 2.417 0 0 0 2.417-2.416V7.5a2.417 2.417 0 0 0-2.417-2.417h-1.749v-1.75A2.417 2.417 0 0 0 12.5.917zm10.083 4.166v-1.75a.917.917 0 0 0-.917-.916H3.334a.917.917 0 0 0-.917.916V12.5c0 .506.41.917.917.917h1.749V7.5A2.417 2.417 0 0 1 7.5 5.083zm-6.834 9.115V7.5c0-.506.41-.917.917-.917h9.166c.507 0 .917.41.917.917v9.167c0 .506-.41.916-.917.916H7.5a.917.917 0 0 1-.917-.916z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"copy-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),y=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#cross-circle-filled-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10M7.53 6.47a.75.75 0 0 0-1.06 1.06L8.94 10l-2.47 2.47a.75.75 0 1 0 1.06 1.06L10 11.06l2.47 2.47a.75.75 0 0 0 1.06-1.06L11.06 10l2.47-2.47a.75.75 0 0 0-1.06-1.06L10 8.94z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"cross-circle-filled-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),b=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#cross-icon_svg__a)",children:r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.894 3.106a.75.75 0 0 1 0 1.06L11.061 10l5.833 5.834a.75.75 0 0 1-1.06 1.06L10 11.061l-5.834 5.833a.75.75 0 1 1-1.06-1.06L8.939 10 3.106 4.166a.75.75 0 0 1 1.06-1.06L10 8.939l5.834-5.833a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"cross-icon_svg__a",children:r.jsx("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),w=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#cut-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M5.263 13.281a2 2 0 1 1-3.464 2 2 2 0 0 1 3.464-2m1.6-.072A3.501 3.501 0 0 1 .5 16.031a3.5 3.5 0 0 1 5.609-4.118l2.364-1.353.13-.849a4.85 4.85 0 0 1 2.385-3.48l3.558-2.037a2.39 2.39 0 0 1 2.339-.02l2.897 1.59-10.25 5.918zm9.862-7.412L10.157 9.59a3.35 3.35 0 0 1 1.577-2.056l3.557-2.037a.89.89 0 0 1 .872-.008l.562.31Zm-9.862.994A3.501 3.501 0 0 0 .5 3.969a3.5 3.5 0 0 0 5.609 4.118l1.166.667c.135-.49.328-.96.572-1.4zm7.083 4.075 4.683 2.703 1.153.666-1.167.641-1.73.95a2.39 2.39 0 0 1-2.34-.02l-3.557-2.037a5 5 0 0 1-.909-.672l.198-.113.007-.004 1.183-.683q.128.09.267.17l3.557 2.037c.27.154.6.157.872.008l.562-.31-4.28-2.47 1.5-.866ZM5.263 6.719a2 2 0 1 0-3.464-2 2 2 0 0 0 3.464 2",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"cut-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),x=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 6.25a.75.75 0 0 1 .75.75v2.25h12.5V7a.75.75 0 0 1 1.5 0v6a.75.75 0 0 1-1.5 0v-2.25H3.75V13a.75.75 0 0 1-1.5 0V7A.75.75 0 0 1 3 6.25",clipRule:"evenodd"})]}),_=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 1.75a.75.75 0 0 1 .75.75v10.69l2.053-2.054a.75.75 0 0 1 1.06 1.061L10 16.061l-3.864-3.864a.75.75 0 0 1 1.061-1.06l2.053 2.052V2.5a.75.75 0 0 1 .75-.75M2.5 13.417a.75.75 0 0 1 .75.75v2.5c0 .506.41.916.917.916h11.666c.507 0 .917-.41.917-.916v-2.5a.75.75 0 0 1 1.5 0v2.5a2.417 2.417 0 0 1-2.417 2.416H4.167a2.417 2.417 0 0 1-2.417-2.416v-2.5a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})]}),S=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("circle",{cx:15.417,cy:7.5,r:1.25,fill:"currentColor",transform:"rotate(90 15.417 7.5)"}),r.jsx("circle",{cx:10,cy:7.5,r:1.25,fill:"currentColor",transform:"rotate(90 10 7.5)"}),r.jsx("circle",{cx:4.583,cy:7.5,r:1.25,fill:"currentColor",transform:"rotate(90 4.583 7.5)"}),r.jsx("circle",{cx:15.417,cy:12.5,r:1.25,fill:"currentColor",transform:"rotate(90 15.417 12.5)"}),r.jsx("circle",{cx:10,cy:12.5,r:1.25,fill:"currentColor",transform:"rotate(90 10 12.5)"}),r.jsx("circle",{cx:4.583,cy:12.5,r:1.25,fill:"currentColor",transform:"rotate(90 4.583 12.5)"})]}),C=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{clipPath:"url(#duplicate-icon_svg__a)",children:[r.jsx("path",{d:"M12.833 9.583a.75.75 0 0 0-1.5 0v1.75h-1.75a.75.75 0 0 0 0 1.5h1.75v1.75a.75.75 0 0 0 1.5 0v-1.75h1.75a.75.75 0 0 0 0-1.5h-1.75z"}),r.jsx("path",{fillRule:"evenodd",d:"M.917 3.333A2.417 2.417 0 0 1 3.334.917H12.5a2.417 2.417 0 0 1 2.417 2.416v1.75h1.75A2.417 2.417 0 0 1 19.082 7.5v9.167a2.417 2.417 0 0 1-2.417 2.416H7.5a2.417 2.417 0 0 1-2.417-2.416v-1.75h-1.75A2.417 2.417 0 0 1 .918 12.5V3.333Zm12.5 0v1.75H7.5A2.417 2.417 0 0 0 5.083 7.5v5.917h-1.75a.917.917 0 0 1-.916-.917V3.333c0-.506.41-.916.917-.916H12.5c.507 0 .917.41.917.916M6.584 14.167l-.001.031v2.469c0 .506.41.916.917.916h9.166c.507 0 .917-.41.917-.916V7.5a.917.917 0 0 0-.917-.917H7.5a.917.917 0 0 0-.917.917z",clipRule:"evenodd"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"duplicate-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),E=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.874 2.732a2.417 2.417 0 0 1 3.418 0l.976.976a2.417 2.417 0 0 1 0 3.417L6.608 17.787c-.297.297-.7.464-1.12.464H1.75v-3.738c0-.42.167-.823.464-1.12zm2.357 1.06a.917.917 0 0 0-1.296 0L12.727 5 15 7.273l1.208-1.208a.917.917 0 0 0 0-1.297zM13.94 8.333l-2.272-2.272-8.393 8.392a.08.08 0 0 0-.024.059v2.238h2.238a.08.08 0 0 0 .06-.024z",clipRule:"evenodd"})]}),k=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 16.833a6.833 6.833 0 1 0 0-13.666 6.833 6.833 0 0 0 0 13.666m0 1.5a8.333 8.333 0 1 0 0-16.666 8.333 8.333 0 0 0 0 16.666",clipRule:"evenodd"})]}),z=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#emoji-smile-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M18.5 10a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0m1.5 0c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10M6.697 11.722a.75.75 0 1 0-1.393.556C6.012 14.051 7.882 15.25 10 15.25s3.988-1.199 4.697-2.972a.75.75 0 1 0-1.393-.556c-.456 1.14-1.728 2.028-3.304 2.028s-2.848-.888-3.303-2.028M8.5 7.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M13 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"emoji-smile-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),P=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#error-alt-circle-filled-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m3.53-12.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 1 0 1.06 1.06z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"error-alt-circle-filled-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),D=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m3.53-12.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 1 0 1.06 1.06z",clipRule:"evenodd"})]}),A=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#error-alternative-circle-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M18.5 10a8.5 8.5 0 0 1-13.957 6.517L16.517 4.543A8.47 8.47 0 0 1 18.5 10M3.483 15.457 15.457 3.483A8.5 8.5 0 0 0 3.483 15.457M20 10c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"error-alternative-circle-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),T=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#error-circle-filled-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M20 10c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10m-8.75 4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M10.75 5a.75.75 0 0 0-1.5 0v6a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"error-circle-filled-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),I=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#error-circle-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M10 18.5a8.5 8.5 0 1 0 0-17 8.5 8.5 0 0 0 0 17m0 1.5c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m1.25-5.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M10.75 5a.75.75 0 0 0-1.5 0v6a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"error-circle-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),M=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.53 13.47a.75.75 0 1 1-1.06 1.06l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 1.06L3.06 10zm6.94-6.94a.75.75 0 0 1 1.06-1.06l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 1 1-1.06-1.06L16.94 10z"})]}),R=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.833 14.583a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m0-4.166a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m-4.583 4.166a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m0-4.166a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m-4.583 4.166a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0"}),r.jsx("path",{fillRule:"evenodd",d:"M6.166.833a.75.75 0 0 0-1.5 0v1H3.333A3.167 3.167 0 0 0 .166 5v10.833A3.167 3.167 0 0 0 3.333 19h13.333a3.167 3.167 0 0 0 3.167-3.167V5a3.167 3.167 0 0 0-3.167-3.167h-1.333v-1a.75.75 0 0 0-1.5 0v1H6.166zm-1.5 2.5V5a.75.75 0 1 0 1.5 0V3.333h7.667V5a.75.75 0 0 0 1.5 0V3.333h1.333c.92 0 1.667.746 1.667 1.667v1.333H1.666V5c0-.92.746-1.667 1.667-1.667zm-3 12.5v-8h16.667v8c0 .92-.746 1.667-1.667 1.667H3.333c-.92 0-1.667-.746-1.667-1.667",clipRule:"evenodd"})]}),F=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.989 15.833H1.667c-.92 0-1.667-.746-1.667-1.666V5.833c0-.92.746-1.666 1.667-1.666h16.666c.92 0 1.667.746 1.667 1.666v8.334c0 .92-.746 1.666-1.667 1.666H10.67c-.17.598-.358 1.16-.559 1.66-.246.614-.527 1.171-.844 1.59-.29.381-.751.834-1.389.834-.754 0-1.181-.59-1.392-1.025-.228-.472-.36-1.062-.43-1.627a9.5 9.5 0 0 1-.067-1.432M1.667 5.667h16.666c.092 0 .167.074.167.166v8.334a.167.167 0 0 1-.167.166h-7.285c.094-.426.178-.858.253-1.288.133-.77.236-1.55.298-2.289.374-.242.752-.458 1.123-.637q.045.117.105.266c.096.237.224.536.39.783.138.204.467.624 1.025.624.914 0 1.66-.522 2.175-1.205.516-.684.857-1.593.992-2.567a.75.75 0 0 0-1.486-.206c-.107.775-.372 1.43-.704 1.87-.267.354-.542.53-.794.587a4 4 0 0 1-.207-.448l-.08-.2a10 10 0 0 0-.194-.476 2 2 0 0 0-.2-.35c-.054-.072-.289-.38-.714-.38a.8.8 0 0 0-.27.05 10 10 0 0 0-1.098.51 11 11 0 0 0-.016-.402c-.037-.617-.13-1.207-.328-1.667-.194-.452-.596-.991-1.318-.991-.46 0-1.059.189-1.629.413a21 21 0 0 0-1.978.923c-1.355.712-2.782 1.604-3.557 2.29a.75.75 0 1 0 .994 1.123c.639-.565 1.94-1.391 3.26-2.085a19 19 0 0 1 1.83-.855c.473-.186.802-.276.984-.301l.036.075c.096.223.175.61.209 1.165.022.378.022.806 0 1.267-.423.307-.832.637-1.216.979-1.138 1.012-2.125 2.182-2.638 3.24a2 2 0 0 0-.076.182H1.667a.167.167 0 0 1-.167-.166V5.833c0-.092.075-.166.167-.166m7.438 10.166c-.122.397-.252.767-.386 1.101-.224.558-.446.977-.648 1.242a1.3 1.3 0 0 1-.165.188q-.03-.044-.07-.125c-.126-.262-.23-.67-.292-1.16a8 8 0 0 1-.054-1.246zm.404-1.5H7.908c.448-.717 1.16-1.535 2.022-2.301l.015-.014a27 27 0 0 1-.436 2.315m.359-6.963q0-.002.008.01zM7.97 18.44q0 .003-.01-.007.01.006.01.008Zm6.536-8.054-.013-.013z",clipRule:"evenodd"})]}),N=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#form-text-field-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M7.5.917a.75.75 0 0 0 0 1.5c.966 0 1.75.783 1.75 1.75H1.667C.747 4.167 0 4.913 0 5.833v8.334c0 .92.746 1.666 1.667 1.666H9.25a1.75 1.75 0 0 1-1.75 1.75.75.75 0 0 0 0 1.5A3.24 3.24 0 0 0 10 17.91a3.24 3.24 0 0 0 2.5 1.173.75.75 0 0 0 0-1.5 1.75 1.75 0 0 1-1.75-1.748v-.002h7.583c.92 0 1.667-.746 1.667-1.666V5.833c0-.92-.746-1.666-1.667-1.666H10.75c0-.967.784-1.75 1.75-1.75a.75.75 0 0 0 0-1.5A3.24 3.24 0 0 0 10 2.09 3.24 3.24 0 0 0 7.5.917m1.75 4.75H1.667a.167.167 0 0 0-.167.166v8.334c0 .092.075.166.167.166H9.25v-3.708h-1a.75.75 0 0 1 0-1.5h1zm1.5 8.666v-3.708h1a.75.75 0 0 0 0-1.5h-1V5.667h7.583c.092 0 .167.074.167.166v8.334a.167.167 0 0 1-.167.166z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"form-text-field-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),O=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 0a3 3 0 0 0-3 3v13a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3zm2 3.25a.75.75 0 0 0 0 1.5h4.25V15a.75.75 0 0 0 1.5 0V4.75H15a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),j=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 0a3 3 0 0 0-3 3v13a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3zm2 3.25a.75.75 0 0 0 0 1.5h4.25V15a.75.75 0 0 0 1.5 0V4.75H15a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),L=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.545 1.403a.75.75 0 0 1 .91 0l7 5.334a.75.75 0 0 1 .295.596V18a.75.75 0 0 1-.75.75H3a.75.75 0 0 1-.75-.75V7.333a.75.75 0 0 1 .295-.596zm6.705 6.302L10 2.943 3.75 7.705v9.545h3.5V14a2.75 2.75 0 1 1 5.5 0v3.25h3.5zm-5 9.545V14a1.25 1.25 0 1 0-2.5 0v3.25z",clipRule:"evenodd"})]}),B=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#image-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M18.333 3.5H1.667a.167.167 0 0 0-.167.167v9.776l2.922-2.912a.75.75 0 0 1 1.059 0l2.104 2.098 5.178-5.16a.75.75 0 0 1 1.06 0L18.5 12.13V3.667a.167.167 0 0 0-.167-.167M-.06 14.998l.061-.06V3.667A1.666 1.666 0 0 1 1.667 2h16.666C19.253 2 20 2.746 20 3.667v9.958l.06.06-.06.062v2.586c0 .92-.746 1.667-1.667 1.667H1.667C.747 18 0 17.254 0 16.333V15.06L-.06 15Zm18.56 1.335v-2.085l-5.207-5.19-5.178 5.16a.75.75 0 0 1-1.059 0l-2.105-2.097-3.451 3.44v.772c0 .092.075.167.167.167h16.666a.167.167 0 0 0 .167-.167M5.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"image-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),K=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#info-circle-filled-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M20 10c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10m-8.75-4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M8.5 8.25a.75.75 0 0 0 0 1.5h.75v4.5H8.5a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-.75v-6z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"info-circle-filled-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),V=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#info-circle-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M10 18.5a8.5 8.5 0 1 0 0-17 8.5 8.5 0 0 0 0 17m0 1.5c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m1.25-14.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M8.5 8.25a.75.75 0 0 0 0 1.5h.75v4.5H8.5a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-.75v-6z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"info-circle-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),H=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#info-filled-icon_svg__a)",children:r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 10c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10m-8.75-4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M8.5 8.25a.75.75 0 0 0 0 1.5h.75v4.5H8.5a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-.75v-6z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"info-filled-icon_svg__a",children:r.jsx("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),$=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.75 4a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-1.901l-2.16 9.5H11a.75.75 0 0 1 0 1.5H6a.75.75 0 0 1 0-1.5h1.901l2.16-9.5H8.5A.75.75 0 0 1 7.75 4",clipRule:"evenodd"})]}),U=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m17.026 8.54-1.944 1.945a.75.75 0 0 1-1.06-1.06l1.944-1.945a1.75 1.75 0 0 0 0-2.475l-.707-.707a1.75 1.75 0 0 0-2.475 0L9.248 7.834a1.75 1.75 0 0 0 0 2.475l.354.353a.75.75 0 1 1-1.06 1.06l-.354-.353a3.25 3.25 0 0 1 0-4.596l3.535-3.536a3.25 3.25 0 0 1 4.596 0l.707.708a3.25 3.25 0 0 1 0 4.596ZM5.065 9.897a.75.75 0 1 1 1.06 1.06L4.3 12.784a1.75 1.75 0 0 0 0 2.475l.707.707a1.75 1.75 0 0 0 2.475 0l3.535-3.535a1.75 1.75 0 0 0 0-2.475l-.354-.354a.75.75 0 1 1 1.061-1.06l.354.353a3.25 3.25 0 0 1 0 4.596L8.54 17.026a3.25 3.25 0 0 1-4.596 0l-.707-.707a3.25 3.25 0 0 1 0-4.596l1.827-1.827Z",clipRule:"evenodd"})]}),Z=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.75 5.417a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5m4.167-2a.75.75 0 1 0 0 1.5h9.167a.75.75 0 0 0 0-1.5zm0 5.833a.75.75 0 0 0 0 1.5h9.167a.75.75 0 0 0 0-1.5zm-.75 6.583a.75.75 0 0 1 .75-.75h9.167a.75.75 0 0 1 0 1.5H7.917a.75.75 0 0 1-.75-.75M5 10a1.25 1.25 0 1 1-2.5 0A1.25 1.25 0 0 1 5 10m-1.25 7.083a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5",clipRule:"evenodd"})]}),q=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.75 5a3.25 3.25 0 1 1 6.5 0v2.5h-6.5zm-1.5 2.5V5a4.75 4.75 0 0 1 9.5 0v2.5H15a3.5 3.5 0 0 1 3.5 3.5v5a3.5 3.5 0 0 1-3.5 3.5H5A3.5 3.5 0 0 1 1.5 16v-5A3.5 3.5 0 0 1 5 7.5zM5 9a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-5a2 2 0 0 0-2-2zm6.5 3.5a1.5 1.5 0 0 1-.75 1.3V15a.75.75 0 0 1-1.5 0v-1.2a1.5 1.5 0 1 1 2.25-1.3",clipRule:"evenodd"})]}),G=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.667 1.833a.833.833 0 1 1-1.667 0 .833.833 0 0 1 1.667 0m3.673.251c.109-.763 1.21-.763 1.32 0l.657 4.6 4.599.656c.763.109.763 1.21 0 1.32l-4.6.657-.656 4.599c-.11.763-1.211.763-1.32 0l-.657-4.6-4.599-.656c-.763-.11-.763-1.21 0-1.32l4.599-.657zM2.832 14.142c.11-.773 1.226-.773 1.336 0l.212 1.479 1.478.21c.773.111.773 1.227 0 1.337l-1.478.211-.212 1.479c-.11.773-1.226.773-1.336 0l-.211-1.479-1.479-.21c-.773-.111-.773-1.227 0-1.337l1.479-.212zm-.999-3.475a.833.833 0 1 0 0-1.667.833.833 0 0 0 0 1.667m12.667 8.5a.833.833 0 1 0 0-1.667.833.833 0 0 0 0 1.667"})]}),W=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.25 10A.75.75 0 0 1 4 9.25h12a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),Y=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#monkey-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M10 .25C4.615.25.25 4.615.25 10s4.365 9.75 9.75 9.75h5a.75.75 0 0 0 0-1.5h-5a8.25 8.25 0 0 1 0-16.5h1.365a6.885 6.885 0 0 1 6.885 6.885v3.115a2 2 0 1 1-4 0V5a.75.75 0 0 0-1.5 0v.896a4.5 4.5 0 0 0-7.5 3.354v1.5a4.5 4.5 0 0 0 8.009 2.818 3.5 3.5 0 0 0 6.491-1.818V8.635A8.385 8.385 0 0 0 11.365.25zm2.75 10.5v-1.5a3 3 0 1 0-6 0v1.5a3 3 0 1 0 6 0",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"monkey-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),X=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.5 8.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m5 1.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m6.5 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0",clipRule:"evenodd"})]}),Q=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M10 8.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0 6.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-13a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"})]}),J=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.637 2.803a.75.75 0 1 1 1.06 1.061l-1.22 1.22H5a5.75 5.75 0 0 1 5 2.908 5.75 5.75 0 0 1 5-2.908h1.523l-1.22-1.22a.75.75 0 1 1 1.061-1.06l3.03 3.03-3.03 3.03a.75.75 0 0 1-1.06-1.06l1.22-1.22H15a4.25 4.25 0 0 0-4.25 4.25V17.5a.75.75 0 0 1-1.5 0v-6.666A4.25 4.25 0 0 0 5 6.584H3.478l1.22 1.22a.75.75 0 1 1-1.061 1.06l-3.03-3.03z",clipRule:"evenodd"})]}),ee=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",fillRule:"evenodd",d:"M12.258 1.913a.833.833 0 0 0-1.183 0L8.716 4.272a.83.83 0 0 0-.241.591c.003.22.09.432.241.592l1.917 1.908H1.666a.833.833 0 0 0-.833.834v3.333a.833.833 0 0 0 .833.833h8.967l-1.917 1.909a.83.83 0 0 0 0 1.183l2.359 2.35a.83.83 0 0 0 1.183 0l7.358-7.35a.88.88 0 0 0 .242-.592.84.84 0 0 0-.242-.591z",clipRule:"evenodd"})]}),te=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",fillRule:"evenodd",d:"M15.834 3.575a.834.834 0 0 0-1.175 0l-6.75 6.783-2.459-2.5a.834.834 0 0 0-1.183 0L1.909 10.25a.88.88 0 0 0-.242.583.83.83 0 0 0 .242.592l5.408 5.408a.84.84 0 0 0 .592.25.83.83 0 0 0 .583-.25l9.725-9.716a.833.833 0 0 0 0-1.184z",clipRule:"evenodd"})]}),ne=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",fillRule:"evenodd",d:"M10 1.667a8.333 8.333 0 1 0 0 16.666 8.333 8.333 0 0 0 0-16.666m0 11.666a3.333 3.333 0 1 1 0-6.666 3.333 3.333 0 0 1 0 6.666",clipRule:"evenodd"})]}),re=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",fillRule:"evenodd",d:"m18.367 5.033-4.9 4.892 4.9 4.9a.833.833 0 0 1 0 1.183l-2.359 2.359a.834.834 0 0 1-1.183 0l-4.9-4.9-4.892 4.9a.833.833 0 0 1-1.183 0l-2.358-2.359a.833.833 0 0 1 0-1.183l4.9-4.9-4.9-4.892a.83.83 0 0 1-.242-.591.83.83 0 0 1 .242-.592L3.85 1.492a.83.83 0 0 1 .592-.242c.22.003.432.09.591.242l4.892 4.9 4.9-4.9a.834.834 0 0 1 1.183 0l2.359 2.358a.833.833 0 0 1 0 1.183",clipRule:"evenodd"})]}),oe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",fillRule:"evenodd",d:"M8.32 6.668c0 .22-.09.43-.24.59-.16.16-.37.24-.59.24H4.16c-.22 0-.43-.09-.59-.24a.8.8 0 0 1-.24-.59c0-1.2.33-2.39.95-3.42A6.7 6.7 0 0 1 6.85.798a6.57 6.57 0 0 1 3.45-.79c1.2.06 2.37.44 3.37 1.1 1 .67 1.81 1.59 2.33 2.68s.74 2.29.63 3.49a6.66 6.66 0 0 1-4.04 5.52l-.1.05v.06c0 .22-.09.43-.24.59-.16.16-.37.24-.59.24H8.33c-.22 0-.43-.09-.59-.24a.82.82 0 0 1-.24-.59v-.42c.05-.95.37-1.86.93-2.62s1.33-1.35 2.22-1.68c.28-.12.52-.31.7-.55s.29-.53.31-.83c.03-.3-.03-.6-.16-.87s-.33-.5-.58-.67-.54-.26-.84-.28c-.3-.01-.6.05-.87.2-.27.14-.49.35-.64.61s-.24.55-.24.86zm1.67 13.33c.49 0 .98-.15 1.39-.42s.73-.67.92-1.12c.19-.46.24-.96.14-1.44s-.33-.93-.68-1.28-.8-.59-1.28-.68c-.48-.1-.99-.05-1.44.14-.46.19-.85.51-1.12.92a2.505 2.505 0 0 0 .31 3.16c.47.47 1.1.73 1.77.73z",clipRule:"evenodd"})]}),ie=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",fillRule:"evenodd",d:"M9.293 1.1a1 1 0 0 1 1.414 0l6.317 6.318a1 1 0 0 1 0 1.414l-1.827 1.827a1 1 0 0 1-1.414 0l-1.492-1.492v1.25c0 1.214.442 2.06 1.327 2.689.869.616 2.321 1.126 4.549 1.244.551.029 1 .473 1 1.025v2.583a.97.97 0 0 1-1 .98c-2.88-.121-5.35-.78-7.203-2.096a8 8 0 0 1-.964-.8 8 8 0 0 1-.965.8c-1.853 1.316-4.322 1.975-7.202 2.096a.97.97 0 0 1-1-.98v-2.583c0-.552.448-.996 1-1.025 2.227-.118 3.68-.628 4.548-1.244.885-.63 1.327-1.475 1.327-2.69v-1.25L6.216 10.66a1 1 0 0 1-1.414 0L2.975 8.832a1 1 0 0 1 0-1.414z",clipRule:"evenodd"})]}),ae=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",fillRule:"evenodd",d:"M16.725 2.958a5.833 5.833 0 0 0-9.492 6.417.3.3 0 0 1 0 .1l-5.667 5.692a1.67 1.67 0 0 0-.441.775l-.242.975a1.667 1.667 0 0 0 1.8 2.058l.883-.1A1.67 1.67 0 0 0 5 17.625l.391-1.575.217-.208 2.4-.217a1.67 1.67 0 0 0 1.425-1.133l.65-1.95.1-.1a.3.3 0 0 1 .1 0A5.833 5.833 0 0 0 16.7 2.95zM15 6.492a1.25 1.25 0 1 1-1.77-1.768A1.25 1.25 0 0 1 15 6.492",clipRule:"evenodd"})]}),se=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",fillRule:"evenodd",d:"M6.666 13.333H7.5V17.5c0 .46.373.833.833.833H10c.46 0 .833-.373.833-.833V5.417c0-.23.187-.417.417-.417h1.666c.23 0 .417.187.417.417V17.5c0 .46.373.833.833.833h1.667c.46 0 .833-.373.833-.833V5.417c0-.23.187-.417.417-.417h1.25c.46 0 .833-.373.833-.833V2.5a.833.833 0 0 0-.833-.833H6.666a5.833 5.833 0 1 0 0 11.666",clipRule:"evenodd"})]}),le=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",fillRule:"evenodd",d:"M9.99 0a.84.84 0 0 1 .73.42l6.67 11.67c.07.13.11.27.11.42a.84.84 0 0 1-.84.84H3.32a.8.8 0 0 1-.41-.11.8.8 0 0 1-.3-.3.9.9 0 0 1-.11-.42c0-.15.04-.29.11-.42L9.27.42c.07-.13.18-.23.3-.3Q9.765 0 9.99 0M3.72 14.52a.7.7 0 0 0-.32-.14c-.12-.01-.24 0-.35.05s-.2.13-.26.23-.1.22-.1.34v4.17c0 .17.07.32.19.44s.27.18.44.19c.17 0 .32-.07.44-.19s.18-.27.19-.44v-2.83l3.97 3.33c.09.07.2.12.32.14.12.01.24 0 .35-.05a.62.62 0 0 0 .36-.59V15c0-.17-.07-.32-.18-.44a.62.62 0 0 0-.44-.18c-.16 0-.32.07-.44.18s-.18.28-.18.44v2.83l-3.97-3.32zm13.01.4a1.87 1.87 0 0 0-1.32-.54h-3.75c-.17 0-.33.06-.44.18-.12.12-.19.27-.19.44v4.17c0 .16.07.32.18.44.12.12.28.18.45.18.16 0 .32-.06.44-.18a.62.62 0 0 0 .18-.44v-1.05h3.13c.49 0 .97-.19 1.32-.54.35-.36.55-.83.55-1.33s-.2-.97-.55-1.33m-.88 1.77c-.12.12-.28.19-.44.19h-3.13v-1.26h3.13a.631.631 0 0 1 .44 1.07",clipRule:"evenodd"})]}),ce=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",fillRule:"evenodd",d:"M18.284 10.883 12.5 16.667v-5.834h5.834zm.05-1.716H12.5a1.667 1.667 0 0 0-1.666 1.666v5.834h-7.5A1.666 1.666 0 0 1 1.667 15V5a1.667 1.667 0 0 1 1.667-1.667h13.333A1.667 1.667 0 0 1 18.334 5z",clipRule:"evenodd"})]}),ue=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",fillRule:"evenodd",d:"M17.382 8.465 4.155 1.855a1.716 1.716 0 0 0-2.282 2.332L4.953 10l-3.08 5.804a1.714 1.714 0 0 0 2.282 2.34l13.227-6.61a1.715 1.715 0 0 0 0-3.069",clipRule:"evenodd"})]}),de=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",fillRule:"evenodd",d:"M18.334 4.167V12.5a1.666 1.666 0 0 1-1.667 1.667H6.959l-3.942 3.15a.833.833 0 0 1-1.35-.65v-12.5A1.667 1.667 0 0 1 3.334 2.5h13.333a1.667 1.667 0 0 1 1.667 1.667",clipRule:"evenodd"})]}),pe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",fillRule:"evenodd",d:"m18.109 8.5-3.859 2.8 1.475 4.533a1.25 1.25 0 0 1-1.925 1.4l-3.858-2.808-3.867 2.817a1.25 1.25 0 0 1-1.916-1.409l1.475-4.541L1.767 8.5A1.25 1.25 0 0 1 2.5 6.233h4.775L8.75 1.667a1.25 1.25 0 0 1 2.375 0L12.6 6.2h4.775a1.25 1.25 0 0 1 .734 2.3",clipRule:"evenodd"})]}),he=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#paste-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M14.5 14.5h4v-13h-10v1H7V1a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4.5zm-3 4h-10v-13H8V8a1 1 0 0 0 1 1h2.5zM0 19V5a1 1 0 0 1 1-1h7.586a1 1 0 0 1 .707.293l3.414 3.414a1 1 0 0 1 .293.707V19a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1M11.5 2.75a.75.75 0 0 0 0 1.5h4a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"paste-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),fe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m16.256 9.773-1.179 1.179a.833.833 0 0 1-1.178 0l-.59-.59L6.42 17.25a3.2 3.2 0 0 1-1.785.9l-.203.032a2.58 2.58 0 0 0-1.437.725L1.23 17.139c.389-.389.643-.892.725-1.436l.03-.204a3.2 3.2 0 0 1 .902-1.785l6.887-6.887-.589-.59a.833.833 0 0 1 0-1.178l1.179-1.178a.833.833 0 0 1 1.178 0 .833.833 0 0 0 1.179 0l1.768-1.768a2.5 2.5 0 1 1 3.535 3.536l-1.767 1.767a.833.833 0 0 0 0 1.179.833.833 0 0 1 0 1.178Zm-1.061-3.417a2.33 2.33 0 0 0-.403 2.76l-.304.304-3.771-3.771.304-.305a2.33 2.33 0 0 0 2.76-.403l1.767-1.767a1 1 0 0 1 1.415 1.414zM4.209 16.698c-.35.053-.69.15-1.01.29l-.052-.051q.21-.483.29-1.01l.03-.204a1.7 1.7 0 0 1 .48-.948l6.879-6.88L12.24 9.31l-6.88 6.88a1.7 1.7 0 0 1-.948.479l-.203.03Z",clipRule:"evenodd"})]}),me=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.25 16a.75.75 0 0 0 1.5 0v-5.25H16a.75.75 0 0 0 0-1.5h-5.25V4a.75.75 0 0 0-1.5 0v5.25H4a.75.75 0 0 0 0 1.5h5.25z",clipRule:"evenodd"})]}),ge=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.25 2.917c0-.875.709-1.584 1.583-1.584h8.334c.874 0 1.583.71 1.583 1.584V4.25h1.75a2.417 2.417 0 0 1 2.416 2.417v6.666A2.417 2.417 0 0 1 17.5 15.75h-1.75v2.583c0 .875-.709 1.584-1.583 1.584H5.833a1.583 1.583 0 0 1-1.583-1.584V15.75H2.5a2.417 2.417 0 0 1-2.417-2.417V6.667A2.417 2.417 0 0 1 2.5 4.25h1.75zM15 5.75H2.5a.917.917 0 0 0-.917.917v6.666c0 .507.41.917.917.917h1.75v-3.417c0-.874.709-1.583 1.583-1.583h8.334c.874 0 1.583.709 1.583 1.583v3.417h1.75c.506 0 .916-.41.916-.917V6.667a.917.917 0 0 0-.916-.917zm-.75-2.833V4.25h-8.5V2.917c0-.046.037-.084.083-.084h8.334c.046 0 .083.038.083.084m0 7.916v7.5a.083.083 0 0 1-.083.084H5.833a.083.083 0 0 1-.083-.084v-7.5c0-.046.037-.083.083-.083h8.334c.046 0 .083.037.083.083m-.5-2.5a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666m-5.417 4.25a.75.75 0 0 0 0 1.5h3.333a.75.75 0 1 0 0-1.5zm0 2.5a.75.75 0 0 0 0 1.5h3.333a.75.75 0 1 0 0-1.5z",clipRule:"evenodd"})]}),ve=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.09 2.231a.75.75 0 1 1 .987-1.129l3.979 3.481-3.979 3.481a.75.75 0 0 1-.987-1.128l1.948-1.705a5.083 5.083 0 1 0 4.046 4.978.75.75 0 1 1 1.5 0 6.583 6.583 0 1 1-5.856-6.544z",clipRule:"evenodd"})]}),ye=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.78 8.5a5.72 5.72 0 1 1 11.44 0 5.72 5.72 0 0 1-11.44 0M8.5 1.22a7.28 7.28 0 1 0 4.59 12.93l3.88 3.88a.75.75 0 0 0 1.06-1.06l-3.88-3.88A7.28 7.28 0 0 0 8.5 1.22",clipRule:"evenodd"})]}),be=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{fillRule:"evenodd",clipPath:"url(#settings-icon_svg__a)",clipRule:"evenodd",children:[r.jsx("path",{d:"M13.334 10a3.333 3.333 0 1 1-6.667 0 3.333 3.333 0 0 1 6.667 0m-1.5 0a1.833 1.833 0 1 1-3.667 0 1.833 1.833 0 0 1 3.667 0"}),r.jsx("path",{d:"M9.433.917c-.755 0-1.405.532-1.553 1.273l-.334 1.67s-.001.007-.011.018a.2.2 0 0 1-.057.04.14.14 0 0 1-.064.011.04.04 0 0 1-.021-.005l-1.418-.945a1.58 1.58 0 0 0-1.998.197l-.801.802a1.58 1.58 0 0 0-.198 1.998l.945 1.417a.04.04 0 0 1 .005.022.14.14 0 0 1-.012.064.2.2 0 0 1-.038.056q-.018.013-.019.012l-1.67.334A1.58 1.58 0 0 0 .916 9.433v1.134c0 .755.533 1.405 1.273 1.553l1.67.334s.007 0 .018.01a.16.16 0 0 1 .052.122.04.04 0 0 1-.006.021l-.945 1.417a1.58 1.58 0 0 0 .198 1.998l.802.802c.533.533 1.37.616 1.997.198l1.418-.945q.002-.004.021-.006a.14.14 0 0 1 .064.012.2.2 0 0 1 .057.039c.01.012.01.018.01.018l.335 1.67c.148.74.798 1.273 1.553 1.273h1.133c.755 0 1.405-.532 1.553-1.272l.334-1.67s0-.007.011-.02a.2.2 0 0 1 .057-.038.15.15 0 0 1 .064-.012q.02.002.021.006l1.418.945a1.58 1.58 0 0 0 1.998-.198l.801-.802c.534-.533.617-1.37.198-1.998l-.945-1.417a.04.04 0 0 1-.006-.022.14.14 0 0 1 .012-.063.2.2 0 0 1 .04-.057q.016-.013.018-.011l1.67-.335a1.58 1.58 0 0 0 1.273-1.552V9.433c0-.754-.533-1.404-1.273-1.552l-1.67-.334s-.007-.001-.019-.012a.2.2 0 0 1-.039-.056.14.14 0 0 1-.012-.064q.003-.02.006-.021l.945-1.418a1.58 1.58 0 0 0-.198-1.998l-.801-.802a1.58 1.58 0 0 0-1.998-.197l-1.418.945a.04.04 0 0 1-.021.005.14.14 0 0 1-.064-.012.2.2 0 0 1-.057-.039q-.013-.017-.011-.018l-.334-1.67A1.58 1.58 0 0 0 10.566.917zM9.35 2.484a.08.08 0 0 1 .082-.067h1.133c.04 0 .074.028.082.067l.334 1.67c.11.552.506.959.964 1.149a1.59 1.59 0 0 0 1.492-.131l1.418-.945a.08.08 0 0 1 .105.01l.802.802a.08.08 0 0 1 .01.105l-.945 1.418a1.59 1.59 0 0 0-.131 1.492c.19.457.596.853 1.148.963l1.67.335a.08.08 0 0 1 .068.081v1.134c0 .04-.028.074-.067.082l-1.67.334c-.553.11-.96.506-1.15.964a1.59 1.59 0 0 0 .132 1.492l.945 1.417a.08.08 0 0 1-.01.105l-.802.802a.084.084 0 0 1-.105.01l-1.418-.944a1.59 1.59 0 0 0-1.492-.131c-.458.19-.854.596-.964 1.148l-.334 1.67a.08.08 0 0 1-.082.067H9.433a.08.08 0 0 1-.082-.067l-.334-1.67a1.6 1.6 0 0 0-.964-1.148 1.59 1.59 0 0 0-1.492.13l-1.418.946a.08.08 0 0 1-.105-.01l-.801-.803a.08.08 0 0 1-.01-.105l.944-1.417c.31-.466.322-1.03.13-1.492a1.6 1.6 0 0 0-1.148-.964l-1.67-.334a.08.08 0 0 1-.067-.082V9.433c0-.04.028-.074.067-.081l1.67-.335c.553-.11.959-.506 1.149-.964a1.59 1.59 0 0 0-.131-1.492l-.945-1.417a.08.08 0 0 1 .01-.105l.802-.802a.08.08 0 0 1 .105-.01l1.417.945c.467.31 1.031.322 1.493.13.457-.19.853-.596.964-1.148z"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"settings-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),we=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.417 7.5a5.083 5.083 0 0 1 10.112-.75H8.333c-.874 0-1.583.709-1.583 1.583v4.195A5.084 5.084 0 0 1 2.417 7.5m4.333 6.541a6.584 6.584 0 1 1 7.291-7.29H17.5c.875 0 1.583.708 1.583 1.582V17.5c0 .875-.709 1.583-1.583 1.583H8.333A1.583 1.583 0 0 1 6.75 17.5zm1.5-5.708c0-.046.037-.083.083-.083H17.5c.046 0 .083.037.083.083V17.5a.083.083 0 0 1-.083.083H8.333a.083.083 0 0 1-.083-.083z",clipRule:"evenodd"})]}),xe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.417 6.5a2.75 2.75 0 1 0-2.667-2.077L6.5 8.028a2.75 2.75 0 1 0 0 3.943l6.25 3.606A2.752 2.752 0 0 0 15.417 19a2.75 2.75 0 1 0-1.917-4.722l-6.25-3.605a2.76 2.76 0 0 0 0-1.346l6.25-3.605a2.74 2.74 0 0 0 1.917.778M4.583 8.75c.306 0 .586.11.803.292l.428.742a1.3 1.3 0 0 1 0 .432l-.428.742a1.25 1.25 0 1 1-.803-2.208m12.084-5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m0 12.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0",clipRule:"evenodd"})]}),_e=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.07 2.813c1.006-.966 2.68-.253 2.68 1.142v12.09c0 1.395-1.674 2.108-2.68 1.142l-4.598-4.414a.08.08 0 0 0-.057-.023H1.833A1.583 1.583 0 0 1 .25 11.167V8.433c0-.874.709-1.583 1.583-1.583h2.998a.08.08 0 0 0 .058-.023zm1.08 1.058c-.007.001-.02.004-.041.024L5.928 7.909a1.58 1.58 0 0 1-1.097.441H1.833a.083.083 0 0 0-.083.083v2.734c0 .046.037.083.083.083h2.582c.408 0 .801.158 1.096.441l4.598 4.414c.02.02.034.023.042.024q.018.003.048-.008a.1.1 0 0 0 .04-.03c.004-.006.011-.018.011-.046V3.955c0-.028-.007-.04-.011-.047a.1.1 0 0 0-.04-.03.1.1 0 0 0-.048-.007Z",clipRule:"evenodd"}),r.jsx("path",{d:"M13.005 6.005a.75.75 0 0 1 1.06 0 5.995 5.995 0 0 1 0 8.478.75.75 0 0 1-1.06-1.06 4.495 4.495 0 0 0 0-6.358.75.75 0 0 1 0-1.06"}),r.jsx("path",{d:"M16.834 4.47a.75.75 0 1 0-1.06 1.06 6.75 6.75 0 0 1 0 9.546.75.75 0 1 0 1.06 1.06 8.25 8.25 0 0 0 0-11.666"})]}),Se=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 .25A3.75 3.75 0 0 0 6.25 4v6a3.75 3.75 0 1 0 7.5 0V4A3.75 3.75 0 0 0 10 .25M7.75 4a2.25 2.25 0 0 1 4.5 0v6a2.25 2.25 0 0 1-4.5 0zm-3 3a.75.75 0 0 0-1.5 0v3a6.75 6.75 0 0 0 6 6.709v1.541H7a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5h-2.25v-1.541a6.75 6.75 0 0 0 6-6.709V7a.75.75 0 0 0-1.5 0v3a5.25 5.25 0 1 1-10.5 0z",clipRule:"evenodd"})]}),Ce=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 .5a.75.75 0 0 1 .693.462l2.248 5.406 5.837.468a.75.75 0 0 1 .428 1.318l-4.447 3.809 1.359 5.696a.75.75 0 0 1-1.12.814L10 15.42l-4.997 3.052a.75.75 0 0 1-1.12-.814l1.358-5.696-4.447-3.81a.75.75 0 0 1 .428-1.317l5.837-.468L9.308.962A.75.75 0 0 1 10 .5m0 2.703L8.268 7.367a.75.75 0 0 1-.632.46l-4.496.36 3.425 2.935a.75.75 0 0 1 .242.743L5.76 16.253l3.85-2.351a.75.75 0 0 1 .781 0l3.85 2.35-1.047-4.387a.75.75 0 0 1 .241-.743l3.426-2.934-4.496-.36a.75.75 0 0 1-.633-.46z",clipRule:"evenodd"})]}),Ee=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.842 15.206c.6-.6.621-1.559.063-2.183l3.232-3.232c.95-.95.95-2.49 0-3.44L12.255.47a.75.75 0 0 0-1.25.32v.002l-.003.006-.008.03a15 15 0 0 1-.194.582c-.14.394-.351.947-.634 1.57-.48 1.06-1.15 2.287-2.004 3.303a1.59 1.59 0 0 0-2.158.084l-.932.932a1.59 1.59 0 0 0 0 2.25l1.767 1.768a.09.09 0 0 1-.015.14L2.893 13.96a3.156 3.156 0 1 0 4.357 4.358l2.502-3.93a.09.09 0 0 1 .14-.016l1.769 1.767a1.59 1.59 0 0 0 2.25 0l.931-.932ZM7.66 7.894l-.01-.01-.456-.456a.09.09 0 0 0-.129 0l-.932.932a.09.09 0 0 0 0 .129L7.9 10.256a1.59 1.59 0 0 1-.271 2.467l-3.931 2.502a1.656 1.656 0 1 0 2.287 2.287l2.501-3.931a1.59 1.59 0 0 1 2.468-.27l1.767 1.767a.09.09 0 0 0 .129 0l.932-.932a.09.09 0 0 0 0-.129l-.456-.455-.01-.01zM11.532 3.6c-.519 1.144-1.28 2.555-2.303 3.743l4.617 4.617 3.23-3.23a.93.93 0 0 0 0-1.318l-.402-.402-1.945 1.945a.75.75 0 1 1-1.06-1.06c.732-.733 1.025-1.48 1.14-2.03a3 3 0 0 0 .072-.648l-2.84-2.84c-.135.355-.304.771-.51 1.223ZM5.183 16.026a.75.75 0 1 0-1.06 1.06.75.75 0 0 0 1.06-1.06",clipRule:"evenodd"})]}),ke=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.75 3.75A.75.75 0 0 1 2.5 3h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75m2.5 4.167a.75.75 0 0 1 .75-.75h10a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75m-2.5 4.166a.75.75 0 0 1 .75-.75h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75m2.5 4.167A.75.75 0 0 1 5 15.5h10a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),ze=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.75 3.75A.75.75 0 0 1 2.5 3h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75m0 4.167a.75.75 0 0 1 .75-.75h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75m0 4.166a.75.75 0 0 1 .75-.75h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75m0 4.167a.75.75 0 0 1 .75-.75h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),Pe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M2.5 3a.75.75 0 0 0 0 1.5h15a.75.75 0 0 0 0-1.5zm0 4.167a.75.75 0 1 0 0 1.5h10a.75.75 0 0 0 0-1.5zm-.75 4.916a.75.75 0 0 1 .75-.75h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75M2.5 15.5a.75.75 0 0 0 0 1.5h10a.75.75 0 0 0 0-1.5z"})]}),De=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.75 3.75A.75.75 0 0 1 2.5 3h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75m5 4.167a.75.75 0 0 1 .75-.75h10a.75.75 0 0 1 0 1.5h-10a.75.75 0 0 1-.75-.75m-5 4.166a.75.75 0 0 1 .75-.75h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75m5 4.167a.75.75 0 0 1 .75-.75h10a.75.75 0 0 1 0 1.5h-10a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),Ae=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.25 4A.75.75 0 0 1 5 3.25h10a.75.75 0 0 1 0 1.5h-4.25V15a.75.75 0 0 1-1.5 0V4.75H5A.75.75 0 0 1 4.25 4",clipRule:"evenodd"})]}),Te=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.167 3.417a.75.75 0 0 0-.75.75v4.166c0 .415.336.75.75.75h4.167a.75.75 0 0 0 .75-.75V4.167a.75.75 0 0 0-.75-.75zm.75 4.166V4.917h2.667v2.666zm-.75 3.334a.75.75 0 0 0-.75.75v4.166c0 .414.336.75.75.75h4.167a.75.75 0 0 0 .75-.75v-4.166a.75.75 0 0 0-.75-.75zm.75 4.166v-2.666h2.667v2.666zm6-3.416a.75.75 0 0 1 .75-.75h4.167a.75.75 0 0 1 .75.75v4.166a.75.75 0 0 1-.75.75h-4.167a.75.75 0 0 1-.75-.75zm1.5.75v2.666h2.667v-2.666zm-.75-9a.75.75 0 0 0-.75.75v4.166c0 .415.336.75.75.75h4.167a.75.75 0 0 0 .75-.75V4.167a.75.75 0 0 0-.75-.75zm.75 4.166V4.917h2.667v2.666z",clipRule:"evenodd"})]}),Ie=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.75.98h2.74l-.02.01c2.22 0 3.32 1.29 3.4 2.49.02.24-.01.46-.07.67.15.11.3.25.42.41.48.62.59 1.49.29 2.22q-.06.165-.15.3c.08.07.15.15.22.24.47.62.58 1.48.28 2.2q-.15.345-.39.6c.3.42.43.95.35 1.52a2.123 2.123 0 0 1-2.14 1.85H13.7c-.13 0-.19.07-.22.11l-.003.005a.28.28 0 0 0-.017.245l1.43 3.48c.34 1.06-.24 2.21-1.28 2.56-.96.33-2.03-.1-2.48-1.01-1.37-2.73-2.67-4.32-3.71-5.59q-.227-.277-.44-.54H4c-.52 0-.959-.24-1.296-.559-.333-.316-.598-.738-.804-1.202-.414-.93-.65-2.164-.65-3.49 0-1.325.236-2.559.65-3.49.206-.463.472-.885.804-1.201.337-.32.777-.559 1.296-.559h3.5q.1.001.193.026C8.806 1.455 10.2.979 11.75.979Zm-5.5 2.77c-.787 1.115-1.24 2.503-1.24 4.04 0 1.477.339 2.515.897 3.46H4c-.034 0-.121-.013-.263-.147-.146-.139-.311-.374-.467-.723-.31-.697-.52-1.713-.52-2.88 0-1.168.21-2.184.52-2.88.156-.35.321-.586.467-.724.142-.134.23-.147.263-.147h2.25Zm6.68 14.75a.54.54 0 0 1-.47-.29c-1.44-2.88-2.8-4.54-3.89-5.87C7.23 10.71 6.5 9.81 6.5 7.79c0-2.57 1.84-5.31 5.24-5.31h2.74c1.34 0 1.87.66 1.9 1.1 0 .08 0 .21-.09.22-.41.06-.7.44-.64.85s.44.7.85.64q.36-.045.54.18c.15.19.19.5.09.73-.08.2-.24.3-.5.34-.38.05-.66.37-.66.74v.1c.05.41.42.71.84.65.25-.03.44.03.56.2.15.19.18.49.09.71-.08.19-.24.3-.5.33-.35.04-.62.33-.65.68s.19.68.53.78c.5.15.5.54.48.69-.04.26-.23.57-.65.57h-2.98c-.59 0-1.14.28-1.47.77s-.39 1.11-.16 1.66l1.41 3.42c.07.22-.09.53-.37.63a.6.6 0 0 1-.17.03",clipRule:"evenodd"})]}),Me=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#thumbs-up-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M11.75 19.02h2.74l-.02-.01c2.22 0 3.32-1.29 3.4-2.49.02-.24-.01-.46-.07-.67.15-.11.3-.25.42-.41.48-.62.59-1.49.29-2.22q-.06-.165-.15-.3c.08-.07.15-.15.22-.24.47-.62.58-1.48.28-2.2q-.15-.345-.39-.6c.3-.42.43-.95.35-1.52a2.123 2.123 0 0 0-2.14-1.85H13.7c-.13 0-.19-.07-.22-.11l-.003-.005c-.021-.042-.065-.13-.017-.245l1.43-3.48c.34-1.06-.24-2.21-1.28-2.56-.96-.33-2.03.1-2.48 1.01-1.37 2.73-2.67 4.32-3.71 5.59q-.227.277-.44.54H4c-.52 0-.959.239-1.296.559-.333.315-.598.737-.804 1.201-.414.93-.65 2.164-.65 3.49s.236 2.56.65 3.49c.206.464.472.886.804 1.202.337.32.777.558 1.296.558h3.5a.8.8 0 0 0 .193-.025c1.113.82 2.507 1.295 4.057 1.295m-5.5-2.77c-.787-1.116-1.24-2.503-1.24-4.04 0-1.478.339-2.516.897-3.46H4c-.034 0-.121.012-.263.147-.146.138-.311.374-.467.723-.31.696-.52 1.713-.52 2.88s.21 2.184.52 2.88c.156.35.321.585.467.723.142.135.23.147.263.147zM12.93 1.5a.54.54 0 0 0-.47.29c-1.44 2.88-2.8 4.54-3.89 5.87-1.34 1.63-2.07 2.53-2.07 4.55 0 2.57 1.84 5.31 5.24 5.31h2.74c1.34 0 1.87-.66 1.9-1.1 0-.08 0-.21-.09-.22a.754.754 0 0 1-.64-.85c.06-.41.44-.7.85-.64q.36.045.54-.18c.15-.19.19-.5.09-.73-.08-.2-.24-.3-.5-.34a.75.75 0 0 1-.66-.74v-.1a.74.74 0 0 1 .84-.65c.25.03.44-.03.56-.2.15-.19.18-.49.09-.71-.08-.19-.24-.3-.5-.33a.746.746 0 0 1-.65-.68c-.03-.35.19-.68.53-.78.5-.15.5-.54.48-.69-.04-.26-.23-.57-.65-.57h-2.98c-.59 0-1.14-.28-1.47-.77s-.39-1.11-.16-1.66l1.41-3.42c.07-.22-.09-.53-.37-.63a.6.6 0 0 0-.17-.03",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"thumbs-up-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),Re=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.25 3.5a1.75 1.75 0 1 1 3.5 0v.25h-3.5zm5 0a3.25 3.25 0 0 0-6.5 0v.25H2a.75.75 0 0 0 0 1.5h1.25v12.083a2.417 2.417 0 0 0 2.417 2.417h8.666a2.417 2.417 0 0 0 2.417-2.417V5.25H18a.75.75 0 0 0 0-1.5h-4.75zm-8.5 13.833V5.25h10.5v12.083c0 .507-.41.917-.917.917H5.667a.917.917 0 0 1-.917-.917m6-9.333a.75.75 0 0 0-1.5 0v7a.75.75 0 0 0 1.5 0zM7 7.25a.75.75 0 0 1 .75.75v7a.75.75 0 0 1-1.5 0V8A.75.75 0 0 1 7 7.25m6.75.75a.75.75 0 0 0-1.5 0v7a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"})]}),Fe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.75 4a.75.75 0 0 0-1.5 0v7a4.75 4.75 0 1 0 9.5 0V4a.75.75 0 0 0-1.5 0v7a3.25 3.25 0 0 1-6.5 0zM3 17.25a.75.75 0 0 0 0 1.5h14a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),Ne=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.75 13a.75.75 0 0 1-1.5 0V4.844L7.537 6.6a.75.75 0 1 1-1.074-1.047L10 1.926l3.537 3.627a.75.75 0 1 1-1.074 1.048L10.75 4.844zm-8 0a.75.75 0 0 0-1.5 0v3c0 .966.784 1.75 1.75 1.75h14A1.75 1.75 0 0 0 18.75 16v-3a.75.75 0 0 0-1.5 0v3a.25.25 0 0 1-.25.25H3a.25.25 0 0 1-.25-.25z",clipRule:"evenodd"})]}),Oe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M19.529 14.966 12 2.42l-.932.56.932-.56c-.905-1.51-3.094-1.51-4 0L.471 14.966c-.933 1.555.187 3.534 2 3.534h15.057c1.814 0 2.934-1.979 2-3.534ZM10 6.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75m0 9.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5",clipRule:"evenodd"})]}),je=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m12.001 2.42 7.528 12.546c.933 1.555-.187 3.534-2.001 3.534H2.472C.658 18.5-.462 16.521.47 14.966L7.999 2.42c.907-1.51 3.096-1.51 4.002 0l-1.276.766zM1.757 15.737 9.286 3.19a.833.833 0 0 1 1.429 0l7.528 12.547A.833.833 0 0 1 17.528 17H2.472a.833.833 0 0 1-.715-1.262ZM10 6.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75m-1.25 8a1.25 1.25 0 1 0 2.5 0 1.25 1.25 0 0 0-2.5 0",clipRule:"evenodd"})]}),Le=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10M7.53 6.47a.75.75 0 0 0-1.06 1.06L8.94 10l-2.47 2.47a.75.75 0 1 0 1.06 1.06L10 11.06l2.47 2.47a.75.75 0 0 0 1.06-1.06L11.06 10l2.47-2.47a.75.75 0 0 0-1.06-1.06L10 8.94z",clipRule:"evenodd"})]}),Be=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#x-circle-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M18.5 10a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0m1.5 0c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10M7.53 6.47a.75.75 0 1 0-1.06 1.06L8.94 10l-2.47 2.47a.75.75 0 0 0 1.06 1.06L10 11.06l2.47 2.47a.75.75 0 0 0 1.06-1.06L11.06 10l2.47-2.47a.75.75 0 1 0-1.06-1.06L10 8.94z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"x-circle-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]}),Ke=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#x-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M16.894 3.106a.75.75 0 0 1 0 1.06L11.061 10l5.833 5.834a.75.75 0 0 1-1.06 1.06L10 11.061l-5.834 5.833a.75.75 0 1 1-1.06-1.06L8.939 10 3.106 4.166a.75.75 0 0 1 1.06-1.06L10 8.939l5.834-5.833a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"x-icon_svg__a",children:r.jsx("path",{d:"M0 0h20v20H0z"})})})]});t.TY=o,t.lO=i,t.mY=s,t.BN=c,t.QU=u,t.gq=p,t.KM=f,t.Ni=y,t.aM=b,t.dY=E,t.rx=D,t.F3=H,t.h3=$,t.xP=U,t.V_=W,t.pO=me,t.W1=ye,t.VL=Ae,t.XH=Re,t.Ad=Fe,t.av=Oe,t.b0=Ke},99666:(e,t,n)=>{"use strict";var r=n(85893),o=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#2B2E36",d:"M12.75 8c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H9c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V14c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H15c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25zM19 3.25H5C3.48 3.25 2.25 4.48 2.25 6v10c0 1.52 1.23 2.75 2.75 2.75h3.47c.4 0 .78.19 1.02.52l1.16 1.63c.66.92 2.01.98 2.75.12l1.57-1.83c.24-.28.59-.44.95-.44H19c1.52 0 2.75-1.23 2.75-2.75V6c0-1.52-1.23-2.75-2.75-2.75M20.25 16c0 .69-.56 1.25-1.25 1.25h-3.08c-.8 0-1.57.35-2.09.96l-1.57 1.83c-.1.13-.3.12-.39 0l-1.16-1.63a2.76 2.76 0 0 0-2.24-1.15H5c-.69 0-1.25-.56-1.25-1.25V6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25z"})]}),i=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M9.75 7a.75.75 0 0 0-1.5 0v2.25H6a.75.75 0 0 0 0 1.5h2.25V13a.75.75 0 0 0 1.5 0v-2.25H12a.75.75 0 0 0 0-1.5H9.75z"}),r.jsx("path",{fillRule:"evenodd",d:"M5 3.25A2.75 2.75 0 0 0 2.25 6v12A2.75 2.75 0 0 0 5 20.75h9.172a2.75 2.75 0 0 0 1.73-.613 1 1 0 0 0 .14-.119l4.976-4.976q.068-.066.12-.14a2.75 2.75 0 0 0 .612-1.73V6A2.75 2.75 0 0 0 19 3.25zm11 10h4.247l.003-.078V6c0-.69-.56-1.25-1.25-1.25H5c-.69 0-1.25.56-1.25 1.25v12c0 .69.56 1.25 1.25 1.25h9.172q.039 0 .078-.003V15c0-.966.784-1.75 1.75-1.75",clipRule:"evenodd"})]}),a=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M4 4.25a.75.75 0 0 0-.75.75v2.727a.75.75 0 1 0 1.5 0V5.75h5.5v13.5H8.2a.75.75 0 0 0 0 1.5h5.6a.75.75 0 0 0 0-1.5h-2.05V5.75h5.5v1.977a.75.75 0 0 0 1.5 0V5a.75.75 0 0 0-.75-.75zM20.75 17a.75.75 0 0 0-1.5 0v2.25H17a.75.75 0 0 0 0 1.5h2.25V23a.75.75 0 0 0 1.5 0v-2.25H23a.75.75 0 0 0 0-1.5h-2.25z"})]}),s=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M23 11.25c-5.66 0-10.25-4.59-10.25-10.25 0-.41-.34-.75-.75-.75s-.75.34-.75.75c0 5.66-4.59 10.25-10.25 10.25-.41 0-.75.34-.75.75s.34.75.75.75c5.66 0 10.25 4.59 10.25 10.25 0 .41.34.75.75.75s.75-.34.75-.75c0-5.66 4.59-10.25 10.25-10.25.41 0 .75-.34.75-.75s-.34-.75-.75-.75m-11 7.61C10.81 15.7 8.3 13.19 5.14 12 8.3 10.81 10.81 8.3 12 5.14c1.19 3.16 3.7 5.67 6.86 6.86-3.16 1.19-5.67 3.7-6.86 6.86",clipRule:"evenodd"})]}),l=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.61 3.95a1.75 1.75 0 0 1 1.692-2.2H11.4c.646 0 1.24.356 1.544.926l3.435 6.442a.25.25 0 0 0 .221.132H21a2.75 2.75 0 1 1 0 5.5h-4.4a.25.25 0 0 0-.22.132l-3.436 6.441a1.75 1.75 0 0 1-1.544.927h-1.098a1.75 1.75 0 0 1-1.691-2.2l1.353-5.074a.25.25 0 0 0-.224-.314L4.675 14.3a.25.25 0 0 0-.25.157l-.477 1.193a1.75 1.75 0 0 1-1.625 1.1H2A1.75 1.75 0 0 1 .25 15V9c0-.966.784-1.75 1.75-1.75h.323a1.75 1.75 0 0 1 1.625 1.1l.477 1.193a.25.25 0 0 0 .25.157l5.065-.362a.25.25 0 0 0 .224-.314L8.61 3.951Zm1.692-.7a.25.25 0 0 0-.242.314l1.353 5.074a1.75 1.75 0 0 1-1.566 2.196l-5.065.362a1.75 1.75 0 0 1-1.75-1.096l-.477-1.193a.25.25 0 0 0-.232-.157H2a.25.25 0 0 0-.25.25v6c0 .138.112.25.25.25h.323a.25.25 0 0 0 .232-.157l.477-1.193a1.75 1.75 0 0 1 1.75-1.096l5.065.362a1.75 1.75 0 0 1 1.566 2.196l-1.353 5.074a.25.25 0 0 0 .242.314H11.4a.25.25 0 0 0 .22-.132l3.436-6.441a1.75 1.75 0 0 1 1.544-.927H21a1.25 1.25 0 1 0 0-2.5h-4.4a1.75 1.75 0 0 1-1.544-.926L11.62 3.382a.25.25 0 0 0-.221-.132h-1.098Z",clipRule:"evenodd"})]}),c=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.25 4a.75.75 0 0 1 1.5 0v10.156l1.713-1.757a.75.75 0 1 1 1.074 1.048L12 17.074l-3.537-3.627A.75.75 0 0 1 9.537 12.4l1.713 1.756zm9.25 16.25a.75.75 0 0 0 0-1.5h-17a.75.75 0 0 0 0 1.5z",clipRule:"evenodd"})]}),u=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12 2.25a.75.75 0 0 1 .75.75v17a.75.75 0 0 1-1.5 0V3a.75.75 0 0 1 .75-.75m7.53 6.22a.75.75 0 0 1 0 1.06l-1.22 1.22H23a.75.75 0 0 1 0 1.5h-4.69l1.22 1.22a.75.75 0 1 1-1.06 1.06l-3.03-3.03 3.03-3.03a.75.75 0 0 1 1.06 0M4.47 9.53a.75.75 0 0 1 1.06-1.06l3.03 3.03-3.03 3.03a.75.75 0 0 1-1.06-1.06l1.22-1.22H1a.75.75 0 0 1 0-1.5h4.69z"})]}),d=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.97 5.47a.75.75 0 0 1 1.06 0l1.22 1.22V2a.75.75 0 0 1 1.5 0v4.69l1.22-1.22a.75.75 0 1 1 1.06 1.06L12 9.56 8.97 6.53a.75.75 0 0 1 0-1.06M2.75 12a.75.75 0 0 1 .75-.75h17a.75.75 0 0 1 0 1.5h-17a.75.75 0 0 1-.75-.75m7.28 6.53a.75.75 0 1 1-1.06-1.06L12 14.44l3.03 3.03a.75.75 0 1 1-1.06 1.06l-1.22-1.22V22a.75.75 0 0 1-1.5 0v-4.69z",clipRule:"evenodd"})]}),p=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.5 3.75a.75.75 0 0 0 0 1.5h17a.75.75 0 0 0 0-1.5zM12.75 20a.75.75 0 0 1-1.5 0V9.844L9.537 11.6a.75.75 0 1 1-1.074-1.048L12 6.926l3.537 3.627a.75.75 0 1 1-1.074 1.047L12.75 9.845z",clipRule:"evenodd"})]}),h=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.97 5.47a.75.75 0 0 1 1.06 0l1.22 1.22V2a.75.75 0 0 1 1.5 0v4.69l1.22-1.22a.75.75 0 1 1 1.06 1.06L12 9.56 8.97 6.53a.75.75 0 0 1 0-1.06M2.75 12a.75.75 0 0 1 .75-.75h17a.75.75 0 0 1 0 1.5h-17a.75.75 0 0 1-.75-.75m7.28 6.53a.75.75 0 1 1-1.06-1.06L12 14.44l3.03 3.03a.75.75 0 1 1-1.06 1.06l-1.22-1.22V22a.75.75 0 0 1-1.5 0v-4.69z",clipRule:"evenodd"})]}),f=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#anonymous-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M14.115 1.104a3.15 3.15 0 0 1 4.72 1.381L20.94 7.6h1.56a.9.9 0 1 1 0 1.8h-21a.9.9 0 0 1 0-1.8h1.56l2.106-5.115a3.15 3.15 0 0 1 4.719-1.381l1.169.818a1.65 1.65 0 0 0 1.892 0l1.17-.818Zm3.333 1.952 1.87 4.544H4.683l1.87-4.544a1.65 1.65 0 0 1 2.473-.723l1.169.818a3.15 3.15 0 0 0 3.613 0l1.169-.818a1.65 1.65 0 0 1 2.472.723ZM3.75 10.75h16.5v1a4 4 0 0 1-7.969.5h-.562a4 4 0 0 1-7.969-.5zm1.55 1.5a2.5 2.5 0 0 0 4.9 0zm8.5 0a2.5 2.5 0 0 0 4.9 0zm-11.8 5a.75.75 0 0 0-.61 1.186l2.028 2.839-1.804 1.082a.75.75 0 1 0 .772 1.286l2.5-1.5a.75.75 0 0 0 .224-1.079L3.458 18.75h7.792V23a.75.75 0 0 0 1.5 0v-4.25h7.793l-1.653 2.314a.75.75 0 0 0 .224 1.08l2.5 1.5a.75.75 0 1 0 .772-1.287l-1.803-1.082 2.027-2.84A.75.75 0 0 0 22 17.25z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"anonymous-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),m=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M19.53 11.47a.75.75 0 0 0-1.06 0l-6.22 6.22V4.5a.75.75 0 0 0-1.5 0v13.19l-6.22-6.22a.75.75 0 0 0-1.06 1.06l8.03 8.03 8.03-8.03a.75.75 0 0 0 0-1.06",clipRule:"evenodd"})]}),g=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.25 2a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V3.81L2.53 22.53a.75.75 0 0 1-1.06-1.06L20.19 2.75H16a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),v=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.03 3.97a.75.75 0 0 1 0 1.06l-6.22 6.22H19a.75.75 0 0 1 0 1.5H5.81l6.22 6.22a.75.75 0 1 1-1.06 1.06L2.94 12l8.03-8.03a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),y=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.97 3.97a.75.75 0 0 1 1.06 0L20.06 12l-8.03 8.03a.75.75 0 1 1-1.06-1.06l6.22-6.22H4a.75.75 0 0 1 0-1.5h13.19l-6.22-6.22a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})]}),b=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.47 12.53a.75.75 0 0 0 1.06 0l6.22-6.22V19.5a.75.75 0 0 0 1.5 0V6.31l6.22 6.22a.75.75 0 1 0 1.06-1.06L11.5 3.44l-8.03 8.03a.75.75 0 0 0 0 1.06",clipRule:"evenodd"})]}),w=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17.98 4.399a2.25 2.25 0 0 0-3.181 0l-8.84 8.838a3.75 3.75 0 1 0 5.304 5.304l6.717-6.718a.75.75 0 0 1 1.061 1.06l-6.717 6.718a5.25 5.25 0 1 1-7.425-7.424l8.839-8.84a3.75 3.75 0 0 1 5.303 5.304l-8.839 8.84a2.25 2.25 0 1 1-3.182-3.183l6.718-6.717a.75.75 0 1 1 1.06 1.06L8.082 15.36a.75.75 0 1 0 1.06 1.06l8.84-8.838a2.25 2.25 0 0 0 0-3.182Z",clipRule:"evenodd"})]}),x=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12m3-15a3 3 0 1 1-6 0 3 3 0 1 1 6 0m-9 7.5c0-1.995 3.998-3 6-3s6 1.005 6 3V18H6z",clipRule:"evenodd"})]}),_=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 12a3 3 0 1 0 0-6 3 3 0 1 0 0 6m0 1.5c-2.002 0-6 1.005-6 3V18h12v-1.5c0-1.995-3.998-3-6-3",clipRule:"evenodd"})]}),S=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("mask",{id:"bin-icon_svg__a",fill:"#fff",children:r.jsx("path",{d:"M6 17V7h12v10a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2"})}),r.jsx("path",{fill:"currentColor",d:"M6 7V6H5v1zm12 0h1V6h-1zM5 7v10h2V7zm3 13h8v-2H8zm11-3V7h-2v10zM18 6H6v2h12zm-2 14a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1zM5 17a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1z",mask:"url(#bin-icon_svg__a)"}),r.jsx("path",{stroke:"currentColor",d:"M5.5 7V6a.5.5 0 0 1 .5-.5h12a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5Z"}),r.jsx("path",{fill:"currentColor",d:"M11 5v-.5h-1V5zm.5-1h1V3h-1zm1.5.5V5h1v-.5zm-.5-.5a.5.5 0 0 1 .5.5h1A1.5 1.5 0 0 0 12.5 3zm-1.5.5a.5.5 0 0 1 .5-.5V3A1.5 1.5 0 0 0 10 4.5z"}),r.jsx("path",{stroke:"currentColor",d:"M9.5 10v6M12 10v6M14.5 10v6"})]}),C=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.5 3.5v12H7V8a1 1 0 0 1 1-1h7.5V3.5zM3 17h4v4a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-4V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1m17.5-8.5H17V16a1 1 0 0 1-1 1H8.5v3.5h12zm-5 1.94V8.5h-1.94zm0 2.06-.03.03-4-4 .03-.03H9.56l5.94 5.94zm-1.06 3L8.5 9.56v1.94l.03-.03 4 4-.03.03zm-4 0L8.5 13.56v1.94z",clipRule:"evenodd"})]}),E=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6 18.74c0 .696.564 1.26 1.26 1.26h5.79c3.321 0 5.357-1.586 5.357-4.221 0-1.8-1.028-3.172-2.871-3.579 1.543-.579 2.293-1.693 2.293-3.321C17.829 6.543 16.093 5 13.22 5H7.26A1.26 1.26 0 0 0 6 6.26zm3.6-7.89V8h2.807c1.136 0 1.757.557 1.757 1.393 0 .921-.685 1.457-1.693 1.457zm0 6.15v-3.15h3.171c1.286 0 1.993.6 1.993 1.564 0 1.029-.793 1.586-1.928 1.586z"})]}),k=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M9 1.25A2.75 2.75 0 0 0 6.25 4v18a.75.75 0 0 0 1.296.515L12 17.793l4.454 4.722A.75.75 0 0 0 17.75 22V4A2.75 2.75 0 0 0 15 1.25z"})]}),z=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9 2.75c-.69 0-1.25.56-1.25 1.25v16.112l3.704-3.927a.75.75 0 0 1 1.091 0l3.705 3.927V4c0-.69-.56-1.25-1.25-1.25zM6.25 4A2.75 2.75 0 0 1 9 1.25h6A2.75 2.75 0 0 1 17.75 4v18a.75.75 0 0 1-1.296.515L12 17.793l-4.454 4.722A.75.75 0 0 1 6.25 22z",clipRule:"evenodd"})]}),P=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.5 14.5v-11h11v11zM2 3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm13 14.5a2.5 2.5 0 0 0 2.5-2.5V8H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-3.5z",clipRule:"evenodd"})]}),D=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 2h20l-2 2v16l2 2H2l2-2V4zm0 0v20l-2 2h24l-2-2V2l2-2H0z",clipRule:"evenodd"}),r.jsx("path",{fillRule:"evenodd",d:"M2 22V2L0 0v24zm20 0H2l2-2h16zm0-20 2-2v24l-2-2zm0 0-2 2H4L2 2z",clipRule:"evenodd",opacity:.5})]}),A=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M0 6h4V4h2V0H0zm15-6H9v4h6zm9 6V0h-6v4h2v2zM0 18h4v2h2v4H0zm15 6H9v-4h6zm9-6v6h-6v-4h2v-2zM4 9H0v6h4zm20 0h-4v6h4z",clipRule:"evenodd"})]}),T=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4 4h16l4-4H0v24l4-4z",clipRule:"evenodd"}),r.jsx("path",{d:"M20 20V4l4-4v24H0l4-4z",opacity:.5})]}),I=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M20 4H4v16h16zM0 0v24h24V0z",clipRule:"evenodd"})]}),M=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M0 20h24v4H0z"})]}),R=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M4.5 6.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m5-2.25a.75.75 0 0 0 0 1.5h11a.75.75 0 0 0 0-1.5zm0 7a.75.75 0 0 0 0 1.5h11a.75.75 0 0 0 0-1.5zM8.75 19a.75.75 0 0 1 .75-.75h11a.75.75 0 0 1 0 1.5h-11a.75.75 0 0 1-.75-.75M6 12a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m-1.5 8.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"})]}),F=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 5.25a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0V6A.75.75 0 0 1 2 5.25m8 0a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0V6a.75.75 0 0 1 .75-.75m8.75.75a.75.75 0 0 0-1.5 0v8a.75.75 0 0 0 1.5 0zM6 9.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4A.75.75 0 0 1 6 9.25m8.75.75a.75.75 0 0 0-1.5 0v4a.75.75 0 0 0 1.5 0zM22 9.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4a.75.75 0 0 1 .75-.75M15.584 21H8.416a.2.2 0 0 1-.156-.325l3.584-4.48a.2.2 0 0 1 .312 0l3.584 4.48a.2.2 0 0 1-.156.325",clipRule:"evenodd"})]}),N=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.53 8.22a.75.75 0 0 0-1.06 0L12 13.69 6.53 8.22a.75.75 0 0 0-1.06 1.06l6 6a.75.75 0 0 0 1.06 0l6-6a.75.75 0 0 0 0-1.06",clipRule:"evenodd"})]}),O=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.5 4.75a.25.25 0 0 0-.25.25v5a6.75 6.75 0 0 1-6.75 6.75H2a.25.25 0 0 0-.25.25v1c0 .138.112.25.25.25h20a.25.25 0 0 0 .25-.25v-1a.25.25 0 0 0-.25-.25h-2.5A6.75 6.75 0 0 1 12.75 10V5a.25.25 0 0 0-.25-.25zM9.75 5c0-.966.784-1.75 1.75-1.75h1c.966 0 1.75.784 1.75 1.75v5c0 2.9 2.35 5.25 5.25 5.25H22c.966 0 1.75.784 1.75 1.75v1A1.75 1.75 0 0 1 22 19.75H2A1.75 1.75 0 0 1 .25 18v-1c0-.966.784-1.75 1.75-1.75h2.5c2.9 0 5.25-2.35 5.25-5.25z",clipRule:"evenodd"})]}),j=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.53 18.53a.75.75 0 0 0 0-1.06L10.06 12l5.47-5.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 0 0 0 1.06l6 6a.75.75 0 0 0 1.06 0",clipRule:"evenodd"})]}),L=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.47 5.47a.75.75 0 0 0 0 1.06L13.94 12l-5.47 5.47a.75.75 0 1 0 1.06 1.06l6-6a.75.75 0 0 0 0-1.06l-6-6a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),B=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.47 15.28a.75.75 0 0 0 1.06 0L12 9.81l5.47 5.47a.75.75 0 1 0 1.06-1.06l-6-6a.75.75 0 0 0-1.06 0l-6 6a.75.75 0 0 0 0 1.06",clipRule:"evenodd"})]}),K=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11m5.07-13.512a.75.75 0 0 0-1.14-.976l-5.422 6.326-1.932-2.318a.75.75 0 0 0-1.152.96l2.374 2.849a.917.917 0 0 0 1.4.01l5.872-6.85Z",clipRule:"evenodd"})]}),V=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M17.07 9.488a.75.75 0 0 0-1.14-.976l-5.422 6.326-1.932-2.318a.75.75 0 0 0-1.152.96l2.374 2.849a.917.917 0 0 0 1.4.01l5.872-6.85Z"}),r.jsx("path",{fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11m-1.5 0a9.5 9.5 0 1 1-19 0 9.5 9.5 0 0 1 19 0",clipRule:"evenodd"})]}),H=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M19.688 6.802a.75.75 0 0 1 0 1.06L9.332 18.219 4.47 13.355a.75.75 0 0 1 1.06-1.06l3.802 3.802 9.295-9.295a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"})]}),$=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3 6.57V3.43a.25.25 0 0 1 .374-.216L6.12 4.783a.25.25 0 0 1 0 .434l-2.746 1.57A.25.25 0 0 1 3 6.568Zm6.5-2.32a.75.75 0 0 0 0 1.5h11a.75.75 0 0 0 0-1.5zm0 7a.75.75 0 0 0 0 1.5h11a.75.75 0 0 0 0-1.5zM8.75 19a.75.75 0 0 1 .75-.75h11a.75.75 0 0 1 0 1.5h-11a.75.75 0 0 1-.75-.75M3 20.57v-3.14a.25.25 0 0 1 .374-.216l2.746 1.569a.25.25 0 0 1 0 .434l-2.746 1.57A.25.25 0 0 1 3 20.568Zm0-10.14v3.14a.25.25 0 0 0 .374.216l2.746-1.569a.25.25 0 0 0 0-.434l-2.746-1.57a.25.25 0 0 0-.374.218Z"})]}),U=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M20.5 12a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0m1.5 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10M11.25 7a.75.75 0 0 1 1.5 0v5.75H8a.75.75 0 0 1 0-1.5h3.25z",clipRule:"evenodd"})]}),Z=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.5 9.75a2.75 2.75 0 0 0-2.75 2.75.75.75 0 0 1-1.5 0 4.25 4.25 0 0 1 7-3.24A4.24 4.24 0 0 1 12 8.25a4.23 4.23 0 0 1 2.75 1.01 4.25 4.25 0 0 1 5.724 6.276.75.75 0 1 1-1.05-1.072 2.75 2.75 0 0 0-3.72-4.048 4.23 4.23 0 0 1 .546 2.084 4.24 4.24 0 0 1-1.275 3.036.75.75 0 1 1-1.05-1.072c.51-.5.825-1.194.825-1.964 0-.612-.2-1.177-.538-1.634a.8.8 0 0 1-.104-.132A2.74 2.74 0 0 0 12 9.75c-.686 0-1.313.25-1.795.666a4.23 4.23 0 0 1 .545 2.084 4.24 4.24 0 0 1-1.276 3.036.75.75 0 1 1-1.05-1.072c.51-.5.826-1.194.826-1.964 0-.572-.175-1.103-.474-1.543l-.005-.004a.75.75 0 0 1-.229-.294A2.74 2.74 0 0 0 6.5 9.75"})]}),q=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M19.53 15.47a.75.75 0 1 1-1.06 1.06l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 1 1 1.06 1.06L16.06 12zM4.47 8.53a.75.75 0 0 1 1.06-1.06l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06L7.94 12z"})]}),G=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5 3.25A2.75 2.75 0 0 0 2.25 6v10A2.75 2.75 0 0 0 5 18.75h1.25V22a.75.75 0 0 0 1.248.56l4.287-3.81H19A2.75 2.75 0 0 0 21.75 16V6A2.75 2.75 0 0 0 19 3.25zM3.75 6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v10c0 .69-.56 1.25-1.25 1.25h-7.5a.75.75 0 0 0-.498.19L7.75 20.33V18a.75.75 0 0 0-.75-.75H5c-.69 0-1.25-.56-1.25-1.25zM8 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2m9-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"})]}),W=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.75 1A.75.75 0 0 0 3 .25H0v1.5h2.25v20.5H0v1.5h3a.75.75 0 0 0 .75-.75zm19.5 4a2.75 2.75 0 0 0-2.75-2.75h-9A2.75 2.75 0 0 0 8.75 5v3.08c0 .365-.16.712-.437.95l-1.915 1.64a1.75 1.75 0 0 0 0 2.658l1.915 1.642c.278.237.437.584.437.949V19a2.75 2.75 0 0 0 2.75 2.75h9A2.75 2.75 0 0 0 23.25 19zM20.5 3.75c.69 0 1.25.56 1.25 1.25v14c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25v-3.08a2.75 2.75 0 0 0-.96-2.088L7.374 12.19a.25.25 0 0 1 0-.38l1.916-1.642a2.75 2.75 0 0 0 .96-2.088V5c0-.69.56-1.25 1.25-1.25z",clipRule:"evenodd"})]}),Y=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5 .25A2.75 2.75 0 0 0 2.25 3v9A2.75 2.75 0 0 0 5 14.75h3.08c.365 0 .712.16.95.437l1.641 1.915a1.75 1.75 0 0 0 2.658 0l1.642-1.915a1.25 1.25 0 0 1 .949-.437H19A2.75 2.75 0 0 0 21.75 12V3A2.75 2.75 0 0 0 19 .25zM3.75 3c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v9c0 .69-.56 1.25-1.25 1.25h-3.08a2.75 2.75 0 0 0-2.088.96l-1.642 1.916a.25.25 0 0 1-.38 0l-1.642-1.916a2.75 2.75 0 0 0-2.088-.96H5c-.69 0-1.25-.56-1.25-1.25zM12 24a2 2 0 1 0 0-4 2 2 0 0 0 0 4",clipRule:"evenodd"})]}),X=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.5 19.75A1.75 1.75 0 0 0 11.25 18v-3h-1.5v3a.25.25 0 0 1-.25.25H2a.25.25 0 0 1-.25-.25V6A.25.25 0 0 1 2 5.75h7.5a.25.25 0 0 1 .25.25v3h1.5V6A1.75 1.75 0 0 0 9.5 4.25H2A1.75 1.75 0 0 0 .25 6v12c0 .966.784 1.75 1.75 1.75zM12.75 6c0-.966.784-1.75 1.75-1.75H22c.966 0 1.75.784 1.75 1.75v12A1.75 1.75 0 0 1 22 19.75h-7.5A1.75 1.75 0 0 1 12.75 18v-3h1.5v3c0 .138.112.25.25.25H22a.25.25 0 0 0 .25-.25V6a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25v3h-1.5zM7.53 8.47a.75.75 0 0 1 0 1.06l-1.72 1.72h12.38l-1.72-1.72a.75.75 0 0 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06l1.72-1.72H5.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),Q=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4 1.25A2.75 2.75 0 0 0 1.25 4v11A2.75 2.75 0 0 0 4 17.75h2.25V20A2.75 2.75 0 0 0 9 22.75h11A2.75 2.75 0 0 0 22.75 20V9A2.75 2.75 0 0 0 20 6.25h-2.25V4A2.75 2.75 0 0 0 15 1.25zm12.25 5V4c0-.69-.56-1.25-1.25-1.25H4c-.69 0-1.25.56-1.25 1.25v11c0 .69.56 1.25 1.25 1.25h2.25V9A2.75 2.75 0 0 1 9 6.25zM7.75 20c0 .69.56 1.25 1.25 1.25h11c.69 0 1.25-.56 1.25-1.25V9c0-.69-.56-1.25-1.25-1.25H9c-.69 0-1.25.56-1.25 1.25z",clipRule:"evenodd"})]}),J=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.5 2A1.5 1.5 0 0 1 9 .5h8a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 22.5 6v12a1.5 1.5 0 0 1-1.5 1.5h-3V18h3V6h-3a1 1 0 0 1-1-1V2H9v1H7.5z"}),r.jsx("path",{fillRule:"evenodd",d:"M3 4.5A1.5 1.5 0 0 0 1.5 6v16A1.5 1.5 0 0 0 3 23.5h12a1.5 1.5 0 0 0 1.5-1.5V10a1.5 1.5 0 0 0-.44-1.06l-4-4A1.5 1.5 0 0 0 11 4.5zM3 6v16h12V10h-3a1 1 0 0 1-1-1V6z",clipRule:"evenodd"})]}),ee=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7 3a.75.75 0 0 0-1.5 0v13.5c0 .966.784 1.75 1.75 1.75H16v-1.5H7.25A.25.25 0 0 1 7 16.5zm10.5 17.5a.75.75 0 0 0 1.5 0V7a1.75 1.75 0 0 0-1.75-1.75H8.5v1.5h8.75a.25.25 0 0 1 .25.25zm5.5-2.25h-2.5v-1.5H23a.75.75 0 0 1 0 1.5m-19-13H1a.75.75 0 0 0 0 1.5h3z",clipRule:"evenodd"})]}),te=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.405 5.75a3.001 3.001 0 0 1-5.81 0H2a.75.75 0 0 1 0-1.5h2.595a3.001 3.001 0 0 1 5.81 0H22a.75.75 0 0 1 0 1.5zM9 5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m-7 6.25a.75.75 0 0 0 0 1.5h12.595a3.001 3.001 0 0 0 5.81 0H22a.75.75 0 0 0 0-1.5h-1.595a3.001 3.001 0 0 0-5.81 0zm15.5 2.25a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M1.25 19a.75.75 0 0 1 .75-.75h3.595a3.001 3.001 0 0 1 5.81 0H22a.75.75 0 0 1 0 1.5H11.405a3.001 3.001 0 0 1-5.81 0H2a.75.75 0 0 1-.75-.75M10 19a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0",clipRule:"evenodd"})]}),ne=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.925 8.746A4.001 4.001 0 0 0 .671 5.464a4 4 0 0 0 6.516 4.588l1.765 1.019c.094-.51.243-1.006.44-1.478zm-1.624-.032a2.5 2.5 0 1 0-4.33-2.5 2.5 2.5 0 0 0 4.33 2.5",clipRule:"evenodd"}),r.jsx("path",{d:"M12.45 16.555a4.1 4.1 0 0 1-1.22-1.077l1.315-.76c.185.211.406.394.655.538l5.306 3.063a1.25 1.25 0 0 0 1.18.038l1.016-.502-6.794-3.923 1.5-.866 8.471 4.891-3.529 1.745a2.75 2.75 0 0 1-2.594-.084z"}),r.jsx("path",{fillRule:"evenodd",d:"M10.344 12.018a5.75 5.75 0 0 1 2.863-4.61l4.55-2.626a2.75 2.75 0 0 1 2.593-.084l3.53 1.745-15.955 9.21a4.001 4.001 0 0 1-7.254 3.283 4 4 0 0 1 6.516-4.588l3.122-1.803zm1.556-.391 8.802-5.082-1.017-.502a1.25 1.25 0 0 0-1.179.038l-4.55 2.627a4.25 4.25 0 0 0-2.056 2.919m-5.6 4.059a2.5 2.5 0 1 1-4.33 2.5 2.5 2.5 0 0 1 4.33-2.5",clipRule:"evenodd"})]}),re=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.667 3.092a.75.75 0 0 1 .09.838A8.6 8.6 0 0 0 9.75 8c0 4.597 3.51 8.25 7.75 8.25 1.137 0 2.216-.26 3.19-.729a.75.75 0 0 1 .992 1.018A9.75 9.75 0 0 1 13 21.85c-5.385 0-9.75-4.366-9.75-9.75 0-4.286 2.764-7.923 6.604-9.232a.75.75 0 0 1 .813.225Zm-1.992 1.98a8.25 8.25 0 1 0 10.478 12.523 9 9 0 0 1-1.653.155c-5.148 0-9.25-4.406-9.25-9.75 0-1.02.149-2.003.425-2.929Z",clipRule:"evenodd"})]}),oe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M17.25 15a1.25 1.25 0 1 1-2.124-.893 3.251 3.251 0 0 0-5.549-1.273.75.75 0 1 1-1.117-1 4.752 4.752 0 0 1 8.166 2.085c.373.215.624.619.624 1.081m-10.5 0a1.25 1.25 0 1 1 2.124.893 3.251 3.251 0 0 0 5.549 1.273.75.75 0 1 1 1.117 1 4.752 4.752 0 0 1-8.167-2.085A1.25 1.25 0 0 1 6.75 15"}),r.jsx("path",{fillRule:"evenodd",d:"M2 4.5A1.5 1.5 0 0 0 .5 6v15A1.5 1.5 0 0 0 2 22.5h20a1.5 1.5 0 0 0 1.5-1.5V6A1.5 1.5 0 0 0 22 4.5h-2.25V2a.75.75 0 0 0-1.5 0v2.5H5.75V2a.75.75 0 0 0-1.5 0v2.5zM2 9h20v12H2z",clipRule:"evenodd"})]}),ie=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 12a.75.75 0 0 0-1.5 0v2.25H9a.75.75 0 0 0 0 1.5h2.25V18a.75.75 0 0 0 1.5 0v-2.25H15a.75.75 0 0 0 0-1.5h-2.25z"}),r.jsx("path",{fillRule:"evenodd",d:"M5.75 2a.75.75 0 0 0-1.5 0v2.5H2A1.5 1.5 0 0 0 .5 6v15A1.5 1.5 0 0 0 2 22.5h20a1.5 1.5 0 0 0 1.5-1.5V6A1.5 1.5 0 0 0 22 4.5h-2.25V2a.75.75 0 0 0-1.5 0v2.5H5.75zM2 9v12h20V9z",clipRule:"evenodd"})]}),ae=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.75 5.25h.337c.643 0 1.163.52 1.163 1.163v4.24c0 .507.308.963.778 1.15a2.74 2.74 0 0 1 1.722 2.543v5.246a4.16 4.16 0 0 1-4.158 4.158H7.408a4.16 4.16 0 0 1-4.158-4.158v-5.246c0-1.12.682-2.127 1.721-2.542a1.24 1.24 0 0 0 .779-1.15V6.413c0-.642.52-1.163 1.163-1.163h.337V1.5C7.25.81 7.81.25 8.5.25h3c.69 0 1.25.56 1.25 1.25v.25h.75a1.25 1.25 0 1 1 0 2.5h-.75zm-4-3.5v3.5h2.5v-3.5zm5.722 11.446a2.74 2.74 0 0 1-1.722-2.542V6.75h-5.5v3.904c0 1.12-.682 2.127-1.721 2.542a1.24 1.24 0 0 0-.779 1.15v5.246a2.66 2.66 0 0 0 2.658 2.658h5.184a2.66 2.66 0 0 0 2.658-2.658v-5.246c0-.506-.308-.962-.778-1.15",clipRule:"evenodd"}),r.jsx("path",{d:"M16.97 3.97a.75.75 0 0 1 1.06 0l.5.5c.26.26.68.26.94 0a2.164 2.164 0 0 1 3.06 0l.5.5a.75.75 0 0 1-1.06 1.06l-.5-.5a.664.664 0 0 0-.94 0 2.164 2.164 0 0 1-3.06 0l-.5-.5a.75.75 0 0 1 0-1.06m1.06-3a.75.75 0 1 0-1.06 1.06l.5.5a2.164 2.164 0 0 0 3.06 0c.26-.26.68-.26.94 0l.5.5a.75.75 0 1 0 1.06-1.06l-.5-.5a2.164 2.164 0 0 0-3.06 0c-.26.26-.68.26-.94 0z"})]}),se=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M23 22a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1zM18 5.25a.75.75 0 0 1 0 1.5H6a.75.75 0 0 1 0-1.5zm0 4a.75.75 0 0 1 0 1.5H6a.75.75 0 0 1 0-1.5zm0 4a.75.75 0 0 1 0 1.5H6a.75.75 0 0 1 0-1.5zm-6 4a.75.75 0 0 1 0 1.5H6a.75.75 0 0 1 0-1.5z",clipRule:"evenodd"})]}),le=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M2.5 3A1.5 1.5 0 0 1 4 1.5h8a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 17.5 7v1.776a4.7 4.7 0 0 0-1.5.414V7h-3a1 1 0 0 1-1-1V3H4v16h7.5v1.5H4A1.5 1.5 0 0 1 2.5 19z"}),r.jsx("path",{fillRule:"evenodd",d:"M14.75 15v-1.5a3.25 3.25 0 0 1 6.5 0V15H22a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1zm1.5-1.5a1.75 1.75 0 1 1 3.5 0V15h-3.5zm-1.75 8v-5h7v5z",clipRule:"evenodd"})]}),ce=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M9.834 12.912v1.435h1.134c.595 0 .917-.3.917-.728 0-.413-.322-.707-.917-.707zm4.744.028v3.22h.791c1.008 0 1.673-.693 1.673-1.61s-.665-1.61-1.673-1.61z"}),r.jsx("path",{fillRule:"evenodd",d:"M20.75 10V6.5a.75.75 0 0 0-.22-.53l-5.5-5.5a.75.75 0 0 0-.53-.22H5A1.75 1.75 0 0 0 3.25 2v20c0 .966.784 1.75 1.75 1.75h14A1.75 1.75 0 0 0 20.75 22v-3H23a1 1 0 0 0 1-1v-7a1 1 0 0 0-1-1zM5 1.75a.25.25 0 0 0-.25.25v20c0 .138.112.25.25.25h14a.25.25 0 0 0 .25-.25v-3H8a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h11.25V7.25H14.5a.75.75 0 0 1-.75-.75V1.75zM9.834 17h-.98v-4.9h2.212c1.127 0 1.799.651 1.799 1.526 0 .89-.707 1.54-1.799 1.54H9.834zm5.668 0h-1.897v-4.9h1.897c1.484 0 2.52 1.078 2.52 2.45S16.986 17 15.502 17m3.332 0h.98v-1.995h2.422v-.854h-2.422v-1.197h2.52V12.1h-3.5z",clipRule:"evenodd"})]}),ue=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 2.25a.75.75 0 0 1 .75.75v13.19l2.72-2.72a.75.75 0 1 1 1.06 1.06L12 19.06l-4.53-4.53a.75.75 0 1 1 1.06-1.06l2.72 2.72V3a.75.75 0 0 1 .75-.75m-9 14a.75.75 0 0 1 .75.75v3c0 .69.56 1.25 1.25 1.25h14c.69 0 1.25-.56 1.25-1.25v-3a.75.75 0 0 1 1.5 0v3A2.75 2.75 0 0 1 19 22.75H5A2.75 2.75 0 0 1 2.25 20v-3a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})]}),de=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7 9a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m0 6a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m6.5 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m5-1.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m-6.5-6a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M20 9a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0",clipRule:"evenodd"})]}),pe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.25 11.5a.75.75 0 0 0-1.5 0v2.25H11.5a.75.75 0 0 0 0 1.5h2.25v2.25a.75.75 0 0 0 1.5 0v-2.25h2.25a.75.75 0 0 0 0-1.5h-2.25z"}),r.jsx("path",{fillRule:"evenodd",d:"M1.25 4A2.75 2.75 0 0 1 4 1.25h11A2.75 2.75 0 0 1 17.75 4v2.25H20A2.75 2.75 0 0 1 22.75 9v11A2.75 2.75 0 0 1 20 22.75H9A2.75 2.75 0 0 1 6.25 20v-2.25H4A2.75 2.75 0 0 1 1.25 15zm15 0v2.25H9A2.75 2.75 0 0 0 6.25 9v7.25H4c-.69 0-1.25-.56-1.25-1.25V4c0-.69.56-1.25 1.25-1.25h11c.69 0 1.25.56 1.25 1.25m-8.5 16V9c0-.69.56-1.25 1.25-1.25h11c.69 0 1.25.56 1.25 1.25v11c0 .69-.56 1.25-1.25 1.25H9c-.69 0-1.25-.56-1.25-1.25",clipRule:"evenodd"})]}),he=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M19.445 4.384a2.75 2.75 0 0 0-3.89 0L2.764 17.177a1.75 1.75 0 0 0-.513 1.237v3.336h4.336c.464 0 .909-.184 1.237-.513L20.116 8.945a2.75 2.75 0 0 0 0-3.89zm-2.829 1.06a1.25 1.25 0 0 1 1.768 0l.671.672a1.25 1.25 0 0 1 0 1.768L17.5 9.439 15.06 7l1.556-1.555ZM14 8.062l2.44 2.439-9.677 9.677a.25.25 0 0 1-.177.073H3.75v-1.836a.25.25 0 0 1 .073-.177z",clipRule:"evenodd"}),r.jsx("path",{d:"M23 21.75H9.432l1.5-1.5H23a.75.75 0 0 1 0 1.5"})]}),fe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3.5 6H2V2h4v1.5H3.5zm2.75 2A.75.75 0 0 1 7 7.25h10a.75.75 0 0 1 0 1.5H7A.75.75 0 0 1 6.25 8m0 4a.75.75 0 0 1 .75-.75h10a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1-.75-.75M7 15.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5zM18 2v1.5h2.5V6H22V2zM3.5 18H2v4h4v-1.5H3.5zM18 22v-1.5h2.5V18H22v4zm-9 0v-1.5h6V22zM9 2v1.5h6V2zM2 9h1.5v6H2zm20 0h-1.5v6H22z"})]}),me=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.5 2A1.5 1.5 0 0 1 4 .5h8a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 17.5 6v.366a4 4 0 0 0-.293.266L16 7.84V6h-3a1 1 0 0 1-1-1V2H4v16h2.093c-.22.463-.325.979-.298 1.5H4A1.5 1.5 0 0 1 2.5 18zm20.363 6.782a2.48 2.48 0 0 1 0 3.507L12.32 22.833a1.62 1.62 0 0 1-1.142.473H7.25V19.38c0-.428.17-.839.473-1.142L18.267 7.693a2.48 2.48 0 0 1 3.507 0l1.09 1.09Zm-1.06 2.446a.98.98 0 0 0 0-1.385l-1.09-1.09a.98.98 0 0 0-1.385 0l-1.075 1.075 2.475 2.475zm-2.136 2.136-2.475-2.475-8.408 8.409a.12.12 0 0 0-.034.081v2.427h2.427a.12.12 0 0 0 .082-.033z",clipRule:"evenodd"})]}),ge=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.556 3.384a2.75 2.75 0 0 1 3.889 0l1.171 1.171a2.75 2.75 0 0 1 0 3.89L7.823 21.237a1.75 1.75 0 0 1-1.237.513H2.25v-4.336c0-.464.184-.909.513-1.237zm2.828 1.06a1.25 1.25 0 0 0-1.768 0L15.061 6 18 8.94l1.555-1.556a1.25 1.25 0 0 0 0-1.768zM16.939 10 14 7.06 3.823 17.238a.25.25 0 0 0-.073.177v2.836h2.836a.25.25 0 0 0 .177-.073z",clipRule:"evenodd"})]}),ve=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.02 5.97a.75.75 0 0 0 0 1.06l4.95 4.95a.75.75 0 0 0 1.06 0l4.95-4.95a.75.75 0 0 0 0-1.06l-4.95-4.95a.75.75 0 0 0-1.06 0zm5.48 4.42L13.61 6.5l3.89-3.89 3.889 3.89-3.89 3.89ZM3 2.25a.75.75 0 0 0-.75.75v7c0 .414.336.75.75.75h7a.75.75 0 0 0 .75-.75V3a.75.75 0 0 0-.75-.75zm.75 7v-5.5h5.5v5.5zM2.25 14a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 .75.75v7a.75.75 0 0 1-.75.75H3a.75.75 0 0 1-.75-.75zm1.5.75v5.5h5.5v-5.5zM14 13.25a.75.75 0 0 0-.75.75v7c0 .414.336.75.75.75h7a.75.75 0 0 0 .75-.75v-7a.75.75 0 0 0-.75-.75zm.75 7v-5.5h5.5v5.5z",clipRule:"evenodd"})]}),ye=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10m-2.003 2.889a8.5 8.5 0 0 1-9.492 5.48zm.367-1.367-11.23 6.483a8.5 8.5 0 0 1-2.92-1.778l14.073-8.125a8.5 8.5 0 0 1 .077 3.42m-.366-4.408L5.504 17.482a8.5 8.5 0 0 1-1.502-2.597l14.494-8.368a8.5 8.5 0 0 1 1.502 2.597m-2.212-3.341L3.713 13.898a8.5 8.5 0 0 1-.077-3.42l11.229-6.483a8.5 8.5 0 0 1 2.92 1.778ZM13.495 3.63a8.5 8.5 0 0 0-9.491 5.48z",clipRule:"evenodd"})]}),be=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10m-2.003 2.889a8.5 8.5 0 0 1-9.492 5.48zm.367-1.367-11.23 6.483a8.5 8.5 0 0 1-2.92-1.778l14.073-8.125a8.5 8.5 0 0 1 .077 3.42m-.366-4.408L5.504 17.482a8.5 8.5 0 0 1-1.502-2.597l14.494-8.368a8.5 8.5 0 0 1 1.502 2.597m-2.212-3.341L3.713 13.898a8.5 8.5 0 0 1-.077-3.42l11.229-6.483a8.5 8.5 0 0 1 2.92 1.778ZM13.495 3.63a8.5 8.5 0 0 0-9.491 5.48z",clipRule:"evenodd"})]}),we=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 26 26","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.021 2.148a3.6 3.6 0 0 1 1.487-1.136 3.6 3.6 0 0 1 1.38-.262 3.45 3.45 0 0 1 2.846 1.414 3.6 3.6 0 0 1 2.585-.146 3.61 3.61 0 0 1 2.486 3.05 3.67 3.67 0 0 1 2.663 1.713 3.49 3.49 0 0 1 .173 3.189 3.56 3.56 0 0 1 1.2 1.538c.178.438.266.908.26 1.381a3.45 3.45 0 0 1-1.479 2.886 3.62 3.62 0 0 1-2.835 4.99 3.62 3.62 0 0 1-4.982 2.926 3.56 3.56 0 0 1-1.504 1.145 3.55 3.55 0 0 1-1.39.254 3.62 3.62 0 0 1-2.89-1.464 3.67 3.67 0 0 1-3.179-.203l-.003-.001a3.61 3.61 0 0 1-1.787-2.64 3.62 3.62 0 0 1-2.894-4.976A3.57 3.57 0 0 1 .75 12.92a3.46 3.46 0 0 1 1.453-2.87 3.67 3.67 0 0 1 .182-3.206l.004-.006a3.61 3.61 0 0 1 2.68-1.792l.012-.085a3.62 3.62 0 0 1 4.94-2.813m2.885.102a1.95 1.95 0 0 1 1.618.8 3.6 3.6 0 0 0-.445.619.75.75 0 1 0 1.303.742q.181-.316.453-.551a.8.8 0 0 0 .166-.13 2.11 2.11 0 0 1 3.308 1.458 3.7 3.7 0 0 0-.754.317.75.75 0 1 0 .732 1.31 2.17 2.17 0 0 1 2.892.733 1.99 1.99 0 0 1 .09 1.815 3.6 3.6 0 0 0-.795-.073.75.75 0 0 0 .032 1.5 2.05 2.05 0 0 1 2.095 2.115 1.95 1.95 0 0 1-.835 1.638 3.6 3.6 0 0 0-.595-.453.75.75 0 0 0-.781 1.28 2.12 2.12 0 0 1-.743 3.9 3.6 3.6 0 0 0-.316-.723.75.75 0 1 0-1.3.746c.134.235.222.492.26.757q0 .072.014.141a2.123 2.123 0 0 1-1.946 2.27 2.1 2.1 0 0 1-.917-.13 3.6 3.6 0 0 0 .089-.854.75.75 0 0 0-1.5.027 2.05 2.05 0 0 1-2.094 2.086h-.014a2.12 2.12 0 0 1-1.654-.801 3.7 3.7 0 0 0 .488-.622.75.75 0 0 0-1.273-.794 2.17 2.17 0 0 1-2.903.744 2.11 2.11 0 0 1-1.03-1.462 3.6 3.6 0 0 0 .752-.324.75.75 0 0 0-.746-1.302 2.1 2.1 0 0 1-.648.242.75.75 0 0 0-.398.04 2.13 2.13 0 0 1-1.56-.676 2.12 2.12 0 0 1-.432-2.193q.422.095.855.088a.75.75 0 0 0-.027-1.5 2.06 2.06 0 0 1-2.097-2.124 1.96 1.96 0 0 1 .803-1.619q.269.257.59.459a.75.75 0 1 0 .795-1.272 2.17 2.17 0 0 1-.745-2.895 2.11 2.11 0 0 1 1.5-1.036q.119.396.327.76a.75.75 0 0 0 1.3-.746 2.12 2.12 0 0 1 2.561-3.048 3.6 3.6 0 0 0-.09.864.75.75 0 1 0 1.5-.026 2.06 2.06 0 0 1 2.115-2.097",clipRule:"evenodd"})]}),xe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m21.878 13.565-1.482-.233a8.6 8.6 0 0 0 0-2.664l1.482-.233a10 10 0 0 1 0 3.13m-.54-5.15-1.4.538a8.5 8.5 0 0 0-1.331-2.302l1.165-.944a10 10 0 0 1 1.566 2.708m-3.045-4.187-.944 1.165a8.5 8.5 0 0 0-2.302-1.331l.538-1.4a10 10 0 0 1 2.708 1.566m-4.728-2.106-.233 1.482a8.6 8.6 0 0 0-2.664 0l-.233-1.482a10 10 0 0 1 3.13 0m-5.15.54.538 1.4a8.5 8.5 0 0 0-2.302 1.331l-.944-1.165a10 10 0 0 1 2.708-1.566M4.228 5.707l1.165.944a8.5 8.5 0 0 0-1.331 2.302l-1.4-.538a10 10 0 0 1 1.566-2.708m-2.106 4.728a10 10 0 0 0 0 3.13l1.482-.233a8.6 8.6 0 0 1 0-2.664zm.54 5.15 1.4-.538a8.5 8.5 0 0 0 1.331 2.302l-1.165.944a10 10 0 0 1-1.566-2.708m3.045 4.187.944-1.165a8.5 8.5 0 0 0 2.302 1.331l-.538 1.4a10 10 0 0 1-2.708-1.566m4.728 2.106.233-1.482a8.6 8.6 0 0 0 2.664 0l.233 1.482a10 10 0 0 1-3.13 0m5.15-.54-.538-1.4a8.5 8.5 0 0 0 2.302-1.331l.944 1.165a10 10 0 0 1-2.708 1.566m4.187-3.045-1.165-.944a8.5 8.5 0 0 0 1.331-2.302l1.4.538a10 10 0 0 1-1.566 2.708",clipRule:"evenodd"})]}),_e=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 20.5a8.5 8.5 0 1 0 0-17 8.5 8.5 0 0 0 0 17m0 1.5c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10",clipRule:"evenodd"})]}),Se=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.707 13.748a.75.75 0 0 0-1.413.504A6.05 6.05 0 0 0 12 18.25a6.05 6.05 0 0 0 5.707-3.998.75.75 0 0 0-1.413-.504A4.55 4.55 0 0 1 12 16.75a4.55 4.55 0 0 1-4.293-3.002M10 9.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m5.5 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"}),r.jsx("path",{fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11m-1.5 0a9.5 9.5 0 1 1-19 0 9.5 9.5 0 0 1 19 0",clipRule:"evenodd"})]}),Ce=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14 17.869V13H0v-2h14V6.131L22.803 12zM19.197 12 16 9.869v4.263z",clipRule:"evenodd"})]}),Ee=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m15.555 16.832-1.11-1.664L17.697 13H0v-2h17.697l-3.252-2.168 1.11-1.664L22.803 12z",clipRule:"evenodd"})]}),ke=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22 18.369 14.697 13.5H0v-2h14.667L22 6zm-5.27-5.917 3.27 2.18V10z",clipRule:"evenodd"})]}),ze=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M16.65 13H0v-2h16.65l4.726-3.78 1.249 1.56L18.601 12l4.024 3.22-1.25 1.56z",clipRule:"evenodd"})]}),Pe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6m5-3a5 5 0 0 1-9.9 1H0v-2h12.1a5.002 5.002 0 0 1 9.9 1",clipRule:"evenodd"})]}),De=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17 17.414 12.586 13H0v-2h12.586L17 6.586 22.414 12zM14.414 12 17 14.586 19.586 12 17 9.414z",clipRule:"evenodd"})]}),Ae=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M0 13h24v-2H0z",clipRule:"evenodd"})]}),Te=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m18.382 13-1.276 2.553 1.788.894 4-8-1.788-.894L19.382 11H0v2z",clipRule:"evenodd"})]}),Ie=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M21.5 7.5h-9V11H0v2h12.5v3.5h9zm-2 2v5h-5v-5z",clipRule:"evenodd"})]}),Me=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22 8v8h-2v-3H0v-2h20V8z",clipRule:"evenodd"})]}),Re=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.994 22H5.499l-3.535-3.535a3 3 0 0 1 0-4.243L13.984 2.2a1 1 0 0 1 1.415 0l6.364 6.364a1 1 0 0 1 0 1.414L9.743 22zm-3.672-9.016 5.657 5.657L9.12 20.5h-3l-3.096-3.096a1.5 1.5 0 0 1 0-2.121zm6.718 4.597-5.657-5.657 8.309-8.309 5.656 5.657z",clipRule:"evenodd"}),r.jsx("path",{d:"m11.864 22 1.5-1.5H18a.75.75 0 1 1 0 1.5zm8.386-.75a.75.75 0 0 1 .75-.75h2a.75.75 0 1 1 0 1.5h-2a.75.75 0 0 1-.75-.75"})]}),Fe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11m4.03-13.97a.75.75 0 0 0-1.06-1.06l-7 7a.75.75 0 1 0 1.06 1.06z",clipRule:"evenodd"})]}),Ne=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M21.5 12a9.5 9.5 0 0 1-9.5 9.5 9.46 9.46 0 0 1-6.166-2.273L19.227 5.834A9.46 9.46 0 0 1 21.5 12M4.773 18.166 18.166 4.773A9.46 9.46 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12c0 2.353.856 4.507 2.273 6.166M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11",clipRule:"evenodd"})]}),Oe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11M12 6.25a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75m0 11.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5",clipRule:"evenodd"})]}),je=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.53 15.47a.75.75 0 1 1-1.06 1.06l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 1.06L5.06 12zm6.94-6.94a.75.75 0 0 1 1.06-1.06l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 1 1-1.06-1.06L18.94 12z"})]}),Le=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.53 8.53a.75.75 0 0 1-1.06-1.06l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1-1.06 1.06L12 5.06zm6.94 6.94a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06L12 18.94z"})]}),Be=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm5 19v-3.5h1.5v3h11v-11h-3V8H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1",clipRule:"evenodd"})]}),Ke=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.25 3A.75.75 0 0 1 3 2.25h18a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-.22.53l-6.78 6.78V22a.75.75 0 0 1-1.2.6l-4-3a.75.75 0 0 1-.3-.6v-5.69L2.47 6.53A.75.75 0 0 1 2.25 6zm1.5.75v1.94l6.78 6.78c.141.14.22.331.22.53v5.625l2.5 1.875V13a.75.75 0 0 1 .22-.53l6.78-6.78V3.75z",clipRule:"evenodd"})]}),Ve=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{clipPath:"url(#fit-to-height-icon_svg__a)",children:[r.jsx("path",{d:"M12 .25a.75.75 0 0 1 .75.75v4.19l1.72-1.72a.75.75 0 1 1 1.06 1.06L12 8.06 8.47 4.53a.75.75 0 0 1 1.06-1.06l1.72 1.72V1A.75.75 0 0 1 12 .25"}),r.jsx("path",{fillRule:"evenodd",d:"M21 8.5a2.5 2.5 0 0 1 2.5 2.5v2a2.5 2.5 0 0 1-2.5 2.5H3A2.5 2.5 0 0 1 .5 13v-2A2.5 2.5 0 0 1 3 8.5zM3 10a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1z",clipRule:"evenodd"}),r.jsx("path",{d:"M11.25 23a.75.75 0 0 0 1.5 0v-4.19l1.72 1.72a.75.75 0 1 0 1.06-1.06L12 15.94l-3.53 3.53a.75.75 0 1 0 1.06 1.06l1.72-1.72z"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"fit-to-height-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),He=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.25 6A2.75 2.75 0 0 1 4 3.25h4.276a2.75 2.75 0 0 1 1.76.637l1.888 1.573c.225.187.508.29.8.29H20a2.75 2.75 0 0 1 2.75 2.75V18A2.75 2.75 0 0 1 20 20.75H4A2.75 2.75 0 0 1 1.25 18zm1.5 0c0-.69.56-1.25 1.25-1.25h4.276c.292 0 .575.103.8.29l1.888 1.573a2.75 2.75 0 0 0 1.76.637H20c.69 0 1.25.56 1.25 1.25v.75H2.75zm18.5 4.75V18c0 .69-.56 1.25-1.25 1.25H4c-.69 0-1.25-.56-1.25-1.25v-7.25z",clipRule:"evenodd"})]}),$e=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M1 3.25a.75.75 0 0 0 0 1.5h5.25V15a.75.75 0 0 0 1.5 0V4.75H13a.75.75 0 0 0 0-1.5zm21.75 7h-11.5V14a.75.75 0 0 0 1.5 0v-2.25h3.5v8.5H14.5a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5h-1.75v-8.5h3.5V14a.75.75 0 0 0 1.5 0z"})]}),Ue=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17.69 5.705a.75.75 0 0 0-1.38 0l-6 14a.75.75 0 0 0 1.38.59l2.376-5.545h5.868l2.377 5.545a.75.75 0 0 0 1.379-.59zm1.601 7.545-2.29-5.346-2.292 5.346zM5.2 10.728a.75.75 0 0 0-1.399 0l-3.5 9a.75.75 0 1 0 1.398.544l.787-2.022h4.029l.786 2.022a.75.75 0 0 0 1.398-.544l-3.5-9Zm-.7 2.341 1.432 3.681H3.069z",clipRule:"evenodd"})]}),Ze=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22 6.5H2a.5.5 0 0 0-.5.5v10a.5.5 0 0 0 .5.5h20a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5M2 5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z",clipRule:"evenodd"}),r.jsx("path",{d:"M8.274 15.112c-1.68 0-2.84-1.304-2.84-2.912s1.16-2.912 2.84-2.912 2.84 1.304 2.84 2.912-1.16 2.912-2.84 2.912m0-1.2c.976 0 1.464-.888 1.464-1.712s-.488-1.712-1.464-1.712-1.464.888-1.464 1.712.488 1.712 1.464 1.712M12.754 15V9.4h1.376v2.136L16.178 9.4h1.664l-2.056 2.184L17.922 15H16.33l-1.528-2.48-.672.72V15z"})]}),qe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M16.53 10.03a.75.75 0 1 0-1.06-1.06L11 13.44l-1.97-1.97a.75.75 0 0 0-1.06 1.06l2.382 2.383a.917.917 0 0 0 1.296 0z"}),r.jsx("path",{fillRule:"evenodd",d:"M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5",clipRule:"evenodd"})]}),Ge=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M5 8.25a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V9A.75.75 0 0 1 5 8.25m9.207 2.25h5.586a.5.5 0 0 1 .353.854l-2.793 2.792a.5.5 0 0 1-.707 0l-2.793-2.792a.5.5 0 0 1 .354-.854"}),r.jsx("path",{fillRule:"evenodd",d:"M2 5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm20 1.5H2a.5.5 0 0 0-.5.5v10a.5.5 0 0 0 .5.5h20a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5",clipRule:"evenodd"})]}),We=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M19 17.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m-5.5 5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m-5.5 5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"}),r.jsx("path",{fillRule:"evenodd",d:"M7.25 1a.75.75 0 0 0-1.5 0v1.5H4A3.5 3.5 0 0 0 .5 6v13A3.5 3.5 0 0 0 4 22.5h16a3.5 3.5 0 0 0 3.5-3.5V6A3.5 3.5 0 0 0 20 2.5h-1.75V1a.75.75 0 0 0-1.5 0v1.5h-9.5zm-1.5 3v2a.75.75 0 0 0 1.5 0V4h9.5v2a.75.75 0 0 0 1.5 0V4H20a2 2 0 0 1 2 2v1.75H2V6a2 2 0 0 1 2-2zM2 19V9.25h20V19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2",clipRule:"evenodd"})]}),Ye=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M19.75 7a.75.75 0 0 1-.75.75h-9a.75.75 0 0 1 0-1.5h9a.75.75 0 0 1 .75.75M19 17.75a.75.75 0 0 0 0-1.5h-9a.75.75 0 0 0 0 1.5zm.75-5.75a.75.75 0 0 1-.75.75h-9a.75.75 0 0 1 0-1.5h9a.75.75 0 0 1 .75.75M5.5 8.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M7 17a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m-1.5-3.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"}),r.jsx("path",{fillRule:"evenodd",d:"M2 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm20 1.5H2a.5.5 0 0 0-.5.5v16a.5.5 0 0 0 .5.5h20a.5.5 0 0 0 .5-.5V4a.5.5 0 0 0-.5-.5",clipRule:"evenodd"})]}),Xe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9 6C7.34 6 6 7.34 6 9s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3m0 4.5c-.83 0-1.5-.67-1.5-1.5S8.17 7.5 9 7.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5m7 3.5H8c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-2c0-1.1-.9-2-2-2m.5 4c0 .28-.22.5-.5.5H8c-.28 0-.5-.22-.5-.5v-2c0-.28.22-.5.5-.5h8c.28 0 .5.22.5.5zm4.03-12.03-5.5-5.5a.75.75 0 0 0-.53-.22H5c-.97 0-1.75.78-1.75 1.75v20c0 .97.78 1.75 1.75 1.75h14c.97 0 1.75-.78 1.75-1.75V6.5c0-.2-.08-.39-.22-.53M19.25 22c0 .14-.11.25-.25.25H5c-.14 0-.25-.11-.25-.25V2c0-.14.11-.25.25-.25h8.75V6.5c0 .41.34.75.75.75h4.75z",clipRule:"evenodd"})]}),Qe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6"}),r.jsx("path",{fillRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0m-1.5 0a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0",clipRule:"evenodd"})]}),Je=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.337 19H2a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9.351c-.2.698-.42 1.353-.655 1.936-.293.73-.624 1.386-.993 1.872-.341.45-.856.942-1.546.942-.816 0-1.29-.637-1.536-1.145-.264-.545-.419-1.235-.503-1.905a11 11 0 0 1-.079-1.7M2 6.5h20a.5.5 0 0 1 .5.5v10a.5.5 0 0 1-.5.5h-8.964a35 35 0 0 0 .378-1.872c.164-.947.288-1.902.361-2.806a13 13 0 0 1 1.573-.884l.056.143.128.325c.114.284.264.63.454.911.161.24.517.683 1.105.683 1.035 0 1.89-.59 2.49-1.386.6-.797 1.003-1.862 1.162-3.011a.75.75 0 1 0-1.486-.206c-.132.95-.457 1.76-.874 2.314-.37.49-.768.73-1.145.78l-.008-.011a3.7 3.7 0 0 1-.307-.636l-.098-.248a12 12 0 0 0-.228-.557 2 2 0 0 0-.224-.392c-.062-.083-.304-.397-.737-.397a.8.8 0 0 0-.27.05 12 12 0 0 0-1.517.723q-.003-.377-.023-.724c-.044-.734-.155-1.422-.382-1.95-.223-.52-.667-1.099-1.444-1.099-.52 0-1.215.217-1.9.486-.718.282-1.539.67-2.358 1.1-1.623.853-3.322 1.917-4.239 2.727a.75.75 0 1 0 .994 1.124c.78-.69 2.353-1.688 3.943-2.523a23 23 0 0 1 2.21-1.032c.646-.255 1.088-.368 1.31-.38a.7.7 0 0 1 .106.188c.125.292.222.776.262 1.449.03.48.027 1.023-.002 1.609-.524.377-1.03.785-1.506 1.207-1.358 1.207-2.527 2.596-3.131 3.843a2.6 2.6 0 0 0-.163.452H2a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5M11.084 19c-.152.496-.314.96-.482 1.377-.27.675-.543 1.192-.796 1.526-.183.24-.299.315-.343.337-.035-.027-.104-.102-.194-.288-.162-.335-.29-.842-.364-1.439A10 10 0 0 1 8.838 19zm.41-1.5H9.142c.518-.964 1.48-2.113 2.675-3.174q.158-.14.32-.278a32 32 0 0 1-.643 3.452m.442-8.77s.006.002.016.012q-.016-.009-.016-.011ZM9.488 22.257s-.003 0-.008-.003q.008.002.008.003m7.811-9.69-.01-.01z",clipRule:"evenodd"})]}),et=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.25 2A.75.75 0 0 1 9 1.25c1.227 0 2.316.589 3 1.5a3.74 3.74 0 0 1 3-1.5.75.75 0 0 1 0 1.5A2.25 2.25 0 0 0 12.75 5H22a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9.25v.002A2.25 2.25 0 0 0 15 21.25a.75.75 0 0 1 0 1.5 3.74 3.74 0 0 1-3-1.5 3.74 3.74 0 0 1-3 1.5.75.75 0 0 1 0-1.5A2.25 2.25 0 0 0 11.25 19H2a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h9.25A2.25 2.25 0 0 0 9 2.75.75.75 0 0 1 8.25 2M2 6.5h9.25v4.75h-1.5a.75.75 0 0 0 0 1.5h1.5v4.75H2a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5m10.75 6.25v4.75H22a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5h-9.25v4.75h1.5a.75.75 0 0 1 0 1.5z",clipRule:"evenodd"})]}),tt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5"}),r.jsx("path",{fillRule:"evenodd",d:"M12 11a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11m0-1.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8M12 24a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11m0-1.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8",clipRule:"evenodd"})]}),nt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{fillRule:"evenodd",clipPath:"url(#group-icon_svg__a)",clipRule:"evenodd",children:[r.jsx("path",{d:"M11.25 5a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 .75.75v7a.75.75 0 0 1-.75.75h-6.25V19a.75.75 0 0 1-.75.75H5a.75.75 0 0 1-.75-.75v-7a.75.75 0 0 1 .75-.75h6.25zm1.5.75v5.5h5.5v-5.5zm-7 7v5.5h5.5v-5.5z"}),r.jsx("path",{d:"M1.25 3.855A2 2 0 1 1 3.855 1.25h16.29a2 2 0 1 1 2.605 2.605v16.29a2 2 0 1 1-2.605 2.605H3.855a2 2 0 1 1-2.605-2.605zm20 16.29a2 2 0 0 0-1.105 1.105H3.855a2 2 0 0 0-1.105-1.105V3.855A2 2 0 0 0 3.855 2.75h16.29a2 2 0 0 0 1.105 1.105z"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"group-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),rt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.25 6A.75.75 0 0 1 5 5.25h14a.75.75 0 0 1 0 1.5H5A.75.75 0 0 1 4.25 6m0 6a.75.75 0 0 1 .75-.75h14a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75M5 17.25a.75.75 0 0 0 0 1.5h14a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),ot=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.75 3.5a2.25 2.25 0 0 1 4.256-1.02A2.25 2.25 0 0 1 17.25 4.5v.878a2.25 2.25 0 0 1 3 2.122V16a6.75 6.75 0 0 1-6.75 6.75h-1.115a6.75 6.75 0 0 1-4.634-1.843l-5.92-5.59a2.55 2.55 0 0 1 3.43-3.773l1.489 1.303V6a2.25 2.25 0 0 1 3-2.122zm1.5 7.5a.75.75 0 0 1-1.5 0V6a.75.75 0 0 0-1.5 0v7.735c0 .942-1.11 1.446-1.82.825l-2.157-1.887a1.05 1.05 0 0 0-1.412 1.553l5.92 5.59a5.25 5.25 0 0 0 3.604 1.434H13.5c2.9 0 5.25-2.35 5.25-5.25V7.5a.75.75 0 0 0-1.5 0V11a.75.75 0 0 1-1.5 0V4.5a.75.75 0 0 0-1.5 0V11a.75.75 0 0 1-1.5 0V3.5a.75.75 0 0 0-1.5 0z",clipRule:"evenodd"})]}),it=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17.807 2.302c2.647.375 4.943 2.717 4.943 6.146 0 1.554-.718 3.156-1.686 4.63-.977 1.488-2.267 2.931-3.537 4.185a48 48 0 0 1-5.057 4.322l-.023.017-.008.006L12 21c-.438.609-.439.608-.439.608l-.002-.001-.006-.005-.023-.017-.088-.064a48 48 0 0 1-1.476-1.146 49 49 0 0 1-3.492-3.102c-1.27-1.25-2.56-2.686-3.537-4.164-.967-1.462-1.687-3.052-1.687-4.59 0-3.46 2.29-5.821 4.94-6.207a5.22 5.22 0 0 1 3.907 1.002c.749.56 1.4 1.335 1.903 2.329.504-.994 1.154-1.77 1.902-2.33a5.24 5.24 0 0 1 3.905-1.01ZM12 21l-.439.608a.75.75 0 0 0 .877 0zm0-.935a47 47 0 0 1-4.474-3.86c-1.23-1.212-2.44-2.566-3.338-3.923C3.28 10.909 2.75 9.619 2.75 8.519c0-2.746 1.774-4.449 3.657-4.723a3.72 3.72 0 0 1 2.793.72c.861.644 1.639 1.752 2.073 3.473a.75.75 0 0 0 1.454 0c.434-1.721 1.212-2.83 2.074-3.474a3.74 3.74 0 0 1 2.795-.727c1.886.267 3.654 1.955 3.654 4.66 0 1.12-.532 2.424-1.44 3.806-.897 1.366-2.107 2.727-3.337 3.942A47 47 0 0 1 12 20.065",clipRule:"evenodd"})]}),at=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M21.53 3.53a.75.75 0 0 0-1.06-1.06l-18 18a.75.75 0 1 0 1.06 1.06zM12 4.25c1.364 0 2.643.29 3.815.753l-1.173 1.173A8.6 8.6 0 0 0 12 5.75c-2.937 0-5.513 1.608-7.405 3.308A20.3 20.3 0 0 0 1.918 12a20.3 20.3 0 0 0 2.677 2.942q.332.299.691.59L4.22 16.598a19 19 0 0 1-.627-.54A21.8 21.8 0 0 1 .6 12.739a13 13 0 0 1-.21-.302l-.013-.018-.004-.005v-.002S.372 12.41 1 12l-.627-.411.001-.003.004-.005.012-.018.044-.066q.058-.083.167-.236a21.8 21.8 0 0 1 2.992-3.319C5.596 6.142 8.52 4.25 12 4.25"}),r.jsx("path",{d:"m1 12-.627.41-.27-.41.27-.411zm11-5c.547 0 1.074.088 1.567.25l-1.262 1.263a3.5 3.5 0 0 0-3.792 3.792l-1.262 1.262A5 5 0 0 1 12 7m4.75 3.433-1.263 1.262a3.5 3.5 0 0 1-3.792 3.792l-1.262 1.262a5 5 0 0 0 6.317-6.317Z"}),r.jsx("path",{d:"M12 18.25c-.92 0-1.803-.158-2.642-.426l-1.173 1.173c1.172.462 2.45.753 3.815.753 3.48 0 6.404-1.892 8.407-3.692a21.8 21.8 0 0 0 2.992-3.319q.109-.151.167-.236l.03-.044.014-.022.012-.018.004-.005v-.002S23.628 12.41 23 12l.627.41.27-.41-.27-.41L23 12l.627-.41v-.002l-.001-.002-.004-.005-.012-.018a19 19 0 0 0-.843-1.128 22 22 0 0 0-2.36-2.493q-.3-.27-.627-.54l-1.066 1.066q.36.291.691.59A20.3 20.3 0 0 1 22.082 12a20.3 20.3 0 0 1-2.677 2.942c-1.892 1.7-4.468 3.308-7.405 3.308"})]}),st=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12m10-8.5v17a8.5 8.5 0 0 0 0-17",clipRule:"evenodd"})]}),lt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4 2.5a3 3 0 0 0-3 3v13a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3v-13a3 3 0 0 0-3-3zm3 3.75a.75.75 0 0 0 0 1.5h4.25V18a.75.75 0 0 0 1.5 0V7.75H17a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),ct=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.55 2.4a.75.75 0 0 1 .9 0l8 6a.75.75 0 0 1 .3.6v12a.75.75 0 0 1-.75.75H4a.75.75 0 0 1-.75-.75V9a.75.75 0 0 1 .3-.6zm7.7 6.975L12 3.938 4.75 9.375V20.25h4.5V16a2.75 2.75 0 1 1 5.5 0v4.25h4.5zm-6 10.875V16a1.25 1.25 0 1 0-2.5 0v4.25z",clipRule:"evenodd"})]}),ut=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#horizontal-scroll-icon_svg__a)",children:r.jsx("path",{d:"m24.06 12-.522.523-.015.015-2.993 2.992a.75.75 0 1 1-1.06-1.06l1.72-1.72H17a.75.75 0 0 1 0-1.5h4.19l-1.72-1.72a.75.75 0 0 1 1.06-1.06l2.992 2.992.01.009.006.006.523.523ZM.478 11.462 3.47 8.47a.75.75 0 0 1 1.06 1.06l-1.72 1.72H7a.75.75 0 0 1 0 1.5H2.81l1.72 1.72a.75.75 0 1 1-1.06 1.06L.477 12.538l-.015-.015L-.061 12l.523-.523zM10.5 12a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"horizontal-scroll-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),dt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.5 10a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"}),r.jsx("path",{fillRule:"evenodd",d:"M23 18v-2l.03-.03-.03-.03V6a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2M21 5.5H3a.5.5 0 0 0-.5.5v10.44l3.47-3.47a.75.75 0 0 1 1.06 0l2.47 2.47 5.97-5.97a.75.75 0 0 1 1.06 0l4.97 4.97V6a.5.5 0 0 0-.5-.5m-18 13a.5.5 0 0 1-.322-.117L6.5 14.56l2.47 2.47a.75.75 0 0 0 1.06 0L16 11.06l5.5 5.5V18a.5.5 0 0 1-.5.5z",clipRule:"evenodd"})]}),pt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 21.5a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19m0 1.5c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11m1-15.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m-3.5 3.5a.75.75 0 0 0 0 1.5h1.75v4H9.5a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5h-1.75v-5.5z",clipRule:"evenodd"})]}),ht=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7 2.75a.75.75 0 0 1 .715.524l2.999 9.494.992 2.976.178.454c1.811 4.612 8.23 4.898 10.445.467a.75.75 0 1 1 1.342.67c-2.797 5.594-10.897 5.232-13.183-.589l-.186-.472-.013-.037-.83-2.487H4.542l-1.83 5.487a.75.75 0 0 1-1.422-.474l1.998-5.995 2.998-9.494A.75.75 0 0 1 7 2.75m-1.976 9.5h3.953L7 5.99zM13.25 4a.75.75 0 0 1 .75-.75h2.75a3 3 0 0 1 2.508 4.647 3.502 3.502 0 0 1-1.008 6.853H14a.75.75 0 0 1-.75-.75zm1.5 5.25v4h3.5a2 2 0 0 0 0-4zm0-1.5h2a1.5 1.5 0 0 0 0-3h-2z",clipRule:"evenodd"})]}),ft=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M9.75 7a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-1.901l-2.16 9.5H13a.75.75 0 0 1 0 1.5H8a.75.75 0 0 1 0-1.5h1.901l2.16-9.5H10.5A.75.75 0 0 1 9.75 7"})]}),mt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.752.292a.75.75 0 0 1 .496 0l10 3.5a.75.75 0 0 1 0 1.416L17.128 7l5.12 1.792a.75.75 0 0 1 0 1.416L17.128 12l5.12 1.792a.75.75 0 0 1 0 1.416l-10 3.5a.75.75 0 0 1-.496 0l-10-3.5a.75.75 0 0 1 0-1.416L6.87 12l-5.118-1.792a.75.75 0 0 1 0-1.416L6.87 7 1.752 5.208a.75.75 0 0 1 0-1.416zm.495 8.416 2.613-.913L19.73 9.5 12 12.206 4.27 9.5l4.87-1.705 2.612.913a.75.75 0 0 0 .495 0M4.27 4.5 12 7.205 19.73 4.5 12 1.795z",clipRule:"evenodd"}),r.jsx("path",{d:"m3 24-3-5h6z"})]}),gt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.248.292a.75.75 0 0 0-.496 0l-10 3.5a.75.75 0 0 0 0 1.416L6.87 7 1.752 8.792a.75.75 0 0 0 0 1.416L6.872 12l-5.12 1.792a.75.75 0 0 0 0 1.416l10 3.5a.75.75 0 0 0 .496 0l10-3.5a.75.75 0 0 0 0-1.416L17.128 12l5.12-1.792a.75.75 0 0 0 0-1.416L17.128 7l5.12-1.792a.75.75 0 0 0 0-1.416zM4.27 4.5 12 1.795 19.73 4.5 12 7.205zm7.482 9.208-2.61-.913L4.27 14.5 12 17.205l7.73-2.705-4.873-1.705-2.61.913a.75.75 0 0 1-.495 0",clipRule:"evenodd"}),r.jsx("path",{d:"m0 19 3 5 3-5z"})]}),vt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3 0 0 5h6z"}),r.jsx("path",{fillRule:"evenodd",d:"m6.873 12-5.12-1.792a.75.75 0 0 1 0-1.416l10-3.5a.75.75 0 0 1 .495 0l10 3.5a.75.75 0 0 1 0 1.416L17.128 12l5.12 1.792a.75.75 0 0 1 0 1.416L17.128 17l5.12 1.792a.75.75 0 0 1 0 1.416l-10 3.5a.75.75 0 0 1-.496 0l-10-3.5a.75.75 0 0 1 0-1.416L6.87 17l-5.118-1.792a.75.75 0 0 1 0-1.416L6.872 12Zm2.27.795L4.27 14.5 12 17.206l7.73-2.706-4.873-1.705-2.61.913a.75.75 0 0 1-.495 0zm-.003 5 2.612.913a.75.75 0 0 0 .495 0l2.613-.913 4.87 1.705L12 22.205 4.27 19.5z",clipRule:"evenodd"})]}),yt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3 0 0 5h6z"}),r.jsx("path",{fillRule:"evenodd",d:"M11.752 5.292a.75.75 0 0 1 .496 0l10 3.5a.75.75 0 0 1 0 1.416L17.128 12l5.12 1.792a.75.75 0 0 1 0 1.416L17.128 17l5.12 1.792a.75.75 0 0 1 0 1.416l-10 3.5a.75.75 0 0 1-.496 0l-10-3.5a.75.75 0 0 1 0-1.416L6.872 17l-5.12-1.792a.75.75 0 0 1 0-1.416L6.87 12l-5.118-1.792a.75.75 0 0 1 0-1.416zM4.27 9.5 12 12.206 19.73 9.5 12 6.795zm4.873 8.295 2.61.913a.75.75 0 0 0 .495 0l2.61-.913L19.73 19.5 12 22.205 4.27 19.5z",clipRule:"evenodd"})]}),bt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.248 3.292a.75.75 0 0 0-.496 0l-10 3.5a.75.75 0 0 0 0 1.416L6.874 10l-5.122 1.793a.75.75 0 0 0 0 1.416L6.87 15l-5.117 1.792a.75.75 0 0 0 0 1.416l10 3.5a.75.75 0 0 0 .496 0l10-3.5a.75.75 0 0 0 0-1.416L17.13 15l5.118-1.791a.75.75 0 0 0 0-1.416L17.126 10l5.122-1.792a.75.75 0 0 0 0-1.416zm2.608 7.503-2.608.913a.75.75 0 0 1-.496 0l-2.608-.913-4.874 1.706 5.086 1.78.032.011 2.612.914 7.73-2.705zM12 10.205 4.27 7.5 12 4.795 19.73 7.5zm-.248 6.504-2.613-.914L4.27 17.5 12 20.205l7.73-2.705-4.87-1.705-2.612.914a.75.75 0 0 1-.495 0Z",clipRule:"evenodd"})]}),wt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.25 20.25V22c0 .966.784 1.75 1.75 1.75h14A1.75 1.75 0 0 0 20.75 22V6.5a.75.75 0 0 0-.22-.53l-5.5-5.5a.75.75 0 0 0-.53-.22H5A1.75 1.75 0 0 0 3.25 2v1.75H1.5a.75.75 0 0 0 0 1.5h1.75v3.5H1.5a.75.75 0 0 0 0 1.5h1.75v3.5H1.5a.75.75 0 0 0 0 1.5h1.75v3.5H1.5a.75.75 0 0 0 0 1.5zM5 1.75a.25.25 0 0 0-.25.25v1.75H6.5a.75.75 0 0 1 0 1.5H4.75v3.5H6.5a.75.75 0 0 1 0 1.5H4.75v3.5H6.5a.75.75 0 0 1 0 1.5H4.75v3.5H6.5a.75.75 0 0 1 0 1.5H4.75V22c0 .138.112.25.25.25h14a.25.25 0 0 0 .25-.25V7.25H14.5a.75.75 0 0 1-.75-.75V1.75z",clipRule:"evenodd"})]}),xt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.25 2a.75.75 0 0 1 1.5 0v4.25H21a.75.75 0 0 1 0 1.5H3.75V12a.75.75 0 0 1-1.5 0zm14.28 9.47a.75.75 0 1 0-1.06 1.06l3.72 3.72H3a.75.75 0 0 0 0 1.5h16.19l-3.72 3.72a.75.75 0 1 0 1.06 1.06L22.06 17z",clipRule:"evenodd"})]}),_t=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22.53 1.47a.75.75 0 0 1 0 1.06l-20 20a.75.75 0 0 1-1.06-1.06l20-20a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),St=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.53 9.03a.75.75 0 0 1-1.06 0L6.25 7.81v8.88l1.22-1.22a.75.75 0 0 1 1.06 1.06L5.5 19.56l-3.03-3.03a.75.75 0 0 1 1.06-1.06l1.22 1.22V7.81L3.53 9.03a.75.75 0 0 1-1.06-1.06L5.5 4.94l3.03 3.03a.75.75 0 0 1 0 1.06M21 7.75a.75.75 0 0 0 0-1.5h-9a.75.75 0 0 0 0 1.5zm.75 4.25a.75.75 0 0 1-.75.75h-9a.75.75 0 0 1 0-1.5h9a.75.75 0 0 1 .75.75m0 5a.75.75 0 0 1-.75.75h-9a.75.75 0 0 1 0-1.5h9a.75.75 0 0 1 .75.75"})]}),Ct=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5 11c-1.66 0-3 1.34-3 3H0c0-2.76 2.24-5 5-5 1.36 0 2.6.55 3.5 1.43C9.4 9.55 10.64 9 12 9s2.6.55 3.5 1.43C16.4 9.55 17.64 9 19 9c2.76 0 5 2.24 5 5h-2c0-1.66-1.34-3-3-3-.95 0-1.81.45-2.36 1.14.23.57.36 1.2.36 1.86h-2c0-1.66-1.34-3-3-3-.95 0-1.81.45-2.36 1.14.23.57.36 1.2.36 1.86H8c0-1.66-1.34-3-3-3",clipRule:"evenodd"})]}),Et=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M19 11h4v2h-4zM1 11h4v2H1zm9 0h4v2h-4z",clipRule:"evenodd"})]}),kt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 11h2v2H2zm12 0h2v2h-2zm6 0h2v2h-2zM8 11h2v2H8z",clipRule:"evenodd"})]}),zt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M16 11h8v2h-8zM0 11h8v2H0z",clipRule:"evenodd"})]}),Pt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M21 11h2v2h-2zM1 11h2v2H1zm4 0h2v2H5zm4 0h2v2H9zm4 0h2v2h-2zm4 0h2v2h-2z",clipRule:"evenodd"})]}),Dt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 5.75h1.579v-1.5H2zm3.684 0h1.58v-1.5h-1.58zm3.684 0h1.58v-1.5h-1.58zm3.685 0h1.579v-1.5h-1.58zm3.684 0h1.579v-1.5h-1.58zm3.684 0H22v-1.5h-1.579zm-1.421 7h3v-1.5h-3zm-17 7h20v-1.5H2zm15-7h-4v-1.5h4zm-10 0h4v-1.5H7zm-2 0H2v-1.5h3z",clipRule:"evenodd"})]}),At=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#line-style-solid-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M0 11h24v2H0z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"line-style-solid-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),Tt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22 5.5H2v-1h20zm0 6.5H2v-2h20zM2 19.5h20v-3H2z",clipRule:"evenodd"})]}),It=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17.834 11.677a.75.75 0 0 1-1.06-1.06l2.12-2.122a2.25 2.25 0 0 0 0-3.182l-.706-.707a2.25 2.25 0 0 0-3.182 0l-4.243 4.242a2.25 2.25 0 0 0 0 3.182l.354.354a.75.75 0 0 1-1.061 1.06l-.354-.353a3.75 3.75 0 0 1 0-5.303l4.243-4.243a3.75 3.75 0 0 1 5.303 0l.707.707a3.75 3.75 0 0 1 0 5.303zm-11.667-.354a.75.75 0 0 1 1.06 1.06l-2.12 2.122a2.25 2.25 0 0 0 0 3.182l.706.707a2.25 2.25 0 0 0 3.182 0l4.243-4.242a2.25 2.25 0 0 0 0-3.182l-.354-.354a.75.75 0 0 1 1.061-1.06l.354.353a3.75 3.75 0 0 1 0 5.303l-4.243 4.243a3.75 3.75 0 0 1-5.303 0l-.707-.707a3.75 3.75 0 0 1 0-5.303z",clipRule:"evenodd"})]}),Mt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.25 6a4.75 4.75 0 0 1 9.5 0v3H18a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-8a3 3 0 0 1 3-3h1.25zm8 0v3h-6.5V6a3.25 3.25 0 0 1 6.5 0m-1.75 8.5a1.5 1.5 0 0 1-.75 1.3V18a.75.75 0 0 1-1.5 0v-2.2a1.5 1.5 0 1 1 2.25-1.3",clipRule:"evenodd"})]}),Rt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 15.8a1.5 1.5 0 1 0-1.5 0V18a.75.75 0 0 0 1.5 0z"}),r.jsx("path",{fillRule:"evenodd",d:"M12 1.25A4.75 4.75 0 0 0 7.25 6v3H6a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3h-1.25V6A4.75 4.75 0 0 0 12 1.25M15.25 9V6a3.25 3.25 0 0 0-6.5 0v3zM4.5 12A1.5 1.5 0 0 1 6 10.5h12a1.5 1.5 0 0 1 1.5 1.5v8a1.5 1.5 0 0 1-1.5 1.5H6A1.5 1.5 0 0 1 4.5 20z",clipRule:"evenodd"})]}),Ft=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.693 1.315c-.115-.801-1.272-.801-1.386 0l-.25 1.743-1.742.249c-.801.115-.801 1.271 0 1.386l1.743.249.249 1.743c.114.801 1.271.801 1.386 0l.249-1.743 1.742-.249c.802-.114.802-1.271 0-1.386l-1.742-.249zm-7 10c-.115-.801-1.272-.801-1.386 0l-.25 1.743-1.742.249c-.801.114-.801 1.271 0 1.386l1.743.249.249 1.743c.114.801 1.271.801 1.386 0l.249-1.743 1.742-.249c.802-.114.802-1.271 0-1.386l-1.742-.249-.25-1.743Zm14 5c-.115-.801-1.272-.801-1.386 0l-.25 1.743-1.742.249c-.801.115-.802 1.271 0 1.386l1.743.249.249 1.743c.114.801 1.271.801 1.386 0l.249-1.743 1.742-.249c.802-.115.802-1.271 0-1.386l-1.742-.249-.25-1.743ZM20 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-8 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2M4 6a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 17a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})]}),Nt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{clipPath:"url(#magic-pen-icon_svg__a)",children:[r.jsx("path",{d:"M12.964 1a.964.964 0 1 0-1.929 0v4a.964.964 0 1 0 1.929 0z"}),r.jsx("path",{fillRule:"evenodd",d:"m9.731 9.646-.086.086a2.5 2.5 0 0 0 0 3.536l9.586 9.585a2.5 2.5 0 0 0 3.535 0l.086-.085a2.5 2.5 0 0 0 0-3.536l-9.585-9.586a2.5 2.5 0 0 0-3.536 0m1.06 1.061-.085.086a1 1 0 0 0 0 1.414l9.586 9.586a1 1 0 0 0 1.414 0l.086-.086a1 1 0 0 0 0-1.414l-9.586-9.586a1 1 0 0 0-1.414 0Z",clipRule:"evenodd"}),r.jsx("path",{d:"M12 18.036c.532 0 .964.431.964.964v4a.964.964 0 1 1-1.929 0v-4c0-.533.432-.964.964-.964Zm11-5.072a.964.964 0 1 0 0-1.928h-4a.964.964 0 0 0 0 1.928zM5.964 12a.964.964 0 0 1-.965.964H1a.964.964 0 1 1 0-1.928h4c.533 0 .965.431.965.964ZM20.46 4.904a.964.964 0 0 0-1.365-1.364l-2.592 2.593a.964.964 0 1 0 1.363 1.363zm-12.965 11.6a.964.964 0 0 1 0 1.363L4.902 20.46a.964.964 0 1 1-1.363-1.364l2.592-2.592a.964.964 0 0 1 1.364 0M6.132 7.496a.964.964 0 1 0 1.364-1.363L4.903 3.54a.964.964 0 0 0-1.364 1.364z"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"magic-pen-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),Ot=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 3.5h18A2.5 2.5 0 0 1 23.5 6v11a2.5 2.5 0 0 1-2.5 2.5H3A2.5 2.5 0 0 1 .5 17V6A2.5 2.5 0 0 1 3 3.5M2 16.94V6.06l5.44 5.44zM3.06 18h17.88l-5.44-5.44-.848.849a3.75 3.75 0 0 1-5.304 0l-.848-.848zm13.5-6.5L22 16.94V6.06zM3.06 5h17.88l-7.349 7.348a2.25 2.25 0 0 1-3.182 0z",clipRule:"evenodd"})]}),jt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.358 12.58c-.456.464-.9.916-1.328 1.343a.75.75 0 1 1-1.06-1.06c.405-.406.833-.842 1.28-1.296 1.72-1.75 3.694-3.761 5.556-5.24 1.17-.928 2.36-1.704 3.474-2.061 1.139-.366 2.329-.325 3.25.596.537.537.746 1.184.651 1.867-.087.63-.422 1.226-.823 1.761-.732.98-1.893 2.019-2.999 3.008l-.296.265c-1.237 1.111-2.357 2.152-2.972 3.106-.303.47-.435.849-.444 1.148-.008.265.077.539.383.845.165.165.314.21.484.203.207-.009.494-.1.875-.32.77-.449 1.64-1.255 2.6-2.15l.044-.043c.904-.843 1.891-1.765 2.824-2.308.48-.278 1.013-.5 1.567-.523a2.1 2.1 0 0 1 1.606.641c.365.365.573.797.603 1.276.03.457-.108.882-.29 1.246-.343.686-.963 1.374-1.492 1.962l-.043.048c-.587.651-1.067 1.195-1.31 1.678-.114.23-.14.382-.134.48.005.076.031.175.166.31.172.172.526.298 1.3-.034.751-.322 1.673-.999 2.64-1.966a.75.75 0 1 1 1.06 1.06c-1.033 1.034-2.111 1.857-3.11 2.285-.976.419-2.122.544-2.95-.284-.365-.365-.573-.797-.603-1.276-.03-.457.108-.882.29-1.246.343-.686.963-1.374 1.492-1.962l.043-.048c.587-.651 1.067-1.194 1.309-1.678.115-.229.141-.382.135-.48-.005-.076-.031-.175-.166-.31-.165-.165-.314-.21-.484-.203-.207.009-.494.1-.875.32-.77.449-1.64 1.255-2.6 2.15l-.044.043c-.904.843-1.891 1.765-2.824 2.308-.48.278-1.013.5-1.567.523a2.1 2.1 0 0 1-1.606-.641c-.569-.569-.844-1.232-.822-1.95.02-.683.306-1.332.682-1.917.745-1.155 2.032-2.333 3.232-3.41l.262-.235c1.147-1.027 2.195-1.967 2.833-2.82.342-.456.503-.809.538-1.068.029-.205-.012-.387-.225-.6-.383-.383-.907-.494-1.731-.229-.85.273-1.87.91-3 1.808-1.781 1.414-3.666 3.332-5.381 5.077Z",clipRule:"evenodd"})]}),Lt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M.5 4H2V2h2V.5H2A1.5 1.5 0 0 0 .5 2zm23 0H22V2h-2V.5h2A1.5 1.5 0 0 1 23.5 2zm0 3H22v3.5h1.5zm0 6.5H22V17h1.5zM.5 7H2v3.5H.5zm0 6.5H2V17H.5zm0 6.5H2v2h2v1.5H2A1.5 1.5 0 0 1 .5 22zM7 23.5V22h3.5v1.5zm6.5 0V22H17v1.5zM17 .5V2h-3.5V.5zm-6.5 0V2H7V.5zM12 8.75a.75.75 0 0 1 .75.75v1.75h1.75a.75.75 0 0 1 0 1.5h-1.75v1.75a.75.75 0 0 1-1.5 0v-1.75H9.5a.75.75 0 0 1 0-1.5h1.75V9.5a.75.75 0 0 1 .75-.75"}),r.jsx("path",{fillRule:"evenodd",d:"M17.807 16.747a7.5 7.5 0 1 0-1.06 1.06l4.723 4.723a.75.75 0 1 0 1.06-1.06zM18 12a6 6 0 1 1-12 0 6 6 0 0 1 12 0",clipRule:"evenodd"})]}),Bt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M.75 5.25A.75.75 0 0 1 1.5 6v5.996l4.466-4.523a.75.75 0 1 1 1.068 1.054l-2.69 2.723h15.311l-2.689-2.723a.75.75 0 1 1 1.068-1.054l4.466 4.523V6A.75.75 0 0 1 24 6v12a.75.75 0 0 1-1.5 0v-5.996l-4.466 4.523a.75.75 0 0 1-1.067-1.054l2.689-2.723H4.345l2.689 2.723a.75.75 0 0 1-1.068 1.054L1.5 12.004V18A.75.75 0 0 1 0 18V6a.75.75 0 0 1 .75-.75"})]}),Kt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#mentions-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M12 .45C5.621.45.45 5.621.45 12S5.621 23.55 12 23.55h6a.75.75 0 0 0 0-1.5h-6c-5.55 0-10.05-4.5-10.05-10.05S6.45 1.95 12 1.95h1.638a8.41 8.41 0 0 1 8.412 8.412V14.1a2.55 2.55 0 0 1-5.1 0V6a.75.75 0 0 0-1.5 0v1.426a5.25 5.25 0 0 0-9 3.674v1.8a5.25 5.25 0 0 0 9.479 3.112A4.05 4.05 0 0 0 23.55 14.1v-3.738c0-5.474-4.438-9.912-9.912-9.912zm3.45 12.45v-1.8a3.75 3.75 0 1 0-7.5 0v1.8a3.75 3.75 0 0 0 7.5 0",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"mentions-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),Vt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M11.25 12A8.25 8.25 0 0 0 3 3.75H2a.75.75 0 0 1 0-1.5h1a9.75 9.75 0 0 1 9 5.993 9.75 9.75 0 0 1 9-5.993h1a.75.75 0 0 1 0 1.5h-1A8.25 8.25 0 0 0 12.75 12v7.19l2.72-2.72a.75.75 0 1 1 1.06 1.06L12 22.06l-4.53-4.53a.75.75 0 1 1 1.06-1.06l2.72 2.72z"})]}),Ht=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.25 4A2.75 2.75 0 0 1 4 1.25h16A2.75 2.75 0 0 1 22.75 4v12A2.75 2.75 0 0 1 20 18.75h-7.21l-5.285 4.805A.75.75 0 0 1 6.25 23v-4.25H4A2.75 2.75 0 0 1 1.25 16zM4 2.75c-.69 0-1.25.56-1.25 1.25v12c0 .69.56 1.25 1.25 1.25h3a.75.75 0 0 1 .75.75v3.305l4.245-3.86a.75.75 0 0 1 .505-.195H20c.69 0 1.25-.56 1.25-1.25V4c0-.69-.56-1.25-1.25-1.25z",clipRule:"evenodd"})]}),$t=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.25 12a.75.75 0 0 1 .75-.75h14a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),Ut=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.667 3.092a.75.75 0 0 1 .09.838A8.6 8.6 0 0 0 9.75 8c0 4.597 3.51 8.25 7.75 8.25 1.137 0 2.216-.26 3.19-.729a.75.75 0 0 1 .992 1.018A9.75 9.75 0 0 1 13 21.85c-5.385 0-9.75-4.366-9.75-9.75 0-4.286 2.764-7.923 6.604-9.232a.75.75 0 0 1 .813.225Zm-1.992 1.98a8.25 8.25 0 1 0 10.478 12.523 9 9 0 0 1-1.653.155c-5.148 0-9.25-4.406-9.25-9.75 0-1.02.149-2.003.425-2.929Z",clipRule:"evenodd"})]}),Zt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12 13.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M8 12a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m9.5 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"}),r.jsx("path",{fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11m-1.5 0a9.5 9.5 0 1 1-19 0 9.5 9.5 0 0 1 19 0",clipRule:"evenodd"})]}),qt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17 12a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m-6.5 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m-5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3",clipRule:"evenodd"})]}),Gt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m0 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m-1.5 5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0"})]}),Wt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#move-all-directions-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"m12 .94 3.53 3.53a.75.75 0 0 1-1.06 1.06l-1.72-1.72v7.44h7.44l-1.72-1.72a.75.75 0 0 1 1.06-1.06L23.06 12l-3.53 3.53a.75.75 0 1 1-1.06-1.06l1.72-1.72h-7.44v7.44l1.72-1.72a.75.75 0 1 1 1.06 1.06L12 23.06l-3.53-3.53a.75.75 0 1 1 1.06-1.06l1.72 1.72v-7.44H3.81l1.72 1.72a.75.75 0 1 1-1.06 1.06L.94 12l3.53-3.53a.75.75 0 0 1 1.06 1.06l-1.72 1.72h7.44V3.81L9.53 5.53a.75.75 0 0 1-1.06-1.06z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"move-all-directions-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),Yt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18 7.25a.75.75 0 0 0-.75.75v3.25H7.81l2.72-2.72a.75.75 0 0 0-1.06-1.06L4.94 12l4.53 4.53a.75.75 0 1 0 1.06-1.06l-2.72-2.72h9.44V16a.75.75 0 0 0 1.5 0V8a.75.75 0 0 0-.75-.75",clipRule:"evenodd"})]}),Xt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M18.53 7.47a.75.75 0 1 0-1.06 1.06l2.72 2.72H3.81l2.72-2.72a.75.75 0 1 0-1.06-1.06L.94 12l4.53 4.53a.75.75 0 0 0 1.06-1.06l-2.72-2.72h16.38l-2.72 2.72a.75.75 0 1 0 1.06 1.06L23.06 12z"})]}),Qt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6 7.25a.75.75 0 0 1 .75.75v3.25h9.44l-2.72-2.72a.75.75 0 0 1 1.06-1.06L19.06 12l-4.53 4.53a.75.75 0 1 1-1.06-1.06l2.72-2.72H6.75V16a.75.75 0 0 1-1.5 0V8A.75.75 0 0 1 6 7.25",clipRule:"evenodd"})]}),Jt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#multiple-pages-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M10.5 2A1.5 1.5 0 0 1 12 .5h6a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 23.5 6v10a1.5 1.5 0 0 1-1.5 1.5H12a1.5 1.5 0 0 1-1.5-1.5zM12 16V2h6v3a1 1 0 0 0 1 1h3v10zM7 3.5h2V5H7v14h11.5a1.5 1.5 0 0 1-1.5 1.5H7A1.5 1.5 0 0 1 5.5 19V5A1.5 1.5 0 0 1 7 3.5m-5 3h2V8H2v14h11.5a1.5 1.5 0 0 1-1.5 1.5H2A1.5 1.5 0 0 1 .5 22V8A1.5 1.5 0 0 1 2 6.5",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"multiple-pages-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),en=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.22 3.28a.75.75 0 0 1 1.06-1.06l18 18a.75.75 0 1 1-1.06 1.06l-6.47-6.47-6.177 6.177a1.75 1.75 0 0 1-1.237.513H2v-4.336c0-.464.184-.909.513-1.237L8.689 9.75zm7.53 7.53-6.177 6.177a.25.25 0 0 0-.073.177V20h2.836a.25.25 0 0 0 .177-.073l6.176-6.177zm9.445-7.676a2.75 2.75 0 0 0-3.89 0L10.72 7.72l1.06 1.06 1.97-1.97 2.94 2.94-1.97 1.97 1.06 1.06 4.586-4.585a2.75 2.75 0 0 0 0-3.89zM17.75 8.689 14.81 5.75l1.556-1.555a1.25 1.25 0 0 1 1.768 0l1.171 1.171a1.25 1.25 0 0 1 0 1.768z",clipRule:"evenodd"})]}),tn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.71 2.296a1 1 0 0 0-1.42 0l-2.83 2.83a1 1 0 0 0-.29.71c.004.265.107.518.29.71l2.3 2.29H2a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h10.76l-2.3 2.29a1 1 0 0 0 0 1.42l2.83 2.82a1 1 0 0 0 1.42 0l8.83-8.82a1.05 1.05 0 0 0 .29-.71 1 1 0 0 0-.29-.71z",clipRule:"evenodd"})]}),nn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M19 4.29a1 1 0 0 0-1.41 0l-8.1 8.14-2.95-3a1 1 0 0 0-1.42 0L2.29 12.3A1.05 1.05 0 0 0 2 13a1 1 0 0 0 .29.71l6.49 6.49a1 1 0 0 0 .71.3 1 1 0 0 0 .7-.3L21.86 8.54a1 1 0 0 0 0-1.42z",clipRule:"evenodd"})]}),rn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m0 14a4 4 0 1 1 0-8 4 4 0 0 1 0 8",clipRule:"evenodd"})]}),on=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.25 9A.75.75 0 0 1 8 8.25h8a.75.75 0 0 1 0 1.5H8A.75.75 0 0 1 7.25 9M8 12.25a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5z"}),r.jsx("path",{fillRule:"evenodd",d:"M2.25 6A2.75 2.75 0 0 1 5 3.25h14A2.75 2.75 0 0 1 21.75 6v10A2.75 2.75 0 0 1 19 18.75h-3.08c-.365 0-.712.16-.95.436L13.4 21.02a1.75 1.75 0 0 1-2.752-.122l-1.16-1.623a1.25 1.25 0 0 0-1.017-.524H5A2.75 2.75 0 0 1 2.25 16zM5 4.75c-.69 0-1.25.56-1.25 1.25v10c0 .69.56 1.25 1.25 1.25h3.47a2.75 2.75 0 0 1 2.239 1.152l1.16 1.623a.25.25 0 0 0 .393.018l1.57-1.833a2.75 2.75 0 0 1 2.088-.96H19c.69 0 1.25-.56 1.25-1.25V6c0-.69-.56-1.25-1.25-1.25z",clipRule:"evenodd"})]}),an=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m22.04 6.04-5.88 5.87 5.88 5.88a1 1 0 0 1 0 1.42l-2.83 2.83a1 1 0 0 1-1.42 0l-5.88-5.88-5.87 5.88a1 1 0 0 1-1.42 0l-2.83-2.83a1 1 0 0 1 0-1.42l5.88-5.88-5.88-5.87a1 1 0 0 1-.29-.71 1 1 0 0 1 .29-.71l2.83-2.83a1 1 0 0 1 .71-.29c.265.004.518.107.71.29l5.87 5.88 5.88-5.88a1 1 0 0 1 1.42 0l2.83 2.83a1 1 0 0 1 0 1.42",clipRule:"evenodd"})]}),sn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 7.997c0 .27-.11.52-.29.71a1 1 0 0 1-.71.29H5c-.27 0-.52-.11-.71-.29a1 1 0 0 1-.29-.71c0-1.45.39-2.86 1.14-4.11A8 8 0 0 1 8.22.947c1.27-.68 2.71-1 4.15-.94 1.44.07 2.84.52 4.05 1.32s2.17 1.91 2.8 3.21c.62 1.3.88 2.75.75 4.19a7.87 7.87 0 0 1-1.51 3.98 8.2 8.2 0 0 1-3.34 2.65l-.12.06v.07c0 .27-.11.52-.29.71s-.44.29-.71.29h-4c-.27 0-.52-.11-.71-.29a1 1 0 0 1-.29-.71v-.5c.06-1.14.45-2.23 1.12-3.15s1.6-1.62 2.66-2.01c.33-.14.62-.37.83-.66s.34-.64.38-1c.03-.36-.03-.72-.19-1.05a2.01 2.01 0 0 0-1.71-1.13c-.36-.02-.72.07-1.04.24s-.58.43-.77.74-.28.67-.28 1.03m2 16c.59 0 1.17-.18 1.67-.51.49-.33.88-.8 1.1-1.35.23-.55.29-1.15.17-1.73s-.4-1.12-.82-1.54-.95-.71-1.54-.82c-.58-.12-1.19-.06-1.73.17-.55.23-1.02.61-1.35 1.1a2.99 2.99 0 0 0 .37 3.79c.56.56 1.33.88 2.12.88z",clipRule:"evenodd"})]}),ln=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.25 9A.75.75 0 0 1 7 8.25h10a.75.75 0 0 1 0 1.5H7A.75.75 0 0 1 6.25 9M7 12.25a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5z"}),r.jsx("path",{fillRule:"evenodd",d:"M2.25 6A2.75 2.75 0 0 1 5 3.25h14A2.75 2.75 0 0 1 21.75 6v7.172a2.75 2.75 0 0 1-.613 1.73 1 1 0 0 1-.119.14l-4.976 4.976a1 1 0 0 1-.14.12 2.75 2.75 0 0 1-1.73.612H5A2.75 2.75 0 0 1 2.25 18zm17.997 7.25H16A1.75 1.75 0 0 0 14.25 15v4.247l-.078.003H5c-.69 0-1.25-.56-1.25-1.25V6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v7.172q0 .039-.003.078",clipRule:"evenodd"})]}),cn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.293 1.179a1 1 0 0 1 1.414 0l7.864 7.864a1 1 0 0 1 0 1.414l-2.475 2.475a1 1 0 0 1-1.414 0L14.75 11v1.5c0 1.457.53 2.472 1.592 3.227 1.068.758 2.872 1.381 5.658 1.502.551.024 1 .469 1 1.021v3.5a.974.974 0 0 1-1 .983c-3.542-.123-6.576-.913-8.842-2.522A10 10 0 0 1 12 19.25a10 10 0 0 1-1.158.96c-2.265 1.61-5.3 2.4-8.842 2.523-.552.02-1-.43-1-.983v-3.5c0-.552.449-.997 1-1.021 2.786-.12 4.59-.744 5.658-1.502 1.062-.755 1.592-1.77 1.592-3.227V11l-1.932 1.932a1 1 0 0 1-1.414 0L3.43 10.457a1 1 0 0 1 0-1.414l7.864-7.864Z",clipRule:"evenodd"})]}),un=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M20.07 3.55a7 7 0 0 0-11.39 7.7.3.3 0 0 1 0 .12l-6.8 6.83a2 2 0 0 0-.53.93l-.29 1.17a2 2 0 0 0 2.16 2.47l1.06-.12A2 2 0 0 0 6 21.15l.47-1.89.26-.25 2.88-.26a2 2 0 0 0 1.71-1.36l.78-2.34.12-.12a.3.3 0 0 1 .12 0 7 7 0 0 0 7.7-11.39zM18 7.79a1.5 1.5 0 1 1-2.122-2.12A1.5 1.5 0 0 1 18 7.79",clipRule:"evenodd"})]}),dn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 16h1v5a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V6.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5V21a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V6.5a.5.5 0 0 1 .5-.5H22a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H8a7 7 0 0 0 0 14",clipRule:"evenodd"})]}),pn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 0c.2 0 .3 0 .5.1s.3.2.4.4l8 14c.1.2.1.3.1.5s0 .3-.1.5-.2.3-.4.4-.3.1-.5.1H4c-.2 0-.3 0-.5-.1s-.3-.2-.4-.4c0-.2-.1-.3-.1-.5s0-.3.1-.5l8-14c.1-.2.2-.3.4-.4s.3-.1.5-.1M4.5 17.4c-.1-.1-.2-.1-.4-.2-.1 0-.3 0-.4.1l-.3.3c-.1.1-.1.3-.1.4v5c0 .2.1.4.2.5s.3.2.5.2.4-.1.5-.2.2-.3.2-.5v-3.4l4.8 4c.1.1.2.1.4.2.1 0 .3 0 .4-.1l.3-.3c.1-.1.1-.3.1-.4v-5c0-.2-.1-.4-.2-.5s-.3-.2-.5-.2-.4.1-.5.2-.2.3-.2.5v3.4zm9.5-.2h4.5c.6 0 1.2.2 1.6.7.4.4.7 1 .7 1.6s-.2 1.2-.7 1.6c-.4.4-1 .7-1.6.7h-3.8V23c0 .2-.1.4-.2.5s-.3.2-.5.2-.4-.1-.5-.2-.2-.3-.2-.5v-5c0-.2.1-.4.2-.5.1-.2.3-.2.5-.3m.7 3v-1.5h3.8c.2 0 .4.1.5.2s.2.3.2.5 0 .5-.2.6c-.1.1-.3.2-.5.2z",clipRule:"evenodd"})]}),hn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M21.94 13.06 15 20v-7h7zM22 11h-7a2 2 0 0 0-2 2v7H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",clipRule:"evenodd"})]}),fn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M20.858 10.158 4.985 2.226a2.06 2.06 0 0 0-2.738 2.799L5.943 12l-3.696 6.965a2.057 2.057 0 0 0 2.738 2.809l15.873-7.932a2.059 2.059 0 0 0 0-3.684",clipRule:"evenodd"})]}),mn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22 5v10a2 2 0 0 1-2 2H8.35l-4.73 3.78A1 1 0 0 1 2 20V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2",clipRule:"evenodd"})]}),gn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m21.73 10.2-4.63 3.36L18.87 19a1.5 1.5 0 0 1-2.31 1.68l-4.63-3.37-4.64 3.38A1.5 1.5 0 0 1 4.99 19l1.77-5.45-4.64-3.35A1.5 1.5 0 0 1 3 7.48h5.73L10.5 2a1.5 1.5 0 0 1 2.85 0l1.77 5.44h5.73a1.5 1.5 0 0 1 .88 2.76",clipRule:"evenodd"})]}),vn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3.5 6H2V2h4v1.5H3.5zM7 7.25a.75.75 0 0 0 0 1.5h4.25V17a.75.75 0 0 0 1.5 0V8.75H17a.75.75 0 0 0 0-1.5zM18 2v1.5h2.5V6H22V2zM3.5 18H2v4h4v-1.5H3.5zM18 22v-1.5h2.5V18H22v4z"})]}),yn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.5 12c0 5.799 4.701 10.5 10.5 10.5S22.5 17.799 22.5 12 17.799 1.5 12 1.5 1.5 6.201 1.5 12M3 12a9 9 0 0 1 9-9h.005v18h.019H12a9 9 0 0 1-9-9m10.505 8.875a9 9 0 0 0 1.49-.385V3.51a9 9 0 0 0-1.49-.385zM16.495 4.2v15.598a9 9 0 0 0 1.5-1.086V5.287a9 9 0 0 0-1.5-1.086Zm3 2.814v9.97A8.96 8.96 0 0 0 21 12a8.96 8.96 0 0 0-1.505-4.985Z",clipRule:"evenodd"})]}),bn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 12a.75.75 0 0 0-1.5 0v2.25H9a.75.75 0 0 0 0 1.5h2.25V18a.75.75 0 0 0 1.5 0v-2.25H15a.75.75 0 0 0 0-1.5h-2.25z"}),r.jsx("path",{fillRule:"evenodd",d:"M3.25 2c0-.966.784-1.75 1.75-1.75h9.5a.75.75 0 0 1 .53.22l5.5 5.5c.141.14.22.331.22.53V22A1.75 1.75 0 0 1 19 23.75H5A1.75 1.75 0 0 1 3.25 22zM5 1.75a.25.25 0 0 0-.25.25v20c0 .138.112.25.25.25h14a.25.25 0 0 0 .25-.25V7.25H14.5a.75.75 0 0 1-.75-.75V1.75z",clipRule:"evenodd"})]}),wn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.25 4c0-.968.784-1.747 1.747-1.751 3.193-.014 6.301-.164 9.677-1.673 1.14-.51 2.576.259 2.576 1.62v.054H19c.966 0 1.75.784 1.75 1.75v18A1.75 1.75 0 0 1 19 23.75H5A1.75 1.75 0 0 1 3.25 22zm12.036-2.054a.35.35 0 0 1 .327.022.26.26 0 0 1 .137.229v16.685c0 .072-.03.124-.07.157-3.026 2.412-7.087 3.1-10.701 3.198a.22.22 0 0 1-.172-.078A.25.25 0 0 1 4.75 22V4c0-.137.111-.25.253-.251 3.234-.014 6.607-.16 10.283-1.803M13.075 22.25H19a.25.25 0 0 0 .25-.25V4a.25.25 0 0 0-.25-.25h-1.75v15.132c0 .509-.222 1-.635 1.33a14.1 14.1 0 0 1-3.54 2.038",clipRule:"evenodd"})]}),xn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M10 .5A1.5 1.5 0 0 0 8.5 2v1H10V2h8v3a1 1 0 0 0 1 1h3v12h-3v1.5h3a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-.44-1.06l-4-4A1.5 1.5 0 0 0 18 .5zm.75 12.5a.75.75 0 0 0-1.5 0v2.25H7a.75.75 0 0 0 0 1.5h2.25V19a.75.75 0 0 0 1.5 0v-2.25H13a.75.75 0 0 0 0-1.5h-2.25z"}),r.jsx("path",{fillRule:"evenodd",d:"M2.5 6A1.5 1.5 0 0 1 4 4.5h8a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 17.5 10v12a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 22zM4 22V6h8v3a1 1 0 0 0 1 1h3v12z",clipRule:"evenodd"})]}),_n=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M0 6a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm20.75-1H22a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-1.25zm-1.5 0H4.75v14h14.5zm-16 14V5H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1z",clipRule:"evenodd"})]}),Sn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M21 5a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm-4 1h4a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-4zM7 18H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h4zM8.5 6.5h7v11h-7z",clipRule:"evenodd"})]}),Cn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M0 3.75h1a.25.25 0 0 1 .25.25v16a.25.25 0 0 1-.25.25H0v1.5h1A1.75 1.75 0 0 0 2.75 20V4A1.75 1.75 0 0 0 1 2.25H0z"}),r.jsx("path",{fillRule:"evenodd",d:"M4.25 4c0-.966.784-1.75 1.75-1.75h12c.966 0 1.75.784 1.75 1.75v16A1.75 1.75 0 0 1 18 21.75H6A1.75 1.75 0 0 1 4.25 20zM6 3.75a.25.25 0 0 0-.25.25v16c0 .138.112.25.25.25h12a.25.25 0 0 0 .25-.25V4a.25.25 0 0 0-.25-.25z",clipRule:"evenodd"}),r.jsx("path",{d:"M23 3.75a.25.25 0 0 0-.25.25v16c0 .138.112.25.25.25h1v1.5h-1A1.75 1.75 0 0 1 21.25 20V4c0-.966.784-1.75 1.75-1.75h1v1.5z"})]}),En=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M23.75 19A1.75 1.75 0 0 1 22 20.75H2A1.75 1.75 0 0 1 .25 19V5c0-.966.784-1.75 1.75-1.75h15.5a.75.75 0 0 1 .53.22l5.5 5.5c.141.14.22.331.22.53zm-1.75.25a.25.25 0 0 0 .25-.25v-8.75H17.5a.75.75 0 0 1-.75-.75V4.75H2a.25.25 0 0 0-.25.25v14c0 .138.112.25.25.25z",clipRule:"evenodd"})]}),kn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 20.75A1.75 1.75 0 0 1 .25 19V5c0-.966.784-1.75 1.75-1.75h20c.966 0 1.75.784 1.75 1.75v14A1.75 1.75 0 0 1 22 20.75zM1.75 5A.25.25 0 0 1 2 4.75h9.25v14.5H2a.25.25 0 0 1-.25-.25zm11-.25v14.5H22a.25.25 0 0 0 .25-.25V5a.25.25 0 0 0-.25-.25z",clipRule:"evenodd"})]}),zn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5 1.75a.25.25 0 0 0-.25.25v20c0 .138.112.25.25.25h14a.25.25 0 0 0 .25-.25V2a.25.25 0 0 0-.25-.25zM3.25 2c0-.966.784-1.75 1.75-1.75h14c.966 0 1.75.784 1.75 1.75v20A1.75 1.75 0 0 1 19 23.75H5A1.75 1.75 0 0 1 3.25 22z",clipRule:"evenodd"})]}),Pn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{clipPath:"url(#page-move-left-icon_svg__a)",children:[r.jsx("path",{d:"M23.5 4A1.5 1.5 0 0 0 22 2.5h-7a1.5 1.5 0 0 0-1.06.44l-4 4A1.5 1.5 0 0 0 9.5 8v2H11V8h4V4h7v16H11v-2H9.5v2a1.5 1.5 0 0 0 1.5 1.5h11a1.5 1.5 0 0 0 1.5-1.5z"}),r.jsx("path",{d:"M5.53 9.47a.75.75 0 0 0-1.06 0L-.06 14l4.53 4.53a.75.75 0 0 0 1.06-1.06l-2.72-2.72H16a.75.75 0 0 0 0-1.5H2.81l2.72-2.72a.75.75 0 0 0 0-1.06"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"page-move-left-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),Dn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{clipPath:"url(#page-move-right-icon_svg__a)",children:[r.jsx("path",{d:"M.5 4A1.5 1.5 0 0 1 2 2.5h7a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 14.5 8v2H13V8H9V4H2v16h11v-2h1.5v2a1.5 1.5 0 0 1-1.5 1.5H2A1.5 1.5 0 0 1 .5 20z"}),r.jsx("path",{d:"M18.47 9.47a.75.75 0 0 1 1.06 0L24.06 14l-4.53 4.53a.75.75 0 1 1-1.06-1.06l2.72-2.72H8a.75.75 0 0 1 0-1.5h13.19l-2.72-2.72a.75.75 0 0 1 0-1.06"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"page-move-right-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),An=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.656 8.182a.75.75 0 1 0-1.455-.364L9.843 9.25H8.5a.75.75 0 0 0 0 1.5h.968l-.625 2.5H7.43a.75.75 0 0 0 0 1.5h1.04l-.27 1.068a.75.75 0 0 0 1.455.364l.358-1.432h2.454l-.267 1.068a.75.75 0 0 0 1.455.364l.358-1.432h1.415a.75.75 0 0 0 0-1.5h-1.04l.625-2.5h1.415a.75.75 0 0 0 0-1.5h-1.04l.267-1.068a.75.75 0 1 0-1.455-.364l-.358 1.432H11.39zm1.187 5.068H10.39l.625-2.5h2.454l-.625 2.5Z",clipRule:"evenodd"}),r.jsx("path",{fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11m-1.5 0a9.5 9.5 0 1 1-19 0 9.5 9.5 0 0 1 19 0",clipRule:"evenodd"})]}),Tn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.635 11.279a.75.75 0 0 1 .515.927l-.299 1.044h1.44l.416-1.456a.75.75 0 0 1 1.443.412l-.299 1.044h1.006a.75.75 0 1 1 0 1.5h-1.434l-.429 1.5H15a.75.75 0 0 1 0 1.5h-1.434l-.416 1.456a.75.75 0 0 1-1.443-.412l.299-1.044h-1.44l-.416 1.456a.75.75 0 0 1-1.443-.412l.299-1.044H8a.75.75 0 0 1 0-1.5h1.434l.429-1.5H8.857a.75.75 0 0 1 0-1.5h1.434l.416-1.456a.75.75 0 0 1 .928-.515m-.212 3.471-.429 1.5h1.44l.429-1.5z",clipRule:"evenodd"}),r.jsx("path",{fillRule:"evenodd",d:"M3.25 2c0-.966.784-1.75 1.75-1.75h9.5a.75.75 0 0 1 .53.22l5.5 5.5c.141.14.22.331.22.53V22A1.75 1.75 0 0 1 19 23.75H5A1.75 1.75 0 0 1 3.25 22zM5 1.75a.25.25 0 0 0-.25.25v20c0 .138.112.25.25.25h14a.25.25 0 0 0 .25-.25V7.25H14.5a.75.75 0 0 1-.75-.75V1.75z",clipRule:"evenodd"})]}),In=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5 .25A1.75 1.75 0 0 0 3.25 2v20c0 .966.784 1.75 1.75 1.75h14A1.75 1.75 0 0 0 20.75 22V6.5a.75.75 0 0 0-.22-.53l-5.5-5.5a.75.75 0 0 0-.53-.22zM4.75 2A.25.25 0 0 1 5 1.75h8.75V6.5c0 .414.336.75.75.75h4.75V22a.25.25 0 0 1-.25.25H5a.25.25 0 0 1-.25-.25z",clipRule:"evenodd"})]}),Mn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.25 15a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75"}),r.jsx("path",{fillRule:"evenodd",d:"M3.25 2c0-.966.784-1.75 1.75-1.75h9.5a.75.75 0 0 1 .53.22l5.5 5.5c.141.14.22.331.22.53V22A1.75 1.75 0 0 1 19 23.75H5A1.75 1.75 0 0 1 3.25 22zM5 1.75a.25.25 0 0 0-.25.25v20c0 .138.112.25.25.25h14a.25.25 0 0 0 .25-.25V7.25H14.5a.75.75 0 0 1-.75-.75V1.75z",clipRule:"evenodd"})]}),Rn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M5.75 4V0h-1.5v4c0 .966.784 1.75 1.75 1.75h12A1.75 1.75 0 0 0 19.75 4V0h-1.5v4a.25.25 0 0 1-.25.25H6A.25.25 0 0 1 5.75 4m0 5A.25.25 0 0 1 6 8.75h12a.25.25 0 0 1 .25.25v15h1.5V9A1.75 1.75 0 0 0 18 7.25H6A1.75 1.75 0 0 0 4.25 9v15h1.5z"})]}),Fn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{clipPath:"url(#pages-insert-alt-icon_svg__a)",children:[r.jsx("path",{d:"M4 0H3a1.5 1.5 0 0 0-1.5 1.5v12A1.5 1.5 0 0 0 3 15h1v-1.5H3v-12h1zm3.5 0H9v1.5H7.5v12H9V15H7.5A1.5 1.5 0 0 1 6 13.5v-12A1.5 1.5 0 0 1 7.5 0"}),r.jsx("path",{fillRule:"evenodd",d:"M11 1.5A1.5 1.5 0 0 1 12.5 0h5a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 23 5.5v8a1.5 1.5 0 0 1-1.5 1.5h-9a1.5 1.5 0 0 1-1.5-1.5zm1.5 12v-12h5v3a1 1 0 0 0 1 1h3v8z",clipRule:"evenodd"}),r.jsx("path",{d:"M8.47 20.53a.75.75 0 1 1 1.06-1.06l1.72 1.72V17a.75.75 0 0 1 1.5 0v4.19l1.72-1.72a.75.75 0 1 1 1.06 1.06L12 24.06z"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"pages-insert-alt-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),Nn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{clipPath:"url(#pages-insert-icon_svg__a)",children:[r.jsx("path",{fillRule:"evenodd",d:"M2 .25A1.75 1.75 0 0 0 .25 2v5c0 .966.784 1.75 1.75 1.75h3A1.75 1.75 0 0 0 6.75 7V2A1.75 1.75 0 0 0 5 .25zM1.75 2A.25.25 0 0 1 2 1.75h3a.25.25 0 0 1 .25.25v5a.25.25 0 0 1-.25.25H2A.25.25 0 0 1 1.75 7z",clipRule:"evenodd"}),r.jsx("path",{d:"M.25 11a.75.75 0 0 1 1.5 0v2c0 .69.56 1.25 1.25 1.25h18c.69 0 1.25-.56 1.25-1.25v-2a.75.75 0 0 1 1.5 0v2A2.75 2.75 0 0 1 21 15.75h-8.25v5.44l1.72-1.72a.75.75 0 0 1 1.06 1.06L12 24.06l-3.53-3.53a.75.75 0 1 1 1.06-1.06l1.72 1.72v-5.44H3A2.75 2.75 0 0 1 .25 13z"}),r.jsx("path",{fillRule:"evenodd",d:"M8.75 2c0-.966.784-1.75 1.75-1.75h3c.966 0 1.75.784 1.75 1.75v5a1.75 1.75 0 0 1-1.75 1.75h-3A1.75 1.75 0 0 1 8.75 7zm1.75-.25a.25.25 0 0 0-.25.25v5c0 .138.112.25.25.25h3a.25.25 0 0 0 .25-.25V2a.25.25 0 0 0-.25-.25zM19 .25A1.75 1.75 0 0 0 17.25 2v5c0 .966.784 1.75 1.75 1.75h3A1.75 1.75 0 0 0 23.75 7V2A1.75 1.75 0 0 0 22 .25zM18.75 2a.25.25 0 0 1 .25-.25h3a.25.25 0 0 1 .25.25v5a.25.25 0 0 1-.25.25h-3a.25.25 0 0 1-.25-.25z",clipRule:"evenodd"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"pages-insert-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),On=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{clipPath:"url(#pages-new-from-selection-alt-icon_svg__a)",children:[r.jsx("path",{d:"M15.53 4.53a.75.75 0 0 0 0-1.06L12-.06 8.47 3.47a.75.75 0 0 0 1.06 1.06l1.72-1.72V7a.75.75 0 0 0 1.5 0V2.81l1.72 1.72a.75.75 0 0 0 1.06 0"}),r.jsx("path",{fillRule:"evenodd",d:"M11 10.5A1.5 1.5 0 0 1 12.5 9h5a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 23 14.5v8a1.5 1.5 0 0 1-1.5 1.5h-9a1.5 1.5 0 0 1-1.5-1.5zm1.5 12v-12h5v3a1 1 0 0 0 1 1h3v8z",clipRule:"evenodd"}),r.jsx("path",{d:"M9 9H7.5A1.5 1.5 0 0 0 6 10.5v12A1.5 1.5 0 0 0 7.5 24H9v-1.5H7.5v-12H9zM3 9h1v1.5H3v12h1V24H3a1.5 1.5 0 0 1-1.5-1.5v-12A1.5 1.5 0 0 1 3 9"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"pages-new-from-selection-alt-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),jn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{clipPath:"url(#pages-new-from-selection-icon_svg__a)",children:[r.jsx("path",{d:"M.25 13a.75.75 0 0 0 1.5 0v-2c0-.69.56-1.25 1.25-1.25h18c.69 0 1.25.56 1.25 1.25v2a.75.75 0 0 0 1.5 0v-2A2.75 2.75 0 0 0 21 8.25h-8.25V2.81l1.72 1.72a.75.75 0 0 0 1.06-1.06L12-.06 8.47 3.47a.75.75 0 0 0 1.06 1.06l1.72-1.72v5.44H3A2.75 2.75 0 0 0 .25 11z"}),r.jsx("path",{fillRule:"evenodd",d:"M2 23.75A1.75 1.75 0 0 1 .25 22v-5c0-.966.784-1.75 1.75-1.75h3c.966 0 1.75.784 1.75 1.75v5A1.75 1.75 0 0 1 5 23.75zM1.75 22c0 .138.112.25.25.25h3a.25.25 0 0 0 .25-.25v-5a.25.25 0 0 0-.25-.25H2a.25.25 0 0 0-.25.25zm7 0c0 .966.784 1.75 1.75 1.75h3A1.75 1.75 0 0 0 15.25 22v-5a1.75 1.75 0 0 0-1.75-1.75h-3A1.75 1.75 0 0 0 8.75 17zm1.75.25a.25.25 0 0 1-.25-.25v-5a.25.25 0 0 1 .25-.25h3a.25.25 0 0 1 .25.25v5a.25.25 0 0 1-.25.25zm8.5 1.5A1.75 1.75 0 0 1 17.25 22v-5c0-.966.784-1.75 1.75-1.75h3c.966 0 1.75.784 1.75 1.75v5A1.75 1.75 0 0 1 22 23.75zM18.75 22c0 .138.112.25.25.25h3a.25.25 0 0 0 .25-.25v-5a.25.25 0 0 0-.25-.25h-3a.25.25 0 0 0-.25.25z",clipRule:"evenodd"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"pages-new-from-selection-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),Ln=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{clipPath:"url(#pages-select-all-icon_svg__a)",children:[r.jsx("path",{d:"M.5 4H2V2h2V.5H2A1.5 1.5 0 0 0 .5 2zm23 0H22V2h-2V.5h2A1.5 1.5 0 0 1 23.5 2zm0 3H22v3.5h1.5zm0 6.5H22V17h1.5zm0 6.5H22v2h-2v1.5h2a1.5 1.5 0 0 0 1.5-1.5zM.5 7H2v3.5H.5zm0 6.5H2V17H.5zm0 6.5H2v2h2v1.5H2A1.5 1.5 0 0 1 .5 22zM7 23.5V22h3.5v1.5zm6.5 0V22H17v1.5zM17 .5V2h-3.5V.5zm-6.5 0V2H7V.5z"}),r.jsx("path",{fillRule:"evenodd",d:"M4 5.5A1.5 1.5 0 0 1 5.5 4h4A1.5 1.5 0 0 1 11 5.5v4A1.5 1.5 0 0 1 9.5 11h-4A1.5 1.5 0 0 1 4 9.5zm1.5 0v4h4v-4zm-1.5 9A1.5 1.5 0 0 1 5.5 13h4a1.5 1.5 0 0 1 1.5 1.5v4A1.5 1.5 0 0 1 9.5 20h-4A1.5 1.5 0 0 1 4 18.5zm1.5 0v4h4v-4zm9-10.5A1.5 1.5 0 0 0 13 5.5v4a1.5 1.5 0 0 0 1.5 1.5h4A1.5 1.5 0 0 0 20 9.5v-4A1.5 1.5 0 0 0 18.5 4zm0 5.5v-4h4v4zm-1.5 5a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-1.5 1.5h-4a1.5 1.5 0 0 1-1.5-1.5zm1.5 0v4h4v-4z",clipRule:"evenodd"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"pages-select-all-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),Bn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#pages-select-none-icon_svg__a)",children:r.jsx("path",{d:"M.5 4H2V2h2V.5H2A1.5 1.5 0 0 0 .5 2zm23 0H22V2h-2V.5h2A1.5 1.5 0 0 1 23.5 2zm0 3H22v3.5h1.5zm0 6.5H22V17h1.5zm0 6.5H22v2h-2v1.5h2a1.5 1.5 0 0 0 1.5-1.5zM.5 7H2v3.5H.5zm0 6.5H2V17H.5zm0 6.5H2v2h2v1.5H2A1.5 1.5 0 0 1 .5 22zM7 23.5V22h3.5v1.5zm6.5 0V22H17v1.5zM17 .5V2h-3.5V.5zm-6.5 0V2H7V.5zm6.03 8.03a.75.75 0 0 0-1.06-1.06l-8 8a.75.75 0 1 0 1.06 1.06z"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"pages-select-none-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),Kn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M14.5 4.25h-5a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5"}),r.jsx("path",{fillRule:"evenodd",d:"M5 1.25h14c.966 0 1.75.784 1.75 1.75v18A1.75 1.75 0 0 1 19 22.75H5A1.75 1.75 0 0 1 3.25 21V3c0-.966.784-1.75 1.75-1.75m14 1.5H5a.25.25 0 0 0-.25.25v18c0 .138.112.25.25.25h14a.25.25 0 0 0 .25-.25V3a.25.25 0 0 0-.25-.25",clipRule:"evenodd"})]}),Vn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M10 1.75h12a.25.25 0 0 1 .25.25v16a.25.25 0 0 1-.25.25h-4v1.5h4A1.75 1.75 0 0 0 23.75 18V2A1.75 1.75 0 0 0 22 .25H10A1.75 1.75 0 0 0 8.25 2v1h1.5V2a.25.25 0 0 1 .25-.25"}),r.jsx("path",{d:"M14 3.25a.75.75 0 0 0 0 1.5h4a.75.75 0 0 0 0-1.5z"}),r.jsx("path",{fillRule:"evenodd",d:"M1.5 6A1.5 1.5 0 0 1 3 4.5h8a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 16.5 10v12a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 22zM3 22V6h8v3a1 1 0 0 0 1 1h3v12z",clipRule:"evenodd"})]}),Hn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9 5.25a.75.75 0 0 1 .75.75v12a.75.75 0 0 1-1.5 0V6A.75.75 0 0 1 9 5.25m6 0a.75.75 0 0 1 .75.75v12a.75.75 0 0 1-1.5 0V6a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})]}),$n=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M14.75 3.5a.75.75 0 0 0-1.085-.67l-4 2a.75.75 0 0 0-.415.67v2.75H9a.75.75 0 0 0-.75.75v2a7.25 7.25 0 0 1-2.9 5.8l-.8.6a.75.75 0 0 0-.3.6v4a.75.75 0 0 0 1.5 0v-3.625l.5-.375a8.75 8.75 0 0 0 3.5-7V9.75h4.5V11a8.75 8.75 0 0 0 3.5 7l.5.375V22a.75.75 0 0 0 1.5 0v-4a.75.75 0 0 0-.3-.6l-.8-.6a7.25 7.25 0 0 1-2.9-5.8V9a.75.75 0 0 0-.75-.75h-.25z"})]}),Un=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M13 4a1 1 0 1 0-2 0v2.25h-1a.75.75 0 0 0-.75.75v2.671c0 1.357-.957 2.577-2.157 3.8A6.4 6.4 0 0 0 5.25 18v3a.75.75 0 0 0 1.5 0v-3c0-1.386.536-2.586 1.413-3.479 1.175-1.196 2.587-2.816 2.587-4.85V7.75h2.5v1.921c0 2.035 1.412 3.654 2.587 4.85A4.9 4.9 0 0 1 17.25 18v3a.75.75 0 0 0 1.5 0v-3a6.4 6.4 0 0 0-1.843-4.53c-1.2-1.222-2.157-2.442-2.157-3.799V7a.75.75 0 0 0-.75-.75h-1z"})]}),Zn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M4.735 1.693A1.5 1.5 0 0 0 2.5 3v5.5H.75a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5H4V3l16 9-16 9v-6.33l1.002.89a.75.75 0 0 0 .996-1.12L3.25 11.995.502 14.44a.75.75 0 0 0 .996 1.122l1.002-.89V21a1.5 1.5 0 0 0 2.235 1.307l16-9a1.5 1.5 0 0 0 0-2.614z"})]}),qn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.25 6.5a6.25 6.25 0 1 1 7 6.206V22l-.75 1.75-.75-1.75v-9.294A6.25 6.25 0 0 1 5.25 6.5m6.25-3.25a.75.75 0 0 0 0 1.5c.966 0 1.75.784 1.75 1.75a.75.75 0 0 0 1.5 0 3.25 3.25 0 0 0-3.25-3.25",clipRule:"evenodd"})]}),Gn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M10.75 4a.75.75 0 0 1 .75-.75 3.25 3.25 0 0 1 3.25 3.25.75.75 0 0 1-1.5 0 1.75 1.75 0 0 0-1.75-1.75.75.75 0 0 1-.75-.75"}),r.jsx("path",{fillRule:"evenodd",d:"M5.25 6.5a6.25 6.25 0 1 1 7 6.206V22l-.75 1.75-.75-1.75v-9.294A6.25 6.25 0 0 1 5.25 6.5m6.25-4.75a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5",clipRule:"evenodd"})]}),Wn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m19.506 11.728-1.414 1.414a1 1 0 0 1-1.414 0l-.708-.707-8.308 8.309a3.75 3.75 0 0 1-2.122 1.06l-.247.036a3 3 0 0 0-1.697.848l-2.121-2.121a3 3 0 0 0 .848-1.697l.035-.248a3.75 3.75 0 0 1 1.061-2.121l8.309-8.309-.707-.707a1 1 0 0 1 0-1.414l1.414-1.414a1 1 0 0 1 1.414 0 1 1 0 0 0 1.415 0l2.12-2.122a3 3 0 0 1 4.244 4.243L19.506 8.9a1 1 0 0 0 0 1.415 1 1 0 0 1 0 1.414Zm-1.06-3.89a2.5 2.5 0 0 0-.319 3.147l-.742.743-4.95-4.95.743-.742a2.5 2.5 0 0 0 3.146-.319l2.122-2.12a1.5 1.5 0 1 1 2.12 2.12zM3.414 20.386l.364.364c.41-.196.848-.33 1.303-.394l.247-.036a2.25 2.25 0 0 0 1.273-.636l8.309-8.309-2.122-2.121-8.308 8.308a2.25 2.25 0 0 0-.637 1.273l-.035.248a4.5 4.5 0 0 1-.394 1.303",clipRule:"evenodd"})]}),Yn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 18.865 19.562 12 8 5.135zM6.5 4.257v15.486a1 1 0 0 0 1.51.86l13.042-7.743a1 1 0 0 0 0-1.72L8.01 3.397a1 1 0 0 0-1.511.86Z",clipRule:"evenodd"})]}),Xn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11m.75-16a.75.75 0 0 0-1.5 0v4.25H7a.75.75 0 0 0 0 1.5h4.25V17a.75.75 0 0 0 1.5 0v-4.25H17a.75.75 0 0 0 0-1.5h-4.25z",clipRule:"evenodd"})]}),Qn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 7a.75.75 0 0 0-1.5 0v4.25H7a.75.75 0 0 0 0 1.5h4.25V17a.75.75 0 0 0 1.5 0v-4.25H17a.75.75 0 0 0 0-1.5h-4.25z"}),r.jsx("path",{fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11m-1.5 0a9.5 9.5 0 1 1-19 0 9.5 9.5 0 0 1 19 0",clipRule:"evenodd"})]}),Jn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 4.25a.75.75 0 0 1 .75.75v6.25H19a.75.75 0 0 1 0 1.5h-6.25V19a.75.75 0 0 1-1.5 0v-6.25H5a.75.75 0 0 1 0-1.5h6.25V5a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})]}),er=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.168 3.91v.002l5.686 17.046.001.002a.586.586 0 0 0 1.111-.01v-.003l2.582-8.397 8.4-2.576a.583.583 0 0 0 .305-.898.6.6 0 0 0-.292-.217L3.907 3.171a.585.585 0 0 0-.739.74Zm8.23 17.484a2.083 2.083 0 0 1-3.965.043L1.746 4.387a2.085 2.085 0 0 1 2.638-2.638l17.05 5.687a2.087 2.087 0 0 1 1.01 3.23 2.1 2.1 0 0 1-1.06.743l-7.636 2.342z",clipRule:"evenodd"})]}),tr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.735 1.693A1.5 1.5 0 0 0 2.5 3v18a1.5 1.5 0 0 0 2.235 1.307l16-9a1.5 1.5 0 0 0 0-2.614zM20 12 4 21v-3.34l12.861-7.426zm-4.152-2.335L4 16.505v-3.464l8.81-5.086zm-4.052-2.28L4 11.887V8.423l4.757-2.747 3.04 1.71ZM4 7.268l3.744-2.162L4 3z",clipRule:"evenodd"})]}),nr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M21.79 11.552c-.08-.77-.42-1.51-.95-2.08-.53-.56-1.24-.95-2-1.08-.45-.08-.92-.06-1.36.03-.09-.27-.22-.54-.38-.78-.32-.5-.75-.91-1.25-1.19-.51-.3-1.08-.47-1.67-.49-.28-.01-.55.01-.82.06-.09-.26-.2-.52-.34-.76-.32-.48-.75-.9-1.26-1.19s-1.08-.46-1.67-.49c-.3-.02-.6.01-.9.07a3.54 3.54 0 0 0-1.9-2.06c-.62-.3-1.3-.4-1.97-.31-.66.09-1.29.36-1.81.78-.53.43-.92.99-1.14 1.63-.21.64-.25 1.33-.1 1.98.13.57.4 1.09.81 1.57-.17.2-.32.43-.45.66-.26.52-.4 1.1-.4 1.68s.14 1.16.42 1.71c.14.24.3.47.49.67-.19.21-.36.44-.5.7-.26.52-.4 1.1-.4 1.68s.14 1.16.41 1.7c.14.25.3.48.5.69-.22.24-.41.51-.56.81-.3.61-.43 1.29-.36 1.98.07.67.32 1.3.73 1.84s.97.96 1.6 1.2c.41.16.84.23 1.28.23.24 0 .48-.02.72-.07.65-.14 1.26-.45 1.75-.9.45-.42.78-.95.98-1.55.23.05.47.08.71.08h.17c.58-.03 1.15-.2 1.67-.5.51-.31.94-.74 1.24-1.24.14-.22.25-.46.34-.71.22.04.44.07.66.07h.16c.59-.03 1.16-.2 1.67-.49a3.7 3.7 0 0 0 1.62-1.96c.23.04.45.07.68.07.31 0 .63-.04.94-.12.84-.23 1.56-.75 2.05-1.47s.7-1.59.61-2.44zm-1.85 1.6c-.29.42-.72.73-1.2.86-.44.12-.9.09-1.33-.08s-.78-.46-1.03-.84a.747.747 0 0 0-1.04-.22c-.35.22-.45.69-.22 1.04.26.41.6.75 1 1.02-.06.2-.13.39-.25.56-.19.29-.44.53-.74.71-.3.17-.64.27-.98.29-.27.01-.54-.04-.8-.13-.03-.03-.06-.06-.1-.08 0 0-.02-.01-.03-.02-.38-.21-.71-.51-.93-.88a.748.748 0 0 0-1.29.76c.26.46.62.86 1.04 1.16-.06.19-.14.37-.25.55-.19.3-.45.56-.73.74-.3.17-.64.27-.98.29-.34.01-.68-.05-.99-.2-.25-.14-.48-.32-.67-.53a.746.746 0 0 0-1.06-.06c-.31.27-.34.75-.06 1.06.18.21.39.39.61.56v.04c-.11.39-.32.73-.61 1s-.66.46-1.04.54c-.39.08-.79.04-1.17-.1-.37-.14-.7-.38-.94-.7s-.39-.7-.43-1.09c-.04-.4.04-.8.21-1.15.18-.36.46-.65.8-.86s.73-.32 1.13-.32c.41 0 .75-.34.75-.75 0-.02-.01-.04-.01-.06v-.02c0-.41-.33-.74-.74-.75-.53 0-1.06.1-1.54.32-.13-.13-.24-.28-.33-.44-.16-.31-.24-.66-.24-1 0-.35.08-.69.22-.97.17-.3.4-.56.68-.75.05-.04.08-.08.12-.13.34-.18.7-.29 1.09-.3.41 0 .74-.35.73-.76 0-.41-.34-.74-.75-.74-.53 0-1.05.11-1.53.33-.13-.14-.25-.28-.33-.44a2.2 2.2 0 0 1-.24-1.01c0-.35.08-.69.24-.99.15-.29.37-.54.63-.74.25-.14.52-.25.8-.29a.76.76 0 0 0 .62-.86.76.76 0 0 0-.86-.62c-.31.05-.61.14-.89.26-.26-.28-.45-.62-.53-1-.09-.39-.07-.79.06-1.16s.36-.7.66-.95a2.14 2.14 0 0 1 2.22-.29c.36.16.66.42.89.76.22.32.34.7.35 1.11 0 .19-.01.37-.06.55-.02.09-.06.17-.09.25-.04.1-.07.21-.13.31a.752.752 0 1 0 1.3.76l.03-.06s.01 0 .01-.02c.02-.04.04-.09.06-.13.06-.12.11-.23.16-.35.13-.32.23-.65.26-1 .19-.04.38-.06.57-.05.35.02.69.12.99.29.3.18.56.42.73.69.17.29.27.62.29.95 0 .44-.1.87-.31 1.25-.2.36-.07.81.29 1.01s.81.08 1.02-.28c.26-.46.43-.96.48-1.48.19-.05.4-.07.6-.06.34.01.68.11.98.29.3.17.55.41.74.7.18.29.29.61.33.95 0 .3-.05.59-.13.87a.75.75 0 0 0 .72.97c.32 0 .62-.21.72-.53.08-.25.12-.5.16-.76.31-.09.63-.14.95-.08.45.08.86.31 1.17.63.31.33.5.76.55 1.21a2.1 2.1 0 0 1-.36 1.44z"})]}),rr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",d:"m6.72 4.59.73-1.3-2.713-1.53A1.5 1.5 0 0 0 2.5 3.068V6.06H4v-3zM11.07 7.04 8.46 5.57l.74-1.31 2.61 1.47zM20.747 10.765a1.5 1.5 0 0 1 .002 2.614l-2.84 1.601-.73-1.31 2.84-1.59-2.84-1.6.73-1.31zM16.17 15.96l-2.61 1.47-.74-1.31 2.61-1.47zM9.2 19.88l2.61-1.47-.74-1.31-2.61 1.47zM7.45 20.86l-2.713 1.53A1.5 1.5 0 0 1 2.5 21.082V18.06H4v3.02l2.72-1.53zM12.82 8.03l2.61 1.47.74-1.31-2.61-1.47zM4 16.06v-3H2.5v3zM4 8.06v3H2.5v-3z"})]}),or=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.243 1.705a1.5 1.5 0 0 1 1.492-.012l16 9a1.5 1.5 0 0 1 0 2.614l-16 9A1.5 1.5 0 0 1 2.5 21V3a1.5 1.5 0 0 1 .743-1.295M4 21l16-9L4 3z",clipRule:"evenodd"})]}),ir=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22.427 3.383a.75.75 0 0 1 .19 1.044l-7.62 11a.75.75 0 0 1-1.16.09l-4.126-4.333-7.094 10.243a.75.75 0 0 1-1.233-.854l7.619-11a.75.75 0 0 1 1.16-.09l4.126 4.333 7.095-10.243a.75.75 0 0 1 1.043-.19",clipRule:"evenodd"})]}),ar=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#precision-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M12.75 1a.75.75 0 0 0-1.5 0v.777a10.25 10.25 0 0 0-9.473 9.473H1a.75.75 0 0 0 0 1.5h.777a10.25 10.25 0 0 0 9.473 9.473V23a.75.75 0 0 0 1.5 0v-.777a10.25 10.25 0 0 0 9.473-9.473H23a.75.75 0 0 0 0-1.5h-.777a10.25 10.25 0 0 0-9.473-9.473zm-1.5 2.282V4a.75.75 0 0 0 1.5 0v-.718a8.75 8.75 0 0 1 7.968 7.968H20a.75.75 0 0 0 0 1.5h.718a8.75 8.75 0 0 1-7.968 7.968V20a.75.75 0 0 0-1.5 0v.718a8.75 8.75 0 0 1-7.968-7.968H4a.75.75 0 0 0 0-1.5h-.718a8.75 8.75 0 0 1 7.968-7.968M12 8.25a.75.75 0 0 1 .75.75v2.25H15a.75.75 0 0 1 0 1.5h-2.25V15a.75.75 0 0 1-1.5 0v-2.25H9a.75.75 0 0 1 0-1.5h2.25V9a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"precision-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),sr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M17.5 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0M10 15.25a.75.75 0 0 0 0 1.5h4a.75.75 0 0 0 0-1.5zm0 3a.75.75 0 0 0 0 1.5h4a.75.75 0 0 0 0-1.5z"}),r.jsx("path",{fillRule:"evenodd",d:"M7 1.75A1.75 1.75 0 0 0 5.25 3.5v1.75H3A2.75 2.75 0 0 0 .25 8v8A2.75 2.75 0 0 0 3 18.75h2.25V22c0 .966.784 1.75 1.75 1.75h10A1.75 1.75 0 0 0 18.75 22v-3.25H21A2.75 2.75 0 0 0 23.75 16V8A2.75 2.75 0 0 0 21 5.25h-2.25V3.5A1.75 1.75 0 0 0 17 1.75zm10.25 3.5V3.5a.25.25 0 0 0-.25-.25H7a.25.25 0 0 0-.25.25v1.75zm1.5 12H21c.69 0 1.25-.56 1.25-1.25V8c0-.69-.56-1.25-1.25-1.25H3c-.69 0-1.25.56-1.25 1.25v8c0 .69.56 1.25 1.25 1.25h2.25V13c0-.966.784-1.75 1.75-1.75h10c.966 0 1.75.784 1.75 1.75zM6.75 22c0 .138.112.25.25.25h10a.25.25 0 0 0 .25-.25v-9a.25.25 0 0 0-.25-.25H7a.25.25 0 0 0-.25.25z",clipRule:"evenodd"})]}),lr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.4 9.623A18 18 0 0 1 1.918 9a20.3 20.3 0 0 1 2.677-2.942C6.487 4.358 9.063 2.75 12 2.75s5.513 1.608 7.405 3.308a20.3 20.3 0 0 1 2.777 3.08q.098.136.146.207l.017.024.018.028.008.012.002.002a.75.75 0 0 0 1.254-.822L23 9c.627-.41.627-.412.627-.412l-.001-.002-.004-.005-.012-.018a7 7 0 0 0-.21-.302 21.8 21.8 0 0 0-2.992-3.319C18.403 3.142 15.48 1.25 12 1.25S5.596 3.142 3.592 4.942A21.8 21.8 0 0 0 .601 8.261a13 13 0 0 0-.21.302l-.013.018-.004.005-.001.003L.103 9l.27.41L1 9c-.627.41-.627.412-.627.412l.001.002.004.005.012.018a7 7 0 0 0 .21.302 21.8 21.8 0 0 0 2.992 3.319C5.597 14.858 8.52 16.75 12 16.75a.75.75 0 0 0 0-1.5c-2.937 0-5.513-1.608-7.405-3.308A20 20 0 0 1 2.4 9.622ZM.373 8.589 1 9z",clipRule:"evenodd"}),r.jsx("path",{d:"M14 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0"}),r.jsx("path",{fillRule:"evenodd",d:"M12 14a5 5 0 1 0 0-10 5 5 0 0 0 0 10m0-1.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m4.75 4.015A2 2 0 0 0 15 18.5V22a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-3.5a2 2 0 0 0-1.75-1.985V15a2.75 2.75 0 1 0-5.5 0zM22.5 18.5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0-.5.5V22a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5zm-4.25-2h2.5V15a1.25 1.25 0 1 0-2.5 0z",clipRule:"evenodd"})]}),cr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7 2.25a.75.75 0 0 0-.75.75v.558a2.75 2.75 0 0 0 1.88 2.61l.789.262a.25.25 0 0 1 .165.288l-.752 3.615A6.75 6.75 0 0 0 5.25 16c0 .414.336.75.75.75h5.25V22l.75 1.75.75-1.75v-5.25H18a.75.75 0 0 0 .75-.75 6.75 6.75 0 0 0-3.082-5.667l-.752-3.615a.25.25 0 0 1 .165-.288l.789-.263a2.75 2.75 0 0 0 1.88-2.609V3a.75.75 0 0 0-.75-.75zm10.197 13a5.253 5.253 0 0 0-7.821-3.798 5.25 5.25 0 0 0-2.573 3.798zM12 9.25a6.8 6.8 0 0 0-1.972.293l.525-2.519a1.75 1.75 0 0 0-1.16-2.017l-.788-.263a1.25 1.25 0 0 1-.84-.994h8.47a1.25 1.25 0 0 1-.84.994l-.788.263a1.75 1.75 0 0 0-1.16 2.017l.525 2.519A6.8 6.8 0 0 0 12 9.25",clipRule:"evenodd"})]}),ur=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 21.5a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19m0 1.5c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11m1.25-5.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M9.75 9a2.25 2.25 0 1 1 2.986 2.127c-.678.235-1.486.87-1.486 1.873v.5a.75.75 0 0 0 1.5 0V13c0-.056.02-.13.102-.219a.9.9 0 0 1 .375-.237A3.751 3.751 0 0 0 12 5.25 3.75 3.75 0 0 0 8.25 9a.75.75 0 0 0 1.5 0",clipRule:"evenodd"})]}),dr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M14 3.25a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5zM13.25 8a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75"}),r.jsx("path",{fillRule:"evenodd",d:"m4.964 9.75-1.293 2.585a.75.75 0 1 1-1.342-.67l4-8a.75.75 0 0 1 1.342 0l4 8a.75.75 0 1 1-1.342.67L9.036 9.75zm3.323-1.5H5.714L7 5.677z",clipRule:"evenodd"}),r.jsx("path",{d:"M13.25 12a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75M3 15.25a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5zM2.25 20a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75"})]}),pr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 4a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm1.5 3.554V4.5h5.553zm0 1.141v2.86L17.326 4.5h-5.198zM19.4 4.5 4.5 12.695v2.86l15-8.25V4.5zm.1 3.945-15 8.25V19.5h.099L19.5 11.304zm0 4L6.674 19.5h5.197l7.629-4.196zm0 4L13.946 19.5H19.5z",clipRule:"evenodd"})]}),hr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M19.143 1.25a3.74 3.74 0 0 0-2.381.86 3.74 3.74 0 0 0-2.38-.86c-.854 0-1.726.306-2.382.86a3.74 3.74 0 0 0-2.38-.86c-.854 0-1.726.306-2.382.86a3.74 3.74 0 0 0-2.38-.86c-2.034 0-3.608 1.574-3.608 3.607 0 .853.306 1.726.86 2.381a3.74 3.74 0 0 0-.86 2.381c0 .853.306 1.725.86 2.381a3.74 3.74 0 0 0-.86 2.38c0 .854.306 1.726.86 2.382a3.74 3.74 0 0 0-.86 2.38c0 2.034 1.574 3.608 3.607 3.608.853 0 1.726-.306 2.381-.86.656.554 1.528.86 2.381.86s1.726-.306 2.381-.86c.656.554 1.528.86 2.381.86s1.725-.306 2.38-.86c.657.554 1.529.86 2.382.86 2.033 0 3.607-1.574 3.607-3.607a3.74 3.74 0 0 0-.861-2.381c.555-.656.86-1.528.86-2.381s-.305-1.725-.86-2.381c.555-.656.86-1.528.86-2.38 0-.854-.305-1.726-.86-2.382.555-.655.86-1.528.86-2.38 0-2.034-1.573-3.608-3.606-3.608m-3.024 2.375c-.323-.508-1.013-.875-1.738-.875-.572 0-1.121.228-1.486.573.2.436.331.924.331 1.534a.75.75 0 0 1-1.5 0c0-.41-.139-.85-.368-1.232-.324-.508-1.013-.875-1.739-.875a2.2 2.2 0 0 0-1.486.573c.2.436.332.924.332 1.534a.75.75 0 1 1-1.5 0c0-.405-.136-.839-.36-1.218l-.003-.003c-.32-.514-1.015-.886-1.745-.886-1.205 0-2.107.902-2.107 2.107 0 .572.228 1.121.573 1.487.436-.2.924-.332 1.534-.332a.75.75 0 1 1 0 1.5c-.408 0-.845.138-1.227.366-.51.322-.88 1.013-.88 1.741 0 .572.228 1.121.573 1.487.436-.2.924-.332 1.534-.332a.75.75 0 0 1 0 1.5c-.408 0-.845.138-1.227.366-.51.322-.88 1.013-.88 1.74 0 .573.228 1.122.573 1.487.436-.2.924-.331 1.534-.331a.75.75 0 0 1 0 1.5c-.408 0-.845.138-1.227.365-.51.323-.88 1.014-.88 1.742 0 1.205.902 2.107 2.107 2.107a2.2 2.2 0 0 0 1.487-.573 3.56 3.56 0 0 1-.332-1.534.75.75 0 0 1 1.5 0c0 .405.136.839.36 1.219l.002.002c.321.514 1.015.886 1.745.886a2.2 2.2 0 0 0 1.487-.573 3.56 3.56 0 0 1-.332-1.534.75.75 0 1 1 1.5 0c0 .41.14.85.369 1.232.323.508 1.013.875 1.738.875a2.2 2.2 0 0 0 1.487-.573 3.56 3.56 0 0 1-.332-1.534.75.75 0 1 1 1.5 0c0 .41.14.85.369 1.232.323.508 1.012.875 1.738.875 1.205 0 2.107-.902 2.107-2.107 0-.572-.228-1.121-.574-1.487-.435.2-.923.332-1.533.332a.75.75 0 0 1 0-1.5c.407 0 .842-.137 1.223-.363.512-.322.884-1.015.884-1.744 0-.572-.228-1.121-.574-1.487-.435.2-.923.332-1.533.332a.75.75 0 0 1 0-1.5c.408 0 .845-.138 1.227-.366.51-.322.88-1.013.88-1.74 0-.573-.228-1.122-.574-1.488-.435.2-.923.332-1.533.332a.75.75 0 0 1 0-1.5c.41 0 .848-.138 1.23-.367.509-.324.877-1.014.877-1.74 0-1.205-.902-2.107-2.107-2.107a2.2 2.2 0 0 0-1.487.573c.2.436.332.924.332 1.534a.75.75 0 0 1-1.5 0c0-.41-.14-.85-.369-1.232",clipRule:"evenodd"})]}),fr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",d:"M21 6h-1.5V4.5H18V3h2a1 1 0 0 1 1 1zM3 18h1.5v1.5H6V21H4a1 1 0 0 1-1-1zM4.5 6H3V4a1 1 0 0 1 1-1h2v1.5H4.5zM21 18h-1.5v1.5H18V21h2a1 1 0 0 0 1-1zM8 4.5V3h3v1.5zM8 19.5V21h3v-1.5zM3 8h1.5v3H3zM21 8h-1.5v3H21zM13 4.5V3h3v1.5zM13 19.5V21h3v-1.5zM3 13h1.5v3H3zM21 13h-1.5v3H21z"})]}),mr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.5 4.5v15h15v-15zM4 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1z",clipRule:"evenodd"})]}),gr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3.53 1.47a.75.75 0 0 0-1.06 1.06L4.44 4.5 2.47 6.47a.75.75 0 0 0 1.06 1.06L5.5 5.56l1.97 1.97a.75.75 0 0 0 1.06-1.06L6.56 4.5l1.97-1.97a.75.75 0 0 0-1.06-1.06L5.5 3.44z"}),r.jsx("path",{fillRule:"evenodd",d:"M21.102 3.47a.75.75 0 0 1 0 1.06l-8.486 8.486a1.75 1.75 0 0 0 2.467 2.483l4.958-4.958a.75.75 0 0 1 1.06 1.06l-7.778 7.779a.75.75 0 0 1-.324.19L3.1 22.4a.75.75 0 0 1-.736-1.252L20.041 3.47a.75.75 0 0 1 1.06 0ZM5.47 20.16l5.208-5.209c.129.586.421 1.144.877 1.6a3.24 3.24 0 0 0 1.598.875l-.754.755-6.93 1.98Z",clipRule:"evenodd"})]}),vr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.75 1.25h-9.5v9.5h9.5zm-8 8v-6.5h6.5v6.5zm18.352-5.78a.75.75 0 0 1 0 1.06l-8.486 8.486a1.75 1.75 0 0 0 2.468 2.482l4.957-4.957a.75.75 0 0 1 1.06 1.06l-7.778 7.779a.75.75 0 0 1-.324.19L3.1 22.4a.75.75 0 0 1-.736-1.252L20.041 3.47a.75.75 0 0 1 1.06 0ZM5.47 20.16l5.209-5.209c.128.586.42 1.144.876 1.6a3.24 3.24 0 0 0 1.598.875l-.754.755-6.93 1.98Z",clipRule:"evenodd"})]}),yr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.75 1.25h-9.5V4a.75.75 0 0 0 1.5 0V2.75h2.5v6.5H4.5a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-.75v-6.5h2.5V4a.75.75 0 0 0 1.5 0zm10.352 2.22a.75.75 0 0 1 0 1.06l-8.486 8.486a1.75 1.75 0 0 0 2.468 2.482l4.957-4.957a.75.75 0 0 1 1.06 1.06l-4.95 4.95-.01.01-2.818 2.819a.75.75 0 0 1-.324.19L3.1 22.4a.75.75 0 0 1-.736-1.252L20.041 3.47a.75.75 0 0 1 1.06 0ZM5.47 20.16l5.209-5.209c.128.586.42 1.144.876 1.6a3.24 3.24 0 0 0 1.598.875l-.754.755-6.93 1.98Z",clipRule:"evenodd"})]}),br=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7 4a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1zM1 14a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1zm11.496-9.74h-1.222L9.01 10h1.205l.46-1.263h2.418L13.545 10h1.206zm-.615 1.132.852 2.337h-1.697zm6.845-1.132h-1.222L15.241 10h1.205l.46-1.263h2.418L19.775 10h1.206zm-.615 1.132.853 2.337h-1.698zm-.492 8.868h1.222L21.096 20H19.89l-.45-1.263h-2.42L16.561 20h-1.205zm1.46 3.469-.853-2.337-.845 2.337h1.697ZM12.61 14.26h-1.222L9.126 20h1.205l.46-1.263h2.418L13.66 20h1.206l-2.255-5.74Zm-.615 1.132.852 2.337H11.15zM5.159 14.26H6.38L8.636 20H7.43l-.45-1.263H4.56L4.1 20H2.897l2.263-5.74Zm1.46 3.469-.853-2.337-.845 2.337z",clipRule:"evenodd"})]}),wr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm10.726 1.26h-1.222L15.241 10h1.205l.46-1.263h2.418L19.775 10h1.206zm-.615 1.132.853 2.337h-1.698zM11.274 4.26h1.222L14.75 10h-1.206l-.45-1.263h-2.42L10.216 10H9.011zm1.46 3.469-.853-2.337-.845 2.337h1.697ZM2 13a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1z",clipRule:"evenodd"})]}),xr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17.47 3.47a.75.75 0 0 0 0 1.06l2.72 2.72H17a.75.75 0 0 0 0 1.5h3.19l-2.72 2.72a.75.75 0 1 0 1.06 1.06L23.06 8l-4.53-4.53a.75.75 0 0 0-1.06 0m-8 0a.75.75 0 0 0 0 1.06l2.72 2.72H10a6.75 6.75 0 0 0 0 13.5h2a.75.75 0 0 0 0-1.5h-2a5.25 5.25 0 1 1 0-10.5h2.19l-2.72 2.72a.75.75 0 1 0 1.06 1.06L15.06 8l-4.53-4.53a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),_r=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.47 3.47a.75.75 0 0 0 0 1.06l2.72 2.72H10a6.75 6.75 0 0 0 0 13.5h2a.75.75 0 0 0 0-1.5h-2a5.25 5.25 0 1 1 0-10.5h8.19l-2.72 2.72a.75.75 0 1 0 1.06 1.06L21.06 8l-4.53-4.53a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),Sr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M20.75 20.25V22A1.75 1.75 0 0 1 19 23.75H5A1.75 1.75 0 0 1 3.25 22V6.5a.75.75 0 0 1 .22-.53l5.5-5.5A.75.75 0 0 1 9.5.25H19c.966 0 1.75.784 1.75 1.75v1.75h1.75a.75.75 0 0 1 0 1.5h-1.75v3.5h1.75a.75.75 0 0 1 0 1.5h-1.75v3.5h1.75a.75.75 0 0 1 0 1.5h-1.75v3.5h1.75a.75.75 0 0 1 0 1.5zM19 1.75a.25.25 0 0 1 .25.25v1.75H17.5a.75.75 0 0 0 0 1.5h1.75v3.5H17.5a.75.75 0 0 0 0 1.5h1.75v3.5H17.5a.75.75 0 0 0 0 1.5h1.75v3.5H17.5a.75.75 0 0 0 0 1.5h1.75V22a.25.25 0 0 1-.25.25H5a.25.25 0 0 1-.25-.25V7.25H9.5a.75.75 0 0 0 .75-.75V1.75z",clipRule:"evenodd"})]}),Cr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M11.006 2.564a.75.75 0 0 1 .988-1.128l4 3.5a.75.75 0 0 1 0 1.128l-4 3.5a.75.75 0 0 1-.988-1.128l2.558-2.239a6.25 6.25 0 1 0 4.686 6.053.75.75 0 0 1 1.5 0 7.75 7.75 0 1 1-6.397-7.632z"})]}),Er=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.994 2.564a.75.75 0 0 0-.988-1.128l-4 3.5a.75.75 0 0 0 0 1.128l4 3.5a.75.75 0 0 0 .988-1.128l-2.558-2.239A6.25 6.25 0 1 1 5.75 12.25a.75.75 0 0 0-1.5 0 7.75 7.75 0 1 0 6.397-7.632z"})]}),kr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M19.25 9A4.25 4.25 0 0 0 15 4.75h-4a.75.75 0 0 1 0-1.5h4A5.75 5.75 0 0 1 20.75 9v3.19l1.72-1.72a.75.75 0 1 1 1.06 1.06L20 15.06l-3.53-3.53a.75.75 0 1 1 1.06-1.06l1.72 1.72z"}),r.jsx("path",{fillRule:"evenodd",d:"M4 9.25h9c.966 0 1.75.784 1.75 1.75v9A1.75 1.75 0 0 1 13 21.75H4A1.75 1.75 0 0 1 2.25 20v-9c0-.966.784-1.75 1.75-1.75m9 1.5H4a.25.25 0 0 0-.25.25v9c0 .138.112.25.25.25h9a.25.25 0 0 0 .25-.25v-9a.25.25 0 0 0-.25-.25",clipRule:"evenodd"})]}),zr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M4.75 9A4.25 4.25 0 0 1 9 4.75h4a.75.75 0 0 0 0-1.5H9A5.75 5.75 0 0 0 3.25 9v3.19l-1.72-1.72a.75.75 0 0 0-1.06 1.06L4 15.06l3.53-3.53a.75.75 0 1 0-1.06-1.06l-1.72 1.72z"}),r.jsx("path",{fillRule:"evenodd",d:"M20 9.25h-9A1.75 1.75 0 0 0 9.25 11v9c0 .966.784 1.75 1.75 1.75h9A1.75 1.75 0 0 0 21.75 20v-9A1.75 1.75 0 0 0 20 9.25m-9 1.5h9a.25.25 0 0 1 .25.25v9a.25.25 0 0 1-.25.25h-9a.25.25 0 0 1-.25-.25v-9a.25.25 0 0 1 .25-.25",clipRule:"evenodd"})]}),Pr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M23 6H1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1M1.5 16.5v-9h3.75V11a.75.75 0 0 0 1.5 0V7.5h1.5V13a.75.75 0 0 0 1.5 0V7.5h1.5V11a.75.75 0 0 0 1.5 0V7.5h1.5V13a.75.75 0 0 0 1.5 0V7.5h1.5V11a.75.75 0 0 0 1.5 0V7.5h3.75v9z",clipRule:"evenodd"})]}),Dr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#scale-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M7.25 1A.75.75 0 0 1 8 .25h15a.75.75 0 0 1 .75.75v15a.75.75 0 0 1-.75.75h-7.5a.75.75 0 0 1 0-1.5h6.75V1.75H8.75V9a.75.75 0 0 1-1.5 0zm-7 12a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5H1.75v8.5h8.5V18a.75.75 0 0 1 1.5 0v5a.75.75 0 0 1-.75.75H1A.75.75 0 0 1 .25 23zM12.5 4.75a.75.75 0 0 0 0 1.5h4.19L4.47 18.47a.75.75 0 1 0 1.06 1.06L17.75 7.31v4.19a.75.75 0 0 0 1.5 0V4.75z",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"scale-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),Ar=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.309 13.248a4 4 0 1 0-1.06 1.06l2.22 2.222a.75.75 0 1 0 1.061-1.06zM11 13.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5",clipRule:"evenodd"}),r.jsx("path",{fillRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m0-1.5a8.5 8.5 0 1 0 0-17 8.5 8.5 0 0 0 0 17",clipRule:"evenodd"})]}),Tr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.75 10.5a6.75 6.75 0 1 1 13.5 0 6.75 6.75 0 0 1-13.5 0m6.75-8.25a8.25 8.25 0 1 0 5.28 14.59l4.69 4.69a.75.75 0 0 0 1.06-1.06l-4.69-4.69A8.25 8.25 0 0 0 10.5 2.25",clipRule:"evenodd"})]}),Ir=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M5.75 8.5a.75.75 0 0 1 .75-.75H14a.75.75 0 0 1 0 1.5H6.5a.75.75 0 0 1-.75-.75m.75 2.25a.75.75 0 0 0 0 1.5H11a.75.75 0 0 0 0-1.5z"}),r.jsx("path",{fillRule:"evenodd",d:"M14.532 16.593a8 8 0 1 1 1.155-.967l5.843 5.844a.75.75 0 1 1-1.06 1.06zM16.5 10a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0",clipRule:"evenodd"})]}),Mr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3.25 5A2.75 2.75 0 0 1 6 2.25h9A2.75 2.75 0 0 1 17.75 5h-1.5c0-.69-.56-1.25-1.25-1.25H6c-.69 0-1.25.56-1.25 1.25v9c0 .69.56 1.25 1.25 1.25v1.5A2.75 2.75 0 0 1 3.25 14zm14.857 6.441a.75.75 0 0 0-1.213-.882l-3.422 4.705-1.386-1.732a.75.75 0 1 0-1.172.937l2 2.5a.75.75 0 0 0 1.193-.028z"}),r.jsx("path",{fillRule:"evenodd",d:"M7.25 9A2.75 2.75 0 0 1 10 6.25h9A2.75 2.75 0 0 1 21.75 9v9A2.75 2.75 0 0 1 19 20.75h-9A2.75 2.75 0 0 1 7.25 18zM10 7.75c-.69 0-1.25.56-1.25 1.25v9c0 .69.56 1.25 1.25 1.25h9c.69 0 1.25-.56 1.25-1.25V9c0-.69-.56-1.25-1.25-1.25z",clipRule:"evenodd"})]}),Rr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 4H.5V2A1.5 1.5 0 0 1 2 .5h2V2H2zm20 0h1.5V2A1.5 1.5 0 0 0 22 .5h-2V2h2zm0 3h1.5v3.5H22zm0 6.5h1.5V17H22zm0 6.5h1.5v2a1.5 1.5 0 0 1-1.5 1.5h-2V22h2zM2 7H.5v3.5H2zm0 6.5H.5V17H2zM2 20H.5v2A1.5 1.5 0 0 0 2 23.5h2V22H2zm5 2v1.5h3.5V22zm6.5 0v1.5H17V22zM17 2V.5h-3.5V2zm-6.5 0V.5H7V2z",clipRule:"evenodd"})]}),Fr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0m-1.5 0a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0",clipRule:"evenodd"}),r.jsx("path",{fillRule:"evenodd",d:"M11.32 1.25a1.75 1.75 0 0 0-1.716 1.407L9.203 4.66c-.01.053-.06.132-.171.178-.109.045-.196.025-.243-.006L7.088 3.699a1.75 1.75 0 0 0-2.208.219l-.962.962a1.75 1.75 0 0 0-.219 2.208l1.134 1.7c.031.048.051.135.006.244-.046.111-.125.16-.178.17l-2.004.402A1.75 1.75 0 0 0 1.25 11.32v1.36a1.75 1.75 0 0 0 1.407 1.716l2.004.401c.053.01.132.06.178.171.045.109.025.196-.006.243l-1.134 1.701a1.75 1.75 0 0 0 .219 2.208l.962.962a1.75 1.75 0 0 0 2.208.219l1.7-1.134c.048-.031.135-.051.244-.006.112.046.16.125.171.178l.4 2.004a1.75 1.75 0 0 0 1.717 1.407h1.36a1.75 1.75 0 0 0 1.716-1.407l.401-2.004c.01-.053.06-.132.171-.178.109-.045.196-.025.243.006l1.701 1.134a1.75 1.75 0 0 0 2.208-.219l.962-.962a1.75 1.75 0 0 0 .219-2.208l-1.134-1.7c-.031-.048-.051-.135-.006-.244.046-.111.125-.16.178-.17l2.004-.402a1.75 1.75 0 0 0 1.407-1.716v-1.36a1.75 1.75 0 0 0-1.407-1.716l-2.004-.401c-.053-.01-.131-.06-.178-.171-.045-.109-.025-.196.006-.243l1.134-1.701a1.75 1.75 0 0 0-.219-2.208l-.962-.962a1.75 1.75 0 0 0-2.208-.219l-1.7 1.134c-.048.031-.135.051-.244.006-.111-.046-.16-.125-.17-.178l-.402-2.004A1.75 1.75 0 0 0 12.68 1.25zm-.245 1.701a.25.25 0 0 1 .245-.201h1.36a.25.25 0 0 1 .245.201l.401 2.004c.122.608.558 1.058 1.067 1.27a1.76 1.76 0 0 0 1.65-.144l1.701-1.134a.25.25 0 0 1 .316.031l.962.962a.25.25 0 0 1 .03.316l-1.133 1.7a1.76 1.76 0 0 0-.143 1.65c.211.51.661.946 1.269 1.068l2.004.4a.25.25 0 0 1 .201.246v1.36a.25.25 0 0 1-.201.245l-2.004.401c-.608.122-1.058.558-1.27 1.067a1.76 1.76 0 0 0 .144 1.65l1.134 1.701a.25.25 0 0 1-.031.316l-.962.962a.25.25 0 0 1-.316.03l-1.7-1.133a1.76 1.76 0 0 0-1.65-.143c-.51.211-.946.661-1.068 1.269l-.4 2.004a.25.25 0 0 1-.246.201h-1.36a.25.25 0 0 1-.245-.201l-.401-2.004c-.122-.608-.558-1.058-1.067-1.27a1.76 1.76 0 0 0-1.65.144l-1.701 1.134a.25.25 0 0 1-.316-.031l-.962-.962a.25.25 0 0 1-.03-.316l1.133-1.7a1.76 1.76 0 0 0 .144-1.65c-.212-.51-.662-.946-1.27-1.068l-2.004-.4a.25.25 0 0 1-.201-.246v-1.36a.25.25 0 0 1 .201-.245l2.004-.401c.608-.122 1.058-.558 1.27-1.067a1.76 1.76 0 0 0-.144-1.65L4.947 6.256a.25.25 0 0 1 .031-.316l.962-.962a.25.25 0 0 1 .316-.03l1.7 1.133a1.76 1.76 0 0 0 1.65.143c.51-.211.946-.661 1.068-1.269z",clipRule:"evenodd"})]}),Nr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.75 9a6.25 6.25 0 0 1 12.456-.75H10A1.75 1.75 0 0 0 8.25 10v5.206A6.25 6.25 0 0 1 2.75 9m5.5 7.714a7.751 7.751 0 1 1 8.464-8.464H21c.966 0 1.75.784 1.75 1.75v11A1.75 1.75 0 0 1 21 22.75H10A1.75 1.75 0 0 1 8.25 21zM9.75 10a.25.25 0 0 1 .25-.25h11a.25.25 0 0 1 .25.25v11a.25.25 0 0 1-.25.25H10a.25.25 0 0 1-.25-.25z",clipRule:"evenodd"})]}),Or=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m12 .94 3.53 3.53a.75.75 0 0 1-1.06 1.06l-1.72-1.72V14a.75.75 0 0 1-1.5 0V3.81L9.53 5.53a.75.75 0 0 1-1.06-1.06zM6 8.75c-.69 0-1.25.56-1.25 1.25v10c0 .69.56 1.25 1.25 1.25h12c.69 0 1.25-.56 1.25-1.25V10c0-.69-.56-1.25-1.25-1.25h-3v-1.5h3A2.75 2.75 0 0 1 20.75 10v10A2.75 2.75 0 0 1 18 22.75H6A2.75 2.75 0 0 1 3.25 20V10A2.75 2.75 0 0 1 6 7.25h3v1.5z",clipRule:"evenodd"})]}),jr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.5 7.5a3 3 0 1 0-2.892-2.198L7.641 9.9a3 3 0 1 0 0 4.202l7.967 4.597A3.004 3.004 0 0 0 18.5 22.5a3 3 0 1 0-2.141-5.101l-7.967-4.597a3 3 0 0 0 0-1.604L16.359 6.6a3 3 0 0 0 2.141.9m1.5-3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M7 12a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m13 7.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0",clipRule:"evenodd"})]}),Lr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 8a.75.75 0 0 0-1.5 0v3.25H8a.75.75 0 0 0 0 1.5h3.25V16a.75.75 0 0 0 1.5 0v-3.25H16a.75.75 0 0 0 0-1.5h-3.25z"}),r.jsx("path",{fillRule:"evenodd",d:"m12.45 1.4.006.004.028.021.123.086c.11.076.276.187.492.32.431.268 1.06.628 1.84.988C16.505 3.542 18.645 4.25 21 4.25a.75.75 0 0 1 .75.75v5.201a12.75 12.75 0 0 1-7.572 11.652l-1.873.832a.75.75 0 0 1-.61 0l-1.873-.832A12.75 12.75 0 0 1 2.25 10.2V5A.75.75 0 0 1 3 4.25c2.355 0 4.495-.708 6.06-1.431.78-.36 1.41-.72 1.841-.987a13 13 0 0 0 .615-.407l.028-.02.006-.005a.75.75 0 0 1 .9 0m-.758 1.706q.173-.107.308-.196a19 19 0 0 0 2.31 1.27c1.524.704 3.6 1.419 5.94 1.549v4.472a11.25 11.25 0 0 1-6.68 10.28L12 21.18l-1.57-.697a11.25 11.25 0 0 1-6.68-10.28V5.728c2.34-.13 4.416-.845 5.94-1.548.844-.39 1.528-.78 2.002-1.075Z",clipRule:"evenodd"})]}),Br=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M16.53 10.53a.75.75 0 0 0-1.06-1.06L11 13.94l-1.97-1.97a.75.75 0 1 0-1.06 1.06l2.382 2.382a.917.917 0 0 0 1.296 0z"}),r.jsx("path",{fillRule:"evenodd",d:"m12.45 1.4.006.004.028.021.123.086c.11.076.276.187.492.32.431.268 1.06.628 1.84.988C16.505 3.542 18.645 4.25 21 4.25a.75.75 0 0 1 .75.75v5.201a12.75 12.75 0 0 1-7.572 11.652l-1.873.832a.75.75 0 0 1-.61 0l-1.873-.832A12.75 12.75 0 0 1 2.25 10.2V5A.75.75 0 0 1 3 4.25c2.355 0 4.495-.708 6.06-1.431.78-.36 1.41-.72 1.841-.987a13 13 0 0 0 .615-.407l.028-.02.006-.005a.75.75 0 0 1 .9 0m-.758 1.706q.173-.107.308-.196a19 19 0 0 0 2.31 1.27c1.524.704 3.6 1.419 5.94 1.549v4.472a11.25 11.25 0 0 1-6.68 10.28L12 21.18l-1.57-.697a11.25 11.25 0 0 1-6.68-10.28V5.728c2.34-.13 4.416-.845 5.94-1.548.844-.39 1.528-.78 2.002-1.075Z",clipRule:"evenodd"})]}),Kr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M13.25 15.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M12.75 7a.75.75 0 0 0-1.5 0v5a.75.75 0 0 0 1.5 0z"}),r.jsx("path",{fillRule:"evenodd",d:"M12.45 1.4a.75.75 0 0 0-.9 0l-.006.004-.028.021a13 13 0 0 1-.614.406 17 17 0 0 1-1.841.988C7.495 3.542 5.355 4.25 3 4.25a.75.75 0 0 0-.75.75v5.201a12.75 12.75 0 0 0 7.572 11.652l1.873.832a.75.75 0 0 0 .61 0l1.873-.832A12.75 12.75 0 0 0 21.75 10.2V5a.75.75 0 0 0-.75-.75c-2.355 0-4.495-.708-6.06-1.431a17 17 0 0 1-1.841-.987 13 13 0 0 1-.615-.407l-.028-.02zM12 2.91a19 19 0 0 1-2.31 1.27c-1.525.705-3.6 1.42-5.94 1.55v4.472a11.25 11.25 0 0 0 6.68 10.28l1.57.698 1.57-.697a11.25 11.25 0 0 0 6.68-10.28V5.728c-2.34-.13-4.416-.845-5.94-1.548A19 19 0 0 1 12 2.91",clipRule:"evenodd"})]}),Vr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.359 9.702a.75.75 0 1 0-1.06-1.06L12 10.938 9.702 8.641a.75.75 0 0 0-1.06 1.06L10.938 12 8.64 14.298a.75.75 0 1 0 1.06 1.06l2.3-2.296 2.298 2.298a.75.75 0 0 0 1.06-1.06L13.062 12z"}),r.jsx("path",{fillRule:"evenodd",d:"m12.45 1.4.006.004.028.021.123.086c.11.076.276.187.492.32.431.268 1.06.628 1.84.988C16.505 3.542 18.645 4.25 21 4.25a.75.75 0 0 1 .75.75v5.201a12.75 12.75 0 0 1-7.572 11.652l-1.873.832a.75.75 0 0 1-.61 0l-1.873-.832A12.75 12.75 0 0 1 2.25 10.2V5A.75.75 0 0 1 3 4.25c2.355 0 4.495-.708 6.06-1.431.78-.36 1.41-.72 1.841-.987a13 13 0 0 0 .615-.407l.028-.02.006-.005a.75.75 0 0 1 .9 0m-.758 1.706q.173-.107.308-.196a19 19 0 0 0 2.31 1.27c1.524.704 3.6 1.419 5.94 1.549v4.472a11.25 11.25 0 0 1-6.68 10.28L12 21.18l-1.57-.697a11.25 11.25 0 0 1-6.68-10.28V5.728c2.34-.13 4.416-.845 5.94-1.548.844-.39 1.528-.78 2.002-1.075Z",clipRule:"evenodd"})]}),Hr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0"}),r.jsx("path",{fillRule:"evenodd",d:"M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10m0-1.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7",clipRule:"evenodd"}),r.jsx("path",{fillRule:"evenodd",d:"m23.627 11.589.27.411-.27.41L23 12c.627.41.627.412.627.412l-.001.002-.004.005-.012.018-.044.066q-.058.083-.167.236a21.8 21.8 0 0 1-2.992 3.319c-2.003 1.8-4.927 3.692-8.407 3.692s-6.404-1.892-8.408-3.692a21.8 21.8 0 0 1-2.991-3.319 13 13 0 0 1-.21-.302l-.013-.018-.004-.005-.001-.003L1 12c-.627-.41-.627-.412-.627-.412l.001-.002.004-.005.012-.018.044-.066q.058-.083.167-.236a21.8 21.8 0 0 1 2.992-3.319C5.596 6.142 8.52 4.25 12 4.25s6.404 1.892 8.407 3.692a21.8 21.8 0 0 1 2.992 3.319 13 13 0 0 1 .21.302l.013.018.004.005zM2.4 12.623A18 18 0 0 1 1.918 12a20.3 20.3 0 0 1 2.677-2.942C6.487 7.358 9.063 5.75 12 5.75s5.513 1.608 7.405 3.308A20.3 20.3 0 0 1 22.082 12a20.3 20.3 0 0 1-2.677 2.942c-1.892 1.7-4.468 3.308-7.405 3.308s-5.513-1.608-7.405-3.308a20 20 0 0 1-2.195-2.32ZM23 12l.627-.411z",clipRule:"evenodd"}),r.jsx("path",{d:"M.373 12.41.103 12l.27-.41L1 12z"})]}),$r=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.345 11.595a.75.75 0 0 0 0 1.5h13.19l-2.72 2.72a.75.75 0 0 0 1.06 1.06l4.53-4.53-4.53-4.53a.75.75 0 0 0-1.06 1.06l2.72 2.72z"}),r.jsx("path",{d:"M7.345 4.095a.75.75 0 0 0 0-1.5h-3a2.75 2.75 0 0 0-2.75 2.75v14a2.75 2.75 0 0 0 2.75 2.75h3a.75.75 0 0 0 0-1.5h-3c-.69 0-1.25-.56-1.25-1.25v-14c0-.69.56-1.25 1.25-1.25z"})]}),Ur=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M16.322 10.322A.75.75 0 0 0 15.26 9.26l-4.72 4.72-2.26-2.262a.75.75 0 1 0-1.06 1.06l3.32 3.323 5.78-5.78Z"}),r.jsx("path",{fillRule:"evenodd",d:"M13.217 1.134a1.75 1.75 0 0 0-2.434 0L9.111 2.752a.25.25 0 0 1-.21.068l-2.304-.326a1.75 1.75 0 0 0-1.968 1.43l-.403 2.292a.25.25 0 0 1-.129.178l-2.056 1.09A1.75 1.75 0 0 0 1.29 9.8l1.023 2.091a.25.25 0 0 1 0 .22L1.289 14.2a1.75 1.75 0 0 0 .752 2.315l2.056 1.09a.25.25 0 0 1 .13.179l.402 2.292a1.75 1.75 0 0 0 1.968 1.43l2.305-.326a.25.25 0 0 1 .209.068l1.672 1.618a1.75 1.75 0 0 0 2.434 0l1.672-1.618a.25.25 0 0 1 .21-.068l2.304.326a1.75 1.75 0 0 0 1.969-1.43l.402-2.292a.25.25 0 0 1 .129-.178l2.056-1.09a1.75 1.75 0 0 0 .752-2.315l-1.022-2.091a.25.25 0 0 1 0-.22L22.71 9.8a1.75 1.75 0 0 0-.752-2.315l-2.056-1.09a.25.25 0 0 1-.13-.179l-.401-2.292a1.75 1.75 0 0 0-1.97-1.43l-2.304.326a.25.25 0 0 1-.209-.068zm-1.39 1.078a.25.25 0 0 1 .347 0l1.673 1.618c.388.375.927.55 1.461.475l2.305-.326a.25.25 0 0 1 .281.204l.402 2.293c.094.531.427.99.904 1.243l2.056 1.09a.25.25 0 0 1 .107.332l-1.022 2.09a1.75 1.75 0 0 0 0 1.537l1.022 2.091a.25.25 0 0 1-.107.331L19.2 16.28a1.75 1.75 0 0 0-.904 1.244l-.402 2.293a.25.25 0 0 1-.281.204l-2.305-.326a1.75 1.75 0 0 0-1.461.475l-1.673 1.618a.25.25 0 0 1-.348 0l-1.673-1.618a1.75 1.75 0 0 0-1.461-.475l-2.305.326a.25.25 0 0 1-.281-.204l-.402-2.293a1.75 1.75 0 0 0-.904-1.243l-2.056-1.09a.25.25 0 0 1-.107-.332l1.022-2.09a1.75 1.75 0 0 0 0-1.537L2.637 9.14a.25.25 0 0 1 .107-.331L4.8 7.72a1.75 1.75 0 0 0 .904-1.244l.402-2.293a.25.25 0 0 1 .281-.204l2.305.326a1.75 1.75 0 0 0 1.461-.475z",clipRule:"evenodd"})]}),Zr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.965 4.668C5.773 5.785 3.587 7.128 2.488 8.07a.75.75 0 1 1-.976-1.14C2.747 5.873 5.06 4.466 7.285 3.333a34 34 0 0 1 3.213-1.455c.942-.359 1.85-.627 2.502-.627.888 0 1.43.64 1.724 1.306.296.668.446 1.553.505 2.523.032.501.04 1.043.026 1.613a17 17 0 0 1 1.982-.894.8.8 0 0 1 .263-.048c.307 0 .52.16.634.28.11.116.176.244.217.334.082.184.14.404.186.604.064.289.126.655.188 1.022q.037.225.076.442c.079.444.163.867.264 1.22.834-1.237 1.904-3.237 2.193-5.258a.75.75 0 1 1 1.485.212c-.428 2.993-2.288 5.82-3.167 6.874a.75.75 0 0 1-.911.19c-.3-.149-.5-.396-.635-.614a3.6 3.6 0 0 1-.327-.733c-.168-.502-.285-1.097-.38-1.63l-.085-.501q-.067-.406-.13-.726c-.656.283-1.311.62-1.952 1a43 43 0 0 1-1.295 7.285H22.5a.75.75 0 0 1 0 1.499h-9.079c-.218.682-.45 1.325-.693 1.912-.4.966-.845 1.817-1.332 2.44-.463.592-1.096 1.148-1.896 1.148-.94 0-1.523-.714-1.854-1.378-.346-.693-.555-1.584-.67-2.467a14 14 0 0 1-.112-1.655H2a.75.75 0 0 1 0-1.5h4.934c.07-.61.193-1.18.395-1.585.81-1.618 2.26-3.32 3.997-4.798a22 22 0 0 1 2.39-1.776c.053-.883.06-1.703.016-2.42-.056-.905-.191-1.582-.38-2.008-.184-.416-.322-.413-.35-.413H13c-.348 0-1.024.17-1.967.529a33 33 0 0 0-3.068 1.39Zm.399 12.582c.005.48.038.98.1 1.463.104.806.285 1.51.524 1.99.254.51.451.547.512.547.075 0 .32-.069.714-.571.367-.47.752-1.182 1.128-2.091.172-.415.34-.864.5-1.338zm3.941-1.5H8.446c.06-.438.143-.75.225-.915.69-1.382 1.99-2.93 3.628-4.327q.597-.509 1.24-.977a41 41 0 0 1-.35 2.337 41 41 0 0 1-.884 3.882m4.676-8.774.002.004z",clipRule:"evenodd"}),r.jsx("path",{d:"M1.97 9.97a.75.75 0 0 1 1.06 0l.97.97.97-.97a.75.75 0 0 1 1.06 1.06l-.97.97.97.97a.75.75 0 1 1-1.06 1.06L4 13.06l-.97.97a.75.75 0 0 1-1.06-1.06l.97-.97-.97-.97a.75.75 0 0 1 0-1.06"})]}),qr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.763 3.177c1.102-1.103 2.987-.322 2.987 1.237v15.172c0 1.559-1.885 2.34-2.987 1.237l-5.5-5.5a.25.25 0 0 0-.177-.073H2A1.75 1.75 0 0 1 .25 13.5V10c0-.966.784-1.75 1.75-1.75h3.586a.25.25 0 0 0 .177-.073zm1.487 1.237a.25.25 0 0 0-.427-.177l-5 5a1.75 1.75 0 0 1-1.237.513H2a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.086c.464 0 .909.184 1.237.513l5.5 5.5a.25.25 0 0 0 .427-.177z",clipRule:"evenodd"}),r.jsx("path",{d:"M15.712 8.227a.75.75 0 0 1 1.06 0 5.75 5.75 0 0 1 0 8.132.75.75 0 1 1-1.06-1.06 4.25 4.25 0 0 0 0-6.011.75.75 0 0 1 0-1.061"}),r.jsx("path",{d:"M20.03 5.47a.75.75 0 1 0-1.06 1.06 8.25 8.25 0 0 1 0 11.668.75.75 0 0 0 1.06 1.06c3.808-3.807 3.808-9.98 0-13.788"})]}),Gr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 1.25A4.75 4.75 0 0 0 7.25 6v6a4.75 4.75 0 1 0 9.5 0V6A4.75 4.75 0 0 0 12 1.25M8.75 6a3.25 3.25 0 0 1 6.5 0v6a3.25 3.25 0 0 1-6.5 0z",clipRule:"evenodd"}),r.jsx("path",{d:"M5.75 9a.75.75 0 0 0-1.5 0v3a7.75 7.75 0 0 0 7 7.714v2.536H8.5a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-2.75v-2.536a7.75 7.75 0 0 0 7-7.714V9a.75.75 0 0 0-1.5 0v3a6.25 6.25 0 1 1-12.5 0z"})]}),Wr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 4.5v15h15v-15zM4 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1z",clipRule:"evenodd"})]}),Yr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7 6.25a.75.75 0 0 0 0 1.5h4.25V18a.75.75 0 0 0 1.5 0V7.75H17a.75.75 0 0 0 0-1.5zm1.088 15.216c.457-.61 1.37-.606 1.812-.016 1.05 1.4 3.15 1.4 4.2 0 .443-.59 1.355-.593 1.812.016 1.035 1.38 3.119 1.446 4.21.082l.464-.58a.75.75 0 0 0-1.172-.936l-.463.579c-.465.58-1.379.569-1.839-.045-1.042-1.39-3.155-1.426-4.212-.016-.45.6-1.35.6-1.8 0-1.057-1.41-3.17-1.374-4.212.016-.46.614-1.374.626-1.839.045l-.463-.58a.75.75 0 1 0-1.172.938l.464.579c1.091 1.364 3.175 1.298 4.21-.082"})]}),Xr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.75 1A4.749 4.749 0 0 0 9 9.62V15H4.767a2.75 2.75 0 0 0-2.75 2.704L2 18.738a.75.75 0 0 0 .75.762h18a.75.75 0 0 0 .75-.75v-1A2.75 2.75 0 0 0 18.75 15H14.5V9.62A4.749 4.749 0 0 0 11.75 1M8.5 5.75a3.25 3.25 0 0 1 3.25-3.25 3.249 3.249 0 0 1 1.626 6.06.75.75 0 0 0-.376.65v6.54c0 .414.336.75.75.75h5c.69 0 1.25.56 1.25 1.25V18H3.513l.004-.27a1.25 1.25 0 0 1 1.25-1.23H9.75a.75.75 0 0 0 .75-.75V9.21a.75.75 0 0 0-.376-.65A3.23 3.23 0 0 1 8.5 5.75",clipRule:"evenodd"}),r.jsx("path",{d:"M2.75 21a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5z"})]}),Qr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 .75a.75.75 0 0 1 .692.462l2.734 6.572 7.095.57a.75.75 0 0 1 .428 1.316l-5.406 4.631 1.652 6.924a.75.75 0 0 1-1.12.814L12 18.33l-6.075 3.71a.75.75 0 0 1-1.12-.814l1.651-6.924-5.406-4.63a.75.75 0 0 1 .428-1.318l7.096-.569 2.733-6.572A.75.75 0 0 1 12 .75m0 2.703-2.217 5.33a.75.75 0 0 1-.633.46l-5.755.461L7.78 13.46a.75.75 0 0 1 .242.744l-1.34 5.615 4.927-3.01a.75.75 0 0 1 .782 0l4.926 3.01-1.34-5.615a.75.75 0 0 1 .243-.744l4.384-3.756-5.755-.461a.75.75 0 0 1-.632-.46z",clipRule:"evenodd"})]}),Jr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 11V6.13L1.2 12l8.8 5.87V13h14v-2zm-2 3.13L4.8 12 8 9.87z",clipRule:"evenodd"})]}),eo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m8.45 7.17 1.11 1.66L6.31 11h17.7v2H6.3l3.25 2.17-1.11 1.66L1.2 12z",clipRule:"evenodd"})]}),to=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 6.131 9.303 11H24v2H9.333L2 18.5zm5.27 5.917L4 9.868V14.5z",clipRule:"evenodd"})]}),no=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.35 11H24v2H7.35l-4.726 3.78-1.249-1.56L5.399 12 1.375 8.78l1.25-1.56z",clipRule:"evenodd"})]}),ro=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6m-5 3a5 5 0 0 1 9.9-1H24v2H11.9A5.002 5.002 0 0 1 2 12",clipRule:"evenodd"})]}),oo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7 6.586 11.414 11H24v2H11.414L7 17.414 1.586 12zM9.586 12 7 9.414 4.414 12 7 14.586z",clipRule:"evenodd"})]}),io=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M0 11h24v2H0z",clipRule:"evenodd"})]}),ao=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m5.618 11 1.276-2.553-1.789-.894-4 8 1.79.894L4.617 13H24v-2z",clipRule:"evenodd"})]}),so=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.5 7.5h9V11H24v2H11.5v3.5h-9zm2 2v5h5v-5z",clipRule:"evenodd"})]}),lo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 16V8h2v3h20v2H4v3z",clipRule:"evenodd"})]}),co=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.25 7A.75.75 0 0 1 7 6.25h10a.75.75 0 0 1 0 1.5h-4.25v2h-1.5v-2H7A.75.75 0 0 1 6.25 7m5 11v-3.75h1.5V18a.75.75 0 0 1-1.5 0M5 11.25a.75.75 0 0 0 0 1.5h14a.75.75 0 0 0 0-1.5z"})]}),uo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"m18.59 14.99 3.02-3.01h-.01a2.76 2.76 0 0 0 0-3.89l-.53-.53-3.36 3.36c-.3.28-.76.3-1.06 0s-.29-.77 0-1.06c1.24-1.24 1.51-2.89 1.33-4.22-.12-.93-.6-1.77-1.26-2.43L14.17.66a.76.76 0 0 0-.74-.18.7.7 0 0 0-.52.55v.04c-.02.03-.03.08-.03.14-.046.11-.091.277-.145.473l-.015.057c-.13.46-.35 1.1-.65 1.82-.43 1.05-1.03 2.26-1.83 3.34-.28.38-.22.93.12 1.27l6.82 6.82c.39.39 1.02.39 1.41 0"}),r.jsx("path",{fillRule:"evenodd",d:"m8.35 8.27 8.84 8.84c.39.39.39 1.02 0 1.41l-.53.53c-.68.69-1.78.69-2.47 0l-1.96-1.96c-.12-.1-.3-.09-.39.04L8.8 21.68c-1.25 1.9-3.94 2.17-5.56.56s-1.36-4.31.54-5.56l4.56-3.05c.13-.09.15-.28.04-.39l-1.97-1.95c-.68-.69-.68-1.81 0-2.49l.53-.53a.996.996 0 0 1 1.41 0m-3.19 10.6a.996.996 0 0 0 0 1.41c.39.4 1.02.38 1.41 0s.38-1.02 0-1.41-1.02-.38-1.41 0",clipRule:"evenodd"})]}),po=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.58 18.877a1 1 0 1 0-1.414 1.414 1 1 0 0 0 1.414-1.414"}),r.jsx("path",{fillRule:"evenodd",d:"M7.465 7.74a1.75 1.75 0 0 1 2.262-.182c1.055-1.231 1.823-2.722 2.347-3.992a20 20 0 0 0 .8-2.355q.025-.092.036-.139l.01-.042a.75.75 0 0 1 1.263-.36l4.93 4.931.02.018 1.414 1.415.018.018 1.042 1.043a2.75 2.75 0 0 1 0 3.889l-3.724 3.724a1.75 1.75 0 0 1-.164 2.286l-1.06 1.06a1.75 1.75 0 0 1-2.476 0l-1.965-1.965a.25.25 0 0 0-.385.038l-3.039 4.558a3.62 3.62 0 1 1-5.019-5.02l4.558-3.038a.25.25 0 0 0 .038-.385l-1.966-1.966a1.75 1.75 0 0 1 0-2.475l1.061-1.06Zm6.553-5.113 3.89 3.89.01.089c.02.193.032.476-.01.813-.084.667-.375 1.566-1.251 2.442a.75.75 0 0 0 1.06 1.06l2.298-2.297.53.53a1.25 1.25 0 0 1 0 1.768l-3.711 3.712-6.03-6.03C12.04 7.187 12.9 5.5 13.462 4.138c.232-.565.416-1.08.557-1.51Zm2.64 13.952-.328-.328-.027-.026-7.071-7.07-.026-.028L8.88 8.8a.25.25 0 0 0-.353 0L7.465 9.861a.25.25 0 0 0 0 .354l1.966 1.966a1.75 1.75 0 0 1-.267 2.693l-4.558 3.039a2.12 2.12 0 1 0 2.939 2.939l3.039-4.558a1.75 1.75 0 0 1 2.693-.267l1.966 1.966a.25.25 0 0 0 .354 0l1.06-1.06a.25.25 0 0 0 0-.354Z",clipRule:"evenodd"})]}),ho=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.013 2.747c.093 2.94.689 9.343 2.195 11.063a.6.6 0 0 0 .463.19h6.657a.6.6 0 0 0 .464-.19c1.505-1.72 2.101-8.122 2.194-11.063A.73.73 0 0 0 17.25 2H6.75a.73.73 0 0 0-.737.747M9 16h6l-2.064 5.503c-.324.865-1.548.865-1.872 0z"})]}),fo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.75 2a.75.75 0 0 0-1.5 0c0 1.225.116 3.704.402 6.128.143 1.213.33 2.428.571 3.472.235 1.018.54 1.97.964 2.587.292.424.755.563 1.124.563h5.378c.37 0 .832-.14 1.124-.563.423-.617.729-1.57.963-2.587.241-1.044.429-2.259.572-3.472.286-2.424.402-4.903.402-6.128a.75.75 0 0 0-1.5 0c0 1.164-.112 3.584-.392 5.953-.14 1.183-.32 2.339-.543 3.31-.213.925-.45 1.602-.682 1.987H9.367c-.233-.385-.47-1.062-.683-1.987-.224-.971-.404-2.127-.543-3.31-.28-2.37-.392-4.79-.392-5.953Z"}),r.jsx("path",{fillRule:"evenodd",d:"M9.5 15.25a.75.75 0 0 0-.716.974l1.546 4.945c.511 1.638 2.829 1.638 3.34 0l1.546-4.945a.75.75 0 0 0-.716-.974zm2.261 5.472-1.24-3.972h2.959l-1.241 3.972a.25.25 0 0 1-.478 0",clipRule:"evenodd"})]}),mo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 3.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5zm3 5a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zM2.25 14.5a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75M6 18.75a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),go=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 3.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5zm0 5a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5zm-.75 5.75a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75M3 18.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),vo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 3.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5zm0 5a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zm-.75 5.75a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75M3 18.75a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),yo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 3.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5zm6 5a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zM2.25 14.5a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75M9 18.75a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),bo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M18.75 3a.75.75 0 0 0-1.5 0v2.25H15a.75.75 0 0 0 0 1.5h2.25V9a.75.75 0 0 0 1.5 0V6.75H21a.75.75 0 0 0 0-1.5h-2.25z"}),r.jsx("path",{fillRule:"evenodd",d:"M9.18 4.684a.75.75 0 0 0-1.36 0l-6.5 14a.75.75 0 1 0 1.36.632l2.342-5.044h6.956l2.342 5.044a.75.75 0 0 0 1.36-.632zM8.5 6.781l2.782 5.99H5.719L8.5 6.782Z",clipRule:"evenodd"})]}),wo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsxs("g",{clipPath:"url(#text-callout-icon_svg__a)",children:[r.jsx("path",{d:"M11 4.25a.75.75 0 0 0 0 1.5h2.25V11a.75.75 0 0 0 1.5 0V5.75H17a.75.75 0 0 0 0-1.5z"}),r.jsx("path",{fillRule:"evenodd",d:"M9 .25A4.75 4.75 0 0 0 4.25 5v6A4.75 4.75 0 0 0 9 15.75h10A4.75 4.75 0 0 0 23.75 11V5A4.75 4.75 0 0 0 19 .25zM5.75 5A3.25 3.25 0 0 1 9 1.75h10A3.25 3.25 0 0 1 22.25 5v6A3.25 3.25 0 0 1 19 14.25H9A3.25 3.25 0 0 1 5.75 11z",clipRule:"evenodd"}),r.jsx("path",{d:"M13.25 19.365V17h1.5v3a.75.75 0 0 1-.626.74L3.953 22.435a2 2 0 1 1-.247-1.48z"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"text-callout-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),xo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4 3.25a.75.75 0 0 0 0 1.5h4.25V15a.75.75 0 0 0 1.5 0V4.75H14a.75.75 0 0 0 0-1.5zM8 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1h-9.75v7A2.25 2.25 0 0 1 8 17.016z",clipRule:"evenodd"})]}),_o=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.25 7A.75.75 0 0 1 7 6.25h10a.75.75 0 0 1 0 1.5h-4.25V18a.75.75 0 0 1-1.5 0V7.75H7A.75.75 0 0 1 6.25 7",clipRule:"evenodd"})]}),So=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6 13.75h.25V19a.75.75 0 0 0 1.5 0V5.75h2.265V19a.75.75 0 0 0 1.5 0V5.75H14a.75.75 0 0 0 0-1.5H6a4.75 4.75 0 0 0 0 9.5m0-8a3.25 3.25 0 1 0 0 6.5h.25v-6.5z",clipRule:"evenodd"}),r.jsx("path",{d:"M15.53 9.47a.75.75 0 1 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l3-3a.75.75 0 1 0-1.06-1.06L18 11.94z"})]}),Co=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6 13.75h.25V19a.75.75 0 0 0 1.5 0V5.75h2.265V19a.75.75 0 0 0 1.5 0V5.75H14a.75.75 0 0 0 0-1.5H6a4.75 4.75 0 0 0 0 9.5m0-8a3.25 3.25 0 1 0 0 6.5h.25v-6.5z",clipRule:"evenodd"}),r.jsx("path",{d:"M15.53 13.53a.75.75 0 1 1-1.06-1.06l3-3a.75.75 0 0 1 1.06 0l3 3a.75.75 0 1 1-1.06 1.06L18 11.06z"})]}),Eo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.25 5A.75.75 0 0 1 5 4.25h14a.75.75 0 0 1 .75.75v2.727a.75.75 0 0 1-1.5 0V5.75h-5.5v13.5h2.05a.75.75 0 0 1 0 1.5H9.2a.75.75 0 0 1 0-1.5h2.05V5.75h-5.5v1.977a.75.75 0 1 1-1.5 0z",clipRule:"evenodd"})]}),ko=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15 5.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5zM9.184 8.692a.75.75 0 0 0-1.368 0l-4.5 10a.75.75 0 1 0 1.368.616l1.562-3.471h4.508l1.562 3.47a.75.75 0 0 0 1.368-.615zM8.5 10.828l1.58 3.509H6.92z",clipRule:"evenodd"})]}),zo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5 4.25a.75.75 0 0 0-.75.75v5c0 .414.336.75.75.75h5a.75.75 0 0 0 .75-.75V5a.75.75 0 0 0-.75-.75zm.75 5v-3.5h3.5v3.5zm-.75 4a.75.75 0 0 0-.75.75v5c0 .414.336.75.75.75h5a.75.75 0 0 0 .75-.75v-5a.75.75 0 0 0-.75-.75zm.75 5v-3.5h3.5v3.5zm7.5-4.25a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-.75.75h-5a.75.75 0 0 1-.75-.75zm1.5.75v3.5h3.5v-3.5zM14 4.25a.75.75 0 0 0-.75.75v5c0 .414.336.75.75.75h5a.75.75 0 0 0 .75-.75V5a.75.75 0 0 0-.75-.75zm.75 5v-3.5h3.5v3.5z",clipRule:"evenodd"})]}),Po=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M21.26 8.978c.1.09.19.19.27.29.5.66.61 1.57.29 2.33-.11.26-.26.49-.45.68.37.5.48 1.11.4 1.66-.17 1.15-1.1 1.96-2.27 1.96h-3.25a.3.3 0 0 0-.29.15.34.34 0 0 0-.03.34l1.56 3.79c.35 1.11-.26 2.33-1.36 2.7-1.02.36-2.15-.1-2.64-1.06-1.5-2.99-2.92-4.72-4.05-6.11-.07-.09-.14-.17-.21-.26-.02 0-.03.01-.05.01H6.45c-1.2 0-2.15-.8-2.77-1.83-.62-1.04-.98-2.43-.98-3.92s.36-2.89.98-3.92 1.57-1.82 2.76-1.83h3s.04.01.06.01c1.17-.96 2.71-1.57 4.61-1.57h2.99c2.37 0 3.55 1.38 3.64 2.66.02.27-.01.53-.08.76.18.12.34.28.48.46.51.66.63 1.58.31 2.35-.05.13-.12.25-.19.36zM6.45 5.458c-.46 0-1.01.32-1.48 1.1-.46.77-.77 1.88-.77 3.15s.31 2.38.77 3.15c.47.78 1.02 1.1 1.48 1.1H8.1c-.78-1.15-1.27-2.36-1.27-4.2 0-1.49.45-3.02 1.32-4.3zm13.89 4.73c-.15-.2-.38-.28-.67-.24a.753.753 0 0 1-.84-.65v-.1c0-.37.28-.69.66-.74.3-.04.5-.18.59-.41.11-.28.07-.63-.11-.86-.15-.19-.36-.26-.66-.22-.4.07-.79-.23-.85-.64s.23-.79.64-.85c.14-.02.16-.18.15-.32-.04-.51-.63-1.26-2.14-1.26h-2.99c-3.76 0-5.79 3.02-5.79 5.86 0 2.22.86 3.27 2.28 5 1.19 1.45 2.66 3.25 4.23 6.39a.66.66 0 0 0 .81.32c.34-.12.53-.49.44-.77l-1.54-3.73c-.24-.58-.17-1.23.17-1.74s.92-.82 1.54-.82h3.25c.5 0 .73-.36.78-.67.03-.19.03-.65-.57-.83a.75.75 0 0 1-.53-.78c.03-.35.3-.64.65-.68.3-.04.5-.17.6-.4.11-.27.07-.62-.11-.85z"})]}),Do=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M20.56 15.022c.1-.09.19-.19.27-.29.5-.66.61-1.57.29-2.33-.11-.26-.26-.49-.45-.68.37-.5.48-1.11.4-1.66-.17-1.15-1.1-1.96-2.27-1.96h-3.25a.3.3 0 0 1-.29-.15.34.34 0 0 1-.03-.34l1.56-3.79c.35-1.11-.26-2.33-1.36-2.7-1.02-.36-2.15.1-2.64 1.06-1.5 2.99-2.92 4.72-4.05 6.11-.07.09-.14.17-.21.26-.02 0-.03-.01-.05-.01H5.75c-1.2 0-2.15.8-2.77 1.83-.62 1.04-.98 2.43-.98 3.92s.36 2.89.98 3.92 1.57 1.82 2.76 1.83h3s.04-.01.06-.01c1.17.96 2.71 1.57 4.61 1.57h2.99c2.37 0 3.55-1.38 3.64-2.66.02-.27-.01-.53-.08-.76.18-.12.34-.28.48-.46.51-.66.63-1.58.31-2.35-.05-.13-.12-.25-.19-.36zm-14.81 3.52c-.46 0-1.01-.32-1.48-1.1-.46-.77-.77-1.88-.77-3.15s.31-2.38.77-3.15c.47-.78 1.02-1.1 1.48-1.1H7.4c-.78 1.15-1.27 2.36-1.27 4.2 0 1.49.45 3.02 1.32 4.3zm13.89-4.73c-.15.2-.38.28-.67.24a.753.753 0 0 0-.84.65v.1c0 .37.28.69.66.74.3.04.5.18.59.41.11.28.07.63-.11.86-.15.19-.36.26-.66.22-.4-.07-.79.23-.85.64s.23.79.64.85c.14.02.16.18.15.32-.04.51-.63 1.26-2.14 1.26h-2.99c-3.76 0-5.79-3.02-5.79-5.86 0-2.22.86-3.27 2.28-5 1.19-1.45 2.66-3.25 4.23-6.39a.66.66 0 0 1 .81-.32c.34.12.53.49.44.77l-1.54 3.73c-.24.58-.17 1.23.17 1.74s.92.82 1.54.82h3.25c.5 0 .73.36.78.67.03.19.03.65-.57.83-.34.1-.56.43-.53.78s.3.64.65.68c.3.04.5.17.6.4.11.27.07.62-.11.85z"})]}),Ao=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.75 4a2.25 2.25 0 0 1 4.5 0v.25h-4.5zm6 0a3.75 3.75 0 1 0-7.5 0v.25H3a.75.75 0 0 0 0 1.5h1.25V20A2.75 2.75 0 0 0 7 22.75h10A2.75 2.75 0 0 0 19.75 20V5.75H21a.75.75 0 0 0 0-1.5h-5.25zm-10 16V5.75h12.5V20c0 .69-.56 1.25-1.25 1.25H7c-.69 0-1.25-.56-1.25-1.25m7-11a.75.75 0 0 0-1.5 0v9a.75.75 0 0 0 1.5 0zM8.5 8.25a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75m7.75.75a.75.75 0 0 0-1.5 0v9a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"})]}),To=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M19.75 3a.75.75 0 0 0-1.5 0v18a.75.75 0 0 0 1.5 0zM5 6.25a.75.75 0 0 0 0 1.5h4.25V18a.75.75 0 0 0 1.5 0V7.75H15a.75.75 0 0 0 0-1.5z"})]}),Io=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.75 7a.75.75 0 0 0-1.5 0v7a4.75 4.75 0 1 0 9.5 0V7a.75.75 0 0 0-1.5 0v7a3.25 3.25 0 0 1-6.5 0zM5 20.25a.75.75 0 0 0 0 1.5h14a.75.75 0 0 0 0-1.5z"})]}),Mo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7 6.25a.75.75 0 0 0 0 1.5h4.25V18a.75.75 0 0 0 1.5 0V7.75H17a.75.75 0 0 0 0-1.5zm-2 14a.75.75 0 0 0 0 1.5h14a.75.75 0 0 0 0-1.5z"})]}),Ro=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.53 3.47a.75.75 0 0 1 0 1.06L3.81 7.25H7a.75.75 0 1 1 0 1.5H3.81l2.72 2.72a.75.75 0 1 1-1.06 1.06L.94 8l4.53-4.53a.75.75 0 0 1 1.06 0m8 0a.75.75 0 0 1 0 1.06l-2.72 2.72H14a6.75 6.75 0 0 1 0 13.5h-2a.75.75 0 0 1 0-1.5h2a5.25 5.25 0 1 0 0-10.5h-2.19l2.72 2.72a.75.75 0 1 1-1.06 1.06L8.94 8l4.53-4.53a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),Fo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.53 3.47a.75.75 0 0 1 0 1.06L5.81 7.25H14a6.75 6.75 0 0 1 0 13.5h-2a.75.75 0 0 1 0-1.5h2a5.25 5.25 0 1 0 0-10.5H5.81l2.72 2.72a.75.75 0 1 1-1.06 1.06L2.94 8l4.53-4.53a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),No=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#undo-redo-icon_svg__a)",children:r.jsx("path",{d:"M5.78 1.53A.75.75 0 1 0 4.72.47L.94 4.25l3.78 3.78a.75.75 0 0 0 1.06-1.06L3.81 5h6.315a4.125 4.125 0 1 1 0 8.25H8.5a.75.75 0 0 0 0 1.5h1.625a5.625 5.625 0 0 0 0-11.25H3.811zm13.69 14a.75.75 0 1 1 1.06-1.06L23.06 17l-2.53 2.53a.75.75 0 1 1-1.06-1.06l.72-.72H17a2.25 2.25 0 1 0 0 4.5h1a.75.75 0 0 1 0 1.5h-1a3.75 3.75 0 1 1 0-7.5h3.19z"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"undo-redo-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),Oo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13 3.25a.75.75 0 0 0-.75.75v7c0 .414.336.75.75.75h7a.75.75 0 0 0 .75-.75V4a.75.75 0 0 0-.75-.75zm.75 7v-5.5h5.5v5.5zm-9.75 2a.75.75 0 0 0-.75.75v7c0 .414.336.75.75.75h7a.75.75 0 0 0 .75-.75v-7a.75.75 0 0 0-.75-.75zm.75 7v-5.5h5.5v5.5z",clipRule:"evenodd"})]}),jo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 15.8a1.5 1.5 0 1 0-1.5 0V18a.75.75 0 0 0 1.5 0z"}),r.jsx("path",{fillRule:"evenodd",d:"M12 .25A4.75 4.75 0 0 0 7.25 5v.5a.75.75 0 0 0 1.5 0V5a3.25 3.25 0 0 1 6.5 0v4H6a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3h-1.25V5A4.75 4.75 0 0 0 12 .25M4.5 12A1.5 1.5 0 0 1 6 10.5h12a1.5 1.5 0 0 1 1.5 1.5v8a1.5 1.5 0 0 1-1.5 1.5H6A1.5 1.5 0 0 1 4.5 20z",clipRule:"evenodd"})]}),Lo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M11.25 18a.75.75 0 0 0 1.5 0V4.81l2.72 2.72a.75.75 0 1 0 1.06-1.06L12 1.94 7.47 6.47a.75.75 0 0 0 1.06 1.06l2.72-2.72z"}),r.jsx("path",{d:"M3.75 17a.75.75 0 0 0-1.5 0v3A2.75 2.75 0 0 0 5 22.75h14A2.75 2.75 0 0 0 21.75 20v-3a.75.75 0 0 0-1.5 0v3c0 .69-.56 1.25-1.25 1.25H5c-.69 0-1.25-.56-1.25-1.25z"})]}),Bo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.25 8.5a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0m6.78 4.289a5.25 5.25 0 1 0-6.058 0A8.75 8.75 0 0 0 3.249 21a.75.75 0 0 0 1.5 0 7.25 7.25 0 1 1 14.5 0 .75.75 0 0 0 1.5 0 8.75 8.75 0 0 0-5.72-8.211Z",clipRule:"evenodd"})]}),Ko=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#vertical-scroll-icon_svg__a)",children:r.jsx("path",{d:"m12-.06.528.528h-1.056L12-.061Zm.528.528-1.06.004L8.47 3.47a.75.75 0 0 0 1.06 1.06l1.72-1.72V7a.75.75 0 0 0 1.5 0V2.81l1.72 1.72a.75.75 0 1 0 1.06-1.06zm-1.06 23.06L8.47 20.53a.75.75 0 1 1 1.06-1.06l1.72 1.72V17a.75.75 0 0 1 1.5 0v4.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-2.998 2.998-.004.004-.528.529-.528-.529zM12 13.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"vertical-scroll-icon_svg__a",children:r.jsx("path",{d:"M0 0h24v24H0z"})})})]}),Vo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.25 12.433a.5.5 0 0 0 0-.866l-4.5-2.598a.5.5 0 0 0-.75.433v5.196a.5.5 0 0 0 .75.433z"}),r.jsx("path",{fillRule:"evenodd",d:"M1 6a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2zm2-.5h18a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5",clipRule:"evenodd"})]}),Ho=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M20.5 12a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0m1.5 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10M11.25 7a.75.75 0 0 1 1.5 0v5.75H8a.75.75 0 0 1 0-1.5h3.25z",clipRule:"evenodd"})]}),$o=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13.5 3.043a1.75 1.75 0 0 0-3 0L.266 20.1c-.7 1.166.14 2.65 1.5 2.65h20.468c1.36 0 2.2-1.484 1.5-2.65L13.502 3.043ZM12.75 9a.75.75 0 0 0-1.5 0v5a.75.75 0 0 0 1.5 0zm.5 8.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0",clipRule:"evenodd"})]}),Uo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12 8.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75m0 10.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5"}),r.jsx("path",{fillRule:"evenodd",d:"M10.5 3.043a1.75 1.75 0 0 1 3 0L23.736 20.1c.7 1.166-.14 2.65-1.501 2.65H1.766c-1.36 0-2.2-1.484-1.5-2.65zm1.715.772a.25.25 0 0 0-.43 0L1.553 20.871a.25.25 0 0 0 .214.379h20.468a.25.25 0 0 0 .214-.379z",clipRule:"evenodd"})]}),Zo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.136 7.607a.75.75 0 0 0-.772 1.286l2.5 1.5a.75.75 0 0 0 .772-1.286zm12.5 1.286a.75.75 0 1 0-.772-1.286l-2.5 1.5a.75.75 0 0 0 .772 1.286zm-7.5 1.714a.75.75 0 1 0-.772 1.286l.178.107-.178.107a.75.75 0 1 0 .772 1.286l.864-.518.864.518a.75.75 0 0 0 .772-1.286L13.458 12l.178-.107a.75.75 0 1 0-.772-1.286l-.864.518zm-2.5 4.286a.75.75 0 1 0-.772-1.286l-2.5 1.5a.75.75 0 1 0 .772 1.286zm7.5-1.286a.75.75 0 1 0-.772 1.286l2.5 1.5a.75.75 0 0 0 .772-1.286z"}),r.jsx("path",{fillRule:"evenodd",d:"M2 4.5A1.5 1.5 0 0 0 .5 6v12A1.5 1.5 0 0 0 2 19.5h20a1.5 1.5 0 0 0 1.5-1.5V6A1.5 1.5 0 0 0 22 4.5zm0 2.375v10.25l.864-.518a.75.75 0 1 1 .772 1.286L3.458 18h17.084l-.178-.107a.75.75 0 1 1 .772-1.286l.864.518V6.875l-.864.518a.75.75 0 1 1-.772-1.286L20.542 6H3.458l.178.107a.75.75 0 1 1-.772 1.286z",clipRule:"evenodd"})]}),qo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11M9.03 7.97a.75.75 0 0 0-1.06 1.06L10.94 12l-2.97 2.97a.75.75 0 1 0 1.06 1.06L12 13.06l2.97 2.97a.75.75 0 1 0 1.06-1.06L13.06 12l2.97-2.97a.75.75 0 0 0-1.06-1.06L12 10.94z",clipRule:"evenodd"})]}),Go=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M9.03 7.97a.75.75 0 0 0-1.06 1.06L10.94 12l-2.97 2.97a.75.75 0 1 0 1.06 1.06L12 13.06l2.97 2.97a.75.75 0 1 0 1.06-1.06L13.06 12l2.97-2.97a.75.75 0 0 0-1.06-1.06L12 10.94z"}),r.jsx("path",{fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11m-1.5 0a9.5 9.5 0 1 1-19 0 9.5 9.5 0 0 1 19 0",clipRule:"evenodd"})]}),Wo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.105 18.894a.75.75 0 0 1 0-1.06L10.94 12 5.105 6.166a.75.75 0 0 1 1.061-1.06L12 10.939l5.833-5.833a.75.75 0 0 1 1.061 1.06L13.06 12l5.834 5.834a.75.75 0 0 1-1.06 1.06L12 13.061l-5.834 5.833a.75.75 0 0 1-1.06 0Z",clipRule:"evenodd"})]}),Yo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.5 10c0 2.077-.745 3.98-1.983 5.457l.013.013 5 5a.75.75 0 0 1-1.06 1.06l-5-5-.013-.013A8.5 8.5 0 1 1 18.5 10M10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14m.75-10a.75.75 0 0 0-1.5 0v2.25H7a.75.75 0 0 0 0 1.5h2.25V13a.75.75 0 0 0 1.5 0v-2.25H13a.75.75 0 0 0 0-1.5h-2.25z",clipRule:"evenodd"})]}),Xo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.5 10c0 2.077-.745 3.98-1.983 5.457l.013.013 5 5a.75.75 0 0 1-1.06 1.06l-5-5-.013-.013A8.5 8.5 0 1 1 18.5 10M10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14M7 9.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]});t.fMw=_,t.BNd=j,t.QUb=L,t.KML=H,t.YAN=de,t.mc$=lt,t.nXP=qt,t.fpf=Hn,t.o1U=Yn,t.hYA=ur,t.Pnb=Er,t.W1M=Tr,t.VL1=_o},23652:(e,t,n)=>{"use strict";var r=n(85893),o=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.53 2.47a.75.75 0 0 0-1.06 0L4 3.94 2.53 2.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l2-2a.75.75 0 0 0 0-1.06",clipRule:"evenodd"})]}),i=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M1 8V0l6 4z"})]}),a=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",d:"M1 8V0l6 4z"})]}),s=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#close-icon_svg__a)",children:r.jsx("path",{fillRule:"evenodd",d:"M.288 7.712a.75.75 0 0 1 0-1.06L2.939 4 .288 1.348a.75.75 0 1 1 1.06-1.06L4 2.939 6.652.288a.75.75 0 0 1 1.06 1.06L5.061 4l2.651 2.652a.75.75 0 1 1-1.06 1.06L4 5.061 1.348 7.712a.75.75 0 0 1-1.06 0",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"close-icon_svg__a",children:r.jsx("path",{d:"M0 0h8v8H0z"})})})]}),l=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 6.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5M4 8a4 4 0 1 0 0-8 4 4 0 0 0 0 8",clipRule:"evenodd"})]}),c=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.75 4a.75.75 0 0 1-.75.75H1a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75",clipRule:"evenodd"})]}),u=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 .25a.75.75 0 0 1 .75.75v2.25H7a.75.75 0 0 1 0 1.5H4.75V7a.75.75 0 0 1-1.5 0V4.75H1a.75.75 0 0 1 0-1.5h2.25V1A.75.75 0 0 1 4 .25",clipRule:"evenodd"})]}),d=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("g",{clipPath:"url(#x-icon_svg__a)",children:r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M.288 7.712a.75.75 0 0 1 0-1.06L2.94 4 .288 1.348a.75.75 0 1 1 1.06-1.06L4 2.939 6.652.288a.75.75 0 0 1 1.06 1.06L5.062 4l2.652 2.652a.75.75 0 0 1-1.061 1.06L4 5.061 1.35 7.712a.75.75 0 0 1-1.061 0",clipRule:"evenodd"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"x-icon_svg__a",children:r.jsx("path",{fill:"transparent",d:"M0 0h8v8H0z"})})})]});t.v4=o,t.XC=a,t.V_=c,t.pO=u,t.b0=d},3953:(e,t,n)=>{"use strict";n.d(t,{BL:()=>Fr,VY:()=>so,j$:()=>Vo,Pl:()=>fo,HS:()=>Ho,lQ:()=>jr,AM:()=>wr,t7:()=>$r,v1:()=>wr,$H:()=>br,ZF:()=>wr,Sq:()=>Ur,m3:()=>wr});var r=n(67294),o=n(67185),i=n(8840),a=n(56479),s=n(72810);function l(e,t,n){const{children:r,...o}=t;return r?(0,s.j)(e,{...o,key:n},...Array.isArray(r)?r:[r]):(0,s.j)(e,{...o,key:n})}var c=l,u=r.Fragment,d=n(64352),p=n(85816),h=n(85893),f=n(45688),m=n(83034),g=I(),v=e=>P(e,g),y=I();v.write=e=>P(e,y);var b=I();v.onStart=e=>P(e,b);var w=I();v.onFrame=e=>P(e,w);var x=I();v.onFinish=e=>P(e,x);var _=[];v.setTimeout=(e,t)=>{const n=v.now()+t,r=()=>{const e=_.findIndex((e=>e.cancel==r));~e&&_.splice(e,1),k-=~e?1:0},o={time:n,handler:e,cancel:r};return _.splice(S(n),0,o),k+=1,D(),o};var S=e=>~(~_.findIndex((t=>t.time>e))||~_.length);v.cancel=e=>{b.delete(e),w.delete(e),x.delete(e),g.delete(e),y.delete(e)},v.sync=e=>{z=!0,v.batchedUpdates(e),z=!1},v.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,v.onStart(n)}return r.handler=e,r.cancel=()=>{b.delete(n),t=null},r};var C="undefined"!=typeof window?window.requestAnimationFrame:()=>{};v.use=e=>C=e,v.now="undefined"!=typeof performance?()=>performance.now():Date.now,v.batchedUpdates=e=>e(),v.catch=console.error,v.frameLoop="always",v.advance=()=>{"demand"!==v.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):T()};var E=-1,k=0,z=!1;function P(e,t){z?(t.delete(e),e(0)):(t.add(e),D())}function D(){E<0&&(E=0,"demand"!==v.frameLoop&&C(A))}function A(){~E&&(C(A),v.batchedUpdates(T))}function T(){const e=E;E=v.now();const t=S(E);t&&(M(_.splice(0,t),(e=>e.handler())),k-=t),k?(b.flush(),g.flush(e?Math.min(64,E-e):16.667),w.flush(),y.flush(),x.flush()):E=-1}function I(){let e=new Set,t=e;return{add(n){k+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(k-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,k-=t.size,M(t,(t=>t(n)&&e.add(t))),k+=e.size,t=e)}}}function M(e,t){e.forEach((e=>{try{t(e)}catch(e){v.catch(e)}}))}var R=Object.defineProperty,F={};function N(){}((e,t)=>{for(var n in t)R(e,n,{get:t[n],enumerable:!0})})(F,{assign:()=>Y,colors:()=>q,createStringInterpolator:()=>H,skipAnimation:()=>G,to:()=>$,willAdvance:()=>W});var O={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function j(e,t){if(O.arr(e)){if(!O.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var L=(e,t)=>e.forEach(t);function B(e,t,n){if(O.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var K=e=>O.und(e)?[]:O.arr(e)?e:[e];function V(e,t){if(e.size){const n=Array.from(e);e.clear(),L(n,t)}}var H,$,U=(e,...t)=>V(e,(e=>e(...t))),Z=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),q=null,G=!1,W=N,Y=e=>{e.to&&($=e.to),e.now&&(v.now=e.now),void 0!==e.colors&&(q=e.colors),null!=e.skipAnimation&&(G=e.skipAnimation),e.createStringInterpolator&&(H=e.createStringInterpolator),e.requestAnimationFrame&&v.use(e.requestAnimationFrame),e.batchedUpdates&&(v.batchedUpdates=e.batchedUpdates),e.willAdvance&&(W=e.willAdvance),e.frameLoop&&(v.frameLoop=e.frameLoop)},X=new Set,Q=[],J=[],ee=0,te={get idle(){return!X.size&&!Q.length},start(e){ee>e.priority?(X.add(e),v.onStart(ne)):(re(e),v(ie))},advance:ie,sort(e){if(ee)v.onFrame((()=>te.sort(e)));else{const t=Q.indexOf(e);~t&&(Q.splice(t,1),oe(e))}},clear(){Q=[],X.clear()}};function ne(){X.forEach(re),X.clear(),v(ie)}function re(e){Q.includes(e)||oe(e)}function oe(e){Q.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Q,(t=>t.priority>e.priority)),0,e)}function ie(e){const t=J;for(let n=0;n<Q.length;n++){const r=Q[n];ee=r.priority,r.idle||(W(r),r.advance(e),r.idle||t.push(r))}return ee=0,(J=Q).length=0,(Q=t).length>0}var ae="[-+]?\\d*\\.?\\d+",se=ae+"%";function le(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ce=new RegExp("rgb"+le(ae,ae,ae)),ue=new RegExp("rgba"+le(ae,ae,ae,ae)),de=new RegExp("hsl"+le(ae,se,se)),pe=new RegExp("hsla"+le(ae,se,se,ae)),he=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,fe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,me=/^#([0-9a-fA-F]{6})$/,ge=/^#([0-9a-fA-F]{8})$/;function ve(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ye(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ve(o,r,e+1/3),a=ve(o,r,e),s=ve(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function be(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function we(e){return(parseFloat(e)%360+360)%360/360}function xe(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function _e(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Se(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=me.exec(e))?parseInt(t[1]+"ff",16)>>>0:q&&void 0!==q[e]?q[e]:(t=ce.exec(e))?(be(t[1])<<24|be(t[2])<<16|be(t[3])<<8|255)>>>0:(t=ue.exec(e))?(be(t[1])<<24|be(t[2])<<16|be(t[3])<<8|xe(t[4]))>>>0:(t=he.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ge.exec(e))?parseInt(t[1],16)>>>0:(t=fe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=de.exec(e))?(255|ye(we(t[1]),_e(t[2]),_e(t[3])))>>>0:(t=pe.exec(e))?(ye(we(t[1]),_e(t[2]),_e(t[3]))|xe(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var Ce=(e,t,n)=>{if(O.fun(e))return e;if(O.arr(e))return Ce({range:e,output:t,extrapolate:n});if(O.str(e.output[0]))return H(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}};var Ee=1.70158,ke=1.525*Ee,ze=Ee+1,Pe=2*Math.PI/3,De=2*Math.PI/4.5,Ae=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Te={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>ze*e*e*e-Ee*e*e,easeOutBack:e=>1+ze*Math.pow(e-1,3)+Ee*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-ke)/2:(Math.pow(2*e-2,2)*((ke+1)*(2*e-2)+ke)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Pe),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Pe)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*De)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*De)/2+1,easeInBounce:e=>1-Ae(1-e),easeOutBounce:Ae,easeInOutBounce:e=>e<.5?(1-Ae(1-2*e))/2:(1+Ae(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},Ie=Symbol.for("FluidValue.get"),Me=Symbol.for("FluidValue.observers"),Re=e=>Boolean(e&&e[Ie]),Fe=e=>e&&e[Ie]?e[Ie]():e,Ne=e=>e[Me]||null;function Oe(e,t){const n=e[Me];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var je=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Le(this,e)}},Le=(e,t)=>He(e,Ie,t);function Be(e,t){if(e[Ie]){let n=e[Me];n||He(e,Me,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ke(e,t){const n=e[Me];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Me]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Ve,He=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),$e=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ue=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ze=new RegExp(`(${$e.source})(%|[a-z]+)`,"i"),qe=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ge=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,We=e=>{const[t,n]=Ye(e);if(!t||Z())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Ge.test(n)?We(n):n||e},Ye=e=>{const t=Ge.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Xe=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,Qe=e=>{Ve||(Ve=q?new RegExp(`(${Object.keys(q).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Fe(e).replace(Ge,We).replace(Ue,Se).replace(Ve,Se))),n=t.map((e=>e.match($e).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Ce({...e,output:t})));return e=>{const n=!Ze.test(t[0])&&t.find((e=>Ze.test(e)))?.replace($e,"");let o=0;return t[0].replace($e,(()=>`${r[o++](e)}${n||""}`)).replace(qe,Xe)}},Je="react-spring: ",et=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Je}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},tt=et(console.warn);var nt=et(console.warn);function rt(e){return O.str(e)&&("#"==e[0]||/\d/.test(e)||!Z()&&Ge.test(e)||e in(q||{}))}var ot=Z()?r.useEffect:r.useLayoutEffect;function it(){const e=(0,r.useState)()[1],t=(()=>{const e=(0,r.useRef)(!1);return ot((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var at=e=>(0,r.useEffect)(e,st),st=[];function lt(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e})),t.current}var ct=Symbol.for("Animated:node"),ut=e=>e&&e[ct],dt=(e,t)=>{return n=e,r=ct,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},pt=e=>e&&e[ct]&&e[ct].getPayload(),ht=class{constructor(){dt(this,this)}getPayload(){return this.payload||[]}},ft=class extends ht{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,O.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new ft(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return O.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,O.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},mt=class extends ft{constructor(e){super(0),this._string=null,this._toString=Ce({output:[e,e]})}static create(e){return new mt(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(O.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Ce({output:[this.getValue(),e]})),this._value=0,super.reset()}},gt={dependencies:null},vt=class extends ht{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return B(this.source,((n,r)=>{var o;(o=n)&&o[ct]===o?t[r]=n.getValue(e):Re(n)?t[r]=Fe(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&L(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return B(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){gt.dependencies&&Re(e)&&gt.dependencies.add(e);const t=pt(e);t&&L(t,(e=>this.add(e)))}},yt=class extends vt{constructor(e){super(e)}static create(e){return new yt(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(bt)),!0)}};function bt(e){return(rt(e)?mt:ft).create(e)}function wt(e){const t=ut(e);return t?t.constructor:O.arr(e)?yt:rt(e)?mt:ft}var xt=(e,t)=>{const n=!O.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,r.forwardRef)(((o,i)=>{const a=(0,r.useRef)(null),s=n&&(0,r.useCallback)((e=>{a.current=function(e,t){e&&(O.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[l,c]=function(e,t){const n=new Set;gt.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new vt(e),gt.dependencies=null,[e,n]}(o,t),u=it(),d=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&u()},p=new _t(d,c),h=(0,r.useRef)();ot((()=>(h.current=p,L(c,(e=>Be(e,p))),()=>{h.current&&(L(h.current.deps,(e=>Ke(e,h.current))),v.cancel(h.current.update))}))),(0,r.useEffect)(d,[]),at((()=>()=>{const e=h.current;L(e.deps,(t=>Ke(t,e)))}));const f=t.getComponentProps(l.getValue());return r.createElement(e,{...f,ref:s})}))},_t=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&v.write(this.update)}};var St=Symbol.for("AnimatedComponent"),Ct=e=>O.str(e)?e:e&&O.str(e.displayName)?e.displayName:O.fun(e)&&e.name||null;function Et(e,...t){return O.fun(e)?e(...t):e}var kt=(e,t)=>!0===e||!!(t&&e&&(O.fun(e)?e(t):K(e).includes(t))),zt=(e,t)=>O.obj(e)?t&&e[t]:e,Pt=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Dt=e=>e,At=(e,t=Dt)=>{let n=Tt;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);O.und(n)||(r[o]=n)}return r},Tt=["config","onProps","onStart","onChange","onPause","onResume","onRest"],It={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Mt(e){const t=function(e){const t={};let n=0;if(B(e,((e,r)=>{It[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return B(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function Rt(e){return e=Fe(e),O.arr(e)?e.map(Rt):rt(e)?F.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Ft(e){for(const t in e)return!0;return!1}function Nt(e){return O.fun(e)||O.arr(e)&&O.obj(e[0])}function Ot(e,t){e.ref?.delete(e),t?.delete(e)}function jt(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Lt={tension:170,friction:26,mass:1,damping:1,easing:Te.linear,clamp:!1};function Bt(e,t){if(O.und(t.decay)){const n=!O.und(t.tension)||!O.und(t.friction);!n&&O.und(t.frequency)&&O.und(t.damping)&&O.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Kt=[];function Vt(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,c,u=kt(n.cancel??r?.cancel,t);if(u)h();else{O.und(n.pause)||(o.paused=kt(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||kt(e,t)),l=Et(n.delay||0,t),e?(o.resumeQueue.add(p),i.pause()):(i.resume(),p())}function d(){o.resumeQueue.add(p),o.timeouts.delete(c),c.cancel(),l=c.time-v.now()}function p(){l>0&&!F.skipAnimation?(o.delayed=!0,c=v.setTimeout(h,l),o.pauseQueue.add(d),o.timeouts.add(c)):h()}function h(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(c),e<=(o.cancelId||0)&&(u=!0);try{i.start({...n,callId:e,cancel:u},a)}catch(e){s(e)}}}))}var Ht=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Zt(e.get()):t.every((e=>e.noop))?$t(e.get()):Ut(e.get(),t.every((e=>e.finished))),$t=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ut=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Zt=e=>({value:e,cancelled:!0,finished:!1});function qt(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=At(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const p=new Promise(((e,t)=>(u=e,d=t))),h=e=>{const t=o<=(n.cancelId||0)&&Zt(r)||o!==n.asyncId&&Ut(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const i=new Wt,a=new Yt;return(async()=>{if(F.skipAnimation)throw Gt(n),a.result=Ut(r,!1),d(a),a;h(i);const s=O.obj(e)?{...e}:{...t,to:e};s.parentId=o,B(c,((e,t)=>{O.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return h(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let m;if(F.skipAnimation)return Gt(n),Ut(r,!1);try{let t;t=O.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(u),p]),m=Ut(r.get(),!0,!1)}catch(e){if(e instanceof Wt)m=e.result;else{if(!(e instanceof Yt))throw e;m=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return O.fun(a)&&v.batchedUpdates((()=>{a(m,r,r.item)})),m})():l}function Gt(e,t){V(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Wt=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Yt=class extends Error{constructor(){super("SkipAnimationSignal")}},Xt=e=>e instanceof Jt,Qt=1,Jt=class extends je{constructor(){super(...arguments),this.id=Qt++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ut(this);return e&&e.getValue()}to(...e){return F.to(this,e)}interpolate(...e){return tt(`${Je}The "interpolate" function is deprecated in v9 (use "to" instead)`),F.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Oe(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||te.sort(this),Oe(this,{type:"priority",parent:this,priority:e})}},en=Symbol.for("SpringPhase"),tn=e=>(1&e[en])>0,nn=e=>(2&e[en])>0,rn=e=>(4&e[en])>0,on=(e,t)=>t?e[en]|=3:e[en]&=-3,an=(e,t)=>t?e[en]|=4:e[en]&=-5,sn=class extends Jt{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=Kt,this.toValues=null,this.fromValues=Kt,this.config=new class{constructor(){this.velocity=0,Object.assign(this,Lt)}},this.immediate=!1}},this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!O.und(e)||!O.und(t)){const n=O.obj(e)?{...e}:{...t,from:e};O.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(nn(this)||this._state.asyncTo)||rn(this)}get goal(){return Fe(this.animation.to)}get velocity(){const e=ut(this);return e instanceof ft?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return tn(this)}get isAnimating(){return nn(this)}get isPaused(){return rn(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=pt(r.to);!a&&Re(r.to)&&(o=K(Fe(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==mt?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=O.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const p=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(O.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=p,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||p/10,r=i.clamp?0:i.bounce,l=!O.und(r),h=n==c?s.v0>0:n<c;let f,m=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(f=Math.abs(a)>t,f||(u=Math.abs(c-d)<=p,!u));++e){l&&(m=d==c||d>c==h,m&&(a=-a*r,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*g,d+=a*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=ut(this),l=s.getValue();if(t){const e=Fe(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return v.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(nn(this)){const{to:e,config:t}=this.animation;v.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return O.und(e)?(n=this.queue||[],this.queue=[]):n=[O.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Ht(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Gt(this._state,e&&this._lastCallId),v.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=O.obj(n)?n[t]:n,(null==n||Nt(n))&&(n=void 0),r=O.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return tn(this)||(e.reverse&&([n,r]=[r,n]),r=Fe(r),O.und(r)?ut(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,At(e,((e,t)=>/^on/.test(t)?zt(e,n):e))),fn(this,e,"onProps"),mn(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Vt(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{rn(this)||(an(this,!0),U(i.pauseQueue),mn(this,"onPause",Ut(this,ln(this,this.animation.to)),this))},resume:()=>{rn(this)&&(an(this,!1),nn(this)&&this._resume(),U(i.resumeQueue),mn(this,"onResume",Ut(this,ln(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=cn(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Zt(this));const r=!O.und(e.to),o=!O.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(Zt(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!o||r||t.default&&!O.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!j(d,c);p&&(s.from=d),d=Fe(d);const h=!j(u,l);h&&this._focus(u);const f=Nt(t.to),{config:m}=s,{decay:g,velocity:y}=m;(r||o)&&(m.velocity=0),t.config&&!f&&function(e,t,n){n&&(Bt(n={...n},t),t={...n,...t}),Bt(e,t),Object.assign(e,t);for(const t in Lt)null==e[t]&&(e[t]=Lt[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;O.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(m,Et(t.config,i),t.config!==a.config?Et(a.config,i):void 0);let b=ut(this);if(!b||O.und(u))return n(Ut(this,!0));const w=O.und(t.reset)?o&&!t.default:!O.und(d)&&kt(t.reset,i),x=w?d:this.get(),_=Rt(u),S=O.num(_)||O.arr(_)||rt(_),C=!f&&(!S||kt(a.immediate||t.immediate,i));if(h){const e=wt(u);if(e!==b.constructor){if(!C)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(_)}}const E=b.constructor;let k=Re(u),z=!1;if(!k){const e=w||!tn(this)&&p;(h||e)&&(z=j(Rt(x),_),k=!z),(j(s.immediate,C)||C)&&j(m.decay,g)&&j(m.velocity,y)||(k=!0)}if(z&&nn(this)&&(s.changed&&!w?k=!0:k||this._stop(l)),!f&&((k||Re(l))&&(s.values=b.getPayload(),s.toValues=Re(u)?null:E==mt?[1]:K(_)),s.immediate!=C&&(s.immediate=C,C||w||this._set(l)),k)){const{onRest:e}=s;L(hn,(e=>fn(this,t,e)));const r=Ut(this,ln(this,l));U(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&v.batchedUpdates((()=>{s.changed=!w,e?.(r,this),w?Et(a.onRest,r):s.onStart?.(r,this)}))}w&&this._set(x),f?n(qt(t.to,t,this._state,this)):k?this._start():nn(this)&&!h?this._pendingCalls.add(n):n($t(x))}_focus(e){const t=this.animation;e!==t.to&&(Ne(this)&&this._detach(),t.to=e,Ne(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Re(t)&&(Be(t,this),Xt(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Re(e)&&Ke(e,this)}_set(e,t=!0){const n=Fe(e);if(!O.und(n)){const e=ut(this);if(!e||!j(n,e.getValue())){const r=wt(n);e&&e.constructor==r?e.setValue(n):dt(this,r.create(n)),e&&v.batchedUpdates((()=>{this._onChange(n,t)}))}}return ut(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,mn(this,"onStart",Ut(this,ln(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Et(this.animation.onChange,e,this)),Et(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ut(this).reset(Fe(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),nn(this)||(on(this,!0),rn(this)||this._resume())}_resume(){F.skipAnimation?this.finish():te.start(this)}_stop(e,t){if(nn(this)){on(this,!1);const n=this.animation;L(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Oe(this,{type:"idle",parent:this});const r=t?Zt(this.get()):Ut(this.get(),ln(this,e??n.to));U(this._pendingCalls,r),n.changed&&(n.changed=!1,mn(this,"onRest",r,this))}}};function ln(e,t){const n=Rt(t);return j(Rt(e.get()),n)}function cn(e,t=e.loop,n=e.to){const r=Et(t);if(r){const o=!0!==r&&Mt(r),i=(o||e).reverse,a=!o||o.reset;return un({...e,loop:t,default:!1,pause:void 0,to:!i||Nt(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function un(e){const{to:t,from:n}=e=Mt(e),r=new Set;return O.obj(t)&&pn(t,r),O.obj(n)&&pn(n,r),e.keys=r.size?Array.from(r):null,e}function dn(e){const t=un(e);return O.und(t.default)&&(t.default=At(t)),t}function pn(e,t){B(e,((e,n)=>null!=e&&t.add(n)))}var hn=["onStart","onRest","onChange","onPause","onResume"];function fn(e,t,n){e.animation[n]=t[n]!==Pt(t,n)?zt(t[n],e.key):void 0}function mn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var gn=["onStart","onChange","onRest"],vn=1,yn=class{constructor(e,t){this.id=vn++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];O.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(un(e)),this}start(e){let{queue:t}=this;return e?t=K(e).map(un):this.queue=[],this._flush?this._flush(this,t):(En(this,t),bn(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;L(K(t),(t=>n[t].stop(!!e)))}else Gt(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(O.und(e))this.start({pause:!0});else{const t=this.springs;L(K(e),(e=>t[e].pause()))}return this}resume(e){if(O.und(e))this.start({pause:!1});else{const t=this.springs;L(K(e),(e=>t[e].resume()))}return this}each(e){B(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,V(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&V(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,V(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}v.onFrame(this._onFrame)}};function bn(e,t){return Promise.all(t.map((t=>wn(e,t)))).then((t=>Ht(e,t)))}async function wn(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=O.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=O.arr(o)||O.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):L(gn,(n=>{const r=t[n];if(O.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,U(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),h=!0===t.cancel||!0===Pt(t,"cancel");(u||h&&d.asyncId)&&p.push(Vt(++e._lastAsyncId,{props:t,state:d,actions:{pause:N,resume:N,start(t,n){h?(Gt(d,e._lastAsyncId),n(Zt(e))):(t.onRest=s,n(qt(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Ht(e,await Promise.all(p));if(a&&f.finished&&(!n||!f.noop)){const n=cn(t,a,o);if(n)return En(e,[n]),wn(e,n,!0)}return l&&v.batchedUpdates((()=>l(f,e,e.item))),f}function xn(e,t){const n={...e.springs};return t&&L(K(t),(e=>{O.und(e.keys)&&(e=un(e)),O.obj(e.to)||(e={...e,to:void 0}),Cn(n,e,(e=>Sn(e)))})),_n(e,n),n}function _n(e,t){B(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Be(t,e))}))}function Sn(e,t){const n=new sn;return n.key=e,t&&Be(n,t),n}function Cn(e,t,n){t.keys&&L(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function En(e,t){L(t,(t=>{Cn(e.springs,t,(t=>Sn(t,e)))}))}var kn,zn,Pn=({children:e,...t})=>{const n=(0,r.useContext)(Dn),o=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,r.useState)((()=>({inputs:t,result:e()}))),o=(0,r.useRef)(),i=o.current;let a=i;a?Boolean(t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.inputs))||(a={inputs:t,result:e()}):a=n;return(0,r.useEffect)((()=>{o.current=a,i==n&&(n.inputs=n.result=void 0)}),[a]),a.result}((()=>({pause:o,immediate:i})),[o,i]);const{Provider:a}=Dn;return r.createElement(a,{value:t},e)},Dn=(kn=Pn,zn={},Object.assign(kn,r.createContext(zn)),kn.Provider._context=kn,kn.Consumer._context=kn,kn);Pn.Provider=Dn.Provider,Pn.Consumer=Dn.Consumer;var An=()=>{const e=[],t=function(t){nt(`${Je}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return L(e,((e,o)=>{if(O.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return L(e,(e=>e.pause(...arguments))),this},t.resume=function(){return L(e,(e=>e.resume(...arguments))),this},t.set=function(t){L(e,((e,n)=>{const r=O.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return L(e,((e,r)=>{if(O.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return L(e,(e=>e.stop(...arguments))),this},t.update=function(t){return L(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return O.fun(e)?e(n,t):e};return t._getProps=n,t};function Tn(e,t,n){const o=O.fun(t)&&t;o&&!n&&(n=[]);const i=(0,r.useMemo)((()=>o||3==arguments.length?An():void 0),[]),a=(0,r.useRef)(0),s=it(),l=(0,r.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=xn(e,t);return a.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?bn(e,t):new Promise((r=>{_n(e,n),l.queue.push((()=>{r(bn(e,t))})),s()}))}})),[]),c=(0,r.useRef)([...l.ctrls]),u=[],d=lt(e)||0;function p(e,n){for(let r=e;r<n;r++){const e=c.current[r]||(c.current[r]=new yn(null,l.flush)),n=o?o(r,e):t[r];n&&(u[r]=dn(n))}}(0,r.useMemo)((()=>{L(c.current.slice(e,d),(e=>{Ot(e,i),e.stop(!0)})),c.current.length=e,p(d,e)}),[e]),(0,r.useMemo)((()=>{p(0,Math.min(d,e))}),n);const h=c.current.map(((e,t)=>xn(e,u[t]))),f=(0,r.useContext)(Pn),m=lt(f),g=f!==m&&Ft(f);ot((()=>{a.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],L(e,(e=>e()))),L(c.current,((e,t)=>{i?.add(e),g&&e.start({default:f});const n=u[t];n&&(jt(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),at((()=>()=>{L(l.ctrls,(e=>e.stop(!0)))}));const v=h.map((e=>({...e})));return i?[v,i]:v}function In(e,t){const n=O.fun(e),[[r],o]=Tn(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}var Mn=class extends Jt{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ce(...t);const n=this._get(),r=wt(n);dt(this,r.create(n))}advance(e){const t=this._get();j(t,this.get())||(ut(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Fn(this._active)&&Nn(this)}_get(){const e=O.arr(this.source)?this.source.map(Fe):K(Fe(this.source));return this.calc(...e)}_start(){this.idle&&!Fn(this._active)&&(this.idle=!1,L(pt(this),(e=>{e.done=!1})),F.skipAnimation?(v.batchedUpdates((()=>this.advance())),Nn(this)):te.start(this))}_attach(){let e=1;L(K(this.source),(t=>{Re(t)&&Be(t,this),Xt(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){L(K(this.source),(e=>{Re(e)&&Ke(e,this)})),this._active.clear(),Nn(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=K(this.source).reduce(((e,t)=>Math.max(e,(Xt(t)?t.priority:0)+1)),0))}};function Rn(e){return!1!==e.idle}function Fn(e){return!e.size||Array.from(e).every(Rn)}function Nn(e){e.idle||(e.idle=!0,L(pt(e),(e=>{e.done=!0})),Oe(e,{type:"idle",parent:e}))}F.assign({createStringInterpolator:Qe,to:(e,t)=>new Mn(e,t)});te.advance;var On=n(73935),jn=/^--/;function Ln(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||jn.test(e)||Kn.hasOwnProperty(e)&&Kn[e]?(""+t).trim():t+"px"}var Bn={};var Kn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vn=["Webkit","Ms","Moz","O"];Kn=Object.keys(Kn).reduce(((e,t)=>(Vn.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Kn);var Hn=/^(matrix|translate|scale|rotate|skew)/,$n=/^(translate)/,Un=/^(rotate|skew)/,Zn=(e,t)=>O.num(e)&&0!==e?e+t:e,qn=(e,t)=>O.arr(e)?e.every((e=>qn(e,t))):O.num(e)?e===t:parseFloat(e)===t,Gn=class extends vt{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>Zn(e,"px"))).join(",")})`,qn(e,0)]))),B(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(Hn.test(t)){if(delete r[t],O.und(e))return;const n=$n.test(t)?"px":Un.test(t)?"deg":"";o.push(K(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${Zn(o,n)})`,qn(o,0)]:e=>[`${t}(${e.map((e=>Zn(e,n))).join(",")})`,qn(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new Wn(o,i)),super(r)}},Wn=class extends je{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return L(this.inputs,((n,r)=>{const o=Fe(n[0]),[i,a]=this.transforms[r](O.arr(o)?o:n.map(Fe));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&L(this.inputs,(e=>L(e,(e=>Re(e)&&Be(e,this)))))}observerRemoved(e){0==e&&L(this.inputs,(e=>L(e,(e=>Re(e)&&Ke(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Oe(this,e)}};F.assign({batchedUpdates:On.unstable_batchedUpdates,createStringInterpolator:Qe,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Yn=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new vt(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=Ct(e)||"Anonymous";return(e=O.str(e)?i[e]||(i[e]=xt(e,o)):e[St]||(e[St]=xt(e,o))).displayName=`Animated(${t})`,e};return B(e,((t,n)=>{O.arr(e)&&(n=Ct(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:s,...l}=t,c=Object.values(l),u=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:Bn[t]||(Bn[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in r)if(r.hasOwnProperty(t)){const n=Ln(t,r[t]);jn.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new Gn(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Xn=Yn.animated,Qn=n(45071),Jn=n(99666),er=Object.defineProperty;function tr(...e){return 1===e.length?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}var nr=new Set(["id"]),rr=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),or=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),ir=/^(data-.*)$/;function ar(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(nr.has(t)||n&&rr.has(t)||r&&or.has(t)||o?.has(t)||ir.test(t))&&(i[t]=e[t]);return i}function sr({state:e,initialState:t={},onChange:n,ref:a}){let[s,l]=r.useState({...t,...e}),c=(0,o.useI18n)(),u=(0,o.useDevice)(a?.current||void 0),d=(0,r.useRef)(Object.fromEntries(Object.entries(e||{}).map((([e,t])=>[e,void 0!==t])))),p=(0,r.useMemo)((()=>Object.fromEntries(Object.entries(e||{}).map((([e,t])=>[e,void 0!==t])))),[e]);return(0,r.useEffect)((()=>{for(let e in d.current){let t=d.current[e];t!==p[e]&&console.warn(`WARN: A component changed from ${t?"controlled":"uncontrolled"} to ${p[e]?"controlled":"uncontrolled"}.`),d.current[e]=p[e]}}),[p]),{intl:c,state:r.useMemo((()=>({get:t=>p[t]?e?.[t]:s[t],set:(t,r)=>{if((p[t]?e?.[t]:s[t])!==r){if(n?.({...s,[t]:r},s),p[t])return void(0,i.kG)(n,"If you provide a controlled state, you must also provide an onChange handler.");l({...s,[t]:r})}},toJS:()=>({...s,...e})})),[e,p,n,s]),device:u}}function lr(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function cr(e,t,n){return(t=lr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ur(Object(n),!0).forEach((function(t){cr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pr(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}var hr=(e,t,n)=>{for(var r of Object.keys(e)){var o;if(e[r]!==(null!==(o=t[r])&&void 0!==o?o:n[r]))return!1}return!0},fr=e=>{var t=t=>{var n=e.defaultClassName,r=dr(dr({},e.defaultVariants),t);for(var o in r){var i,a=null!==(i=r[o])&&void 0!==i?i:e.defaultVariants[o];if(null!=a){var s=a;"boolean"==typeof s&&(s=!0===s?"true":"false");var l=e.variantClassNames[o][s];l&&(n+=" "+l)}}for(var[c,u]of e.compoundVariants)hr(c,r,e.defaultVariants)&&(n+=" "+u);return n};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return pr(e.variantClassNames,(e=>pr(e,(e=>e.split(" ")[0]))))}},t},mr=fr({defaultClassName:"x0o33h6 _1yep5z6i6 _1yep5z6i7 _1yep5z6i8 _1yep5z6fs",variantClassNames:{variant:{wide:"x0o33h7 _1yep5z69 _1yep5z6g _1yep5z6h _1yep5z62l _1yep5z62s _1yep5z62t _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69l _1yep5z69p _1yep5z69q",narrow:"x0o33h8 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69i _1yep5z69j _1yep5z69k"}},defaultVariants:{},compoundVariants:[]}),gr=fr({defaultClassName:"x0o33h3 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{variant:{wide:"x0o33h4 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6fu",narrow:"x0o33h5 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h"}},defaultVariants:{},compoundVariants:[]}),vr=fr({defaultClassName:"x0o33h0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie",variantClassNames:{variant:{narrow:"_1yep5z6fs",wide:"x0o33h2"}},defaultVariants:{},compoundVariants:[]}),yr=(0,o.defineMessages)({signatures:{defaultMessage:"Signatures",id:"signatures"},addSignature:{defaultMessage:"Add Signature",id:"addSignature"},cancel:{defaultMessage:"Cancel",id:"cancel"},delete:{defaultMessage:"Delete",id:"delete"}}),br=r.forwardRef((({children:e,state:t,onStateChange:n,initialState:s,...u},d)=>{let p=r.useRef(null),h={...u,...sr({ref:p,initialState:s,state:t,onChange:n}),ref:tr(d,p)},f=(({className:e,style:t,titleId:n,items:r,ref:s,onAdd:u,onAddFromPreview:d,onRemoveFromPreview:p,onCancel:h,variant:f="wide",intl:{formatMessage:m},"data-block-id":g="signatures-list","data-block-class":v})=>{let y="narrow"===f,b=l(o.Separator,{className:"_1yep5z64r _1yep5z64s _1yep5z64t _1yep5z673 _1yep5z674 _1yep5z675"});return c("div",{style:t,className:(0,i.AK)(vr({variant:f}),e),ref:s,"data-block-id":g,"data-block-class":v,children:[c("div",{className:gr({variant:f}),"data-block-id":"header",children:[l(o.Text,{id:n,type:"title",size:y?"sm":"md","data-block-id":"title",className:"PSPDFKit-Electronic-Signatures-Signature-Heading",children:m(yr.signatures)}),"wide"===f&&l(o.ActionButton,{id:"add-signature",size:"md",label:m(yr.addSignature),"data-block-id":"add-signature",onPress:u,className:"PSPDFKit-Electronic-Signatures-Add-Signature-Button"})]}),y?c("div",{children:[b,c("div",{className:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6ir _1yep5z6is _1yep5z6it",children:[l(o.Text,{type:"subtitle",size:"sm",children:m(yr.addSignature)}),l(o.ActionIconButton,{variant:"secondary",size:"md",icon:a.pO,onPress:u,"data-block-id":"add-signature","aria-label":m(yr.addSignature)})]})]}):null,l("div",{className:(0,i.AK)(mr({variant:f}),"PSPDFKit-Signature-Picker PSPDFKit-Signature-Dialog-Picker"),"data-block-id":"body",children:r.map((({id:e,...t})=>l(o.Preview,{className:"PSPDFKit-Signature-Dialog-Picker-Item-Button",...t,"data-block-id":e.toString(),addAriaLabel:m(yr.addSignature),onPress:()=>d?.(e),onDelete:p?()=>{p(e)}:void 0,deleteAriaLabel:m(yr.delete)},e)))}),!y&&l("div",{className:"_1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69 _1yep5z6d _1yep5z6e _1yep5z62l _1yep5z62p _1yep5z62q _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jo _1yep5z6jp _1yep5z6jq _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6fu","data-block-id":"footer",children:l(o.ActionButton,{variant:"secondary",size:"md",label:m(yr.cancel),onPress:h,"data-block-id":"cancel",className:"PSPDFKit-Signature-Dialog-Cancel-Button"})}),y?b:null]})})(h);return e?e({...h,ui:f}):f.createComponent()}));br.displayName="SignaturesList";var wr=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:i,...a},s)=>{let c=r.useRef(null),u={...a,...sr({ref:c,initialState:t,state:n,onChange:i}),ref:tr(s,c)},d=(({content:e,dialogProps:t,modalProps:n,modalContentProps:r,hasDialog:i=!0,...a})=>l(o.Modal,{isOpen:!0,...a,...n,children:l(o.ModalContent,{...r,children:i?l(o.Dialog,{variant:"ghost",...t,className:"PSPDFKit-Modal-Dialog",children:e}):e})}))(u);return e?e({...u,ui:d}):d.createComponent()}));wr.displayName="DialogModal";var xr,_r=fr({defaultClassName:"_1pebngc18 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6kv",variantClassNames:{variant:{wide:"_1pebngc19",narrow:"_1yep5z63r _1yep5z63y _1yep5z63z _1yep5z619 _1yep5z61j _1yep5z61k _1yep5z63 _1yep5z67 _1yep5z68 _1yep5z62f _1yep5z62j _1yep5z62k _1yep5z6fs"}},defaultVariants:{},compoundVariants:[]}),Sr=fr({defaultClassName:"_1pebngc6 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie",variantClassNames:{variant:{wide:"_1pebngc7",narrow:"_1pebngc8"}},defaultVariants:{},compoundVariants:[]}),Cr=fr({defaultClassName:"_1pebngc0",variantClassNames:{variant:{wide:"_1pebngc1",narrow:"_1pebngc2"}},defaultVariants:{},compoundVariants:[]}),Er=fr({defaultClassName:"_1pebngc15 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69 _1yep5z6d _1yep5z6e _1yep5z62l _1yep5z62p _1yep5z62q _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jr _1yep5z6js _1yep5z6jt",variantClassNames:{variant:{wide:"_1yep5z6fu",narrow:"_1yep5z6fs"}},defaultVariants:{},compoundVariants:[]}),kr=fr({defaultClassName:"_1pebngc3 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{variant:{narrow:"_1pebngc4 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z619 _1yep5z61g _1yep5z61h _1yep5z6fs",wide:"_1pebngc5 _1yep5z69 _1yep5z6g _1yep5z6h _1yep5z62l _1yep5z62s _1yep5z62t _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6fu"}},defaultVariants:{},compoundVariants:[]}),zr=fr({defaultClassName:"_1pebngcs _1pebngch _1yep5z6kv",variantClassNames:{variant:{wide:"_1pebngct",narrow:"_1pebngcu"}},defaultVariants:{},compoundVariants:[]}),Pr=fr({defaultClassName:"_1pebngcm",variantClassNames:{variant:{wide:"_1pebngcn",narrow:"_1pebngco"}},defaultVariants:{},compoundVariants:[]}),Dr=fr({defaultClassName:"_1pebngch _1yep5z6kv _1yep5z6kw",variantClassNames:{variant:{wide:"_1yep5z65c _1yep5z65d _1yep5z65e",narrow:"_1pebngcr"}},defaultVariants:{},compoundVariants:[]}),Ar=fr({defaultClassName:"_1pebngcv _1pebngch _1yep5z6kv",variantClassNames:{variant:{wide:"_1pebngct",narrow:"_1pebngcx"}},defaultVariants:{},compoundVariants:[]}),Tr=fr({defaultClassName:"_1pebngcy _1pebngch _1yep5z6kv",variantClassNames:{variant:{wide:"_1pebngcz",narrow:"_1pebngc10"}},defaultVariants:{},compoundVariants:[]}),Ir=fr({defaultClassName:"_1pebngci _1pebngch _1yep5z6kv",variantClassNames:{variant:{wide:"_1pebngcj",narrow:"_1yep5z6af _1yep5z6ag _1yep5z6ah"}},defaultVariants:{},compoundVariants:[]}),Mr=fr({defaultClassName:"_1pebngc9 _1yep5z6ks",variantClassNames:{variant:{wide:"_1pebngca _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6fu",narrow:"_1pebngcb _1yep5z64l _1yep5z63s _1yep5z63t _1yep5z629 _1yep5z61g _1yep5z61h _1yep5z6fs"}},defaultVariants:{},compoundVariants:[]}),Rr=fr({defaultClassName:"_1pebngcc _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kw",variantClassNames:{type:{image:"_1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z6jl _1yep5z6jm _1yep5z6jn",type:"_1pebngce"},variant:{wide:"_1yep5z6c _1yep5z6d _1yep5z6e _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69o _1yep5z69p _1yep5z69q",narrow:"_1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h"}},defaultVariants:{},compoundVariants:[]}),Fr=((xr=Fr||{}).DRAW="DRAW",xr.TYPE="TYPE",xr.IMAGE="IMAGE",xr);fr({defaultClassName:"yje7uq8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]});fr({defaultClassName:"yje7uq0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{labelPosition:{end:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6ut _1yep5z6uu _1yep5z6uv",start:"_1yep5z613q _1yep5z613r _1yep5z613s _1yep5z6152 _1yep5z6153 _1yep5z6154"}},defaultVariants:{},compoundVariants:[]});var Nr=fr({defaultClassName:"yje7uq3 _1dlrtbb5",variantClassNames:{isFocusVisible:{true:"_1dlrtbb8"},isSelected:{true:"_1dlrtbb7"},isDisabled:{true:"_1dlrtbba"}},defaultVariants:{},compoundVariants:[]}),Or=({item:{id:e,label:t},options:{isSelected:n,isFocusVisible:r,isDisabled:o}})=>(0,h.jsxs)("div",{className:(0,i.AK)("_1pebngc12 _1yep5z63x _1yep5z63y _1yep5z63z _1yep5z61l _1yep5z61m _1yep5z61n _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6kx","PSPDFKit-Electronic-Signatures-Font-Family-Wrapper"),"aria-label":e,style:{fontFamily:e},children:[(0,h.jsx)("div",{className:Nr({isSelected:n,isFocusVisible:r,isDisabled:o}),children:n?(0,h.jsx)("div",{className:(0,i.AK)("yje7uq7","PSPDFKit-Electronic-Signatures-Font-Family-Radio-Input")}):null}),(0,h.jsx)("span",{className:"PSPDFKit-Electronic-Signatures-Font-Family-Label",children:t})]}),jr=r.forwardRef((({children:e,initialState:t,state:n,onStateChange:s,...u},h)=>{let f=sr({initialState:{selectedFont:u.fonts[0],color:u.colorPresets[0].color||"#000000",shouldStoreSignature:!1,currentTab:u.allowedTabs?.[0]||"DRAW",...t},state:n,onChange:s}),m={...u,...f,ref:h},g=(({className:e,style:t,colorPresets:n,state:s,ref:u,intl:{formatMessage:h},titleId:f,fonts:m,onCloseRequest:g,onAdd:v,variant:y="wide",allowedTabs:b=["DRAW","IMAGE","TYPE"],allowStoringSignature:w=!0,"data-block-id":x="create-signature","data-block-class":_})=>{let S="narrow"===y,C=r.useRef(null),E=r.useCallback((e=>{s.set("ink",e.length?e:void 0)}),[s]),k=r.useCallback((e=>{s.set("image",e?.[0]||null)}),[s]),z=(0,r.useMemo)((()=>l(o.ColorSwatchPicker,{items:n||[],"aria-label":S?void 0:h("color"),className:(0,i.AK)(_r({variant:y}),"PSPDFKit-Input-ColorPicker"),value:s.get("color"),onChange:e=>{s.set("color",e)},"data-block-id":"color-selector",label:S?h("color"):void 0,labelPosition:"start",optionClassName:"PSPDFKit-Input-ColorPicker-Swatch PSPDFKit-Input-ColorPicker-Label"})),[n,h,S,s,y]),P=(0,r.useCallback)((e=>{switch(e){case"DRAW":return c(o.TabItem,{title:h("draw"),value:"DRAW",titleClassName:"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Draw",className:Rr({variant:y}),"data-block-id":"draw-tab",children:[!S&&z,l(o.FreehandCanvas,{"data-block-id":"freehand-canvas",placeholder:h("signHere"),clearLabel:h("clearSignature"),strokeColor:s.get("color"),className:"_1pebngch _1yep5z6kv _1yep5z6kw",isInline:!S,value:s.get("ink"),canvasRef:C,canvasClassName:(0,i.AK)(zr({variant:y}),"PSPDFKit-Electronic-Signatures-Canvas"),footerClassName:(0,i.AK)(Pr({variant:y}),{"PSPDFKit-Electronic-Signatures-Sign-Here-Label":!s.get("ink"),"PSPDFKit-Electronic-Signatures-Clear-Signature-Button":s.get("ink")}),onChange:E}),S?z:null]},e);case"IMAGE":return l(o.TabItem,{title:h("image"),value:"IMAGE",titleClassName:"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Image",className:Rr({type:"image",variant:y}),"data-block-id":"image-tab",children:l(o.ImageDropZone,{className:(0,i.AK)(Dr({variant:y}),"PSPDFKit-Electronic-Signatures-Image-Dropzone"),pickerButtonClassName:s.get("image")?"PSPDFKit-Electronic-Signatures-Replace-Image-Button":"PSPDFKit-Electronic-Signatures-Add-Image-Button",labelClassName:Ar({variant:y}),isInline:!S,"data-block-id":"image-drop-zone",onValueChange:k,imageSrc:s.get("image"),placeholder:h("selectDragImage"),footerClassName:Pr({variant:y}),clearLabel:h("clearSignature"),accept:"image/jpeg, image/png,"})},e);case"TYPE":return c(o.TabItem,{title:h("type"),value:"TYPE",titleClassName:"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Type","data-block-id":"type-tab",children:[c("div",{className:Rr({type:"type",variant:y}),children:[!S&&z,l(d.SignatureTextInput,{inputStyle:{color:s.get("color"),fontFamily:s.get("selectedFont")},placeholder:h("signature"),onChange:e=>{s.set("text",e)},label:h("signHere"),"data-block-id":"signature-text-input",value:s.get("text"),inputClassName:(0,i.AK)(Tr({variant:y}),"PSPDFKit-Electronic-Signatures-Text-Input"),className:(0,i.AK)(Ir({variant:y}),"PSPDFKit-Text-Input"),clearLabel:h("clearSignature"),isInline:!S,footerStyle:{padding:S?p.themeVars.spacing.sm:void 0},footerClassName:"PSPDFKit-Electronic-Signatures-Clear-Signature-Button"})]}),!S&&1!==m.length&&l(o.RadioGroup,{optionsContainerClassName:(0,i.AK)("_1pebngc14","PSPDFKit-Electronic-Signatures-Font-Families-Container"),orientation:"horizontal",className:"_1pebngc11 _1yep5z650 _1yep5z651 _1yep5z652 _1yep5z6fu",items:m.map((e=>({id:e,label:s.get("text")||h("signature")}))),"data-block-id":"font-selector",value:s.get("selectedFont"),onChange:e=>{s.set("selectedFont",e)},optionClassName:"_1pebngc13 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it","aria-label":h("fonts"),renderOption:(e,t)=>l(Or,{item:e,options:t}).createComponent()}),S?z:null,S?l(o.Select,{isReadOnly:1===m.length,labelPosition:"start",label:"Font","data-block-id":"font-selector",className:_r({variant:y}),placement:"bottom end",selectedKey:s.get("selectedFont"),onSelectionChange:e=>{s.set("selectedFont",e)},style:{fontFamily:s.get("selectedFont")},variant:"ghost",items:m.map((e=>({id:e,label:s.get("text")||h("signature")})))}):null]},e)}}),[h,y,S,z,s,E,k,m]),D=s.get("currentTab"),A=(0,r.useCallback)((()=>{switch(D){case"DRAW":return{type:"DRAW",value:s.get("ink")};case"IMAGE":return{type:"IMAGE",value:s.get("image")};case"TYPE":return{type:"TYPE",value:s.get("text")}}}),[D,s]);return c("div",{className:(0,i.AK)(Cr({variant:y}),e),style:t,"data-block-id":x,"data-block-class":_,ref:u,children:[c("div",{"data-block-id":"header",className:kr({variant:y}),children:[l(o.Text,{elementType:"h3",type:"title",size:S?"sm":"md","data-block-id":"title",id:f,children:h("addSignature")}),S?l(o.ActionIconButton,{variant:"secondary","data-block-id":"close-button",size:"md",icon:a.aM,onPress:g,"aria-label":h("close")}):null]}),S?l(o.Separator,{}):null,l("div",{"data-block-id":"body",className:(0,i.AK)(Sr({variant:y}),"PSPDFKit-Electronic-Signatures-Tabs-Container"),children:l(o.Tabs,{variant:"ghost","data-block-id":"tabs",className:"_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z6jc _1yep5z6jd _1yep5z6je",tabHeaderClassName:(0,i.AK)(Mr({variant:y}),"PSPDFKit-Electronic-Signatures-Tabs-List"),onSelectionChange:e=>{s.set("currentTab",e)},children:b.map((e=>P(e)))})}),S?l(o.Separator,{}):null,c("div",{"data-block-id":"footer",className:Er({variant:y}),children:[w?l(o.Checkbox,{isSelected:s.get("shouldStoreSignature"),"data-block-id":"save-signature-checkbox",label:h("saveSignature"),className:"PSPDFKit-Electronic-Signatures-Store-Signature-Checkbox",onChange:e=>{s.set("shouldStoreSignature",e)}}):l("div",{}),c("div",{className:"_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69l _1yep5z69m _1yep5z69n",children:[!S&&l(o.ActionButton,{"data-block-id":"cancel-button",variant:"secondary",size:"md",label:h("cancel"),onPress:g,className:"PSPDFKit-Electronic-Signatures-Cancel-Button"}),l(o.ActionButton,{"data-block-id":"done-button",onPress:()=>{v({...s.toJS(),signature:A(),canvasSize:{width:C.current?.clientWidth||0,height:C.current?.clientHeight||0}})},label:h("done"),isDisabled:!A()?.value,size:"md",className:"PSPDFKit-Electronic-Signatures-Done-Button"})]})]})]})})(m);return e?e({...m,ui:g}):g.createComponent()}));jr.displayName="CreateSignature";var Lr="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z69l _1yep5z69m _1yep5z69n",Br="dabjfd2 dabjfd0 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jl _1yep5z6js _1yep5z6jt _1yep5z6io _1yep5z6is _1yep5z6it _1yep5z6fu _1yep5z6ic _1yep5z6ia _1yep5z6ib _1yep5z69l _1yep5z6ag _1yep5z6ah _1yep5z6le _1yep5z6nq _1yep5z614z _1yep5z6150 _1yep5z6151 _1yep5z6142 _1yep5z6143 _1yep5z6144 _1yep5z613k _1yep5z613l _1yep5z613m",Kr="dabjfd0 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jl _1yep5z6js _1yep5z6jt _1yep5z6io _1yep5z6is _1yep5z6it _1yep5z6fu _1yep5z6ic _1yep5z6ia _1yep5z6ib _1yep5z69l _1yep5z6ag _1yep5z6ah",Vr="_1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69 _1yep5z6d _1yep5z6e _1yep5z62l _1yep5z62p _1yep5z62q";function Hr(e){return(0,i.tG)(e,80)}var $r=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:a,...s},u)=>{let p=r.useRef(null),h=sr({ref:p,initialState:{color:s.colorPresets[0].color,includeDate:!0,includeTime:!1,...t},state:n,onChange:a}),m={...s,...h,ref:tr(u,p)},g=(({intl:{formatMessage:e},titleId:t,className:n,state:a,device:s,onCloseRequest:u,ref:p,onCreate:h,colorPresets:m,onExistingStampPress:g,getLighterVariant:v=Hr,"data-block-id":y="create-stamp","data-block-class":b})=>{let w=(0,f.aQ)({...a.get("includeDate")?{year:"2-digit",month:"2-digit",day:"2-digit"}:{},...a.get("includeTime")?{hour:"2-digit",minute:"2-digit"}:{}}),x=a.get("includeDate")||a.get("includeTime"),_=(0,r.useRef)(190);return c("div",{ref:p,className:n,"data-block-id":y,"data-block-class":b,children:[c("div",{"data-block-id":"header",className:(0,i.AK)(Kr,"PSPDFKit-Modal-Section"),children:[l(o.Text,{elementType:"h3",id:t,"data-block-id":"title",children:e("customStamp")}),l(o.ActionButton,{size:"md","data-block-id":"stamp-presets-button",label:e("useAnExistingStampDesign"),variant:"tertiary",className:"PSPDFKit-Stamp-Dialog-Existing-Stamp-Button",onPress:g})]}),c("div",{"data-block-id":"body",className:"_1yep5z69 _1yep5z6g _1yep5z6h _1yep5z6fs",children:[l("div",{className:(0,i.AK)("dabjfd1 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z68f _1yep5z68m _1yep5z68n _1yep5z663 _1yep5z66a _1yep5z66b _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6l9 _1yep5z6l7 _1yep5z6gq _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn","PSPDFKit-Stamp-Editor"),children:l(d.Stamp,{"data-block-id":"stamp-preview",strokeColor:a.get("color"),fontColor:a.get("color"),fillColor:v(a.get("color")),text:a.get("text"),subText:x?w.format(new Date):void 0,height:94,minWidth:190,maxWidth:408,onDimensionsChange:e=>{_.current=e.width}})}),l(o.TextInput,{"data-block-id":"stamp-text-input",value:a.get("text"),className:Vr,label:e("stampText"),onChange:e=>{a.set("text",e?.toUpperCase())}}),l(o.Checkbox,{"data-block-id":"include-date-checkbox",label:e("date"),className:Vr,labelPosition:"start",defaultSelected:a.get("includeDate"),onChange:e=>{a.set("includeDate",e)}}),l(o.Checkbox,{"data-block-id":"include-time-checkbox",label:e("time"),className:Vr,labelPosition:"start",defaultSelected:a.get("includeTime"),onChange:e=>{a.set("includeTime",e)}}),l(o.ColorSwatchPicker,{"data-block-id":"color-selector",items:m,defaultValue:a.get("color"),className:(0,i.AK)("_1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k","PSPDFKit-Input-ColorPicker"),optionClassName:"PSPDFKit-Input-ColorPicker-Label PSPDFKit-Input-ColorPicker-Swatch",onChange:e=>{a.set("color",e)},optionsContainerClassName:"dabjfd3",labelPosition:"mobile"===s?"top":"start",label:e("chooseColor")})]}),l("div",{"data-block-id":"footer",className:(0,i.AK)(Br,"PSPDFKit-Modal-Section"),children:c("div",{className:Lr,children:[l(o.ActionButton,{size:"md",label:e("cancel"),variant:"secondary","data-block-id":"cancel-button",onPress:()=>u?.()}),l(o.ActionButton,{label:e("createStamp"),"data-block-id":"done-button",size:"md",onPress:()=>{h({text:a.get("text"),subText:x?w.format(new Date):void 0,width:_.current,color:a.get("color")})}})]})})]})})(m);return e?e({...m,ui:g}):g.createComponent()}));$r.displayName="CreateStamp";var Ur=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:a,...s},u)=>{let d=r.useRef(null),p={...s,...sr({ref:d,initialState:t,state:n,onChange:a}),ref:tr(u,d)},h=(({intl:{formatMessage:e},titleId:t,ref:n,items:r,className:a,onAdd:s,onCancel:u,onCustomStampPress:d,"data-block-id":p="stamps-list","data-block-class":h})=>c("div",{ref:n,className:a,"data-block-id":p,"data-block-class":h,children:[c("div",{"data-block-id":"header",className:(0,i.AK)(Kr,"PSPDFKit-Modal-Section"),children:[l(o.Text,{elementType:"h3",id:t,"data-block-id":"title",children:e("useAnExistingStampDesign")}),l(o.ActionButton,{onPress:d,size:"md","data-block-id":"stamp-presets-button",label:e("customStamp"),variant:"tertiary",className:"PSPDFKit-Stamp-Dialog-Custom-Stamp-Button"})]}),l("div",{"data-block-id":"body",className:(0,i.AK)("_1dk00840 x0o33h6 _1yep5z6i6 _1yep5z6i7 _1yep5z6i8 _1yep5z6fs x0o33h7 _1yep5z69 _1yep5z6g _1yep5z6h _1yep5z62l _1yep5z62s _1yep5z62t _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69l _1yep5z69p _1yep5z69q","PSPDFKit-Stamp-Picker"),children:r.map((({id:e,...t})=>l(o.Preview,{...t,addAriaLabel:t["aria-label"],"data-block-id":`preview-${e}`,onPress:()=>s?.(e)},e)))}),l("div",{"data-block-id":"footer",className:(0,i.AK)(Br,"PSPDFKit-Modal-Section"),children:l("div",{className:Lr,children:l(o.ActionButton,{onPress:u,size:"md",label:e("cancel"),variant:"secondary","data-block-id":"cancel-button"})})})]}))(p);return e?e({...p,ui:h}):h.createComponent()}));Ur.displayName="StampsList";var Zr="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6km",qr="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69i _1yep5z69j _1yep5z69k",Gr="_443wcr6";function Wr({error:e}){return(0,h.jsx)(o.InlineAlert,{title:e.title,description:e.description,variant:"error",arrangement:"compact",actionLabel:e.action?.text,onAction:e.action?.onPress})}function Yr({actions:e}){return(0,h.jsx)("div",{className:Zr,children:e.map((({text:e,onPress:t},n)=>(0,h.jsx)(o.ActionButton,{variant:"tertiary",label:e,onPress:t,size:"sm"},n)))})}function Xr({additionalContext:e,linkToAdditionalContext:t,actions:n}){return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6fn",children:(0,h.jsx)(o.Text,{type:"body",size:"sm",className:"_443wcr5",children:e})}),(0,h.jsx)(o.Link,{onPress:t.onPress,size:"sm",children:t.text}),(0,h.jsx)("div",{className:Zr,children:n.map((({text:e,onPress:t},n)=>(0,h.jsx)(o.ActionButton,{variant:"tertiary",label:e,onPress:t,size:"sm"},n)))})]})}function Qr({suggestions:e}){return(0,h.jsx)("div",{className:qr,children:e.map((({text:e,onPress:t},n)=>(0,h.jsx)(o.Link,{variant:"inline",onPress:t,size:"sm",children:e},n)))})}function Jr({links:e,actions:t,actionsText:n}){let[i,a]=(0,r.useState)(1),{formatMessage:s}=(0,o.useI18n)(),l=e.length<=15,c=l?0:15*(i-1),u=l?Math.min(e.length,5*i):15*i;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:qr,children:[e.slice(c,u).map((({text:e,onPress:t},n)=>(0,h.jsxs)(o.Box,{display:"flex",alignItems:"center",gap:"sm",color:"icon.primary",children:[(0,h.jsx)(o.Box,{display:"flex",alignItems:"center",children:(0,h.jsx)(m.LZ,{size:16})}),(0,h.jsx)(o.Link,{variant:"inline",onPress:t,size:"sm",title:e,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e})]},n))),e.length>15&&(0,h.jsx)(o.Pagination,{"aria-label":s(eo.viewMoreResults),variant:"pinned",maxValue:Math.ceil(e.length/15),onChange:a,size:"xs"}),l&&u<e.length?(0,h.jsx)(o.Link,{onPress:()=>{a((e=>e+1))},size:"sm",children:s("showMore")}):null]}),(0,h.jsx)(o.Text,{type:"body",size:"sm",children:n}),(0,h.jsx)("div",{className:Zr,children:t.map((({text:e,onPress:t},n)=>(0,h.jsx)(o.ActionButton,{variant:"tertiary",label:e,onPress:t,size:"sm"},n)))})]})}var eo=(0,o.defineMessages)({viewMoreResults:{id:"viewMoreResults",defaultMessage:"View More Results"}}),to="ACTIONS",no="ERROR",ro="SUGGESTIONS",oo="ADDITIONAL_CONTEXT",io="QUERY_RESULT",ao=(0,o.defineMessages)({chat:{id:"chat",defaultMessage:"Chat"},readMore:{id:"readMore",defaultMessage:"Read More"},typeSomething:{id:"typeSomething",defaultMessage:"Type something..."}}),so=r.forwardRef((({children:e,initialState:t={},...n},a)=>{let s=r.useRef(null),u={...n,...sr({ref:s,initialState:t}),ref:tr(a,s)},p=(({intl:{formatMessage:e},className:t,titleId:n,"data-block-id":a="chat-dialog","data-block-class":s,messages:u,onMessageSubmit:p,onInputChanged:h,isLoading:f,isDisabled:g,isSubmitDisabled:v,variant:y="default",inputValue:b,style:w,editorHandle:x})=>{let _=(0,r.useRef)(null);return c("div",{role:"log","data-block-id":a,"data-block-class":s,className:(0,i.AK)("_1yep5z6kw _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6ic _1yep5z6id _1yep5z6ie",t),style:w,"aria-labelledby":n,children:[f?l(o.ProgressSpinner,{className:"_1yep5z6kv _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jc _1yep5z6jd _1yep5z6je _1yep5z6ft _1yep5z6jl _1yep5z6jm _1yep5z6jn","aria-label":e("loading")}):null,Array.isArray(u)&&!f&&l("div",{className:"_443wcr1 _1yep5z6kv _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ii _1yep5z6ij _1yep5z6ik _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6jc _1yep5z6jd _1yep5z6je _1yep5z6ft",ref:_,children:l("div",{className:"_443wcr2",children:u.map((({id:t,type:n,isComplete:a,canCopy:s,text:p,...h},f)=>{let g;switch(n){case no:{let{error:e}=h;g=l(Wr,{error:e});break}case to:{let{actions:e}=h;g=l(Yr,{actions:e});break}case ro:{let{suggestions:e}=h;g=l(Qr,{suggestions:e});break}case oo:{let{additionalContext:e,linkToAdditionalContext:t,actions:n}=h;g=l(Xr,{actions:n,additionalContext:e,linkToAdditionalContext:t});break}case io:{let{links:e,actionsText:t,actions:n}=h;g=l(Jr,{links:e,actionsText:t,actions:n});break}default:g=null}let v=l(o.Markdown,{showCaret:!a,className:"_443wcr8",children:p});return c(r.Fragment,{children:[c(d.Comment,{avatarProps:{name:h.sender,showInitials:!0},content:v.createComponent(),name:h.sender,isInline:"full-width"!==y,children:[g,s?l(o.Box,{children:l(o.ActionIconButton,{variant:"secondary",icon:m.TI,onPress:()=>{navigator.clipboard.writeText(p)},size:"sm","aria-label":e("copy")})}):null]}),f!==u.length-1&&l(o.Separator,{className:(0,i.AK)(Gr,{"_443wcr7 _1yep5z68u _1yep5z68v _1yep5z68w":"default"===y})})]},t)}))})}),l(o.Box,{position:"relative",width:"full",children:l(o.ScrollControlButton,{"data-block-id":"scroll-control-button",className:"_443wcr4",label:e(ao.readMore),scrollRef:_})}),l(o.Separator,{className:Gr}),l(o.Editor,{isDisabled:g,isSaveDisabled:v,onChange:h,onSave:p,placeholder:e(ao.typeSomething),variant:"minimal",isInline:!1,className:"_443wcr3 _1yep5z6c0 _1yep5z6c1 _1yep5z6c2 _1yep5z6co _1yep5z6cp _1yep5z6cq _1yep5z6kv",value:b,editorHandle:x,saveOnEnter:!0})]})})(u);return e?e({...u,ui:p}):p.createComponent()}));so.displayName="ChatDialog";var lo=fr({defaultClassName:"_1aicd310 _1yep5z6b3 _1yep5z6ap _1yep5z6aq _1yep5z6br _1yep5z6bd _1yep5z6be _1yep5z6cf _1yep5z6c1 _1yep5z6c2 _1yep5z6d3 _1yep5z6cp _1yep5z6cq _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z6ft _1yep5z6hl _1yep5z6hm _1yep5z6hn",variantClassNames:{variant:{popover:"_1yep5z613b _1yep5z613c _1yep5z613d _1yep5z613n _1yep5z613o _1yep5z613p _1yep5z614n _1yep5z614o _1yep5z614p",sidebar:"_1aicd312"}},defaultVariants:{},compoundVariants:[]}),co=fr({defaultClassName:"_1aicd313 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6d7",variantClassNames:{isEmpty:{true:"_1aicd314",false:"_1aicd315"}},defaultVariants:{},compoundVariants:[]});var uo={from:{opacity:0},enter:{opacity:1},leave:{opacity:0}},po=({ref:e,className:t,style:n,state:a,comments:s,intl:{formatMessage:h},"data-block-id":m="comment-thread","data-block-class":g,titleId:v,variant:y="sidebar",onEditorValueChange:b,onCommentAdd:w,onCommentUpdate:x,onDelete:_,device:S,portalContainer:C,mentionableUsers:E,editorFooterButtons:k,onAnonymousToggle:z,maxMentionableUsersSuggestions:P,onPress:D,allowCommentCreation:A=!0,defaultEditorValue:T,renderAvatar:I,...M})=>{let R=r.useRef(null),[F,N]=r.useState(new Set),O=a.get("isExpanded"),j=0===s.length,L=(0,i.mS)({"data-block-id":m,"data-block-class":g,"data-expanded":O,"data-empty":j}),B=function({initialHeight:e,finalHeight:t,isExpanded:n}){let[r,o]=In((()=>({from:{height:"auto"}})));return(0,Qn.useGranularLayoutEffect)((()=>{n?o.start({height:t(),onRest:()=>{o.start({height:"auto",immediate:!0})}}):o.start({height:e()})}),[n],[o,t,e]),r}({initialHeight:()=>(R.current?.offsetHeight||0)+2,finalHeight:()=>(V.current?.offsetHeight||0)+2,isExpanded:O}),K=A?l(o.Editor,{className:(0,i.AK)(co({isEmpty:j}),"PSPDFKit-Comment-Editor"),enableRichText:!0,isInline:!1,mentionableUsers:E?.length?E:void 0,maxMentionableUsersSuggestions:P,footerButtons:k,placeholder:h(ho.commentEditorLabel),onSave:w,"data-block-id":"editor",onChange:b,clearOnSave:!0,autoFocus:!s.length,"aria-label":h(ho.commentEditorLabel),defaultValue:T}):null,{ref:V,...H}=function(e){let t=r.useRef(null),[n,o]=(0,r.useState)(!1),i=(0,r.useCallback)((()=>{o(!0)}),[]),a=(0,r.useCallback)((t=>{o(!1),e&&e(t)}),[e]),s=(0,r.useCallback)((e=>{("Enter"===e.key||" "===e.key)&&o(!0)}),[]),l=(0,r.useCallback)((t=>{("Enter"===t.key||" "===t.key)&&(o(!1),e&&e(t))}),[e]);return(0,r.useEffect)((()=>{let e=t.current;if(e)return e.addEventListener("pointerdown",i),e.addEventListener("pointerup",a),e.addEventListener("keydown",s),e.addEventListener("keyup",l),()=>{e.removeEventListener("pointerdown",i),e.removeEventListener("pointerup",a),e.removeEventListener("keydown",s),e.removeEventListener("keyup",l)}}),[i,a,s,l,t]),{ref:t,tabIndex:0,role:"button","aria-pressed":n,"aria-disabled":!1}}(D),$=(0,f.Me)(v),U=(0,r.useMemo)((()=>({canEdit:{id:"edit",label:h(ho.editContent)},canDelete:{id:"delete",label:h(ho.deleteComment)},canBeAnonymous:{id:"anonymous",label:h(ho.anonymous)}})),[h]),Z=(0,r.useCallback)((e=>Object.entries(U).filter((([t])=>!!e[t])).map((([,e])=>e))),[U]),q=(0,r.useCallback)((e=>function(e){return e.canEdit||e.canDelete||e.canBeAnonymous}(e)&&(O||"sidebar"!==y)?{items:Z(e),"aria-label":h(ho.commentOptions),selectionMode:"single",selectedKeys:e.isAnonymous?["anonymous"]:[],onAction:t=>{switch(t){case"edit":N((t=>new Set(t.add(e.id))));break;case"delete":a.set("toDelete",e.id);break;case"anonymous":z?.(e.id,!e.isAnonymous)}}}:void 0),[h,Z,O,z,a,y]),G=(0,r.useCallback)((e=>{let t,n=F.has(e.id),r=!e.avatarProps&&!I;return"function"==typeof I&&(t=I({comment:e}).node),{...e,"data-comment-id":e.id,"data-block-id":"comment",className:(0,i.AK)(e.className,{"_1yep5z6ph _1yep5z6pi _1yep5z6pj":r},"PSPDFKit-Comment"),menuProps:q(e),avatarNode:t,content:n?l(o.Editor,{style:{marginInlineStart:-36},spellCheck:!1,defaultValue:e.content,mentionableUsers:E,maxMentionableUsersSuggestions:P,enableRichText:!0,autoFocus:!0,onCancel:()=>{N((t=>new Set([...t].filter((t=>t!==e.id)))))},onSave:t=>{x?.(e.id,t),N((t=>new Set([...t].filter((t=>t!==e.id)))))},submitButtonAriaLabel:h(ho.edit),onChange:t=>b?.(t,e.id),clearOnSave:!0,cancelButtonAriaLabel:h(ho.discardChanges),"aria-label":h(ho.commentEditorLabel)}).createComponent():e.content}}),[F,h,q,P,E,x,b,I]),[W,...Y]=s,X=c(u,{children:[l(o.Box,{backgroundColor:"background.primary.subtle",paddingY:"md",paddingX:"lg",display:"flex",alignItems:"center","data-block-id":"header",style:{minHeight:48},children:l(o.Text,{id:$,type:"title",size:"sm",elementType:"h3","data-blockid":"title",children:h(ho.comments)})}),l(o.Separator,{variant:"secondary"})]}),Q=W?l(d.Comment,{"data-blockid":"comment",...G(W),children:"sidebar"===y&&!O&&l(o.Link,{size:"sm",onPress:O?void 0:()=>{a.set("isExpanded",!0)},children:O||!Y.length?void 0:h(ho.nMoreComments,{arg0:Y.length})})}):K,J=Y.map(((e,t)=>c(r.Fragment,{children:[l("div",{className:(0,p.Kj)({paddingLeft:"5xl"}),children:l(o.Separator,{variant:"secondary"})}),l(d.Comment,{...G(e)})]},t)));return(0,r.useEffect)((()=>{s.length||a.set("isExpanded",!0)}),[s,a]),(0,r.useEffect)((()=>{O||N(new Set)}),[O]),c(u,{children:[l(Xn.div,{"aria-labelledby":$,...(0,f.dG)(ar(M),L),role:"complementary",ref:e,style:{...n,height:"popover"===y||j?"auto":B.height},className:(0,i.AK)(lo({variant:y}),{"PSPDFKit-Comment-Thread-Wrapper":!0,"PSPDFKit-Comment-Thread-Wrapper-Expanded":O,"PSPDFKit-Comment-Thread-Expanded":O},t),children:l("div",{...D?H:{},ref:V,className:(0,i.AK)({_1aicd319:"sidebar"===y,"_1aicd318 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z6jc _1yep5z6jd _1yep5z6je":"sidebar"!==y,"_1aicd317 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie":"mobile"===S&&"sidebar"!==y}),children:c(u,"sidebar"===y?{children:[l("div",{ref:R,children:Q}),(Y.length>0||!!W)&&c(o.Transition,{isMounted:O,transitions:uo,children:[J,K]})]}:{children:["mobile"===S?l(f.TX,{children:X}):X,l("div",{className:"_1aicd316 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jc _1yep5z6jd _1yep5z6je _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6ii _1yep5z6ij _1yep5z6ik _1yep5z6iu _1yep5z6iv _1yep5z6iw",children:c("div",{className:(0,p.Kj)({display:"flex",flexDirection:"column",width:"full"}),children:[Q,J]})}),s.length?K:null]})})}),l(o.Modal,{isOpen:!!a.get("toDelete"),onOpenChange:()=>{a.set("toDelete",null)},children:l(o.ModalContent,{portalContainer:C,style:{zIndex:999999},children:l(o.AlertDialog,{title:h(ho.deleteComment),message:h(ho.deleteCommentConfirmMessage),onCancel:()=>{a.set("toDelete",null)},cancelLabel:h(ho.cancel),primaryActionLabel:h(ho.delete),onPrimaryAction:()=>{_?.(a.get("toDelete")),a.set("toDelete",null)}})})})]})};var ho=(0,o.defineMessages)({comments:{id:"comments",defaultMessage:"Comments"},nMoreComments:{id:"nMoreComments",defaultMessage:"{n, plural, one {1 more comment} other {# more comments}}"},edit:{id:"edit",defaultMessage:"Edit"},delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},deleteComment:{id:"deleteComment",defaultMessage:"Delete Comment"},anonymous:{id:"anonymous",defaultMessage:"Anonymous"},commentOptions:{id:"commentOptions",defaultMessage:"Comment Options"},commentEditorLabel:{id:"commentEditorLabel",defaultMessage:"Comment Editor"},save:{id:"save",defaultMessage:"Save"},deleteCommentConfirmMessage:{id:"deleteCommentConfirmMessage",defaultMessage:"Are you sure you want to delete this comment?"},discardChanges:{id:"discardChanges",defaultMessage:"Discard Changes"},editContent:{id:"editContent",defaultMessage:"Edit Content"}}),fo=r.forwardRef((({children:e,initialState:t={},onStateChange:n,state:o,...i},a)=>{let s=r.useRef(null),l={...i,...sr({ref:s,initialState:t,state:o,onChange:n}),ref:tr(a,s)},c=po(l);return e?e({...l,ui:c}):c.createComponent()}));fo.displayName="CommentThread";var mo="_1gdjybca",go=(0,o.defineMessages)({saveAs:{id:"saveAs",defaultMessage:"Save As...",description:'Generic "save as" label'},save:{id:"save",defaultMessage:"Save",description:"Generic save label"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},nPagesSelected:{id:"pagesSelected",defaultMessage:"{arg0, plural,\n      =0 {{arg0} Pages}\n      one {{arg0} Page}\n      two {{arg0} Pages}\n      other {{arg0} Pages}\n    }",description:"Number of pages selected."},documentEditor:{id:"documentEditor",defaultMessage:"Document Editor",description:"Document Editor"},documentEditorDesc:{id:"documentEditorDesc",defaultMessage:"Make changes to the current document",description:"Document Editor modal"},documentEditorMoveDialog:{id:"documentEditorMoveDialog",defaultMessage:"Document Editor Move Dialog",description:"Document Editor Move Dialog"}}),vo=r.forwardRef((({initialState:e,state:t,onStateChange:n,...a},s)=>(({className:e,style:t,ref:n,items:a=[],toolbarItems:s=[],footerItems:u=[],intl:{formatMessage:d},selectedKeys:p,"data-block-id":h="document-editor",onReorder:f,imageWidth:m,onDelete:g,onListChange:v,onSelectionChange:y,onKeyDown:b,...w})=>{let x=(0,o.useDevice)(),_=(0,r.useMemo)((()=>p&&[...p].length),[p]),S=(0,r.useCallback)((e=>e.map(((e,t)=>{if("separator"===e.type)return l(o.Separator,{orientation:"vertical",style:{height:"auto"}},t);if("spacer"===e.type)return l(o.Box,{flexGrow:1},t);{let{type:t,props:n,name:r}=e;switch(t){case"ActionIconButton":return l(o.ActionIconButton,{className:(0,i.AK)(mo,n.className),...n},r);case"ToggleIconButton":return l(o.ToggleIconButton,{className:(0,i.AK)(mo,n.className),...n},r);case"ActionButton":return l(o.ActionButton,{variant:"toolbar",className:(0,i.AK)(mo,n.className),...n},r);case"TagGroup":return _&&0!==_&&"mobile"!==x?l(o.TagGroup,{...n}):null;case"Popover":{let{popoverTriggerProps:e,popoverContentProps:{children:t,...r}}=n;return c(o.Popover,{type:"dialog",children:[l(o.PopoverTrigger,{...e,children:e.children}),l(o.PopoverContent,{className:"_1gdjybc6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",...r,children:t})]})}default:return null}}}))),[x,_]),C=(0,r.useMemo)((()=>S(s)),[S,s]),E=(0,r.useMemo)((()=>S(u)),[S,u]);return c("div",{"data-block-id":h,ref:n,className:(0,i.AK)("_1gdjybc0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie",e),style:t,children:[s.length?l(o.Box,{display:"flex",flexGrow:0,flexShrink:0,children:l(o.Toolbar,{isCollapsible:!0,"data-block-id":"toolbar",className:(0,i.AK)("_1gdjybc1 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jl _1yep5z6jm _1yep5z6jn","PSPDFKit-DocumentEditor-Toolbar"),renderSpacer:!0,children:C})}):null,l("div",{className:"_1gdjybc2 _1yep5z69 _1yep5z6g _1yep5z6h _1yep5z62l _1yep5z62s _1yep5z62t _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z6fu",children:l(o.ImageGallery,{"data-block-id":"document-editor-gallery",className:(0,i.AK)("_1gdjybc3"),items:a,"aria-label":d(go.documentEditor),imageWidth:m,onDelete:g,onReorder:f,onListChange:v,onSelectionChange:y,onKeyDown:b,enableReorder:!0,selectionMode:"multiple",selectionBehavior:"toggle",selectedKeys:p,imageContainerClassName:"_1gdjybc4",...w})}),l("div",{"data-block-id":"footer",className:(0,i.AK)("_1gdjybc5 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69 _1yep5z6d _1yep5z6e _1yep5z62l _1yep5z62p _1yep5z62q _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6ix _1yep5z6iy _1yep5z6iz _1yep5z6fs","PSPDFKit-DocumentEditor-Footer"),children:E})]})})({...a,...sr({initialState:e,state:t,onChange:n}),ref:s}).createComponent()));vo.displayName="DocumentEditor";var yo=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'];var bo=fr({defaultClassName:"_1tzubq80 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jc _1yep5z6jd _1yep5z6je",variantClassNames:{type:{primary:"_1yep5z6fs",secondary:"_1yep5z6ft"}},defaultVariants:{},compoundVariants:[]}),wo=({ref:e,items:t,className:n,"data-block-id":a="toolbar","data-block-class":s,name:c,type:u="primary",onEscape:h})=>{let f=function(e){let t=(0,r.useRef)(null);return(0,r.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}(e);!function({id:e},t){let n=(0,r.useRef)(new Map),a=(0,r.useRef)(!1),s=(0,o.useIsFirstRender)();(0,Qn.useGranularEffect)((()=>{let r=t.current?.querySelectorAll(yo.join(", "));if(!s)if(n.current.has(e)&&r){let t=n.current.get(e);(0,i.kG)(void 0!==t,"Index should be defined");let o=[...r][t];o instanceof HTMLElement&&o.focus()}else{let e=r?.[0];e instanceof HTMLElement&&e.focus()}let o=t.current;if(!o)return;let l=t=>{a.current=!1;let o=t.target;if(!r)return;let i=[...r].indexOf(o);-1!==i&&n.current.set(e,i)};return o.addEventListener("focusin",l),()=>{o.removeEventListener("focusin",l)}}),[e],[s,t]),(0,o.useMutationObserver)(t.current,{childList:!0},(()=>{a.current=!0}))}({id:(0,r.useMemo)((()=>t.map((e=>"name"in e?e.name:"")).join("-").replaceAll(/\s/g,"")),[t])},f);let m=(0,r.useCallback)((e=>{let{type:t}=e,n=e.name;switch(t){case"ActionIconButton":return l(o.ActionIconButton,{"data-block-id":e.name,variant:"toolbar",size:"lg",...e.props},n);case"ToggleIconButton":return l(o.ToggleIconButton,{"data-block-id":e.name,variant:"toolbar",size:"lg",...e.props},n);case"ActionButton":return l(o.ActionButton,{"data-block-id":e.name,variant:"toolbar",size:"lg",...e.props},n);case"IconColorInput":return l(o.IconColorInput,{offset:9,"data-block-id":e.name,...e.props},n);case"IconSelect":return l(o.IconSelect,{variant:"ghost","data-block-id":e.name,offset:9,...e.props},n);case"Block":return e.props;case"Pagination":return l(o.Pagination,{variant:"pinned",size:"lg","data-block-id":e.name,...e.props},n);case"TaggedPagination":return l(d.TaggedPagination,{size:"md","data-block-id":e.name,...e.props},n);case"IconSlider":return l(o.IconSlider,{"data-block-id":e.name,tooltipProps:{isDisabled:!0},includeNumberInput:!0,...e.props,popoverContentProps:{offset:9,...e.props.popoverContentProps}},n);case"Checkbox":return l(o.Checkbox,{"data-block-id":e.name,...e.props,className:(0,i.AK)((0,p.Kj)({marginX:"md"}),e.props.className)},n);case"ColorSwatchPicker":return l(o.ColorSwatchPicker,{labelPosition:"start","data-block-id":e.name,...e.props,className:(0,i.AK)((0,p.Kj)({marginX:"md"}),e.props.className)},n);case"ComboBox":return l(o.ComboBox,{"data-block-id":e.name,...e.props,className:(0,i.AK)("_1tzubq83 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662",e.props.className)},n);case"ActionGroup":return l(o.ActionGroup,{"data-block-id":e.name,tooltipProps:{isDisabled:!0},...e.props,className:(0,i.AK)((0,p.Kj)({marginX:"md"}),e.props.className)},n);case"ButtonSelect":return l(o.ButtonSelect,{size:"lg","data-block-id":e.name,...e.props},n);case"DomNodeRenderer":return l(o.DomNodeRenderer,{"data-block-id":e.name,...e.props},n);case"ReactElement":return r.cloneElement(e.props,{key:n,"data-block-id":e.name});case"separator":return l(o.Separator,{variant:"primary",orientation:"vertical",style:{height:"auto",minHeight:48}},n);case"spacer":return l(o.Box,{display:"flex",flex:1},n)}}),[]),g=(0,r.useCallback)((e=>{"Escape"===e.key&&h?.()}),[h]);return l(o.Toolbar,{ref:f,className:(0,i.AK)(bo({type:u}),n),"data-block-id":a,"data-name":c,"data-type":u,onKeyDown:g,"data-block-class":s,children:t.map((e=>m(e)))})},xo=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:o,...i},a)=>{let s=r.useRef(null),l={...i,...sr({ref:s,initialState:{expandedOnMobile:null,...t},state:n,onChange:o}),ref:tr(a,s)},c=wo(l);return e?e({...l,ui:c}):c.createComponent()}));xo.displayName="Toolbar";function _o({itemsStore:e,desktopItems:t,tabletItems:n,mobileItems:a,emulateMobileBehaviourInTablet:s}){let l=(0,o.useDevice)(),{formatMessage:c}=(0,o.useI18n)(),[u,d]=(0,r.useState)(null),{_desktopItems:p,_tabletItems:h,_mobileItems:f}=(0,r.useMemo)((()=>{let r=t||n||a?[]:Object.keys(e);return{_desktopItems:t||n||a||r,_tabletItems:n||a||r,_mobileItems:a||r}}),[t,n,a,e]),m=(0,r.useCallback)((t=>t.flatMap((t=>{if("spacer"===t)return{type:"spacer"};{let n=e[t];return"children"in n?n.children:n}}))),[e]),g=(0,r.useCallback)(((t,n)=>t.flatMap((t=>{if("spacer"===t)return{type:"spacer"};{let r=e[t];return"children"in r?ko(r.name,{icon:r.icon,"aria-label":r["aria-label"]||r.name,onPress:()=>{n(r.name)}}):function(e){return"IconSlider"===e||"IconColorInput"===e||"IconSelect"===e||"ColorSwatchPicker"===e}(r.type)&&"name"in r&&"props"in r?ko(r.name,{...r.props,onPress:()=>{n(r.name)}}):r}}))),[e]),v=(0,r.useMemo)((()=>{if(("mobile"===l||s&&"tablet"===l)&&!u)return g("tablet"===l?h:f,d);if(u){let t=e[u];return(0,i.kG)(t,`Toolbar item with name ${u} not found`),[ko("back",{icon:Jn.QUb,onPress:()=>{d(null)},"aria-label":c(So.back)}),{type:"spacer"},..."children"in t?t.children:[Bo(t,{icon:void 0})]]}return m(p)}),[l,s,u,g,h,f,e,c,m,p]);return{items:(0,r.useMemo)((()=>function(e,t){return e.flatMap(((n,r)=>r<e.length-1?[n,t]:[n]))}(v,{type:"separator"}).map(((e,t)=>{if("name"in e)return e;let n=`${e.type}-${t}`;return{...e,name:n}}))),[v]),setExpanded:d}}((e,t)=>{for(var n in t)er(e,n,{get:t[n],enumerable:!0})})({},{createActionButtonToolbarItem:()=>Co,createActionGroupToolbarItem:()=>Eo,createActionIconButtonToolbarItem:()=>ko,createBlockToolbarItem:()=>Lo,createButtonSelectToolbarItem:()=>zo,createCheckboxToolbarItem:()=>Po,createColorSwatchPickerToolbarItem:()=>Do,createComboBoxToolbarItem:()=>Ao,createDomNodeRendererToolbarItem:()=>No,createIconColorInputToolbarItem:()=>To,createIconSelectToolbarItem:()=>Io,createIconSliderToolbarItem:()=>Mo,createPaginationToolbarItem:()=>Oo,createReactElementToolbarItem:()=>Fo,createTaggedPaginationToolbarItem:()=>jo,createToggleIconButtonToolbarItem:()=>Ro,overrideToolbarItemProps:()=>Bo,useResponsiveToolbarItems:()=>_o});var So=(0,o.defineMessages)({back:{id:"back",defaultMessage:"Back"}});function Co(e,t){return{name:e,type:"ActionButton",props:t}}function Eo(e,t){return{name:e,type:"ActionGroup",props:t}}function ko(e,t){return{name:e,type:"ActionIconButton",props:t}}function zo(e,t){return{name:e,type:"ButtonSelect",props:t}}function Po(e,t){return{name:e,type:"Checkbox",props:t}}function Do(e,t){return{name:e,type:"ColorSwatchPicker",props:t}}function Ao(e,t){return{name:e,type:"ComboBox",props:t}}function To(e,t){return{name:e,type:"IconColorInput",props:t}}function Io(e,t){return{name:e,type:"IconSelect",props:t}}function Mo(e,t){return{name:e,type:"IconSlider",props:t}}function Ro(e,t){return{name:e,type:"ToggleIconButton",props:t}}function Fo(e,t){return{name:e,type:"ReactElement",props:t}}function No(e,t){return{name:e,type:"DomNodeRenderer",props:t}}function Oo(e,t){return{name:e,type:"Pagination",props:t}}function jo(e,t){return{name:e,type:"TaggedPagination",props:t}}function Lo(e,t){return{name:e,type:"Block",props:t}}function Bo(e,t){return{...e,props:{...e.props,...t}}}var Ko={from:{opacity:0,transform:"translateX(10px)"},enter:{opacity:1,transform:"translateX(0px)"},leave:{opacity:0,transform:"translateX(10px)"}},Vo=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:i,...a},s)=>{let c=r.useRef(null),u={...a,...sr({ref:c,initialState:t,state:n,onChange:i}),ref:tr(s,c)},d=(({intl:{formatMessage:e},titleId:t,onCloseRequest:n,isOpen:i,topOffset:a,content:s,"data-block-id":c="chat-dialog-decorator","data-block-class":u})=>{let d=(0,o.useDevice)(),h=(0,r.useMemo)((()=>({"aria-labelledby":t})),[t]),f=(0,r.useMemo)((()=>({onOpenChange:n})),[n]),m=(0,r.useMemo)((()=>({enableDrawer:!0})),[]);return"mobile"===d?l(wr,{"data-block-id":c,"data-block-class":u,dialogProps:h,modalProps:f,modalContentProps:m,content:s}):l(o.Transition,{"data-block-id":c,"data-block-class":u,isMounted:i,transitions:Ko,className:"rohv070 _1yep5z6ho _1yep5z6hp _1yep5z6hq _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie",style:{top:`calc(${a??0}px + ${p.themeVars.spacing.xl})`},children:l(o.Drawer,{className:"_1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6c0 _1yep5z6c1 _1yep5z6c2 _1yep5z6co _1yep5z6cp _1yep5z6cq _1yep5z6kw",title:e("chat"),onCloseRequest:n,children:s})})})(u);return e?e({...u,ui:d}):d.createComponent()}));Vo.displayName="ChatDialogDecorator";var Ho=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:a,...s},u)=>{let d=r.useRef(null),p={...s,...sr({ref:d,initialState:t,state:n,onChange:a}),ref:tr(u,d)},h=(({content:e,referenceRect:t,variant:n,dialogTitleId:r,onOutsideClick:a,boundaryElement:s,"data-block-id":u="comment-thread-decorator","data-block-class":d})=>"mobile"===(0,o.useDevice)()?l(o.Modal,{isOpen:!0,"data-block-id":u,"data-block-class":d,children:l(o.ModalContent,{enableDrawer:!0,children:l(o.Dialog,{inheritDrawer:!0,"aria-labelledby":r,variant:"ghost",size:"content",children:e})})}):"sidebar"===n?l("div",{"data-block-id":u,"data-block-class":d,children:e}):c(o.Popover,{"data-block-id":u,"data-block-class":d,type:"dialog",isOpen:!!t,onOpenChange:e=>{e||a?.()},children:[l(o.PopoverTrigger,{anchorRect:t}),l(o.PopoverContent,{includeArrow:!0,className:(0,i.AK)("_1yep5z6d7 _1yep5z6hr _1yep5z6hs _1yep5z6ht","PSPDFKit-Comment-Thread-Popover"),contentContainerStyle:{overflow:"hidden"},contentContainerClassName:"_1yep5z6i0 _1yep5z6i1 _1yep5z6i2",boundaryElement:s?.querySelector(".PSPDFKit-Viewport")||void 0,shouldCloseOnInteractOutside:e=>!(e.dataset?.annotationId||e.classList.contains("PSPDFKit-Comment-Marker-Annotation-Selected")),children:l(o.Dialog,{size:"content","aria-labelledby":r,className:"_1yep5z6vz _1yep5z6w0 _1yep5z6w1 _1yep5z6wn _1yep5z6wo _1yep5z6wp _1yep5z6xb _1yep5z6xc _1yep5z6xd _1yep5z6xz _1yep5z6y0 _1yep5z6y1 _1yep5z613b _1yep5z613c _1yep5z613d",style:{overflow:"hidden"},children:e})})]}))(p);return e?e({...p,ui:h}):h.createComponent()}));Ho.displayName="CommentThreadDecorator";var $o=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:o,...i},a)=>{let s=r.useRef(null),c=sr({ref:s,initialState:t,state:n,onChange:o}),u="children"in i&&i.children;(0,r.useEffect)((()=>{if(u)throw new Error("A component with children is not supported")}),[u]);let d={...i,...c,ref:tr(a,s)},p=(({ref:e,className:t,"data-block-id":n="component-recipe","data-block-class":r,component:o,style:i,componentProps:a})=>l("div",{ref:e,style:i,className:t,"data-block-id":n,"data-block-class":r,children:l(o,{...a})}))(d);return e?e({...d,ui:p}):p.createComponent()}));function Uo(e,t,n){let o=r.forwardRef(((e,r)=>{let{componentProps:o,...a}=n,{className:s,style:l,"data-block-id":c,"data-block-class":u,ref:d,children:p,...m}=e,g={...(0,f.dG)(a,{className:(0,i.AK)(s,e.className),"data-block-id":c,"data-block-class":u}),style:{...l,...e.style},ref:tr(r,d),children:p},v={...(0,f.dG)(o,m),style:{...o?.style,...m.style}};return(0,h.jsx)($o,{component:t,...g,componentProps:v})}));return o.displayName=e,o}$o.displayName="ComponentRecipe";Uo("Thumbnails",o.ImageGallery,{"data-block-id":"thumbnails",className:"PSPDFKit-Image-Gallery",componentProps:{imageWidth:"md",selectionMode:"single",className:"ul2ubl0","data-block-id":"body"}});var Zo=fr({defaultClassName:"_15g6utz2 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ky",variantClassNames:{isSelected:{true:"_15g6utz3"},isEditMode:{true:"_15g6utz4"},isFocused:{true:"_15g6utz5"}},defaultVariants:{},compoundVariants:[]}),qo=fr({defaultClassName:"_15g6utz0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6jc _1yep5z6jd _1yep5z6je",variantClassNames:{isEmptyState:{true:"_15g6utz1"}},defaultVariants:{},compoundVariants:[]}),Go="_15g6utza",Wo="_15g6utz9",{color:Yo}=p.themeVars,Xo=(0,o.defineMessages)({edit:{id:"edit",defaultMessage:"Edit"}}),Qo=(e,t)=>((0,i.kG)(e.value&&"icon"in e.value&&e.value.icon,"Item value is required."),(0,h.jsx)(o.ActionIconButton,{"aria-label":e.textValue,icon:e.value.icon,isDisabled:t.isDisabled,className:Go,variant:"secondary"})),{color:Jo}=p.themeVars,ei="add-bookmark",ti="edit-bookmark",ni="delete-bookmark",ri=({ref:e,bookmarks:t,style:n,className:s,bookmarkItemClassName:u,selectedKey:d,onSelectionChange:p,onBookmarkAdd:g,onBookmarkDelete:v,onBookmarkUpdate:y,intl:{formatMessage:b},"data-block-id":w="bookmarks","data-block-class":x,"aria-label":_})=>{let[S,C]=(0,r.useState)(null),[E,k]=(0,r.useState)(!1),z=(0,r.useRef)(null),P=(0,f.bO)(),D=!!d,A=d?[d]:[],T=p?e=>{p([...e][0])}:void 0,I=(0,r.useCallback)(((e,t,n)=>(({textValue:e,value:t,props:n},{gridCellProps:a,rowProps:s,isSelected:l,isFocused:c},u)=>{let{formatMessage:d}=(0,o.useI18n)(),{isFocusVisible:p}=(0,f._Y)();(0,i.kG)(t,"invalid value in bookmark item"),(0,i.kG)("pageNumber"in t,"invalid page number in bookmark item"),(0,i.kG)("id"in t,"invalid id in bookmark item");let{id:g,pageNumber:v}=t,y=g===n.selectedKey&&"edit"===n.mode,b=(0,r.useCallback)((e=>{"Enter"===e.key?(n?.onBookmarkUpdate(g,e.currentTarget.value),n.setMode(null)):"Escape"===e.key&&n.setMode(null)}),[n,g]),w=(0,r.useCallback)((()=>{n.setMode("edit")}),[n]);return(0,h.jsx)("li",{...s,className:(0,i.AK)(Zo({isSelected:l,isEditMode:y,isFocused:p&&c&&!y}),n.bookmarkItemClassName),ref:u,children:(0,h.jsxs)(o.Box,{display:"flex",gap:"sm",alignItems:"center",onDoubleClick:w,...a,children:[(0,h.jsx)(m.pl,{color:Yo.icon.disabled}),y?(0,h.jsx)(f.MT,{autoFocus:!0,restoreFocus:!0,children:(0,h.jsx)(o.TextInput,{"aria-label":d(Xo.edit),defaultValue:e,className:"_15g6utz8",inputClassName:Wo,onKeyDown:b,onBlur:()=>n.setMode(null)})}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(o.Text,{type:"label",size:"sm",className:"_15g6utz6 _1yep5z6jc _1yep5z6jd _1yep5z6je _1yep5z689 _1yep5z68a _1yep5z68b",children:e}),(0,h.jsx)(o.Text,{type:"value",size:"sm",className:"_15g6utz7 _1yep5z6ey",children:v})]})]})})})({...e,props:{selectedKey:d,mode:S,setMode:C,onBookmarkUpdate:y,bookmarkItemClassName:u}},t,n)),[S,d,y,u]),M=0===t.length,R=[{id:ei,label:b(oi.addBookmark),icon:a.pO},{id:ti,label:b(oi.edit),icon:a.dY},{id:ni,label:b(oi.delete),icon:a.XH}];return c(o.Box,{display:"flex",flexDirection:"column",height:"full",className:s,style:n,"data-block-id":w,"data-block-class":x,ref:e,children:[c("div",{children:[l(o.Box,{paddingX:"lg",paddingY:"md",children:l(o.Text,{type:"title",size:"sm",className:"_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678",children:b(oi.bookmarks)})}),l(o.Separator,{})]}),c("div",{className:qo({isEmptyState:M&&"add"!==S}),children:[M?"add"!==S&&l(o.Box,{flex:1,display:"flex",justifyContent:"center",alignItems:"center",children:l(o.Text,{type:"helper",children:b(oi.noBookmarks)})}):l("div",{onKeyDownCapture:e=>{!d||"edit"===S||("Backspace"===e.key||"Delete"===e.key?k(!0):"Enter"===e.key&&"true"===e.target.getAttribute("aria-selected")&&C("edit"))},children:l(o.GridList,{items:t,renderGridItem:I,selectionMode:"single","aria-label":_,selectedKeys:A,onSelectionChange:T,isEditing:"edit"===S,disallowEmptySelection:!0})}),"add"===S&&l("li",{className:Zo({isSelected:!0,isEditMode:!0}),children:c(o.Box,{display:"flex",gap:"sm",alignItems:"center",children:[l(m.pl,{color:Jo.icon.disabled}),l(o.TextInput,{ref:z,"aria-label":b(oi.addBookmark),placeholder:b(oi.addBookmark),autoFocus:!0,inputClassName:Wo,onKeyDown:e=>{"Enter"===e.key?(g?.(e.currentTarget.value),C(null)):"Escape"===e.key&&C(null)},onBlur:()=>{C(null)}})]})})]}),l(o.Modal,{isOpen:E,children:l(o.ModalContent,{children:l(o.AlertDialog,{title:b(oi.deleteBookmarkConfirmMessage),primaryActionLabel:b(oi.delete),cancelLabel:b(oi.cancel),showCloseButton:!1,onPrimaryAction:()=>{d&&(v?.(String(d)),p?.()),k(!1),P?.focusPrevious()},onCancel:()=>{k(!1),P?.focusPrevious()}})})}),c("div",{children:[l(o.Separator,{}),l(o.ActionGroup,{className:Go,items:R,disabledKeys:D?[]:[ti,ni],onAction:e=>{switch(e){case ei:C("add"),z.current?.scrollIntoView({behavior:"smooth",block:"nearest"});break;case ti:C("edit");break;case ni:k(!0)}},renderActionItem:Qo})]})]})},oi=(0,o.defineMessages)({bookmarks:{id:"bookmarks",defaultMessage:"Bookmarks"},noBookmarks:{id:"noBookmarks",defaultMessage:"No Bookmarks"},addBookmark:{id:"addBookmark",defaultMessage:"Add bookmark"},edit:{id:"edit",defaultMessage:"Edit"},delete:{id:"delete",defaultMessage:"Delete"},deleteBookmarkConfirmMessage:{id:"deleteBookmarkConfirmMessage",defaultMessage:"Are you sure you want to delete this bookmark?"},cancel:{id:"cancel",defaultMessage:"Cancel"}}),ii=(0,r.forwardRef)((({children:e,initialState:t={},state:n,onStateChange:o,...i},a)=>{let s=(0,r.useRef)(null),l={...i,...sr({ref:s,initialState:t,state:n,onChange:o}),ref:tr(a,s)},c=ri(l);return e?e({...l,ui:c}):c.createComponent()}));ii.displayName="Bookmarks";Uo("PasswordDialog",o.AlertDialog,{"data-block-id":"password-dialog",componentProps:{className:"PSPDFKit-Password-Dialog","data-block-id":"body"}})},85816:(e,t,n)=>{"use strict";n.d(t,{$_:()=>g,Kj:()=>x,Wb:()=>m,layoutSprinkleValues:()=>w,o$:()=>y,themeVars:()=>v});var r=n(96486);function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(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){i(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}var l,c=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Object.assign({},...n.map((e=>e.styles))),i=Object.keys(o),a=i.filter((e=>"mappings"in o[e])),l=t=>{var n=[],r={},i=s({},t),l=!1;for(var c of a){var u=t[c];if(null!=u){var d=o[c];for(var p of(l=!0,d.mappings))r[p]=u,null==i[p]&&delete i[p]}}var h=l?s(s({},r),i):t,f=function(){var e=h[m],t=o[m];try{if(t.mappings)return 1;if("string"==typeof e||"number"==typeof e)n.push(t.values[e].defaultClass);else if(Array.isArray(e))for(var r=0;r<e.length;r++){var i=e[r];if(null!=i){var a=t.responsiveArray[r];0,n.push(t.values[i].conditions[a])}}else for(var s in e){var l=e[s];null!=l&&n.push(t.values[l].conditions[s])}}catch(e){throw e}};for(var m in h)f();return e(n.join(" "))};return Object.assign(l,{properties:new Set(i)})},u=e=>e,d=function(){return c(u)(...arguments)},p=d(((l={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{paddingLeft:{mappings:["paddingInlineStart"]},paddingRight:{mappings:["paddingInlineEnd"]},paddingTop:{mappings:["paddingBlockStart"]},paddingBottom:{mappings:["paddingBlockEnd"]},padding:{mappings:["paddingBlockStart","paddingBlockEnd","paddingInlineStart","paddingInlineEnd"]},paddingX:{mappings:["paddingInlineStart","paddingInlineEnd"]},paddingY:{mappings:["paddingBlockStart","paddingBlockEnd"]},marginLeft:{mappings:["marginInlineStart"]},marginRight:{mappings:["marginInlineEnd"]},marginTop:{mappings:["marginBlockStart"]},marginBottom:{mappings:["marginBlockEnd"]},margin:{mappings:["marginBlockStart","marginBlockEnd","marginInlineStart","marginInlineEnd"]},marginX:{mappings:["marginInlineStart","marginInlineEnd"]},marginY:{mappings:["marginBlockStart","marginBlockEnd"]},paddingBlockStart:{values:{xs:{conditions:{mobile:"_1yep5z60",tablet:"_1yep5z61",desktop:"_1yep5z62"},defaultClass:"_1yep5z60 _1yep5z61 _1yep5z62"},sm:{conditions:{mobile:"_1yep5z63",tablet:"_1yep5z64",desktop:"_1yep5z65"},defaultClass:"_1yep5z63 _1yep5z64 _1yep5z65"},md:{conditions:{mobile:"_1yep5z66",tablet:"_1yep5z67",desktop:"_1yep5z68"},defaultClass:"_1yep5z66 _1yep5z67 _1yep5z68"},lg:{conditions:{mobile:"_1yep5z69",tablet:"_1yep5z6a",desktop:"_1yep5z6b"},defaultClass:"_1yep5z69 _1yep5z6a _1yep5z6b"},xl:{conditions:{mobile:"_1yep5z6c",tablet:"_1yep5z6d",desktop:"_1yep5z6e"},defaultClass:"_1yep5z6c _1yep5z6d _1yep5z6e"},"2xl":{conditions:{mobile:"_1yep5z6f",tablet:"_1yep5z6g",desktop:"_1yep5z6h"},defaultClass:"_1yep5z6f _1yep5z6g _1yep5z6h"},"3xl":{conditions:{mobile:"_1yep5z6i",tablet:"_1yep5z6j",desktop:"_1yep5z6k"},defaultClass:"_1yep5z6i _1yep5z6j _1yep5z6k"},"4xl":{conditions:{mobile:"_1yep5z6l",tablet:"_1yep5z6m",desktop:"_1yep5z6n"},defaultClass:"_1yep5z6l _1yep5z6m _1yep5z6n"},"5xl":{conditions:{mobile:"_1yep5z6o",tablet:"_1yep5z6p",desktop:"_1yep5z6q"},defaultClass:"_1yep5z6o _1yep5z6p _1yep5z6q"},"6xl":{conditions:{mobile:"_1yep5z6r",tablet:"_1yep5z6s",desktop:"_1yep5z6t"},defaultClass:"_1yep5z6r _1yep5z6s _1yep5z6t"},"7xl":{conditions:{mobile:"_1yep5z6u",tablet:"_1yep5z6v",desktop:"_1yep5z6w"},defaultClass:"_1yep5z6u _1yep5z6v _1yep5z6w"},"8xl":{conditions:{mobile:"_1yep5z6x",tablet:"_1yep5z6y",desktop:"_1yep5z6z"},defaultClass:"_1yep5z6x _1yep5z6y _1yep5z6z"},"9xl":{conditions:{mobile:"_1yep5z610",tablet:"_1yep5z611",desktop:"_1yep5z612"},defaultClass:"_1yep5z610 _1yep5z611 _1yep5z612"},none:{conditions:{mobile:"_1yep5z613",tablet:"_1yep5z614",desktop:"_1yep5z615"},defaultClass:"_1yep5z613 _1yep5z614 _1yep5z615"}},responsiveArray:void 0},paddingInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z616",tablet:"_1yep5z617",desktop:"_1yep5z618"},defaultClass:"_1yep5z616 _1yep5z617 _1yep5z618"},sm:{conditions:{mobile:"_1yep5z619",tablet:"_1yep5z61a",desktop:"_1yep5z61b"},defaultClass:"_1yep5z619 _1yep5z61a _1yep5z61b"},md:{conditions:{mobile:"_1yep5z61c",tablet:"_1yep5z61d",desktop:"_1yep5z61e"},defaultClass:"_1yep5z61c _1yep5z61d _1yep5z61e"},lg:{conditions:{mobile:"_1yep5z61f",tablet:"_1yep5z61g",desktop:"_1yep5z61h"},defaultClass:"_1yep5z61f _1yep5z61g _1yep5z61h"},xl:{conditions:{mobile:"_1yep5z61i",tablet:"_1yep5z61j",desktop:"_1yep5z61k"},defaultClass:"_1yep5z61i _1yep5z61j _1yep5z61k"},"2xl":{conditions:{mobile:"_1yep5z61l",tablet:"_1yep5z61m",desktop:"_1yep5z61n"},defaultClass:"_1yep5z61l _1yep5z61m _1yep5z61n"},"3xl":{conditions:{mobile:"_1yep5z61o",tablet:"_1yep5z61p",desktop:"_1yep5z61q"},defaultClass:"_1yep5z61o _1yep5z61p _1yep5z61q"},"4xl":{conditions:{mobile:"_1yep5z61r",tablet:"_1yep5z61s",desktop:"_1yep5z61t"},defaultClass:"_1yep5z61r _1yep5z61s _1yep5z61t"},"5xl":{conditions:{mobile:"_1yep5z61u",tablet:"_1yep5z61v",desktop:"_1yep5z61w"},defaultClass:"_1yep5z61u _1yep5z61v _1yep5z61w"},"6xl":{conditions:{mobile:"_1yep5z61x",tablet:"_1yep5z61y",desktop:"_1yep5z61z"},defaultClass:"_1yep5z61x _1yep5z61y _1yep5z61z"},"7xl":{conditions:{mobile:"_1yep5z620",tablet:"_1yep5z621",desktop:"_1yep5z622"},defaultClass:"_1yep5z620 _1yep5z621 _1yep5z622"},"8xl":{conditions:{mobile:"_1yep5z623",tablet:"_1yep5z624",desktop:"_1yep5z625"},defaultClass:"_1yep5z623 _1yep5z624 _1yep5z625"},"9xl":{conditions:{mobile:"_1yep5z626",tablet:"_1yep5z627",desktop:"_1yep5z628"},defaultClass:"_1yep5z626 _1yep5z627 _1yep5z628"},none:{conditions:{mobile:"_1yep5z629",tablet:"_1yep5z62a",desktop:"_1yep5z62b"},defaultClass:"_1yep5z629 _1yep5z62a _1yep5z62b"}},responsiveArray:void 0},paddingBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z62c",tablet:"_1yep5z62d",desktop:"_1yep5z62e"},defaultClass:"_1yep5z62c _1yep5z62d _1yep5z62e"},sm:{conditions:{mobile:"_1yep5z62f",tablet:"_1yep5z62g",desktop:"_1yep5z62h"},defaultClass:"_1yep5z62f _1yep5z62g _1yep5z62h"},md:{conditions:{mobile:"_1yep5z62i",tablet:"_1yep5z62j",desktop:"_1yep5z62k"},defaultClass:"_1yep5z62i _1yep5z62j _1yep5z62k"},lg:{conditions:{mobile:"_1yep5z62l",tablet:"_1yep5z62m",desktop:"_1yep5z62n"},defaultClass:"_1yep5z62l _1yep5z62m _1yep5z62n"},xl:{conditions:{mobile:"_1yep5z62o",tablet:"_1yep5z62p",desktop:"_1yep5z62q"},defaultClass:"_1yep5z62o _1yep5z62p _1yep5z62q"},"2xl":{conditions:{mobile:"_1yep5z62r",tablet:"_1yep5z62s",desktop:"_1yep5z62t"},defaultClass:"_1yep5z62r _1yep5z62s _1yep5z62t"},"3xl":{conditions:{mobile:"_1yep5z62u",tablet:"_1yep5z62v",desktop:"_1yep5z62w"},defaultClass:"_1yep5z62u _1yep5z62v _1yep5z62w"},"4xl":{conditions:{mobile:"_1yep5z62x",tablet:"_1yep5z62y",desktop:"_1yep5z62z"},defaultClass:"_1yep5z62x _1yep5z62y _1yep5z62z"},"5xl":{conditions:{mobile:"_1yep5z630",tablet:"_1yep5z631",desktop:"_1yep5z632"},defaultClass:"_1yep5z630 _1yep5z631 _1yep5z632"},"6xl":{conditions:{mobile:"_1yep5z633",tablet:"_1yep5z634",desktop:"_1yep5z635"},defaultClass:"_1yep5z633 _1yep5z634 _1yep5z635"},"7xl":{conditions:{mobile:"_1yep5z636",tablet:"_1yep5z637",desktop:"_1yep5z638"},defaultClass:"_1yep5z636 _1yep5z637 _1yep5z638"},"8xl":{conditions:{mobile:"_1yep5z639",tablet:"_1yep5z63a",desktop:"_1yep5z63b"},defaultClass:"_1yep5z639 _1yep5z63a _1yep5z63b"},"9xl":{conditions:{mobile:"_1yep5z63c",tablet:"_1yep5z63d",desktop:"_1yep5z63e"},defaultClass:"_1yep5z63c _1yep5z63d _1yep5z63e"},none:{conditions:{mobile:"_1yep5z63f",tablet:"_1yep5z63g",desktop:"_1yep5z63h"},defaultClass:"_1yep5z63f _1yep5z63g _1yep5z63h"}},responsiveArray:void 0},paddingInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z63i",tablet:"_1yep5z63j",desktop:"_1yep5z63k"},defaultClass:"_1yep5z63i _1yep5z63j _1yep5z63k"},sm:{conditions:{mobile:"_1yep5z63l",tablet:"_1yep5z63m",desktop:"_1yep5z63n"},defaultClass:"_1yep5z63l _1yep5z63m _1yep5z63n"},md:{conditions:{mobile:"_1yep5z63o",tablet:"_1yep5z63p",desktop:"_1yep5z63q"},defaultClass:"_1yep5z63o _1yep5z63p _1yep5z63q"},lg:{conditions:{mobile:"_1yep5z63r",tablet:"_1yep5z63s",desktop:"_1yep5z63t"},defaultClass:"_1yep5z63r _1yep5z63s _1yep5z63t"},xl:{conditions:{mobile:"_1yep5z63u",tablet:"_1yep5z63v",desktop:"_1yep5z63w"},defaultClass:"_1yep5z63u _1yep5z63v _1yep5z63w"},"2xl":{conditions:{mobile:"_1yep5z63x",tablet:"_1yep5z63y",desktop:"_1yep5z63z"},defaultClass:"_1yep5z63x _1yep5z63y _1yep5z63z"},"3xl":{conditions:{mobile:"_1yep5z640",tablet:"_1yep5z641",desktop:"_1yep5z642"},defaultClass:"_1yep5z640 _1yep5z641 _1yep5z642"},"4xl":{conditions:{mobile:"_1yep5z643",tablet:"_1yep5z644",desktop:"_1yep5z645"},defaultClass:"_1yep5z643 _1yep5z644 _1yep5z645"},"5xl":{conditions:{mobile:"_1yep5z646",tablet:"_1yep5z647",desktop:"_1yep5z648"},defaultClass:"_1yep5z646 _1yep5z647 _1yep5z648"},"6xl":{conditions:{mobile:"_1yep5z649",tablet:"_1yep5z64a",desktop:"_1yep5z64b"},defaultClass:"_1yep5z649 _1yep5z64a _1yep5z64b"},"7xl":{conditions:{mobile:"_1yep5z64c",tablet:"_1yep5z64d",desktop:"_1yep5z64e"},defaultClass:"_1yep5z64c _1yep5z64d _1yep5z64e"},"8xl":{conditions:{mobile:"_1yep5z64f",tablet:"_1yep5z64g",desktop:"_1yep5z64h"},defaultClass:"_1yep5z64f _1yep5z64g _1yep5z64h"},"9xl":{conditions:{mobile:"_1yep5z64i",tablet:"_1yep5z64j",desktop:"_1yep5z64k"},defaultClass:"_1yep5z64i _1yep5z64j _1yep5z64k"},none:{conditions:{mobile:"_1yep5z64l",tablet:"_1yep5z64m",desktop:"_1yep5z64n"},defaultClass:"_1yep5z64l _1yep5z64m _1yep5z64n"}},responsiveArray:void 0},marginBlockStart:{values:{xs:{conditions:{mobile:"_1yep5z64o",tablet:"_1yep5z64p",desktop:"_1yep5z64q"},defaultClass:"_1yep5z64o _1yep5z64p _1yep5z64q"},sm:{conditions:{mobile:"_1yep5z64r",tablet:"_1yep5z64s",desktop:"_1yep5z64t"},defaultClass:"_1yep5z64r _1yep5z64s _1yep5z64t"},md:{conditions:{mobile:"_1yep5z64u",tablet:"_1yep5z64v",desktop:"_1yep5z64w"},defaultClass:"_1yep5z64u _1yep5z64v _1yep5z64w"},lg:{conditions:{mobile:"_1yep5z64x",tablet:"_1yep5z64y",desktop:"_1yep5z64z"},defaultClass:"_1yep5z64x _1yep5z64y _1yep5z64z"},xl:{conditions:{mobile:"_1yep5z650",tablet:"_1yep5z651",desktop:"_1yep5z652"},defaultClass:"_1yep5z650 _1yep5z651 _1yep5z652"},"2xl":{conditions:{mobile:"_1yep5z653",tablet:"_1yep5z654",desktop:"_1yep5z655"},defaultClass:"_1yep5z653 _1yep5z654 _1yep5z655"},"3xl":{conditions:{mobile:"_1yep5z656",tablet:"_1yep5z657",desktop:"_1yep5z658"},defaultClass:"_1yep5z656 _1yep5z657 _1yep5z658"},"4xl":{conditions:{mobile:"_1yep5z659",tablet:"_1yep5z65a",desktop:"_1yep5z65b"},defaultClass:"_1yep5z659 _1yep5z65a _1yep5z65b"},"5xl":{conditions:{mobile:"_1yep5z65c",tablet:"_1yep5z65d",desktop:"_1yep5z65e"},defaultClass:"_1yep5z65c _1yep5z65d _1yep5z65e"},"6xl":{conditions:{mobile:"_1yep5z65f",tablet:"_1yep5z65g",desktop:"_1yep5z65h"},defaultClass:"_1yep5z65f _1yep5z65g _1yep5z65h"},"7xl":{conditions:{mobile:"_1yep5z65i",tablet:"_1yep5z65j",desktop:"_1yep5z65k"},defaultClass:"_1yep5z65i _1yep5z65j _1yep5z65k"},"8xl":{conditions:{mobile:"_1yep5z65l",tablet:"_1yep5z65m",desktop:"_1yep5z65n"},defaultClass:"_1yep5z65l _1yep5z65m _1yep5z65n"},"9xl":{conditions:{mobile:"_1yep5z65o",tablet:"_1yep5z65p",desktop:"_1yep5z65q"},defaultClass:"_1yep5z65o _1yep5z65p _1yep5z65q"},none:{conditions:{mobile:"_1yep5z65r",tablet:"_1yep5z65s",desktop:"_1yep5z65t"},defaultClass:"_1yep5z65r _1yep5z65s _1yep5z65t"}},responsiveArray:void 0},marginInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z65u",tablet:"_1yep5z65v",desktop:"_1yep5z65w"},defaultClass:"_1yep5z65u _1yep5z65v _1yep5z65w"},sm:{conditions:{mobile:"_1yep5z65x",tablet:"_1yep5z65y",desktop:"_1yep5z65z"},defaultClass:"_1yep5z65x _1yep5z65y _1yep5z65z"},md:{conditions:{mobile:"_1yep5z660",tablet:"_1yep5z661",desktop:"_1yep5z662"},defaultClass:"_1yep5z660 _1yep5z661 _1yep5z662"},lg:{conditions:{mobile:"_1yep5z663",tablet:"_1yep5z664",desktop:"_1yep5z665"},defaultClass:"_1yep5z663 _1yep5z664 _1yep5z665"},xl:{conditions:{mobile:"_1yep5z666",tablet:"_1yep5z667",desktop:"_1yep5z668"},defaultClass:"_1yep5z666 _1yep5z667 _1yep5z668"},"2xl":{conditions:{mobile:"_1yep5z669",tablet:"_1yep5z66a",desktop:"_1yep5z66b"},defaultClass:"_1yep5z669 _1yep5z66a _1yep5z66b"},"3xl":{conditions:{mobile:"_1yep5z66c",tablet:"_1yep5z66d",desktop:"_1yep5z66e"},defaultClass:"_1yep5z66c _1yep5z66d _1yep5z66e"},"4xl":{conditions:{mobile:"_1yep5z66f",tablet:"_1yep5z66g",desktop:"_1yep5z66h"},defaultClass:"_1yep5z66f _1yep5z66g _1yep5z66h"},"5xl":{conditions:{mobile:"_1yep5z66i",tablet:"_1yep5z66j",desktop:"_1yep5z66k"},defaultClass:"_1yep5z66i _1yep5z66j _1yep5z66k"},"6xl":{conditions:{mobile:"_1yep5z66l",tablet:"_1yep5z66m",desktop:"_1yep5z66n"},defaultClass:"_1yep5z66l _1yep5z66m _1yep5z66n"},"7xl":{conditions:{mobile:"_1yep5z66o",tablet:"_1yep5z66p",desktop:"_1yep5z66q"},defaultClass:"_1yep5z66o _1yep5z66p _1yep5z66q"},"8xl":{conditions:{mobile:"_1yep5z66r",tablet:"_1yep5z66s",desktop:"_1yep5z66t"},defaultClass:"_1yep5z66r _1yep5z66s _1yep5z66t"},"9xl":{conditions:{mobile:"_1yep5z66u",tablet:"_1yep5z66v",desktop:"_1yep5z66w"},defaultClass:"_1yep5z66u _1yep5z66v _1yep5z66w"},none:{conditions:{mobile:"_1yep5z66x",tablet:"_1yep5z66y",desktop:"_1yep5z66z"},defaultClass:"_1yep5z66x _1yep5z66y _1yep5z66z"}},responsiveArray:void 0},marginBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z670",tablet:"_1yep5z671",desktop:"_1yep5z672"},defaultClass:"_1yep5z670 _1yep5z671 _1yep5z672"},sm:{conditions:{mobile:"_1yep5z673",tablet:"_1yep5z674",desktop:"_1yep5z675"},defaultClass:"_1yep5z673 _1yep5z674 _1yep5z675"},md:{conditions:{mobile:"_1yep5z676",tablet:"_1yep5z677",desktop:"_1yep5z678"},defaultClass:"_1yep5z676 _1yep5z677 _1yep5z678"},lg:{conditions:{mobile:"_1yep5z679",tablet:"_1yep5z67a",desktop:"_1yep5z67b"},defaultClass:"_1yep5z679 _1yep5z67a _1yep5z67b"},xl:{conditions:{mobile:"_1yep5z67c",tablet:"_1yep5z67d",desktop:"_1yep5z67e"},defaultClass:"_1yep5z67c _1yep5z67d _1yep5z67e"},"2xl":{conditions:{mobile:"_1yep5z67f",tablet:"_1yep5z67g",desktop:"_1yep5z67h"},defaultClass:"_1yep5z67f _1yep5z67g _1yep5z67h"},"3xl":{conditions:{mobile:"_1yep5z67i",tablet:"_1yep5z67j",desktop:"_1yep5z67k"},defaultClass:"_1yep5z67i _1yep5z67j _1yep5z67k"},"4xl":{conditions:{mobile:"_1yep5z67l",tablet:"_1yep5z67m",desktop:"_1yep5z67n"},defaultClass:"_1yep5z67l _1yep5z67m _1yep5z67n"},"5xl":{conditions:{mobile:"_1yep5z67o",tablet:"_1yep5z67p",desktop:"_1yep5z67q"},defaultClass:"_1yep5z67o _1yep5z67p _1yep5z67q"},"6xl":{conditions:{mobile:"_1yep5z67r",tablet:"_1yep5z67s",desktop:"_1yep5z67t"},defaultClass:"_1yep5z67r _1yep5z67s _1yep5z67t"},"7xl":{conditions:{mobile:"_1yep5z67u",tablet:"_1yep5z67v",desktop:"_1yep5z67w"},defaultClass:"_1yep5z67u _1yep5z67v _1yep5z67w"},"8xl":{conditions:{mobile:"_1yep5z67x",tablet:"_1yep5z67y",desktop:"_1yep5z67z"},defaultClass:"_1yep5z67x _1yep5z67y _1yep5z67z"},"9xl":{conditions:{mobile:"_1yep5z680",tablet:"_1yep5z681",desktop:"_1yep5z682"},defaultClass:"_1yep5z680 _1yep5z681 _1yep5z682"},none:{conditions:{mobile:"_1yep5z683",tablet:"_1yep5z684",desktop:"_1yep5z685"},defaultClass:"_1yep5z683 _1yep5z684 _1yep5z685"}},responsiveArray:void 0},marginInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z686",tablet:"_1yep5z687",desktop:"_1yep5z688"},defaultClass:"_1yep5z686 _1yep5z687 _1yep5z688"},sm:{conditions:{mobile:"_1yep5z689",tablet:"_1yep5z68a",desktop:"_1yep5z68b"},defaultClass:"_1yep5z689 _1yep5z68a _1yep5z68b"},md:{conditions:{mobile:"_1yep5z68c",tablet:"_1yep5z68d",desktop:"_1yep5z68e"},defaultClass:"_1yep5z68c _1yep5z68d _1yep5z68e"},lg:{conditions:{mobile:"_1yep5z68f",tablet:"_1yep5z68g",desktop:"_1yep5z68h"},defaultClass:"_1yep5z68f _1yep5z68g _1yep5z68h"},xl:{conditions:{mobile:"_1yep5z68i",tablet:"_1yep5z68j",desktop:"_1yep5z68k"},defaultClass:"_1yep5z68i _1yep5z68j _1yep5z68k"},"2xl":{conditions:{mobile:"_1yep5z68l",tablet:"_1yep5z68m",desktop:"_1yep5z68n"},defaultClass:"_1yep5z68l _1yep5z68m _1yep5z68n"},"3xl":{conditions:{mobile:"_1yep5z68o",tablet:"_1yep5z68p",desktop:"_1yep5z68q"},defaultClass:"_1yep5z68o _1yep5z68p _1yep5z68q"},"4xl":{conditions:{mobile:"_1yep5z68r",tablet:"_1yep5z68s",desktop:"_1yep5z68t"},defaultClass:"_1yep5z68r _1yep5z68s _1yep5z68t"},"5xl":{conditions:{mobile:"_1yep5z68u",tablet:"_1yep5z68v",desktop:"_1yep5z68w"},defaultClass:"_1yep5z68u _1yep5z68v _1yep5z68w"},"6xl":{conditions:{mobile:"_1yep5z68x",tablet:"_1yep5z68y",desktop:"_1yep5z68z"},defaultClass:"_1yep5z68x _1yep5z68y _1yep5z68z"},"7xl":{conditions:{mobile:"_1yep5z690",tablet:"_1yep5z691",desktop:"_1yep5z692"},defaultClass:"_1yep5z690 _1yep5z691 _1yep5z692"},"8xl":{conditions:{mobile:"_1yep5z693",tablet:"_1yep5z694",desktop:"_1yep5z695"},defaultClass:"_1yep5z693 _1yep5z694 _1yep5z695"},"9xl":{conditions:{mobile:"_1yep5z696",tablet:"_1yep5z697",desktop:"_1yep5z698"},defaultClass:"_1yep5z696 _1yep5z697 _1yep5z698"},none:{conditions:{mobile:"_1yep5z699",tablet:"_1yep5z69a",desktop:"_1yep5z69b"},defaultClass:"_1yep5z699 _1yep5z69a _1yep5z69b"}},responsiveArray:void 0},gap:{values:{xs:{conditions:{mobile:"_1yep5z69c",tablet:"_1yep5z69d",desktop:"_1yep5z69e"},defaultClass:"_1yep5z69c _1yep5z69d _1yep5z69e"},sm:{conditions:{mobile:"_1yep5z69f",tablet:"_1yep5z69g",desktop:"_1yep5z69h"},defaultClass:"_1yep5z69f _1yep5z69g _1yep5z69h"},md:{conditions:{mobile:"_1yep5z69i",tablet:"_1yep5z69j",desktop:"_1yep5z69k"},defaultClass:"_1yep5z69i _1yep5z69j _1yep5z69k"},lg:{conditions:{mobile:"_1yep5z69l",tablet:"_1yep5z69m",desktop:"_1yep5z69n"},defaultClass:"_1yep5z69l _1yep5z69m _1yep5z69n"},xl:{conditions:{mobile:"_1yep5z69o",tablet:"_1yep5z69p",desktop:"_1yep5z69q"},defaultClass:"_1yep5z69o _1yep5z69p _1yep5z69q"},"2xl":{conditions:{mobile:"_1yep5z69r",tablet:"_1yep5z69s",desktop:"_1yep5z69t"},defaultClass:"_1yep5z69r _1yep5z69s _1yep5z69t"},"3xl":{conditions:{mobile:"_1yep5z69u",tablet:"_1yep5z69v",desktop:"_1yep5z69w"},defaultClass:"_1yep5z69u _1yep5z69v _1yep5z69w"},"4xl":{conditions:{mobile:"_1yep5z69x",tablet:"_1yep5z69y",desktop:"_1yep5z69z"},defaultClass:"_1yep5z69x _1yep5z69y _1yep5z69z"},"5xl":{conditions:{mobile:"_1yep5z6a0",tablet:"_1yep5z6a1",desktop:"_1yep5z6a2"},defaultClass:"_1yep5z6a0 _1yep5z6a1 _1yep5z6a2"},"6xl":{conditions:{mobile:"_1yep5z6a3",tablet:"_1yep5z6a4",desktop:"_1yep5z6a5"},defaultClass:"_1yep5z6a3 _1yep5z6a4 _1yep5z6a5"},"7xl":{conditions:{mobile:"_1yep5z6a6",tablet:"_1yep5z6a7",desktop:"_1yep5z6a8"},defaultClass:"_1yep5z6a6 _1yep5z6a7 _1yep5z6a8"},"8xl":{conditions:{mobile:"_1yep5z6a9",tablet:"_1yep5z6aa",desktop:"_1yep5z6ab"},defaultClass:"_1yep5z6a9 _1yep5z6aa _1yep5z6ab"},"9xl":{conditions:{mobile:"_1yep5z6ac",tablet:"_1yep5z6ad",desktop:"_1yep5z6ae"},defaultClass:"_1yep5z6ac _1yep5z6ad _1yep5z6ae"},none:{conditions:{mobile:"_1yep5z6af",tablet:"_1yep5z6ag",desktop:"_1yep5z6ah"},defaultClass:"_1yep5z6af _1yep5z6ag _1yep5z6ah"}},responsiveArray:void 0}}}).styles.paddingBlockStart.responsiveArray=l.conditions.responsiveArray,l.styles.paddingInlineEnd.responsiveArray=l.conditions.responsiveArray,l.styles.paddingBlockEnd.responsiveArray=l.conditions.responsiveArray,l.styles.paddingInlineStart.responsiveArray=l.conditions.responsiveArray,l.styles.marginBlockStart.responsiveArray=l.conditions.responsiveArray,l.styles.marginInlineEnd.responsiveArray=l.conditions.responsiveArray,l.styles.marginBlockEnd.responsiveArray=l.conditions.responsiveArray,l.styles.marginInlineStart.responsiveArray=l.conditions.responsiveArray,l.styles.gap.responsiveArray=l.conditions.responsiveArray,l),function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{borderRadius:{mappings:["borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius"]},borderTopRadius:{mappings:["borderStartStartRadius","borderStartEndRadius"]},borderBottomRadius:{mappings:["borderEndStartRadius","borderEndEndRadius"]},borderLeftRadius:{mappings:["borderStartStartRadius","borderEndStartRadius"]},borderRightRadius:{mappings:["borderStartEndRadius","borderEndEndRadius"]},borderStartStartRadius:{values:{xs:{conditions:{mobile:"_1yep5z6ai",tablet:"_1yep5z6aj",desktop:"_1yep5z6ak"},defaultClass:"_1yep5z6ai _1yep5z6aj _1yep5z6ak"},sm:{conditions:{mobile:"_1yep5z6al",tablet:"_1yep5z6am",desktop:"_1yep5z6an"},defaultClass:"_1yep5z6al _1yep5z6am _1yep5z6an"},md:{conditions:{mobile:"_1yep5z6ao",tablet:"_1yep5z6ap",desktop:"_1yep5z6aq"},defaultClass:"_1yep5z6ao _1yep5z6ap _1yep5z6aq"},lg:{conditions:{mobile:"_1yep5z6ar",tablet:"_1yep5z6as",desktop:"_1yep5z6at"},defaultClass:"_1yep5z6ar _1yep5z6as _1yep5z6at"},xl:{conditions:{mobile:"_1yep5z6au",tablet:"_1yep5z6av",desktop:"_1yep5z6aw"},defaultClass:"_1yep5z6au _1yep5z6av _1yep5z6aw"},"2xl":{conditions:{mobile:"_1yep5z6ax",tablet:"_1yep5z6ay",desktop:"_1yep5z6az"},defaultClass:"_1yep5z6ax _1yep5z6ay _1yep5z6az"},full:{conditions:{mobile:"_1yep5z6b0",tablet:"_1yep5z6b1",desktop:"_1yep5z6b2"},defaultClass:"_1yep5z6b0 _1yep5z6b1 _1yep5z6b2"},none:{conditions:{mobile:"_1yep5z6b3",tablet:"_1yep5z6b4",desktop:"_1yep5z6b5"},defaultClass:"_1yep5z6b3 _1yep5z6b4 _1yep5z6b5"}},responsiveArray:void 0},borderStartEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z6b6",tablet:"_1yep5z6b7",desktop:"_1yep5z6b8"},defaultClass:"_1yep5z6b6 _1yep5z6b7 _1yep5z6b8"},sm:{conditions:{mobile:"_1yep5z6b9",tablet:"_1yep5z6ba",desktop:"_1yep5z6bb"},defaultClass:"_1yep5z6b9 _1yep5z6ba _1yep5z6bb"},md:{conditions:{mobile:"_1yep5z6bc",tablet:"_1yep5z6bd",desktop:"_1yep5z6be"},defaultClass:"_1yep5z6bc _1yep5z6bd _1yep5z6be"},lg:{conditions:{mobile:"_1yep5z6bf",tablet:"_1yep5z6bg",desktop:"_1yep5z6bh"},defaultClass:"_1yep5z6bf _1yep5z6bg _1yep5z6bh"},xl:{conditions:{mobile:"_1yep5z6bi",tablet:"_1yep5z6bj",desktop:"_1yep5z6bk"},defaultClass:"_1yep5z6bi _1yep5z6bj _1yep5z6bk"},"2xl":{conditions:{mobile:"_1yep5z6bl",tablet:"_1yep5z6bm",desktop:"_1yep5z6bn"},defaultClass:"_1yep5z6bl _1yep5z6bm _1yep5z6bn"},full:{conditions:{mobile:"_1yep5z6bo",tablet:"_1yep5z6bp",desktop:"_1yep5z6bq"},defaultClass:"_1yep5z6bo _1yep5z6bp _1yep5z6bq"},none:{conditions:{mobile:"_1yep5z6br",tablet:"_1yep5z6bs",desktop:"_1yep5z6bt"},defaultClass:"_1yep5z6br _1yep5z6bs _1yep5z6bt"}},responsiveArray:void 0},borderEndStartRadius:{values:{xs:{conditions:{mobile:"_1yep5z6bu",tablet:"_1yep5z6bv",desktop:"_1yep5z6bw"},defaultClass:"_1yep5z6bu _1yep5z6bv _1yep5z6bw"},sm:{conditions:{mobile:"_1yep5z6bx",tablet:"_1yep5z6by",desktop:"_1yep5z6bz"},defaultClass:"_1yep5z6bx _1yep5z6by _1yep5z6bz"},md:{conditions:{mobile:"_1yep5z6c0",tablet:"_1yep5z6c1",desktop:"_1yep5z6c2"},defaultClass:"_1yep5z6c0 _1yep5z6c1 _1yep5z6c2"},lg:{conditions:{mobile:"_1yep5z6c3",tablet:"_1yep5z6c4",desktop:"_1yep5z6c5"},defaultClass:"_1yep5z6c3 _1yep5z6c4 _1yep5z6c5"},xl:{conditions:{mobile:"_1yep5z6c6",tablet:"_1yep5z6c7",desktop:"_1yep5z6c8"},defaultClass:"_1yep5z6c6 _1yep5z6c7 _1yep5z6c8"},"2xl":{conditions:{mobile:"_1yep5z6c9",tablet:"_1yep5z6ca",desktop:"_1yep5z6cb"},defaultClass:"_1yep5z6c9 _1yep5z6ca _1yep5z6cb"},full:{conditions:{mobile:"_1yep5z6cc",tablet:"_1yep5z6cd",desktop:"_1yep5z6ce"},defaultClass:"_1yep5z6cc _1yep5z6cd _1yep5z6ce"},none:{conditions:{mobile:"_1yep5z6cf",tablet:"_1yep5z6cg",desktop:"_1yep5z6ch"},defaultClass:"_1yep5z6cf _1yep5z6cg _1yep5z6ch"}},responsiveArray:void 0},borderEndEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z6ci",tablet:"_1yep5z6cj",desktop:"_1yep5z6ck"},defaultClass:"_1yep5z6ci _1yep5z6cj _1yep5z6ck"},sm:{conditions:{mobile:"_1yep5z6cl",tablet:"_1yep5z6cm",desktop:"_1yep5z6cn"},defaultClass:"_1yep5z6cl _1yep5z6cm _1yep5z6cn"},md:{conditions:{mobile:"_1yep5z6co",tablet:"_1yep5z6cp",desktop:"_1yep5z6cq"},defaultClass:"_1yep5z6co _1yep5z6cp _1yep5z6cq"},lg:{conditions:{mobile:"_1yep5z6cr",tablet:"_1yep5z6cs",desktop:"_1yep5z6ct"},defaultClass:"_1yep5z6cr _1yep5z6cs _1yep5z6ct"},xl:{conditions:{mobile:"_1yep5z6cu",tablet:"_1yep5z6cv",desktop:"_1yep5z6cw"},defaultClass:"_1yep5z6cu _1yep5z6cv _1yep5z6cw"},"2xl":{conditions:{mobile:"_1yep5z6cx",tablet:"_1yep5z6cy",desktop:"_1yep5z6cz"},defaultClass:"_1yep5z6cx _1yep5z6cy _1yep5z6cz"},full:{conditions:{mobile:"_1yep5z6d0",tablet:"_1yep5z6d1",desktop:"_1yep5z6d2"},defaultClass:"_1yep5z6d0 _1yep5z6d1 _1yep5z6d2"},none:{conditions:{mobile:"_1yep5z6d3",tablet:"_1yep5z6d4",desktop:"_1yep5z6d5"},defaultClass:"_1yep5z6d3 _1yep5z6d4 _1yep5z6d5"}},responsiveArray:void 0}}};return e.styles.borderStartStartRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderStartEndRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderEndStartRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderEndEndRadius.responsiveArray=e.conditions.responsiveArray,e}(),{conditions:void 0,styles:{boxShadow:{values:{low:{defaultClass:"_1yep5z6d6"},medium:{defaultClass:"_1yep5z6d7"}}}}},{conditions:void 0,styles:{opacity:{values:{none:{defaultClass:"_1yep5z6d8"},low:{defaultClass:"_1yep5z6d9"},medium:{defaultClass:"_1yep5z6da"},high:{defaultClass:"_1yep5z6db"}}}}},{conditions:void 0,styles:{typography:{values:{"heading.h6.regular":{defaultClass:"_1yep5z6dc"},"heading.h6.medium":{defaultClass:"_1yep5z6dd"},"heading.h6.semibold":{defaultClass:"_1yep5z6de"},"heading.h5.regular":{defaultClass:"_1yep5z6df"},"heading.h5.medium":{defaultClass:"_1yep5z6dg"},"heading.h5.semibold":{defaultClass:"_1yep5z6dh"},"heading.h4.regular":{defaultClass:"_1yep5z6di"},"heading.h4.medium":{defaultClass:"_1yep5z6dj"},"heading.h4.semibold":{defaultClass:"_1yep5z6dk"},"heading.h3.regular":{defaultClass:"_1yep5z6dl"},"heading.h3.medium":{defaultClass:"_1yep5z6dm"},"heading.h3.semibold":{defaultClass:"_1yep5z6dn"},"heading.h2.regular":{defaultClass:"_1yep5z6do"},"heading.h2.medium":{defaultClass:"_1yep5z6dp"},"heading.h2.semibold":{defaultClass:"_1yep5z6dq"},"heading.h1.regular":{defaultClass:"_1yep5z6dr"},"heading.h1.medium":{defaultClass:"_1yep5z6ds"},"heading.h1.semibold":{defaultClass:"_1yep5z6dt"},"label.sm.regular":{defaultClass:"_1yep5z6du"},"label.sm.medium":{defaultClass:"_1yep5z6dv"},"label.sm.semibold":{defaultClass:"_1yep5z6dw"},"label.md.regular":{defaultClass:"_1yep5z6dx"},"label.md.medium":{defaultClass:"_1yep5z6dy"},"label.md.semibold":{defaultClass:"_1yep5z6dz"},"label.lg.regular":{defaultClass:"_1yep5z6e0"},"label.lg.medium":{defaultClass:"_1yep5z6e1"},"label.lg.semibold":{defaultClass:"_1yep5z6e2"},"body.sm.regular":{defaultClass:"_1yep5z6e3"},"body.sm.medium":{defaultClass:"_1yep5z6e4"},"body.sm.semibold":{defaultClass:"_1yep5z6e5"},"body.md.regular":{defaultClass:"_1yep5z6e6"},"body.md.medium":{defaultClass:"_1yep5z6e7"},"body.md.semibold":{defaultClass:"_1yep5z6e8"},"body.lg.regular":{defaultClass:"_1yep5z6e9"},"body.lg.medium":{defaultClass:"_1yep5z6ea"},"body.lg.semibold":{defaultClass:"_1yep5z6eb"}}}}},{conditions:void 0,styles:{color:{values:{"support.error.subtler":{defaultClass:"_1yep5z6ec"},"support.error.subtle":{defaultClass:"_1yep5z6ed"},"support.error.medium":{defaultClass:"_1yep5z6ee"},"support.error.strong":{defaultClass:"_1yep5z6ef"},"support.success.subtler":{defaultClass:"_1yep5z6eg"},"support.success.subtle":{defaultClass:"_1yep5z6eh"},"support.success.medium":{defaultClass:"_1yep5z6ei"},"support.success.strong":{defaultClass:"_1yep5z6ej"},"support.warning.subtler":{defaultClass:"_1yep5z6ek"},"support.warning.subtle":{defaultClass:"_1yep5z6el"},"support.warning.medium":{defaultClass:"_1yep5z6em"},"support.warning.strong":{defaultClass:"_1yep5z6en"},"support.info.subtler":{defaultClass:"_1yep5z6eo"},"support.info.subtle":{defaultClass:"_1yep5z6ep"},"support.info.medium":{defaultClass:"_1yep5z6eq"},"support.info.strong":{defaultClass:"_1yep5z6er"},"focused.primary":{defaultClass:"_1yep5z6es"},"focused.inset":{defaultClass:"_1yep5z6et"},"text.primary":{defaultClass:"_1yep5z6eu"},"text.secondary":{defaultClass:"_1yep5z6ev"},"text.helper":{defaultClass:"_1yep5z6ew"},"text.placeholder":{defaultClass:"_1yep5z6ex"},"text.disabled":{defaultClass:"_1yep5z6ey"},"text.inverse":{defaultClass:"_1yep5z6ez"},"icon.primary":{defaultClass:"_1yep5z6f0"},"icon.secondary":{defaultClass:"_1yep5z6f1"},"icon.disabled":{defaultClass:"_1yep5z6f2"},"icon.inverse":{defaultClass:"_1yep5z6f3"},"icon.interactive":{defaultClass:"_1yep5z6f4"},"interactive.primary":{defaultClass:"_1yep5z6f5"},"interactive.hovered":{defaultClass:"_1yep5z6f6"},"interactive.active":{defaultClass:"_1yep5z6f7"},"interactive.visited":{defaultClass:"_1yep5z6f8"},"interactive.disabled":{defaultClass:"_1yep5z6f9"}}},backgroundColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z6fa"},"support.error.subtle":{defaultClass:"_1yep5z6fb"},"support.error.medium":{defaultClass:"_1yep5z6fc"},"support.error.strong":{defaultClass:"_1yep5z6fd"},"support.success.subtler":{defaultClass:"_1yep5z6fe"},"support.success.subtle":{defaultClass:"_1yep5z6ff"},"support.success.medium":{defaultClass:"_1yep5z6fg"},"support.success.strong":{defaultClass:"_1yep5z6fh"},"support.warning.subtler":{defaultClass:"_1yep5z6fi"},"support.warning.subtle":{defaultClass:"_1yep5z6fj"},"support.warning.medium":{defaultClass:"_1yep5z6fk"},"support.warning.strong":{defaultClass:"_1yep5z6fl"},"support.info.subtler":{defaultClass:"_1yep5z6fm"},"support.info.subtle":{defaultClass:"_1yep5z6fn"},"support.info.medium":{defaultClass:"_1yep5z6fo"},"support.info.strong":{defaultClass:"_1yep5z6fp"},"focused.primary":{defaultClass:"_1yep5z6fq"},"focused.inset":{defaultClass:"_1yep5z6fr"},"background.primary.subtle":{defaultClass:"_1yep5z6fs"},"background.primary.medium":{defaultClass:"_1yep5z6ft"},"background.primary.strong":{defaultClass:"_1yep5z6fu"},"background.secondary.subtle":{defaultClass:"_1yep5z6fv"},"background.secondary.medium":{defaultClass:"_1yep5z6fw"},"background.secondary.strong":{defaultClass:"_1yep5z6fx"},"background.inverse.subtle":{defaultClass:"_1yep5z6fy"},"background.inverse.medium":{defaultClass:"_1yep5z6fz"},"background.inverse.strong":{defaultClass:"_1yep5z6g0"},"background.overlay.subtle":{defaultClass:"_1yep5z6g1"},"background.overlay.medium":{defaultClass:"_1yep5z6g2"},"positive.subtle":{defaultClass:"_1yep5z6g3"},"positive.medium":{defaultClass:"_1yep5z6g4"},"positive.strong":{defaultClass:"_1yep5z6g5"},"positive.interactive":{defaultClass:"_1yep5z6g6"}}},borderColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z6g7"},"support.error.subtle":{defaultClass:"_1yep5z6g8"},"support.error.medium":{defaultClass:"_1yep5z6g9"},"support.error.strong":{defaultClass:"_1yep5z6ga"},"support.success.subtler":{defaultClass:"_1yep5z6gb"},"support.success.subtle":{defaultClass:"_1yep5z6gc"},"support.success.medium":{defaultClass:"_1yep5z6gd"},"support.success.strong":{defaultClass:"_1yep5z6ge"},"support.warning.subtler":{defaultClass:"_1yep5z6gf"},"support.warning.subtle":{defaultClass:"_1yep5z6gg"},"support.warning.medium":{defaultClass:"_1yep5z6gh"},"support.warning.strong":{defaultClass:"_1yep5z6gi"},"support.info.subtler":{defaultClass:"_1yep5z6gj"},"support.info.subtle":{defaultClass:"_1yep5z6gk"},"support.info.medium":{defaultClass:"_1yep5z6gl"},"support.info.strong":{defaultClass:"_1yep5z6gm"},"focused.primary":{defaultClass:"_1yep5z6gn"},"focused.inset":{defaultClass:"_1yep5z6go"},"border.subtle":{defaultClass:"_1yep5z6gp"},"border.medium":{defaultClass:"_1yep5z6gq"},"border.strong":{defaultClass:"_1yep5z6gr"},"border.inverse":{defaultClass:"_1yep5z6gs"},"border.interactive":{defaultClass:"_1yep5z6gt"},"border.disabled":{defaultClass:"_1yep5z6gu"},transparent:{defaultClass:"_1yep5z6gv"}}},outlineColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z6gw"},"support.error.subtle":{defaultClass:"_1yep5z6gx"},"support.error.medium":{defaultClass:"_1yep5z6gy"},"support.error.strong":{defaultClass:"_1yep5z6gz"},"support.success.subtler":{defaultClass:"_1yep5z6h0"},"support.success.subtle":{defaultClass:"_1yep5z6h1"},"support.success.medium":{defaultClass:"_1yep5z6h2"},"support.success.strong":{defaultClass:"_1yep5z6h3"},"support.warning.subtler":{defaultClass:"_1yep5z6h4"},"support.warning.subtle":{defaultClass:"_1yep5z6h5"},"support.warning.medium":{defaultClass:"_1yep5z6h6"},"support.warning.strong":{defaultClass:"_1yep5z6h7"},"support.info.subtler":{defaultClass:"_1yep5z6h8"},"support.info.subtle":{defaultClass:"_1yep5z6h9"},"support.info.medium":{defaultClass:"_1yep5z6ha"},"support.info.strong":{defaultClass:"_1yep5z6hb"},"focused.primary":{defaultClass:"_1yep5z6hc"},"focused.inset":{defaultClass:"_1yep5z6hd"},"border.subtle":{defaultClass:"_1yep5z6he"},"border.medium":{defaultClass:"_1yep5z6hf"},"border.strong":{defaultClass:"_1yep5z6hg"},"border.inverse":{defaultClass:"_1yep5z6hh"},"border.interactive":{defaultClass:"_1yep5z6hi"},"border.disabled":{defaultClass:"_1yep5z6hj"},transparent:{defaultClass:"_1yep5z6hk"}}}}},function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{position:{values:{relative:{conditions:{mobile:"_1yep5z6hl",tablet:"_1yep5z6hm",desktop:"_1yep5z6hn"},defaultClass:"_1yep5z6hl _1yep5z6hm _1yep5z6hn"},absolute:{conditions:{mobile:"_1yep5z6ho",tablet:"_1yep5z6hp",desktop:"_1yep5z6hq"},defaultClass:"_1yep5z6ho _1yep5z6hp _1yep5z6hq"},fixed:{conditions:{mobile:"_1yep5z6hr",tablet:"_1yep5z6hs",desktop:"_1yep5z6ht"},defaultClass:"_1yep5z6hr _1yep5z6hs _1yep5z6ht"}},responsiveArray:void 0},display:{values:{none:{conditions:{mobile:"_1yep5z6hu",tablet:"_1yep5z6hv",desktop:"_1yep5z6hw"},defaultClass:"_1yep5z6hu _1yep5z6hv _1yep5z6hw"},block:{conditions:{mobile:"_1yep5z6hx",tablet:"_1yep5z6hy",desktop:"_1yep5z6hz"},defaultClass:"_1yep5z6hx _1yep5z6hy _1yep5z6hz"},flex:{conditions:{mobile:"_1yep5z6i0",tablet:"_1yep5z6i1",desktop:"_1yep5z6i2"},defaultClass:"_1yep5z6i0 _1yep5z6i1 _1yep5z6i2"},"inline-flex":{conditions:{mobile:"_1yep5z6i3",tablet:"_1yep5z6i4",desktop:"_1yep5z6i5"},defaultClass:"_1yep5z6i3 _1yep5z6i4 _1yep5z6i5"},grid:{conditions:{mobile:"_1yep5z6i6",tablet:"_1yep5z6i7",desktop:"_1yep5z6i8"},defaultClass:"_1yep5z6i6 _1yep5z6i7 _1yep5z6i8"}},responsiveArray:void 0},flexDirection:{values:{row:{conditions:{mobile:"_1yep5z6i9",tablet:"_1yep5z6ia",desktop:"_1yep5z6ib"},defaultClass:"_1yep5z6i9 _1yep5z6ia _1yep5z6ib"},column:{conditions:{mobile:"_1yep5z6ic",tablet:"_1yep5z6id",desktop:"_1yep5z6ie"},defaultClass:"_1yep5z6ic _1yep5z6id _1yep5z6ie"},"row-reverse":{conditions:{mobile:"_1yep5z6if",tablet:"_1yep5z6ig",desktop:"_1yep5z6ih"},defaultClass:"_1yep5z6if _1yep5z6ig _1yep5z6ih"},"column-reverse":{conditions:{mobile:"_1yep5z6ii",tablet:"_1yep5z6ij",desktop:"_1yep5z6ik"},defaultClass:"_1yep5z6ii _1yep5z6ij _1yep5z6ik"}},responsiveArray:void 0},alignItems:{values:{stretch:{conditions:{mobile:"_1yep5z6il",tablet:"_1yep5z6im",desktop:"_1yep5z6in"},defaultClass:"_1yep5z6il _1yep5z6im _1yep5z6in"},"flex-start":{conditions:{mobile:"_1yep5z6io",tablet:"_1yep5z6ip",desktop:"_1yep5z6iq"},defaultClass:"_1yep5z6io _1yep5z6ip _1yep5z6iq"},center:{conditions:{mobile:"_1yep5z6ir",tablet:"_1yep5z6is",desktop:"_1yep5z6it"},defaultClass:"_1yep5z6ir _1yep5z6is _1yep5z6it"},"flex-end":{conditions:{mobile:"_1yep5z6iu",tablet:"_1yep5z6iv",desktop:"_1yep5z6iw"},defaultClass:"_1yep5z6iu _1yep5z6iv _1yep5z6iw"}},responsiveArray:void 0},alignSelf:{values:{stretch:{conditions:{mobile:"_1yep5z6ix",tablet:"_1yep5z6iy",desktop:"_1yep5z6iz"},defaultClass:"_1yep5z6ix _1yep5z6iy _1yep5z6iz"},"flex-start":{conditions:{mobile:"_1yep5z6j0",tablet:"_1yep5z6j1",desktop:"_1yep5z6j2"},defaultClass:"_1yep5z6j0 _1yep5z6j1 _1yep5z6j2"},center:{conditions:{mobile:"_1yep5z6j3",tablet:"_1yep5z6j4",desktop:"_1yep5z6j5"},defaultClass:"_1yep5z6j3 _1yep5z6j4 _1yep5z6j5"},"flex-end":{conditions:{mobile:"_1yep5z6j6",tablet:"_1yep5z6j7",desktop:"_1yep5z6j8"},defaultClass:"_1yep5z6j6 _1yep5z6j7 _1yep5z6j8"}},responsiveArray:void 0},flex:{values:{0:{conditions:{mobile:"_1yep5z6j9",tablet:"_1yep5z6ja",desktop:"_1yep5z6jb"},defaultClass:"_1yep5z6j9 _1yep5z6ja _1yep5z6jb"},1:{conditions:{mobile:"_1yep5z6jc",tablet:"_1yep5z6jd",desktop:"_1yep5z6je"},defaultClass:"_1yep5z6jc _1yep5z6jd _1yep5z6je"}},responsiveArray:void 0},justifyContent:{values:{stretch:{conditions:{mobile:"_1yep5z6jf",tablet:"_1yep5z6jg",desktop:"_1yep5z6jh"},defaultClass:"_1yep5z6jf _1yep5z6jg _1yep5z6jh"},"flex-start":{conditions:{mobile:"_1yep5z6ji",tablet:"_1yep5z6jj",desktop:"_1yep5z6jk"},defaultClass:"_1yep5z6ji _1yep5z6jj _1yep5z6jk"},center:{conditions:{mobile:"_1yep5z6jl",tablet:"_1yep5z6jm",desktop:"_1yep5z6jn"},defaultClass:"_1yep5z6jl _1yep5z6jm _1yep5z6jn"},"flex-end":{conditions:{mobile:"_1yep5z6jo",tablet:"_1yep5z6jp",desktop:"_1yep5z6jq"},defaultClass:"_1yep5z6jo _1yep5z6jp _1yep5z6jq"},"space-between":{conditions:{mobile:"_1yep5z6jr",tablet:"_1yep5z6js",desktop:"_1yep5z6jt"},defaultClass:"_1yep5z6jr _1yep5z6js _1yep5z6jt"}},responsiveArray:void 0},justifySelf:{values:{stretch:{conditions:{mobile:"_1yep5z6ju",tablet:"_1yep5z6jv",desktop:"_1yep5z6jw"},defaultClass:"_1yep5z6ju _1yep5z6jv _1yep5z6jw"},"flex-start":{conditions:{mobile:"_1yep5z6jx",tablet:"_1yep5z6jy",desktop:"_1yep5z6jz"},defaultClass:"_1yep5z6jx _1yep5z6jy _1yep5z6jz"},center:{conditions:{mobile:"_1yep5z6k0",tablet:"_1yep5z6k1",desktop:"_1yep5z6k2"},defaultClass:"_1yep5z6k0 _1yep5z6k1 _1yep5z6k2"},"flex-end":{conditions:{mobile:"_1yep5z6k3",tablet:"_1yep5z6k4",desktop:"_1yep5z6k5"},defaultClass:"_1yep5z6k3 _1yep5z6k4 _1yep5z6k5"}},responsiveArray:void 0},placeItems:{values:{stretch:{conditions:{mobile:"_1yep5z6k6",tablet:"_1yep5z6k7",desktop:"_1yep5z6k8"},defaultClass:"_1yep5z6k6 _1yep5z6k7 _1yep5z6k8"},"flex-start":{conditions:{mobile:"_1yep5z6k9",tablet:"_1yep5z6ka",desktop:"_1yep5z6kb"},defaultClass:"_1yep5z6k9 _1yep5z6ka _1yep5z6kb"},center:{conditions:{mobile:"_1yep5z6kc",tablet:"_1yep5z6kd",desktop:"_1yep5z6ke"},defaultClass:"_1yep5z6kc _1yep5z6kd _1yep5z6ke"},"flex-end":{conditions:{mobile:"_1yep5z6kf",tablet:"_1yep5z6kg",desktop:"_1yep5z6kh"},defaultClass:"_1yep5z6kf _1yep5z6kg _1yep5z6kh"}},responsiveArray:void 0}}};return e.styles.position.responsiveArray=e.conditions.responsiveArray,e.styles.display.responsiveArray=e.conditions.responsiveArray,e.styles.flexDirection.responsiveArray=e.conditions.responsiveArray,e.styles.alignItems.responsiveArray=e.conditions.responsiveArray,e.styles.alignSelf.responsiveArray=e.conditions.responsiveArray,e.styles.flex.responsiveArray=e.conditions.responsiveArray,e.styles.justifyContent.responsiveArray=e.conditions.responsiveArray,e.styles.justifySelf.responsiveArray=e.conditions.responsiveArray,e.styles.placeItems.responsiveArray=e.conditions.responsiveArray,e}(),{conditions:void 0,styles:{transition:{values:{"transition.medium":{defaultClass:"_1yep5z6ki"}}},transitionProperty:{values:{transform:{defaultClass:"_1yep5z6kj"},opacity:{defaultClass:"_1yep5z6kk"},"background-color":{defaultClass:"_1yep5z6kl"}}}}},{conditions:void 0,styles:{inset:{mappings:["insetBlockStart","insetBlockEnd","insetInlineEnd","insetInlineStart"]},flexWrap:{values:{wrap:{defaultClass:"_1yep5z6km"},nowrap:{defaultClass:"_1yep5z6kn"}}},insetBlockStart:{values:{0:{defaultClass:"_1yep5z6ko"}}},insetBlockEnd:{values:{0:{defaultClass:"_1yep5z6kp"}}},insetInlineStart:{values:{0:{defaultClass:"_1yep5z6kq"}}},insetInlineEnd:{values:{0:{defaultClass:"_1yep5z6kr"}}},flexShrink:{values:{0:{defaultClass:"_1yep5z6ks"}}},flexGrow:{values:{0:{defaultClass:"_1yep5z6kt"},1:{defaultClass:"_1yep5z6ku"}}},width:{values:{full:{defaultClass:"_1yep5z6kv"}}},height:{values:{full:{defaultClass:"_1yep5z6kw"}}},cursor:{values:{pointer:{defaultClass:"_1yep5z6kx"}}}}},{conditions:void 0,styles:{outline:{values:{none:{defaultClass:"_1yep5z6ky"}}},outlineStyle:{values:{solid:{defaultClass:"_1yep5z6kz"}}},outlineWidth:{values:{1:{defaultClass:"_1yep5z6l0"},2:{defaultClass:"_1yep5z6l1"}}},outlineOffset:{values:{1:{defaultClass:"_1yep5z6l4"},2:{defaultClass:"_1yep5z6l5"},"-2":{defaultClass:"_1yep5z6l2"},"-1":{defaultClass:"_1yep5z6l3"}}},border:{values:{none:{defaultClass:"_1yep5z6l6"}}},borderStyle:{values:{solid:{defaultClass:"_1yep5z6l7"},dashed:{defaultClass:"_1yep5z6l8"}}},borderWidth:{values:{1:{defaultClass:"_1yep5z6l9"},2:{defaultClass:"_1yep5z6la"}}}}}),h=d(function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{paddingLeft:{mappings:["paddingInlineStart"]},paddingRight:{mappings:["paddingInlineEnd"]},paddingTop:{mappings:["paddingBlockStart"]},paddingBottom:{mappings:["paddingBlockEnd"]},padding:{mappings:["paddingBlockStart","paddingBlockEnd","paddingInlineStart","paddingInlineEnd"]},paddingX:{mappings:["paddingInlineStart","paddingInlineEnd"]},paddingY:{mappings:["paddingBlockStart","paddingBlockEnd"]},marginLeft:{mappings:["marginInlineStart"]},marginRight:{mappings:["marginInlineEnd"]},marginTop:{mappings:["marginBlockStart"]},marginBottom:{mappings:["marginBlockEnd"]},margin:{mappings:["marginBlockStart","marginBlockEnd","marginInlineStart","marginInlineEnd"]},marginX:{mappings:["marginInlineStart","marginInlineEnd"]},marginY:{mappings:["marginBlockStart","marginBlockEnd"]},paddingBlockStart:{values:{xs:{conditions:{mobile:"_1yep5z616m",tablet:"_1yep5z616n",desktop:"_1yep5z616o"},defaultClass:"_1yep5z616m _1yep5z616n _1yep5z616o"},sm:{conditions:{mobile:"_1yep5z616p",tablet:"_1yep5z616q",desktop:"_1yep5z616r"},defaultClass:"_1yep5z616p _1yep5z616q _1yep5z616r"},md:{conditions:{mobile:"_1yep5z616s",tablet:"_1yep5z616t",desktop:"_1yep5z616u"},defaultClass:"_1yep5z616s _1yep5z616t _1yep5z616u"},lg:{conditions:{mobile:"_1yep5z616v",tablet:"_1yep5z616w",desktop:"_1yep5z616x"},defaultClass:"_1yep5z616v _1yep5z616w _1yep5z616x"},xl:{conditions:{mobile:"_1yep5z616y",tablet:"_1yep5z616z",desktop:"_1yep5z6170"},defaultClass:"_1yep5z616y _1yep5z616z _1yep5z6170"},"2xl":{conditions:{mobile:"_1yep5z6171",tablet:"_1yep5z6172",desktop:"_1yep5z6173"},defaultClass:"_1yep5z6171 _1yep5z6172 _1yep5z6173"},"3xl":{conditions:{mobile:"_1yep5z6174",tablet:"_1yep5z6175",desktop:"_1yep5z6176"},defaultClass:"_1yep5z6174 _1yep5z6175 _1yep5z6176"},"4xl":{conditions:{mobile:"_1yep5z6177",tablet:"_1yep5z6178",desktop:"_1yep5z6179"},defaultClass:"_1yep5z6177 _1yep5z6178 _1yep5z6179"},"5xl":{conditions:{mobile:"_1yep5z617a",tablet:"_1yep5z617b",desktop:"_1yep5z617c"},defaultClass:"_1yep5z617a _1yep5z617b _1yep5z617c"},"6xl":{conditions:{mobile:"_1yep5z617d",tablet:"_1yep5z617e",desktop:"_1yep5z617f"},defaultClass:"_1yep5z617d _1yep5z617e _1yep5z617f"},"7xl":{conditions:{mobile:"_1yep5z617g",tablet:"_1yep5z617h",desktop:"_1yep5z617i"},defaultClass:"_1yep5z617g _1yep5z617h _1yep5z617i"},"8xl":{conditions:{mobile:"_1yep5z617j",tablet:"_1yep5z617k",desktop:"_1yep5z617l"},defaultClass:"_1yep5z617j _1yep5z617k _1yep5z617l"},"9xl":{conditions:{mobile:"_1yep5z617m",tablet:"_1yep5z617n",desktop:"_1yep5z617o"},defaultClass:"_1yep5z617m _1yep5z617n _1yep5z617o"},none:{conditions:{mobile:"_1yep5z617p",tablet:"_1yep5z617q",desktop:"_1yep5z617r"},defaultClass:"_1yep5z617p _1yep5z617q _1yep5z617r"}},responsiveArray:void 0},paddingInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z617s",tablet:"_1yep5z617t",desktop:"_1yep5z617u"},defaultClass:"_1yep5z617s _1yep5z617t _1yep5z617u"},sm:{conditions:{mobile:"_1yep5z617v",tablet:"_1yep5z617w",desktop:"_1yep5z617x"},defaultClass:"_1yep5z617v _1yep5z617w _1yep5z617x"},md:{conditions:{mobile:"_1yep5z617y",tablet:"_1yep5z617z",desktop:"_1yep5z6180"},defaultClass:"_1yep5z617y _1yep5z617z _1yep5z6180"},lg:{conditions:{mobile:"_1yep5z6181",tablet:"_1yep5z6182",desktop:"_1yep5z6183"},defaultClass:"_1yep5z6181 _1yep5z6182 _1yep5z6183"},xl:{conditions:{mobile:"_1yep5z6184",tablet:"_1yep5z6185",desktop:"_1yep5z6186"},defaultClass:"_1yep5z6184 _1yep5z6185 _1yep5z6186"},"2xl":{conditions:{mobile:"_1yep5z6187",tablet:"_1yep5z6188",desktop:"_1yep5z6189"},defaultClass:"_1yep5z6187 _1yep5z6188 _1yep5z6189"},"3xl":{conditions:{mobile:"_1yep5z618a",tablet:"_1yep5z618b",desktop:"_1yep5z618c"},defaultClass:"_1yep5z618a _1yep5z618b _1yep5z618c"},"4xl":{conditions:{mobile:"_1yep5z618d",tablet:"_1yep5z618e",desktop:"_1yep5z618f"},defaultClass:"_1yep5z618d _1yep5z618e _1yep5z618f"},"5xl":{conditions:{mobile:"_1yep5z618g",tablet:"_1yep5z618h",desktop:"_1yep5z618i"},defaultClass:"_1yep5z618g _1yep5z618h _1yep5z618i"},"6xl":{conditions:{mobile:"_1yep5z618j",tablet:"_1yep5z618k",desktop:"_1yep5z618l"},defaultClass:"_1yep5z618j _1yep5z618k _1yep5z618l"},"7xl":{conditions:{mobile:"_1yep5z618m",tablet:"_1yep5z618n",desktop:"_1yep5z618o"},defaultClass:"_1yep5z618m _1yep5z618n _1yep5z618o"},"8xl":{conditions:{mobile:"_1yep5z618p",tablet:"_1yep5z618q",desktop:"_1yep5z618r"},defaultClass:"_1yep5z618p _1yep5z618q _1yep5z618r"},"9xl":{conditions:{mobile:"_1yep5z618s",tablet:"_1yep5z618t",desktop:"_1yep5z618u"},defaultClass:"_1yep5z618s _1yep5z618t _1yep5z618u"},none:{conditions:{mobile:"_1yep5z618v",tablet:"_1yep5z618w",desktop:"_1yep5z618x"},defaultClass:"_1yep5z618v _1yep5z618w _1yep5z618x"}},responsiveArray:void 0},paddingBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z618y",tablet:"_1yep5z618z",desktop:"_1yep5z6190"},defaultClass:"_1yep5z618y _1yep5z618z _1yep5z6190"},sm:{conditions:{mobile:"_1yep5z6191",tablet:"_1yep5z6192",desktop:"_1yep5z6193"},defaultClass:"_1yep5z6191 _1yep5z6192 _1yep5z6193"},md:{conditions:{mobile:"_1yep5z6194",tablet:"_1yep5z6195",desktop:"_1yep5z6196"},defaultClass:"_1yep5z6194 _1yep5z6195 _1yep5z6196"},lg:{conditions:{mobile:"_1yep5z6197",tablet:"_1yep5z6198",desktop:"_1yep5z6199"},defaultClass:"_1yep5z6197 _1yep5z6198 _1yep5z6199"},xl:{conditions:{mobile:"_1yep5z619a",tablet:"_1yep5z619b",desktop:"_1yep5z619c"},defaultClass:"_1yep5z619a _1yep5z619b _1yep5z619c"},"2xl":{conditions:{mobile:"_1yep5z619d",tablet:"_1yep5z619e",desktop:"_1yep5z619f"},defaultClass:"_1yep5z619d _1yep5z619e _1yep5z619f"},"3xl":{conditions:{mobile:"_1yep5z619g",tablet:"_1yep5z619h",desktop:"_1yep5z619i"},defaultClass:"_1yep5z619g _1yep5z619h _1yep5z619i"},"4xl":{conditions:{mobile:"_1yep5z619j",tablet:"_1yep5z619k",desktop:"_1yep5z619l"},defaultClass:"_1yep5z619j _1yep5z619k _1yep5z619l"},"5xl":{conditions:{mobile:"_1yep5z619m",tablet:"_1yep5z619n",desktop:"_1yep5z619o"},defaultClass:"_1yep5z619m _1yep5z619n _1yep5z619o"},"6xl":{conditions:{mobile:"_1yep5z619p",tablet:"_1yep5z619q",desktop:"_1yep5z619r"},defaultClass:"_1yep5z619p _1yep5z619q _1yep5z619r"},"7xl":{conditions:{mobile:"_1yep5z619s",tablet:"_1yep5z619t",desktop:"_1yep5z619u"},defaultClass:"_1yep5z619s _1yep5z619t _1yep5z619u"},"8xl":{conditions:{mobile:"_1yep5z619v",tablet:"_1yep5z619w",desktop:"_1yep5z619x"},defaultClass:"_1yep5z619v _1yep5z619w _1yep5z619x"},"9xl":{conditions:{mobile:"_1yep5z619y",tablet:"_1yep5z619z",desktop:"_1yep5z61a0"},defaultClass:"_1yep5z619y _1yep5z619z _1yep5z61a0"},none:{conditions:{mobile:"_1yep5z61a1",tablet:"_1yep5z61a2",desktop:"_1yep5z61a3"},defaultClass:"_1yep5z61a1 _1yep5z61a2 _1yep5z61a3"}},responsiveArray:void 0},paddingInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z61a4",tablet:"_1yep5z61a5",desktop:"_1yep5z61a6"},defaultClass:"_1yep5z61a4 _1yep5z61a5 _1yep5z61a6"},sm:{conditions:{mobile:"_1yep5z61a7",tablet:"_1yep5z61a8",desktop:"_1yep5z61a9"},defaultClass:"_1yep5z61a7 _1yep5z61a8 _1yep5z61a9"},md:{conditions:{mobile:"_1yep5z61aa",tablet:"_1yep5z61ab",desktop:"_1yep5z61ac"},defaultClass:"_1yep5z61aa _1yep5z61ab _1yep5z61ac"},lg:{conditions:{mobile:"_1yep5z61ad",tablet:"_1yep5z61ae",desktop:"_1yep5z61af"},defaultClass:"_1yep5z61ad _1yep5z61ae _1yep5z61af"},xl:{conditions:{mobile:"_1yep5z61ag",tablet:"_1yep5z61ah",desktop:"_1yep5z61ai"},defaultClass:"_1yep5z61ag _1yep5z61ah _1yep5z61ai"},"2xl":{conditions:{mobile:"_1yep5z61aj",tablet:"_1yep5z61ak",desktop:"_1yep5z61al"},defaultClass:"_1yep5z61aj _1yep5z61ak _1yep5z61al"},"3xl":{conditions:{mobile:"_1yep5z61am",tablet:"_1yep5z61an",desktop:"_1yep5z61ao"},defaultClass:"_1yep5z61am _1yep5z61an _1yep5z61ao"},"4xl":{conditions:{mobile:"_1yep5z61ap",tablet:"_1yep5z61aq",desktop:"_1yep5z61ar"},defaultClass:"_1yep5z61ap _1yep5z61aq _1yep5z61ar"},"5xl":{conditions:{mobile:"_1yep5z61as",tablet:"_1yep5z61at",desktop:"_1yep5z61au"},defaultClass:"_1yep5z61as _1yep5z61at _1yep5z61au"},"6xl":{conditions:{mobile:"_1yep5z61av",tablet:"_1yep5z61aw",desktop:"_1yep5z61ax"},defaultClass:"_1yep5z61av _1yep5z61aw _1yep5z61ax"},"7xl":{conditions:{mobile:"_1yep5z61ay",tablet:"_1yep5z61az",desktop:"_1yep5z61b0"},defaultClass:"_1yep5z61ay _1yep5z61az _1yep5z61b0"},"8xl":{conditions:{mobile:"_1yep5z61b1",tablet:"_1yep5z61b2",desktop:"_1yep5z61b3"},defaultClass:"_1yep5z61b1 _1yep5z61b2 _1yep5z61b3"},"9xl":{conditions:{mobile:"_1yep5z61b4",tablet:"_1yep5z61b5",desktop:"_1yep5z61b6"},defaultClass:"_1yep5z61b4 _1yep5z61b5 _1yep5z61b6"},none:{conditions:{mobile:"_1yep5z61b7",tablet:"_1yep5z61b8",desktop:"_1yep5z61b9"},defaultClass:"_1yep5z61b7 _1yep5z61b8 _1yep5z61b9"}},responsiveArray:void 0},marginBlockStart:{values:{xs:{conditions:{mobile:"_1yep5z61ba",tablet:"_1yep5z61bb",desktop:"_1yep5z61bc"},defaultClass:"_1yep5z61ba _1yep5z61bb _1yep5z61bc"},sm:{conditions:{mobile:"_1yep5z61bd",tablet:"_1yep5z61be",desktop:"_1yep5z61bf"},defaultClass:"_1yep5z61bd _1yep5z61be _1yep5z61bf"},md:{conditions:{mobile:"_1yep5z61bg",tablet:"_1yep5z61bh",desktop:"_1yep5z61bi"},defaultClass:"_1yep5z61bg _1yep5z61bh _1yep5z61bi"},lg:{conditions:{mobile:"_1yep5z61bj",tablet:"_1yep5z61bk",desktop:"_1yep5z61bl"},defaultClass:"_1yep5z61bj _1yep5z61bk _1yep5z61bl"},xl:{conditions:{mobile:"_1yep5z61bm",tablet:"_1yep5z61bn",desktop:"_1yep5z61bo"},defaultClass:"_1yep5z61bm _1yep5z61bn _1yep5z61bo"},"2xl":{conditions:{mobile:"_1yep5z61bp",tablet:"_1yep5z61bq",desktop:"_1yep5z61br"},defaultClass:"_1yep5z61bp _1yep5z61bq _1yep5z61br"},"3xl":{conditions:{mobile:"_1yep5z61bs",tablet:"_1yep5z61bt",desktop:"_1yep5z61bu"},defaultClass:"_1yep5z61bs _1yep5z61bt _1yep5z61bu"},"4xl":{conditions:{mobile:"_1yep5z61bv",tablet:"_1yep5z61bw",desktop:"_1yep5z61bx"},defaultClass:"_1yep5z61bv _1yep5z61bw _1yep5z61bx"},"5xl":{conditions:{mobile:"_1yep5z61by",tablet:"_1yep5z61bz",desktop:"_1yep5z61c0"},defaultClass:"_1yep5z61by _1yep5z61bz _1yep5z61c0"},"6xl":{conditions:{mobile:"_1yep5z61c1",tablet:"_1yep5z61c2",desktop:"_1yep5z61c3"},defaultClass:"_1yep5z61c1 _1yep5z61c2 _1yep5z61c3"},"7xl":{conditions:{mobile:"_1yep5z61c4",tablet:"_1yep5z61c5",desktop:"_1yep5z61c6"},defaultClass:"_1yep5z61c4 _1yep5z61c5 _1yep5z61c6"},"8xl":{conditions:{mobile:"_1yep5z61c7",tablet:"_1yep5z61c8",desktop:"_1yep5z61c9"},defaultClass:"_1yep5z61c7 _1yep5z61c8 _1yep5z61c9"},"9xl":{conditions:{mobile:"_1yep5z61ca",tablet:"_1yep5z61cb",desktop:"_1yep5z61cc"},defaultClass:"_1yep5z61ca _1yep5z61cb _1yep5z61cc"},none:{conditions:{mobile:"_1yep5z61cd",tablet:"_1yep5z61ce",desktop:"_1yep5z61cf"},defaultClass:"_1yep5z61cd _1yep5z61ce _1yep5z61cf"}},responsiveArray:void 0},marginInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z61cg",tablet:"_1yep5z61ch",desktop:"_1yep5z61ci"},defaultClass:"_1yep5z61cg _1yep5z61ch _1yep5z61ci"},sm:{conditions:{mobile:"_1yep5z61cj",tablet:"_1yep5z61ck",desktop:"_1yep5z61cl"},defaultClass:"_1yep5z61cj _1yep5z61ck _1yep5z61cl"},md:{conditions:{mobile:"_1yep5z61cm",tablet:"_1yep5z61cn",desktop:"_1yep5z61co"},defaultClass:"_1yep5z61cm _1yep5z61cn _1yep5z61co"},lg:{conditions:{mobile:"_1yep5z61cp",tablet:"_1yep5z61cq",desktop:"_1yep5z61cr"},defaultClass:"_1yep5z61cp _1yep5z61cq _1yep5z61cr"},xl:{conditions:{mobile:"_1yep5z61cs",tablet:"_1yep5z61ct",desktop:"_1yep5z61cu"},defaultClass:"_1yep5z61cs _1yep5z61ct _1yep5z61cu"},"2xl":{conditions:{mobile:"_1yep5z61cv",tablet:"_1yep5z61cw",desktop:"_1yep5z61cx"},defaultClass:"_1yep5z61cv _1yep5z61cw _1yep5z61cx"},"3xl":{conditions:{mobile:"_1yep5z61cy",tablet:"_1yep5z61cz",desktop:"_1yep5z61d0"},defaultClass:"_1yep5z61cy _1yep5z61cz _1yep5z61d0"},"4xl":{conditions:{mobile:"_1yep5z61d1",tablet:"_1yep5z61d2",desktop:"_1yep5z61d3"},defaultClass:"_1yep5z61d1 _1yep5z61d2 _1yep5z61d3"},"5xl":{conditions:{mobile:"_1yep5z61d4",tablet:"_1yep5z61d5",desktop:"_1yep5z61d6"},defaultClass:"_1yep5z61d4 _1yep5z61d5 _1yep5z61d6"},"6xl":{conditions:{mobile:"_1yep5z61d7",tablet:"_1yep5z61d8",desktop:"_1yep5z61d9"},defaultClass:"_1yep5z61d7 _1yep5z61d8 _1yep5z61d9"},"7xl":{conditions:{mobile:"_1yep5z61da",tablet:"_1yep5z61db",desktop:"_1yep5z61dc"},defaultClass:"_1yep5z61da _1yep5z61db _1yep5z61dc"},"8xl":{conditions:{mobile:"_1yep5z61dd",tablet:"_1yep5z61de",desktop:"_1yep5z61df"},defaultClass:"_1yep5z61dd _1yep5z61de _1yep5z61df"},"9xl":{conditions:{mobile:"_1yep5z61dg",tablet:"_1yep5z61dh",desktop:"_1yep5z61di"},defaultClass:"_1yep5z61dg _1yep5z61dh _1yep5z61di"},none:{conditions:{mobile:"_1yep5z61dj",tablet:"_1yep5z61dk",desktop:"_1yep5z61dl"},defaultClass:"_1yep5z61dj _1yep5z61dk _1yep5z61dl"}},responsiveArray:void 0},marginBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z61dm",tablet:"_1yep5z61dn",desktop:"_1yep5z61do"},defaultClass:"_1yep5z61dm _1yep5z61dn _1yep5z61do"},sm:{conditions:{mobile:"_1yep5z61dp",tablet:"_1yep5z61dq",desktop:"_1yep5z61dr"},defaultClass:"_1yep5z61dp _1yep5z61dq _1yep5z61dr"},md:{conditions:{mobile:"_1yep5z61ds",tablet:"_1yep5z61dt",desktop:"_1yep5z61du"},defaultClass:"_1yep5z61ds _1yep5z61dt _1yep5z61du"},lg:{conditions:{mobile:"_1yep5z61dv",tablet:"_1yep5z61dw",desktop:"_1yep5z61dx"},defaultClass:"_1yep5z61dv _1yep5z61dw _1yep5z61dx"},xl:{conditions:{mobile:"_1yep5z61dy",tablet:"_1yep5z61dz",desktop:"_1yep5z61e0"},defaultClass:"_1yep5z61dy _1yep5z61dz _1yep5z61e0"},"2xl":{conditions:{mobile:"_1yep5z61e1",tablet:"_1yep5z61e2",desktop:"_1yep5z61e3"},defaultClass:"_1yep5z61e1 _1yep5z61e2 _1yep5z61e3"},"3xl":{conditions:{mobile:"_1yep5z61e4",tablet:"_1yep5z61e5",desktop:"_1yep5z61e6"},defaultClass:"_1yep5z61e4 _1yep5z61e5 _1yep5z61e6"},"4xl":{conditions:{mobile:"_1yep5z61e7",tablet:"_1yep5z61e8",desktop:"_1yep5z61e9"},defaultClass:"_1yep5z61e7 _1yep5z61e8 _1yep5z61e9"},"5xl":{conditions:{mobile:"_1yep5z61ea",tablet:"_1yep5z61eb",desktop:"_1yep5z61ec"},defaultClass:"_1yep5z61ea _1yep5z61eb _1yep5z61ec"},"6xl":{conditions:{mobile:"_1yep5z61ed",tablet:"_1yep5z61ee",desktop:"_1yep5z61ef"},defaultClass:"_1yep5z61ed _1yep5z61ee _1yep5z61ef"},"7xl":{conditions:{mobile:"_1yep5z61eg",tablet:"_1yep5z61eh",desktop:"_1yep5z61ei"},defaultClass:"_1yep5z61eg _1yep5z61eh _1yep5z61ei"},"8xl":{conditions:{mobile:"_1yep5z61ej",tablet:"_1yep5z61ek",desktop:"_1yep5z61el"},defaultClass:"_1yep5z61ej _1yep5z61ek _1yep5z61el"},"9xl":{conditions:{mobile:"_1yep5z61em",tablet:"_1yep5z61en",desktop:"_1yep5z61eo"},defaultClass:"_1yep5z61em _1yep5z61en _1yep5z61eo"},none:{conditions:{mobile:"_1yep5z61ep",tablet:"_1yep5z61eq",desktop:"_1yep5z61er"},defaultClass:"_1yep5z61ep _1yep5z61eq _1yep5z61er"}},responsiveArray:void 0},marginInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z61es",tablet:"_1yep5z61et",desktop:"_1yep5z61eu"},defaultClass:"_1yep5z61es _1yep5z61et _1yep5z61eu"},sm:{conditions:{mobile:"_1yep5z61ev",tablet:"_1yep5z61ew",desktop:"_1yep5z61ex"},defaultClass:"_1yep5z61ev _1yep5z61ew _1yep5z61ex"},md:{conditions:{mobile:"_1yep5z61ey",tablet:"_1yep5z61ez",desktop:"_1yep5z61f0"},defaultClass:"_1yep5z61ey _1yep5z61ez _1yep5z61f0"},lg:{conditions:{mobile:"_1yep5z61f1",tablet:"_1yep5z61f2",desktop:"_1yep5z61f3"},defaultClass:"_1yep5z61f1 _1yep5z61f2 _1yep5z61f3"},xl:{conditions:{mobile:"_1yep5z61f4",tablet:"_1yep5z61f5",desktop:"_1yep5z61f6"},defaultClass:"_1yep5z61f4 _1yep5z61f5 _1yep5z61f6"},"2xl":{conditions:{mobile:"_1yep5z61f7",tablet:"_1yep5z61f8",desktop:"_1yep5z61f9"},defaultClass:"_1yep5z61f7 _1yep5z61f8 _1yep5z61f9"},"3xl":{conditions:{mobile:"_1yep5z61fa",tablet:"_1yep5z61fb",desktop:"_1yep5z61fc"},defaultClass:"_1yep5z61fa _1yep5z61fb _1yep5z61fc"},"4xl":{conditions:{mobile:"_1yep5z61fd",tablet:"_1yep5z61fe",desktop:"_1yep5z61ff"},defaultClass:"_1yep5z61fd _1yep5z61fe _1yep5z61ff"},"5xl":{conditions:{mobile:"_1yep5z61fg",tablet:"_1yep5z61fh",desktop:"_1yep5z61fi"},defaultClass:"_1yep5z61fg _1yep5z61fh _1yep5z61fi"},"6xl":{conditions:{mobile:"_1yep5z61fj",tablet:"_1yep5z61fk",desktop:"_1yep5z61fl"},defaultClass:"_1yep5z61fj _1yep5z61fk _1yep5z61fl"},"7xl":{conditions:{mobile:"_1yep5z61fm",tablet:"_1yep5z61fn",desktop:"_1yep5z61fo"},defaultClass:"_1yep5z61fm _1yep5z61fn _1yep5z61fo"},"8xl":{conditions:{mobile:"_1yep5z61fp",tablet:"_1yep5z61fq",desktop:"_1yep5z61fr"},defaultClass:"_1yep5z61fp _1yep5z61fq _1yep5z61fr"},"9xl":{conditions:{mobile:"_1yep5z61fs",tablet:"_1yep5z61ft",desktop:"_1yep5z61fu"},defaultClass:"_1yep5z61fs _1yep5z61ft _1yep5z61fu"},none:{conditions:{mobile:"_1yep5z61fv",tablet:"_1yep5z61fw",desktop:"_1yep5z61fx"},defaultClass:"_1yep5z61fv _1yep5z61fw _1yep5z61fx"}},responsiveArray:void 0},gap:{values:{xs:{conditions:{mobile:"_1yep5z61fy",tablet:"_1yep5z61fz",desktop:"_1yep5z61g0"},defaultClass:"_1yep5z61fy _1yep5z61fz _1yep5z61g0"},sm:{conditions:{mobile:"_1yep5z61g1",tablet:"_1yep5z61g2",desktop:"_1yep5z61g3"},defaultClass:"_1yep5z61g1 _1yep5z61g2 _1yep5z61g3"},md:{conditions:{mobile:"_1yep5z61g4",tablet:"_1yep5z61g5",desktop:"_1yep5z61g6"},defaultClass:"_1yep5z61g4 _1yep5z61g5 _1yep5z61g6"},lg:{conditions:{mobile:"_1yep5z61g7",tablet:"_1yep5z61g8",desktop:"_1yep5z61g9"},defaultClass:"_1yep5z61g7 _1yep5z61g8 _1yep5z61g9"},xl:{conditions:{mobile:"_1yep5z61ga",tablet:"_1yep5z61gb",desktop:"_1yep5z61gc"},defaultClass:"_1yep5z61ga _1yep5z61gb _1yep5z61gc"},"2xl":{conditions:{mobile:"_1yep5z61gd",tablet:"_1yep5z61ge",desktop:"_1yep5z61gf"},defaultClass:"_1yep5z61gd _1yep5z61ge _1yep5z61gf"},"3xl":{conditions:{mobile:"_1yep5z61gg",tablet:"_1yep5z61gh",desktop:"_1yep5z61gi"},defaultClass:"_1yep5z61gg _1yep5z61gh _1yep5z61gi"},"4xl":{conditions:{mobile:"_1yep5z61gj",tablet:"_1yep5z61gk",desktop:"_1yep5z61gl"},defaultClass:"_1yep5z61gj _1yep5z61gk _1yep5z61gl"},"5xl":{conditions:{mobile:"_1yep5z61gm",tablet:"_1yep5z61gn",desktop:"_1yep5z61go"},defaultClass:"_1yep5z61gm _1yep5z61gn _1yep5z61go"},"6xl":{conditions:{mobile:"_1yep5z61gp",tablet:"_1yep5z61gq",desktop:"_1yep5z61gr"},defaultClass:"_1yep5z61gp _1yep5z61gq _1yep5z61gr"},"7xl":{conditions:{mobile:"_1yep5z61gs",tablet:"_1yep5z61gt",desktop:"_1yep5z61gu"},defaultClass:"_1yep5z61gs _1yep5z61gt _1yep5z61gu"},"8xl":{conditions:{mobile:"_1yep5z61gv",tablet:"_1yep5z61gw",desktop:"_1yep5z61gx"},defaultClass:"_1yep5z61gv _1yep5z61gw _1yep5z61gx"},"9xl":{conditions:{mobile:"_1yep5z61gy",tablet:"_1yep5z61gz",desktop:"_1yep5z61h0"},defaultClass:"_1yep5z61gy _1yep5z61gz _1yep5z61h0"},none:{conditions:{mobile:"_1yep5z61h1",tablet:"_1yep5z61h2",desktop:"_1yep5z61h3"},defaultClass:"_1yep5z61h1 _1yep5z61h2 _1yep5z61h3"}},responsiveArray:void 0}}};return e.styles.paddingBlockStart.responsiveArray=e.conditions.responsiveArray,e.styles.paddingInlineEnd.responsiveArray=e.conditions.responsiveArray,e.styles.paddingBlockEnd.responsiveArray=e.conditions.responsiveArray,e.styles.paddingInlineStart.responsiveArray=e.conditions.responsiveArray,e.styles.marginBlockStart.responsiveArray=e.conditions.responsiveArray,e.styles.marginInlineEnd.responsiveArray=e.conditions.responsiveArray,e.styles.marginBlockEnd.responsiveArray=e.conditions.responsiveArray,e.styles.marginInlineStart.responsiveArray=e.conditions.responsiveArray,e.styles.gap.responsiveArray=e.conditions.responsiveArray,e}(),function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{borderRadius:{mappings:["borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius"]},borderTopRadius:{mappings:["borderStartStartRadius","borderStartEndRadius"]},borderBottomRadius:{mappings:["borderEndStartRadius","borderEndEndRadius"]},borderLeftRadius:{mappings:["borderStartStartRadius","borderEndStartRadius"]},borderRightRadius:{mappings:["borderStartEndRadius","borderEndEndRadius"]},borderStartStartRadius:{values:{xs:{conditions:{mobile:"_1yep5z61h4",tablet:"_1yep5z61h5",desktop:"_1yep5z61h6"},defaultClass:"_1yep5z61h4 _1yep5z61h5 _1yep5z61h6"},sm:{conditions:{mobile:"_1yep5z61h7",tablet:"_1yep5z61h8",desktop:"_1yep5z61h9"},defaultClass:"_1yep5z61h7 _1yep5z61h8 _1yep5z61h9"},md:{conditions:{mobile:"_1yep5z61ha",tablet:"_1yep5z61hb",desktop:"_1yep5z61hc"},defaultClass:"_1yep5z61ha _1yep5z61hb _1yep5z61hc"},lg:{conditions:{mobile:"_1yep5z61hd",tablet:"_1yep5z61he",desktop:"_1yep5z61hf"},defaultClass:"_1yep5z61hd _1yep5z61he _1yep5z61hf"},xl:{conditions:{mobile:"_1yep5z61hg",tablet:"_1yep5z61hh",desktop:"_1yep5z61hi"},defaultClass:"_1yep5z61hg _1yep5z61hh _1yep5z61hi"},"2xl":{conditions:{mobile:"_1yep5z61hj",tablet:"_1yep5z61hk",desktop:"_1yep5z61hl"},defaultClass:"_1yep5z61hj _1yep5z61hk _1yep5z61hl"},full:{conditions:{mobile:"_1yep5z61hm",tablet:"_1yep5z61hn",desktop:"_1yep5z61ho"},defaultClass:"_1yep5z61hm _1yep5z61hn _1yep5z61ho"},none:{conditions:{mobile:"_1yep5z61hp",tablet:"_1yep5z61hq",desktop:"_1yep5z61hr"},defaultClass:"_1yep5z61hp _1yep5z61hq _1yep5z61hr"}},responsiveArray:void 0},borderStartEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z61hs",tablet:"_1yep5z61ht",desktop:"_1yep5z61hu"},defaultClass:"_1yep5z61hs _1yep5z61ht _1yep5z61hu"},sm:{conditions:{mobile:"_1yep5z61hv",tablet:"_1yep5z61hw",desktop:"_1yep5z61hx"},defaultClass:"_1yep5z61hv _1yep5z61hw _1yep5z61hx"},md:{conditions:{mobile:"_1yep5z61hy",tablet:"_1yep5z61hz",desktop:"_1yep5z61i0"},defaultClass:"_1yep5z61hy _1yep5z61hz _1yep5z61i0"},lg:{conditions:{mobile:"_1yep5z61i1",tablet:"_1yep5z61i2",desktop:"_1yep5z61i3"},defaultClass:"_1yep5z61i1 _1yep5z61i2 _1yep5z61i3"},xl:{conditions:{mobile:"_1yep5z61i4",tablet:"_1yep5z61i5",desktop:"_1yep5z61i6"},defaultClass:"_1yep5z61i4 _1yep5z61i5 _1yep5z61i6"},"2xl":{conditions:{mobile:"_1yep5z61i7",tablet:"_1yep5z61i8",desktop:"_1yep5z61i9"},defaultClass:"_1yep5z61i7 _1yep5z61i8 _1yep5z61i9"},full:{conditions:{mobile:"_1yep5z61ia",tablet:"_1yep5z61ib",desktop:"_1yep5z61ic"},defaultClass:"_1yep5z61ia _1yep5z61ib _1yep5z61ic"},none:{conditions:{mobile:"_1yep5z61id",tablet:"_1yep5z61ie",desktop:"_1yep5z61if"},defaultClass:"_1yep5z61id _1yep5z61ie _1yep5z61if"}},responsiveArray:void 0},borderEndStartRadius:{values:{xs:{conditions:{mobile:"_1yep5z61ig",tablet:"_1yep5z61ih",desktop:"_1yep5z61ii"},defaultClass:"_1yep5z61ig _1yep5z61ih _1yep5z61ii"},sm:{conditions:{mobile:"_1yep5z61ij",tablet:"_1yep5z61ik",desktop:"_1yep5z61il"},defaultClass:"_1yep5z61ij _1yep5z61ik _1yep5z61il"},md:{conditions:{mobile:"_1yep5z61im",tablet:"_1yep5z61in",desktop:"_1yep5z61io"},defaultClass:"_1yep5z61im _1yep5z61in _1yep5z61io"},lg:{conditions:{mobile:"_1yep5z61ip",tablet:"_1yep5z61iq",desktop:"_1yep5z61ir"},defaultClass:"_1yep5z61ip _1yep5z61iq _1yep5z61ir"},xl:{conditions:{mobile:"_1yep5z61is",tablet:"_1yep5z61it",desktop:"_1yep5z61iu"},defaultClass:"_1yep5z61is _1yep5z61it _1yep5z61iu"},"2xl":{conditions:{mobile:"_1yep5z61iv",tablet:"_1yep5z61iw",desktop:"_1yep5z61ix"},defaultClass:"_1yep5z61iv _1yep5z61iw _1yep5z61ix"},full:{conditions:{mobile:"_1yep5z61iy",tablet:"_1yep5z61iz",desktop:"_1yep5z61j0"},defaultClass:"_1yep5z61iy _1yep5z61iz _1yep5z61j0"},none:{conditions:{mobile:"_1yep5z61j1",tablet:"_1yep5z61j2",desktop:"_1yep5z61j3"},defaultClass:"_1yep5z61j1 _1yep5z61j2 _1yep5z61j3"}},responsiveArray:void 0},borderEndEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z61j4",tablet:"_1yep5z61j5",desktop:"_1yep5z61j6"},defaultClass:"_1yep5z61j4 _1yep5z61j5 _1yep5z61j6"},sm:{conditions:{mobile:"_1yep5z61j7",tablet:"_1yep5z61j8",desktop:"_1yep5z61j9"},defaultClass:"_1yep5z61j7 _1yep5z61j8 _1yep5z61j9"},md:{conditions:{mobile:"_1yep5z61ja",tablet:"_1yep5z61jb",desktop:"_1yep5z61jc"},defaultClass:"_1yep5z61ja _1yep5z61jb _1yep5z61jc"},lg:{conditions:{mobile:"_1yep5z61jd",tablet:"_1yep5z61je",desktop:"_1yep5z61jf"},defaultClass:"_1yep5z61jd _1yep5z61je _1yep5z61jf"},xl:{conditions:{mobile:"_1yep5z61jg",tablet:"_1yep5z61jh",desktop:"_1yep5z61ji"},defaultClass:"_1yep5z61jg _1yep5z61jh _1yep5z61ji"},"2xl":{conditions:{mobile:"_1yep5z61jj",tablet:"_1yep5z61jk",desktop:"_1yep5z61jl"},defaultClass:"_1yep5z61jj _1yep5z61jk _1yep5z61jl"},full:{conditions:{mobile:"_1yep5z61jm",tablet:"_1yep5z61jn",desktop:"_1yep5z61jo"},defaultClass:"_1yep5z61jm _1yep5z61jn _1yep5z61jo"},none:{conditions:{mobile:"_1yep5z61jp",tablet:"_1yep5z61jq",desktop:"_1yep5z61jr"},defaultClass:"_1yep5z61jp _1yep5z61jq _1yep5z61jr"}},responsiveArray:void 0}}};return e.styles.borderStartStartRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderStartEndRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderEndStartRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderEndEndRadius.responsiveArray=e.conditions.responsiveArray,e}(),{conditions:void 0,styles:{boxShadow:{values:{low:{defaultClass:"_1yep5z61js"},medium:{defaultClass:"_1yep5z61jt"}}}}},{conditions:void 0,styles:{opacity:{values:{none:{defaultClass:"_1yep5z61ju"},low:{defaultClass:"_1yep5z61jv"},medium:{defaultClass:"_1yep5z61jw"},high:{defaultClass:"_1yep5z61jx"}}}}},{conditions:void 0,styles:{typography:{values:{"heading.h6.regular":{defaultClass:"_1yep5z61jy"},"heading.h6.medium":{defaultClass:"_1yep5z61jz"},"heading.h6.semibold":{defaultClass:"_1yep5z61k0"},"heading.h5.regular":{defaultClass:"_1yep5z61k1"},"heading.h5.medium":{defaultClass:"_1yep5z61k2"},"heading.h5.semibold":{defaultClass:"_1yep5z61k3"},"heading.h4.regular":{defaultClass:"_1yep5z61k4"},"heading.h4.medium":{defaultClass:"_1yep5z61k5"},"heading.h4.semibold":{defaultClass:"_1yep5z61k6"},"heading.h3.regular":{defaultClass:"_1yep5z61k7"},"heading.h3.medium":{defaultClass:"_1yep5z61k8"},"heading.h3.semibold":{defaultClass:"_1yep5z61k9"},"heading.h2.regular":{defaultClass:"_1yep5z61ka"},"heading.h2.medium":{defaultClass:"_1yep5z61kb"},"heading.h2.semibold":{defaultClass:"_1yep5z61kc"},"heading.h1.regular":{defaultClass:"_1yep5z61kd"},"heading.h1.medium":{defaultClass:"_1yep5z61ke"},"heading.h1.semibold":{defaultClass:"_1yep5z61kf"},"label.sm.regular":{defaultClass:"_1yep5z61kg"},"label.sm.medium":{defaultClass:"_1yep5z61kh"},"label.sm.semibold":{defaultClass:"_1yep5z61ki"},"label.md.regular":{defaultClass:"_1yep5z61kj"},"label.md.medium":{defaultClass:"_1yep5z61kk"},"label.md.semibold":{defaultClass:"_1yep5z61kl"},"label.lg.regular":{defaultClass:"_1yep5z61km"},"label.lg.medium":{defaultClass:"_1yep5z61kn"},"label.lg.semibold":{defaultClass:"_1yep5z61ko"},"body.sm.regular":{defaultClass:"_1yep5z61kp"},"body.sm.medium":{defaultClass:"_1yep5z61kq"},"body.sm.semibold":{defaultClass:"_1yep5z61kr"},"body.md.regular":{defaultClass:"_1yep5z61ks"},"body.md.medium":{defaultClass:"_1yep5z61kt"},"body.md.semibold":{defaultClass:"_1yep5z61ku"},"body.lg.regular":{defaultClass:"_1yep5z61kv"},"body.lg.medium":{defaultClass:"_1yep5z61kw"},"body.lg.semibold":{defaultClass:"_1yep5z61kx"}}}}},{conditions:void 0,styles:{color:{values:{"support.error.subtler":{defaultClass:"_1yep5z61ky"},"support.error.subtle":{defaultClass:"_1yep5z61kz"},"support.error.medium":{defaultClass:"_1yep5z61l0"},"support.error.strong":{defaultClass:"_1yep5z61l1"},"support.success.subtler":{defaultClass:"_1yep5z61l2"},"support.success.subtle":{defaultClass:"_1yep5z61l3"},"support.success.medium":{defaultClass:"_1yep5z61l4"},"support.success.strong":{defaultClass:"_1yep5z61l5"},"support.warning.subtler":{defaultClass:"_1yep5z61l6"},"support.warning.subtle":{defaultClass:"_1yep5z61l7"},"support.warning.medium":{defaultClass:"_1yep5z61l8"},"support.warning.strong":{defaultClass:"_1yep5z61l9"},"support.info.subtler":{defaultClass:"_1yep5z61la"},"support.info.subtle":{defaultClass:"_1yep5z61lb"},"support.info.medium":{defaultClass:"_1yep5z61lc"},"support.info.strong":{defaultClass:"_1yep5z61ld"},"focused.primary":{defaultClass:"_1yep5z61le"},"focused.inset":{defaultClass:"_1yep5z61lf"},"text.primary":{defaultClass:"_1yep5z61lg"},"text.secondary":{defaultClass:"_1yep5z61lh"},"text.helper":{defaultClass:"_1yep5z61li"},"text.placeholder":{defaultClass:"_1yep5z61lj"},"text.disabled":{defaultClass:"_1yep5z61lk"},"text.inverse":{defaultClass:"_1yep5z61ll"},"icon.primary":{defaultClass:"_1yep5z61lm"},"icon.secondary":{defaultClass:"_1yep5z61ln"},"icon.disabled":{defaultClass:"_1yep5z61lo"},"icon.inverse":{defaultClass:"_1yep5z61lp"},"icon.interactive":{defaultClass:"_1yep5z61lq"},"interactive.primary":{defaultClass:"_1yep5z61lr"},"interactive.hovered":{defaultClass:"_1yep5z61ls"},"interactive.active":{defaultClass:"_1yep5z61lt"},"interactive.visited":{defaultClass:"_1yep5z61lu"},"interactive.disabled":{defaultClass:"_1yep5z61lv"}}},backgroundColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z61lw"},"support.error.subtle":{defaultClass:"_1yep5z61lx"},"support.error.medium":{defaultClass:"_1yep5z61ly"},"support.error.strong":{defaultClass:"_1yep5z61lz"},"support.success.subtler":{defaultClass:"_1yep5z61m0"},"support.success.subtle":{defaultClass:"_1yep5z61m1"},"support.success.medium":{defaultClass:"_1yep5z61m2"},"support.success.strong":{defaultClass:"_1yep5z61m3"},"support.warning.subtler":{defaultClass:"_1yep5z61m4"},"support.warning.subtle":{defaultClass:"_1yep5z61m5"},"support.warning.medium":{defaultClass:"_1yep5z61m6"},"support.warning.strong":{defaultClass:"_1yep5z61m7"},"support.info.subtler":{defaultClass:"_1yep5z61m8"},"support.info.subtle":{defaultClass:"_1yep5z61m9"},"support.info.medium":{defaultClass:"_1yep5z61ma"},"support.info.strong":{defaultClass:"_1yep5z61mb"},"focused.primary":{defaultClass:"_1yep5z61mc"},"focused.inset":{defaultClass:"_1yep5z61md"},"background.primary.subtle":{defaultClass:"_1yep5z61me"},"background.primary.medium":{defaultClass:"_1yep5z61mf"},"background.primary.strong":{defaultClass:"_1yep5z61mg"},"background.secondary.subtle":{defaultClass:"_1yep5z61mh"},"background.secondary.medium":{defaultClass:"_1yep5z61mi"},"background.secondary.strong":{defaultClass:"_1yep5z61mj"},"background.inverse.subtle":{defaultClass:"_1yep5z61mk"},"background.inverse.medium":{defaultClass:"_1yep5z61ml"},"background.inverse.strong":{defaultClass:"_1yep5z61mm"},"background.overlay.subtle":{defaultClass:"_1yep5z61mn"},"background.overlay.medium":{defaultClass:"_1yep5z61mo"},"positive.subtle":{defaultClass:"_1yep5z61mp"},"positive.medium":{defaultClass:"_1yep5z61mq"},"positive.strong":{defaultClass:"_1yep5z61mr"},"positive.interactive":{defaultClass:"_1yep5z61ms"}}},borderColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z61mt"},"support.error.subtle":{defaultClass:"_1yep5z61mu"},"support.error.medium":{defaultClass:"_1yep5z61mv"},"support.error.strong":{defaultClass:"_1yep5z61mw"},"support.success.subtler":{defaultClass:"_1yep5z61mx"},"support.success.subtle":{defaultClass:"_1yep5z61my"},"support.success.medium":{defaultClass:"_1yep5z61mz"},"support.success.strong":{defaultClass:"_1yep5z61n0"},"support.warning.subtler":{defaultClass:"_1yep5z61n1"},"support.warning.subtle":{defaultClass:"_1yep5z61n2"},"support.warning.medium":{defaultClass:"_1yep5z61n3"},"support.warning.strong":{defaultClass:"_1yep5z61n4"},"support.info.subtler":{defaultClass:"_1yep5z61n5"},"support.info.subtle":{defaultClass:"_1yep5z61n6"},"support.info.medium":{defaultClass:"_1yep5z61n7"},"support.info.strong":{defaultClass:"_1yep5z61n8"},"focused.primary":{defaultClass:"_1yep5z61n9"},"focused.inset":{defaultClass:"_1yep5z61na"},"border.subtle":{defaultClass:"_1yep5z61nb"},"border.medium":{defaultClass:"_1yep5z61nc"},"border.strong":{defaultClass:"_1yep5z61nd"},"border.inverse":{defaultClass:"_1yep5z61ne"},"border.interactive":{defaultClass:"_1yep5z61nf"},"border.disabled":{defaultClass:"_1yep5z61ng"},transparent:{defaultClass:"_1yep5z61nh"}}},outlineColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z61ni"},"support.error.subtle":{defaultClass:"_1yep5z61nj"},"support.error.medium":{defaultClass:"_1yep5z61nk"},"support.error.strong":{defaultClass:"_1yep5z61nl"},"support.success.subtler":{defaultClass:"_1yep5z61nm"},"support.success.subtle":{defaultClass:"_1yep5z61nn"},"support.success.medium":{defaultClass:"_1yep5z61no"},"support.success.strong":{defaultClass:"_1yep5z61np"},"support.warning.subtler":{defaultClass:"_1yep5z61nq"},"support.warning.subtle":{defaultClass:"_1yep5z61nr"},"support.warning.medium":{defaultClass:"_1yep5z61ns"},"support.warning.strong":{defaultClass:"_1yep5z61nt"},"support.info.subtler":{defaultClass:"_1yep5z61nu"},"support.info.subtle":{defaultClass:"_1yep5z61nv"},"support.info.medium":{defaultClass:"_1yep5z61nw"},"support.info.strong":{defaultClass:"_1yep5z61nx"},"focused.primary":{defaultClass:"_1yep5z61ny"},"focused.inset":{defaultClass:"_1yep5z61nz"},"border.subtle":{defaultClass:"_1yep5z61o0"},"border.medium":{defaultClass:"_1yep5z61o1"},"border.strong":{defaultClass:"_1yep5z61o2"},"border.inverse":{defaultClass:"_1yep5z61o3"},"border.interactive":{defaultClass:"_1yep5z61o4"},"border.disabled":{defaultClass:"_1yep5z61o5"},transparent:{defaultClass:"_1yep5z61o6"}}}}},function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{position:{values:{relative:{conditions:{mobile:"_1yep5z61o7",tablet:"_1yep5z61o8",desktop:"_1yep5z61o9"},defaultClass:"_1yep5z61o7 _1yep5z61o8 _1yep5z61o9"},absolute:{conditions:{mobile:"_1yep5z61oa",tablet:"_1yep5z61ob",desktop:"_1yep5z61oc"},defaultClass:"_1yep5z61oa _1yep5z61ob _1yep5z61oc"},fixed:{conditions:{mobile:"_1yep5z61od",tablet:"_1yep5z61oe",desktop:"_1yep5z61of"},defaultClass:"_1yep5z61od _1yep5z61oe _1yep5z61of"}},responsiveArray:void 0},display:{values:{none:{conditions:{mobile:"_1yep5z61og",tablet:"_1yep5z61oh",desktop:"_1yep5z61oi"},defaultClass:"_1yep5z61og _1yep5z61oh _1yep5z61oi"},block:{conditions:{mobile:"_1yep5z61oj",tablet:"_1yep5z61ok",desktop:"_1yep5z61ol"},defaultClass:"_1yep5z61oj _1yep5z61ok _1yep5z61ol"},flex:{conditions:{mobile:"_1yep5z61om",tablet:"_1yep5z61on",desktop:"_1yep5z61oo"},defaultClass:"_1yep5z61om _1yep5z61on _1yep5z61oo"},"inline-flex":{conditions:{mobile:"_1yep5z61op",tablet:"_1yep5z61oq",desktop:"_1yep5z61or"},defaultClass:"_1yep5z61op _1yep5z61oq _1yep5z61or"},grid:{conditions:{mobile:"_1yep5z61os",tablet:"_1yep5z61ot",desktop:"_1yep5z61ou"},defaultClass:"_1yep5z61os _1yep5z61ot _1yep5z61ou"}},responsiveArray:void 0},flexDirection:{values:{row:{conditions:{mobile:"_1yep5z61ov",tablet:"_1yep5z61ow",desktop:"_1yep5z61ox"},defaultClass:"_1yep5z61ov _1yep5z61ow _1yep5z61ox"},column:{conditions:{mobile:"_1yep5z61oy",tablet:"_1yep5z61oz",desktop:"_1yep5z61p0"},defaultClass:"_1yep5z61oy _1yep5z61oz _1yep5z61p0"},"row-reverse":{conditions:{mobile:"_1yep5z61p1",tablet:"_1yep5z61p2",desktop:"_1yep5z61p3"},defaultClass:"_1yep5z61p1 _1yep5z61p2 _1yep5z61p3"},"column-reverse":{conditions:{mobile:"_1yep5z61p4",tablet:"_1yep5z61p5",desktop:"_1yep5z61p6"},defaultClass:"_1yep5z61p4 _1yep5z61p5 _1yep5z61p6"}},responsiveArray:void 0},alignItems:{values:{stretch:{conditions:{mobile:"_1yep5z61p7",tablet:"_1yep5z61p8",desktop:"_1yep5z61p9"},defaultClass:"_1yep5z61p7 _1yep5z61p8 _1yep5z61p9"},"flex-start":{conditions:{mobile:"_1yep5z61pa",tablet:"_1yep5z61pb",desktop:"_1yep5z61pc"},defaultClass:"_1yep5z61pa _1yep5z61pb _1yep5z61pc"},center:{conditions:{mobile:"_1yep5z61pd",tablet:"_1yep5z61pe",desktop:"_1yep5z61pf"},defaultClass:"_1yep5z61pd _1yep5z61pe _1yep5z61pf"},"flex-end":{conditions:{mobile:"_1yep5z61pg",tablet:"_1yep5z61ph",desktop:"_1yep5z61pi"},defaultClass:"_1yep5z61pg _1yep5z61ph _1yep5z61pi"}},responsiveArray:void 0},alignSelf:{values:{stretch:{conditions:{mobile:"_1yep5z61pj",tablet:"_1yep5z61pk",desktop:"_1yep5z61pl"},defaultClass:"_1yep5z61pj _1yep5z61pk _1yep5z61pl"},"flex-start":{conditions:{mobile:"_1yep5z61pm",tablet:"_1yep5z61pn",desktop:"_1yep5z61po"},defaultClass:"_1yep5z61pm _1yep5z61pn _1yep5z61po"},center:{conditions:{mobile:"_1yep5z61pp",tablet:"_1yep5z61pq",desktop:"_1yep5z61pr"},defaultClass:"_1yep5z61pp _1yep5z61pq _1yep5z61pr"},"flex-end":{conditions:{mobile:"_1yep5z61ps",tablet:"_1yep5z61pt",desktop:"_1yep5z61pu"},defaultClass:"_1yep5z61ps _1yep5z61pt _1yep5z61pu"}},responsiveArray:void 0},flex:{values:{0:{conditions:{mobile:"_1yep5z61pv",tablet:"_1yep5z61pw",desktop:"_1yep5z61px"},defaultClass:"_1yep5z61pv _1yep5z61pw _1yep5z61px"},1:{conditions:{mobile:"_1yep5z61py",tablet:"_1yep5z61pz",desktop:"_1yep5z61q0"},defaultClass:"_1yep5z61py _1yep5z61pz _1yep5z61q0"}},responsiveArray:void 0},justifyContent:{values:{stretch:{conditions:{mobile:"_1yep5z61q1",tablet:"_1yep5z61q2",desktop:"_1yep5z61q3"},defaultClass:"_1yep5z61q1 _1yep5z61q2 _1yep5z61q3"},"flex-start":{conditions:{mobile:"_1yep5z61q4",tablet:"_1yep5z61q5",desktop:"_1yep5z61q6"},defaultClass:"_1yep5z61q4 _1yep5z61q5 _1yep5z61q6"},center:{conditions:{mobile:"_1yep5z61q7",tablet:"_1yep5z61q8",desktop:"_1yep5z61q9"},defaultClass:"_1yep5z61q7 _1yep5z61q8 _1yep5z61q9"},"flex-end":{conditions:{mobile:"_1yep5z61qa",tablet:"_1yep5z61qb",desktop:"_1yep5z61qc"},defaultClass:"_1yep5z61qa _1yep5z61qb _1yep5z61qc"},"space-between":{conditions:{mobile:"_1yep5z61qd",tablet:"_1yep5z61qe",desktop:"_1yep5z61qf"},defaultClass:"_1yep5z61qd _1yep5z61qe _1yep5z61qf"}},responsiveArray:void 0},justifySelf:{values:{stretch:{conditions:{mobile:"_1yep5z61qg",tablet:"_1yep5z61qh",desktop:"_1yep5z61qi"},defaultClass:"_1yep5z61qg _1yep5z61qh _1yep5z61qi"},"flex-start":{conditions:{mobile:"_1yep5z61qj",tablet:"_1yep5z61qk",desktop:"_1yep5z61ql"},defaultClass:"_1yep5z61qj _1yep5z61qk _1yep5z61ql"},center:{conditions:{mobile:"_1yep5z61qm",tablet:"_1yep5z61qn",desktop:"_1yep5z61qo"},defaultClass:"_1yep5z61qm _1yep5z61qn _1yep5z61qo"},"flex-end":{conditions:{mobile:"_1yep5z61qp",tablet:"_1yep5z61qq",desktop:"_1yep5z61qr"},defaultClass:"_1yep5z61qp _1yep5z61qq _1yep5z61qr"}},responsiveArray:void 0},placeItems:{values:{stretch:{conditions:{mobile:"_1yep5z61qs",tablet:"_1yep5z61qt",desktop:"_1yep5z61qu"},defaultClass:"_1yep5z61qs _1yep5z61qt _1yep5z61qu"},"flex-start":{conditions:{mobile:"_1yep5z61qv",tablet:"_1yep5z61qw",desktop:"_1yep5z61qx"},defaultClass:"_1yep5z61qv _1yep5z61qw _1yep5z61qx"},center:{conditions:{mobile:"_1yep5z61qy",tablet:"_1yep5z61qz",desktop:"_1yep5z61r0"},defaultClass:"_1yep5z61qy _1yep5z61qz _1yep5z61r0"},"flex-end":{conditions:{mobile:"_1yep5z61r1",tablet:"_1yep5z61r2",desktop:"_1yep5z61r3"},defaultClass:"_1yep5z61r1 _1yep5z61r2 _1yep5z61r3"}},responsiveArray:void 0}}};return e.styles.position.responsiveArray=e.conditions.responsiveArray,e.styles.display.responsiveArray=e.conditions.responsiveArray,e.styles.flexDirection.responsiveArray=e.conditions.responsiveArray,e.styles.alignItems.responsiveArray=e.conditions.responsiveArray,e.styles.alignSelf.responsiveArray=e.conditions.responsiveArray,e.styles.flex.responsiveArray=e.conditions.responsiveArray,e.styles.justifyContent.responsiveArray=e.conditions.responsiveArray,e.styles.justifySelf.responsiveArray=e.conditions.responsiveArray,e.styles.placeItems.responsiveArray=e.conditions.responsiveArray,e}(),{conditions:void 0,styles:{transition:{values:{"transition.medium":{defaultClass:"_1yep5z61r4"}}},transitionProperty:{values:{transform:{defaultClass:"_1yep5z61r5"},opacity:{defaultClass:"_1yep5z61r6"},"background-color":{defaultClass:"_1yep5z61r7"}}}}},{conditions:void 0,styles:{inset:{mappings:["insetBlockStart","insetBlockEnd","insetInlineEnd","insetInlineStart"]},flexWrap:{values:{wrap:{defaultClass:"_1yep5z61r8"},nowrap:{defaultClass:"_1yep5z61r9"}}},insetBlockStart:{values:{0:{defaultClass:"_1yep5z61ra"}}},insetBlockEnd:{values:{0:{defaultClass:"_1yep5z61rb"}}},insetInlineStart:{values:{0:{defaultClass:"_1yep5z61rc"}}},insetInlineEnd:{values:{0:{defaultClass:"_1yep5z61rd"}}},flexShrink:{values:{0:{defaultClass:"_1yep5z61re"}}},flexGrow:{values:{0:{defaultClass:"_1yep5z61rf"},1:{defaultClass:"_1yep5z61rg"}}},width:{values:{full:{defaultClass:"_1yep5z61rh"}}},height:{values:{full:{defaultClass:"_1yep5z61ri"}}},cursor:{values:{pointer:{defaultClass:"_1yep5z61rj"}}}}},{conditions:void 0,styles:{outline:{values:{none:{defaultClass:"_1yep5z61rk"}}},outlineStyle:{values:{solid:{defaultClass:"_1yep5z61rl"}}},outlineWidth:{values:{1:{defaultClass:"_1yep5z61rm"},2:{defaultClass:"_1yep5z61rn"}}},outlineOffset:{values:{1:{defaultClass:"_1yep5z61rq"},2:{defaultClass:"_1yep5z61rr"},"-2":{defaultClass:"_1yep5z61ro"},"-1":{defaultClass:"_1yep5z61rp"}}},border:{values:{none:{defaultClass:"_1yep5z61rs"}}},borderStyle:{values:{solid:{defaultClass:"_1yep5z61rt"},dashed:{defaultClass:"_1yep5z61ru"}}},borderWidth:{values:{1:{defaultClass:"_1yep5z61rv"},2:{defaultClass:"_1yep5z61rw"}}}}}),f=d(function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{paddingLeft:{mappings:["paddingInlineStart"]},paddingRight:{mappings:["paddingInlineEnd"]},paddingTop:{mappings:["paddingBlockStart"]},paddingBottom:{mappings:["paddingBlockEnd"]},padding:{mappings:["paddingBlockStart","paddingBlockEnd","paddingInlineStart","paddingInlineEnd"]},paddingX:{mappings:["paddingInlineStart","paddingInlineEnd"]},paddingY:{mappings:["paddingBlockStart","paddingBlockEnd"]},marginLeft:{mappings:["marginInlineStart"]},marginRight:{mappings:["marginInlineEnd"]},marginTop:{mappings:["marginBlockStart"]},marginBottom:{mappings:["marginBlockEnd"]},margin:{mappings:["marginBlockStart","marginBlockEnd","marginInlineStart","marginInlineEnd"]},marginX:{mappings:["marginInlineStart","marginInlineEnd"]},marginY:{mappings:["marginBlockStart","marginBlockEnd"]},paddingBlockStart:{values:{xs:{conditions:{mobile:"_1yep5z6lb",tablet:"_1yep5z6lc",desktop:"_1yep5z6ld"},defaultClass:"_1yep5z6lb _1yep5z6lc _1yep5z6ld"},sm:{conditions:{mobile:"_1yep5z6le",tablet:"_1yep5z6lf",desktop:"_1yep5z6lg"},defaultClass:"_1yep5z6le _1yep5z6lf _1yep5z6lg"},md:{conditions:{mobile:"_1yep5z6lh",tablet:"_1yep5z6li",desktop:"_1yep5z6lj"},defaultClass:"_1yep5z6lh _1yep5z6li _1yep5z6lj"},lg:{conditions:{mobile:"_1yep5z6lk",tablet:"_1yep5z6ll",desktop:"_1yep5z6lm"},defaultClass:"_1yep5z6lk _1yep5z6ll _1yep5z6lm"},xl:{conditions:{mobile:"_1yep5z6ln",tablet:"_1yep5z6lo",desktop:"_1yep5z6lp"},defaultClass:"_1yep5z6ln _1yep5z6lo _1yep5z6lp"},"2xl":{conditions:{mobile:"_1yep5z6lq",tablet:"_1yep5z6lr",desktop:"_1yep5z6ls"},defaultClass:"_1yep5z6lq _1yep5z6lr _1yep5z6ls"},"3xl":{conditions:{mobile:"_1yep5z6lt",tablet:"_1yep5z6lu",desktop:"_1yep5z6lv"},defaultClass:"_1yep5z6lt _1yep5z6lu _1yep5z6lv"},"4xl":{conditions:{mobile:"_1yep5z6lw",tablet:"_1yep5z6lx",desktop:"_1yep5z6ly"},defaultClass:"_1yep5z6lw _1yep5z6lx _1yep5z6ly"},"5xl":{conditions:{mobile:"_1yep5z6lz",tablet:"_1yep5z6m0",desktop:"_1yep5z6m1"},defaultClass:"_1yep5z6lz _1yep5z6m0 _1yep5z6m1"},"6xl":{conditions:{mobile:"_1yep5z6m2",tablet:"_1yep5z6m3",desktop:"_1yep5z6m4"},defaultClass:"_1yep5z6m2 _1yep5z6m3 _1yep5z6m4"},"7xl":{conditions:{mobile:"_1yep5z6m5",tablet:"_1yep5z6m6",desktop:"_1yep5z6m7"},defaultClass:"_1yep5z6m5 _1yep5z6m6 _1yep5z6m7"},"8xl":{conditions:{mobile:"_1yep5z6m8",tablet:"_1yep5z6m9",desktop:"_1yep5z6ma"},defaultClass:"_1yep5z6m8 _1yep5z6m9 _1yep5z6ma"},"9xl":{conditions:{mobile:"_1yep5z6mb",tablet:"_1yep5z6mc",desktop:"_1yep5z6md"},defaultClass:"_1yep5z6mb _1yep5z6mc _1yep5z6md"},none:{conditions:{mobile:"_1yep5z6me",tablet:"_1yep5z6mf",desktop:"_1yep5z6mg"},defaultClass:"_1yep5z6me _1yep5z6mf _1yep5z6mg"}},responsiveArray:void 0},paddingInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z6mh",tablet:"_1yep5z6mi",desktop:"_1yep5z6mj"},defaultClass:"_1yep5z6mh _1yep5z6mi _1yep5z6mj"},sm:{conditions:{mobile:"_1yep5z6mk",tablet:"_1yep5z6ml",desktop:"_1yep5z6mm"},defaultClass:"_1yep5z6mk _1yep5z6ml _1yep5z6mm"},md:{conditions:{mobile:"_1yep5z6mn",tablet:"_1yep5z6mo",desktop:"_1yep5z6mp"},defaultClass:"_1yep5z6mn _1yep5z6mo _1yep5z6mp"},lg:{conditions:{mobile:"_1yep5z6mq",tablet:"_1yep5z6mr",desktop:"_1yep5z6ms"},defaultClass:"_1yep5z6mq _1yep5z6mr _1yep5z6ms"},xl:{conditions:{mobile:"_1yep5z6mt",tablet:"_1yep5z6mu",desktop:"_1yep5z6mv"},defaultClass:"_1yep5z6mt _1yep5z6mu _1yep5z6mv"},"2xl":{conditions:{mobile:"_1yep5z6mw",tablet:"_1yep5z6mx",desktop:"_1yep5z6my"},defaultClass:"_1yep5z6mw _1yep5z6mx _1yep5z6my"},"3xl":{conditions:{mobile:"_1yep5z6mz",tablet:"_1yep5z6n0",desktop:"_1yep5z6n1"},defaultClass:"_1yep5z6mz _1yep5z6n0 _1yep5z6n1"},"4xl":{conditions:{mobile:"_1yep5z6n2",tablet:"_1yep5z6n3",desktop:"_1yep5z6n4"},defaultClass:"_1yep5z6n2 _1yep5z6n3 _1yep5z6n4"},"5xl":{conditions:{mobile:"_1yep5z6n5",tablet:"_1yep5z6n6",desktop:"_1yep5z6n7"},defaultClass:"_1yep5z6n5 _1yep5z6n6 _1yep5z6n7"},"6xl":{conditions:{mobile:"_1yep5z6n8",tablet:"_1yep5z6n9",desktop:"_1yep5z6na"},defaultClass:"_1yep5z6n8 _1yep5z6n9 _1yep5z6na"},"7xl":{conditions:{mobile:"_1yep5z6nb",tablet:"_1yep5z6nc",desktop:"_1yep5z6nd"},defaultClass:"_1yep5z6nb _1yep5z6nc _1yep5z6nd"},"8xl":{conditions:{mobile:"_1yep5z6ne",tablet:"_1yep5z6nf",desktop:"_1yep5z6ng"},defaultClass:"_1yep5z6ne _1yep5z6nf _1yep5z6ng"},"9xl":{conditions:{mobile:"_1yep5z6nh",tablet:"_1yep5z6ni",desktop:"_1yep5z6nj"},defaultClass:"_1yep5z6nh _1yep5z6ni _1yep5z6nj"},none:{conditions:{mobile:"_1yep5z6nk",tablet:"_1yep5z6nl",desktop:"_1yep5z6nm"},defaultClass:"_1yep5z6nk _1yep5z6nl _1yep5z6nm"}},responsiveArray:void 0},paddingBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z6nn",tablet:"_1yep5z6no",desktop:"_1yep5z6np"},defaultClass:"_1yep5z6nn _1yep5z6no _1yep5z6np"},sm:{conditions:{mobile:"_1yep5z6nq",tablet:"_1yep5z6nr",desktop:"_1yep5z6ns"},defaultClass:"_1yep5z6nq _1yep5z6nr _1yep5z6ns"},md:{conditions:{mobile:"_1yep5z6nt",tablet:"_1yep5z6nu",desktop:"_1yep5z6nv"},defaultClass:"_1yep5z6nt _1yep5z6nu _1yep5z6nv"},lg:{conditions:{mobile:"_1yep5z6nw",tablet:"_1yep5z6nx",desktop:"_1yep5z6ny"},defaultClass:"_1yep5z6nw _1yep5z6nx _1yep5z6ny"},xl:{conditions:{mobile:"_1yep5z6nz",tablet:"_1yep5z6o0",desktop:"_1yep5z6o1"},defaultClass:"_1yep5z6nz _1yep5z6o0 _1yep5z6o1"},"2xl":{conditions:{mobile:"_1yep5z6o2",tablet:"_1yep5z6o3",desktop:"_1yep5z6o4"},defaultClass:"_1yep5z6o2 _1yep5z6o3 _1yep5z6o4"},"3xl":{conditions:{mobile:"_1yep5z6o5",tablet:"_1yep5z6o6",desktop:"_1yep5z6o7"},defaultClass:"_1yep5z6o5 _1yep5z6o6 _1yep5z6o7"},"4xl":{conditions:{mobile:"_1yep5z6o8",tablet:"_1yep5z6o9",desktop:"_1yep5z6oa"},defaultClass:"_1yep5z6o8 _1yep5z6o9 _1yep5z6oa"},"5xl":{conditions:{mobile:"_1yep5z6ob",tablet:"_1yep5z6oc",desktop:"_1yep5z6od"},defaultClass:"_1yep5z6ob _1yep5z6oc _1yep5z6od"},"6xl":{conditions:{mobile:"_1yep5z6oe",tablet:"_1yep5z6of",desktop:"_1yep5z6og"},defaultClass:"_1yep5z6oe _1yep5z6of _1yep5z6og"},"7xl":{conditions:{mobile:"_1yep5z6oh",tablet:"_1yep5z6oi",desktop:"_1yep5z6oj"},defaultClass:"_1yep5z6oh _1yep5z6oi _1yep5z6oj"},"8xl":{conditions:{mobile:"_1yep5z6ok",tablet:"_1yep5z6ol",desktop:"_1yep5z6om"},defaultClass:"_1yep5z6ok _1yep5z6ol _1yep5z6om"},"9xl":{conditions:{mobile:"_1yep5z6on",tablet:"_1yep5z6oo",desktop:"_1yep5z6op"},defaultClass:"_1yep5z6on _1yep5z6oo _1yep5z6op"},none:{conditions:{mobile:"_1yep5z6oq",tablet:"_1yep5z6or",desktop:"_1yep5z6os"},defaultClass:"_1yep5z6oq _1yep5z6or _1yep5z6os"}},responsiveArray:void 0},paddingInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z6ot",tablet:"_1yep5z6ou",desktop:"_1yep5z6ov"},defaultClass:"_1yep5z6ot _1yep5z6ou _1yep5z6ov"},sm:{conditions:{mobile:"_1yep5z6ow",tablet:"_1yep5z6ox",desktop:"_1yep5z6oy"},defaultClass:"_1yep5z6ow _1yep5z6ox _1yep5z6oy"},md:{conditions:{mobile:"_1yep5z6oz",tablet:"_1yep5z6p0",desktop:"_1yep5z6p1"},defaultClass:"_1yep5z6oz _1yep5z6p0 _1yep5z6p1"},lg:{conditions:{mobile:"_1yep5z6p2",tablet:"_1yep5z6p3",desktop:"_1yep5z6p4"},defaultClass:"_1yep5z6p2 _1yep5z6p3 _1yep5z6p4"},xl:{conditions:{mobile:"_1yep5z6p5",tablet:"_1yep5z6p6",desktop:"_1yep5z6p7"},defaultClass:"_1yep5z6p5 _1yep5z6p6 _1yep5z6p7"},"2xl":{conditions:{mobile:"_1yep5z6p8",tablet:"_1yep5z6p9",desktop:"_1yep5z6pa"},defaultClass:"_1yep5z6p8 _1yep5z6p9 _1yep5z6pa"},"3xl":{conditions:{mobile:"_1yep5z6pb",tablet:"_1yep5z6pc",desktop:"_1yep5z6pd"},defaultClass:"_1yep5z6pb _1yep5z6pc _1yep5z6pd"},"4xl":{conditions:{mobile:"_1yep5z6pe",tablet:"_1yep5z6pf",desktop:"_1yep5z6pg"},defaultClass:"_1yep5z6pe _1yep5z6pf _1yep5z6pg"},"5xl":{conditions:{mobile:"_1yep5z6ph",tablet:"_1yep5z6pi",desktop:"_1yep5z6pj"},defaultClass:"_1yep5z6ph _1yep5z6pi _1yep5z6pj"},"6xl":{conditions:{mobile:"_1yep5z6pk",tablet:"_1yep5z6pl",desktop:"_1yep5z6pm"},defaultClass:"_1yep5z6pk _1yep5z6pl _1yep5z6pm"},"7xl":{conditions:{mobile:"_1yep5z6pn",tablet:"_1yep5z6po",desktop:"_1yep5z6pp"},defaultClass:"_1yep5z6pn _1yep5z6po _1yep5z6pp"},"8xl":{conditions:{mobile:"_1yep5z6pq",tablet:"_1yep5z6pr",desktop:"_1yep5z6ps"},defaultClass:"_1yep5z6pq _1yep5z6pr _1yep5z6ps"},"9xl":{conditions:{mobile:"_1yep5z6pt",tablet:"_1yep5z6pu",desktop:"_1yep5z6pv"},defaultClass:"_1yep5z6pt _1yep5z6pu _1yep5z6pv"},none:{conditions:{mobile:"_1yep5z6pw",tablet:"_1yep5z6px",desktop:"_1yep5z6py"},defaultClass:"_1yep5z6pw _1yep5z6px _1yep5z6py"}},responsiveArray:void 0},marginBlockStart:{values:{xs:{conditions:{mobile:"_1yep5z6pz",tablet:"_1yep5z6q0",desktop:"_1yep5z6q1"},defaultClass:"_1yep5z6pz _1yep5z6q0 _1yep5z6q1"},sm:{conditions:{mobile:"_1yep5z6q2",tablet:"_1yep5z6q3",desktop:"_1yep5z6q4"},defaultClass:"_1yep5z6q2 _1yep5z6q3 _1yep5z6q4"},md:{conditions:{mobile:"_1yep5z6q5",tablet:"_1yep5z6q6",desktop:"_1yep5z6q7"},defaultClass:"_1yep5z6q5 _1yep5z6q6 _1yep5z6q7"},lg:{conditions:{mobile:"_1yep5z6q8",tablet:"_1yep5z6q9",desktop:"_1yep5z6qa"},defaultClass:"_1yep5z6q8 _1yep5z6q9 _1yep5z6qa"},xl:{conditions:{mobile:"_1yep5z6qb",tablet:"_1yep5z6qc",desktop:"_1yep5z6qd"},defaultClass:"_1yep5z6qb _1yep5z6qc _1yep5z6qd"},"2xl":{conditions:{mobile:"_1yep5z6qe",tablet:"_1yep5z6qf",desktop:"_1yep5z6qg"},defaultClass:"_1yep5z6qe _1yep5z6qf _1yep5z6qg"},"3xl":{conditions:{mobile:"_1yep5z6qh",tablet:"_1yep5z6qi",desktop:"_1yep5z6qj"},defaultClass:"_1yep5z6qh _1yep5z6qi _1yep5z6qj"},"4xl":{conditions:{mobile:"_1yep5z6qk",tablet:"_1yep5z6ql",desktop:"_1yep5z6qm"},defaultClass:"_1yep5z6qk _1yep5z6ql _1yep5z6qm"},"5xl":{conditions:{mobile:"_1yep5z6qn",tablet:"_1yep5z6qo",desktop:"_1yep5z6qp"},defaultClass:"_1yep5z6qn _1yep5z6qo _1yep5z6qp"},"6xl":{conditions:{mobile:"_1yep5z6qq",tablet:"_1yep5z6qr",desktop:"_1yep5z6qs"},defaultClass:"_1yep5z6qq _1yep5z6qr _1yep5z6qs"},"7xl":{conditions:{mobile:"_1yep5z6qt",tablet:"_1yep5z6qu",desktop:"_1yep5z6qv"},defaultClass:"_1yep5z6qt _1yep5z6qu _1yep5z6qv"},"8xl":{conditions:{mobile:"_1yep5z6qw",tablet:"_1yep5z6qx",desktop:"_1yep5z6qy"},defaultClass:"_1yep5z6qw _1yep5z6qx _1yep5z6qy"},"9xl":{conditions:{mobile:"_1yep5z6qz",tablet:"_1yep5z6r0",desktop:"_1yep5z6r1"},defaultClass:"_1yep5z6qz _1yep5z6r0 _1yep5z6r1"},none:{conditions:{mobile:"_1yep5z6r2",tablet:"_1yep5z6r3",desktop:"_1yep5z6r4"},defaultClass:"_1yep5z6r2 _1yep5z6r3 _1yep5z6r4"}},responsiveArray:void 0},marginInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z6r5",tablet:"_1yep5z6r6",desktop:"_1yep5z6r7"},defaultClass:"_1yep5z6r5 _1yep5z6r6 _1yep5z6r7"},sm:{conditions:{mobile:"_1yep5z6r8",tablet:"_1yep5z6r9",desktop:"_1yep5z6ra"},defaultClass:"_1yep5z6r8 _1yep5z6r9 _1yep5z6ra"},md:{conditions:{mobile:"_1yep5z6rb",tablet:"_1yep5z6rc",desktop:"_1yep5z6rd"},defaultClass:"_1yep5z6rb _1yep5z6rc _1yep5z6rd"},lg:{conditions:{mobile:"_1yep5z6re",tablet:"_1yep5z6rf",desktop:"_1yep5z6rg"},defaultClass:"_1yep5z6re _1yep5z6rf _1yep5z6rg"},xl:{conditions:{mobile:"_1yep5z6rh",tablet:"_1yep5z6ri",desktop:"_1yep5z6rj"},defaultClass:"_1yep5z6rh _1yep5z6ri _1yep5z6rj"},"2xl":{conditions:{mobile:"_1yep5z6rk",tablet:"_1yep5z6rl",desktop:"_1yep5z6rm"},defaultClass:"_1yep5z6rk _1yep5z6rl _1yep5z6rm"},"3xl":{conditions:{mobile:"_1yep5z6rn",tablet:"_1yep5z6ro",desktop:"_1yep5z6rp"},defaultClass:"_1yep5z6rn _1yep5z6ro _1yep5z6rp"},"4xl":{conditions:{mobile:"_1yep5z6rq",tablet:"_1yep5z6rr",desktop:"_1yep5z6rs"},defaultClass:"_1yep5z6rq _1yep5z6rr _1yep5z6rs"},"5xl":{conditions:{mobile:"_1yep5z6rt",tablet:"_1yep5z6ru",desktop:"_1yep5z6rv"},defaultClass:"_1yep5z6rt _1yep5z6ru _1yep5z6rv"},"6xl":{conditions:{mobile:"_1yep5z6rw",tablet:"_1yep5z6rx",desktop:"_1yep5z6ry"},defaultClass:"_1yep5z6rw _1yep5z6rx _1yep5z6ry"},"7xl":{conditions:{mobile:"_1yep5z6rz",tablet:"_1yep5z6s0",desktop:"_1yep5z6s1"},defaultClass:"_1yep5z6rz _1yep5z6s0 _1yep5z6s1"},"8xl":{conditions:{mobile:"_1yep5z6s2",tablet:"_1yep5z6s3",desktop:"_1yep5z6s4"},defaultClass:"_1yep5z6s2 _1yep5z6s3 _1yep5z6s4"},"9xl":{conditions:{mobile:"_1yep5z6s5",tablet:"_1yep5z6s6",desktop:"_1yep5z6s7"},defaultClass:"_1yep5z6s5 _1yep5z6s6 _1yep5z6s7"},none:{conditions:{mobile:"_1yep5z6s8",tablet:"_1yep5z6s9",desktop:"_1yep5z6sa"},defaultClass:"_1yep5z6s8 _1yep5z6s9 _1yep5z6sa"}},responsiveArray:void 0},marginBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z6sb",tablet:"_1yep5z6sc",desktop:"_1yep5z6sd"},defaultClass:"_1yep5z6sb _1yep5z6sc _1yep5z6sd"},sm:{conditions:{mobile:"_1yep5z6se",tablet:"_1yep5z6sf",desktop:"_1yep5z6sg"},defaultClass:"_1yep5z6se _1yep5z6sf _1yep5z6sg"},md:{conditions:{mobile:"_1yep5z6sh",tablet:"_1yep5z6si",desktop:"_1yep5z6sj"},defaultClass:"_1yep5z6sh _1yep5z6si _1yep5z6sj"},lg:{conditions:{mobile:"_1yep5z6sk",tablet:"_1yep5z6sl",desktop:"_1yep5z6sm"},defaultClass:"_1yep5z6sk _1yep5z6sl _1yep5z6sm"},xl:{conditions:{mobile:"_1yep5z6sn",tablet:"_1yep5z6so",desktop:"_1yep5z6sp"},defaultClass:"_1yep5z6sn _1yep5z6so _1yep5z6sp"},"2xl":{conditions:{mobile:"_1yep5z6sq",tablet:"_1yep5z6sr",desktop:"_1yep5z6ss"},defaultClass:"_1yep5z6sq _1yep5z6sr _1yep5z6ss"},"3xl":{conditions:{mobile:"_1yep5z6st",tablet:"_1yep5z6su",desktop:"_1yep5z6sv"},defaultClass:"_1yep5z6st _1yep5z6su _1yep5z6sv"},"4xl":{conditions:{mobile:"_1yep5z6sw",tablet:"_1yep5z6sx",desktop:"_1yep5z6sy"},defaultClass:"_1yep5z6sw _1yep5z6sx _1yep5z6sy"},"5xl":{conditions:{mobile:"_1yep5z6sz",tablet:"_1yep5z6t0",desktop:"_1yep5z6t1"},defaultClass:"_1yep5z6sz _1yep5z6t0 _1yep5z6t1"},"6xl":{conditions:{mobile:"_1yep5z6t2",tablet:"_1yep5z6t3",desktop:"_1yep5z6t4"},defaultClass:"_1yep5z6t2 _1yep5z6t3 _1yep5z6t4"},"7xl":{conditions:{mobile:"_1yep5z6t5",tablet:"_1yep5z6t6",desktop:"_1yep5z6t7"},defaultClass:"_1yep5z6t5 _1yep5z6t6 _1yep5z6t7"},"8xl":{conditions:{mobile:"_1yep5z6t8",tablet:"_1yep5z6t9",desktop:"_1yep5z6ta"},defaultClass:"_1yep5z6t8 _1yep5z6t9 _1yep5z6ta"},"9xl":{conditions:{mobile:"_1yep5z6tb",tablet:"_1yep5z6tc",desktop:"_1yep5z6td"},defaultClass:"_1yep5z6tb _1yep5z6tc _1yep5z6td"},none:{conditions:{mobile:"_1yep5z6te",tablet:"_1yep5z6tf",desktop:"_1yep5z6tg"},defaultClass:"_1yep5z6te _1yep5z6tf _1yep5z6tg"}},responsiveArray:void 0},marginInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z6th",tablet:"_1yep5z6ti",desktop:"_1yep5z6tj"},defaultClass:"_1yep5z6th _1yep5z6ti _1yep5z6tj"},sm:{conditions:{mobile:"_1yep5z6tk",tablet:"_1yep5z6tl",desktop:"_1yep5z6tm"},defaultClass:"_1yep5z6tk _1yep5z6tl _1yep5z6tm"},md:{conditions:{mobile:"_1yep5z6tn",tablet:"_1yep5z6to",desktop:"_1yep5z6tp"},defaultClass:"_1yep5z6tn _1yep5z6to _1yep5z6tp"},lg:{conditions:{mobile:"_1yep5z6tq",tablet:"_1yep5z6tr",desktop:"_1yep5z6ts"},defaultClass:"_1yep5z6tq _1yep5z6tr _1yep5z6ts"},xl:{conditions:{mobile:"_1yep5z6tt",tablet:"_1yep5z6tu",desktop:"_1yep5z6tv"},defaultClass:"_1yep5z6tt _1yep5z6tu _1yep5z6tv"},"2xl":{conditions:{mobile:"_1yep5z6tw",tablet:"_1yep5z6tx",desktop:"_1yep5z6ty"},defaultClass:"_1yep5z6tw _1yep5z6tx _1yep5z6ty"},"3xl":{conditions:{mobile:"_1yep5z6tz",tablet:"_1yep5z6u0",desktop:"_1yep5z6u1"},defaultClass:"_1yep5z6tz _1yep5z6u0 _1yep5z6u1"},"4xl":{conditions:{mobile:"_1yep5z6u2",tablet:"_1yep5z6u3",desktop:"_1yep5z6u4"},defaultClass:"_1yep5z6u2 _1yep5z6u3 _1yep5z6u4"},"5xl":{conditions:{mobile:"_1yep5z6u5",tablet:"_1yep5z6u6",desktop:"_1yep5z6u7"},defaultClass:"_1yep5z6u5 _1yep5z6u6 _1yep5z6u7"},"6xl":{conditions:{mobile:"_1yep5z6u8",tablet:"_1yep5z6u9",desktop:"_1yep5z6ua"},defaultClass:"_1yep5z6u8 _1yep5z6u9 _1yep5z6ua"},"7xl":{conditions:{mobile:"_1yep5z6ub",tablet:"_1yep5z6uc",desktop:"_1yep5z6ud"},defaultClass:"_1yep5z6ub _1yep5z6uc _1yep5z6ud"},"8xl":{conditions:{mobile:"_1yep5z6ue",tablet:"_1yep5z6uf",desktop:"_1yep5z6ug"},defaultClass:"_1yep5z6ue _1yep5z6uf _1yep5z6ug"},"9xl":{conditions:{mobile:"_1yep5z6uh",tablet:"_1yep5z6ui",desktop:"_1yep5z6uj"},defaultClass:"_1yep5z6uh _1yep5z6ui _1yep5z6uj"},none:{conditions:{mobile:"_1yep5z6uk",tablet:"_1yep5z6ul",desktop:"_1yep5z6um"},defaultClass:"_1yep5z6uk _1yep5z6ul _1yep5z6um"}},responsiveArray:void 0},gap:{values:{xs:{conditions:{mobile:"_1yep5z6un",tablet:"_1yep5z6uo",desktop:"_1yep5z6up"},defaultClass:"_1yep5z6un _1yep5z6uo _1yep5z6up"},sm:{conditions:{mobile:"_1yep5z6uq",tablet:"_1yep5z6ur",desktop:"_1yep5z6us"},defaultClass:"_1yep5z6uq _1yep5z6ur _1yep5z6us"},md:{conditions:{mobile:"_1yep5z6ut",tablet:"_1yep5z6uu",desktop:"_1yep5z6uv"},defaultClass:"_1yep5z6ut _1yep5z6uu _1yep5z6uv"},lg:{conditions:{mobile:"_1yep5z6uw",tablet:"_1yep5z6ux",desktop:"_1yep5z6uy"},defaultClass:"_1yep5z6uw _1yep5z6ux _1yep5z6uy"},xl:{conditions:{mobile:"_1yep5z6uz",tablet:"_1yep5z6v0",desktop:"_1yep5z6v1"},defaultClass:"_1yep5z6uz _1yep5z6v0 _1yep5z6v1"},"2xl":{conditions:{mobile:"_1yep5z6v2",tablet:"_1yep5z6v3",desktop:"_1yep5z6v4"},defaultClass:"_1yep5z6v2 _1yep5z6v3 _1yep5z6v4"},"3xl":{conditions:{mobile:"_1yep5z6v5",tablet:"_1yep5z6v6",desktop:"_1yep5z6v7"},defaultClass:"_1yep5z6v5 _1yep5z6v6 _1yep5z6v7"},"4xl":{conditions:{mobile:"_1yep5z6v8",tablet:"_1yep5z6v9",desktop:"_1yep5z6va"},defaultClass:"_1yep5z6v8 _1yep5z6v9 _1yep5z6va"},"5xl":{conditions:{mobile:"_1yep5z6vb",tablet:"_1yep5z6vc",desktop:"_1yep5z6vd"},defaultClass:"_1yep5z6vb _1yep5z6vc _1yep5z6vd"},"6xl":{conditions:{mobile:"_1yep5z6ve",tablet:"_1yep5z6vf",desktop:"_1yep5z6vg"},defaultClass:"_1yep5z6ve _1yep5z6vf _1yep5z6vg"},"7xl":{conditions:{mobile:"_1yep5z6vh",tablet:"_1yep5z6vi",desktop:"_1yep5z6vj"},defaultClass:"_1yep5z6vh _1yep5z6vi _1yep5z6vj"},"8xl":{conditions:{mobile:"_1yep5z6vk",tablet:"_1yep5z6vl",desktop:"_1yep5z6vm"},defaultClass:"_1yep5z6vk _1yep5z6vl _1yep5z6vm"},"9xl":{conditions:{mobile:"_1yep5z6vn",tablet:"_1yep5z6vo",desktop:"_1yep5z6vp"},defaultClass:"_1yep5z6vn _1yep5z6vo _1yep5z6vp"},none:{conditions:{mobile:"_1yep5z6vq",tablet:"_1yep5z6vr",desktop:"_1yep5z6vs"},defaultClass:"_1yep5z6vq _1yep5z6vr _1yep5z6vs"}},responsiveArray:void 0}}};return e.styles.paddingBlockStart.responsiveArray=e.conditions.responsiveArray,e.styles.paddingInlineEnd.responsiveArray=e.conditions.responsiveArray,e.styles.paddingBlockEnd.responsiveArray=e.conditions.responsiveArray,e.styles.paddingInlineStart.responsiveArray=e.conditions.responsiveArray,e.styles.marginBlockStart.responsiveArray=e.conditions.responsiveArray,e.styles.marginInlineEnd.responsiveArray=e.conditions.responsiveArray,e.styles.marginBlockEnd.responsiveArray=e.conditions.responsiveArray,e.styles.marginInlineStart.responsiveArray=e.conditions.responsiveArray,e.styles.gap.responsiveArray=e.conditions.responsiveArray,e}(),function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{borderRadius:{mappings:["borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius"]},borderTopRadius:{mappings:["borderStartStartRadius","borderStartEndRadius"]},borderBottomRadius:{mappings:["borderEndStartRadius","borderEndEndRadius"]},borderLeftRadius:{mappings:["borderStartStartRadius","borderEndStartRadius"]},borderRightRadius:{mappings:["borderStartEndRadius","borderEndEndRadius"]},borderStartStartRadius:{values:{xs:{conditions:{mobile:"_1yep5z6vt",tablet:"_1yep5z6vu",desktop:"_1yep5z6vv"},defaultClass:"_1yep5z6vt _1yep5z6vu _1yep5z6vv"},sm:{conditions:{mobile:"_1yep5z6vw",tablet:"_1yep5z6vx",desktop:"_1yep5z6vy"},defaultClass:"_1yep5z6vw _1yep5z6vx _1yep5z6vy"},md:{conditions:{mobile:"_1yep5z6vz",tablet:"_1yep5z6w0",desktop:"_1yep5z6w1"},defaultClass:"_1yep5z6vz _1yep5z6w0 _1yep5z6w1"},lg:{conditions:{mobile:"_1yep5z6w2",tablet:"_1yep5z6w3",desktop:"_1yep5z6w4"},defaultClass:"_1yep5z6w2 _1yep5z6w3 _1yep5z6w4"},xl:{conditions:{mobile:"_1yep5z6w5",tablet:"_1yep5z6w6",desktop:"_1yep5z6w7"},defaultClass:"_1yep5z6w5 _1yep5z6w6 _1yep5z6w7"},"2xl":{conditions:{mobile:"_1yep5z6w8",tablet:"_1yep5z6w9",desktop:"_1yep5z6wa"},defaultClass:"_1yep5z6w8 _1yep5z6w9 _1yep5z6wa"},full:{conditions:{mobile:"_1yep5z6wb",tablet:"_1yep5z6wc",desktop:"_1yep5z6wd"},defaultClass:"_1yep5z6wb _1yep5z6wc _1yep5z6wd"},none:{conditions:{mobile:"_1yep5z6we",tablet:"_1yep5z6wf",desktop:"_1yep5z6wg"},defaultClass:"_1yep5z6we _1yep5z6wf _1yep5z6wg"}},responsiveArray:void 0},borderStartEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z6wh",tablet:"_1yep5z6wi",desktop:"_1yep5z6wj"},defaultClass:"_1yep5z6wh _1yep5z6wi _1yep5z6wj"},sm:{conditions:{mobile:"_1yep5z6wk",tablet:"_1yep5z6wl",desktop:"_1yep5z6wm"},defaultClass:"_1yep5z6wk _1yep5z6wl _1yep5z6wm"},md:{conditions:{mobile:"_1yep5z6wn",tablet:"_1yep5z6wo",desktop:"_1yep5z6wp"},defaultClass:"_1yep5z6wn _1yep5z6wo _1yep5z6wp"},lg:{conditions:{mobile:"_1yep5z6wq",tablet:"_1yep5z6wr",desktop:"_1yep5z6ws"},defaultClass:"_1yep5z6wq _1yep5z6wr _1yep5z6ws"},xl:{conditions:{mobile:"_1yep5z6wt",tablet:"_1yep5z6wu",desktop:"_1yep5z6wv"},defaultClass:"_1yep5z6wt _1yep5z6wu _1yep5z6wv"},"2xl":{conditions:{mobile:"_1yep5z6ww",tablet:"_1yep5z6wx",desktop:"_1yep5z6wy"},defaultClass:"_1yep5z6ww _1yep5z6wx _1yep5z6wy"},full:{conditions:{mobile:"_1yep5z6wz",tablet:"_1yep5z6x0",desktop:"_1yep5z6x1"},defaultClass:"_1yep5z6wz _1yep5z6x0 _1yep5z6x1"},none:{conditions:{mobile:"_1yep5z6x2",tablet:"_1yep5z6x3",desktop:"_1yep5z6x4"},defaultClass:"_1yep5z6x2 _1yep5z6x3 _1yep5z6x4"}},responsiveArray:void 0},borderEndStartRadius:{values:{xs:{conditions:{mobile:"_1yep5z6x5",tablet:"_1yep5z6x6",desktop:"_1yep5z6x7"},defaultClass:"_1yep5z6x5 _1yep5z6x6 _1yep5z6x7"},sm:{conditions:{mobile:"_1yep5z6x8",tablet:"_1yep5z6x9",desktop:"_1yep5z6xa"},defaultClass:"_1yep5z6x8 _1yep5z6x9 _1yep5z6xa"},md:{conditions:{mobile:"_1yep5z6xb",tablet:"_1yep5z6xc",desktop:"_1yep5z6xd"},defaultClass:"_1yep5z6xb _1yep5z6xc _1yep5z6xd"},lg:{conditions:{mobile:"_1yep5z6xe",tablet:"_1yep5z6xf",desktop:"_1yep5z6xg"},defaultClass:"_1yep5z6xe _1yep5z6xf _1yep5z6xg"},xl:{conditions:{mobile:"_1yep5z6xh",tablet:"_1yep5z6xi",desktop:"_1yep5z6xj"},defaultClass:"_1yep5z6xh _1yep5z6xi _1yep5z6xj"},"2xl":{conditions:{mobile:"_1yep5z6xk",tablet:"_1yep5z6xl",desktop:"_1yep5z6xm"},defaultClass:"_1yep5z6xk _1yep5z6xl _1yep5z6xm"},full:{conditions:{mobile:"_1yep5z6xn",tablet:"_1yep5z6xo",desktop:"_1yep5z6xp"},defaultClass:"_1yep5z6xn _1yep5z6xo _1yep5z6xp"},none:{conditions:{mobile:"_1yep5z6xq",tablet:"_1yep5z6xr",desktop:"_1yep5z6xs"},defaultClass:"_1yep5z6xq _1yep5z6xr _1yep5z6xs"}},responsiveArray:void 0},borderEndEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z6xt",tablet:"_1yep5z6xu",desktop:"_1yep5z6xv"},defaultClass:"_1yep5z6xt _1yep5z6xu _1yep5z6xv"},sm:{conditions:{mobile:"_1yep5z6xw",tablet:"_1yep5z6xx",desktop:"_1yep5z6xy"},defaultClass:"_1yep5z6xw _1yep5z6xx _1yep5z6xy"},md:{conditions:{mobile:"_1yep5z6xz",tablet:"_1yep5z6y0",desktop:"_1yep5z6y1"},defaultClass:"_1yep5z6xz _1yep5z6y0 _1yep5z6y1"},lg:{conditions:{mobile:"_1yep5z6y2",tablet:"_1yep5z6y3",desktop:"_1yep5z6y4"},defaultClass:"_1yep5z6y2 _1yep5z6y3 _1yep5z6y4"},xl:{conditions:{mobile:"_1yep5z6y5",tablet:"_1yep5z6y6",desktop:"_1yep5z6y7"},defaultClass:"_1yep5z6y5 _1yep5z6y6 _1yep5z6y7"},"2xl":{conditions:{mobile:"_1yep5z6y8",tablet:"_1yep5z6y9",desktop:"_1yep5z6ya"},defaultClass:"_1yep5z6y8 _1yep5z6y9 _1yep5z6ya"},full:{conditions:{mobile:"_1yep5z6yb",tablet:"_1yep5z6yc",desktop:"_1yep5z6yd"},defaultClass:"_1yep5z6yb _1yep5z6yc _1yep5z6yd"},none:{conditions:{mobile:"_1yep5z6ye",tablet:"_1yep5z6yf",desktop:"_1yep5z6yg"},defaultClass:"_1yep5z6ye _1yep5z6yf _1yep5z6yg"}},responsiveArray:void 0}}};return e.styles.borderStartStartRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderStartEndRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderEndStartRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderEndEndRadius.responsiveArray=e.conditions.responsiveArray,e}(),{conditions:void 0,styles:{boxShadow:{values:{low:{defaultClass:"_1yep5z6yh"},medium:{defaultClass:"_1yep5z6yi"}}}}},{conditions:void 0,styles:{opacity:{values:{none:{defaultClass:"_1yep5z6yj"},low:{defaultClass:"_1yep5z6yk"},medium:{defaultClass:"_1yep5z6yl"},high:{defaultClass:"_1yep5z6ym"}}}}},{conditions:void 0,styles:{typography:{values:{"heading.h6.regular":{defaultClass:"_1yep5z6yn"},"heading.h6.medium":{defaultClass:"_1yep5z6yo"},"heading.h6.semibold":{defaultClass:"_1yep5z6yp"},"heading.h5.regular":{defaultClass:"_1yep5z6yq"},"heading.h5.medium":{defaultClass:"_1yep5z6yr"},"heading.h5.semibold":{defaultClass:"_1yep5z6ys"},"heading.h4.regular":{defaultClass:"_1yep5z6yt"},"heading.h4.medium":{defaultClass:"_1yep5z6yu"},"heading.h4.semibold":{defaultClass:"_1yep5z6yv"},"heading.h3.regular":{defaultClass:"_1yep5z6yw"},"heading.h3.medium":{defaultClass:"_1yep5z6yx"},"heading.h3.semibold":{defaultClass:"_1yep5z6yy"},"heading.h2.regular":{defaultClass:"_1yep5z6yz"},"heading.h2.medium":{defaultClass:"_1yep5z6z0"},"heading.h2.semibold":{defaultClass:"_1yep5z6z1"},"heading.h1.regular":{defaultClass:"_1yep5z6z2"},"heading.h1.medium":{defaultClass:"_1yep5z6z3"},"heading.h1.semibold":{defaultClass:"_1yep5z6z4"},"label.sm.regular":{defaultClass:"_1yep5z6z5"},"label.sm.medium":{defaultClass:"_1yep5z6z6"},"label.sm.semibold":{defaultClass:"_1yep5z6z7"},"label.md.regular":{defaultClass:"_1yep5z6z8"},"label.md.medium":{defaultClass:"_1yep5z6z9"},"label.md.semibold":{defaultClass:"_1yep5z6za"},"label.lg.regular":{defaultClass:"_1yep5z6zb"},"label.lg.medium":{defaultClass:"_1yep5z6zc"},"label.lg.semibold":{defaultClass:"_1yep5z6zd"},"body.sm.regular":{defaultClass:"_1yep5z6ze"},"body.sm.medium":{defaultClass:"_1yep5z6zf"},"body.sm.semibold":{defaultClass:"_1yep5z6zg"},"body.md.regular":{defaultClass:"_1yep5z6zh"},"body.md.medium":{defaultClass:"_1yep5z6zi"},"body.md.semibold":{defaultClass:"_1yep5z6zj"},"body.lg.regular":{defaultClass:"_1yep5z6zk"},"body.lg.medium":{defaultClass:"_1yep5z6zl"},"body.lg.semibold":{defaultClass:"_1yep5z6zm"}}}}},{conditions:void 0,styles:{color:{values:{"support.error.subtler":{defaultClass:"_1yep5z6zn"},"support.error.subtle":{defaultClass:"_1yep5z6zo"},"support.error.medium":{defaultClass:"_1yep5z6zp"},"support.error.strong":{defaultClass:"_1yep5z6zq"},"support.success.subtler":{defaultClass:"_1yep5z6zr"},"support.success.subtle":{defaultClass:"_1yep5z6zs"},"support.success.medium":{defaultClass:"_1yep5z6zt"},"support.success.strong":{defaultClass:"_1yep5z6zu"},"support.warning.subtler":{defaultClass:"_1yep5z6zv"},"support.warning.subtle":{defaultClass:"_1yep5z6zw"},"support.warning.medium":{defaultClass:"_1yep5z6zx"},"support.warning.strong":{defaultClass:"_1yep5z6zy"},"support.info.subtler":{defaultClass:"_1yep5z6zz"},"support.info.subtle":{defaultClass:"_1yep5z6100"},"support.info.medium":{defaultClass:"_1yep5z6101"},"support.info.strong":{defaultClass:"_1yep5z6102"},"focused.primary":{defaultClass:"_1yep5z6103"},"focused.inset":{defaultClass:"_1yep5z6104"},"text.primary":{defaultClass:"_1yep5z6105"},"text.secondary":{defaultClass:"_1yep5z6106"},"text.helper":{defaultClass:"_1yep5z6107"},"text.placeholder":{defaultClass:"_1yep5z6108"},"text.disabled":{defaultClass:"_1yep5z6109"},"text.inverse":{defaultClass:"_1yep5z610a"},"icon.primary":{defaultClass:"_1yep5z610b"},"icon.secondary":{defaultClass:"_1yep5z610c"},"icon.disabled":{defaultClass:"_1yep5z610d"},"icon.inverse":{defaultClass:"_1yep5z610e"},"icon.interactive":{defaultClass:"_1yep5z610f"},"interactive.primary":{defaultClass:"_1yep5z610g"},"interactive.hovered":{defaultClass:"_1yep5z610h"},"interactive.active":{defaultClass:"_1yep5z610i"},"interactive.visited":{defaultClass:"_1yep5z610j"},"interactive.disabled":{defaultClass:"_1yep5z610k"}}},backgroundColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z610l"},"support.error.subtle":{defaultClass:"_1yep5z610m"},"support.error.medium":{defaultClass:"_1yep5z610n"},"support.error.strong":{defaultClass:"_1yep5z610o"},"support.success.subtler":{defaultClass:"_1yep5z610p"},"support.success.subtle":{defaultClass:"_1yep5z610q"},"support.success.medium":{defaultClass:"_1yep5z610r"},"support.success.strong":{defaultClass:"_1yep5z610s"},"support.warning.subtler":{defaultClass:"_1yep5z610t"},"support.warning.subtle":{defaultClass:"_1yep5z610u"},"support.warning.medium":{defaultClass:"_1yep5z610v"},"support.warning.strong":{defaultClass:"_1yep5z610w"},"support.info.subtler":{defaultClass:"_1yep5z610x"},"support.info.subtle":{defaultClass:"_1yep5z610y"},"support.info.medium":{defaultClass:"_1yep5z610z"},"support.info.strong":{defaultClass:"_1yep5z6110"},"focused.primary":{defaultClass:"_1yep5z6111"},"focused.inset":{defaultClass:"_1yep5z6112"},"background.primary.subtle":{defaultClass:"_1yep5z6113"},"background.primary.medium":{defaultClass:"_1yep5z6114"},"background.primary.strong":{defaultClass:"_1yep5z6115"},"background.secondary.subtle":{defaultClass:"_1yep5z6116"},"background.secondary.medium":{defaultClass:"_1yep5z6117"},"background.secondary.strong":{defaultClass:"_1yep5z6118"},"background.inverse.subtle":{defaultClass:"_1yep5z6119"},"background.inverse.medium":{defaultClass:"_1yep5z611a"},"background.inverse.strong":{defaultClass:"_1yep5z611b"},"background.overlay.subtle":{defaultClass:"_1yep5z611c"},"background.overlay.medium":{defaultClass:"_1yep5z611d"},"positive.subtle":{defaultClass:"_1yep5z611e"},"positive.medium":{defaultClass:"_1yep5z611f"},"positive.strong":{defaultClass:"_1yep5z611g"},"positive.interactive":{defaultClass:"_1yep5z611h"}}},borderColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z611i"},"support.error.subtle":{defaultClass:"_1yep5z611j"},"support.error.medium":{defaultClass:"_1yep5z611k"},"support.error.strong":{defaultClass:"_1yep5z611l"},"support.success.subtler":{defaultClass:"_1yep5z611m"},"support.success.subtle":{defaultClass:"_1yep5z611n"},"support.success.medium":{defaultClass:"_1yep5z611o"},"support.success.strong":{defaultClass:"_1yep5z611p"},"support.warning.subtler":{defaultClass:"_1yep5z611q"},"support.warning.subtle":{defaultClass:"_1yep5z611r"},"support.warning.medium":{defaultClass:"_1yep5z611s"},"support.warning.strong":{defaultClass:"_1yep5z611t"},"support.info.subtler":{defaultClass:"_1yep5z611u"},"support.info.subtle":{defaultClass:"_1yep5z611v"},"support.info.medium":{defaultClass:"_1yep5z611w"},"support.info.strong":{defaultClass:"_1yep5z611x"},"focused.primary":{defaultClass:"_1yep5z611y"},"focused.inset":{defaultClass:"_1yep5z611z"},"border.subtle":{defaultClass:"_1yep5z6120"},"border.medium":{defaultClass:"_1yep5z6121"},"border.strong":{defaultClass:"_1yep5z6122"},"border.inverse":{defaultClass:"_1yep5z6123"},"border.interactive":{defaultClass:"_1yep5z6124"},"border.disabled":{defaultClass:"_1yep5z6125"},transparent:{defaultClass:"_1yep5z6126"}}},outlineColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z6127"},"support.error.subtle":{defaultClass:"_1yep5z6128"},"support.error.medium":{defaultClass:"_1yep5z6129"},"support.error.strong":{defaultClass:"_1yep5z612a"},"support.success.subtler":{defaultClass:"_1yep5z612b"},"support.success.subtle":{defaultClass:"_1yep5z612c"},"support.success.medium":{defaultClass:"_1yep5z612d"},"support.success.strong":{defaultClass:"_1yep5z612e"},"support.warning.subtler":{defaultClass:"_1yep5z612f"},"support.warning.subtle":{defaultClass:"_1yep5z612g"},"support.warning.medium":{defaultClass:"_1yep5z612h"},"support.warning.strong":{defaultClass:"_1yep5z612i"},"support.info.subtler":{defaultClass:"_1yep5z612j"},"support.info.subtle":{defaultClass:"_1yep5z612k"},"support.info.medium":{defaultClass:"_1yep5z612l"},"support.info.strong":{defaultClass:"_1yep5z612m"},"focused.primary":{defaultClass:"_1yep5z612n"},"focused.inset":{defaultClass:"_1yep5z612o"},"border.subtle":{defaultClass:"_1yep5z612p"},"border.medium":{defaultClass:"_1yep5z612q"},"border.strong":{defaultClass:"_1yep5z612r"},"border.inverse":{defaultClass:"_1yep5z612s"},"border.interactive":{defaultClass:"_1yep5z612t"},"border.disabled":{defaultClass:"_1yep5z612u"},transparent:{defaultClass:"_1yep5z612v"}}}}},function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{position:{values:{relative:{conditions:{mobile:"_1yep5z612w",tablet:"_1yep5z612x",desktop:"_1yep5z612y"},defaultClass:"_1yep5z612w _1yep5z612x _1yep5z612y"},absolute:{conditions:{mobile:"_1yep5z612z",tablet:"_1yep5z6130",desktop:"_1yep5z6131"},defaultClass:"_1yep5z612z _1yep5z6130 _1yep5z6131"},fixed:{conditions:{mobile:"_1yep5z6132",tablet:"_1yep5z6133",desktop:"_1yep5z6134"},defaultClass:"_1yep5z6132 _1yep5z6133 _1yep5z6134"}},responsiveArray:void 0},display:{values:{none:{conditions:{mobile:"_1yep5z6135",tablet:"_1yep5z6136",desktop:"_1yep5z6137"},defaultClass:"_1yep5z6135 _1yep5z6136 _1yep5z6137"},block:{conditions:{mobile:"_1yep5z6138",tablet:"_1yep5z6139",desktop:"_1yep5z613a"},defaultClass:"_1yep5z6138 _1yep5z6139 _1yep5z613a"},flex:{conditions:{mobile:"_1yep5z613b",tablet:"_1yep5z613c",desktop:"_1yep5z613d"},defaultClass:"_1yep5z613b _1yep5z613c _1yep5z613d"},"inline-flex":{conditions:{mobile:"_1yep5z613e",tablet:"_1yep5z613f",desktop:"_1yep5z613g"},defaultClass:"_1yep5z613e _1yep5z613f _1yep5z613g"},grid:{conditions:{mobile:"_1yep5z613h",tablet:"_1yep5z613i",desktop:"_1yep5z613j"},defaultClass:"_1yep5z613h _1yep5z613i _1yep5z613j"}},responsiveArray:void 0},flexDirection:{values:{row:{conditions:{mobile:"_1yep5z613k",tablet:"_1yep5z613l",desktop:"_1yep5z613m"},defaultClass:"_1yep5z613k _1yep5z613l _1yep5z613m"},column:{conditions:{mobile:"_1yep5z613n",tablet:"_1yep5z613o",desktop:"_1yep5z613p"},defaultClass:"_1yep5z613n _1yep5z613o _1yep5z613p"},"row-reverse":{conditions:{mobile:"_1yep5z613q",tablet:"_1yep5z613r",desktop:"_1yep5z613s"},defaultClass:"_1yep5z613q _1yep5z613r _1yep5z613s"},"column-reverse":{conditions:{mobile:"_1yep5z613t",tablet:"_1yep5z613u",desktop:"_1yep5z613v"},defaultClass:"_1yep5z613t _1yep5z613u _1yep5z613v"}},responsiveArray:void 0},alignItems:{values:{stretch:{conditions:{mobile:"_1yep5z613w",tablet:"_1yep5z613x",desktop:"_1yep5z613y"},defaultClass:"_1yep5z613w _1yep5z613x _1yep5z613y"},"flex-start":{conditions:{mobile:"_1yep5z613z",tablet:"_1yep5z6140",desktop:"_1yep5z6141"},defaultClass:"_1yep5z613z _1yep5z6140 _1yep5z6141"},center:{conditions:{mobile:"_1yep5z6142",tablet:"_1yep5z6143",desktop:"_1yep5z6144"},defaultClass:"_1yep5z6142 _1yep5z6143 _1yep5z6144"},"flex-end":{conditions:{mobile:"_1yep5z6145",tablet:"_1yep5z6146",desktop:"_1yep5z6147"},defaultClass:"_1yep5z6145 _1yep5z6146 _1yep5z6147"}},responsiveArray:void 0},alignSelf:{values:{stretch:{conditions:{mobile:"_1yep5z6148",tablet:"_1yep5z6149",desktop:"_1yep5z614a"},defaultClass:"_1yep5z6148 _1yep5z6149 _1yep5z614a"},"flex-start":{conditions:{mobile:"_1yep5z614b",tablet:"_1yep5z614c",desktop:"_1yep5z614d"},defaultClass:"_1yep5z614b _1yep5z614c _1yep5z614d"},center:{conditions:{mobile:"_1yep5z614e",tablet:"_1yep5z614f",desktop:"_1yep5z614g"},defaultClass:"_1yep5z614e _1yep5z614f _1yep5z614g"},"flex-end":{conditions:{mobile:"_1yep5z614h",tablet:"_1yep5z614i",desktop:"_1yep5z614j"},defaultClass:"_1yep5z614h _1yep5z614i _1yep5z614j"}},responsiveArray:void 0},flex:{values:{0:{conditions:{mobile:"_1yep5z614k",tablet:"_1yep5z614l",desktop:"_1yep5z614m"},defaultClass:"_1yep5z614k _1yep5z614l _1yep5z614m"},1:{conditions:{mobile:"_1yep5z614n",tablet:"_1yep5z614o",desktop:"_1yep5z614p"},defaultClass:"_1yep5z614n _1yep5z614o _1yep5z614p"}},responsiveArray:void 0},justifyContent:{values:{stretch:{conditions:{mobile:"_1yep5z614q",tablet:"_1yep5z614r",desktop:"_1yep5z614s"},defaultClass:"_1yep5z614q _1yep5z614r _1yep5z614s"},"flex-start":{conditions:{mobile:"_1yep5z614t",tablet:"_1yep5z614u",desktop:"_1yep5z614v"},defaultClass:"_1yep5z614t _1yep5z614u _1yep5z614v"},center:{conditions:{mobile:"_1yep5z614w",tablet:"_1yep5z614x",desktop:"_1yep5z614y"},defaultClass:"_1yep5z614w _1yep5z614x _1yep5z614y"},"flex-end":{conditions:{mobile:"_1yep5z614z",tablet:"_1yep5z6150",desktop:"_1yep5z6151"},defaultClass:"_1yep5z614z _1yep5z6150 _1yep5z6151"},"space-between":{conditions:{mobile:"_1yep5z6152",tablet:"_1yep5z6153",desktop:"_1yep5z6154"},defaultClass:"_1yep5z6152 _1yep5z6153 _1yep5z6154"}},responsiveArray:void 0},justifySelf:{values:{stretch:{conditions:{mobile:"_1yep5z6155",tablet:"_1yep5z6156",desktop:"_1yep5z6157"},defaultClass:"_1yep5z6155 _1yep5z6156 _1yep5z6157"},"flex-start":{conditions:{mobile:"_1yep5z6158",tablet:"_1yep5z6159",desktop:"_1yep5z615a"},defaultClass:"_1yep5z6158 _1yep5z6159 _1yep5z615a"},center:{conditions:{mobile:"_1yep5z615b",tablet:"_1yep5z615c",desktop:"_1yep5z615d"},defaultClass:"_1yep5z615b _1yep5z615c _1yep5z615d"},"flex-end":{conditions:{mobile:"_1yep5z615e",tablet:"_1yep5z615f",desktop:"_1yep5z615g"},defaultClass:"_1yep5z615e _1yep5z615f _1yep5z615g"}},responsiveArray:void 0},placeItems:{values:{stretch:{conditions:{mobile:"_1yep5z615h",tablet:"_1yep5z615i",desktop:"_1yep5z615j"},defaultClass:"_1yep5z615h _1yep5z615i _1yep5z615j"},"flex-start":{conditions:{mobile:"_1yep5z615k",tablet:"_1yep5z615l",desktop:"_1yep5z615m"},defaultClass:"_1yep5z615k _1yep5z615l _1yep5z615m"},center:{conditions:{mobile:"_1yep5z615n",tablet:"_1yep5z615o",desktop:"_1yep5z615p"},defaultClass:"_1yep5z615n _1yep5z615o _1yep5z615p"},"flex-end":{conditions:{mobile:"_1yep5z615q",tablet:"_1yep5z615r",desktop:"_1yep5z615s"},defaultClass:"_1yep5z615q _1yep5z615r _1yep5z615s"}},responsiveArray:void 0}}};return e.styles.position.responsiveArray=e.conditions.responsiveArray,e.styles.display.responsiveArray=e.conditions.responsiveArray,e.styles.flexDirection.responsiveArray=e.conditions.responsiveArray,e.styles.alignItems.responsiveArray=e.conditions.responsiveArray,e.styles.alignSelf.responsiveArray=e.conditions.responsiveArray,e.styles.flex.responsiveArray=e.conditions.responsiveArray,e.styles.justifyContent.responsiveArray=e.conditions.responsiveArray,e.styles.justifySelf.responsiveArray=e.conditions.responsiveArray,e.styles.placeItems.responsiveArray=e.conditions.responsiveArray,e}(),{conditions:void 0,styles:{transition:{values:{"transition.medium":{defaultClass:"_1yep5z615t"}}},transitionProperty:{values:{transform:{defaultClass:"_1yep5z615u"},opacity:{defaultClass:"_1yep5z615v"},"background-color":{defaultClass:"_1yep5z615w"}}}}},{conditions:void 0,styles:{inset:{mappings:["insetBlockStart","insetBlockEnd","insetInlineEnd","insetInlineStart"]},flexWrap:{values:{wrap:{defaultClass:"_1yep5z615x"},nowrap:{defaultClass:"_1yep5z615y"}}},insetBlockStart:{values:{0:{defaultClass:"_1yep5z615z"}}},insetBlockEnd:{values:{0:{defaultClass:"_1yep5z6160"}}},insetInlineStart:{values:{0:{defaultClass:"_1yep5z6161"}}},insetInlineEnd:{values:{0:{defaultClass:"_1yep5z6162"}}},flexShrink:{values:{0:{defaultClass:"_1yep5z6163"}}},flexGrow:{values:{0:{defaultClass:"_1yep5z6164"},1:{defaultClass:"_1yep5z6165"}}},width:{values:{full:{defaultClass:"_1yep5z6166"}}},height:{values:{full:{defaultClass:"_1yep5z6167"}}},cursor:{values:{pointer:{defaultClass:"_1yep5z6168"}}}}},{conditions:void 0,styles:{outline:{values:{none:{defaultClass:"_1yep5z6169"}}},outlineStyle:{values:{solid:{defaultClass:"_1yep5z616a"}}},outlineWidth:{values:{1:{defaultClass:"_1yep5z616b"},2:{defaultClass:"_1yep5z616c"}}},outlineOffset:{values:{1:{defaultClass:"_1yep5z616f"},2:{defaultClass:"_1yep5z616g"},"-2":{defaultClass:"_1yep5z616d"},"-1":{defaultClass:"_1yep5z616e"}}},border:{values:{none:{defaultClass:"_1yep5z616h"}}},borderStyle:{values:{solid:{defaultClass:"_1yep5z616i"},dashed:{defaultClass:"_1yep5z616j"}}},borderWidth:{values:{1:{defaultClass:"_1yep5z616k"},2:{defaultClass:"_1yep5z616l"}}}}}),m={elevation:{low:"0 0 4px 0 rgba(0, 0, 0, 0.4)",medium:"0 4px 16px 0 rgba(0, 0, 0, 0.15)"},opacity:{none:"0",low:"0.1",medium:"0.5",high:"0.9"},rounded:{xs:"2px",sm:"4px",md:"8px",lg:"12px",xl:"16px","2xl":"24px",full:"9999px"},spacing:{xs:"2px",sm:"4px",md:"8px",lg:"12px",xl:"16px","2xl":"24px","3xl":"32px","4xl":"40px","5xl":"48px","6xl":"64px","7xl":"80px","8xl":"96px","9xl":"160px"},color:{support:{error:{subtler:"#ffebe9",subtle:"#ffd4ce",medium:"#c83c29",strong:"#8a2100"},success:{subtler:"#ecfeda",subtle:"#d4fcac",medium:"#4B8017",strong:"#2D4D0E"},warning:{subtler:"#ffecd4",subtle:"#ffd4a1",medium:"#bd5a00",strong:"#9f4c00"},info:{subtler:"#eff4fb",subtle:"#d3dcff",medium:"#4537de",strong:"#2b1cc1"}},focused:{primary:"#4537de",inset:"#ffffff"},background:{primary:{subtle:"#ffffff",medium:"#f6f9fd",strong:"#f0f3f9"},inverse:{subtle:"#717885",medium:"#3d434e",strong:"#2b2e36"},overlay:{subtle:"rgb(100% 100% 100% / 0.25)",medium:"rgb(5.49% 7.06% 9.41% / 0.5)",interactive:"rgb(27.1% 21.6% 87.1% / 0.25)"},secondary:{subtle:"#f0f3f9",medium:"#d7dce4",strong:"#a9aeb7"}},text:{primary:"#2b2e36",secondary:"#4d525d",helper:"#606671",placeholder:"#717885",inverse:"#ffffff",disabled:"rgb(16.9% 18% 21.2% / 0.5)"},icon:{primary:"#2b2e36",secondary:"#606671",inverse:"#ffffff",interactive:"#4537de",disabled:"rgb(16.9% 18% 21.2% / 0.5)"},border:{subtle:"#f0f3f9",medium:"#d7dce4",strong:"#a9aeb7",inverse:"#2b2e36",interactive:"#4537de",disabled:"#a9aeb7"},interactive:{primary:"#4537de",hovered:"#2b1cc1",active:"#190d94",visited:"#190d94",disabled:"#a9aeb7"},positive:{subtle:"#ffffff",medium:"#f6f9fd",strong:"#f0f3f9",interactive:"#4537de"}},typography:{heading:{h6:{regular:{font:'400 0.875rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.875rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.875rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},h5:{regular:{font:'400 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},h4:{regular:{font:'400 1.375rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 1.375rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 1.375rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}},h3:{regular:{font:'400 1.5rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 1.5rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 1.5rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}},h2:{regular:{font:'400 1.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 1.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 1.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}},h1:{regular:{font:'400 2rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 2rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 2rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}}},label:{sm:{regular:{font:'400 0.688rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},medium:{font:'500 0.688rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},semibold:{font:'600 0.688rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"}},md:{regular:{font:'400 0.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},lg:{regular:{font:'400 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}}},body:{sm:{regular:{font:'400 0.75rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},medium:{font:'500 0.75rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},semibold:{font:'600 0.75rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"}},md:{regular:{font:'400 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},lg:{regular:{font:'400 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}}}}},g={elevation:{low:"0 0 4px 0 rgba(0, 0, 0, 0.4)",medium:"0 4px 16px 0 rgba(0, 0, 0, 0.15)"},opacity:{none:"0",low:"0.1",medium:"0.5",high:"0.9"},rounded:{xs:"2px",sm:"4px",md:"8px",lg:"12px",xl:"16px","2xl":"24px",full:"9999px"},spacing:{xs:"2px",sm:"4px",md:"8px",lg:"12px",xl:"16px","2xl":"24px","3xl":"32px","4xl":"40px","5xl":"48px","6xl":"64px","7xl":"80px","8xl":"96px","9xl":"160px"},color:{support:{error:{subtler:"#711b00",subtle:"#b53007",medium:"#fe7a68",strong:"#ffd4ce"},success:{subtler:"#223a03",subtle:"#3C6612",medium:"#80CC34",strong:"#ecfeda"},warning:{subtler:"#562800",subtle:"#bd5a00",medium:"#eb7f00",strong:"#ffd4a1"},info:{subtler:"#190d94",subtle:"#4537de",medium:"#777cf0",strong:"#d3dcff"}},focused:{primary:"#a8bbf8",inset:"#2b2e36"},background:{primary:{subtle:"#2b2e36",medium:"#21242c",strong:"#0e1218"},inverse:{subtle:"#717885",medium:"#f0f3f9",strong:"#ffffff"},secondary:{subtle:"#3d434e",medium:"#4d525d",strong:"#606671"},overlay:{subtle:"rgb(100% 100% 100% / 0.25)",medium:"rgb(5.49% 7.06% 9.41% / 0.5)",interactive:"rgb(65.9% 73.3% 97.3% / 0.25)"}},text:{primary:"#ffffff",secondary:"#d7dce4",helper:"#a9aeb7",placeholder:"#717885",inverse:"#2b2e36",disabled:"rgb(100% 100% 100% / 0.5)"},icon:{primary:"#ffffff",secondary:"#a9aeb7",inverse:"#2b2e36",interactive:"#a8bbf8",disabled:"rgb(100% 100% 100% / 0.5)"},border:{subtle:"#3d434e",medium:"#4d525d",strong:"#606671",inverse:"#ffffff",interactive:"#a8bbf8",disabled:"#606671"},interactive:{primary:"#a8bbf8",hovered:"#d3dcff",active:"#eff4fb",visited:"#eff4fb",disabled:"#606671"},positive:{subtle:"#f0f3f9",medium:"#f6f9fd",strong:"#ffffff",interactive:"#4537de"}},typography:{heading:{h6:{regular:{font:'400 0.875rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.875rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.875rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},h5:{regular:{font:'400 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},h4:{regular:{font:'400 1.375rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 1.375rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 1.375rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}},h3:{regular:{font:'400 1.5rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 1.5rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 1.5rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}},h2:{regular:{font:'400 1.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 1.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 1.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}},h1:{regular:{font:'400 2rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 2rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 2rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}}},label:{sm:{regular:{font:'400 0.688rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},medium:{font:'500 0.688rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},semibold:{font:'600 0.688rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"}},md:{regular:{font:'400 0.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},lg:{regular:{font:'400 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}}},body:{sm:{regular:{font:'400 0.75rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},medium:{font:'500 0.75rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},semibold:{font:'600 0.75rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"}},md:{regular:{font:'400 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},lg:{regular:{font:'400 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}}}}},v={elevation:{low:"var(--bui-elevation-low)",medium:"var(--bui-elevation-medium)"},opacity:{none:"var(--bui-opacity-none)",low:"var(--bui-opacity-low)",medium:"var(--bui-opacity-medium)",high:"var(--bui-opacity-high)"},rounded:{xs:"var(--bui-rounded-xs)",sm:"var(--bui-rounded-sm)",md:"var(--bui-rounded-md)",lg:"var(--bui-rounded-lg)",xl:"var(--bui-rounded-xl)","2xl":"var(--bui-rounded-2-xl)",full:"var(--bui-rounded-full)"},spacing:{xs:"var(--bui-spacing-xs)",sm:"var(--bui-spacing-sm)",md:"var(--bui-spacing-md)",lg:"var(--bui-spacing-lg)",xl:"var(--bui-spacing-xl)","2xl":"var(--bui-spacing-2-xl)","3xl":"var(--bui-spacing-3-xl)","4xl":"var(--bui-spacing-4-xl)","5xl":"var(--bui-spacing-5-xl)","6xl":"var(--bui-spacing-6-xl)","7xl":"var(--bui-spacing-7-xl)","8xl":"var(--bui-spacing-8-xl)","9xl":"var(--bui-spacing-9-xl)"},color:{support:{error:{subtler:"var(--bui-color-support-error-subtler)",subtle:"var(--bui-color-support-error-subtle)",medium:"var(--bui-color-support-error-medium)",strong:"var(--bui-color-support-error-strong)"},success:{subtler:"var(--bui-color-support-success-subtler)",subtle:"var(--bui-color-support-success-subtle)",medium:"var(--bui-color-support-success-medium)",strong:"var(--bui-color-support-success-strong)"},warning:{subtler:"var(--bui-color-support-warning-subtler)",subtle:"var(--bui-color-support-warning-subtle)",medium:"var(--bui-color-support-warning-medium)",strong:"var(--bui-color-support-warning-strong)"},info:{subtler:"var(--bui-color-support-info-subtler)",subtle:"var(--bui-color-support-info-subtle)",medium:"var(--bui-color-support-info-medium)",strong:"var(--bui-color-support-info-strong)"}},focused:{primary:"var(--bui-color-focused-primary)",inset:"var(--bui-color-focused-inset)"},background:{primary:{subtle:"var(--bui-color-background-primary-subtle)",medium:"var(--bui-color-background-primary-medium)",strong:"var(--bui-color-background-primary-strong)"},inverse:{subtle:"var(--bui-color-background-inverse-subtle)",medium:"var(--bui-color-background-inverse-medium)",strong:"var(--bui-color-background-inverse-strong)"},secondary:{subtle:"var(--bui-color-background-secondary-subtle)",medium:"var(--bui-color-background-secondary-medium)",strong:"var(--bui-color-background-secondary-strong)"},overlay:{subtle:"var(--bui-color-background-overlay-subtle)",medium:"var(--bui-color-background-overlay-medium)",interactive:"var(--bui-color-background-overlay-interactive)"}},text:{primary:"var(--bui-color-text-primary)",secondary:"var(--bui-color-text-secondary)",helper:"var(--bui-color-text-helper)",placeholder:"var(--bui-color-text-placeholder)",inverse:"var(--bui-color-text-inverse)",disabled:"var(--bui-color-text-disabled)"},icon:{primary:"var(--bui-color-icon-primary)",secondary:"var(--bui-color-icon-secondary)",inverse:"var(--bui-color-icon-inverse)",interactive:"var(--bui-color-icon-interactive)",disabled:"var(--bui-color-icon-disabled)"},border:{subtle:"var(--bui-color-border-subtle)",medium:"var(--bui-color-border-medium)",strong:"var(--bui-color-border-strong)",inverse:"var(--bui-color-border-inverse)",interactive:"var(--bui-color-border-interactive)",disabled:"var(--bui-color-border-disabled)"},interactive:{primary:"var(--bui-color-interactive-primary)",hovered:"var(--bui-color-interactive-hovered)",active:"var(--bui-color-interactive-active)",visited:"var(--bui-color-interactive-visited)",disabled:"var(--bui-color-interactive-disabled)"},positive:{subtle:"var(--bui-color-positive-subtle)",medium:"var(--bui-color-positive-medium)",strong:"var(--bui-color-positive-strong)",interactive:"var(--bui-color-positive-interactive)"}},typography:{heading:{h6:{regular:{font:"var(--bui-typography-heading-h-6-regular-font)",letterSpacing:"var(--bui-typography-heading-h-6-regular-letter-spacing)"},medium:{font:"var(--bui-typography-heading-h-6-medium-font)",letterSpacing:"var(--bui-typography-heading-h-6-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-heading-h-6-semibold-font)",letterSpacing:"var(--bui-typography-heading-h-6-semibold-letter-spacing)"}},h5:{regular:{font:"var(--bui-typography-heading-h-5-regular-font)",letterSpacing:"var(--bui-typography-heading-h-5-regular-letter-spacing)"},medium:{font:"var(--bui-typography-heading-h-5-medium-font)",letterSpacing:"var(--bui-typography-heading-h-5-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-heading-h-5-semibold-font)",letterSpacing:"var(--bui-typography-heading-h-5-semibold-letter-spacing)"}},h4:{regular:{font:"var(--bui-typography-heading-h-4-regular-font)",letterSpacing:"var(--bui-typography-heading-h-4-regular-letter-spacing)"},medium:{font:"var(--bui-typography-heading-h-4-medium-font)",letterSpacing:"var(--bui-typography-heading-h-4-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-heading-h-4-semibold-font)",letterSpacing:"var(--bui-typography-heading-h-4-semibold-letter-spacing)"}},h3:{regular:{font:"var(--bui-typography-heading-h-3-regular-font)",letterSpacing:"var(--bui-typography-heading-h-3-regular-letter-spacing)"},medium:{font:"var(--bui-typography-heading-h-3-medium-font)",letterSpacing:"var(--bui-typography-heading-h-3-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-heading-h-3-semibold-font)",letterSpacing:"var(--bui-typography-heading-h-3-semibold-letter-spacing)"}},h2:{regular:{font:"var(--bui-typography-heading-h-2-regular-font)",letterSpacing:"var(--bui-typography-heading-h-2-regular-letter-spacing)"},medium:{font:"var(--bui-typography-heading-h-2-medium-font)",letterSpacing:"var(--bui-typography-heading-h-2-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-heading-h-2-semibold-font)",letterSpacing:"var(--bui-typography-heading-h-2-semibold-letter-spacing)"}},h1:{regular:{font:"var(--bui-typography-heading-h-1-regular-font)",letterSpacing:"var(--bui-typography-heading-h-1-regular-letter-spacing)"},medium:{font:"var(--bui-typography-heading-h-1-medium-font)",letterSpacing:"var(--bui-typography-heading-h-1-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-heading-h-1-semibold-font)",letterSpacing:"var(--bui-typography-heading-h-1-semibold-letter-spacing)"}}},label:{sm:{regular:{font:"var(--bui-typography-label-sm-regular-font)",letterSpacing:"var(--bui-typography-label-sm-regular-letter-spacing)"},medium:{font:"var(--bui-typography-label-sm-medium-font)",letterSpacing:"var(--bui-typography-label-sm-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-label-sm-semibold-font)",letterSpacing:"var(--bui-typography-label-sm-semibold-letter-spacing)"}},md:{regular:{font:"var(--bui-typography-label-md-regular-font)",letterSpacing:"var(--bui-typography-label-md-regular-letter-spacing)"},medium:{font:"var(--bui-typography-label-md-medium-font)",letterSpacing:"var(--bui-typography-label-md-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-label-md-semibold-font)",letterSpacing:"var(--bui-typography-label-md-semibold-letter-spacing)"}},lg:{regular:{font:"var(--bui-typography-label-lg-regular-font)",letterSpacing:"var(--bui-typography-label-lg-regular-letter-spacing)"},medium:{font:"var(--bui-typography-label-lg-medium-font)",letterSpacing:"var(--bui-typography-label-lg-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-label-lg-semibold-font)",letterSpacing:"var(--bui-typography-label-lg-semibold-letter-spacing)"}}},body:{sm:{regular:{font:"var(--bui-typography-body-sm-regular-font)",letterSpacing:"var(--bui-typography-body-sm-regular-letter-spacing)"},medium:{font:"var(--bui-typography-body-sm-medium-font)",letterSpacing:"var(--bui-typography-body-sm-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-body-sm-semibold-font)",letterSpacing:"var(--bui-typography-body-sm-semibold-letter-spacing)"}},md:{regular:{font:"var(--bui-typography-body-md-regular-font)",letterSpacing:"var(--bui-typography-body-md-regular-letter-spacing)"},medium:{font:"var(--bui-typography-body-md-medium-font)",letterSpacing:"var(--bui-typography-body-md-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-body-md-semibold-font)",letterSpacing:"var(--bui-typography-body-md-semibold-letter-spacing)"}},lg:{regular:{font:"var(--bui-typography-body-lg-regular-font)",letterSpacing:"var(--bui-typography-body-lg-regular-letter-spacing)"},medium:{font:"var(--bui-typography-body-lg-medium-font)",letterSpacing:"var(--bui-typography-body-lg-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-body-lg-semibold-font)",letterSpacing:"var(--bui-typography-body-lg-semibold-letter-spacing)"}}}}},y=(0,r.mapValues)((0,r.omit)({mobile:0,tablet:768,desktop:1280},"mobile"),(e=>`screen and (min-width: ${e}px)`)),b=e=>t=>t&&0!==Object.keys(t).length?{[y[e]]:t}:{},w=(b("tablet"),b("desktop"),{dialog:{row:{padding:{vertical:{xs:["xs","sm","sm"],sm:["sm","md","md"],md:["md","lg","lg"],lg:["lg","xl","xl"],xl:["lg","2xl","2xl"]},horizontal:{lg:["lg","2xl","2xl"],md:["sm","xl","xl"],sm:["sm","lg","lg"]}}}}});var x=p;x.base=p,x.variants=f,x.compoundVariants=h},8840:(e,t,n)=>{"use strict";n.d(t,{AK:()=>s,CB:()=>v,SD:()=>l,TI:()=>u,US:()=>p,Zw:()=>c,_t:()=>b,gn:()=>f,iT:()=>w,kG:()=>a,mS:()=>m,tG:()=>g});var r=n(1392),o=n(25235),i=n.n(o);function a(e,t){if(!e)throw new Error(t||"Invariant failed")}function s(...e){let t=e.filter(Boolean),n=[];for(let e of t)if(Array.isArray(e))n.push(s(...e));else if("object"==typeof e){let t=Object.keys(e);for(let r of t)e[r]&&n.push(r)}else"string"==typeof e&&n.push(e);return n.join(" ")}function l(e,t){return e?"string"==typeof e?t.querySelector(e):e instanceof HTMLElement?e:"current"in e?e.current:void 0:null}function c({text:e,fontSize:t=16,fontFamily:n="Arial",fontWeight:r="normal",fontStyle:o="normal",font:i}){let a=document.createElement("canvas").getContext("2d");if(!a)return{width:0,height:0};a.font=i||`${o} ${r} ${t}px ${n}`;let s=a.measureText(e);return{width:s.width,height:s.actualBoundingBoxAscent+s.actualBoundingBoxDescent}}function u({text:e,maxWidth:t,initialFontSize:n=50,fontFamily:r="Arial",fontWeight:o="normal",fontStyle:i="normal"}){let{width:a}=c({text:e,fontSize:n,fontFamily:r,fontWeight:o,fontStyle:i}),s=n,l=a;for(;l>t;)s-=.5,l=c({text:e,fontSize:s,fontFamily:r,fontWeight:o,fontStyle:i}).width;return Math.max(s,1)}var d=(e,t)=>(e+t)/2;function p(e,t=!0){if(!e.length)return"";let n=e.length;if(n<4)return"";let r=e[0],o=e[1],i=e[2],a=`M${r[0].toFixed(2)},${r[1].toFixed(2)} Q${o[0].toFixed(2)},${o[1].toFixed(2)} ${d(o[0],i[0]).toFixed(2)},${d(o[1],i[1]).toFixed(2)} T`;for(let t=2,i=n-1;t<i;t++)r=e[t],o=e[t+1],a+=`${d(r[0],o[0]).toFixed(2)},${d(r[1],o[1]).toFixed(2)} `;return t&&(a+="Z"),a}function h(e){return e.split("/").pop()?.split(".").shift()}function f(e){let t={};for(let n of Object.keys(e)){t[h(n)??""]=e[n]}return t}function m(e){return Object.fromEntries(Object.entries(e).filter((([,e])=>!!e)))}function g(e,t){a(t>=0&&t<=100,"Percent must be between 0 and 100");let n=(0,r.lu)(e),o=n.getChannelValue("red"),i=n.getChannelValue("green"),s=n.getChannelValue("blue"),l=Math.round(o+(255-o)*t/100),c=Math.round(i+(255-i)*t/100),u=Math.round(s+(255-s)*t/100);return`#${l.toString(16)}${c.toString(16)}${u.toString(16)}`}function v(e,t){if((e=e.trim()).includes(" "))return!1;try{return new URL(e),!0}catch{return!!t&&v(`https://${e}`)}}function y(){return e=/^Mac/i,typeof window<"u"&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform);var e,t}function b(e,t=!1){return y()?e.replace("Ctrl+",t?"⌘":"Cmd+").replace("Alt+",t?"⌥":"Option+").replace("Shift+",t?"⇧":"Shift+").replace("Enter+",t?"↩":"Enter+").replace("Space+",t?"␣":"Space+").replace("Enter",t?"↩":"Enter"):e}var w=e=>(new DOMParser).parseFromString(i().sanitize(e),"text/html").body.textContent||""},25235:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=_(Array.prototype.forEach),d=_(Array.prototype.pop),p=_(Array.prototype.push),h=_(String.prototype.toLowerCase),f=_(String.prototype.toString),m=_(String.prototype.match),g=_(String.prototype.replace),v=_(String.prototype.indexOf),y=_(String.prototype.trim),b=_(Object.prototype.hasOwnProperty),w=_(RegExp.prototype.test),x=S(TypeError);function _(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l(e,t,r)}}function S(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(e,n)}}function C(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function E(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function k(t){const n=s(null);for(const[r,o]of e(t))b(t,r)&&(Array.isArray(o)?n[r]=E(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=k(o):n[r]=o);return n}function z(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return _(n.get);if("function"==typeof n.value)return _(n.value)}e=r(e)}function n(){return null}return n}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"]),D=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"]),A=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"]),T=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"]),I=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"]),M=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=i(["#text"]),F=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"]),N=i(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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"]),O=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"]),j=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),B=a(/<%[\w\W]*|[\w\W]*%>/gm),K=a(/\${[\w\W]*}/gm),V=a(/^data-[\-\w.\u00B7-\uFFFF]/),H=a(/^aria-[\-\w]+$/),$=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=a(/^(?:\w+script|data):/i),Z=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=a(/^html$/i),G=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var W=Object.freeze({__proto__:null,MUSTACHE_EXPR:L,ERB_EXPR:B,TMPLIT_EXPR:K,DATA_ATTR:V,ARIA_ATTR:H,IS_ALLOWED_URI:$,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:Z,DOCTYPE_NAME:q,CUSTOM_ELEMENT:G});const Y={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},X=function(){return"undefined"==typeof window?null:window},Q=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));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}};function J(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X();const n=e=>J(e);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==Y.document)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:c,Node:_,Element:S,NodeFilter:E,NamedNodeMap:L=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:B,DOMParser:K,trustedTypes:V}=t,H=S.prototype,U=z(H,"cloneNode"),Z=z(H,"remove"),G=z(H,"nextSibling"),ee=z(H,"childNodes"),te=z(H,"parentNode");if("function"==typeof c){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ne,re="";const{implementation:oe,createNodeIterator:ie,createDocumentFragment:ae,getElementsByTagName:se}=r,{importNode:le}=o;let ce={};n.isSupported="function"==typeof e&&"function"==typeof te&&oe&&void 0!==oe.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:de,TMPLIT_EXPR:pe,DATA_ATTR:he,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:me,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ve}=W;let{IS_ALLOWED_URI:ye}=W,be=null;const we=C({},[...P,...D,...A,...I,...R]);let xe=null;const _e=C({},[...F,...N,...O,...j]);let Se=Object.seal(s(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}})),Ce=null,Ee=null,ke=!0,ze=!0,Pe=!1,De=!0,Ae=!1,Te=!0,Ie=!1,Me=!1,Re=!1,Fe=!1,Ne=!1,Oe=!1,je=!0,Le=!1;const Be="user-content-";let Ke=!0,Ve=!1,He={},$e=null;const Ue=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ze=null;const qe=C({},["audio","video","img","source","image","track"]);let Ge=null;const We=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Je=Qe,et=!1,tt=null;const nt=C({},[Ye,Xe,Qe],f);let rt=null;const ot=["application/xhtml+xml","text/html"],it="text/html";let at=null,st=null;const lt=r.createElement("form"),ct=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!st||st!==e){if(e&&"object"==typeof e||(e={}),e=k(e),rt=-1===ot.indexOf(e.PARSER_MEDIA_TYPE)?it:e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===rt?f:h,be=b(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,at):we,xe=b(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,at):_e,tt=b(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,f):nt,Ge=b(e,"ADD_URI_SAFE_ATTR")?C(k(We),e.ADD_URI_SAFE_ATTR,at):We,Ze=b(e,"ADD_DATA_URI_TAGS")?C(k(qe),e.ADD_DATA_URI_TAGS,at):qe,$e=b(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,at):Ue,Ce=b(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,at):{},Ee=b(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,at):{},He=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,ze=!1!==e.ALLOW_DATA_ATTR,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ae=e.SAFE_FOR_TEMPLATES||!1,Te=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Le=e.SANITIZE_NAMED_PROPS||!1,Ke=!1!==e.KEEP_CONTENT,Ve=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||$,Je=e.NAMESPACE||Qe,Se=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(ze=!1),Ne&&(Fe=!0),He&&(be=C({},R),xe=[],!0===He.html&&(C(be,P),C(xe,F)),!0===He.svg&&(C(be,D),C(xe,N),C(xe,j)),!0===He.svgFilters&&(C(be,A),C(xe,N),C(xe,j)),!0===He.mathMl&&(C(be,I),C(xe,O),C(xe,j))),e.ADD_TAGS&&(be===we&&(be=k(be)),C(be,e.ADD_TAGS,at)),e.ADD_ATTR&&(xe===_e&&(xe=k(xe)),C(xe,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&C(Ge,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&($e===Ue&&($e=k($e)),C($e,e.FORBID_CONTENTS,at)),Ke&&(be["#text"]=!0),Ie&&C(be,["html","head","body"]),be.table&&(C(be,["tbody"]),delete Ce.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,re=ne.createHTML("")}else void 0===ne&&(ne=Q(V,a)),null!==ne&&"string"==typeof re&&(re=ne.createHTML(""));i&&i(e),st=e}},dt=C({},["mi","mo","mn","ms","mtext"]),pt=C({},["foreignobject","annotation-xml"]),ht=C({},["title","style","font","a","script"]),ft=C({},[...D,...A,...T]),mt=C({},[...I,...M]),gt=function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});const n=h(e.tagName),r=h(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Xe?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Ye?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(ft[n]):e.namespaceURI===Ye?t.namespaceURI===Qe?"math"===n:t.namespaceURI===Xe?"math"===n&&pt[r]:Boolean(mt[n]):e.namespaceURI===Qe?!(t.namespaceURI===Xe&&!pt[r])&&!(t.namespaceURI===Ye&&!dt[r])&&!mt[n]&&(ht[n]||!ft[n]):!("application/xhtml+xml"!==rt||!tt[e.namespaceURI]))},vt=function(e){p(n.removed,{element:e});try{te(e).removeChild(e)}catch(t){Z(e)}},yt=function(e,t){try{p(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(Fe||Ne)try{vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){let t=null,n=null;if(Re)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===rt&&Je===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ne?ne.createHTML(e):e;if(Je===Qe)try{t=(new K).parseFromString(o,rt)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?re:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Je===Qe?se.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},wt=function(e){return ie.call(e.ownerDocument||e,e,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},xt=function(e){return e instanceof B&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof L)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},_t=function(e){return"function"==typeof _&&e instanceof _},St=function(e,t,r){ce[e]&&u(ce[e],(e=>{e.call(n,t,r,st)}))},Ct=function(e){let t=null;if(St("beforeSanitizeElements",e,null),xt(e))return vt(e),!0;const r=at(e.nodeName);if(St("uponSanitizeElement",e,{tagName:r,allowedTags:be}),e.hasChildNodes()&&!_t(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return vt(e),!0;if(e.nodeType===Y.progressingInstruction)return vt(e),!0;if(Te&&e.nodeType===Y.comment&&w(/<[/\w]/g,e.data))return vt(e),!0;if(!be[r]||Ce[r]){if(!Ce[r]&&kt(r)){if(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,r))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))return!1}if(Ke&&!$e[r]){const t=te(e)||e.parentNode,n=ee(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=U(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,G(e))}}return vt(e),!0}return e instanceof S&&!gt(e)?(vt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ae&&e.nodeType===Y.text&&(t=e.textContent,u([ue,de,pe],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(n.removed,{element:e.cloneNode()}),e.textContent=t)),St("afterSanitizeElements",e,null),!1):(vt(e),!0)},Et=function(e,t,n){if(je&&("id"===t||"name"===t)&&(n in r||n in lt))return!1;if(ze&&!Ee[t]&&w(he,t));else if(ke&&w(fe,t));else if(!xe[t]||Ee[t]){if(!(kt(e)&&(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&w(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ge[t]);else if(w(ye,g(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!Ze[e])if(Pe&&!w(me,g(n,ge,"")));else if(n)return!1;return!0},kt=function(e){return"annotation-xml"!==e&&m(e,ve)},zt=function(e){St("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:l}=i,c=at(a);let p="value"===a?l:y(l);if(r.attrName=c,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,St("uponSanitizeAttribute",e,r),p=r.attrValue,Te&&w(/((--!?|])>)|<\/(style|title)/i,p)){yt(a,e);continue}if(r.forceKeepAttr)continue;if(yt(a,e),!r.keepAttr)continue;if(!De&&w(/\/>/i,p)){yt(a,e);continue}Ae&&u([ue,de,pe],(e=>{p=g(p,e," ")}));const h=at(e.nodeName);if(Et(h,c,p)){if(!Le||"id"!==c&&"name"!==c||(yt(a,e),p=Be+p),ne&&"object"==typeof V&&"function"==typeof V.getAttributeType)if(s);else switch(V.getAttributeType(h,c)){case"TrustedHTML":p=ne.createHTML(p);break;case"TrustedScriptURL":p=ne.createScriptURL(p)}try{s?e.setAttributeNS(s,a,p):e.setAttribute(a,p),xt(e)?vt(e):d(n.removed)}catch(e){}}}St("afterSanitizeAttributes",e,null)},Pt=function e(t){let n=null;const r=wt(t);for(St("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)St("uponSanitizeShadowNode",n,null),Ct(n)||(n.content instanceof l&&e(n.content),zt(n));St("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,s=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!_t(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Me||ut(t),n.removed=[],"string"==typeof e&&(Ve=!1),Ve){if(e.nodeName){const t=at(e.nodeName);if(!be[t]||Ce[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof _)r=bt("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===Y.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Fe&&!Ae&&!Ie&&-1===e.indexOf("<"))return ne&&Oe?ne.createHTML(e):e;if(r=bt(e),!r)return Fe?null:Oe?re:""}r&&Re&&vt(r.firstChild);const c=wt(Ve?e:r);for(;a=c.nextNode();)Ct(a)||(a.content instanceof l&&Pt(a.content),zt(a));if(Ve)return e;if(Fe){if(Ne)for(s=ae.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(xe.shadowroot||xe.shadowrootmode)&&(s=le.call(o,s,!0)),s}let d=Ie?r.outerHTML:r.innerHTML;return Ie&&be["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&w(q,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Ae&&u([ue,de,pe],(e=>{d=g(d,e," ")})),ne&&Oe?ne.createHTML(d):d},n.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Me=!0},n.clearConfig=function(){st=null,Me=!1},n.isValidAttribute=function(e,t,n){st||ut({});const r=at(e),o=at(t);return Et(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(ce[e]=ce[e]||[],p(ce[e],t))},n.removeHook=function(e){if(ce[e])return d(ce[e])},n.removeHooks=function(e){ce[e]&&(ce[e]=[])},n.removeAllHooks=function(){ce={}},n}return J()}()},19315:(e,t,n)=>{"use strict";n.d(t,{CN:()=>i});new Map;new Map;const r=["hours","minutes","seconds"];n(2278);let o=new Map;class i{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return function(){null==c&&(c="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle);return c}()&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=s(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===r&&23===o)return"h23";if(24===r&&23===o)return"h24";if(0===r&&11===o)return"h11";if(12===r&&11===o)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=s(e,t),this.options=t}}const a={true:{ja:"h11"},false:{}};function s(e,t={}){if("boolean"==typeof t.hour12&&function(){null==l&&(l="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0)));return l}()){t={...t};let n=a[String(t.hour12)][e.split("-")[0]],r=t.hour12?"h12":"h23";t.hourCycle=null!=n?n:r,delete t.hour12}let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(o.has(n))return o.get(n);let r=new Intl.DateTimeFormat(e,t);return o.set(n,r),r}let l=null;let c=null},89424:(e,t,n)=>{"use strict";n.d(t,{e:()=>s,d:()=>u});let r=new Map,o=!1;try{o="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let i=!1;try{i="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const a={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class s{format(e){let t="";if(t=o||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));{let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),o=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!==[...o].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(o,"+").replace("!!!",r)}return e.format(n)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!i){var n;let{unit:e,unitDisplay:r="short",locale:o}=this.resolvedOptions();if(!e)return t;let i=null===(n=a[e])||void 0===n?void 0:n[r];t+=i[o]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return o||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),i||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:n}=t;n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`);if("unit"===t.style&&!i){var o;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(o=a[e])||void 0===o?void 0:o[n]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:"decimal"}}let s=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(r.has(s))return r.get(s);let l=new Intl.NumberFormat(e,t);return r.set(s,l),l}(e,t),this.options=t}}const l=new RegExp("^.*\\(.*\\).*$"),c=["latn","arab","hanidec"];class u{parse(e){return p(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return p(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return p(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const d=new Map;function p(e,t,n){let r=h(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n))for(let o of c)if(o!==r.options.numberingSystem){let r=h(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(r.isValidPartialNumber(n))return r}return r}function h(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),r=d.get(n);return r||(r=new f(e,t),d.set(n,r)),r}class f{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=v(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-");t=t.replace("-","");let n=t.indexOf(".");-1===n&&(n=t.length),t=t.replace(".",""),t=n-2==0?`0.${t}`:n-2==-1?`0.0${t}`:n-2==-2?"0.00":`${t.slice(0,n-2)}.${t.slice(n-2)}`,e>-1&&(t=`-${t}`)}let n=t?+t:NaN;if(isNaN(n))return NaN;if("percent"===this.options.style){var r,o;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(r=this.options.minimumFractionDigits)&&void 0!==r?r:0)+2,20),maximumFractionDigits:Math.min((null!==(o=this.options.maximumFractionDigits)&&void 0!==o?o:0)+2,20)};return new u(this.locale,e).parse(new s(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&l.test(e)&&(n*=-1),n}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=v(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&(e=v(e,".",String.fromCharCode(8239))),e}isValidPartialNumber(e,t=-1/0,n=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),(!this.symbols.group||!e.startsWith(this.symbols.group))&&(!(this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits)&&(this.symbols.group&&(e=v(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0===e.length))}constructor(e,t={}){var n,r;this.locale=e,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,n,r){var o,i,a,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),d=g.map((e=>l.formatToParts(e)));var p;let h=null!==(p=null===(o=c.find((e=>"minusSign"===e.type)))||void 0===o?void 0:o.value)&&void 0!==p?p:"-",f=null===(i=u.find((e=>"plusSign"===e.type)))||void 0===i?void 0:i.value;f||"exceptZero"!==(null==r?void 0:r.signDisplay)&&"always"!==(null==r?void 0:r.signDisplay)||(f="+");let v=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),b=null===(a=v.find((e=>"decimal"===e.type)))||void 0===a?void 0:a.value,w=null===(s=c.find((e=>"group"===e.type)))||void 0===s?void 0:s.value,x=c.filter((e=>!m.has(e.type))).map((e=>y(e.value))),_=d.flatMap((e=>e.filter((e=>!m.has(e.type))).map((e=>y(e.value))))),S=[...new Set([...x,..._])].sort(((e,t)=>t.length-e.length)),C=0===S.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${S.join("|")}|[\\p{White_Space}]`,"gu"),E=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(E.map(((e,t)=>[e,t]))),z=new RegExp(`[${E.join("")}]`,"g");return{minusSign:h,plusSign:f,decimal:b,group:w,literals:C,numeral:z,index:e=>String(k.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!==(n=this.options.minimumFractionDigits)&&void 0!==n?n:0)>18||(null!==(r=this.options.maximumFractionDigits)&&void 0!==r?r:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const m=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),g=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function v(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},6275:(e,t,n)=>{"use strict";n.d(t,{J:()=>a,E:()=>c});const r=Symbol.for("react-aria.i18n.locale"),o=Symbol.for("react-aria.i18n.strings");let i;class a{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw new Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){if(t[e])return t[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[r];if(void 0===i){let e=window[o];if(!e)return null;i={};for(let n in e)i[n]=new a({[t]:e[n]},t)}let n=null==i?void 0:i[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter((([,e])=>e))),this.defaultLocale=t}}const s=new Map,l=new Map;class c{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let o=this.locale+":"+n,i=s.get(o);return i||(i=new Intl.PluralRules(this.locale,{type:n}),s.set(o,i)),r=t[i.select(e)]||t.other,"function"==typeof r?r():r}number(e){let t=l.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),l.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}},86254:(e,t,n)=>{"use strict";n.d(t,{do:()=>V});var r,o=[],i="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var a,s=function(e){return Object.freeze(e)},l=function(e,t){this.inlineSize=e,this.blockSize=t,s(this)},c=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,s(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),u=function(e){return e instanceof SVGElement&&"getBBox"in e},d=function(e){if(u(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},p=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},h="undefined"!=typeof window?window:{},f=new WeakMap,m=/auto|scroll/,g=/^tb|vertical/,v=/msie|trident/i.test(h.navigator&&h.navigator.userAgent),y=function(e){return parseFloat(e||"0")},b=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new l((n?t:e)||0,(n?e:t)||0)},w=s({devicePixelContentBoxSize:b(),borderBoxSize:b(),contentBoxSize:b(),contentRect:new c(0,0,0,0)}),x=function(e,t){if(void 0===t&&(t=!1),f.has(e)&&!t)return f.get(e);if(d(e))return f.set(e,w),w;var n=getComputedStyle(e),r=u(e)&&e.ownerSVGElement&&e.getBBox(),o=!v&&"border-box"===n.boxSizing,i=g.test(n.writingMode||""),a=!r&&m.test(n.overflowY||""),l=!r&&m.test(n.overflowX||""),p=r?0:y(n.paddingTop),h=r?0:y(n.paddingRight),x=r?0:y(n.paddingBottom),_=r?0:y(n.paddingLeft),S=r?0:y(n.borderTopWidth),C=r?0:y(n.borderRightWidth),E=r?0:y(n.borderBottomWidth),k=_+h,z=p+x,P=(r?0:y(n.borderLeftWidth))+C,D=S+E,A=l?e.offsetHeight-D-e.clientHeight:0,T=a?e.offsetWidth-P-e.clientWidth:0,I=o?k+P:0,M=o?z+D:0,R=r?r.width:y(n.width)-I-T,F=r?r.height:y(n.height)-M-A,N=R+k+T+P,O=F+z+A+D,j=s({devicePixelContentBoxSize:b(Math.round(R*devicePixelRatio),Math.round(F*devicePixelRatio),i),borderBoxSize:b(N,O,i),contentBoxSize:b(R,F,i),contentRect:new c(_,p,R,F)});return f.set(e,j),j},_=function(e,t,n){var o=x(e,n),i=o.borderBoxSize,a=o.contentBoxSize,s=o.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return s;case r.BORDER_BOX:return i;default:return a}},S=function(e){var t=x(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=s([t.borderBoxSize]),this.contentBoxSize=s([t.contentBoxSize]),this.devicePixelContentBoxSize=s([t.devicePixelContentBoxSize])},C=function(e){if(d(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},E=function(){var e=1/0,t=[];o.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new S(t.target),o=C(t.target);r.push(n),t.lastReportedSize=_(t.target,t.observedBox),o<e&&(e=o)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},k=function(e){o.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(C(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},z=function(){var e,t=0;for(k(t);o.some((function(e){return e.activeTargets.length>0}));)t=E(),k(t);return o.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:i}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=i),window.dispatchEvent(e)),t>0},P=[],D=function(e){if(!a){var t=0,n=document.createTextNode("");new MutationObserver((function(){return P.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),a=function(){n.textContent="".concat(t?t--:t++)}}P.push(e),a()},A=0,T={attributes:!0,characterData:!0,childList:!0,subtree:!0},I=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],M=function(e){return void 0===e&&(e=0),Date.now()+e},R=!1,F=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!R){R=!0;var n,r=M(e);n=function(){var n=!1;try{n=z()}finally{if(R=!1,e=r-M(),!A)return;n?t.run(1e3):e>0?t.run(e):t.start()}},D((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,T)};document.body?t():h.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),I.forEach((function(t){return h.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),I.forEach((function(t){return h.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),N=function(e){!A&&e>0&&F.start(),!(A+=e)&&F.stop()},O=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=_(this.target,this.observedBox,!0);return e=this.target,u(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),j=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},L=new WeakMap,B=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},K=function(){function e(){}return e.connect=function(e,t){var n=new j(e,t);L.set(e,n)},e.observe=function(e,t,n){var r=L.get(e),i=0===r.observationTargets.length;B(r.observationTargets,t)<0&&(i&&o.push(r),r.observationTargets.push(new O(t,n&&n.box)),N(1),F.schedule())},e.unobserve=function(e,t){var n=L.get(e),r=B(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&o.splice(o.indexOf(n),1),n.observationTargets.splice(r,1),N(-1))},e.disconnect=function(e){var t=this,n=L.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),V=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");K.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");K.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");K.unobserve(this,e)},e.prototype.disconnect=function(){K.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},1437:(e,t,n)=>{"use strict";n(41746);n(13807),n(44608)},9864:(e,t,n)=>{"use strict";n.d(t,{U:()=>a,k:()=>s});var r=n(13807),o=n(21722),i=n(14147);function a(e,t){let n,{elementType:a="button",isDisabled:s,onPress:l,onPressStart:c,onPressEnd:u,onPressUp:d,onPressChange:p,preventFocusOnPress:h,allowFocusWhenDisabled:f,onClick:m,href:g,target:v,rel:y,type:b="button"}=e;n="button"===a?{type:b,disabled:s}:{role:"button",tabIndex:s?void 0:0,href:"a"===a&&s?void 0:g,target:"a"===a?v:void 0,type:"input"===a?b:void 0,disabled:"input"===a?s:void 0,"aria-disabled":s&&"input"!==a?s:void 0,rel:"a"===a?y:void 0};let{pressProps:w,isPressed:x}=(0,i.r7)({onPressStart:c,onPressEnd:u,onPressChange:p,onPress:l,onPressUp:d,isDisabled:s,preventFocusOnPress:h,ref:t}),{focusableProps:_}=(0,o.kc)(e,t);f&&(_.tabIndex=s?-1:_.tabIndex);let S=(0,r.dG)(_,w,(0,r.zL)(e,{labelable:!0}));return{isPressed:x,buttonProps:(0,r.dG)(n,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{m&&(m(e),console.warn("onClick is deprecated, please use onPress"))}})}}function s(e,t,n){const{isSelected:o}=t,{isPressed:i,buttonProps:s}=a({...e,onPress:(0,r.tS)(t.toggle,e.onPress)},n);return{isPressed:i,buttonProps:(0,r.dG)(s,{"aria-pressed":o})}}},77656:(e,t,n)=>{"use strict";n(19315),n(44608),n(67294);new WeakMap;n(55260),n(13807);n(14147)},16827:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(67294),o=n(57992),i=n(35998),a=n(22607);function s(e,t,n){let s=(0,i.Q3)({...e,value:t.isSelected}),{isInvalid:l,validationErrors:c,validationDetails:u}=s.displayValidation,{labelProps:d,inputProps:p,isSelected:h,isPressed:f,isDisabled:m,isReadOnly:g}=(0,a.O)({...e,isInvalid:l},t,n);(0,o.Q)(e,s,n);let{isIndeterminate:v,isRequired:y,validationBehavior:b="aria"}=e;return(0,r.useEffect)((()=>{n.current&&(n.current.indeterminate=!!v)})),{labelProps:d,inputProps:{...p,checked:h,"aria-required":y&&"aria"===b||void 0,required:y&&"native"===b},isSelected:h,isPressed:f,isDisabled:m,isReadOnly:g,isInvalid:l,validationErrors:c,validationDetails:u}}new WeakMap;n(13807),n(31111),n(14147);n(94730)},4064:(e,t,n)=>{"use strict";n.d(t,{E:()=>m});var r;r={"ar-AE":{buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`},"bg-BG":{buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`},"cs-CZ":{buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`},"da-DK":{buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`},"de-DE":{buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`},"el-GR":{buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`},"en-US":{focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"},"es-ES":{buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`},"et-EE":{buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`},"fi-FI":{buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`},"fr-FR":{buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`},"he-IL":{buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`},"hr-HR":{buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`},"hu-HU":{buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`},"it-IT":{buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`},"ja-JP":{buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`},"ko-KR":{buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`},"lt-LT":{buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`},"lv-LV":{buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`},"nb-NO":{buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`},"nl-NL":{buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`},"pl-PL":{buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`},"pt-BR":{buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`},"pt-PT":{buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`},"ro-RO":{buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`},"ru-RU":{buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`},"sk-SK":{buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`},"sl-SI":{buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`},"sr-SP":{buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`},"sv-SE":{buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`},"tr-TR":{buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`},"uk-UA":{buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`},"zh-CN":{buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组，其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`},"zh-TW":{buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`}};var o=n(55260),i=n(65363),a=n(40297),s=n(13807),l=n(67294),c=n(56406),u=n(16752),d=n(35998),p=n(44608),h=n(54254),f=n(96382);function m(e,t){let{buttonRef:n,popoverRef:m,inputRef:g,listBoxRef:v,keyboardDelegate:y,layoutDelegate:b,shouldFocusWrap:w,isReadOnly:x,isDisabled:_}=e,S=(0,p.qb)((C=r)&&C.__esModule?C.default:C,"@react-aria/combobox");var C;let{menuTriggerProps:E,menuProps:k}=(0,h.u4)({type:"listbox",isDisabled:_||x},t,n);a.Oj.set(t,{id:k.id});let{collection:z}=t,{disabledKeys:P}=t.selectionManager,D=(0,l.useMemo)((()=>y||new(0,u.dp)({collection:z,disabledKeys:P,ref:v,layoutDelegate:b})),[y,b,z,P,v]),{collectionProps:A}=(0,u.gq)({selectionManager:t.selectionManager,keyboardDelegate:D,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:w,ref:g,isVirtualized:!0}),T=(0,s.tv)(),{isInvalid:I,validationErrors:M,validationDetails:R}=t.displayValidation,{labelProps:F,inputProps:N,descriptionProps:O,errorMessageProps:j}=(0,f.E)({...e,onChange:t.setInputValue,onKeyDown:x?e.onKeyDown:(0,s.tS)(t.isOpen&&A.onKeyDown,(n=>{if(!n.nativeEvent.isComposing)switch(n.key){case"Enter":case"Tab":if(t.isOpen&&"Enter"===n.key&&n.preventDefault(),t.isOpen&&null!=t.selectionManager.focusedKey&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if("Enter"===n.key){let e=v.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(e instanceof HTMLAnchorElement){let r=t.collection.getItem(t.selectionManager.focusedKey);T.open(e,n,r.props.href,r.props.routerOptions)}}t.close()}else t.commit();break;case"Escape":(null!==t.selectedKey||""===t.inputValue||e.allowsCustomValue)&&n.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null)}}),e.onKeyDown),onBlur:r=>{var o;let i=(null==n?void 0:n.current)&&n.current===r.relatedTarget,a=null===(o=m.current)||void 0===o?void 0:o.contains(r.relatedTarget);i||a||(e.onBlur&&e.onBlur(r),t.setFocused(!1))},value:t.inputValue,onFocus:n=>{t.isFocused||(e.onFocus&&e.onFocus(n),t.setFocused(!0))},autoComplete:"off",validate:void 0,[d.tL]:t},g),L=(0,s.bE)({id:E.id,"aria-label":S.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||F.id}),B=(0,s.bE)({id:k.id,"aria-label":S.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||F.id}),K=(0,l.useRef)(0),V=null!=t.selectionManager.focusedKey&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var H;let $=null!==(H=null==V?void 0:V.parentKey)&&void 0!==H?H:null;var U;let Z=null!==(U=t.selectionManager.focusedKey)&&void 0!==U?U:null,q=(0,l.useRef)($),G=(0,l.useRef)(Z);(0,l.useEffect)((()=>{if((0,s.ad)()&&null!=V&&Z!==G.current){let e=t.selectionManager.isSelected(Z),n=null!=$?t.collection.getItem($):null,r=(null==n?void 0:n["aria-label"])||("string"==typeof(null==n?void 0:n.rendered)?n.rendered:"")||"",i=S.format("focusAnnouncement",{isGroupChange:n&&$!==q.current,groupTitle:r,groupCount:n?[...(0,c._P)(n,t.collection)].length:0,optionText:V["aria-label"]||V.textValue||"",isSelected:e});(0,o.xQ)(i)}q.current=$,G.current=Z}));let W=(0,c.is)(t.collection),Y=(0,l.useRef)(W),X=(0,l.useRef)(t.isOpen);(0,l.useEffect)((()=>{let e=t.isOpen!==X.current&&(null==t.selectionManager.focusedKey||(0,s.ad)());if(t.isOpen&&(e||W!==Y.current)){let e=S.format("countAnnouncement",{optionCount:W});(0,o.xQ)(e)}Y.current=W,X.current=t.isOpen}));let Q=(0,l.useRef)(t.selectedKey);return(0,l.useEffect)((()=>{if((0,s.ad)()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Q.current){let e=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",n=S.format("selectedAnnouncement",{optionText:e});(0,o.xQ)(n)}Q.current=t.selectedKey})),(0,l.useEffect)((()=>{if(t.isOpen)return(0,i.RP)([g.current,m.current])}),[t.isOpen,g,m]),{labelProps:F,buttonProps:{...E,...L,excludeFromTabOrder:!0,onPress:e=>{"touch"===e.pointerType&&(g.current.focus(),t.toggle(null,"manual"))},onPressStart:e=>{"touch"!==e.pointerType&&(g.current.focus(),t.toggle("keyboard"===e.pointerType||"virtual"===e.pointerType?"first":null,"manual"))},isDisabled:_||x},inputProps:(0,s.dG)(N,{role:"combobox","aria-expanded":E["aria-expanded"],"aria-controls":t.isOpen?k.id:void 0,"aria-autocomplete":"list","aria-activedescendant":V?(0,a.x3)(t,V.key):void 0,onTouchEnd:e=>{if(_||x)return;if(e.timeStamp-K.current<500)return e.preventDefault(),void g.current.focus();let n=e.target.getBoundingClientRect(),r=e.changedTouches[0],o=Math.ceil(n.left+.5*n.width),i=Math.ceil(n.top+.5*n.height);r.clientX===o&&r.clientY===i&&(e.preventDefault(),g.current.focus(),t.toggle(null,"manual"),K.current=e.timeStamp)},autoCorrect:"off",spellCheck:"false"}),listBoxProps:(0,s.dG)(k,B,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:O,errorMessageProps:j,isInvalid:I,validationErrors:M,validationDetails:R}}},6028:(e,t,n)=>{"use strict";n(21722),n(13807),n(44608),n(67294),n(14147);n(31111),n(57992);new WeakMap,Date.now(),Date.now();n(35998);n(19315),n(89424),n(65163)},61230:(e,t,n)=>{"use strict";n.d(t,{R:()=>s});var r=n(13807),o=n(21722),i=n(67294),a=n(65363);function s(e,t){let{role:n="dialog"}=e,s=(0,r.mp)();s=e["aria-label"]?void 0:s;let l=(0,i.useRef)(!1);return(0,i.useEffect)((()=>{if(t.current&&!t.current.contains(document.activeElement)){(0,o.ex)(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(l.current=!0,t.current&&(t.current.blur(),(0,o.ex)(t.current)),l.current=!1)}),500);return()=>{clearTimeout(e)}}}),[t]),(0,a.Bq)(),{dialogProps:{...(0,r.zL)(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||s,onBlur:e=>{l.current&&e.stopPropagation()}},titleProps:{id:s}}}},84992:(e,t,n)=>{"use strict";var r,o;n.d(t,{vI:()=>_e,hO:()=>Se,VP:()=>be,Xu:()=>ge,J4:()=>me,LW:()=>oe,Dr:()=>he,zw:()=>de}),(o=r||(r={}))[o.none=0]="none",o[o.cancel=0]="cancel",o[o.move=1]="move",o[o.copy=2]="copy",o[o.link=4]="link",o[o.all=7]="all";const i={...r,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},a=c(i);a[7]="all";c(r);const s={none:"cancel",link:"link",copy:"copy",move:"move"},l=c(s);function c(e){let t={};for(let n in e)t[e[n]]=n;return t}const u=new Set(["text/plain","text/uri-list","text/html"]),d="application/vnd.react-aria.items+json",p="application/octet-stream";var h=n(14147);const f=new WeakMap,m=Symbol();function g(e){let{id:t}=f.get(e);if(!t)throw new Error("Droppable item outside a droppable collection");return t}function v(e){let{ref:t}=f.get(e);if(!t)throw new Error("Droppable item outside a droppable collection");return t}function y(e){let t=new Set;for(let n of e)for(let e of Object.keys(n))t.add(e);return t}function b(e){return e||(e="virtual"),"pointer"===e&&(e="virtual"),"virtual"===e&&"undefined"!=typeof window&&"ontouchstart"in window&&(e="touch"),e}function w(){return b((0,h.Kf)())}function x(){return b((0,h.Jz)())}function _(e,t){let n=new Map,r=!1,o=[];for(let e of t){let t=Object.keys(e);t.length>1&&(r=!0);let i={};for(let o of t){let t=n.get(o);t?r=!0:(t=[],n.set(o,t));let a=e[o];i[o]=a,t.push(a)}o.push(i)}for(let[t,r]of n)if(u.has(t)){let n=r.join("\n");e.items.add(n,t)}else e.items.add(r[0],t);if(r){let t=JSON.stringify(o);e.items.add(t,d)}}class S{has(e){return!!(this.includesUnknownTypes||e===m&&this.types.has(p))||"string"==typeof e&&this.types.has(e)}constructor(e){this.types=new Set;let t=!1;for(let n of e.items)n.type!==d&&("file"===n.kind&&(t=!0),n.type?this.types.add(n.type):this.types.add(p));this.includesUnknownTypes=!t&&e.types.includes("Files")}}function C(e){let t=[],n=!1;if(e.types.includes(d))try{let r=e.getData(d),o=JSON.parse(r);for(let e of o)t.push({kind:"text",types:new Set(Object.keys(e)),getText:t=>Promise.resolve(e[t])});n=!0}catch(e){}if(!n){let n=new Map;for(let r of e.items)if("string"===r.kind)n.set(r.type||p,e.getData(r.type));else if("file"===r.kind)if("function"==typeof r.webkitGetAsEntry){let e=r.webkitGetAsEntry();if(!e)continue;e.isFile?t.push(E(r.getAsFile())):e.isDirectory&&t.push(k(e))}else t.push(E(r.getAsFile()));n.size>0&&t.push({kind:"text",types:new Set(n.keys()),getText:e=>Promise.resolve(n.get(e))})}return t}function E(e){return{kind:"file",type:e.type||p,name:e.name,getText:()=>{return"function"==typeof(t=e).text?t.text():new Promise(((e,n)=>{let r=new FileReader;r.onload=()=>{e(r.result)},r.onerror=n,r.readAsText(t)}));var t},getFile:()=>Promise.resolve(e)}}function k(e){return{kind:"directory",name:e.name,getEntries:()=>async function*(e){let t,n=e.createReader();do{t=await new Promise(((e,t)=>{n.readEntries(e,t)}));for(let e of t)if(e.isFile){let t=await z(e);yield E(t)}else e.isDirectory&&(yield k(e))}while(t.length>0)}(e)}}function z(e){return new Promise(((t,n)=>e.file(t,n)))}let P,D={draggingKeys:new Set};function A(e){D.draggingCollectionRef=e}function T(e){D.dropCollectionRef=e}function I(){D={draggingKeys:new Set}}function M(e){D=e}function R(e){let{draggingCollectionRef:t,dropCollectionRef:n}=D;return null!=(null==t?void 0:t.current)&&t.current===((null==e?void 0:e.current)||(null==n?void 0:n.current))}function F(e){P=e}let N=r.none;function O(e){N=e}var j=n(55260),L=n(65363),B=n(13807),K=n(67294);let V=new Map,H=new Map,$=null,U=new Set;function Z(e){return V.set(e.element,e),null==$||$.updateValidDropTargets(),()=>{V.delete(e.element),null==$||$.updateValidDropTargets()}}function q(){let[e,t]=(0,K.useState)($);return(0,K.useEffect)((()=>{let e=()=>t($);return U.add(e),()=>{U.delete(e)}}),[]),e}const G=["pointerdown","pointermove","pointerenter","pointerleave","pointerover","pointerout","pointerup","mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","touchstart","touchmove","touchend","focusin","focusout"],W=["pointerup","mouseup","touchend"],Y={keyboard:"dragStartedKeyboard",touch:"dragStartedTouch",virtual:"dragStartedVirtual"};class X{setup(){document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("keyup",this.onKeyUp,!0),window.addEventListener("focus",this.onFocus,!0),window.addEventListener("blur",this.onBlur,!0),document.addEventListener("click",this.onClick,!0),document.addEventListener("pointerdown",this.onPointerDown,!0);for(let e of G)document.addEventListener(e,this.cancelEvent,!0);this.mutationObserver=new MutationObserver((()=>this.updateValidDropTargets())),this.updateValidDropTargets(),(0,j.xQ)(this.stringFormatter.format(Y[x()]))}teardown(){document.removeEventListener("keydown",this.onKeyDown,!0),document.removeEventListener("keyup",this.onKeyUp,!0),window.removeEventListener("focus",this.onFocus,!0),window.removeEventListener("blur",this.onBlur,!0),document.removeEventListener("click",this.onClick,!0),document.removeEventListener("pointerdown",this.onPointerDown,!0);for(let e of G)document.removeEventListener(e,this.cancelEvent,!0);this.mutationObserver.disconnect(),this.restoreAriaHidden()}onKeyDown(e){var t;this.cancelEvent(e),"Escape"!==e.key?("Tab"!==e.key||e.metaKey||e.altKey||e.ctrlKey||(e.shiftKey?this.previous():this.next()),"function"==typeof(null===(t=this.currentDropTarget)||void 0===t?void 0:t.onKeyDown)&&this.currentDropTarget.onKeyDown(e,this.dragTarget)):this.cancel()}onKeyUp(e){this.cancelEvent(e),"Enter"===e.key&&(e.altKey?this.activate():this.drop())}onFocus(e){if(e.target!==this.dragTarget.element&&this.cancelEvent(e),!(e.target instanceof HTMLElement)||e.target===this.dragTarget.element)return;let t=this.validDropTargets.find((t=>t.element===e.target))||this.validDropTargets.find((t=>t.element.contains(e.target)));if(!t)return void(this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus());let n=H.get(e.target);this.setCurrentDropTarget(t,n)}onBlur(e){e.target!==this.dragTarget.element&&this.cancelEvent(e),e.relatedTarget&&e.relatedTarget instanceof HTMLElement||(this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus())}onClick(e){if(this.cancelEvent(e),(0,B.Zj)(e)||this.isVirtualClick){if(e.target===this.dragTarget.element)return void this.cancel();let t=this.validDropTargets.find((t=>t.element.contains(e.target)));if(t){let n=H.get(e.target);this.setCurrentDropTarget(t,n),this.drop(n)}}}onPointerDown(e){this.cancelEvent(e),this.isVirtualClick=(0,B.cr)(e)}cancelEvent(e){var t;("focusin"!==e.type&&"focusout"!==e.type||e.target!==(null===(t=this.dragTarget)||void 0===t?void 0:t.element))&&(W.includes(e.type)||e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())}updateValidDropTargets(){if(!this.mutationObserver)return;if(this.mutationObserver.disconnect(),this.restoreAriaHidden&&this.restoreAriaHidden(),this.validDropTargets=function(e){let t=y(e.items);return[...V.values()].filter((n=>!n.element.closest('[aria-hidden="true"]')&&("function"!=typeof n.getDropOperation||"cancel"!==n.getDropOperation(t,e.allowedDropOperations))))}(this.dragTarget),this.validDropTargets.length>0){let e=this.findNearestDropTarget();this.validDropTargets=[...this.validDropTargets.slice(e),...this.validDropTargets.slice(0,e)]}this.currentDropTarget&&!this.validDropTargets.includes(this.currentDropTarget)&&this.setCurrentDropTarget(this.validDropTargets[0]);let e=y(this.dragTarget.items),t=[...H.values()].filter((t=>"function"!=typeof t.getDropOperation||"cancel"!==t.getDropOperation(e,this.dragTarget.allowedDropOperations))),n=this.validDropTargets.filter((e=>!t.some((t=>e.element.contains(t.element)))));this.restoreAriaHidden=(0,L.RP)([this.dragTarget.element,...t.map((e=>e.element)),...n.map((e=>e.element))]),this.mutationObserver.observe(document.body,{subtree:!0,attributes:!0,attributeFilter:["aria-hidden"]})}next(){if(!this.currentDropTarget)return void this.setCurrentDropTarget(this.validDropTargets[0]);let e=this.validDropTargets.indexOf(this.currentDropTarget);e<0?this.setCurrentDropTarget(this.validDropTargets[0]):e===this.validDropTargets.length-1?this.dragTarget.element.closest('[aria-hidden="true"]')?this.setCurrentDropTarget(this.validDropTargets[0]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[e+1])}previous(){if(!this.currentDropTarget)return void this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]);let e=this.validDropTargets.indexOf(this.currentDropTarget);e<0?this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]):0===e?this.dragTarget.element.closest('[aria-hidden="true"]')?this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[e-1])}findNearestDropTarget(){let e=this.dragTarget.element.getBoundingClientRect(),t=1/0,n=-1;for(let r=0;r<this.validDropTargets.length;r++){let o=this.validDropTargets[r].element.getBoundingClientRect(),i=o.left-e.left,a=o.top-e.top,s=i*i+a*a;s<t&&(t=s,n=r)}return n}setCurrentDropTarget(e,t){if(e!==this.currentDropTarget){if(this.currentDropTarget&&"function"==typeof this.currentDropTarget.onDropExit){let e=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDropExit({type:"dropexit",x:e.left+e.width/2,y:e.top+e.height/2})}if(this.currentDropTarget=e,e){if("function"==typeof e.onDropEnter){let t=e.element.getBoundingClientRect();e.onDropEnter({type:"dropenter",x:t.left+t.width/2,y:t.top+t.height/2},this.dragTarget)}t||null==e||e.element.focus()}}t!==this.currentDropItem&&(t&&"function"==typeof this.currentDropTarget.onDropTargetEnter&&this.currentDropTarget.onDropTargetEnter(null==t?void 0:t.target),null==t||t.element.focus(),this.currentDropItem=t,this.initialFocused||((0,j.xQ)(null==t?void 0:t.element.getAttribute("aria-label"),"polite"),this.initialFocused=!0))}end(){if(this.teardown(),function(){$=null;for(let e of U)e()}(),"function"==typeof this.dragTarget.onDragEnd){let e=(this.currentDropTarget&&"cancel"!==this.dropOperation?this.currentDropTarget:this.dragTarget).element.getBoundingClientRect();this.dragTarget.onDragEnd({type:"dragend",x:e.x+e.width/2,y:e.y+e.height/2,dropOperation:this.dropOperation||"cancel"})}this.currentDropTarget&&!this.currentDropTarget.preventFocusOnDrop&&document.activeElement.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),this.setCurrentDropTarget(null)}cancel(){this.setCurrentDropTarget(null),this.end(),this.dragTarget.element.closest('[aria-hidden="true"]')||this.dragTarget.element.focus(),(0,j.xQ)(this.stringFormatter.format("dropCanceled"))}drop(e){if(this.currentDropTarget){if("function"==typeof(null==e?void 0:e.getDropOperation)){let t=y(this.dragTarget.items);this.dropOperation=e.getDropOperation(t,this.dragTarget.allowedDropOperations)}else if("function"==typeof this.currentDropTarget.getDropOperation){let e=y(this.dragTarget.items);this.dropOperation=this.currentDropTarget.getDropOperation(e,this.dragTarget.allowedDropOperations)}else this.dropOperation=this.dragTarget.allowedDropOperations[0];if("function"==typeof this.currentDropTarget.onDrop){let t=this.dragTarget.items.map((e=>({kind:"text",types:new Set(Object.keys(e)),getText:t=>Promise.resolve(e[t])}))),n=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDrop({type:"drop",x:n.left+n.width/2,y:n.top+n.height/2,items:t,dropOperation:this.dropOperation},null==e?void 0:e.target)}this.end(),(0,j.xQ)(this.stringFormatter.format("dropComplete"))}else this.cancel()}activate(){if(this.currentDropTarget&&"function"==typeof this.currentDropTarget.onDropActivate){let e=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDropActivate({type:"dropactivate",x:e.left+e.width/2,y:e.top+e.height/2})}}constructor(e,t){this.dragTarget=e,this.stringFormatter=t,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.cancelEvent=this.cancelEvent.bind(this),this.initialFocused=!1}}var Q;Q={"ar-AE":{dragDescriptionKeyboard:"اضغط Enter لبدء السحب.",dragDescriptionKeyboardAlt:"اضغط على Alt + Enter لبدء السحب.",dragDescriptionLongPress:"اضغط باستمرار لبدء السحب.",dragDescriptionTouch:"اضغط مرتين لبدء السحب.",dragDescriptionVirtual:"انقر لبدء السحب.",dragItem:e=>`اسحب ${e.itemText}`,dragSelectedItems:(e,t)=>`اسحب ${t.plural(e.count,{one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عناصر محددة`})}`,dragSelectedKeyboard:(e,t)=>`اضغط على Enter للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragSelectedKeyboardAlt:(e,t)=>`اضغط على مفتاحي Alt + Enter للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragSelectedLongPress:(e,t)=>`اضغط باستمرار للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragStartedKeyboard:"بدأ السحب. اضغط Tab للانتقال إلى موضع الإفلات، ثم اضغط Enter للإفلات، أو اضغط Escape للإلغاء.",dragStartedTouch:"بدأ السحب. انتقل إلى موضع الإفلات، ثم اضغط مرتين للإفلات.",dragStartedVirtual:"بدأ السحب. انتقل إلى مكان الإفلات، ثم انقر أو اضغط Enter للإفلات.",dropCanceled:"تم إلغاء الإفلات.",dropComplete:"اكتمل الإفلات.",dropDescriptionKeyboard:"اضغط Enter للإفلات. اضغط Escape لإلغاء السحب.",dropDescriptionTouch:"اضغط مرتين للإفلات.",dropDescriptionVirtual:"انقر للإفلات.",dropIndicator:"مؤشر الإفلات",dropOnItem:e=>`إفلات ${e.itemText}`,dropOnRoot:"الإفلات",endDragKeyboard:"السحب. اضغط Enter لإلغاء السحب.",endDragTouch:"السحب. اضغط مرتين لإلغاء السحب.",endDragVirtual:"السحب. انقر لإلغاء السحب.",insertAfter:e=>`أدخل بعد ${e.itemText}`,insertBefore:e=>`أدخل قبل ${e.itemText}`,insertBetween:e=>`أدخل بين ${e.beforeItemText} و ${e.afterItemText}`},"bg-BG":{dragDescriptionKeyboard:"Натиснете „Enter“, за да започнете да плъзгате.",dragDescriptionKeyboardAlt:"Натиснете Alt + Enter, за да започнете да плъзгате.",dragDescriptionLongPress:"Натиснете продължително, за да започнете да плъзгате.",dragDescriptionTouch:"Натиснете двукратно, за да започнете да плъзгате.",dragDescriptionVirtual:"Щракнете, за да започнете да плъзгате.",dragItem:e=>`Плъзни ${e.itemText}`,dragSelectedItems:(e,t)=>`Плъзни ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елемента`})}`,dragSelectedKeyboard:(e,t)=>`Натиснете Enter, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Натиснете Alt и Enter, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragSelectedLongPress:(e,t)=>`Натиснете продължително, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragStartedKeyboard:"Започна плъзгане. Натиснете „Tab“, за да се придвижите до целта, след което натиснете „Enter“ за пускане или натиснете „Escape“ за отмяна.",dragStartedTouch:"Започна плъзгане. Придвижете се до целта, след което натиснете двукратно, за да пуснете.",dragStartedVirtual:"Започна плъзгане. Придвижете се до целта, след което щракнете или натиснете „Enter“ за пускане.",dropCanceled:"Пускането е отменено.",dropComplete:"Пускането е завършено.",dropDescriptionKeyboard:"Натиснете „Enter“ за пускане. Натиснете „Escape“ за отмяна на плъзгането.",dropDescriptionTouch:"Натиснете двукратно за пускане.",dropDescriptionVirtual:"Щракнете за пускане.",dropIndicator:"индикатор за пускане",dropOnItem:e=>`Пусни върху ${e.itemText}`,dropOnRoot:"Пусни върху",endDragKeyboard:"Плъзгане. Натиснете „Enter“ за отмяна на плъзгането.",endDragTouch:"Плъзгане. Натиснете двукратно за отмяна на плъзгането.",endDragVirtual:"Плъзгане. Щракнете за отмяна.",insertAfter:e=>`Вмъкни след ${e.itemText}`,insertBefore:e=>`Вмъкни преди ${e.itemText}`,insertBetween:e=>`Вмъкни между ${e.beforeItemText} и ${e.afterItemText}`},"cs-CZ":{dragDescriptionKeyboard:"Stisknutím klávesy Enter začnete s přetahováním.",dragDescriptionKeyboardAlt:"Stisknutím Alt + Enter zahájíte přetahování.",dragDescriptionLongPress:"Dlouhým stisknutím zahájíte přetahování.",dragDescriptionTouch:"Poklepáním začnete s přetahováním.",dragDescriptionVirtual:"Kliknutím začnete s přetahováním.",dragItem:e=>`Přetáhnout ${e.itemText}`,dragSelectedItems:(e,t)=>`Přetáhnout ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,few:()=>`${t.number(e.count)} vybrané položky`,other:()=>`${t.number(e.count)} vybraných položek`})}`,dragSelectedKeyboard:(e,t)=>`Stisknutím klávesy Enter přetáhněte ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stisknutím Alt + Enter přetáhněte ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragSelectedLongPress:(e,t)=>`Dlouhým stisknutím přetáhnete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragStartedKeyboard:"Začněte s přetahováním. Po stisknutí klávesy Tab najděte požadovaný cíl a stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.",dragStartedTouch:"Začněte s přetahováním. Najděte požadovaný cíl a poklepáním přetažení dokončete.",dragStartedVirtual:"Začněte s přetahováním. Najděte požadovaný cíl a kliknutím nebo stisknutím klávesy Enter přetažení dokončete.",dropCanceled:"Přetažení bylo zrušeno.",dropComplete:"Přetažení bylo dokončeno.",dropDescriptionKeyboard:"Stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.",dropDescriptionTouch:"Poklepáním přetažení dokončete.",dropDescriptionVirtual:"Kliknutím objekt přetáhněte.",dropIndicator:"indikátor přetažení",dropOnItem:e=>`Přetáhnout na ${e.itemText}`,dropOnRoot:"Přetáhnout na",endDragKeyboard:"Probíhá přetahování. Stisknutím klávesy Enter přetažení zrušíte.",endDragTouch:"Probíhá přetahování. Poklepáním přetažení zrušíte.",endDragVirtual:"Probíhá přetahování. Kliknutím přetažení zrušíte.",insertAfter:e=>`Vložit za ${e.itemText}`,insertBefore:e=>`Vložit před ${e.itemText}`,insertBetween:e=>`Vložit mezi ${e.beforeItemText} a ${e.afterItemText}`},"da-DK":{dragDescriptionKeyboard:"Tryk på Enter for at starte med at trække.",dragDescriptionKeyboardAlt:"Tryk på Alt + Enter for at starte med at trække.",dragDescriptionLongPress:"Tryk længe for at starte med at trække.",dragDescriptionTouch:"Dobbelttryk for at starte med at trække.",dragDescriptionVirtual:"Klik for at starte med at trække.",dragItem:e=>`Træk ${e.itemText}`,dragSelectedItems:(e,t)=>`Træk ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}`,dragSelectedKeyboard:(e,t)=>`Tryk på Enter for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryk på Alt + Enter for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Tryk længe for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:"Startet med at trække. Tryk på Tab for at gå til et slip-mål, tryk derefter på Enter for at slippe, eller tryk på Escape for at annullere.",dragStartedTouch:"Startet med at trække. Gå til et slip-mål, og dobbelttryk derefter for at slippe.",dragStartedVirtual:"Startet med at trække. Gå til et slip-mål, og klik eller tryk derefter på enter for at slippe.",dropCanceled:"Slip annulleret.",dropComplete:"Slip fuldført.",dropDescriptionKeyboard:"Tryk på Enter for at slippe. Tryk på Escape for at annullere trækning.",dropDescriptionTouch:"Dobbelttryk for at slippe.",dropDescriptionVirtual:"Klik for at slippe.",dropIndicator:"slip-indikator",dropOnItem:e=>`Slip på ${e.itemText}`,dropOnRoot:"Slip på",endDragKeyboard:"Trækning. Tryk på enter for at annullere træk.",endDragTouch:"Trækning. Dobbelttryk for at annullere træk.",endDragVirtual:"Trækning. Klik for at annullere trækning.",insertAfter:e=>`Indsæt efter ${e.itemText}`,insertBefore:e=>`Indsæt før ${e.itemText}`,insertBetween:e=>`Indsæt mellem ${e.beforeItemText} og ${e.afterItemText}`},"de-DE":{dragDescriptionKeyboard:"Drücken Sie die Eingabetaste, um den Ziehvorgang zu starten.",dragDescriptionKeyboardAlt:"Alt + Eingabe drücken, um den Ziehvorgang zu starten.",dragDescriptionLongPress:"Lang drücken, um mit dem Ziehen zu beginnen.",dragDescriptionTouch:"Tippen Sie doppelt, um den Ziehvorgang zu starten.",dragDescriptionVirtual:"Zum Starten des Ziehvorgangs klicken.",dragItem:e=>`${e.itemText} ziehen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Objekt`,other:()=>`${t.number(e.count)} ausgewählte Objekte`})} ziehen`,dragSelectedKeyboard:(e,t)=>`Eingabetaste drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragSelectedKeyboardAlt:(e,t)=>`Alt + Eingabetaste drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragSelectedLongPress:(e,t)=>`Lang drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragStartedKeyboard:"Ziehvorgang gestartet. Drücken Sie die Tabulatortaste, um zu einem Ablegeziel zu navigieren und drücken Sie dann die Eingabetaste, um das Objekt abzulegen, oder Escape, um den Vorgang abzubrechen.",dragStartedTouch:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und tippen Sie doppelt, um das Objekt abzulegen.",dragStartedVirtual:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und klicken Sie oder drücken Sie die Eingabetaste, um das Objekt abzulegen.",dropCanceled:"Ablegen abgebrochen.",dropComplete:"Ablegen abgeschlossen.",dropDescriptionKeyboard:"Drücken Sie die Eingabetaste, um das Objekt abzulegen. Drücken Sie Escape, um den Vorgang abzubrechen.",dropDescriptionTouch:"Tippen Sie doppelt, um das Objekt abzulegen.",dropDescriptionVirtual:"Zum Ablegen klicken.",dropIndicator:"Ablegeanzeiger",dropOnItem:e=>`Auf ${e.itemText} ablegen`,dropOnRoot:"Ablegen auf",endDragKeyboard:"Ziehvorgang läuft. Drücken Sie die Eingabetaste, um den Vorgang abzubrechen.",endDragTouch:"Ziehvorgang läuft. Tippen Sie doppelt, um den Vorgang abzubrechen.",endDragVirtual:"Ziehvorgang läuft. Klicken Sie, um den Vorgang abzubrechen.",insertAfter:e=>`Nach ${e.itemText} einfügen`,insertBefore:e=>`Vor ${e.itemText} einfügen`,insertBetween:e=>`Zwischen ${e.beforeItemText} und ${e.afterItemText} einfügen`},"el-GR":{dragDescriptionKeyboard:"Πατήστε Enter για έναρξη της μεταφοράς.",dragDescriptionKeyboardAlt:"Πατήστε Alt + Enter για έναρξη της μεταφοράς.",dragDescriptionLongPress:"Πατήστε παρατεταμένα για να ξεκινήσετε τη μεταφορά.",dragDescriptionTouch:"Πατήστε δύο φορές για έναρξη της μεταφοράς.",dragDescriptionVirtual:"Κάντε κλικ για να ξεκινήσετε τη μεταφορά.",dragItem:e=>`Μεταφορά ${e.itemText}`,dragSelectedItems:(e,t)=>`Μεταφορά σε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}`,dragSelectedKeyboard:(e,t)=>`Πατήστε Enter για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Πατήστε Alt + Enter για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragSelectedLongPress:(e,t)=>`Πατήστε παρατεταμένα για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragStartedKeyboard:"Η μεταφορά ξεκίνησε. Πατήστε το πλήκτρο Tab για να μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε Enter για απόθεση ή πατήστε Escape για ακύρωση.",dragStartedTouch:"Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε δύο φορές για απόθεση.",dragStartedVirtual:"Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, κάντε κλικ ή πατήστε Enter για απόθεση.",dropCanceled:"Η απόθεση ακυρώθηκε.",dropComplete:"Η απόθεση ολοκληρώθηκε.",dropDescriptionKeyboard:"Πατήστε Enter για απόθεση. Πατήστε Escape για ακύρωση της μεταφοράς.",dropDescriptionTouch:"Πατήστε δύο φορές για απόθεση.",dropDescriptionVirtual:"Κάντε κλικ για απόθεση.",dropIndicator:"δείκτης απόθεσης",dropOnItem:e=>`Απόθεση σε ${e.itemText}`,dropOnRoot:"Απόθεση σε",endDragKeyboard:"Μεταφορά σε εξέλιξη. Πατήστε Enter για ακύρωση της μεταφοράς.",endDragTouch:"Μεταφορά σε εξέλιξη. Πατήστε δύο φορές για ακύρωση της μεταφοράς.",endDragVirtual:"Μεταφορά σε εξέλιξη. Κάντε κλικ για ακύρωση της μεταφοράς.",insertAfter:e=>`Εισαγωγή μετά από ${e.itemText}`,insertBefore:e=>`Εισαγωγή πριν από ${e.itemText}`,insertBetween:e=>`Εισαγωγή μεταξύ ${e.beforeItemText} και ${e.afterItemText}`},"en-US":{dragItem:e=>`Drag ${e.itemText}`,dragSelectedItems:(e,t)=>`Drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}`,dragDescriptionKeyboard:"Press Enter to start dragging.",dragDescriptionKeyboardAlt:"Press Alt + Enter to start dragging.",dragDescriptionTouch:"Double tap to start dragging.",dragDescriptionVirtual:"Click to start dragging.",dragDescriptionLongPress:"Long press to start dragging.",dragSelectedKeyboard:(e,t)=>`Press Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Press Alt + Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedLongPress:(e,t)=>`Long press to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragStartedKeyboard:"Started dragging. Press Tab to navigate to a drop target, then press Enter to drop, or press Escape to cancel.",dragStartedTouch:"Started dragging. Navigate to a drop target, then double tap to drop.",dragStartedVirtual:"Started dragging. Navigate to a drop target, then click or press Enter to drop.",endDragKeyboard:"Dragging. Press Enter to cancel drag.",endDragTouch:"Dragging. Double tap to cancel drag.",endDragVirtual:"Dragging. Click to cancel drag.",dropDescriptionKeyboard:"Press Enter to drop. Press Escape to cancel drag.",dropDescriptionTouch:"Double tap to drop.",dropDescriptionVirtual:"Click to drop.",dropCanceled:"Drop canceled.",dropComplete:"Drop complete.",dropIndicator:"drop indicator",dropOnRoot:"Drop on",dropOnItem:e=>`Drop on ${e.itemText}`,insertBefore:e=>`Insert before ${e.itemText}`,insertBetween:e=>`Insert between ${e.beforeItemText} and ${e.afterItemText}`,insertAfter:e=>`Insert after ${e.itemText}`},"es-ES":{dragDescriptionKeyboard:"Pulse Intro para empezar a arrastrar.",dragDescriptionKeyboardAlt:"Pulse Intro para empezar a arrastrar.",dragDescriptionLongPress:"Mantenga pulsado para comenzar a arrastrar.",dragDescriptionTouch:"Pulse dos veces para iniciar el arrastre.",dragDescriptionVirtual:"Haga clic para iniciar el arrastre.",dragItem:e=>`Arrastrar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}`,dragSelectedKeyboard:(e,t)=>`Pulse Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pulse Alt + Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedLongPress:(e,t)=>`Mantenga pulsado para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragStartedKeyboard:"Se ha empezado a arrastrar. Pulse el tabulador para ir al público destinatario donde se vaya a colocar y, a continuación, pulse Intro para soltar, o pulse Escape para cancelar.",dragStartedTouch:"Se ha empezado a arrastrar. Vaya al público destinatario donde se vaya a colocar y, a continuación, pulse dos veces para soltar.",dragStartedVirtual:"Se ha empezado a arrastrar. Vaya al público destinatario donde se vaya a colocar y, a continuación, haga clic o pulse Intro para soltar.",dropCanceled:"Se ha cancelado la colocación.",dropComplete:"Colocación finalizada.",dropDescriptionKeyboard:"Pulse Intro para soltar. Pulse Escape para cancelar el arrastre.",dropDescriptionTouch:"Pulse dos veces para soltar.",dropDescriptionVirtual:"Haga clic para soltar.",dropIndicator:"indicador de colocación",dropOnItem:e=>`Soltar en ${e.itemText}`,dropOnRoot:"Soltar en",endDragKeyboard:"Arrastrando. Pulse Intro para cancelar el arrastre.",endDragTouch:"Arrastrando. Pulse dos veces para cancelar el arrastre.",endDragVirtual:"Arrastrando. Haga clic para cancelar el arrastre.",insertAfter:e=>`Insertar después de ${e.itemText}`,insertBefore:e=>`Insertar antes de ${e.itemText}`,insertBetween:e=>`Insertar entre ${e.beforeItemText} y ${e.afterItemText}`},"et-EE":{dragDescriptionKeyboard:"Lohistamise alustamiseks vajutage klahvi Enter.",dragDescriptionKeyboardAlt:"Lohistamise alustamiseks vajutage klahvikombinatsiooni Alt + Enter.",dragDescriptionLongPress:"Vajutage pikalt lohistamise alustamiseks.",dragDescriptionTouch:"Topeltpuudutage lohistamise alustamiseks.",dragDescriptionVirtual:"Klõpsake lohistamise alustamiseks.",dragItem:e=>`Lohista ${e.itemText}`,dragSelectedItems:(e,t)=>`Lohista ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksust`,other:()=>`${t.number(e.count)} valitud üksust`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} lohistamiseks vajutage sisestusklahvi Enter.`,dragSelectedKeyboardAlt:(e,t)=>`Lohistamiseks vajutage klahvikombinatsiooni Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} jaoks.`,dragSelectedLongPress:(e,t)=>`Pikk vajutus ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} lohistamiseks.`,dragStartedKeyboard:"Alustati lohistamist. Kukutamise sihtmärgi juurde navigeerimiseks vajutage klahvi Tab, seejärel vajutage kukutamiseks klahvi Enter või loobumiseks klahvi Escape.",dragStartedTouch:"Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja topeltpuudutage kukutamiseks.",dragStartedVirtual:"Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja kukutamiseks klõpsake või vajutage klahvi Enter.",dropCanceled:"Lohistamisest loobuti.",dropComplete:"Lohistamine on tehtud.",dropDescriptionKeyboard:"Kukutamiseks vajutage klahvi Enter. Lohistamisest loobumiseks vajutage klahvi Escape.",dropDescriptionTouch:"Kukutamiseks topeltpuudutage.",dropDescriptionVirtual:"Kukutamiseks klõpsake.",dropIndicator:"lohistamise indikaator",dropOnItem:e=>`Kukuta asukohta ${e.itemText}`,dropOnRoot:"Kukuta asukohta",endDragKeyboard:"Lohistamine. Lohistamisest loobumiseks vajutage klahvi Enter.",endDragTouch:"Lohistamine. Lohistamisest loobumiseks topeltpuudutage.",endDragVirtual:"Lohistamine. Lohistamisest loobumiseks klõpsake.",insertAfter:e=>`Sisesta ${e.itemText} järele`,insertBefore:e=>`Sisesta ${e.itemText} ette`,insertBetween:e=>`Sisesta ${e.beforeItemText} ja ${e.afterItemText} vahele`},"fi-FI":{dragDescriptionKeyboard:"Aloita vetäminen painamalla Enter-näppäintä.",dragDescriptionKeyboardAlt:"Aloita vetäminen painamalla Alt + Enter -näppäinyhdistelmää.",dragDescriptionLongPress:"Aloita vetäminen pitämällä painettuna.",dragDescriptionTouch:"Aloita vetäminen kaksoisnapauttamalla.",dragDescriptionVirtual:"Aloita vetäminen napsauttamalla.",dragItem:e=>`Vedä kohdetta ${e.itemText}`,dragSelectedItems:(e,t)=>`Vedä ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittua kohdetta`,other:()=>`${t.number(e.count)} valittua kohdetta`})}`,dragSelectedKeyboard:(e,t)=>`Vedä painamalla Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Vedä painamalla Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedLongPress:(e,t)=>`Vedä pitämällä painettuna ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragStartedKeyboard:"Vetäminen aloitettu. Siirry pudotuskohteeseen painamalla sarkainnäppäintä ja sitten pudota painamalla Enter-näppäintä tai peruuta painamalla Escape-näppäintä.",dragStartedTouch:"Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota kaksoisnapauttamalla.",dragStartedVirtual:"Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota napsauttamalla tai painamalla Enter-näppäintä.",dropCanceled:"Pudotus peruutettu.",dropComplete:"Pudotus suoritettu.",dropDescriptionKeyboard:"Pudota painamalla Enter-näppäintä. Peruuta vetäminen painamalla Escape-näppäintä.",dropDescriptionTouch:"Pudota kaksoisnapauttamalla.",dropDescriptionVirtual:"Pudota napsauttamalla.",dropIndicator:"pudotuksen ilmaisin",dropOnItem:e=>`Pudota kohteeseen ${e.itemText}`,dropOnRoot:"Pudota kohteeseen",endDragKeyboard:"Vedetään. Peruuta vetäminen painamalla Enter-näppäintä.",endDragTouch:"Vedetään. Peruuta vetäminen kaksoisnapauttamalla.",endDragVirtual:"Vedetään. Peruuta vetäminen napsauttamalla.",insertAfter:e=>`Lisää kohteen ${e.itemText} jälkeen`,insertBefore:e=>`Lisää ennen kohdetta ${e.itemText}`,insertBetween:e=>`Lisää kohteiden ${e.beforeItemText} ja ${e.afterItemText} väliin`},"fr-FR":{dragDescriptionKeyboard:"Appuyez sur Entrée pour commencer le déplacement.",dragDescriptionKeyboardAlt:"Appuyez sur Alt + Entrée pour commencer à faire glisser.",dragDescriptionLongPress:"Appuyez de manière prolongée pour commencer à faire glisser.",dragDescriptionTouch:"Touchez deux fois pour commencer le déplacement.",dragDescriptionVirtual:"Cliquez pour commencer le déplacement.",dragItem:e=>`Déplacer ${e.itemText}`,dragSelectedItems:(e,t)=>`Déplacer ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}`,dragSelectedKeyboard:(e,t)=>`Appuyez sur Entrée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Appuyez sur Alt + Entrée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragSelectedLongPress:(e,t)=>`Appuyez de manière prolongée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragStartedKeyboard:"Déplacement commencé. Appuyez sur Tabulation pour accéder à une cible de dépôt, puis appuyez sur Entrée pour déposer, ou appuyez sur Échap pour annuler.",dragStartedTouch:"Déplacement commencé. Accédez à une cible de dépôt, puis touchez deux fois pour déposer.",dragStartedVirtual:"Déplacement commencé. Accédez à une cible de dépôt, puis cliquez ou appuyez sur Entrée pour déposer.",dropCanceled:"Dépôt annulé.",dropComplete:"Dépôt terminé.",dropDescriptionKeyboard:"Appuyez sur Entrée pour déposer. Appuyez sur Échap pour annuler le déplacement.",dropDescriptionTouch:"Touchez deux fois pour déposer.",dropDescriptionVirtual:"Cliquez pour déposer.",dropIndicator:"indicateur de dépôt",dropOnItem:e=>`Déposer sur ${e.itemText}`,dropOnRoot:"Déposer sur",endDragKeyboard:"Déplacement. Appuyez sur Entrée pour annuler le déplacement.",endDragTouch:"Déplacement. Touchez deux fois pour annuler le déplacement.",endDragVirtual:"Déplacement. Cliquez pour annuler le déplacement.",insertAfter:e=>`Insérer après ${e.itemText}`,insertBefore:e=>`Insérer avant ${e.itemText}`,insertBetween:e=>`Insérer entre ${e.beforeItemText} et ${e.afterItemText}`},"he-IL":{dragDescriptionKeyboard:"הקש על Enter כדי להתחיל לגרור.",dragDescriptionKeyboardAlt:"הקש Alt + Enter כדי להתחיל לגרור.",dragDescriptionLongPress:"לחץ לחיצה ארוכה כדי להתחיל לגרור.",dragDescriptionTouch:"הקש פעמיים כדי להתחיל בגרירה.",dragDescriptionVirtual:"לחץ כדי להתחיל לגרור.",dragItem:e=>`גרור את ${e.itemText}`,dragSelectedItems:(e,t)=>`גרור ${t.plural(e.count,{one:()=>`פריט נבחר ${t.number(e.count)}`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}`,dragSelectedKeyboard:(e,t)=>`הקש על Enter כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragSelectedKeyboardAlt:(e,t)=>`הקש Alt + Enter כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragSelectedLongPress:(e,t)=>`לחץ לחיצה ארוכה כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragStartedKeyboard:"התחלת לגרור. הקש על Tab כדי לנווט לנקודת הגרירה ולאחר מכן הקש על Enter כדי לשחרר או על Escape כדי לבטל.",dragStartedTouch:"התחלת לגרור. נווט לנקודת השחרור ולאחר מכן הקש פעמיים כדי לשחרר.",dragStartedVirtual:"התחלת לגרור. נווט לנקודת השחרור ולאחר מכן לחץ או הקש על Enter כדי לשחרר.",dropCanceled:"השחרור בוטל.",dropComplete:"השחרור הושלם.",dropDescriptionKeyboard:"הקש על Enter כדי לשחרר. הקש על Escape כדי לבטל את הגרירה.",dropDescriptionTouch:"הקש פעמיים כדי לשחרר.",dropDescriptionVirtual:"לחץ כדי לשחרר.",dropIndicator:"מחוון שחרור",dropOnItem:e=>`שחרר על ${e.itemText}`,dropOnRoot:"שחרר על",endDragKeyboard:"גורר. הקש על Enter כדי לבטל את הגרירה.",endDragTouch:"גורר. הקש פעמיים כדי לבטל את הגרירה.",endDragVirtual:"גורר. לחץ כדי לבטל את הגרירה.",insertAfter:e=>`הוסף אחרי ${e.itemText}`,insertBefore:e=>`הוסף לפני ${e.itemText}`,insertBetween:e=>`הוסף בין ${e.beforeItemText} לבין ${e.afterItemText}`},"hr-HR":{dragDescriptionKeyboard:"Pritisnite Enter da biste počeli povlačiti.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter za početak povlačenja.",dragDescriptionLongPress:"Dugo pritisnite za početak povlačenja.",dragDescriptionTouch:"Dvaput dodirnite da biste počeli povlačiti.",dragDescriptionVirtual:"Kliknite da biste počeli povlačiti.",dragItem:e=>`Povucite stavku ${e.itemText}`,dragSelectedItems:(e,t)=>`Povucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabranu stavku`,other:()=>`ovoliko odabranih stavki: ${t.number(e.count)}`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedLongPress:(e,t)=>`Dugo pritisnite za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragStartedKeyboard:"Počeli ste povlačiti. Pritisnite tipku tabulatora da biste došli do cilja ispuštanja, a zatim Enter da biste ispustili stavku ili Escape da biste prekinuli povlačenje.",dragStartedTouch:"Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim dvaput dodirnite da biste ispustili stavku.",dragStartedVirtual:"Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim kliknite ili pritisnite Enter da biste ispustili stavku.",dropCanceled:"Povlačenje je prekinuto.",dropComplete:"Ispuštanje je dovršeno.",dropDescriptionKeyboard:"Pritisnite Enter da biste ispustili stavku. Pritisnite Escape da biste prekinuli povlačenje.",dropDescriptionTouch:"Dvaput dodirnite da biste ispustili stavku.",dropDescriptionVirtual:"Kliknite da biste ispustili stavku.",dropIndicator:"pokazatelj ispuštanja",dropOnItem:e=>`Ispustite na stavku ${e.itemText}`,dropOnRoot:"Ispustite na",endDragKeyboard:"Povlačenje. Pritisnite Enter da biste prekinuli povlačenje.",endDragTouch:"Povlačenje. Dvaput dodirnite da biste prekinuli povlačenje.",endDragVirtual:"Povlačenje. Kliknite da biste prekinuli povlačenje.",insertAfter:e=>`Umetnite iza stavke ${e.itemText}`,insertBefore:e=>`Ispustite ispred stavke ${e.itemText}`,insertBetween:e=>`Umetnite između stavki ${e.beforeItemText} i ${e.afterItemText}`},"hu-HU":{dragDescriptionKeyboard:"Nyomja le az Enter billentyűt a húzás megkezdéséhez.",dragDescriptionKeyboardAlt:"Nyomja le az Alt + Enter billentyűket a húzás megkezdéséhez.",dragDescriptionLongPress:"Hosszan nyomja meg a húzás elindításához.",dragDescriptionTouch:"Koppintson duplán a húzás megkezdéséhez.",dragDescriptionVirtual:"Kattintson a húzás megkezdéséhez.",dragItem:e=>`${e.itemText} húzása`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzása`,dragSelectedKeyboard:(e,t)=>`Nyomja meg az Entert ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragSelectedKeyboardAlt:(e,t)=>`Nyomja meg az Alt + Enter billentyűket ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragSelectedLongPress:(e,t)=>`Tartsa lenyomva hosszan ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragStartedKeyboard:"Húzás megkezdve. Nyomja le a Tab billentyűt az elengedési célhoz navigálásához, majd nyomja le az Enter billentyűt az elengedéshez, vagy nyomja le az Escape billentyűt a megszakításhoz.",dragStartedTouch:"Húzás megkezdve. Navigáljon egy elengedési célhoz, majd koppintson duplán az elengedéshez.",dragStartedVirtual:"Húzás megkezdve. Navigáljon egy elengedési célhoz, majd kattintson vagy nyomja le az Enter billentyűt az elengedéshez.",dropCanceled:"Elengedés megszakítva.",dropComplete:"Elengedés teljesítve.",dropDescriptionKeyboard:"Nyomja le az Enter billentyűt az elengedéshez. Nyomja le az Escape billentyűt a húzás megszakításához.",dropDescriptionTouch:"Koppintson duplán az elengedéshez.",dropDescriptionVirtual:"Kattintson az elengedéshez.",dropIndicator:"elengedésjelző",dropOnItem:e=>`Elengedés erre: ${e.itemText}`,dropOnRoot:"Elengedés erre:",endDragKeyboard:"Húzás folyamatban. Nyomja le az Enter billentyűt a húzás megszakításához.",endDragTouch:"Húzás folyamatban. Koppintson duplán a húzás megszakításához.",endDragVirtual:"Húzás folyamatban. Kattintson a húzás megszakításához.",insertAfter:e=>`Beszúrás ${e.itemText} után`,insertBefore:e=>`Beszúrás ${e.itemText} elé`,insertBetween:e=>`Beszúrás ${e.beforeItemText} és ${e.afterItemText} közé`},"it-IT":{dragDescriptionKeyboard:"Premi Invio per iniziare a trascinare.",dragDescriptionKeyboardAlt:"Premi Alt + Invio per iniziare a trascinare.",dragDescriptionLongPress:"Premi a lungo per iniziare a trascinare.",dragDescriptionTouch:"Tocca due volte per iniziare a trascinare.",dragDescriptionVirtual:"Fai clic per iniziare a trascinare.",dragItem:e=>`Trascina ${e.itemText}`,dragSelectedItems:(e,t)=>`Trascina ${t.plural(e.count,{one:()=>`${t.number(e.count)} altro elemento selezionato`,other:()=>`${t.number(e.count)} altri elementi selezionati`})}`,dragSelectedKeyboard:(e,t)=>`Premi Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Premi Alt + Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedLongPress:(e,t)=>`Premi a lungo per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragStartedKeyboard:"Hai iniziato a trascinare. Premi Tab per arrivare sull’area di destinazione, quindi premi Invio per rilasciare o Esc per annullare.",dragStartedTouch:"Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi tocca due volte per rilasciare.",dragStartedVirtual:"Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi fai clic o premi Invio per rilasciare.",dropCanceled:"Rilascio annullato.",dropComplete:"Rilascio completato.",dropDescriptionKeyboard:"Premi Invio per rilasciare. Premi Esc per annullare.",dropDescriptionTouch:"Tocca due volte per rilasciare.",dropDescriptionVirtual:"Fai clic per rilasciare.",dropIndicator:"indicatore di rilascio",dropOnItem:e=>`Rilascia su ${e.itemText}`,dropOnRoot:"Rilascia su",endDragKeyboard:"Trascinamento. Premi Invio per annullare.",endDragTouch:"Trascinamento. Tocca due volte per annullare.",endDragVirtual:"Trascinamento. Fai clic per annullare.",insertAfter:e=>`Inserisci dopo ${e.itemText}`,insertBefore:e=>`Inserisci prima di ${e.itemText}`,insertBetween:e=>`Inserisci tra ${e.beforeItemText} e ${e.afterItemText}`},"ja-JP":{dragDescriptionKeyboard:"Enter キーを押してドラッグを開始してください。",dragDescriptionKeyboardAlt:"Alt+Enter キーを押してドラッグを開始します。",dragDescriptionLongPress:"長押ししてドラッグを開始します。",dragDescriptionTouch:"ダブルタップしてドラッグを開始します。",dragDescriptionVirtual:"クリックしてドラッグを開始します。",dragItem:e=>`${e.itemText} をドラッグ`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} 個の選択項目`,other:()=>`${t.number(e.count)} 個の選択項目`})} をドラッグ`,dragSelectedKeyboard:(e,t)=>`Enter キーを押して、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragSelectedKeyboardAlt:(e,t)=>`Alt+Enter キーを押して、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragSelectedLongPress:(e,t)=>`長押しして、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragStartedKeyboard:"ドラッグを開始します。Tab キーを押してドロップターゲットにいどうし、Enter キーを押してドロップするか、Esc キーを押してキャンセルします。",dragStartedTouch:"ドラッグを開始しました。ドロップのターゲットに移動し、ダブルタップしてドロップします。",dragStartedVirtual:"ドラッグを開始しました。ドロップのターゲットに移動し、クリックまたは Enter キーを押してドロップします。",dropCanceled:"ドロップがキャンセルされました。",dropComplete:"ドロップが完了しました。",dropDescriptionKeyboard:"Enter キーを押してドロップします。Esc キーを押してドラッグをキャンセルします。",dropDescriptionTouch:"ダブルタップしてドロップします。",dropDescriptionVirtual:"クリックしてドロップします。",dropIndicator:"ドロップインジケーター",dropOnItem:e=>`${e.itemText} にドロップ`,dropOnRoot:"ドロップ場所",endDragKeyboard:"ドラッグしています。Enter キーを押してドラッグをキャンセルします。",endDragTouch:"ドラッグしています。ダブルタップしてドラッグをキャンセルします。",endDragVirtual:"ドラッグしています。クリックしてドラッグをキャンセルします。",insertAfter:e=>`${e.itemText} の後に挿入`,insertBefore:e=>`${e.itemText} の前に挿入`,insertBetween:e=>`${e.beforeItemText} と ${e.afterItemText} の間に挿入`},"ko-KR":{dragDescriptionKeyboard:"드래그를 시작하려면 Enter를 누르세요.",dragDescriptionKeyboardAlt:"드래그를 시작하려면 Alt + Enter를 누르십시오.",dragDescriptionLongPress:"드래그를 시작하려면 길게 누르십시오.",dragDescriptionTouch:"드래그를 시작하려면 더블 탭하세요.",dragDescriptionVirtual:"드래그를 시작하려면 클릭하세요.",dragItem:e=>`${e.itemText} 드래그`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})} 드래그`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 Enter를 누르십시오.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 Alt + Enter를 누르십시오.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 길게 누르십시오.`,dragStartedKeyboard:"드래그가 시작되었습니다. Tab을 눌러 드롭 대상으로 이동한 다음 Enter를 눌러 드롭하거나 Esc를 눌러 취소하세요.",dragStartedTouch:"드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 더블 탭하여 드롭하세요.",dragStartedVirtual:"드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 클릭하거나 Enter를 눌러 드롭하세요.",dropCanceled:"드롭이 취소되었습니다.",dropComplete:"드롭이 완료되었습니다.",dropDescriptionKeyboard:"드롭하려면 Enter를 누르세요. 드래그를 취소하려면 Esc를 누르세요.",dropDescriptionTouch:"더블 탭하여 드롭하세요.",dropDescriptionVirtual:"드롭하려면 클릭하세요.",dropIndicator:"드롭 표시기",dropOnItem:e=>`${e.itemText}에 드롭`,dropOnRoot:"드롭 대상",endDragKeyboard:"드래그 중입니다. 드래그를 취소하려면 Enter를 누르세요.",endDragTouch:"드래그 중입니다. 드래그를 취소하려면 더블 탭하세요.",endDragVirtual:"드래그 중입니다. 드래그를 취소하려면 클릭하세요.",insertAfter:e=>`${e.itemText} 이후에 삽입`,insertBefore:e=>`${e.itemText} 이전에 삽입`,insertBetween:e=>`${e.beforeItemText} 및 ${e.afterItemText} 사이에 삽입`},"lt-LT":{dragDescriptionKeyboard:"Paspauskite „Enter“, kad pradėtumėte vilkti.",dragDescriptionKeyboardAlt:"Paspauskite „Alt + Enter“, kad pradėtumėte vilkti.",dragDescriptionLongPress:"Palaikykite nuspaudę, kad pradėtumėte vilkti.",dragDescriptionTouch:"Palieskite dukart, kad pradėtumėte vilkti.",dragDescriptionVirtual:"Spustelėkite, kad pradėtumėte vilkti.",dragItem:e=>`Vilkti ${e.itemText}`,dragSelectedItems:(e,t)=>`Vilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}`,dragSelectedKeyboard:(e,t)=>`Paspauskite „Enter“, jei norite nuvilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Paspauskite „Alt + Enter“, kad nuvilktumėte ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedLongPress:(e,t)=>`Nuspaudę palaikykite, kad nuvilktumėte ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragStartedKeyboard:"Pradėta vilkti. Paspauskite „Tab“, kad pereitumėte į tiesioginę paskirties vietą, tada paspauskite „Enter“, kad numestumėte, arba „Escape“, kad atšauktumėte.",dragStartedTouch:"Pradėta vilkti. Eikite į tiesioginę paskirties vietą, tada palieskite dukart, kad numestumėte.",dragStartedVirtual:"Pradėta vilkti. Eikite į tiesioginę paskirties vietą ir spustelėkite arba paspauskite „Enter“, kad numestumėte.",dropCanceled:"Numetimas atšauktas.",dropComplete:"Numesta.",dropDescriptionKeyboard:"Paspauskite „Enter“, kad numestumėte. Paspauskite „Escape“, kad atšauktumėte vilkimą.",dropDescriptionTouch:"Palieskite dukart, kad numestumėte.",dropDescriptionVirtual:"Spustelėkite, kad numestumėte.",dropIndicator:"numetimo indikatorius",dropOnItem:e=>`Numesti ant ${e.itemText}`,dropOnRoot:"Numesti ant",endDragKeyboard:"Velkama. Paspauskite „Enter“, kad atšauktumėte vilkimą.",endDragTouch:"Velkama. Spustelėkite dukart, kad atšauktumėte vilkimą.",endDragVirtual:"Velkama. Spustelėkite, kad atšauktumėte vilkimą.",insertAfter:e=>`Įterpti po ${e.itemText}`,insertBefore:e=>`Įterpti prieš ${e.itemText}`,insertBetween:e=>`Įterpti tarp ${e.beforeItemText} ir ${e.afterItemText}`},"lv-LV":{dragDescriptionKeyboard:"Nospiediet Enter, lai sāktu vilkšanu.",dragDescriptionKeyboardAlt:"Nospiediet taustiņu kombināciju Alt+Enter, lai sāktu vilkšanu.",dragDescriptionLongPress:"Turiet nospiestu, lai sāktu vilkšanu.",dragDescriptionTouch:"Veiciet dubultskārienu, lai sāktu vilkšanu.",dragDescriptionVirtual:"Noklikšķiniet, lai sāktu vilkšanu.",dragItem:e=>`Velciet ${e.itemText}`,dragSelectedItems:(e,t)=>`Velciet ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}`,dragSelectedKeyboard:(e,t)=>`Nospiediet taustiņu Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Nospiediet taustiņu kombināciju Alt+Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragSelectedLongPress:(e,t)=>`Turiet nospiestu, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragStartedKeyboard:"Uzsākta vilkšana. Nospiediet taustiņu Tab, lai pārietu uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu, vai nospiediet Escape, lai atceltu.",dragStartedTouch:"Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam veiciet dubultskārienu, lai nomestu.",dragStartedVirtual:"Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu.",dropCanceled:"Nomešana atcelta.",dropComplete:"Nomešana pabeigta.",dropDescriptionKeyboard:"Nospiediet Enter, lai nomestu. Nospiediet Escape, lai atceltu vilkšanu.",dropDescriptionTouch:"Veiciet dubultskārienu, lai nomestu.",dropDescriptionVirtual:"Noklikšķiniet, lai nomestu.",dropIndicator:"nomešanas indikators",dropOnItem:e=>`Nometiet uz ${e.itemText}`,dropOnRoot:"Nometiet uz",endDragKeyboard:"Notiek vilkšana. Nospiediet Enter, lai atceltu vilkšanu.",endDragTouch:"Notiek vilkšana. Veiciet dubultskārienu, lai atceltu vilkšanu.",endDragVirtual:"Notiek vilkšana. Noklikšķiniet, lai atceltu vilkšanu.",insertAfter:e=>`Ievietojiet pēc ${e.itemText}`,insertBefore:e=>`Ievietojiet pirms ${e.itemText}`,insertBetween:e=>`Ievietojiet starp ${e.beforeItemText} un ${e.afterItemText}`},"nb-NO":{dragDescriptionKeyboard:"Trykk på Enter for å begynne å dra.",dragDescriptionKeyboardAlt:"Trykk på Alt + Enter for å begynne å dra.",dragDescriptionLongPress:"Trykk lenge for å begynne å dra.",dragDescriptionTouch:"Dobbelttrykk for å begynne å dra.",dragDescriptionVirtual:"Klikk for å begynne å dra.",dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} merket element`,other:()=>`${t.number(e.count)} merkede elementer`})}`,dragSelectedKeyboard:(e,t)=>`Trykk Enter for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Trykk på Alt + Enter for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Trykk lenge for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:"Begynte å dra. Trykk på Tab for å navigere til et mål, og trykk deretter på Enter for å slippe eller på Esc for å avbryte.",dragStartedTouch:"Begynte å dra. Naviger til et mål, og dobbelttrykk for å slippe.",dragStartedVirtual:"Begynte å dra. Naviger til et mål, og klikk eller trykk på Enter for å slippe.",dropCanceled:"Avbrøt slipping.",dropComplete:"Slippingen er fullført.",dropDescriptionKeyboard:"Trykk på Enter for å slippe. Trykk på Esc hvis du vil avbryte draingen.",dropDescriptionTouch:"Dobbelttrykk for å slippe.",dropDescriptionVirtual:"Klikk for å slippe.",dropIndicator:"slippeindikator",dropOnItem:e=>`Slipp på ${e.itemText}`,dropOnRoot:"Slipp på",endDragKeyboard:"Drar. Trykk på Enter hvis du vil avbryte.",endDragTouch:"Drar. Dobbelttrykk hvis du vil avbryte.",endDragVirtual:"Drar. Klikk hvis du vil avbryte.",insertAfter:e=>`Sett inn etter ${e.itemText}`,insertBefore:e=>`Sett inn før ${e.itemText}`,insertBetween:e=>`Sett inn mellom ${e.beforeItemText} og ${e.afterItemText}`},"nl-NL":{dragDescriptionKeyboard:"Druk op Enter om te slepen.",dragDescriptionKeyboardAlt:"Druk op Alt + Enter om te slepen.",dragDescriptionLongPress:"Houd lang ingedrukt om te slepen.",dragDescriptionTouch:"Dubbeltik om te slepen.",dragDescriptionVirtual:"Klik om met slepen te starten.",dragItem:e=>`${e.itemText} slepen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} slepen`,dragSelectedKeyboard:(e,t)=>`Druk op Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedKeyboardAlt:(e,t)=>`Druk op Alt + Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedLongPress:(e,t)=>`Houd lang ingedrukt om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragStartedKeyboard:"Begonnen met slepen. Druk op Tab om naar een locatie te gaan. Druk dan op Enter om neer te zetten, of op Esc om te annuleren.",dragStartedTouch:"Begonnen met slepen. Ga naar de gewenste locatie en dubbeltik om neer te zetten.",dragStartedVirtual:"Begonnen met slepen. Ga naar de gewenste locatie en klik of druk op Enter om neer te zetten.",dropCanceled:"Neerzetten geannuleerd.",dropComplete:"Neerzetten voltooid.",dropDescriptionKeyboard:"Druk op Enter om neer te zetten. Druk op Esc om het slepen te annuleren.",dropDescriptionTouch:"Dubbeltik om neer te zetten.",dropDescriptionVirtual:"Klik om neer te zetten.",dropIndicator:"aanwijzer voor neerzetten",dropOnItem:e=>`Neerzetten op ${e.itemText}`,dropOnRoot:"Neerzetten op",endDragKeyboard:"Bezig met slepen. Druk op Enter om te annuleren.",endDragTouch:"Bezig met slepen. Dubbeltik om te annuleren.",endDragVirtual:"Bezig met slepen. Klik om te annuleren.",insertAfter:e=>`Plaatsen na ${e.itemText}`,insertBefore:e=>`Plaatsen vóór ${e.itemText}`,insertBetween:e=>`Plaatsen tussen ${e.beforeItemText} en ${e.afterItemText}`},"pl-PL":{dragDescriptionKeyboard:"Naciśnij Enter, aby rozpocząć przeciąganie.",dragDescriptionKeyboardAlt:"Naciśnij Alt + Enter, aby rozpocząć przeciąganie.",dragDescriptionLongPress:"Naciśnij i przytrzymaj, aby rozpocząć przeciąganie.",dragDescriptionTouch:"Dotknij dwukrotnie, aby rozpocząć przeciąganie.",dragDescriptionVirtual:"Kliknij, aby rozpocząć przeciąganie.",dragItem:e=>`Przeciągnij ${e.itemText}`,dragSelectedItems:(e,t)=>`Przeciągnij ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybranych elementów`})}`,dragSelectedKeyboard:(e,t)=>`Naciśnij Enter, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Naciśnij Alt + Enter, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragSelectedLongPress:(e,t)=>`Naciśnij i przytrzymaj, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragStartedKeyboard:"Rozpoczęto przeciąganie. Naciśnij Tab, aby wybrać miejsce docelowe, a następnie naciśnij Enter, aby upuścić, lub Escape, aby anulować.",dragStartedTouch:"Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie dotknij dwukrotnie, aby upuścić.F",dragStartedVirtual:"Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie kliknij lub naciśnij Enter, aby upuścić.",dropCanceled:"Anulowano upuszczenie.",dropComplete:"Zakończono upuszczanie.",dropDescriptionKeyboard:"Naciśnij Enter, aby upuścić. Naciśnij Escape, aby anulować przeciągnięcie.",dropDescriptionTouch:"Dotknij dwukrotnie, aby upuścić.",dropDescriptionVirtual:"Kliknij, aby upuścić.",dropIndicator:"wskaźnik upuszczenia",dropOnItem:e=>`Upuść na ${e.itemText}`,dropOnRoot:"Upuść",endDragKeyboard:"Przeciąganie. Naciśnij Enter, aby anulować przeciągnięcie.",endDragTouch:"Przeciąganie. Kliknij dwukrotnie, aby anulować przeciągnięcie.",endDragVirtual:"Przeciąganie. Kliknij, aby anulować przeciąganie.",insertAfter:e=>`Umieść za ${e.itemText}`,insertBefore:e=>`Umieść przed ${e.itemText}`,insertBetween:e=>`Umieść między ${e.beforeItemText} i ${e.afterItemText}`},"pt-BR":{dragDescriptionKeyboard:"Pressione Enter para começar a arrastar.",dragDescriptionKeyboardAlt:"Pressione Alt + Enter para começar a arrastar.",dragDescriptionLongPress:"Pressione e segure para começar a arrastar.",dragDescriptionTouch:"Toque duas vezes para começar a arrastar.",dragDescriptionVirtual:"Clique para começar a arrastar.",dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Pressione Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pressione Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Pressione e segure para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Comece a arrastar. Pressione Tab para navegar até um alvo e, em seguida, pressione Enter para soltar ou pressione Escape para cancelar.",dragStartedTouch:"Comece a arrastar. Navegue até um alvo e toque duas vezes para soltar.",dragStartedVirtual:"Comece a arrastar. Navegue até um alvo e clique ou pressione Enter para soltar.",dropCanceled:"Liberação cancelada.",dropComplete:"Liberação concluída.",dropDescriptionKeyboard:"Pressione Enter para soltar. Pressione Escape para cancelar.",dropDescriptionTouch:"Toque duas vezes para soltar.",dropDescriptionVirtual:"Clique para soltar.",dropIndicator:"indicador de liberação",dropOnItem:e=>`Soltar em ${e.itemText}`,dropOnRoot:"Soltar",endDragKeyboard:"Arrastando. Pressione Enter para cancelar.",endDragTouch:"Arrastando. Toque duas vezes para cancelar.",endDragVirtual:"Arrastando. Clique para cancelar.",insertAfter:e=>`Inserir após ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`},"pt-PT":{dragDescriptionKeyboard:"Prima Enter para iniciar o arrasto.",dragDescriptionKeyboardAlt:"Prima Alt + Enter para iniciar o arrasto.",dragDescriptionLongPress:"Prima longamente para começar a arrastar.",dragDescriptionTouch:"Faça duplo toque para começar a arrastar.",dragDescriptionVirtual:"Clique para iniciar o arrasto.",dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Prima Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Prima Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Prima longamente para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Arrasto iniciado. Prima a tecla de tabulação para navegar para um destino para largar, e em seguida prima Enter para largar ou prima Escape para cancelar.",dragStartedTouch:"Arrasto iniciado. Navegue para um destino para largar, e em seguida faça duplo toque para largar.",dragStartedVirtual:"Arrasto iniciado. Navegue para um destino para largar, e em seguida clique ou prima Enter para largar.",dropCanceled:"Largar cancelado.",dropComplete:"Largar completo.",dropDescriptionKeyboard:"Prima Enter para largar. Prima Escape para cancelar o arrasto.",dropDescriptionTouch:"Faça duplo toque para largar.",dropDescriptionVirtual:"Clique para largar.",dropIndicator:"Indicador de largar",dropOnItem:e=>`Largar em ${e.itemText}`,dropOnRoot:"Largar em",endDragKeyboard:"A arrastar. Prima Enter para cancelar o arrasto.",endDragTouch:"A arrastar. Faça duplo toque para cancelar o arrasto.",endDragVirtual:"A arrastar. Clique para cancelar o arrasto.",insertAfter:e=>`Inserir depois de ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`},"ro-RO":{dragDescriptionKeyboard:"Apăsați pe Enter pentru a începe glisarea.",dragDescriptionKeyboardAlt:"Apăsați pe Alt + Enter pentru a începe glisarea.",dragDescriptionLongPress:"Apăsați lung pentru a începe glisarea.",dragDescriptionTouch:"Atingeți de două ori pentru a începe să glisați.",dragDescriptionVirtual:"Faceți clic pentru a începe glisarea.",dragItem:e=>`Glisați ${e.itemText}`,dragSelectedItems:(e,t)=>`Glisați ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}`,dragSelectedKeyboard:(e,t)=>`Apăsați pe Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Apăsați pe Alt + Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedLongPress:(e,t)=>`Apăsați lung pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragStartedKeyboard:"A început glisarea. Apăsați pe Tab pentru a naviga la o țintă de fixare, apoi apăsați pe Enter pentru a fixa sau apăsați pe Escape pentru a anula glisarea.",dragStartedTouch:"A început glisarea. Navigați la o țintă de fixare, apoi atingeți de două ori pentru a fixa.",dragStartedVirtual:"A început glisarea. Navigați la o țintă de fixare, apoi faceți clic sau apăsați pe Enter pentru a fixa.",dropCanceled:"Fixare anulată.",dropComplete:"Fixare finalizată.",dropDescriptionKeyboard:"Apăsați pe Enter pentru a fixa. Apăsați pe Escape pentru a anula glisarea.",dropDescriptionTouch:"Atingeți de două ori pentru a fixa.",dropDescriptionVirtual:"Faceți clic pentru a fixa.",dropIndicator:"indicator de fixare",dropOnItem:e=>`Fixați pe ${e.itemText}`,dropOnRoot:"Fixare pe",endDragKeyboard:"Se glisează. Apăsați pe Enter pentru a anula glisarea.",endDragTouch:"Se glisează. Atingeți de două ori pentru a anula glisarea.",endDragVirtual:"Se glisează. Faceți clic pentru a anula glisarea.",insertAfter:e=>`Inserați după ${e.itemText}`,insertBefore:e=>`Inserați înainte de ${e.itemText}`,insertBetween:e=>`Inserați între ${e.beforeItemText} și ${e.afterItemText}`},"ru-RU":{dragDescriptionKeyboard:"Нажмите клавишу Enter для начала перетаскивания.",dragDescriptionKeyboardAlt:"Нажмите Alt + Enter, чтобы начать перетаскивать.",dragDescriptionLongPress:"Нажмите и удерживайте, чтобы начать перетаскивать.",dragDescriptionTouch:"Дважды нажмите для начала перетаскивания.",dragDescriptionVirtual:"Щелкните для начала перетаскивания.",dragItem:e=>`Перетащить ${e.itemText}`,dragSelectedItems:(e,t)=>`Перетащить ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранный элемент`,other:()=>`${t.number(e.count)} выбранных элем`})}`,dragSelectedKeyboard:(e,t)=>`Нажмите Enter для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Нажмите Alt + Enter для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragSelectedLongPress:(e,t)=>`Нажмите и удерживайте для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragStartedKeyboard:"Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание, или клавишу Escape для отмены действия.",dragStartedTouch:"Начато перетаскивание. Выберите цель, затем дважды нажмите, чтобы применить перетаскивание.",dragStartedVirtual:"Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание.",dropCanceled:"Перетаскивание отменено.",dropComplete:"Перетаскивание завершено.",dropDescriptionKeyboard:"Нажмите клавишу Enter, чтобы применить перетаскивание. Нажмите клавишу Escape для отмены.",dropDescriptionTouch:"Дважды нажмите, чтобы применить перетаскивание.",dropDescriptionVirtual:"Щелкните, чтобы применить перетаскивание.",dropIndicator:"индикатор перетаскивания",dropOnItem:e=>`Перетащить на ${e.itemText}`,dropOnRoot:"Перетащить на",endDragKeyboard:"Перетаскивание. Нажмите клавишу Enter для отмены.",endDragTouch:"Перетаскивание. Дважды нажмите для отмены.",endDragVirtual:"Перетаскивание. Щелкните для отмены.",insertAfter:e=>`Вставить после ${e.itemText}`,insertBefore:e=>`Вставить перед ${e.itemText}`,insertBetween:e=>`Вставить между ${e.beforeItemText} и ${e.afterItemText}`},"sk-SK":{dragDescriptionKeyboard:"Stlačením klávesu Enter začnete presúvanie.",dragDescriptionKeyboardAlt:"Stlačením klávesov Alt + Enter začnete presúvanie.",dragDescriptionLongPress:"Dlhým stlačením začnete presúvanie.",dragDescriptionTouch:"Dvojitým kliknutím začnete presúvanie.",dragDescriptionVirtual:"Kliknutím začnete presúvanie.",dragItem:e=>`Presunúť položku ${e.itemText}`,dragSelectedItems:(e,t)=>`Presunúť ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybraté položky`})}`,dragSelectedKeyboard:(e,t)=>`Stlačením klávesu Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stlačením klávesov Alt + Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragSelectedLongPress:(e,t)=>`Dlhým stlačením presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragStartedKeyboard:"Presúvanie sa začalo. Do cieľového umiestnenia prejdete stlačením klávesu Tab. Ak chcete položku umiestniť, stlačte kláves Enter alebo stlačte kláves Esc, ak chcete presúvanie zrušiť.",dragStartedTouch:"Presúvanie sa začalo. Prejdite na cieľové umiestnenie a dvojitým kliknutím umiestnite položku.",dragStartedVirtual:"Presúvanie sa začalo. Prejdite na cieľové umiestnenie a kliknutím alebo stlačením klávesu Enter umiestnite položku.",dropCanceled:"Umiestnenie zrušené.",dropComplete:"Umiestnenie dokončené.",dropDescriptionKeyboard:"Stlačením klávesu Enter umiestnite položku. Stlačením klávesu Esc zrušíte presúvanie.",dropDescriptionTouch:"Dvojitým kliknutím umiestnite položku.",dropDescriptionVirtual:"Kliknutím umiestnite položku.",dropIndicator:"indikátor umiestnenia",dropOnItem:e=>`Umiestniť na položku ${e.itemText}`,dropOnRoot:"Umiestniť na",endDragKeyboard:"Prebieha presúvanie. Ak ho chcete zrušiť, stlačte kláves Enter.",endDragTouch:"Prebieha presúvanie. Dvojitým kliknutím ho môžete zrušiť.",endDragVirtual:"Prebieha presúvanie.",insertAfter:e=>`Vložiť za položku ${e.itemText}`,insertBefore:e=>`Vložiť pred položku ${e.itemText}`,insertBetween:e=>`Vložiť medzi položky ${e.beforeItemText} a ${e.afterItemText}`},"sl-SI":{dragDescriptionKeyboard:"Pritisnite tipko Enter za začetek vlečenja.",dragDescriptionKeyboardAlt:"Pritisnite tipki Alt + Enter za začetek vlečenja.",dragDescriptionLongPress:"Pritisnite in zadržite za začetek vlečenja.",dragDescriptionTouch:"Dvotapnite za začetek vlečenja.",dragDescriptionVirtual:"Kliknite za začetek vlečenja.",dragItem:e=>`Povleci ${e.itemText}`,dragSelectedItems:(e,t)=>`Povlecite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbran element`,other:()=>`izbrane elemente (${t.number(e.count)})`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite tipko Enter, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite tipki Alt + Enter, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite in zadržite, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragStartedKeyboard:"Vlečenje se je začelo. Pritisnite tipko Tab za pomik na mesto, kamor želite spustiti elemente, in pritisnite tipko Enter, da jih spustite, ali tipko Escape, da prekličete postopek.",dragStartedTouch:"Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in dvotapnite, da jih spustite.",dragStartedVirtual:"Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in kliknite ali pritisnite tipko Enter, da jih spustite.",dropCanceled:"Spust je preklican.",dropComplete:"Spust je končan.",dropDescriptionKeyboard:"Pritisnite tipko Enter, da spustite. Pritisnite tipko Escape, da prekličete vlečenje.",dropDescriptionTouch:"Dvotapnite, da spustite.",dropDescriptionVirtual:"Kliknite, da spustite.",dropIndicator:"indikator spusta",dropOnItem:e=>`Spusti na mesto ${e.itemText}`,dropOnRoot:"Spusti na mesto",endDragKeyboard:"Vlečenje. Pritisnite tipko Enter za preklic vlečenja.",endDragTouch:"Vlečenje. Dvotapnite za preklic vlečenja.",endDragVirtual:"Vlečenje. Kliknite, da prekličete vlečenje.",insertAfter:e=>`Vstavi za ${e.itemText}`,insertBefore:e=>`Vstavi pred ${e.itemText}`,insertBetween:e=>`Vstavi med ${e.beforeItemText} in ${e.afterItemText}`},"sr-SP":{dragDescriptionKeyboard:"Pritisnite Enter da biste započeli prevlačenje.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter da biste započeli prevlačenje.",dragDescriptionLongPress:"Pritisnite dugo da biste započeli prevlačenje.",dragDescriptionTouch:"Dvaput dodirnite da biste započeli prevlačenje.",dragDescriptionVirtual:"Kliknite da biste započeli prevlačenje.",dragItem:e=>`Prevucite ${e.itemText}`,dragSelectedItems:(e,t)=>`Prevucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabrane stavke`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite dugo da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragStartedKeyboard:"Prevlačenje je započeto. Pritisnite Tab da biste otišli do cilja za otpuštanje, zatim pritisnite Enter za ispuštanje ili pritisnite Escape za otkazivanje.",dragStartedTouch:"Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim dvaput dodirnite za otpuštanje.",dragStartedVirtual:"Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim kliknite ili pritinite Enter za otpuštanje.",dropCanceled:"Otpuštanje je otkazano.",dropComplete:"Prevlačenje je završeno.",dropDescriptionKeyboard:"Pritisnite Enter da biste otpustili. Pritisnite Escape da biste otkazali prevlačenje.",dropDescriptionTouch:"Dvaput dodirnite za otpuštanje.",dropDescriptionVirtual:"Kliknite za otpuštanje.",dropIndicator:"Indikator otpuštanja",dropOnItem:e=>`Otpusti na ${e.itemText}`,dropOnRoot:"Otpusti na",endDragKeyboard:"Prevlačenje u toku. Pritisnite Enter da biste otkazali prevlačenje.",endDragTouch:"Prevlačenje u toku. Dvaput dodirnite da biste otkazali prevlačenje.",endDragVirtual:"Prevlačenje u toku. Kliknite da biste otkazali prevlačenje.",insertAfter:e=>`Umetnite posle ${e.itemText}`,insertBefore:e=>`Umetnite ispred ${e.itemText}`,insertBetween:e=>`Umetnite između ${e.beforeItemText} i ${e.afterItemText}`},"sv-SE":{dragDescriptionKeyboard:"Tryck på enter för att börja dra.",dragDescriptionKeyboardAlt:"Tryck på Alt + Retur för att börja dra.",dragDescriptionLongPress:"Tryck länge för att börja dra.",dragDescriptionTouch:"Dubbeltryck för att börja dra.",dragDescriptionVirtual:"Klicka för att börja dra.",dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valt objekt`,other:()=>`${t.number(e.count)} valda objekt`})}`,dragSelectedKeyboard:(e,t)=>`Tryck på Retur för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryck på Alt + Retur för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedLongPress:(e,t)=>`Tryck länge för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragStartedKeyboard:"Börja dra. Tryck på tabb för att navigera till målet, tryck på enter för att släppa eller på escape för att avbryta.",dragStartedTouch:"Börja dra. Navigera till ett mål och dubbeltryck för att släppa.",dragStartedVirtual:"Börja dra. Navigera till ett mål och klicka eller tryck på enter för att släppa.",dropCanceled:"Släppåtgärd avbröts.",dropComplete:"Släppåtgärd klar.",dropDescriptionKeyboard:"Tryck på enter för att släppa. Tryck på escape för att avbryta dragåtgärd.",dropDescriptionTouch:"Dubbeltryck för att släppa.",dropDescriptionVirtual:"Klicka för att släppa.",dropIndicator:"släppindikator",dropOnItem:e=>`Släpp på ${e.itemText}`,dropOnRoot:"Släpp på",endDragKeyboard:"Drar. Tryck på enter för att avbryta dragåtgärd.",endDragTouch:"Drar. Dubbeltryck för att avbryta dragåtgärd.",endDragVirtual:"Drar. Klicka för att avbryta dragåtgärd.",insertAfter:e=>`Infoga efter ${e.itemText}`,insertBefore:e=>`Infoga före ${e.itemText}`,insertBetween:e=>`Infoga mellan ${e.beforeItemText} och ${e.afterItemText}`},"tr-TR":{dragDescriptionKeyboard:"Sürüklemeyi başlatmak için Enter'a basın.",dragDescriptionKeyboardAlt:"Sürüklemeyi başlatmak için Alt + Enter'a basın.",dragDescriptionLongPress:"Sürüklemeye başlamak için uzun basın.",dragDescriptionTouch:"Sürüklemeyi başlatmak için çift tıklayın.",dragDescriptionVirtual:"Sürüklemeyi başlatmak için tıklayın.",dragItem:e=>`${e.itemText}’i sürükle`,dragSelectedItems:(e,t)=>`Sürükle ${t.plural(e.count,{one:()=>`${t.number(e.count)} seçili öge`,other:()=>`${t.number(e.count)} seçili öge`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için Enter'a basın.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için Alt + Enter tuşuna basın.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için uzun basın.`,dragStartedKeyboard:"Sürükleme başlatıldı. Bir bırakma hedefine gitmek için Tab’a basın, ardından bırakmak için Enter’a basın veya iptal etmek için Escape’e basın.",dragStartedTouch:"Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için çift tıklayın.",dragStartedVirtual:"Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için Enter’a tıklayın veya basın.",dropCanceled:"Bırakma iptal edildi.",dropComplete:"Bırakma tamamlandı.",dropDescriptionKeyboard:"Bırakmak için Enter'a basın. Sürüklemeyi iptal etmek için Escape'e basın.",dropDescriptionTouch:"Bırakmak için çift tıklayın.",dropDescriptionVirtual:"Bırakmak için tıklayın.",dropIndicator:"bırakma göstergesi",dropOnItem:e=>`${e.itemText} üzerine bırak`,dropOnRoot:"Bırakın",endDragKeyboard:"Sürükleme. Sürüklemeyi iptal etmek için Enter'a basın.",endDragTouch:"Sürükleme. Sürüklemeyi iptal etmek için çift tıklayın.",endDragVirtual:"Sürükleme. Sürüklemeyi iptal etmek için tıklayın.",insertAfter:e=>`${e.itemText}’den sonra gir`,insertBefore:e=>`${e.itemText}’den önce gir`,insertBetween:e=>`${e.beforeItemText} ve ${e.afterItemText} arasına gir`},"uk-UA":{dragDescriptionKeyboard:"Натисніть Enter, щоб почати перетягування.",dragDescriptionKeyboardAlt:"Натисніть Alt + Enter, щоб почати перетягування.",dragDescriptionLongPress:"Натисніть і утримуйте, щоб почати перетягування.",dragDescriptionTouch:"Натисніть двічі, щоб почати перетягування.",dragDescriptionVirtual:"Натисніть, щоб почати перетягування.",dragItem:e=>`Перетягнути ${e.itemText}`,dragSelectedItems:(e,t)=>`Перетягніть ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елем`})}`,dragSelectedKeyboard:(e,t)=>`Натисніть Enter, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Натисніть Alt + Enter, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragSelectedLongPress:(e,t)=>`Утримуйте, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragStartedKeyboard:"Перетягування почалося. Натисніть Tab, щоб перейти до цілі перетягування, потім натисніть Enter, щоб перетягнути, або Escape, щоб скасувати.",dragStartedTouch:"Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть двічі, щоб перетягнути.",dragStartedVirtual:"Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть Enter, щоб перетягнути.",dropCanceled:"Перетягування скасовано.",dropComplete:"Перетягування завершено.",dropDescriptionKeyboard:"Натисніть Enter, щоб перетягнути. Натисніть Escape, щоб скасувати перетягування.",dropDescriptionTouch:"Натисніть двічі, щоб перетягнути.",dropDescriptionVirtual:"Натисніть, щоб перетягнути.",dropIndicator:"індикатор перетягування",dropOnItem:e=>`Перетягнути на ${e.itemText}`,dropOnRoot:"Перетягнути на",endDragKeyboard:"Триває перетягування. Натисніть Enter, щоб скасувати перетягування.",endDragTouch:"Триває перетягування. Натисніть двічі, щоб скасувати перетягування.",endDragVirtual:"Триває перетягування. Натисніть, щоб скасувати перетягування.",insertAfter:e=>`Вставити після ${e.itemText}`,insertBefore:e=>`Вставити перед ${e.itemText}`,insertBetween:e=>`Вставити між ${e.beforeItemText} і ${e.afterItemText}`},"zh-CN":{dragDescriptionKeyboard:"按 Enter 开始拖动。",dragDescriptionKeyboardAlt:"按 Alt + Enter 开始拖动。",dragDescriptionLongPress:"长按以开始拖动。",dragDescriptionTouch:"双击开始拖动。",dragDescriptionVirtual:"单击开始拖动。",dragItem:e=>`拖动 ${e.itemText}`,dragSelectedItems:(e,t)=>`拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 选中项目`,other:()=>`${t.number(e.count)} 选中项目`})}`,dragSelectedKeyboard:(e,t)=>`按 Enter 以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragSelectedKeyboardAlt:(e,t)=>`按 Alt + Enter 以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragSelectedLongPress:(e,t)=>`长按以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragStartedKeyboard:"已开始拖动。按 Tab 导航到放置目标，然后按 Enter 放置或按 Escape 取消。",dragStartedTouch:"已开始拖动。导航到放置目标，然后双击放置。",dragStartedVirtual:"已开始拖动。导航到放置目标，然后单击或按 Enter 放置。",dropCanceled:"放置已取消。",dropComplete:"放置已完成。",dropDescriptionKeyboard:"按 Enter 放置。按 Escape 取消拖动。",dropDescriptionTouch:"双击放置。",dropDescriptionVirtual:"单击放置。",dropIndicator:"放置标记",dropOnItem:e=>`放置于 ${e.itemText}`,dropOnRoot:"放置于",endDragKeyboard:"正在拖动。按 Enter 取消拖动。",endDragTouch:"正在拖动。双击取消拖动。",endDragVirtual:"正在拖动。单击取消拖动。",insertAfter:e=>`插入到 ${e.itemText} 之后`,insertBefore:e=>`插入到 ${e.itemText} 之前`,insertBetween:e=>`插入到 ${e.beforeItemText} 和 ${e.afterItemText} 之间`},"zh-TW":{dragDescriptionKeyboard:"按 Enter 鍵以開始拖曳。",dragDescriptionKeyboardAlt:"按 Alt+Enter 鍵以開始拖曳。",dragDescriptionLongPress:"長按以開始拖曳。",dragDescriptionTouch:"輕點兩下以開始拖曳。",dragDescriptionVirtual:"按一下滑鼠以開始拖曳。",dragItem:e=>`拖曳「${e.itemText}」`,dragSelectedItems:(e,t)=>`拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}`,dragSelectedKeyboard:(e,t)=>`按 Enter 鍵以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragSelectedKeyboardAlt:(e,t)=>`按 Alt+Enter 鍵以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragSelectedLongPress:(e,t)=>`長按以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragStartedKeyboard:"已開始拖曳。按 Tab 鍵以瀏覽至放置目標，然後按 Enter 鍵以放置，或按 Escape 鍵以取消。",dragStartedTouch:"已開始拖曳。瀏覽至放置目標，然後輕點兩下以放置。",dragStartedVirtual:"已開始拖曳。瀏覽至放置目標，然後按一下滑鼠或按 Enter 鍵以放置。",dropCanceled:"放置已取消。",dropComplete:"放置已完成。",dropDescriptionKeyboard:"按 Enter 鍵以放置。按 Escape 鍵以取消拖曳。",dropDescriptionTouch:"輕點兩下以放置。",dropDescriptionVirtual:"按一下滑鼠以放置。",dropIndicator:"放置指示器",dropOnItem:e=>`放置在「${e.itemText}」上`,dropOnRoot:"放置在",endDragKeyboard:"拖曳中。按 Enter 鍵以取消拖曳。",endDragTouch:"拖曳中。輕點兩下以取消拖曳。",endDragVirtual:"拖曳中。按一下滑鼠以取消拖曳。",insertAfter:e=>`插入至「${e.itemText}」之後`,insertBefore:e=>`插入至「${e.itemText}」之前`,insertBetween:e=>`插入至「${e.beforeItemText}」和「${e.afterItemText}」之間`}};var J=n(44608);const ee={keyboard:{start:"dragDescriptionKeyboard",end:"endDragKeyboard"},touch:{start:"dragDescriptionTouch",end:"endDragTouch"},virtual:{start:"dragDescriptionVirtual",end:"endDragVirtual"}};function te(e){let{hasDragButton:t,isDisabled:n}=e,o=(0,J.qb)((i=Q)&&i.__esModule?i.default:i,"@react-aria/dnd");var i;let l=(0,K.useRef)({options:e,x:0,y:0}).current;l.options=e;let c=(0,K.useRef)(!1),[u,d]=(0,K.useState)(!1),p=e=>{c.current=e,d(e)},{addGlobalListener:h,removeAllGlobalListeners:f}=(0,B.xi)(),m=(0,K.useRef)(null);(0,B.bt)((()=>()=>{if(c.current){if("function"==typeof l.options.onDragEnd){let e={type:"dragend",x:0,y:0,dropOperation:s[P||"none"]};l.options.onDragEnd(e)}p(!1),O(r.none),F(void 0)}}),[l]);let g,v=e=>{if("function"==typeof l.options.onDragStart){let t=e.getBoundingClientRect();l.options.onDragStart({type:"dragstart",x:t.x+t.width/2,y:t.y+t.height/2})}!function(e,t){if($)throw new Error("Cannot begin dragging while already dragging");$=new X(e,t),requestAnimationFrame((()=>{$.setup(),"keyboard"===x()&&$.next()}));for(let e of U)e()}({element:e,items:l.options.getItems(),allowedDropOperations:"function"==typeof l.options.getAllowedDropOperations?l.options.getAllowedDropOperations():["move","copy","link"],onDragEnd(e){p(!1),"function"==typeof l.options.onDragEnd&&l.options.onDragEnd(e)}},o),p(!0)},y=w(),b=u?ee[y].end:ee[y].start,S=(0,B.PK)(o.format(b));return t||(g={...S,onPointerDown(e){if(m.current=(0,B.cr)(e.nativeEvent)?"virtual":e.pointerType,e.width<1&&e.height<1)m.current="virtual";else{let t=e.currentTarget.getBoundingClientRect(),n=e.clientX-t.x,r=e.clientY-t.y,o=t.width/2,i=t.height/2;Math.abs(n-o)<=.5&&Math.abs(r-i)<=.5?m.current="virtual":m.current=e.pointerType}},onKeyDownCapture(e){e.target===e.currentTarget&&"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())},onKeyUpCapture(e){e.target===e.currentTarget&&"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),v(e.target))},onClick(e){((0,B.Zj)(e.nativeEvent)||"virtual"===m.current)&&(e.preventDefault(),e.stopPropagation(),v(e.target))}}),n?{dragProps:{draggable:"false"},dragButtonProps:{},isDragging:!1}:{dragProps:{...g,draggable:"true",onDragStart:t=>{var n;if(t.defaultPrevented)return;if(t.stopPropagation(),"virtual"===m.current)return t.preventDefault(),v(t.target),void(m.current=null);"function"==typeof e.onDragStart&&e.onDragStart({type:"dragstart",x:t.clientX,y:t.clientY});let o=e.getItems();_(t.dataTransfer,o);let i=r.all;if("function"==typeof e.getAllowedDropOperations){let t=e.getAllowedDropOperations();i=r.none;for(let e of t)i|=r[e]||r.none}O(i),t.dataTransfer.effectAllowed=a[i]||"none","function"==typeof(null===(n=e.preview)||void 0===n?void 0:n.current)&&e.preview.current(o,(e=>{let n=e.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o=t.clientX-r.x,i=t.clientY-r.y;(o>n.width||i>n.height)&&(o=n.width/2,i=n.height/2);let a=2*Math.round(n.height/2);e.style.height=`${a}px`,t.dataTransfer.setDragImage(e,o,i)})),h(window,"drop",(e=>{e.preventDefault(),e.stopPropagation(),console.warn("Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.")}),{once:!0}),l.x=t.clientX,l.y=t.clientY,requestAnimationFrame((()=>{p(!0)}))},onDrag:t=>{t.stopPropagation(),t.clientX===l.x&&t.clientY===l.y||("function"==typeof e.onDragMove&&e.onDragMove({type:"dragmove",x:t.clientX,y:t.clientY}),l.x=t.clientX,l.y=t.clientY)},onDragEnd:t=>{if(t.stopPropagation(),"function"==typeof e.onDragEnd){let n={type:"dragend",x:t.clientX,y:t.clientY,dropOperation:s[t.dataTransfer.dropEffect]};P&&(n.dropOperation=s[P]),e.onDragEnd(n)}p(!1),f(),O(r.none),F(void 0)}},dragButtonProps:{...S,onPress:e=>{"keyboard"!==e.pointerType&&"virtual"!==e.pointerType||v(e.target)}},isDragging:u}}const ne={keyboard:"dropDescriptionKeyboard",touch:"dropDescriptionTouch",virtual:"dropDescriptionVirtual"};function re(){let e=(0,J.qb)((t=Q)&&t.__esModule?t.default:t,"@react-aria/dnd");var t;let n=w(),r=q();return{dropProps:{...(0,B.PK)(r?e.format(ne[n]):""),onClick:()=>{}}}}function oe(e){let{hasDropButton:t,isDisabled:n}=e,[o,i]=(0,K.useState)(!1),a=(0,K.useRef)({x:0,y:0,dragOverElements:new Set,dropEffect:"none",allowedOperations:r.all,dropActivateTimer:null}).current,c=t=>{if(i(!0),"function"==typeof e.onDropEnter){let n=t.currentTarget.getBoundingClientRect();e.onDropEnter({type:"dropenter",x:t.clientX-n.x,y:t.clientY-n.y})}},u=t=>{if(i(!1),"function"==typeof e.onDropExit){let n=t.currentTarget.getBoundingClientRect();e.onDropExit({type:"dropexit",x:t.clientX-n.x,y:t.clientY-n.y})}},d=(0,B.iW)((t=>{"function"==typeof e.onDropEnter&&e.onDropEnter(t)})),p=(0,B.iW)((t=>{"function"==typeof e.onDropExit&&e.onDropExit(t)})),h=(0,B.iW)((t=>{"function"==typeof e.onDropActivate&&e.onDropActivate(t)})),f=(0,B.iW)((t=>{"function"==typeof e.onDrop&&e.onDrop(t)})),m=(0,B.iW)(((t,n)=>e.getDropOperation?e.getDropOperation(t,n):n[0])),{ref:g}=e;(0,B.bt)((()=>{if(!n)return Z({element:g.current,getDropOperation:m,onDropEnter(e){i(!0),d(e)},onDropExit(e){i(!1),p(e)},onDrop:f,onDropActivate:h})}),[n,g,m,d,p,f,h]);let{dropProps:v}=re();return n?{dropProps:{},dropButtonProps:{isDisabled:!0},isDropTarget:!1}:{dropProps:{...!t&&v,onDragEnter:t=>{if(t.preventDefault(),t.stopPropagation(),a.dragOverElements.add(t.target),a.dragOverElements.size>1)return;let n=ie(t),r=ae(n),o=r[0];if("function"==typeof e.getDropOperation){let i=new S(t.dataTransfer);o=se(n,e.getDropOperation(i,r))}if("function"==typeof e.getDropOperationForPoint){let i=new S(t.dataTransfer),a=t.currentTarget.getBoundingClientRect();o=se(n,e.getDropOperationForPoint(i,r,t.clientX-a.x,t.clientY-a.y))}a.x=t.clientX,a.y=t.clientY,a.allowedOperations=n,a.dropEffect=l[o]||"none",t.dataTransfer.dropEffect=a.dropEffect,"cancel"!==o&&c(t)},onDragOver:t=>{t.preventDefault(),t.stopPropagation();let n=ie(t);if(t.clientX===a.x&&t.clientY===a.y&&n===a.allowedOperations)return void(t.dataTransfer.dropEffect=a.dropEffect);a.x=t.clientX,a.y=t.clientY;let r=a.dropEffect;if(n!==a.allowedOperations){let r=ae(n),o=r[0];if("function"==typeof e.getDropOperation){let i=new S(t.dataTransfer);o=se(n,e.getDropOperation(i,r))}a.dropEffect=l[o]||"none"}if("function"==typeof e.getDropOperationForPoint){let r=new S(t.dataTransfer),o=t.currentTarget.getBoundingClientRect(),i=se(n,e.getDropOperationForPoint(r,ae(n),a.x-o.x,a.y-o.y));a.dropEffect=l[i]||"none"}if(a.allowedOperations=n,t.dataTransfer.dropEffect=a.dropEffect,"none"===a.dropEffect&&"none"!==r?u(t):"none"!==a.dropEffect&&"none"===r&&c(t),"function"==typeof e.onDropMove&&"none"!==a.dropEffect){let n=t.currentTarget.getBoundingClientRect();e.onDropMove({type:"dropmove",x:a.x-n.x,y:a.y-n.y})}if(clearTimeout(a.dropActivateTimer),"function"==typeof e.onDropActivate&&"none"!==a.dropEffect){let n=t.currentTarget.getBoundingClientRect();a.dropActivateTimer=setTimeout((()=>{e.onDropActivate({type:"dropactivate",x:a.x-n.x,y:a.y-n.y})}),800)}},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),a.dragOverElements.delete(e.target);for(let t of a.dragOverElements)e.currentTarget.contains(t)||a.dragOverElements.delete(t);a.dragOverElements.size>0||("none"!==a.dropEffect&&u(e),clearTimeout(a.dropActivateTimer))},onDrop:t=>{if(t.preventDefault(),t.stopPropagation(),F(a.dropEffect),"function"==typeof e.onDrop){let n=s[a.dropEffect],r=C(t.dataTransfer),o=t.currentTarget.getBoundingClientRect(),i={type:"drop",x:t.clientX-o.x,y:t.clientY-o.y,items:r,dropOperation:n};e.onDrop(i)}let n={...D};a.dragOverElements.clear(),u(t),clearTimeout(a.dropActivateTimer),null==n.draggingCollectionRef?F(void 0):M(n)}},dropButtonProps:{...t&&v},isDropTarget:o}}function ie(e){let t=i[e.dataTransfer.effectAllowed];N&&(t&=N);let n=r.none;return(0,B.V5)()?(e.altKey&&(n|=r.copy),e.ctrlKey&&!(0,B.zc)()&&(n|=r.link),e.metaKey&&(n|=r.move)):(e.altKey&&(n|=r.link),e.shiftKey&&(n|=r.move),e.ctrlKey&&(n|=r.copy)),n?t&n:t}function ae(e){let t=[];return e&r.move&&t.push("move"),e&r.copy&&t.push("copy"),e&r.link&&t.push("link"),t}function se(e,t){return e&r[t]?t:"cancel"}function le(e){let t=(0,K.useRef)(null),n=(0,K.useRef)(!0),r=(0,K.useRef)(!0);(0,K.useEffect)((()=>{if(e.current){t.current=(0,B.a9)(e.current)?e.current:(0,B.rP)(e.current);let o=window.getComputedStyle(t.current);n.current=/(auto|scroll)/.test(o.overflowX),r.current=/(auto|scroll)/.test(o.overflowY)}}),[e]);let o=(0,K.useRef)({timer:null,dx:0,dy:0}).current;(0,K.useEffect)((()=>()=>{o.timer&&(cancelAnimationFrame(o.timer),o.timer=null)}),[o]);let i=(0,K.useCallback)((()=>{n.current&&(t.current.scrollLeft+=o.dx),r.current&&(t.current.scrollTop+=o.dy),o.timer&&(o.timer=requestAnimationFrame(i))}),[t,o]);return{move(e,n){if(!(0,B.Pf)()||(0,B.gn)()||!t.current)return;let r=t.current.getBoundingClientRect(),a=r.height-20,s=r.width-20;e<20||e>s||n<20||n>a?(e<20?o.dx=e-20:e>s&&(o.dx=e-s),n<20?o.dy=n-20:n>a&&(o.dy=n-a),o.timer||(o.timer=requestAnimationFrame(i))):this.stop()},stop(){o.timer&&(cancelAnimationFrame(o.timer),o.timer=null)}}}const ce=["before","on","after"],ue=["after","on","before"];function de(e,t,n){let r=(0,K.useRef)({props:e,state:t,nextTarget:null,dropOperation:null}).current;r.props=e,r.state=t;let o=(0,K.useCallback)((async e=>{let{onInsert:t,onRootDrop:o,onItemDrop:i,onReorder:a,acceptedDragTypes:s="all",shouldAcceptItemDrop:l}=r.props,{draggingKeys:c}=D,u=R(n),{target:d,dropOperation:p,items:h}=e,f=h;("all"!==s||l)&&(f=h.filter((e=>{let t;return t="directory"===e.kind?new Set([m]):"file"===e.kind?new Set([e.type]):e.types,!("all"!==s&&!s.some((e=>t.has(e))))&&("item"!==d.type||"on"!==d.dropPosition||!l||l(d,t))}))),f.length>0&&("root"===d.type&&o&&await o({items:f,dropOperation:p}),"item"===d.type&&("on"===d.dropPosition&&i&&await i({items:f,dropOperation:p,isInternal:u,target:d}),"on"!==d.dropPosition&&(!u&&t&&await t({items:f,dropOperation:p,target:d}),u&&a&&await a({keys:c,dropOperation:p,target:d}))))}),[r,n]),i=le(n),{dropProps:a}=oe({ref:n,onDropEnter(){t.setTarget(r.nextTarget)},onDropMove(e){t.setTarget(r.nextTarget),i.move(e.x,e.y)},getDropOperationForPoint(o,i,a,s){let{draggingKeys:l,dropCollectionRef:c}=D,u=R(n),d=e.dropTargetDelegate.getDropTargetFromPoint(a,s,(e=>"cancel"!==t.getDropOperation({target:e,types:o,allowedOperations:i,isInternal:u,draggingKeys:l})));if(!d)return r.dropOperation="cancel",r.nextTarget=null,"cancel";if(r.dropOperation=t.getDropOperation({target:d,types:o,allowedOperations:i,isInternal:u,draggingKeys:l}),"cancel"===r.dropOperation){let e={type:"root"},n=t.getDropOperation({target:e,types:o,allowedOperations:i,isInternal:u,draggingKeys:l});"cancel"!==n&&(d=e,r.dropOperation=n)}return d&&"cancel"!==r.dropOperation&&(null==n?void 0:n.current)!==(null==c?void 0:c.current)&&T(n),r.nextTarget="cancel"===r.dropOperation?null:d,r.dropOperation},onDropExit(){T(void 0),t.setTarget(null),i.stop()},onDropActivate(n){var r,o;"item"===(null===(r=t.target)||void 0===r?void 0:r.type)&&"on"===(null===(o=t.target)||void 0===o?void 0:o.dropPosition)&&"function"==typeof e.onDropActivate&&e.onDropActivate({type:"dropactivate",x:n.x,y:n.y,target:t.target})},onDrop(e){T(n),t.target&&c(e,t.target);let{draggingCollectionRef:r}=D;null==r&&I()}}),s=(0,K.useRef)(null),l=(0,K.useCallback)((()=>{let{state:e}=r;if(s.current){var t;let{target:n,collection:r,selectedKeys:o,focusedKey:i,isInternal:a,draggingKeys:l}=s.current;if(e.collection.size>r.size&&e.selectionManager.isSelectionEqual(o)){let t=new Set;for(let n of e.collection.getKeys())r.getItem(n)||t.add(n);if(e.selectionManager.setSelectedKeys(t),e.selectionManager.focusedKey===i){let n=t.keys().next().value,r=e.collection.getItem(n);"cell"===(null==r?void 0:r.type)&&(n=r.parentKey),e.selectionManager.setFocusedKey(n),"none"===e.selectionManager.selectionMode&&(0,h._w)("keyboard")}}else e.selectionManager.focusedKey===i&&a&&"item"===n.type&&"on"!==n.dropPosition&&l.has(null===(t=e.collection.getItem(i))||void 0===t?void 0:t.parentKey)?(e.selectionManager.setFocusedKey(e.collection.getItem(i).parentKey),(0,h._w)("keyboard")):e.selectionManager.focusedKey===i&&"item"===n.type&&"on"===n.dropPosition&&null!=e.collection.getItem(n.key)?(e.selectionManager.setFocusedKey(n.key),(0,h._w)("keyboard")):e.selectionManager.isSelected(e.selectionManager.focusedKey)||(0,h._w)("keyboard");e.selectionManager.setFocused(!0)}}),[r]),c=(0,K.useCallback)(((e,t)=>{let{state:i}=r;s.current={timeout:null,focusedKey:i.selectionManager.focusedKey,collection:i.collection,selectedKeys:i.selectionManager.selectedKeys,draggingKeys:D.draggingKeys,isInternal:R(n),target:t},(r.props.onDrop||o)({type:"drop",x:e.x,y:e.y,target:t,items:e.items,dropOperation:e.dropOperation}),s.current.timeout=setTimeout((()=>{l(),s.current=null}),50)}),[r,o,n,l]);(0,K.useEffect)((()=>()=>{s.current&&clearTimeout(s.current.timeout)}),[]),(0,B.bt)((()=>{s.current&&t.collection!==s.current.collection&&l()}));let{direction:u}=(0,J.bU)();(0,K.useEffect)((()=>{let e=(e,t=!0,n=!1)=>{if(!e)return{type:"root"};let o,{keyboardDelegate:i}=r.props;o="item"===(null==e?void 0:e.type)?n?i.getKeyRightOf(e.key):i.getKeyBelow(e.key):n&&"rtl"===u?i.getLastKey():i.getFirstKey();let a=n&&"rtl"===u?ue:ce,s=a[0];if("item"===e.type){let t=n&&"rtl"===u?r.state.collection.getKeyBefore(e.key):r.state.collection.getKeyAfter(e.key);if(null==o||o===t){let t=a.indexOf(e.dropPosition),n=a[t+1];if(t<a.length-1&&(n!==a[2]||null==o))return{type:"item",key:e.key,dropPosition:n};e.dropPosition===a[2]&&(s="on")}else s=e.dropPosition}return null==o?t?{type:"root"}:null:{type:"item",key:o,dropPosition:s}},t=(e,t=!0,n=!1)=>{let o,{keyboardDelegate:i}=r.props;o="item"===(null==e?void 0:e.type)?n?i.getKeyLeftOf(e.key):i.getKeyAbove(e.key):n&&"rtl"===u?i.getFirstKey():i.getLastKey();let a=n&&"rtl"===u?ue:ce,s=e&&"root"!==e.type?"on":a[2];if("item"===(null==e?void 0:e.type)){let t=n&&"rtl"===u?r.state.collection.getKeyAfter(e.key):r.state.collection.getKeyBefore(e.key);if(null==o||o===t){let t=a.indexOf(e.dropPosition),n=a[t-1];if(t>0&&n!==a[2])return{type:"item",key:e.key,dropPosition:n};e.dropPosition===a[0]&&(s="on")}else s=e.dropPosition}return null==o?t?{type:"root"}:null:{type:"item",key:o,dropPosition:s}},o=(e,t,o,i,a=!0)=>{let s,l=0,{draggingKeys:c}=D,u=R(n);do{let n=i(e,a);if(!n)return null;e=n,s=r.state.getDropOperation({target:n,types:t,allowedOperations:o,isInternal:u,draggingKeys:c}),"root"===e.type&&l++}while("cancel"===s&&!r.state.isDropTarget(e)&&l<2);return"cancel"===s?null:e};return Z({element:n.current,preventFocusOnDrop:!0,getDropOperation(t,i){if(r.state.target){let{draggingKeys:e}=D,o=R(n);return r.state.getDropOperation({target:r.state.target,types:t,allowedOperations:i,isInternal:o,draggingKeys:e})}return o(null,t,i,e)?"move":"cancel"},onDropEnter(i,a){let s,l=y(a.items),c=r.state.selectionManager;T(n);let u=c.focusedKey,d="after",p=r.state.collection.getItem(u);if("cell"===(null==p?void 0:p.type)&&(u=p.parentKey),c.isSelected(u)&&(c.selectedKeys.size>1&&c.firstSelectedKey===u?d="before":u=c.lastSelectedKey),null!=u){s={type:"item",key:u,dropPosition:d};let{draggingKeys:i}=D,c=R(n);var h;"cancel"===r.state.getDropOperation({target:s,types:l,allowedOperations:a.allowedDropOperations,isInternal:c,draggingKeys:i})&&(s=null!==(h=o(s,l,a.allowedDropOperations,e,!1))&&void 0!==h?h:o(s,l,a.allowedDropOperations,t,!1))}s||(s=o(null,l,a.allowedDropOperations,e)),r.state.setTarget(s)},onDropExit(){T(void 0),r.state.setTarget(null)},onDropTargetEnter(e){r.state.setTarget(e)},onDropActivate(e){var t,n;"item"===(null===(t=r.state.target)||void 0===t?void 0:t.type)&&"on"===(null===(n=r.state.target)||void 0===n?void 0:n.dropPosition)&&"function"==typeof r.props.onDropActivate&&r.props.onDropActivate({type:"dropactivate",x:e.x,y:e.y,target:r.state.target})},onDrop(e,t){T(n),r.state.target&&c(e,t||r.state.target)},onKeyDown(i,a){let{keyboardDelegate:s}=r.props,l=y(a.items);switch(i.key){case"ArrowDown":if(s.getKeyBelow){let t=o(r.state.target,l,a.allowedDropOperations,e);r.state.setTarget(t)}break;case"ArrowUp":if(s.getKeyAbove){let e=o(r.state.target,l,a.allowedDropOperations,t);r.state.setTarget(e)}break;case"ArrowLeft":if(s.getKeyLeftOf){let e=o(r.state.target,l,a.allowedDropOperations,((e,n)=>t(e,n,!0)));r.state.setTarget(e)}break;case"ArrowRight":if(s.getKeyRightOf){let t=o(r.state.target,l,a.allowedDropOperations,((t,n)=>e(t,n,!0)));r.state.setTarget(t)}break;case"Home":if(s.getFirstKey){let t=o(null,l,a.allowedDropOperations,e);r.state.setTarget(t)}break;case"End":if(s.getLastKey){let e=o(null,l,a.allowedDropOperations,t);r.state.setTarget(e)}break;case"PageDown":if(s.getKeyPageBelow){let i=r.state.target;if(i){let u=s.getKeyPageBelow("item"===i.type?i.key:s.getFirstKey()),d="item"===i.type?i.dropPosition:"after";(null==u||"item"===i.type&&i.key===s.getLastKey())&&(u=s.getLastKey(),d="after"),i={type:"item",key:u,dropPosition:d};let{draggingCollectionRef:p,draggingKeys:h}=D,f=(null==p?void 0:p.current)===(null==n?void 0:n.current);var c;"cancel"===r.state.getDropOperation({target:i,types:l,allowedOperations:a.allowedDropOperations,isInternal:f,draggingKeys:h})&&(i=null!==(c=o(i,l,a.allowedDropOperations,e,!1))&&void 0!==c?c:o(i,l,a.allowedDropOperations,t,!1))}else i=o(null,l,a.allowedDropOperations,e);r.state.setTarget(null!=i?i:r.state.target)}break;case"PageUp":{if(!s.getKeyPageAbove)break;let i=r.state.target;if(i){if("item"===i.type){if(i.key===s.getFirstKey())i={type:"root"};else{let e=s.getKeyPageAbove(i.key),t=i.dropPosition;null==e&&(e=s.getFirstKey(),t="before"),i={type:"item",key:e,dropPosition:t}}let{draggingKeys:c}=D,d=R(n);var u;"cancel"===r.state.getDropOperation({target:i,types:l,allowedOperations:a.allowedDropOperations,isInternal:d,draggingKeys:c})&&(i=null!==(u=o(i,l,a.allowedDropOperations,t,!1))&&void 0!==u?u:o(i,l,a.allowedDropOperations,e,!1))}}else i=o(null,l,a.allowedDropOperations,t);r.state.setTarget(null!=i?i:r.state.target);break}}}})}),[r,n,c,u]);let d=(0,B.Me)();return f.set(t,{id:d,ref:n}),{collectionProps:(0,B.dG)(a,{id:d,"aria-describedby":null})}}function pe(e,t,n){let{dropProps:r}=re(),o=v(t);(0,K.useEffect)((()=>{if(n.current)return r={element:n.current,target:e.target,getDropOperation(n,r){let{draggingKeys:i}=D,a=R(o);return t.getDropOperation({target:e.target,types:n,allowedOperations:r,isInternal:a,draggingKeys:i})}},H.set(r.element,r),()=>{H.delete(r.element)};var r}),[n,e.target,t,o]);let i=q(),{draggingKeys:a}=D,s=R(o),l=i&&"cancel"!==t.getDropOperation({target:e.target,types:y(i.dragTarget.items),allowedOperations:i.dragTarget.allowedDropOperations,isInternal:s,draggingKeys:a}),c=t.isDropTarget(e.target);return(0,K.useEffect)((()=>{i&&c&&n.current&&n.current.focus()}),[c,i,n]),{dropProps:{...r,"aria-hidden":!i||l?void 0:"true"},isDropTarget:c}}function he(e,t,n){let{target:r}=e,{collection:o}=t,i=(0,J.qb)((a=Q)&&a.__esModule?a.default:a,"@react-aria/dnd");var a;let s,l=q(),{dropProps:c}=pe(e,t,n),u=(0,B.Me)(),d=e=>{var t,n,r;return null!==(r=null===(t=o.getTextValue)||void 0===t?void 0:t.call(o,e))&&void 0!==r?r:null===(n=o.getItem(e))||void 0===n?void 0:n.textValue},p="";if("root"===r.type)p=i.format("dropOnRoot"),s=`${u} ${g(t)}`;else if("on"===r.dropPosition)p=i.format("dropOnItem",{itemText:d(r.key)});else{let e,t;e=o.getFirstKey()===r.key&&"before"===r.dropPosition?null:"before"===r.dropPosition?o.getKeyBefore(r.key):r.key,t=o.getLastKey()===r.key&&"after"===r.dropPosition?null:"after"===r.dropPosition?o.getKeyAfter(r.key):r.key,e&&t?p=i.format("insertBetween",{beforeItemText:d(e),afterItemText:d(t)}):e?p=i.format("insertAfter",{itemText:d(e)}):t&&(p=i.format("insertBefore",{itemText:d(t)}))}let h=t.isDropTarget(r),f=l?c["aria-hidden"]:"true";return{dropIndicatorProps:{...c,id:u,"aria-roledescription":i.format("dropIndicator"),"aria-label":p,"aria-labelledby":s,"aria-hidden":f,tabIndex:-1},isDropTarget:h,isHidden:!h&&!!f}}const fe={keyboard:{selected:"dragSelectedKeyboard",notSelected:"dragDescriptionKeyboard"},touch:{selected:"dragSelectedLongPress",notSelected:"dragDescriptionLongPress"},virtual:{selected:"dragDescriptionVirtual",notSelected:"dragDescriptionVirtual"}};function me(e,t){let n=(0,J.qb)((r=Q)&&r.__esModule?r.default:r,"@react-aria/dnd");var r;let o,i,a=t.isDisabled||t.selectionManager.isDisabled(e.key),{dragProps:s,dragButtonProps:l}=te({getItems:()=>t.getItems(e.key),preview:t.preview,getAllowedDropOperations:t.getAllowedDropOperations,hasDragButton:e.hasDragButton,onDragStart(n){var r;t.startDrag(e.key,n),r=t.draggingKeys,D.draggingKeys=r},onDragMove(e){t.moveDrag(e)},onDragEnd(e){let{dropOperation:n}=e,r="cancel"!==n&&R();t.endDrag({...e,keys:t.draggingKeys,isInternal:r}),I()}}),c=t.collection.getItem(e.key),u=t.getKeysForDrag(e.key).size,d=u>1&&t.selectionManager.isSelected(e.key),p=w();if(e.hasDragButton||"none"===t.selectionManager.selectionMode)if(d)o=n.format("dragSelectedItems",{count:u});else{var h,f,m,g;let r=null!==(g=null!==(m=null===(h=(f=t.collection).getTextValue)||void 0===h?void 0:h.call(f,e.key))&&void 0!==m?m:null==c?void 0:c.textValue)&&void 0!==g?g:"";o=n.format("dragItem",{itemText:r})}else{let t=fe[p][d?"selected":"notSelected"];e.hasAction&&"keyboard"===p&&(t+="Alt"),i=d?n.format(t,{count:u}):n.format(t),delete s.onClick}let v=(0,B.PK)(i);if(i&&Object.assign(s,v),!e.hasDragButton&&e.hasAction){let{onKeyDownCapture:e,onKeyUpCapture:t}=s;"touch"===p&&delete s["aria-describedby"],s.onKeyDownCapture=t=>{t.altKey&&(null==e||e(t))},s.onKeyUpCapture=e=>{e.altKey&&(null==t||t(e))}}return{dragProps:a?{}:s,dragButtonProps:{...l,isDisabled:a,"aria-label":o}}}function ge(e,t,n){let{draggingCollectionRef:r}=D;t.draggingKeys.size>0&&(null==r?void 0:r.current)!==n.current&&A(n)}const ve=new Map;function ye(e,t){let n=ve.get(e);if(!n){let t=new Set,r=e=>{for(let n of t)n(e)};n={listener:r,handlers:t},ve.set(e,n),document.addEventListener(e,r)}return n.handlers.add(t),()=>{n.handlers.delete(t),0===n.handlers.size&&(document.removeEventListener(e,n.listener),ve.delete(e))}}function be(e){let{isDisabled:t}=e,n=(0,K.useRef)(!1),{focusProps:r}=(0,h.KK)({onFocusChange:e=>{n.current=e}}),o=(0,B.iW)((t=>{n.current&&e.getItems&&t.preventDefault()})),i=(0,B.iW)((t=>{var r;n.current&&e.getItems&&(t.preventDefault(),_(t.clipboardData,e.getItems()),null===(r=e.onCopy)||void 0===r||r.call(e))})),a=(0,B.iW)((t=>{n.current&&e.onCut&&e.getItems&&t.preventDefault()})),s=(0,B.iW)((t=>{n.current&&e.onCut&&e.getItems&&(t.preventDefault(),_(t.clipboardData,e.getItems()),e.onCut())})),l=(0,B.iW)((t=>{n.current&&e.onPaste&&t.preventDefault()})),c=(0,B.iW)((t=>{if(!n.current||!e.onPaste)return;t.preventDefault();let r=C(t.clipboardData);e.onPaste(r)}));return(0,K.useEffect)((()=>{if(!t)return(0,B.tS)(ye("beforecopy",o),ye("copy",i),ye("beforecut",a),ye("cut",s),ye("beforepaste",l),ye("paste",c))}),[t,o,i,a,s,l,c]),{clipboardProps:r}}var we=n(73935);function xe(e,t){let n=e.children,[r,o]=(0,K.useState)(null),i=(0,K.useRef)(null);return(0,K.useImperativeHandle)(t,(()=>(e,t)=>{(0,we.flushSync)((()=>{o(n(e))})),t(i.current),requestAnimationFrame((()=>{o(null)}))}),[n]),r?K.createElement("div",{style:{zIndex:-100,position:"absolute",top:0,left:-1e5},ref:i},r):null}let _e=K.forwardRef(xe);class Se{getPrimaryStart(e){return"horizontal"===this.orientation?e.left:e.top}getPrimaryEnd(e){return"horizontal"===this.orientation?e.right:e.bottom}getSecondaryStart(e){return"horizontal"===this.orientation?e.top:e.left}getSecondaryEnd(e){return"horizontal"===this.orientation?e.bottom:e.right}getFlowStart(e){return"stack"===this.layout?this.getPrimaryStart(e):this.getSecondaryStart(e)}getFlowEnd(e){return"stack"===this.layout?this.getPrimaryEnd(e):this.getSecondaryEnd(e)}getFlowSize(e){return this.getFlowEnd(e)-this.getFlowStart(e)}getDropTargetFromPoint(e,t,n){if(this.collection[Symbol.iterator]().next().done)return{type:"root"};let r=this.ref.current.getBoundingClientRect(),o="horizontal"===this.orientation?e:t,i="horizontal"===this.orientation?t:e;o+=this.getPrimaryStart(r),i+=this.getSecondaryStart(r);let a="stack"===this.layout?o:i,s="horizontal"===this.orientation&&"rtl"===this.direction,l="grid"===this.layout&&"vertical"===this.orientation&&"rtl"===this.direction,c="stack"===this.layout?s:l,u=this.ref.current.querySelectorAll("[data-key]"),d=new Map;for(let e of u)e instanceof HTMLElement&&d.set(e.dataset.key,e);let p=[...this.collection].filter((e=>"item"===e.type)),h=0,f=p.length;for(;h<f;){let e=Math.floor((h+f)/2),t=p[e],r=d.get(String(t.key)).getBoundingClientRect(),u=t=>{t?h=e+1:f=e};if(o<this.getPrimaryStart(r))u(s);else if(o>this.getPrimaryEnd(r))u(!s);else if(i<this.getSecondaryStart(r))u(l);else{if(!(i>this.getSecondaryEnd(r))){let e={type:"item",key:t.key,dropPosition:"on"};if(n(e))a<=this.getFlowStart(r)+5&&n({...e,dropPosition:"before"})?e.dropPosition=c?"after":"before":a>=this.getFlowEnd(r)-5&&n({...e,dropPosition:"after"})&&(e.dropPosition=c?"before":"after");else{let t=this.getFlowStart(r)+this.getFlowSize(r)/2;a<=t&&n({...e,dropPosition:"before"})?e.dropPosition=c?"after":"before":a>=t&&n({...e,dropPosition:"after"})&&(e.dropPosition=c?"before":"after")}return e}u(!l)}}let m=p[Math.min(h,p.length-1)];return r=d.get(String(m.key)).getBoundingClientRect(),o<this.getPrimaryStart(r)||Math.abs(a-this.getFlowStart(r))<Math.abs(a-this.getFlowEnd(r))?{type:"item",key:m.key,dropPosition:c?"after":"before"}:{type:"item",key:m.key,dropPosition:c?"before":"after"}}constructor(e,t,n){this.collection=e,this.ref=t,this.layout=(null==n?void 0:n.layout)||"stack",this.orientation=(null==n?void 0:n.orientation)||"vertical",this.direction=(null==n?void 0:n.direction)||"ltr"}}},21722:(e,t,n)=>{"use strict";n.d(t,{MT:()=>d,tB:()=>O,E7:()=>D,ex:()=>i,QL:()=>P,cW:()=>_,bO:()=>p,Fx:()=>R,kc:()=>j,pu:()=>L});var r=n(13807),o=n(14147);function i(e){const t=(0,r.k3)(e);if("virtual"===(0,o.Jz)()){let n=null==t?void 0:t.activeElement;(0,r.QB)((()=>{(null==t?void 0:t.activeElement)===n&&e.isConnected&&(0,r.Ao)(e)}))}else(0,r.Ao)(e)}function a(e,t){return"#comment"!==e.nodeName&&function(e){const t=(0,r.kR)(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:o}=e.style,i="none"!==n&&"hidden"!==o&&"collapse"!==o;if(i){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:r}=t(e);i="none"!==n&&"hidden"!==r&&"collapse"!==r}return i}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||a(e.parentElement,e))}var s=n(67294);const l=s.createContext(null),c="react-aria-focus-scope-restore";let u=null;function d(e){let{children:t,contain:n,restoreFocus:o,autoFocus:i}=e,a=(0,s.useRef)(null),d=(0,s.useRef)(null),p=(0,s.useRef)([]),{parentNode:h}=(0,s.useContext)(l)||{},f=(0,s.useMemo)((()=>new I({scopeRef:p})),[p]);(0,r.bt)((()=>{let e=h||M.root;if(M.getTreeNode(e.scopeRef)&&u&&!S(u,e.scopeRef)){let t=M.getTreeNode(u);t&&(e=t)}e.addChild(f),M.addNode(f)}),[f,h]),(0,r.bt)((()=>{let e=M.getTreeNode(p);e&&(e.contain=!!n)}),[n]),(0,r.bt)((()=>{var e;let t=null===(e=a.current)||void 0===e?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==d.current;)n.push(t),t.addEventListener(c,r),t=t.nextSibling;return p.current=n,()=>{for(let e of n)e.removeEventListener(c,r)}}),[t]),function(e,t,n){(0,r.bt)((()=>{if(t||n)return;let o=e.current;const i=(0,r.k3)(o?o[0]:void 0)||(0,r.r3)(o?o[0]:void 0);let a=t=>{let n=t.target;w(n,e.current)?u=e:b(n)||(u=null)};return i.addEventListener("focusin",a,!1),null==o||o.forEach((e=>e.addEventListener("focusin",a,!1))),()=>{i.removeEventListener("focusin",a,!1),null==o||o.forEach((e=>e.removeEventListener("focusin",a,!1)))}}),[e,t,n])}(p,o,n),function(e,t){let n=(0,s.useRef)(void 0),o=(0,s.useRef)(void 0);(0,r.bt)((()=>{let i=e.current;if(!t)return void(o.current&&(cancelAnimationFrame(o.current),o.current=void 0));const a=(0,r.k3)(i?i[0]:void 0)||(0,r.r3)(i?i[0]:void 0);let s=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!y(e)||t.isComposing)return;let n=a.activeElement,r=e.current;if(!r||!w(n,r))return;let o=P(v(r),{tabbable:!0},r);if(!n)return;o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=t.shiftKey?o.previousNode():o.nextNode()),t.preventDefault(),i&&C(i,!0)},l=t=>{u&&!S(u,e)||!w(t.target,e.current)?y(e)&&!x(t.target,e)?n.current?n.current.focus():u&&u.current&&k(u.current):y(e)&&(n.current=t.target):(u=e,n.current=t.target)},c=t=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame((()=>{var o;a.activeElement&&y(e)&&!x(a.activeElement,e)&&(u=e,(0,r.Q5)(a).contains(t.target)?(n.current=t.target,null===(o=n.current)||void 0===o||o.focus()):u.current&&k(u.current))}))};return a.addEventListener("keydown",s,!1),a.addEventListener("focusin",l,!1),null==i||i.forEach((e=>e.addEventListener("focusin",l,!1))),null==i||i.forEach((e=>e.addEventListener("focusout",c,!1))),()=>{a.removeEventListener("keydown",s,!1),a.removeEventListener("focusin",l,!1),null==i||i.forEach((e=>e.removeEventListener("focusin",l,!1))),null==i||i.forEach((e=>e.removeEventListener("focusout",c,!1)))}}),[e,t]),(0,r.bt)((()=>()=>{o.current&&cancelAnimationFrame(o.current)}),[o])}(p,n),function(e,t,n){const o=(0,s.useRef)("undefined"!=typeof document?(0,r.r3)(e.current?e.current[0]:void 0).activeElement:null);(0,r.bt)((()=>{let o=e.current;const i=(0,r.k3)(o?o[0]:void 0)||(0,r.r3)(o?o[0]:void 0);if(!t||n)return;let a=()=>{u&&!S(u,e)||!w(i.activeElement,e.current)||(u=e)};return i.addEventListener("focusin",a,!1),null==o||o.forEach((e=>e.addEventListener("focusin",a,!1))),()=>{i.removeEventListener("focusin",a,!1),null==o||o.forEach((e=>e.removeEventListener("focusin",a,!1)))}}),[e,n]),(0,r.bt)((()=>{const o=(0,r.k3)(e.current?e.current[0]:void 0)||(0,r.r3)(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!y(e)||t.isComposing)return;let n=o.activeElement;if(!w(n,e.current))return;let i=M.getTreeNode(e);if(!i)return;let a=i.nodeToRestore;const s=(0,r.Q5)(o);let l=P(s,{tabbable:!0});l.currentNode=n;let c=t.shiftKey?l.previousNode():l.nextNode();if(a&&s.contains(a)&&a!==s||(a=void 0,i.nodeToRestore=void 0),(!c||!w(c,e.current))&&a){l.currentNode=a;do{c=t.shiftKey?l.previousNode():l.nextNode()}while(w(c,e.current));t.preventDefault(),t.stopPropagation(),c?C(c,!0):b(a)?C(a,!0):n.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}}),[e,t,n]),(0,r.bt)((()=>{const n=(0,r.k3)(e.current?e.current[0]:void 0)||(0,r.r3)(e.current?e.current[0]:void 0),i=(0,r.Q5)(n);if(!t)return;let a=M.getTreeNode(e);var s;return a?(a.nodeToRestore=null!==(s=o.current)&&void 0!==s?s:void 0,()=>{let r=M.getTreeNode(e);if(!r)return;let o=r.nodeToRestore;if(t&&o&&(w(n.activeElement,e.current)||n.activeElement===i&&function(e){let t=M.getTreeNode(u);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let t=M.clone();requestAnimationFrame((()=>{if(n.activeElement===i){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected)return void z(n.nodeToRestore);n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&M.getTreeNode(n.scopeRef)){return void z(E(n.scopeRef.current,!0))}n=n.parent}}}))}}):void 0}),[e,t])}(p,o,n),function(e,t){const n=s.useRef(t);(0,s.useEffect)((()=>{if(n.current){u=e;!w((0,r.r3)(e.current?e.current[0]:void 0).activeElement,u.current)&&e.current&&k(e.current)}n.current=!1}),[e])}(p,i),(0,s.useEffect)((()=>{var e;const t=null===(e=(0,r.k3)(p.current?p.current[0]:void 0))||void 0===e?void 0:e.activeElement;let n=null;if(w(t,p.current)){for(let e of M.traverse())e.scopeRef&&w(t,e.scopeRef.current)&&(n=e);n===M.getTreeNode(p)&&(u=n.scopeRef)}}),[p]),(0,r.bt)((()=>()=>{var e,t,n;let r=null!==(n=null===(t=M.getTreeNode(p))||void 0===t||null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;p!==u&&!S(p,u)||r&&!M.getTreeNode(r)||(u=r),M.removeTreeNode(p)}),[p]);let m=(0,s.useMemo)((()=>function(e){return{focusNext(t={}){var n;let o=e.current,{from:i,tabbable:a,wrap:s,accept:l}=t,c=i||(null===(n=(0,r.k3)(o[0]))||void 0===n?void 0:n.activeElement),u=o[0].previousElementSibling,d=P(v(o),{tabbable:a,accept:l},o);d.currentNode=w(c,o)?c:u;let p=d.nextNode();return!p&&s&&(d.currentNode=u,p=d.nextNode()),p&&C(p,!0),p},focusPrevious(t={}){var n;let o=e.current,{from:i,tabbable:a,wrap:s,accept:l}=t,c=i||(null===(n=(0,r.k3)(o[0]))||void 0===n?void 0:n.activeElement),u=o[o.length-1].nextElementSibling,d=P(v(o),{tabbable:a,accept:l},o);d.currentNode=w(c,o)?c:u;let p=d.previousNode();return!p&&s&&(d.currentNode=u,p=d.previousNode()),p&&C(p,!0),p},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=P(v(n),{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let a=i.nextNode();return a&&C(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=P(v(n),{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let a=i.previousNode();return a&&C(a,!0),a}}}(p)),[]),g=(0,s.useMemo)((()=>({focusManager:m,parentNode:f})),[f,m]);return s.createElement(l.Provider,{value:g},s.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,s.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:d}))}function p(){var e;return null===(e=(0,s.useContext)(l))||void 0===e?void 0:e.focusManager}const h=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],f=h.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";h.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const m=h.join(':not([hidden]):not([tabindex="-1"]),');function g(e){return e.matches(f)}function v(e){return e[0].parentElement}function y(e){let t=M.getTreeNode(u);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function b(e){return x(e)}function w(e,t){return!!e&&(!!t&&t.some((t=>t.contains(e))))}function x(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of M.traverse(M.getTreeNode(t)))if(n&&w(e,n.current))return!0;return!1}function _(e){return x(e,u)}function S(e,t){var n;let r=null===(n=M.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function C(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{i(e)}catch(e){}}function E(e,t=!0){let n=e[0].previousElementSibling,r=v(e),o=P(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=v(e),o=P(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function k(e,t=!0){C(E(e,t))}function z(e){e.dispatchEvent(new CustomEvent(c,{bubbles:!0,cancelable:!0}))&&C(e)}function P(e,t,n){let o=(null==t?void 0:t.tabbable)?m:f,i=e instanceof ShadowRoot?e:(0,r.k3)(e)||(0,r.r3)(e),s=(i instanceof ShadowRoot?i.ownerDocument:i).createTreeWalker(e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var r;return(null==t||null===(r=t.from)||void 0===r?void 0:r.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(o)||!a(e)||n&&!w(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});if((null==t?void 0:t.from)&&(s.currentNode=t.from),i instanceof ShadowRoot){const e=s.nextNode.bind(s),t=s.previousNode.bind(s);s.nextNode=function(e,t){return function(){let n=e();if(!n&&t&&t.length>0){let e=t[0].getRootNode(),n=e instanceof ShadowRoot?e.host.nextElementSibling:null;for(;n;){if(n.shadowRoot){let e=Array.from(n.shadowRoot.querySelectorAll("*")).filter(g);if(e.length>0)return e[0]}n=n.nextElementSibling}}return n}}(e,n),s.previousNode=function(e,t){return function(){let n=e();if(!n&&t&&t.length>0){let e=t[0].getRootNode(),n=e instanceof ShadowRoot?e.host.previousElementSibling:null;for(;n;){if(n.shadowRoot){let e=Array.from(n.shadowRoot.querySelectorAll("*")).filter(g);if(e.length>0)return e[e.length-1]}n=n.previousElementSibling}}return n}}(t,n)}return s}function D(e,t={}){return{focusNext(n={}){let o=e.current;if(!o)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:l=t.accept}=n,c=i||((0,r.k3)(o)||(0,r.r3)(o)).activeElement,u=P(o,{tabbable:a,accept:l});o.contains(c)&&(u.currentNode=c);let d=u.nextNode();return!d&&s&&(u.currentNode=o,d=u.nextNode()),d&&C(d,!0),d},focusPrevious(n=t){let o=e.current;if(!o)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:l=t.accept}=n,c=i||((0,r.k3)(o)||(0,r.r3)(o)).activeElement,u=P(o,{tabbable:a,accept:l});if(!o.contains(c)){let e=A(u);return e&&C(e,!0),null!=e?e:null}u.currentNode=c;let d=u.previousNode();if(!d&&s){u.currentNode=o;let e=A(u);if(!e)return null;d=e}return d&&C(d,!0),null!=d?d:null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=P(r,{tabbable:o,accept:i}).nextNode();return a&&C(a,!0),a},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=A(P(r,{tabbable:o,accept:i}));return a&&C(a,!0),null!=a?a:null}}}function A(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}class T{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let o=new I({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&w(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach((e=>n&&n.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new T;var n;for(let r of this.traverse())t.addTreeNode(r.scopeRef,null!==(n=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,r.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new I({scopeRef:null}),this.fastMap.set(null,this.root)}}class I{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let M=new T;function R(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,s.useRef)({isFocused:!1,isFocusVisible:t||(0,o.E)()}),[a,l]=(0,s.useState)(!1),[c,u]=(0,s.useState)((()=>i.current.isFocused&&i.current.isFocusVisible)),d=(0,s.useCallback)((()=>u(i.current.isFocused&&i.current.isFocusVisible)),[]),p=(0,s.useCallback)((e=>{i.current.isFocused=e,l(e),d()}),[d]);(0,o.mG)((e=>{i.current.isFocusVisible=e,d()}),[],{isTextInput:n});let{focusProps:h}=(0,o.KK)({isDisabled:r,onFocusChange:p}),{focusWithinProps:f}=(0,o.L_)({isDisabled:!r,onFocusWithinChange:p});return{isFocused:a,isFocusVisible:c,focusProps:r?f:h}}let F=s.createContext(null);function N(e,t){let{children:n,...o}=e,i={...o,ref:(0,r.B3)(t)};return s.createElement(F.Provider,{value:i},n)}let O=s.forwardRef(N);function j(e,t){let{focusProps:n}=(0,o.KK)(e),{keyboardProps:a}=(0,o.v5)(e),l=(0,r.dG)(n,a),c=function(e){let t=(0,s.useContext)(F)||{};(0,r.lE)(t,e);let{ref:n,...o}=t;return o}(t),u=e.isDisabled?{}:c,d=(0,s.useRef)(e.autoFocus);return(0,s.useEffect)((()=>{d.current&&t.current&&i(t.current),d.current=!1}),[t]),{focusableProps:(0,r.dG)({...l,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},u)}}function L(e,t){let n=null==t?void 0:t.isDisabled,[o,i]=(0,s.useState)(!1);return(0,r.bt)((()=>{if((null==e?void 0:e.current)&&!n){let t=()=>{if(e.current){let t=P(e.current,{tabbable:!0});i(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{n.disconnect()}}})),!n&&o}},57992:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a});var r=n(14147),o=n(67294),i=n(13807);function a(e,t,n){let{validationBehavior:a,focus:l}=e;(0,i.bt)((()=>{if("native"===a&&(null==n?void 0:n.current)){let r=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(r),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:s(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e}));let c=(0,i.iW)((()=>{t.resetValidation()})),u=(0,i.iW)((e=>{var o;t.displayValidation.isInvalid||t.commitValidation();let i=null==n||null===(o=n.current)||void 0===o?void 0:o.form;var a;!e.defaultPrevented&&n&&i&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}(i)===n.current&&(l?l():null===(a=n.current)||void 0===a||a.focus(),(0,r._w)("keyboard"));e.preventDefault()})),d=(0,i.iW)((()=>{t.commitValidation()}));(0,o.useEffect)((()=>{let e=null==n?void 0:n.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",u),e.addEventListener("change",d),null==t||t.addEventListener("reset",c),()=>{e.removeEventListener("invalid",u),e.removeEventListener("change",d),null==t||t.removeEventListener("reset",c)}}),[n,u,d,c,a])}function s(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}},85187:(e,t,n)=>{"use strict";n.d(t,{B6:()=>l,Ug:()=>p,jS:()=>d});n(16752),n(56406);new WeakMap;var r;r={"ar-AE":{deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`},"bg-BG":{deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`},"cs-CZ":{deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`},"da-DK":{deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`},"de-DE":{deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`},"el-GR":{deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`},"en-US":{deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."},"es-ES":{deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`},"et-EE":{deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`},"fi-FI":{deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`},"fr-FR":{deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`},"he-IL":{deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`},"hr-HR":{deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`},"hu-HU":{deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`},"it-IT":{deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`},"ja-JP":{deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`},"ko-KR":{deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`},"lt-LT":{deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`},"lv-LV":{deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`},"nb-NO":{deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`},"nl-NL":{deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`},"pl-PL":{deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`},"pt-BR":{deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`},"pt-PT":{deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`},"ro-RO":{deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`},"ru-RU":{deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`},"sk-SK":{deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`},"sl-SI":{deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`},"sr-SP":{deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`},"sv-SE":{deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`},"tr-TR":{deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`},"uk-UA":{deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`},"zh-CN":{deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`},"zh-TW":{deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`}};var o=n(55260),i=n(44608),a=n(67294),s=n(13807);function l(e,t){let{getRowText:n=(e=>{var n,r,o,i;return null!==(i=null===(n=(r=t.collection).getTextValue)||void 0===n?void 0:n.call(r,e))&&void 0!==i?i:null===(o=t.collection.getItem(e))||void 0===o?void 0:o.textValue})}=e,l=(0,i.qb)((u=r)&&u.__esModule?u.default:u,"@react-aria/grid");var u;let d=t.selectionManager.rawSelection,p=(0,a.useRef)(d);(0,s.rf)((()=>{var e;if(!t.selectionManager.isFocused)return void(p.current=d);let r=c(d,p.current),i=c(p.current,d),a="replace"===t.selectionManager.selectionBehavior,s=[];if(1===t.selectionManager.selectedKeys.size&&a){if(t.collection.getItem(t.selectionManager.selectedKeys.keys().next().value)){let e=n(t.selectionManager.selectedKeys.keys().next().value);e&&s.push(l.format("selectedItem",{item:e}))}}else if(1===r.size&&0===i.size){let e=n(r.keys().next().value);e&&s.push(l.format("selectedItem",{item:e}))}else if(1===i.size&&0===r.size&&t.collection.getItem(i.keys().next().value)){let e=n(i.keys().next().value);e&&s.push(l.format("deselectedItem",{item:e}))}"multiple"===t.selectionManager.selectionMode&&(0===s.length||"all"===d||d.size>1||"all"===p.current||(null===(e=p.current)||void 0===e?void 0:e.size)>1)&&s.push("all"===d?l.format("selectedAll"):l.format("selectedCount",{count:d.size})),s.length>0&&(0,o.xQ)(s.join(" ")),p.current=d}),[d])}function c(e,t){let n=new Set;if("all"===e||"all"===t)return n;for(let r of e.keys())t.has(r)||n.add(r);return n}var u=n(14147);function d(e){let t=(0,i.qb)((n=r)&&n.__esModule?n.default:n,"@react-aria/grid");var n;let o=(0,u.Kf)(),l=("pointer"===o||"virtual"===o||null==o)&&"undefined"!=typeof window&&"ontouchstart"in window,c=(0,a.useMemo)((()=>{let n,r=e.selectionManager.selectionMode,o=e.selectionManager.selectionBehavior;return l&&(n=t.format("longPressToSelect")),"replace"===o&&"none"!==r&&e.hasItemActions?n:void 0}),[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,l]);return(0,s.PK)(c)}n(21722);function p(e,t){let{key:n}=e,o=t.selectionManager,a=(0,s.Me)(),l=!t.selectionManager.canSelectItem(n),c=t.selectionManager.isSelected(n);var u;return{checkboxProps:{id:a,"aria-label":(0,i.qb)((u=r)&&u.__esModule?u.default:u,"@react-aria/grid").format("select"),isSelected:c,isDisabled:l,onChange:()=>o.toggleSelection(n)}}}},64669:(e,t,n)=>{"use strict";n.d(t,{c:()=>c,Fb:()=>g,fQ:()=>y});const r=new WeakMap;function o(e,t){let{id:n}=r.get(e);if(!n)throw new Error("Unknown list");return`${n}-${function(e){return"string"==typeof e?e.replace(/\s*/g,""):""+e}(t)}`}var i=n(13807),a=n(85187),s=n(21722),l=n(16752);function c(e,t,n){let{isVirtualized:o,keyboardDelegate:c,layoutDelegate:u,onAction:d,linkBehavior:p="action",keyboardNavigationBehavior:h="arrow"}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:f}=(0,l._t)({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:n,keyboardDelegate:c,layoutDelegate:u,isVirtualized:o,selectOnFocus:"replace"===t.selectionManager.selectionBehavior,shouldFocusWrap:e.shouldFocusWrap,linkBehavior:p}),m=(0,i.Me)(e.id);r.set(t,{id:m,onAction:d,linkBehavior:p,keyboardNavigationBehavior:h});let g=(0,a.jS)({selectionManager:t.selectionManager,hasItemActions:!!d}),v=(0,s.pu)(n,{isDisabled:0!==t.collection.size}),y=(0,i.zL)(e,{labelable:!0}),b=(0,i.dG)(y,{role:"grid",id:m,"aria-multiselectable":"multiple"===t.selectionManager.selectionMode?"true":void 0},0===t.collection.size?{tabIndex:v?-1:0}:f,g);return o&&(b["aria-rowcount"]=t.collection.size,b["aria-colcount"]=1),(0,a.B6)({},t),{gridProps:b}}var u=n(56406),d=n(67294),p=n(14147),h=n(44608);const f={ltr:"ArrowRight",rtl:"ArrowLeft"},m={ltr:"ArrowLeft",rtl:"ArrowRight"};function g(e,t,n){var a,c;let g,{node:y,isVirtualized:b,shouldSelectOnPressUp:w}=e,{direction:x}=(0,h.bU)(),{onAction:_,linkBehavior:S,keyboardNavigationBehavior:C}=r.get(t),E=(0,i.mp)(),k=(0,d.useRef)(null),z={},P=t.selectionManager.isLink(y.key);if(null!=y&&"expandedKeys"in t){g=[...t.collection.getChildren(y.key)].length>1,null==_&&!P&&"none"===t.selectionManager.selectionMode&&g&&(_=()=>t.toggleKey(y.key)),z={"aria-expanded":g?t.expandedKeys.has(y.key):void 0,"aria-level":y.level+1,"aria-posinset":(null==y?void 0:y.index)+1,"aria-setsize":y.level>0?(0,u.s)(t.collection.getChildren(null==y?void 0:y.parentKey)).index+1:[...t.collection].filter((e=>0===e.level)).at(-1).index+1}}let{itemProps:D,...A}=(0,l.Cs)({selectionManager:t.selectionManager,key:y.key,ref:n,isVirtualized:b,shouldSelectOnPressUp:w,onAction:_||(null===(a=y.props)||void 0===a?void 0:a.onAction)?(0,i.tS)(null===(c=y.props)||void 0===c?void 0:c.onAction,_?()=>_(y.key):void 0):void 0,focus:()=>{var e;(null!=k.current&&y.key!==k.current||!(null===(e=n.current)||void 0===e?void 0:e.contains(document.activeElement)))&&(0,s.ex)(n.current)},linkBehavior:S}),T=(0,i.fU)(y.props),I=A.hasAction?T:{},M=(0,i.dG)(D,I,{role:"row",onKeyDownCapture:e=>{if(!e.currentTarget.contains(e.target))return;let r=(0,s.QL)(n.current);if(r.currentNode=document.activeElement,"expandedKeys"in t&&document.activeElement===n.current){if(e.key===f[x]&&t.selectionManager.focusedKey===y.key&&g&&!t.expandedKeys.has(y.key))return t.toggleKey(y.key),void e.stopPropagation();if(e.key===m[x]&&t.selectionManager.focusedKey===y.key&&g&&t.expandedKeys.has(y.key))return t.toggleKey(y.key),void e.stopPropagation()}switch(e.key){case"ArrowLeft":if("arrow"===C){let t="rtl"===x?r.nextNode():r.previousNode();if(t)e.preventDefault(),e.stopPropagation(),(0,s.ex)(t),(0,i.Gt)(t,{containingElement:(0,i.rP)(n.current)});else if(e.preventDefault(),e.stopPropagation(),"rtl"===x)(0,s.ex)(n.current),(0,i.Gt)(n.current,{containingElement:(0,i.rP)(n.current)});else{r.currentNode=n.current;let e=v(r);e&&((0,s.ex)(e),(0,i.Gt)(e,{containingElement:(0,i.rP)(n.current)}))}}break;case"ArrowRight":if("arrow"===C){let t="rtl"===x?r.previousNode():r.nextNode();if(t)e.preventDefault(),e.stopPropagation(),(0,s.ex)(t),(0,i.Gt)(t,{containingElement:(0,i.rP)(n.current)});else if(e.preventDefault(),e.stopPropagation(),"ltr"===x)(0,s.ex)(n.current),(0,i.Gt)(n.current,{containingElement:(0,i.rP)(n.current)});else{r.currentNode=n.current;let e=v(r);e&&((0,s.ex)(e),(0,i.Gt)(e,{containingElement:(0,i.rP)(n.current)}))}}break;case"ArrowUp":case"ArrowDown":!e.altKey&&n.current.contains(e.target)&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)));break;case"Tab":if("tab"===C){let t=(0,s.QL)(n.current,{tabbable:!0});t.currentNode=document.activeElement,(e.shiftKey?t.previousNode():t.nextNode())&&e.stopPropagation()}}},onFocus:e=>{k.current=y.key,e.target===n.current||(0,p.E)()||t.selectionManager.setFocusedKey(y.key)},"aria-label":y.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(y.key)?t.selectionManager.isSelected(y.key):void 0,"aria-disabled":t.selectionManager.isDisabled(y.key)||void 0,"aria-labelledby":E&&y.textValue?`${o(t,y.key)} ${E}`:void 0,id:o(t,y.key)});b&&(M["aria-rowindex"]=y.index+1);return{rowProps:{...(0,i.dG)(M,z)},gridCellProps:{role:"gridcell","aria-colindex":1},descriptionProps:{id:E},...A}}function v(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}function y(e,t){let{key:n}=e;const{checkboxProps:r}=(0,a.Ug)(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${o(t,n)}`}}}},44608:(e,t,n)=>{"use strict";n.d(t,{bd:()=>m,Xe:()=>M,aQ:()=>P,L0:()=>R,bU:()=>g,qb:()=>E,hX:()=>x,Ux:()=>T});const r=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function i(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return r.has(t.script)}let t=e.split("-")[0];return o.has(t)}var a=n(67294),s=n(97480);const l=Symbol.for("react-aria.i18n.locale");function c(){let e="undefined"!=typeof window&&window[l]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:i(e)?"rtl":"ltr"}}let u=c(),d=new Set;function p(){u=c();for(let e of d)e(u)}function h(){let e=(0,s.Av)(),[t,n]=(0,a.useState)(u);return(0,a.useEffect)((()=>(0===d.size&&window.addEventListener("languagechange",p),d.add(n),()=>{d.delete(n),0===d.size&&window.removeEventListener("languagechange",p)})),[]),e?{locale:"en-US",direction:"ltr"}:t}const f=a.createContext(null);function m(e){let{locale:t,children:n}=e,r=h(),o=a.useMemo((()=>t?{locale:t,direction:i(t)?"rtl":"ltr"}:r),[r,t]);return a.createElement(f.Provider,{value:o},n)}function g(){let e=h();return(0,a.useContext)(f)||e}class v{getStringForLocale(e,t){let n=this.messages[t];n||(n=function(e,t,n="en-US"){if(t[e])return t[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(t,this.messages,this.defaultLocale),this.messages[t]=n);let r=n[e];if(!r)throw new Error(`Could not find intl message ${e} in ${t} locale`);return r}constructor(e,t="en-US"){this.messages=Object.fromEntries(Object.entries(e).filter((([,e])=>e))),this.defaultLocale=t}}var y=n(54576);class b{format(e,t){let n,r=this.cache[e];if(!r){let t=this.messages.getStringForLocale(e,this.locale);if(!t)throw new Error(`Could not find intl message ${e} in ${this.locale} locale`);r=new(0,y.ZP)(t,this.locale),this.cache[e]=r}return t&&(n=Object.keys(t).reduce(((e,n)=>(e[n]=null!=t[n]&&t[n],e)),{})),r.format(n)}constructor(e,t){this.locale=e,this.messages=t,this.cache={}}}const w=new WeakMap;function x(e){let{locale:t}=g(),n=(0,a.useMemo)((()=>function(e){let t=w.get(e);return t||(t=new v(e),w.set(e,t)),t}(e)),[e]),r=(0,a.useMemo)((()=>new b(t,n)),[t,n]);return(0,a.useCallback)(((e,t)=>r.format(e,t)),[r])}var _=n(6275);const S=new WeakMap;function C(e,t){return t&&_.J.getGlobalDictionaryForPackage(t)||function(e){let t=S.get(e);return t||(t=new(0,_.J)(e),S.set(e,t)),t}(e)}function E(e,t){let{locale:n}=g(),r=C(e,t);return(0,a.useMemo)((()=>new(0,_.E)(n,r)),[n,r])}var k=n(19315),z=n(13807);function P(e){e=(0,z.vE)(null!=e?e:{},D);let{locale:t}=g();return(0,a.useMemo)((()=>new(0,k.CN)(t,e)),[t,e])}function D(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}var A=n(89424);function T(e={}){let{locale:t}=g();return(0,a.useMemo)((()=>new(0,A.e)(t,e)),[t,e])}let I=new Map;function M(e){let{locale:t}=g(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(I.has(n))return I.get(n);let r=new Intl.Collator(t,e);return I.set(n,r),r}function R(e){let t=M({usage:"search",...e}),n=(0,a.useCallback)(((e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(0,n.length),n))),[t]),r=(0,a.useCallback)(((e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(-n.length),n))),[t]),o=(0,a.useCallback)(((e,n)=>{if(0===n.length)return!0;e=e.normalize("NFC");let r=0,o=(n=n.normalize("NFC")).length;for(;r+o<=e.length;r++){let i=e.slice(r,r+o);if(0===t.compare(n,i))return!0}return!1}),[t]);return(0,a.useMemo)((()=>({startsWith:n,endsWith:r,contains:o})),[n,r,o])}},14147:(e,t,n)=>{"use strict";n.d(t,{mk:()=>D,NL:()=>P,Jz:()=>W,E:()=>G,_w:()=>Y,KK:()=>I,_Y:()=>J,mG:()=>ee,L_:()=>te,XI:()=>se,Fc:()=>le,Kf:()=>X,v5:()=>de,TA:()=>me,r_:()=>pe,r7:()=>v,y0:()=>he});var r=n(13807);let o="default",i="",a=new WeakMap;function s(e){if((0,r.gn)()){if("default"===o){const t=(0,r.r3)(e);i=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}o="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(a.set(e,e.style.userSelect),e.style.userSelect="none")}function l(e){if((0,r.gn)()){if("disabled"!==o)return;o="restoring",setTimeout((()=>{(0,r.QB)((()=>{if("restoring"===o){const t=(0,r.r3)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=i||""),i="",o="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&a.has(e)){let t=a.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),a.delete(e)}}var c=n(67294);const u=c.createContext({register:()=>{}});function d(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}u.displayName="PressResponderContext";var p=n(2278);function h(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,d(e,t,"set"),n),n}var f=new WeakMap;class m{continuePropagation(){h(this,f,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,d(e,f,"get"));var e}constructor(e,t,n,r){var o;(0,p._)(this,f,{writable:!0,value:void 0}),h(this,f,!0);let i=null!==(o=null==r?void 0:r.target)&&void 0!==o?o:n.currentTarget;const a=null==i?void 0:i.getBoundingClientRect();let s,l,c=0,u=null;null!=n.clientX&&null!=n.clientY&&(l=n.clientX,u=n.clientY),a&&(null!=l&&null!=u?(s=l-a.left,c=u-a.top):(s=a.width/2,c=a.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=c}}const g=Symbol("linkClicked");function v(e){let{onPress:t,onPressChange:n,onPressStart:o,onPressEnd:i,onPressUp:a,isDisabled:d,isPressed:p,preventFocusOnPress:h,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:v,ref:k,...z}=function(e){let t=(0,c.useContext)(u);if(t){let{register:n,...o}=t;e=(0,r.dG)(o,e),n()}return(0,r.lE)(t,e.ref),e}(e),[P,D]=(0,c.useState)(!1),A=(0,c.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:T,removeAllGlobalListeners:I}=(0,r.xi)(),M=(0,r.iW)(((e,t)=>{let r=A.current;if(d||r.didFirePressStart)return!1;let i=!0;if(r.isTriggeringEvent=!0,o){let n=new m("pressstart",t,e);o(n),i=n.shouldStopPropagation}return n&&n(!0),r.isTriggeringEvent=!1,r.didFirePressStart=!0,D(!0),i})),R=(0,r.iW)(((e,r,o=!0)=>{let a=A.current;if(!a.didFirePressStart)return!1;a.ignoreClickAfterPress=!0,a.didFirePressStart=!1,a.isTriggeringEvent=!0;let s=!0;if(i){let t=new m("pressend",r,e);i(t),s=t.shouldStopPropagation}if(n&&n(!1),D(!1),t&&o&&!d){let n=new m("press",r,e);t(n),s&&(s=n.shouldStopPropagation)}return a.isTriggeringEvent=!1,s})),F=(0,r.iW)(((e,t)=>{let n=A.current;if(d)return!1;if(a){n.isTriggeringEvent=!0;let r=new m("pressup",t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0})),N=(0,r.iW)((e=>{let t=A.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&R(_(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,I(),v||l(t.target))})),O=(0,r.iW)((e=>{f&&N(e)})),j=(0,c.useMemo)((()=>{let e=A.current,t={onKeyDown(t){if(b(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var o;E(t.target,t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,i=M(t,"keyboard");let o=t.currentTarget,a=t=>{b(t,o)&&!t.repeat&&o.contains(t.target)&&e.target&&F(_(e.target,t),"keyboard")};const s=(0,r.k3)(t.currentTarget)||(0,r.r3)(t.currentTarget);T(s,"keyup",(0,r.tS)(a,n),!0)}i&&t.stopPropagation(),t.metaKey&&(0,r.V5)()&&(null===(o=e.metaKeyEvents)||void 0===o||o.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!r.nG.isOpening){let n=!0;if(d&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,r.Zj)(t.nativeEvent))){d||h||(0,r.Ao)(t.currentTarget);let e=M(t,"virtual"),o=F(t,"virtual"),i=R(t,"virtual");n=e&&o&&i}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&b(t,e.target)){var o;E(t.target,t.key)&&t.preventDefault();let n=t.target;R(_(e.target,t),"keyboard",e.target.contains(n)),I(),"Enter"!==t.key&&y(e.target)&&e.target.contains(n)&&!t[g]&&(t[g]=!0,(0,r.nG)(e.target,t,!1)),e.isPressed=!1,null===(o=e.metaKeyEvents)||void 0===o||o.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,r.cr)(t.nativeEvent))return void(e.pointerType="virtual");C(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let a=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||h||(0,r.Ao)(t.currentTarget),v||s(e.target),a=M(t,e.pointerType);const l=(0,r.k3)(t.currentTarget)||(0,r.r3)(t.currentTarget);T(l,"pointermove",n,!1),T(l,"pointerup",o,!1),T(l,"pointercancel",i,!1)}a&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(C(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&S(t,t.currentTarget)&&F(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&S(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,M(_(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,R(_(e.target,t),e.pointerType,!1),O(t)))},o=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(S(t,e.target)&&null!=e.pointerType?R(_(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&R(_(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,I(),v||l(e.target))},i=e=>{N(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&N(e)}}else{t.onMouseDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(C(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents)return void t.stopPropagation();e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,r.Zj)(t.nativeEvent)?"virtual":"mouse",d||h||(0,r.Ao)(t.currentTarget),M(t,e.pointerType)&&t.stopPropagation();const o=(0,r.k3)(t.currentTarget)||(0,r.r3)(t.currentTarget);T(o,"mouseup",n,!1)},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=M(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=R(t,e.pointerType,!1),O(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||F(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,I(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&S(t,e.target)&&null!=e.pointerType?R(_(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&R(_(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",d||h||(0,r.Ao)(t.currentTarget),v||s(e.target),M(x(e.target,t),e.pointerType)&&t.stopPropagation(),T((0,r.kR)(t.currentTarget),"scroll",o,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=w(t.nativeEvent,e.activePointerId),r=!0;n&&S(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=M(x(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=R(x(e.target,t),e.pointerType,!1),O(x(e.target,t))),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=w(t.nativeEvent,e.activePointerId),r=!0;n&&S(n,t.currentTarget)&&null!=e.pointerType?(F(x(e.target,t),e.pointerType),r=R(x(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=R(x(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!v&&l(e.target),I()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&N(x(e.target,t)))};let o=t=>{e.isPressed&&t.target.contains(e.target)&&N({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&N(e)}}return t}),[T,d,h,I,v,N,O,R,M,F]);return(0,c.useEffect)((()=>()=>{var e;v||l(null!==(e=A.current.target)&&void 0!==e?e:void 0)}),[v]),{isPressed:p||P,pressProps:(0,r.dG)(z,j)}}function y(e){return"A"===e.tagName&&e.hasAttribute("href")}function b(e,t){const{key:n,code:o}=e,i=t,a=i.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==o||i instanceof(0,r.kR)(i).HTMLInputElement&&!z(i,n)||i instanceof(0,r.kR)(i).HTMLTextAreaElement||i.isContentEditable||("link"===a||!a&&y(i))&&"Enter"!==n)}function w(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function x(e,t){let n=0,r=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function _(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function S(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return i=r,!((o=n).left>i.right||i.left>o.right||o.top>i.bottom||i.top>o.bottom);var o,i}function C(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function E(e,t){return e instanceof HTMLInputElement?!z(e,t):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!y(e)}const k=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function z(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:k.has(e.type)}const P=c.forwardRef((({children:e,...t},n)=>{let o=(0,c.useRef)(!1),i=(0,c.useContext)(u);n=(0,r.B3)(n||(null==i?void 0:i.ref));let a=(0,r.dG)(i||{},{...t,ref:n,register(){o.current=!0,i&&i.register()}});return(0,r.lE)(i,n),(0,c.useEffect)((()=>{o.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),o.current=!0)}),[]),c.createElement(u.Provider,{value:a},e)}));function D({children:e}){let t=(0,c.useMemo)((()=>({register:()=>{}})),[]);return c.createElement(u.Provider,{value:t},e)}class A{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function T(e){let t=(0,c.useRef)({isFocused:!1,observer:null});(0,r.bt)((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=(0,r.iW)((t=>{null==e||e(t)}));return(0,c.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{t.current.isFocused=!1,r.disabled&&n(new A("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}function I(e){let{isDisabled:t,onFocus:n,onBlur:o,onFocusChange:i}=e;const a=(0,c.useCallback)((e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0}),[o,i]),s=T(a),l=(0,c.useCallback)((e=>{const t=(0,r.k3)(e.target),o=t instanceof ShadowRoot?(0,r.Gf)():null==t?void 0:t.activeElement;e.target===e.currentTarget&&o===e.target&&(n&&n(e),i&&i(!0),s(e))}),[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||o)?l:void 0,onBlur:t||!o&&!i?void 0:a}}}var M=n(97480);let R=null,F=new Set,N=new Map,O=!1,j=!1;const L={Tab:!0,Escape:!0};function B(e,t){for(let n of F)n(e,t)}function K(e){O=!0,function(e){return!(e.metaKey||!(0,r.V5)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(R="keyboard",B("keyboard",e))}function V(e){R="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(O=!0,B("pointer",e))}function H(e){(0,r.Zj)(e)&&(O=!0,R="virtual")}function $(e){e.target!==window&&e.target!==document&&(O||j||(R="virtual",B("virtual",e)),O=!1,j=!1)}function U(){O=!1,j=!0}function Z(e){if("undefined"==typeof window||N.get((0,r.kR)(e)))return;const t=(0,r.kR)(e),n=(0,r.k3)(e);let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){O=!0,o.apply(this,arguments)},null==n||n.addEventListener("keydown",K,!0),null==n||n.addEventListener("keyup",K,!0),null==n||n.addEventListener("click",H,!0),t.addEventListener("focus",$,!0),t.addEventListener("blur",U,!1),"undefined"!=typeof PointerEvent?(null==n||n.addEventListener("pointerdown",V,!0),null==n||n.addEventListener("pointermove",V,!0),null==n||n.addEventListener("pointerup",V,!0)):(null==n||n.addEventListener("mousedown",V,!0),null==n||n.addEventListener("mousemove",V,!0),null==n||n.addEventListener("mouseup",V,!0)),t.addEventListener("beforeunload",(()=>{q(e)}),{once:!0}),N.set(t,{focus:o})}const q=(e,t)=>{const n=(0,r.kR)(e),o=(0,r.k3)(e);t&&(null==o||o.removeEventListener("DOMContentLoaded",t)),N.has(n)&&(n.HTMLElement.prototype.focus=N.get(n).focus,null==o||o.removeEventListener("keydown",K,!0),null==o||o.removeEventListener("keyup",K,!0),null==o||o.removeEventListener("click",H,!0),n.removeEventListener("focus",$,!0),n.removeEventListener("blur",U,!1),"undefined"!=typeof PointerEvent?(null==o||o.removeEventListener("pointerdown",V,!0),null==o||o.removeEventListener("pointermove",V,!0),null==o||o.removeEventListener("pointerup",V,!0)):(null==o||o.removeEventListener("mousedown",V,!0),null==o||o.removeEventListener("mousemove",V,!0),null==o||o.removeEventListener("mouseup",V,!0)),N.delete(n))};function G(){return"pointer"!==R}function W(){return R}function Y(e){R=e,B(e,null)}function X(){Z();let[e,t]=(0,c.useState)(R);return(0,c.useEffect)((()=>{let e=()=>{t(R)};return F.add(e),()=>{F.delete(e)}}),[]),(0,M.Av)()?null:e}"undefined"!=typeof document&&function(e){const t=(0,r.k3)(e);let n;t instanceof ShadowRoot||"loading"!==(null==t?void 0:t.readyState)?Z(e):(n=()=>{Z(e)},t.addEventListener("DOMContentLoaded",n))}();const Q=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function J(e={}){let{isTextInput:t,autoFocus:n}=e,[r,o]=(0,c.useState)(n||G());return ee((e=>{o(e)}),[t],{isTextInput:t}),{isFocusVisible:r}}function ee(e,t,n){Z(),(0,c.useEffect)((()=>{let t=(t,o)=>{(function(e,t,n){var o;const i="undefined"!=typeof window?(0,r.kR)(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,a="undefined"!=typeof window?(0,r.kR)(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s="undefined"!=typeof window?(0,r.kR)(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?(0,r.kR)(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!Q.has(null==n||null===(o=n.target)||void 0===o?void 0:o.type)||(null==n?void 0:n.target)instanceof a||(null==n?void 0:n.target)instanceof s&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof l&&!L[n.key])})(!!(null==n?void 0:n.isTextInput),t,o)&&e(G())};return F.add(t),()=>{F.delete(t)}}),t)}function te(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:i}=e,a=(0,c.useRef)({isFocusWithin:!1}),s=(0,c.useCallback)((e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,a]),l=T(s),u=(0,c.useCallback)((e=>{a.current.isFocusWithin||(0,r.Gf)()!==e.target||(o&&o(e),i&&i(!0),a.current.isFocusWithin=!0,l(e))}),[o,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:s}}}let ne=!1,re=0;function oe(){ne=!0,setTimeout((()=>{ne=!1}),50)}function ie(e){"touch"===e.pointerType&&oe()}function ae(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",ie):document.addEventListener("touchend",oe),re++,()=>{re--,re>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",ie):document.removeEventListener("touchend",oe))}}function se(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=(0,c.useState)(!1),s=(0,c.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,c.useEffect)(ae,[]);let{hoverProps:l,triggerHoverEnd:u}=(0,c.useMemo)((()=>{let e=(e,r)=>{if(s.pointerType=r,o||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let i=e.currentTarget;s.target=i,t&&t({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),a(!0)},i=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let o=e.currentTarget;r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{ne&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(l.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||ne||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:l,triggerHoverEnd:i}}),[t,n,r,o,s]);return(0,c.useEffect)((()=>{o&&u({currentTarget:s.target},s.pointerType)}),[o]),{hoverProps:l,isHovered:i}}function le(e){let{ref:t,onInteractOutside:n,isDisabled:o,onInteractOutsideStart:i}=e,a=(0,c.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=(0,r.iW)((e=>{n&&ce(e,t)&&(i&&i(e),a.current.isPointerDown=!0)})),l=(0,r.iW)((e=>{n&&n(e)}));(0,c.useEffect)((()=>{let e=a.current;if(o)return;const n=t.current,i=(0,r.r3)(n);if("undefined"!=typeof PointerEvent){let n=n=>{e.isPointerDown&&ce(n,t)&&l(n),e.isPointerDown=!1};return i.addEventListener("pointerdown",s,!0),i.addEventListener("pointerup",n,!0),()=>{i.removeEventListener("pointerdown",s,!0),i.removeEventListener("pointerup",n,!0)}}{let n=n=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&ce(n,t)&&l(n),e.isPointerDown=!1},r=n=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&ce(n,t)&&l(n),e.isPointerDown=!1};return i.addEventListener("mousedown",s,!0),i.addEventListener("mouseup",n,!0),i.addEventListener("touchstart",s,!0),i.addEventListener("touchend",r,!0),()=>{i.removeEventListener("mousedown",s,!0),i.removeEventListener("mouseup",n,!0),i.removeEventListener("touchstart",s,!0),i.removeEventListener("touchend",r,!0)}}}),[t,o,s,l])}function ce(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1;if(e.target.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}function ue(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function de(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ue(e.onKeyDown),onKeyUp:ue(e.onKeyUp)}}}function pe(e){let{onMoveStart:t,onMove:n,onMoveEnd:o}=e,i=(0,c.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:u}=(0,r.xi)(),d=(0,r.iW)(((e,r,o,a)=>{0===o&&0===a||(i.current.didMove||(i.current.didMove=!0,null==t||t({type:"movestart",pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),null==n||n({type:"move",pointerType:r,deltaX:o,deltaY:a,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))})),p=(0,r.iW)(((e,t)=>{l(),i.current.didMove&&(null==o||o({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))}));return{moveProps:(0,c.useMemo)((()=>{let e={},t=()=>{s(),i.current.didMove=!1};if("undefined"==typeof PointerEvent){let n=e=>{var t,n,r,o;0===e.button&&(d(e,"mouse",e.pageX-(null!==(r=null===(t=i.current.lastPosition)||void 0===t?void 0:t.pageX)&&void 0!==r?r:0),e.pageY-(null!==(o=null===(n=i.current.lastPosition)||void 0===n?void 0:n.pageY)&&void 0!==o?o:0)),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},r=e=>{0===e.button&&(p(e,"mouse"),u(window,"mousemove",n,!1),u(window,"mouseup",r,!1))};e.onMouseDown=e=>{0===e.button&&(t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},a(window,"mousemove",n,!1),a(window,"mouseup",r,!1))};let o=e=>{let t=[...e.changedTouches].findIndex((({identifier:e})=>e===i.current.id));if(t>=0){var n,r;let{pageX:s,pageY:l}=e.changedTouches[t];var o,a;d(e,"touch",s-(null!==(o=null===(n=i.current.lastPosition)||void 0===n?void 0:n.pageX)&&void 0!==o?o:0),l-(null!==(a=null===(r=i.current.lastPosition)||void 0===r?void 0:r.pageY)&&void 0!==a?a:0)),i.current.lastPosition={pageX:s,pageY:l}}},s=e=>{[...e.changedTouches].findIndex((({identifier:e})=>e===i.current.id))>=0&&(p(e,"touch"),i.current.id=null,u(window,"touchmove",o),u(window,"touchend",s),u(window,"touchcancel",s))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=i.current.id)return;let{pageX:n,pageY:r,identifier:l}=e.changedTouches[0];t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:n,pageY:r},i.current.id=l,a(window,"touchmove",o,!1),a(window,"touchend",s,!1),a(window,"touchcancel",s,!1)}}else{let n=e=>{if(e.pointerId===i.current.id){var t,n;let a=e.pointerType||"mouse";var r,o;d(e,a,e.pageX-(null!==(r=null===(t=i.current.lastPosition)||void 0===t?void 0:t.pageX)&&void 0!==r?r:0),e.pageY-(null!==(o=null===(n=i.current.lastPosition)||void 0===n?void 0:n.pageY)&&void 0!==o?o:0)),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},r=e=>{if(e.pointerId===i.current.id){let t=e.pointerType||"mouse";p(e,t),i.current.id=null,u(window,"pointermove",n,!1),u(window,"pointerup",r,!1),u(window,"pointercancel",r,!1)}};e.onPointerDown=e=>{0===e.button&&null==i.current.id&&(t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i.current.id=e.pointerId,a(window,"pointermove",n,!1),a(window,"pointerup",r,!1),a(window,"pointercancel",r,!1))}}let n=(e,n,r)=>{t(),d(e,"keyboard",n,r),p(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),n(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),n(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),n(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),n(e,0,1)}},e}),[i,a,u,d,p])}}function he(e,t){let{onScroll:n,isDisabled:o}=e,i=(0,c.useCallback)((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))}),[n]);(0,r.zX)(t,"wheel",o?void 0:i)}const fe=500;function me(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:o,onLongPress:i,threshold:a=fe,accessibilityDescription:s}=e;const l=(0,c.useRef)(void 0);let{addGlobalListener:u,removeGlobalListener:d}=(0,r.xi)(),{pressProps:p}=v({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),l.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...e,type:"longpress"}),l.current=void 0}),a),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};u(e.target,"contextmenu",t,{once:!0}),u(window,"pointerup",(()=>{setTimeout((()=>{d(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){l.current&&clearTimeout(l.current),!o||"mouse"!==e.pointerType&&"touch"!==e.pointerType||o({...e,type:"longpressend"})}}),h=(0,r.PK)(i&&!t?s:void 0);return{longPressProps:(0,r.dG)(p,h)}}},31111:(e,t,n)=>{"use strict";n.d(t,{U:()=>i,N:()=>o});var r=n(13807);function o(e){let{id:t,label:n,"aria-labelledby":o,"aria-label":i,labelElementType:a="label"}=e;t=(0,r.Me)(t);let s=(0,r.Me)(),l={};return n?(o=o?`${s} ${o}`:s,l={id:s,htmlFor:"label"===a?t:void 0}):o||i||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:l,fieldProps:(0,r.bE)({id:t,"aria-label":i,"aria-labelledby":o})}}function i(e){let{description:t,errorMessage:n,isInvalid:i,validationState:a}=e,{labelProps:s,fieldProps:l}=o(e),c=(0,r.mp)([Boolean(t),Boolean(n),i,a]),u=(0,r.mp)([Boolean(t),Boolean(n),i,a]);return l=(0,r.dG)(l,{"aria-describedby":[c,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:l,descriptionProps:{id:c},errorMessageProps:{id:u}}}},41746:(e,t,n)=>{"use strict";n.d(t,{n:()=>a});var r=n(13807),o=n(21722),i=n(14147);function a(e,t){let{elementType:n="a",onPress:a,onPressStart:s,onPressEnd:l,onClick:c,isDisabled:u,...d}=e,p={};"a"!==n&&(p={role:"link",tabIndex:u?void 0:0});let{focusableProps:h}=(0,o.kc)(e,t),{pressProps:f,isPressed:m}=(0,i.r7)({onPress:a,onPressStart:s,onPressEnd:l,isDisabled:u,ref:t}),g=(0,r.zL)(d,{labelable:!0}),v=(0,r.dG)(h,f),y=(0,r.tv)(),b=(0,r.eY)(e);return{isPressed:m,linkProps:(0,r.dG)(g,b,{...v,...p,"aria-disabled":u||void 0,"aria-current":e["aria-current"],onClick:t=>{var n;null===(n=f.onClick)||void 0===n||n.call(f,t),c&&(c(t),console.warn("onClick is deprecated, please use onPress")),!y.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&(0,r.b0)(t.currentTarget,t)&&e.href&&(t.preventDefault(),y.open(t.currentTarget,t,e.href,e.routerOptions))}})}}},40297:(e,t,n)=>{"use strict";n.d(t,{x3:()=>o,Oj:()=>r,co:()=>c,TV:()=>p,Fv:()=>d});const r=new WeakMap;function o(e,t){let n=r.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${o=t,"string"==typeof o?o.replace(/\s*/g,""):""+o}`;var o}var i=n(13807),a=n(14147),s=n(31111),l=n(16752);function c(e,t,n){let o=(0,i.zL)(e,{labelable:!0}),c=e.selectionBehavior||"toggle",u=e.linkBehavior||("replace"===c?"action":"override");"toggle"===c&&"action"===u&&(u="override");let{listProps:d}=(0,l._t)({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:u}),{focusWithinProps:p}=(0,a.L_)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),h=(0,i.Me)(e.id);r.set(t,{id:h,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:u});let{labelProps:f,fieldProps:m}=(0,s.N)({...e,id:h,labelElementType:"span"});return{labelProps:f,listBoxProps:(0,i.dG)(o,p,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,i.dG)(m,d)})}}var u=n(56406);function d(e,t,n){var s,c;let{key:d}=e,p=r.get(t);var h;let f=null!==(h=e.isDisabled)&&void 0!==h?h:t.selectionManager.isDisabled(d);var m;let g=null!==(m=e.isSelected)&&void 0!==m?m:t.selectionManager.isSelected(d);var v;let y=null!==(v=e.shouldSelectOnPressUp)&&void 0!==v?v:null==p?void 0:p.shouldSelectOnPressUp;var b;let w=null!==(b=e.shouldFocusOnHover)&&void 0!==b?b:null==p?void 0:p.shouldFocusOnHover;var x;let _=null!==(x=e.shouldUseVirtualFocus)&&void 0!==x?x:null==p?void 0:p.shouldUseVirtualFocus;var S;let C=null!==(S=e.isVirtualized)&&void 0!==S?S:null==p?void 0:p.isVirtualized,E=(0,i.mp)(),k=(0,i.mp)(),z={role:"option","aria-disabled":f||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?g:void 0};(0,i.V5)()&&(0,i.Pf)()||(z["aria-label"]=e["aria-label"],z["aria-labelledby"]=E,z["aria-describedby"]=k);let P=t.collection.getItem(d);if(C){let e=Number(null==P?void 0:P.index);z["aria-posinset"]=Number.isNaN(e)?void 0:e+1,z["aria-setsize"]=(0,u.is)(t.collection)}let D=(null==p?void 0:p.onAction)?()=>{var e;return null==p||null===(e=p.onAction)||void 0===e?void 0:e.call(p,d)}:void 0,{itemProps:A,isPressed:T,isFocused:I,hasAction:M,allowsSelection:R}=(0,l.Cs)({selectionManager:t.selectionManager,key:d,ref:n,shouldSelectOnPressUp:y,allowsDifferentPressOrigin:y&&w,isVirtualized:C,shouldUseVirtualFocus:_,isDisabled:f,onAction:D||(null==P||null===(s=P.props)||void 0===s?void 0:s.onAction)?(0,i.tS)(null==P||null===(c=P.props)||void 0===c?void 0:c.onAction,D):void 0,linkBehavior:null==p?void 0:p.linkBehavior}),{hoverProps:F}=(0,a.XI)({isDisabled:f||!w,onHoverStart(){(0,a.E)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(d))}}),N=(0,i.zL)(null==P?void 0:P.props);delete N.id;let O=(0,i.eY)(null==P?void 0:P.props);return{optionProps:{...z,...(0,i.dG)(N,A,F,O),id:o(t,d)},labelProps:{id:E},descriptionProps:{id:k},isFocused:I,isFocusVisible:I&&(0,a.E)(),isSelected:g,isDisabled:f,isPressed:T,allowsSelection:R,hasAction:M}}function p(e){let{heading:t,"aria-label":n}=e,r=(0,i.Me)();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}},55260:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>o,gb:()=>i});let r=null;function o(e,t="assertive",n=7e3){r||(r=new a),r.announce(e,t,n)}function i(e){r&&r.clear(e)}class a{createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){if(!this.node)return;let r=document.createElement("div");r.textContent=e,"assertive"===t?this.assertiveLog.appendChild(r):this.politeLog.appendChild(r),""!==e&&setTimeout((()=>{r.remove()}),n)}clear(e){this.node&&(e&&"assertive"!==e||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}},54254:(e,t,n)=>{"use strict";n.d(t,{H9:()=>d,iX:()=>h,x7:()=>f,u4:()=>l});var r;r={"ar-AE":{longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"},"bg-BG":{longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"},"cs-CZ":{longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"},"da-DK":{longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"},"de-DE":{longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"},"el-GR":{longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"},"et-EE":{longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"},"it-IT":{longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"},"ja-JP":{longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"},"ko-KR":{longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"},"lt-LT":{longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."},"lv-LV":{longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"},"sk-SK":{longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"},"tr-TR":{longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"},"uk-UA":{longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"},"zh-CN":{longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"},"zh-TW":{longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"}};var o=n(13807),i=n(44608),a=n(14147),s=n(65363);function l(e,t,n){let{type:l="menu",isDisabled:c,trigger:u="press"}=e,d=(0,o.Me)(),{triggerProps:p,overlayProps:h}=(0,s.IB)({type:l},t,n),f=(0,i.qb)((m=r)&&m.__esModule?m.default:m,"@react-aria/menu");var m;let{longPressProps:g}=(0,a.TA)({isDisabled:c||"longPress"!==u,accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),v={onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||c||t.open("virtual"===e.pointerType?"first":null)},onPress(e){"touch"!==e.pointerType||c||t.toggle()}};return delete p.onPress,{menuTriggerProps:{...p,..."press"===u?v:g,id:d,onKeyDown:e=>{if(!c&&("longPress"!==u||e.altKey)&&n&&n.current)switch(e.key){case"Enter":case" ":if("longPress"===u)return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...h,"aria-labelledby":d,autoFocus:t.focusStrategy||!0,onClose:t.close}}}var c=n(16752);const u=new WeakMap;function d(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...s}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let l=(0,o.zL)(e,{labelable:!0}),{listProps:d}=(0,c._t)({...s,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return u.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:(0,o.dG)(l,{onKeyDown:i,onKeyUp:a},{role:"menu",...d,onKeyDown:e=>{"Escape"!==e.key&&d.onKeyDown(e)}})}}var p=n(56406);function h(e,t,n){let{id:r,key:i,closeOnSelect:s,isVirtualized:l,"aria-haspopup":d,onPressStart:h,onPressUp:f,onPress:m,onPressChange:g,onPressEnd:v,onHoverStart:y,onHoverChange:b,onHoverEnd:w,onKeyDown:x,onKeyUp:_,onFocus:S,onFocusChange:C,onBlur:E}=e,k=!!d;var z;let P=null!==(z=e.isDisabled)&&void 0!==z?z:t.selectionManager.isDisabled(i);var D;let A=null!==(D=e.isSelected)&&void 0!==D?D:t.selectionManager.isSelected(i),T=u.get(t),I=t.collection.getItem(i),M=e.onClose||T.onClose,R=(0,o.tv)(),F=e=>{var t;if(!k){if((null==I||null===(t=I.props)||void 0===t?void 0:t.onAction)&&I.props.onAction(),T.onAction){(0,T.onAction)(i)}e.target instanceof HTMLAnchorElement&&R.open(e.target,e,I.props.href,I.props.routerOptions)}},N="menuitem";k||("single"===t.selectionManager.selectionMode?N="menuitemradio":"multiple"===t.selectionManager.selectionMode&&(N="menuitemcheckbox"));let O=(0,o.mp)(),j=(0,o.mp)(),L=(0,o.mp)(),B={id:r,"aria-disabled":P||void 0,role:N,"aria-label":e["aria-label"],"aria-labelledby":O,"aria-describedby":[j,L].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":d,"aria-expanded":e["aria-expanded"]};"none"===t.selectionManager.selectionMode||k||(B["aria-checked"]=A),l&&(B["aria-posinset"]=null==I?void 0:I.index,B["aria-setsize"]=(0,p.is)(t.collection));let{itemProps:K,isFocused:V}=(0,c.Cs)({selectionManager:t.selectionManager,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:H,isPressed:$}=(0,a.r7)({onPressStart:e=>{"keyboard"===e.pointerType&&F(e),null==h||h(e)},onPress:m,onPressUp:e=>{"keyboard"!==e.pointerType&&(F(e),!k&&M&&(null!=s?s:"multiple"!==t.selectionManager.selectionMode||t.selectionManager.isLink(i))&&M()),null==f||f(e)},onPressChange:g,onPressEnd:v,isDisabled:P}),{hoverProps:U}=(0,a.XI)({isDisabled:P,onHoverStart(e){(0,a.E)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i)),null==y||y(e)},onHoverChange:b,onHoverEnd:w}),{keyboardProps:Z}=(0,a.v5)({onKeyDown:e=>{if(e.repeat)e.continuePropagation();else switch(e.key){case" ":P||"none"!==t.selectionManager.selectionMode||k||!1===s||!M||M();break;case"Enter":P||!1===s||k||!M||M();break;default:k||e.continuePropagation(),null==x||x(e)}},onKeyUp:_}),{focusProps:q}=(0,a.KK)({onBlur:E,onFocus:S,onFocusChange:C}),G=(0,o.zL)(I.props);delete G.id;let W=(0,o.eY)(I.props);return{menuItemProps:{...B,...(0,o.dG)(G,W,k?{onFocus:K.onFocus,"data-key":K["data-key"]}:K,H,U,Z,q),tabIndex:null!=K.tabIndex?-1:void 0},labelProps:{id:O},descriptionProps:{id:j},keyboardShortcutProps:{id:L},isFocused:V,isSelected:A,isPressed:$,isDisabled:P}}function f(e){let{heading:t,"aria-label":n}=e,r=(0,o.Me)();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}n(67294);Math.PI},45772:(e,t,n)=>{"use strict";n(22423)},94866:(e,t,n)=>{"use strict";n.d(t,{I:()=>d});var r;r={"ar-AE":{decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"},"bg-BG":{decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"},"cs-CZ":{decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"},"et-EE":{decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"},"fi-FI":{decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"},"ko-KR":{decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"},"lt-LT":{decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"},"ro-RO":{decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"},"ru-RU":{decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"},"sk-SK":{decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"},"uk-UA":{decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"},"zh-CN":{decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"},"zh-TW":{decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"}};var o=n(13807),i=n(67294),a=n(35998),s=n(14147),l=n(96382),c=n(44608),u=n(65163);function d(e,t,n){let{id:d,decrementAriaLabel:p,incrementAriaLabel:h,isDisabled:f,isReadOnly:m,isRequired:g,minValue:v,maxValue:y,autoFocus:b,label:w,formatOptions:x,onBlur:_=(()=>{}),onFocus:S,onFocusChange:C,onKeyDown:E,onKeyUp:k,description:z,errorMessage:P,isWheelDisabled:D,...A}=e,{increment:T,incrementToMax:I,decrement:M,decrementToMin:R,numberValue:F,inputValue:N,commit:O,commitValidation:j}=t;const L=(0,c.qb)((B=r)&&B.__esModule?B.default:B,"@react-aria/numberfield");var B;let K=(0,o.Me)(d),{focusProps:V}=(0,s.KK)({onBlur(){O()}}),H=(0,c.Ux)(x),$=(0,i.useMemo)((()=>H.resolvedOptions()),[H]),U=(0,c.Ux)({...x,currencySign:void 0}),Z=(0,i.useMemo)((()=>isNaN(F)?"":U.format(F)),[U,F]),{spinButtonProps:q,incrementButtonProps:G,decrementButtonProps:W}=(0,u.G)({isDisabled:f,isReadOnly:m,isRequired:g,maxValue:y,minValue:v,onIncrement:T,onIncrementToMax:I,onDecrement:M,onDecrementToMin:R,value:F,textValue:Z}),[Y,X]=(0,i.useState)(!1),{focusWithinProps:Q}=(0,s.L_)({isDisabled:f,onFocusWithinChange:X}),J=(0,i.useCallback)((e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?T():e.deltaY<0&&M())}),[M,T]),ee=D||f||m||!Y;var te;(0,s.y0)({onScroll:J,isDisabled:ee},n);let ne=(null!==(te=$.maximumFractionDigits)&&void 0!==te?te:0)>0,re=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,oe="numeric";(0,o.IN)()?re?oe="text":ne&&(oe="decimal"):(0,o.Dt)()&&(re?oe="numeric":ne&&(oe="decimal"));let ie=(0,o.zL)(e),ae=(0,i.useCallback)((e=>{"Enter"===e.key?(O(),j()):e.continuePropagation()}),[O,j]),{isInvalid:se,validationErrors:le,validationDetails:ce}=t.displayValidation,{labelProps:ue,inputProps:de,descriptionProps:pe,errorMessageProps:he}=(0,l.h)({...A,...ie,name:void 0,label:w,autoFocus:b,isDisabled:f,isReadOnly:m,isRequired:g,validate:void 0,[a.tL]:t,value:N,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:K,type:"text",inputMode:oe,onChange:e=>{t.validate(e)&&t.setInputValue(e)},onBlur:_,onFocus:S,onFocusChange:C,onKeyDown:(0,i.useMemo)((()=>(0,o.tS)(ae,E)),[ae,E]),onKeyUp:k,description:z,errorMessage:P},t,n);(0,o.y$)(n,t.numberValue,t.setNumberValue);let fe=(0,o.dG)(q,V,de,{role:null,"aria-roledescription":(0,o.gn)()?null:L.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(fe["aria-required"]=void 0);let me,ge=e=>{var t;document.activeElement!==n.current&&("mouse"===e.pointerType?null===(t=n.current)||void 0===t||t.focus():e.target.focus())},ve=e["aria-label"]||("string"==typeof e.label?e.label:"");ve||(me=null!=e.label?ue.id:e["aria-labelledby"]);let ye=(0,o.Me)(),be=(0,o.Me)();return{groupProps:{...Q,role:"group","aria-disabled":f,"aria-invalid":se?"true":void 0},labelProps:ue,inputProps:fe,incrementButtonProps:(0,o.dG)(G,{"aria-label":h||L.format("increase",{fieldLabel:ve}).trim(),id:me&&!h?ye:null,"aria-labelledby":me&&!h?`${ye} ${me}`:null,"aria-controls":K,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:ge}),decrementButtonProps:(0,o.dG)(W,{"aria-label":p||L.format("decrease",{fieldLabel:ve}).trim(),id:me&&!p?be:null,"aria-labelledby":me&&!p?`${be} ${me}`:null,"aria-controls":K,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:ge}),errorMessageProps:he,descriptionProps:pe,isInvalid:se,validationErrors:le,validationDetails:ce}}},65363:(e,t,n)=>{"use strict";n.d(t,{U4:()=>Z,aV:()=>ee,RP:()=>W,NE:()=>ne,Bq:()=>te,tN:()=>k,IB:()=>I,Sv:()=>Y});var r=n(13807);const o={top:"top",bottom:"top",left:"left",right:"left"},i={top:"bottom",bottom:"top",left:"right",right:"left"},a={top:"left",left:"top"},s={top:"height",left:"width"},l={width:"totalWidth",height:"totalHeight"},c={};let u="undefined"!=typeof document&&window.visualViewport;function d(e){let t=0,n=0,o=0,i=0,a=0,s=0,l={},c=(null==u?void 0:u.scale)>1;if("BODY"===e.tagName){let r=document.documentElement;var d,p;o=r.clientWidth,i=r.clientHeight,t=null!==(d=null==u?void 0:u.width)&&void 0!==d?d:o,n=null!==(p=null==u?void 0:u.height)&&void 0!==p?p:i,l.top=r.scrollTop||e.scrollTop,l.left=r.scrollLeft||e.scrollLeft,u&&(a=u.offsetTop,s=u.offsetLeft)}else({width:t,height:n,top:a,left:s}=y(e)),l.top=e.scrollTop,l.left=e.scrollLeft,o=t,i=n;return(0,r.Pf)()&&("BODY"===e.tagName||"HTML"===e.tagName)&&c&&(l.top=0,l.left=0,a=u.pageTop,s=u.pageLeft),{width:t,height:n,totalWidth:o,totalHeight:i,scroll:l,top:a,left:s}}function p(e,t,n,r,i,a,l){let c=i.scroll[e],u=r[s[e]],d=r.scroll[o[e]]+a,p=u+r.scroll[o[e]]-a,h=t-c+l[e]-r[o[e]],f=t-c+n+l[e]-r[o[e]];return h<d?d-h:f>p?Math.max(p-f,d-h):0}function h(e){if(c[e])return c[e];let[t,n]=e.split(" "),r=o[t]||"right",i=a[r];o[n]||(n="center");let l=s[r],u=s[i];return c[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:l,crossSize:u},c[e]}function f(e,t,n,o,a,s,c,u,d,p){let{placement:h,crossPlacement:f,axis:m,crossAxis:g,size:v,crossSize:y}=o,b={};b[g]=e[g],"center"===f?b[g]+=(e[y]-n[y])/2:f!==g&&(b[g]+=e[y]-n[y]),b[g]+=s;const w=e[g]-n[y]+d+p,x=e[g]+e[y]-d-p;if(b[g]=(0,r.uZ)(b[g],w,x),h===m){const n=u?c[v]:t[l[v]];b[i[m]]=Math.floor(n-e[m]+a)}else b[m]=Math.floor(e[m]+e[v]+a);return b}function m(e,t,n,r,o,a){let{placement:s,axis:l,size:c}=a;return s===l?Math.max(0,n[l]-e[l]-e.scroll[l]+t[l]-r[l]-r[i[l]]-o):Math.max(0,e[c]+e[l]+e.scroll[l]-t[l]-n[l]-n[c]-r[l]-r[i[l]]-o)}function g(e,t,n,o,a,s,c,u,d,g,v,y,b,w,x,_){let S=h(e),{size:C,crossAxis:E,crossSize:k,placement:z,crossPlacement:P}=S,D=f(t,u,n,S,v,y,g,b,x,_),A=v,T=m(u,g,t,a,s+v,S);if(c&&o[C]>T){let e=h(`${i[z]} ${P}`),r=f(t,u,n,e,v,y,g,b,x,_);m(u,g,t,a,s+v,e)>T&&(S=e,D=r,A=v)}let I="bottom";"top"===S.axis?"top"===S.placement?I="top":"bottom"===S.placement&&(I="bottom"):"top"===S.crossAxis&&("top"===S.crossPlacement?I="bottom":"bottom"===S.crossPlacement&&(I="top"));let M=p(E,D[E],n[k],u,d,s,g);D[E]+=M;let R=function(e,t,n,r,o,i,a,s){const c=r?n.height:t[l.height];let u=null!=e.top?n.top+e.top:n.top+(c-e.bottom-a),d="top"!==s?Math.max(0,t.height+t.top+t.scroll.top-u-(o.top+o.bottom+i)):Math.max(0,u+a-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-2*i,d)}(D,u,g,b,a,s,n.height,I);w&&w<R&&(R=w),n.height=Math.min(n.height,R),D=f(t,u,n,S,A,y,g,b,x,_),M=p(E,D[E],n[k],u,d,s,g),D[E]+=M;let F={},N=t[E]+.5*t[k]-D[E];const O=x/2+_,j=n[k]-x/2-_,L=t[E]-D[E]+x/2,B=t[E]+t[k]-D[E]-x/2,K=(0,r.uZ)(N,L,B);return F[E]=(0,r.uZ)(K,O,j),{position:D,maxHeight:R,arrowOffsetLeft:F.left,arrowOffsetTop:F.top,placement:S.placement}}function v(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:c,maxHeight:u,arrowSize:p=0,arrowBoundaryOffset:h=0}=e,f=r instanceof HTMLElement?function(e){let t=e.offsetParent;t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!w(t)&&(t=document.documentElement);if(null==t)for(t=e.parentElement;t&&!w(t);)t=t.parentElement;return t||document.documentElement}(r):document.documentElement,m=f===document.documentElement;const v=window.getComputedStyle(f).position;let x=!!v&&"static"!==v,_=m?y(n):b(n,f);if(!m){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);_.top+=parseInt(e,10)||0,_.left+=parseInt(t,10)||0}let S=y(r),C=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(r);S.width+=C.left+C.right,S.height+=C.top+C.bottom;let E={top:(k=o).scrollTop,left:k.scrollLeft,width:k.scrollWidth,height:k.scrollHeight};var k;let z=d(s),P=d(f),D="BODY"===s.tagName?y(f):b(f,s);return"HTML"===f.tagName&&"BODY"===s.tagName&&(P.scroll.top=0,P.scroll.left=0),g(t,_,S,E,C,i,a,z,P,D,l,c,x,u,p,h)}function y(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:n+a-l,width:r,height:o}}function b(e,t){let n,r=window.getComputedStyle(e);if("fixed"===r.position){let{top:t,left:r,width:o,height:i}=e.getBoundingClientRect();n={top:t,left:r,width:o,height:i}}else{n=y(e);let r=y(t),o=window.getComputedStyle(t);r.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,r.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=r.top,n.left-=r.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function w(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}var x=n(67294);const _=new WeakMap;function S(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,x.useEffect)((()=>{if(!n||null===r)return;let e=e=>{let n=e.target;if(!t.current||n instanceof Node&&!n.contains(t.current))return;if(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let o=r||_.get(t.current);o&&o()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[n,r,t])}var C=n(44608);let E="undefined"!=typeof document&&window.visualViewport;function k(e){let{direction:t}=(0,C.bU)(),{arrowSize:n=0,targetRef:o,overlayRef:i,scrollRef:a=i,placement:s="bottom",containerPadding:l=12,shouldFlip:c=!0,boundaryElement:u=("undefined"!=typeof document?document.body:null),offset:d=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:f=!0,onClose:m,maxHeight:g,arrowBoundaryOffset:y=0}=e,[b,w]=(0,x.useState)({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),_=[h,s,i.current,o.current,a.current,l,c,u,d,p,f,t,g,y,n],k=(0,x.useRef)(null==E?void 0:E.scale);(0,x.useEffect)((()=>{f&&(k.current=null==E?void 0:E.scale)}),[f]);let P=(0,x.useCallback)((()=>{if(!(!1!==h&&f&&i.current&&o.current&&u))return;if((null==E?void 0:E.scale)!==k.current)return;let e=null;if(a.current&&a.current.contains(document.activeElement)){let t=document.activeElement.getBoundingClientRect(),n=a.current.getBoundingClientRect();e={type:"top",offset:t.top-n.top},e.offset>n.height/2&&(e.type="bottom",e.offset=t.bottom-n.bottom)}let r=i.current;var m,b;!g&&i.current&&(r.style.top="0px",r.style.bottom="",r.style.maxHeight=(null!==(b=null===(m=window.visualViewport)||void 0===m?void 0:m.height)&&void 0!==b?b:window.innerHeight)+"px");let x=v({placement:z(s,t),overlayNode:i.current,targetNode:o.current,scrollNode:a.current||i.current,padding:l,shouldFlip:c,boundaryElement:u,offset:d,crossOffset:p,maxHeight:g,arrowSize:n,arrowBoundaryOffset:y});if(r.style.top="",r.style.bottom="",r.style.left="",r.style.right="",Object.keys(x.position).forEach((e=>r.style[e]=x.position[e]+"px")),r.style.maxHeight=null!=x.maxHeight?x.maxHeight+"px":void 0,e){let t=document.activeElement.getBoundingClientRect(),n=a.current.getBoundingClientRect(),r=t[e.type]-n[e.type];a.current.scrollTop+=r-e.offset}w(x)}),_);(0,r.bt)(P,_),function(e){(0,r.bt)((()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)})),[e])}(P),(0,r.yU)({ref:i,onResize:P}),(0,r.yU)({ref:o,onResize:P});let D=(0,x.useRef)(!1);(0,r.bt)((()=>{let e,t=()=>{D.current=!0,clearTimeout(e),e=setTimeout((()=>{D.current=!1}),500),P()},n=()=>{D.current&&t()};return null==E||E.addEventListener("resize",t),null==E||E.addEventListener("scroll",n),()=>{null==E||E.removeEventListener("resize",t),null==E||E.removeEventListener("scroll",n)}}),[P]);let A=(0,x.useCallback)((()=>{D.current||m()}),[m,D]);var T;return S({triggerRef:o,isOpen:f,onClose:m&&A}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...b.position,maxHeight:null!==(T=b.maxHeight)&&void 0!==T?T:"100vh"}},placement:b.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:b.arrowOffsetLeft,top:b.arrowOffsetTop}},updatePosition:P}}function z(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}var P=n(21722),D=n(14147);const A=[];function T(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;(0,x.useEffect)((()=>(o&&A.push(t),()=>{let e=A.indexOf(t);e>=0&&A.splice(e,1)})),[o,t]);let l=()=>{A[A.length-1]===t&&n&&n()};(0,D.Fc)({ref:t,onInteractOutside:i&&o?e=>{s&&!s(e.target)||(A[A.length-1]===t&&(e.stopPropagation(),e.preventDefault()),l())}:null,onInteractOutsideStart:e=>{s&&!s(e.target)||A[A.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=(0,D.L_)({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&!(0,P.cW)(e.relatedTarget)&&(s&&!s(e.relatedTarget)||n())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||a||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),l())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}function I(e,t,n){let o,{type:i}=e,{isOpen:a}=t;(0,x.useEffect)((()=>{n&&n.current&&_.set(n.current,t.close)})),"menu"===i?o=!0:"listbox"===i&&(o="listbox");let s=(0,r.Me)();return{triggerProps:{"aria-haspopup":o,"aria-expanded":a,"aria-controls":a?s:null,onPress:t.toggle},overlayProps:{id:s}}}const M="undefined"!=typeof document&&window.visualViewport,R=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let F,N=0;function O(e={}){let{isDisabled:t}=e;(0,r.bt)((()=>{if(!t)return N++,1===N&&(F=(0,r.gn)()?function(){let e,t,n=n=>{const o=n.composedPath()[0];e=(0,r.rP)(o,!0),e===document.documentElement&&e===document.body||e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=j(e,"overscrollBehavior","contain"))},o=t=>{e&&e!==document.documentElement&&e!==document.body?e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault():t.preventDefault()},i=e=>{const n=e.composedPath()[0],r=null==n?void 0:n.getRootNode();K(n)&&n!==(r instanceof ShadowRoot?r.activeElement:document.activeElement)&&(e.preventDefault(),l(),n.style.transform="translateY(-2000px)",n.focus(),requestAnimationFrame((()=>{n.style.transform=""}))),t&&t()},a=e=>{let t=e.target;K(t)&&(l(),t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",M&&(M.height<window.innerHeight?requestAnimationFrame((()=>{B(t)})):M.addEventListener("resize",(()=>B(t)),{once:!0}))})))},s=null,l=()=>{if(s)return;let e=()=>{window.scrollTo(0,0)},t=window.pageXOffset,n=window.pageYOffset;s=(0,r.tS)(L(window,"scroll",e),j(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),j(document.documentElement,"overflow","hidden"),j(document.body,"marginTop",`-${n}px`),(()=>{window.scrollTo(t,n)})),window.scrollTo(0,0)},c=(0,r.tS)(L(document,"touchstart",n,{passive:!1,capture:!0}),L(document,"touchmove",o,{passive:!1,capture:!0}),L(document,"touchend",i,{passive:!1,capture:!0}),L(document,"focus",a,!0));return()=>{null==t||t(),null==s||s(),c()}}():(0,r.tS)(j(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),j(document.documentElement,"overflow","hidden"))),()=>{N--,0===N&&F()}}),[t])}function j(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function L(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function B(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=(0,r.rP)(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;r>n+e.clientHeight&&(t.scrollTop+=r-n)}e=t.parentElement}}function K(e){return e instanceof HTMLInputElement&&!R.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var V=n(73935),H=n(97480);var $;$={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schließen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutasítás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};var U=n(4366);function Z(e){let{onDismiss:t,...n}=e,o=(0,C.qb)((i=$)&&i.__esModule?i.default:i,"@react-aria/overlays");var i;let a=(0,r.bE)(n,o.format("dismiss"));return x.createElement(U.T,null,x.createElement("button",{...a,tabIndex:-1,onClick:()=>{t&&t()},style:{width:1,height:1}}))}let q=[];function G(e){var t;return null===(t=e.filter((e=>e.getRootNode()instanceof ShadowRoot)))||void 0===t?void 0:t.map((e=>e.getRootNode()))}function W(e,t=document.body){let n=new Set(e),r=new Set,o=new WeakMap;const i=G(e);i.length>0&&e.forEach((e=>{let t=e;for(;t&&t!==document.body;)n.add(t),t=t.getRootNode()instanceof ShadowRoot?t.getRootNode().host:t.parentNode}));let a=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(t);let t=e=>{if(n.has(e)||r.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),i=t(e);if(i===NodeFilter.FILTER_ACCEPT&&s(e),i!==NodeFilter.FILTER_REJECT){let e=o.nextNode();for(;null!=e;)s(e),e=o.nextNode()}},s=e=>{var t;let n=null!==(t=o.get(e))&&void 0!==t?t:0;e instanceof Element&&("true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),o.set(e,n+1)))};const l=e=>{let t=e.parentNode;t&&t.childNodes.forEach((t=>{t===e||n.has(t)||r.has(t)||s(t)}))};i.length>0&&e.forEach((e=>{let t=e;for(;t&&t!==document.body;)l(t),t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode})),q.length&&q[q.length-1].disconnect(),a(t);let c=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some((e=>e.contains(t.target)))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),r.delete(e));for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&a(e):n.add(e)}}));i.length>0&&i.forEach((e=>{c.observe(e,{childList:!0,subtree:!0})})),c.observe(t,{childList:!0,subtree:!0});let u={observe(){c.observe(t,{childList:!0,subtree:!0})},disconnect(){c.disconnect()}};return q.push(u),()=>{c.disconnect(),i.length>0&&i.forEach((()=>{c.disconnect()}));for(let e of r){let t=o.get(e);1===t?(e.removeAttribute("aria-hidden"),o.delete(e)):o.set(e,t-1)}u===q[q.length-1]?(q.pop(),q.length&&q[q.length-1].observe()):q.splice(q.indexOf(u),1)}}function Y(e,t){let{triggerRef:n,popoverRef:o,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s,...l}=e,{overlayProps:c,underlayProps:u}=T({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s},o),{overlayProps:d,arrowProps:p,placement:h}=k({...l,targetRef:n,overlayRef:o,isOpen:t.isOpen,onClose:i?t.close:null});return O({isDisabled:i||!t.isOpen}),(0,r.bt)((()=>{if(t.isOpen&&!i&&o.current)return W([o.current])}),[i,t.isOpen,o]),{popoverProps:(0,r.dG)(c,d),arrowProps:p,underlayProps:u,placement:h}}const X=(0,x.createContext)({});function Q(){var e;return null!==(e=(0,x.useContext)(X))&&void 0!==e?e:{}}const J=x.createContext(null);function ee(e){let t=(0,H.Av)(),{portalContainer:n=(t?null:document.body),isExiting:r}=e,[o,i]=(0,x.useState)(!1),a=(0,x.useMemo)((()=>({contain:o,setContain:i})),[o,i]),{getContainer:s}=Q();if(!e.portalContainer&&s&&(n=s()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=x.createElement(P.MT,{restoreFocus:!0,contain:o&&!r},l)),l=x.createElement(J.Provider,{value:a},x.createElement(D.mk,null,l)),V.createPortal(l,n)}function te(){let e=(0,x.useContext)(J),t=null==e?void 0:e.setContain;(0,r.bt)((()=>{null==t||t(!0)}),[t])}function ne(e,t,n){let{overlayProps:o,underlayProps:i}=T({...e,isOpen:t.isOpen,onClose:t.close},n);return O({isDisabled:!t.isOpen}),te(),(0,x.useEffect)((()=>{if(t.isOpen)return W([n.current])}),[t.isOpen,n]),{modalProps:(0,r.dG)(o),underlayProps:i}}},22423:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(13807),o=n(31111),i=n(44608);function a(e){let{value:t=0,minValue:n=0,maxValue:a=100,valueLabel:s,isIndeterminate:l,formatOptions:c={style:"percent"}}=e,u=(0,r.zL)(e,{labelable:!0}),{labelProps:d,fieldProps:p}=(0,o.N)({...e,labelElementType:"span"});t=(0,r.uZ)(t,n,a);let h=(t-n)/(a-n),f=(0,i.Ux)(c);if(!l&&!s){let e="percent"===c.style?h:t;s=f.format(e)}return{progressBarProps:(0,r.dG)(u,{...p,"aria-valuenow":l?void 0:t,"aria-valuemin":n,"aria-valuemax":a,"aria-valuetext":l?void 0:s,role:"progressbar"}),labelProps:d}}},34263:(e,t,n)=>{"use strict";n.d(t,{x:()=>l,a:()=>d});const r=new WeakMap;var o=n(13807),i=n(21722),a=n(57992),s=n(14147);function l(e,t,n){let{value:l,children:c,"aria-label":u,"aria-labelledby":d}=e;const p=e.isDisabled||t.isDisabled;null!=c||(null!=u||null!=d)||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let h=t.selectedValue===l,{pressProps:f,isPressed:m}=(0,s.r7)({isDisabled:p}),{pressProps:g,isPressed:v}=(0,s.r7)({isDisabled:p,onPress(){t.setSelectedValue(l)}}),{focusableProps:y}=(0,i.kc)((0,o.dG)(e,{onFocus:()=>t.setLastFocusedValue(l)}),n),b=(0,o.dG)(f,y),w=(0,o.zL)(e,{labelable:!0}),x=-1;null!=t.selectedValue?t.selectedValue===l&&(x=0):t.lastFocusedValue!==l&&null!=t.lastFocusedValue||(x=0),p&&(x=void 0);let{name:_,descriptionId:S,errorMessageId:C,validationBehavior:E}=r.get(t);return(0,o.y$)(n,t.selectedValue,t.setSelectedValue),(0,a.Q)({validationBehavior:E},t,n),{labelProps:(0,o.dG)(g,{onClick:e=>e.preventDefault()}),inputProps:(0,o.dG)(w,{...b,type:"radio",name:_,tabIndex:x,disabled:p,required:t.isRequired&&"native"===E,checked:h,value:l,onChange:e=>{e.stopPropagation(),t.setSelectedValue(l)},"aria-describedby":[e["aria-describedby"],t.isInvalid?C:null,S].filter(Boolean).join(" ")||void 0}),isDisabled:p,isSelected:h,isPressed:m||v}}var c=n(31111),u=n(44608);function d(e,t){let{name:n,isReadOnly:a,isRequired:l,isDisabled:d,orientation:p="vertical",validationBehavior:h="aria"}=e,{direction:f}=(0,u.bU)(),{isInvalid:m,validationErrors:g,validationDetails:v}=t.displayValidation,{labelProps:y,fieldProps:b,descriptionProps:w,errorMessageProps:x}=(0,c.U)({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||g}),_=(0,o.zL)(e,{labelable:!0}),{focusWithinProps:S}=(0,s.L_)({onBlurWithin(n){var r;null===(r=e.onBlur)||void 0===r||r.call(e,n),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),C=(0,o.Me)(n);return r.set(t,{name:C,descriptionId:w.id,errorMessageId:x.id,validationBehavior:h}),{radioGroupProps:(0,o.dG)(_,{role:"radiogroup",onKeyDown:e=>{let n;switch(e.key){case"ArrowRight":n="rtl"===f&&"vertical"!==p?"prev":"next";break;case"ArrowLeft":n="rtl"===f&&"vertical"!==p?"next":"prev";break;case"ArrowDown":n="next";break;case"ArrowUp":n="prev";break;default:return}e.preventDefault();let r,o=(0,i.QL)(e.currentTarget,{from:e.target});"next"===n?(r=o.nextNode(),r||(o.currentNode=e.currentTarget,r=o.firstChild())):(r=o.previousNode(),r||(o.currentNode=e.currentTarget,r=o.lastChild())),r&&(r.focus(),t.setSelectedValue(r.value))},"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":a||void 0,"aria-required":l||void 0,"aria-disabled":d||void 0,"aria-orientation":p,...b,...S}),labelProps:y,descriptionProps:w,errorMessageProps:x,isInvalid:m,validationErrors:g,validationDetails:v}}},60918:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var r;r={"ar-AE":{"Clear search":"مسح البحث"},"bg-BG":{"Clear search":"Изчистване на търсене"},"cs-CZ":{"Clear search":"Vymazat hledání"},"da-DK":{"Clear search":"Ryd søgning"},"de-DE":{"Clear search":"Suche zurücksetzen"},"el-GR":{"Clear search":"Απαλοιφή αναζήτησης"},"en-US":{"Clear search":"Clear search"},"es-ES":{"Clear search":"Borrar búsqueda"},"et-EE":{"Clear search":"Tühjenda otsing"},"fi-FI":{"Clear search":"Tyhjennä haku"},"fr-FR":{"Clear search":"Effacer la recherche"},"he-IL":{"Clear search":"נקה חיפוש"},"hr-HR":{"Clear search":"Obriši pretragu"},"hu-HU":{"Clear search":"Keresés törlése"},"it-IT":{"Clear search":"Cancella ricerca"},"ja-JP":{"Clear search":"検索をクリア"},"ko-KR":{"Clear search":"검색 지우기"},"lt-LT":{"Clear search":"Išvalyti iešką"},"lv-LV":{"Clear search":"Notīrīt meklēšanu"},"nb-NO":{"Clear search":"Tøm søk"},"nl-NL":{"Clear search":"Zoekactie wissen"},"pl-PL":{"Clear search":"Wyczyść zawartość wyszukiwania"},"pt-BR":{"Clear search":"Limpar pesquisa"},"pt-PT":{"Clear search":"Limpar pesquisa"},"ro-RO":{"Clear search":"Ştergeţi căutarea"},"ru-RU":{"Clear search":"Очистить поиск"},"sk-SK":{"Clear search":"Vymazať vyhľadávanie"},"sl-SI":{"Clear search":"Počisti iskanje"},"sr-SP":{"Clear search":"Obriši pretragu"},"sv-SE":{"Clear search":"Rensa sökning"},"tr-TR":{"Clear search":"Aramayı temizle"},"uk-UA":{"Clear search":"Очистити пошук"},"zh-CN":{"Clear search":"清除搜索"},"zh-TW":{"Clear search":"清除搜尋條件"}};var o=n(13807),i=n(44608),a=n(96382);function s(e,t,n){let s=(0,i.qb)((l=r)&&l.__esModule?l.default:l,"@react-aria/searchfield");var l;let{isDisabled:c,isReadOnly:u,onSubmit:d,onClear:p,type:h="search"}=e,{labelProps:f,inputProps:m,descriptionProps:g,errorMessageProps:v,...y}=(0,a.E)({...e,value:t.value,onChange:t.setValue,onKeyDown:u?e.onKeyDown:(0,o.tS)((e=>{const n=e.key;"Enter"===n&&(c||u)&&e.preventDefault(),c||u||("Enter"===n&&d&&(e.preventDefault(),d(t.value)),"Escape"===n&&(""===t.value?e.continuePropagation():(t.setValue(""),p&&p())))}),e.onKeyDown),type:h},n);return{labelProps:f,inputProps:{...m,defaultValue:void 0},clearButtonProps:{"aria-label":s.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:c||u,onPress:()=>{t.setValue(""),p&&p()},onPressStart:()=>{var e;null===(e=n.current)||void 0===e||e.focus()}},descriptionProps:g,errorMessageProps:v,...y}}},99116:(e,t,n)=>{"use strict";n.d(t,{MG:()=>f,L7:()=>d});var r=n(13807),o=n(67294),i=n(16752),a=n(14147),s=n(44608),l=n(31111),c=n(54254);const u=new WeakMap;function d(e,t,n){let{keyboardDelegate:d,isDisabled:p,isRequired:h,name:f,validationBehavior:m="aria"}=e,g=(0,s.Xe)({usage:"search",sensitivity:"base"}),v=(0,o.useMemo)((()=>d||new(0,i.dp)(t.collection,t.disabledKeys,null,g)),[d,t.collection,t.disabledKeys,g]),{menuTriggerProps:y,menuProps:b}=(0,c.u4)({isDisabled:p,type:"listbox"},t,n),{typeSelectProps:w}=(0,i.ip)({keyboardDelegate:v,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{isInvalid:x,validationErrors:_,validationDetails:S}=t.displayValidation,{labelProps:C,fieldProps:E,descriptionProps:k,errorMessageProps:z}=(0,l.U)({...e,labelElementType:"span",isInvalid:x,errorMessage:e.errorMessage||_});w.onKeyDown=w.onKeyDownCapture,delete w.onKeyDownCapture;let P=(0,r.zL)(e,{labelable:!0}),D=(0,r.dG)(w,y,E),A=(0,r.Me)();return u.set(t,{isDisabled:p,isRequired:h,name:f,validationBehavior:m}),{labelProps:{...C,onClick:()=>{e.isDisabled||(n.current.focus(),(0,a._w)("keyboard"))}},triggerProps:(0,r.dG)(P,{...D,isDisabled:p,onKeyDown:(0,r.tS)(D.onKeyDown,(e=>{switch(e.key){case"ArrowLeft":{e.preventDefault();let n=null!=t.selectedKey?v.getKeyAbove(t.selectedKey):v.getFirstKey();n&&t.setSelectedKey(n);break}case"ArrowRight":{e.preventDefault();let n=null!=t.selectedKey?v.getKeyBelow(t.selectedKey):v.getFirstKey();n&&t.setSelectedKey(n);break}}}),e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[A,D["aria-labelledby"],D["aria-label"]&&!D["aria-labelledby"]?D.id:null].filter(Boolean).join(" "),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:A},menuProps:{...b,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:n=>{n.currentTarget.contains(n.relatedTarget)||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[E["aria-labelledby"],D["aria-label"]&&!E["aria-labelledby"]?D.id:null].filter(Boolean).join(" ")},descriptionProps:k,errorMessageProps:z,isInvalid:x,validationErrors:_,validationDetails:S}}var p=n(57992),h=n(4366);function f(e){let{state:t,triggerRef:n,label:i,name:s,isDisabled:l}=e,c=(0,o.useRef)(null),{containerProps:d,inputProps:f,selectProps:m}=function(e,t,n){let o=u.get(t)||{},{autoComplete:i,name:s=o.name,isDisabled:l=o.isDisabled}=e,{validationBehavior:c,isRequired:d}=o,f=(0,a.Kf)(),{visuallyHiddenProps:m}=(0,h.S)();var g;return(0,r.y$)(e.selectRef,t.selectedKey,t.setSelectedKey),(0,p.Q)({validationBehavior:c,focus:()=>n.current.focus()},t,e.selectRef),{containerProps:{...m,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{type:"text",tabIndex:null==f||t.isFocused||t.isOpen?-1:0,style:{fontSize:16},onFocus:()=>n.current.focus(),disabled:l},selectProps:{tabIndex:-1,autoComplete:i,disabled:l,required:"native"===c&&d,name:s,value:null!==(g=t.selectedKey)&&void 0!==g?g:"",onChange:e=>t.setSelectedKey(e.target.value)}}}({...e,selectRef:c},t,n);var g;return t.collection.size<=300?o.createElement("div",{...d,"data-testid":"hidden-select-container"},o.createElement("input",f),o.createElement("label",null,i,o.createElement("select",{...m,ref:c},o.createElement("option",null),[...t.collection.getKeys()].map((e=>{let n=t.collection.getItem(e);if("item"===n.type)return o.createElement("option",{key:n.key,value:n.key},n.textValue)}))))):s?o.createElement("input",{type:"hidden",autoComplete:m.autoComplete,name:s,disabled:l,value:null!==(g=t.selectedKey)&&void 0!==g?g:""}):null}},16752:(e,t,n)=>{"use strict";n.d(t,{dp:()=>v,gq:()=>p,Cs:()=>h,_t:()=>y,ip:()=>s});var r=n(13807);function o(e){return(0,r.ad)()?e.altKey:e.ctrlKey}function i(e){return(0,r.V5)()?e.metaKey:e.ctrlKey}var a=n(67294);function s(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=(0,a.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let i=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!i||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;" "===i&&o.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),o.search+=i;let a=t.getKeyForSearch(o.search,n.focusedKey);null==a&&(a=t.getKeyForSearch(o.search)),null!=a&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(o.timeout),o.timeout=setTimeout((()=>{o.search=""}),1e3)}:null}}}var l=n(73935),c=n(21722),u=n(14147),d=n(44608);function p(e){let{selectionManager:t,keyboardDelegate:n,ref:p,autoFocus:h=!1,shouldFocusWrap:f=!1,disallowEmptySelection:m=!1,disallowSelectAll:g=!1,selectOnFocus:v="replace"===t.selectionBehavior,disallowTypeAhead:y=!1,shouldUseVirtualFocus:b,allowsTabNavigation:w=!1,isVirtualized:x,scrollRef:_=p,linkBehavior:S="action"}=e,{direction:C}=(0,d.bU)(),E=(0,r.tv)(),k=(0,a.useRef)({top:0,left:0});(0,r.zX)(_,"scroll",x?null:()=>{k.current={top:_.current.scrollTop,left:_.current.scrollLeft}});const z=(0,a.useRef)(h);(0,a.useEffect)((()=>{if(z.current){let e=null;"first"===h&&(e=n.getFirstKey()),"last"===h&&(e=n.getLastKey());let r=t.selectedKeys;if(r.size)for(let n of r)if(t.canSelectItem(n)){e=n;break}t.setFocused(!0),t.setFocusedKey(e),null!=e||b||(0,c.ex)(p.current)}}),[]);let P=(0,a.useRef)(t.focusedKey);(0,a.useEffect)((()=>{if(t.isFocused&&null!=t.focusedKey&&(t.focusedKey!==P.current||z.current)&&(null==_?void 0:_.current)){let e=(0,u.Jz)(),n=p.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!n)return;("keyboard"===e||z.current)&&((0,r.zT)(_.current,n),"virtual"!==e&&(0,r.Gt)(n,{containingElement:p.current}))}t.isFocused&&null==t.focusedKey&&null!=P.current&&(0,c.ex)(p.current),P.current=t.focusedKey,z.current=!1})),(0,r.zX)(p,"react-aria-focus-scope-restore",(e=>{e.preventDefault(),t.setFocused(!0)}));let D,A={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!p.current.contains(e.target))return;const a=(n,r)=>{if(null!=n){if(t.isLink(n)&&"selection"===S&&v&&!o(e)){(0,l.flushSync)((()=>{t.setFocusedKey(n,r)}));let o=_.current.querySelector(`[data-key="${CSS.escape(n.toString())}"]`),i=t.getItemProps(n);return void E.open(o,e,i.href,i.routerOptions)}if(t.setFocusedKey(n,r),t.isLink(n)&&"override"===S)return;e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(n):v&&!o(e)&&t.replaceSelection(n)}};switch(e.key){case"ArrowDown":if(n.getKeyBelow){var s,u;e.preventDefault();let r=null!=t.focusedKey?n.getKeyBelow(t.focusedKey):null===(s=n.getFirstKey)||void 0===s?void 0:s.call(n);null==r&&f&&(r=null===(u=n.getFirstKey)||void 0===u?void 0:u.call(n,t.focusedKey)),a(r)}break;case"ArrowUp":if(n.getKeyAbove){var d,h;e.preventDefault();let r=null!=t.focusedKey?n.getKeyAbove(t.focusedKey):null===(d=n.getLastKey)||void 0===d?void 0:d.call(n);null==r&&f&&(r=null===(h=n.getLastKey)||void 0===h?void 0:h.call(n,t.focusedKey)),a(r)}break;case"ArrowLeft":if(n.getKeyLeftOf){var y,b;e.preventDefault();let r=n.getKeyLeftOf(t.focusedKey);null==r&&f&&(r="rtl"===C?null===(y=n.getFirstKey)||void 0===y?void 0:y.call(n,t.focusedKey):null===(b=n.getLastKey)||void 0===b?void 0:b.call(n,t.focusedKey)),a(r,"rtl"===C?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var x,k;e.preventDefault();let r=n.getKeyRightOf(t.focusedKey);null==r&&f&&(r="rtl"===C?null===(x=n.getLastKey)||void 0===x?void 0:x.call(n,t.focusedKey):null===(k=n.getFirstKey)||void 0===k?void 0:k.call(n,t.focusedKey)),a(r,"rtl"===C?"last":"first")}break;case"Home":if(n.getFirstKey){e.preventDefault();let r=n.getFirstKey(t.focusedKey,i(e));t.setFocusedKey(r),i(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):v&&t.replaceSelection(r)}break;case"End":if(n.getLastKey){e.preventDefault();let r=n.getLastKey(t.focusedKey,i(e));t.setFocusedKey(r),i(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):v&&t.replaceSelection(r)}break;case"PageDown":if(n.getKeyPageBelow){e.preventDefault(),a(n.getKeyPageBelow(t.focusedKey))}break;case"PageUp":if(n.getKeyPageAbove){e.preventDefault(),a(n.getKeyPageAbove(t.focusedKey))}break;case"a":i(e)&&"multiple"===t.selectionMode&&!0!==g&&(e.preventDefault(),t.selectAll());break;case"Escape":m||0===t.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case"Tab":if(!w){if(e.shiftKey)p.current.focus();else{let e,t,n=(0,c.QL)(p.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&(0,r.Ao)(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),null==t.focusedKey){let r=e=>{null!=e&&(t.setFocusedKey(e),v&&t.replaceSelection(e))},a=e.relatedTarget;var o,i;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?r(null!==(o=t.lastSelectedKey)&&void 0!==o?o:n.getLastKey()):r(null!==(i=t.firstSelectedKey)&&void 0!==i?i:n.getFirstKey())}else x||(_.current.scrollTop=k.current.top,_.current.scrollLeft=k.current.left);if(null!=t.focusedKey){let e=_.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(e){e.contains(document.activeElement)||(0,r.Ao)(e),"keyboard"===(0,u.Jz)()&&(0,r.Gt)(e,{containingElement:p.current})}}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){_.current===e.target&&e.preventDefault()}},{typeSelectProps:T}=s({keyboardDelegate:n,selectionManager:t});return y||(A=(0,r.dG)(T,A)),b||(D=null==t.focusedKey?0:-1),{collectionProps:{...A,tabIndex:D}}}function h(e){let{selectionManager:t,key:n,ref:s,shouldSelectOnPressUp:l,shouldUseVirtualFocus:d,focus:p,isDisabled:h,onAction:g,allowsDifferentPressOrigin:v,linkBehavior:y="action"}=e,b=(0,r.tv)(),w=e=>{if("keyboard"===e.pointerType&&o(e))t.toggleSelection(n);else{if("none"===t.selectionMode)return;if(t.isLink(n)){if("selection"===y){let r=t.getItemProps(n);return b.open(s.current,e,r.href,r.routerOptions),void t.setSelectedKeys(t.selectedKeys)}if("override"===y||"none"===y)return}"single"===t.selectionMode?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):e&&e.shiftKey?t.extendSelection(n):"toggle"===t.selectionBehavior||e&&(i(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(n):t.replaceSelection(n)}};(0,a.useEffect)((()=>{n===t.focusedKey&&t.isFocused&&!d&&(p?p():document.activeElement!==s.current&&(0,c.ex)(s.current))}),[s,n,t.focusedKey,t.childFocusStrategy,t.isFocused,d]),h=h||t.isDisabled(n);let x={};d||h?h&&(x.onMouseDown=e=>{e.preventDefault()}):x={tabIndex:n===t.focusedKey?0:-1,onFocus(e){e.target===s.current&&t.setFocusedKey(n)}};let _=t.isLink(n)&&"override"===y,S=t.isLink(n)&&"selection"!==y&&"none"!==y,C=!h&&t.canSelectItem(n)&&!_,E=(g||S)&&!h,k=E&&("replace"===t.selectionBehavior?!C:!C||t.isEmpty),z=E&&C&&"replace"===t.selectionBehavior,P=k||z,D=(0,a.useRef)(null),A=P&&C,T=(0,a.useRef)(!1),I=(0,a.useRef)(!1),M=e=>{if(g&&g(),S){let r=t.getItemProps(n);b.open(s.current,e,r.href,r.routerOptions)}},R={};l?(R.onPressStart=e=>{D.current=e.pointerType,T.current=A,"keyboard"!==e.pointerType||P&&!m()||w(e)},v?(R.onPressUp=k?null:e=>{"keyboard"!==e.pointerType&&C&&w(e)},R.onPress=k?M:null):R.onPress=e=>{if(k||z&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!f())return;M(e)}else"keyboard"!==e.pointerType&&C&&w(e)}):(R.onPressStart=e=>{D.current=e.pointerType,T.current=A,I.current=k,C&&("mouse"===e.pointerType&&!k||"keyboard"===e.pointerType&&(!E||m()))&&w(e)},R.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&P&&f()||"mouse"===e.pointerType&&I.current)&&(P?M(e):C&&w(e))}),x["data-key"]=n,R.preventFocusOnPress=d;let{pressProps:F,isPressed:N}=(0,u.r7)(R),O=z?e=>{"mouse"===D.current&&(e.stopPropagation(),e.preventDefault(),M(e))}:void 0,{longPressProps:j}=(0,u.TA)({isDisabled:!A,onLongPress(e){"touch"===e.pointerType&&(w(e),t.setSelectionBehavior("toggle"))}}),L=t.isLink(n)?e=>{r.nG.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,r.dG)(x,C||k?F:{},A?j:{},{onDoubleClick:O,onDragStartCapture:e=>{"touch"===D.current&&T.current&&e.preventDefault()},onClick:L}),isPressed:N,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:h,allowsSelection:C,hasAction:P}}function f(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function m(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}class g{getItemRect(e){let t=this.ref.current,n=null!=e?t.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!n)return null;let r=t.getBoundingClientRect(),o=n.getBoundingClientRect();return{x:o.left-r.left+t.scrollLeft,y:o.top-r.top+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;return{width:e.scrollWidth,height:e.scrollHeight}}getVisibleRect(){let e=this.ref.current;return{x:e.scrollLeft,y:e.scrollTop,width:e.offsetWidth,height:e.offsetHeight}}constructor(e){this.ref=e}}class v{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null===(t=e.props)||void 0===t?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}getNextKey(e){for(e=this.collection.getKeyAfter(e);null!=e;){let t=this.collection.getItem(e);if("item"===t.type&&!this.isDisabled(t))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);null!=e;){let t=this.collection.getItem(e);if("item"===t.type&&!this.isDisabled(t))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,t,n){let r=this.layoutDelegate.getItemRect(e);if(!r)return null;let o=r;do{e=t(e),r=this.layoutDelegate.getItemRect(e)}while(r&&n(o,r));return e}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,(e=>this.getNextKey(e)),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,(e=>this.getPreviousKey(e)),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){return"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,(e=>this.getNextColumn(e,"rtl"===this.direction)),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){return"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,(e=>this.getNextColumn(e,"ltr"===this.direction)),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();for(;null!=e;){let t=this.collection.getItem(e);if("item"===(null==t?void 0:t.type)&&!this.isDisabled(t))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){let t=this.collection.getItem(e);if("item"===t.type&&!this.isDisabled(t))return e;e=this.collection.getKeyBefore(e)}return null}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(!(0,r.a9)(t))return this.getFirstKey();if("horizontal"===this.orientation){let t=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>t;)n=null==(e=this.getKeyAbove(e))?null:this.layoutDelegate.getItemRect(e)}else{let t=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>t;)n=null==(e=this.getKeyAbove(e))?null:this.layoutDelegate.getItemRect(e)}return null!=e?e:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(!(0,r.a9)(t))return this.getLastKey();if("horizontal"===this.orientation){let t=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<t;)n=null==(e=this.getKeyBelow(e))?null:this.layoutDelegate.getItemRect(e)}else{let t=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<t;)n=null==(e=this.getKeyBelow(e))?null:this.layoutDelegate.getItemRect(e)}return null!=e?e:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=n.getItem(r),o=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(o,e))return r;r=this.getKeyBelow(r)}return null}constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new g(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new g(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function y(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:s}=e,l=(0,d.Xe)({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,u=(0,a.useMemo)((()=>i||new v({collection:n,disabledKeys:r,disabledBehavior:c,ref:o,collator:l,layoutDelegate:s})),[i,s,n,r,o,l,c]),{collectionProps:h}=p({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:h}}},15016:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});var r=n(13807);function o(e){let t,n=(0,r.zL)(e,{labelable:!0});return"vertical"===e.orientation&&(t="vertical"),"hr"!==e.elementType?{separatorProps:{...n,role:"separator","aria-orientation":t}}:{separatorProps:n}}},82137:(e,t,n)=>{"use strict";n.d(t,{o:()=>u,p:()=>p});const r=new WeakMap;function o(e,t){let n=r.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}var i=n(13807),a=n(67294),s=n(14147),l=n(31111),c=n(44608);function u(e,t,n){let{labelProps:u,fieldProps:d}=(0,l.N)(e),p="vertical"===e.orientation;var h;r.set(t,{id:null!==(h=u.id)&&void 0!==h?h:d.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:f}=(0,c.bU)(),{addGlobalListener:m,removeGlobalListener:g}=(0,i.xi)();const v=(0,a.useRef)(null),y="rtl"===f,b=(0,a.useRef)(null),{moveProps:w}=(0,s.r_)({onMoveStart(){b.current=null},onMove({deltaX:e,deltaY:r}){let{height:o,width:a}=n.current.getBoundingClientRect(),s=p?o:a;null==b.current&&(b.current=t.getThumbPercent(v.current)*s);let l=p?r:e;if((p||y)&&(l=-l),b.current+=l,null!=v.current&&n.current){const e=(0,i.uZ)(b.current/s,0,1);t.setThumbPercent(v.current,e)}},onMoveEnd(){null!=v.current&&(t.setThumbDragging(v.current,!1),v.current=null)}});let x=(0,a.useRef)(void 0),_=(r,o,i,a)=>{if(n.current&&!e.isDisabled&&t.values.every(((e,n)=>!t.isThumbDragging(n)))){let{height:e,width:s,top:l,left:c}=n.current.getBoundingClientRect();let u=((p?a:i)-(p?l:c))/(p?e:s);("rtl"===f||p)&&(u=1-u);let d,h=t.getPercentValue(u),g=t.values.findIndex((e=>h-e<0));if(0===g)d=g;else if(-1===g)d=t.values.length-1;else{let e=t.values[g-1],n=t.values[g];d=Math.abs(e-h)<Math.abs(n-h)?g-1:g}d>=0&&t.isThumbEditable(d)?(r.preventDefault(),v.current=d,t.setFocusedThumb(d),x.current=o,t.setThumbDragging(v.current,!0),t.setThumbValue(d,h),m(window,"mouseup",S,!1),m(window,"touchend",S,!1),m(window,"pointerup",S,!1)):v.current=null}},S=e=>{var n,r;(null!==(r=e.pointerId)&&void 0!==r?r:null===(n=e.changedTouches)||void 0===n?void 0:n[0].identifier)===x.current&&(null!=v.current&&(t.setThumbDragging(v.current,!1),v.current=null),g(window,"mouseup",S,!1),g(window,"touchend",S,!1),g(window,"pointerup",S,!1))};return"htmlFor"in u&&u.htmlFor&&(delete u.htmlFor,u.onClick=()=>{var e;null===(e=document.getElementById(o(t,0)))||void 0===e||e.focus(),(0,s._w)("keyboard")}),{labelProps:u,groupProps:{role:"group",...d},trackProps:(0,i.dG)({onMouseDown(e){0!==e.button||e.altKey||e.ctrlKey||e.metaKey||_(e,void 0,e.clientX,e.clientY)},onPointerDown(e){"mouse"===e.pointerType&&(0!==e.button||e.altKey||e.ctrlKey||e.metaKey)||_(e,e.pointerId,e.clientX,e.clientY)},onTouchStart(e){_(e,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},w),outputProps:{htmlFor:t.values.map(((e,n)=>o(t,n))).join(" "),"aria-live":"off"}}}var d=n(21722);function p(e,t){let{index:n=0,isRequired:u,validationState:p,isInvalid:h,trackRef:f,inputRef:m,orientation:g=t.orientation,name:v}=e,y=e.isDisabled||t.isDisabled,b="vertical"===g,{direction:w}=(0,c.bU)(),{addGlobalListener:x,removeGlobalListener:_}=(0,i.xi)(),S=r.get(t);var C;const{labelProps:E,fieldProps:k}=(0,l.N)({...e,id:o(t,n),"aria-labelledby":`${S.id} ${null!==(C=e["aria-labelledby"])&&void 0!==C?C:""}`.trim()}),z=t.values[n],P=(0,a.useCallback)((()=>{m.current&&(0,i.Ao)(m.current)}),[m]),D=t.focusedThumb===n;(0,a.useEffect)((()=>{D&&P()}),[D,P]);let A="rtl"===w,T=(0,a.useRef)(null),{keyboardProps:I}=(0,s.v5)({onKeyDown(e){let{getThumbMaxValue:r,getThumbMinValue:o,decrementThumb:i,incrementThumb:a,setThumbValue:s,setThumbDragging:l,pageSize:c}=t;if(/^(PageUp|PageDown|Home|End)$/.test(e.key)){switch(e.preventDefault(),l(n,!0),e.key){case"PageUp":a(n,c);break;case"PageDown":i(n,c);break;case"Home":s(n,o(n));break;case"End":s(n,r(n))}l(n,!1)}else e.continuePropagation()}}),{moveProps:M}=(0,s.r_)({onMoveStart(){T.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:e,deltaY:r,pointerType:o,shiftKey:a}){const{getThumbPercent:s,setThumbPercent:l,decrementThumb:c,incrementThumb:u,step:d,pageSize:p}=t;let{width:h,height:m}=f.current.getBoundingClientRect(),g=b?m:h;if(null==T.current&&(T.current=s(n)*g),"keyboard"===o)e>0&&A||e<0&&!A||r>0?c(n,a?p:d):u(n,a?p:d);else{let t=b?r:e;(b||A)&&(t=-t),T.current+=t,l(n,(0,i.uZ)(T.current/g,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!y);const{focusableProps:R}=(0,d.kc)((0,i.dG)(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),m);let F=(0,a.useRef)(void 0),N=e=>{P(),F.current=e,t.setThumbDragging(n,!0),x(window,"mouseup",O,!1),x(window,"touchend",O,!1),x(window,"pointerup",O,!1)},O=e=>{var r,o;(null!==(o=e.pointerId)&&void 0!==o?o:null===(r=e.changedTouches)||void 0===r?void 0:r[0].identifier)===F.current&&(P(),t.setThumbDragging(n,!1),_(window,"mouseup",O,!1),_(window,"touchend",O,!1),_(window,"pointerup",O,!1))},j=t.getThumbPercent(n);(b||"rtl"===w)&&(j=1-j);let L=y?{}:(0,i.dG)(I,M,{onMouseDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||N()},onPointerDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||N(e.pointerId)},onTouchStart:e=>{N(e.changedTouches[0].identifier)}});return(0,i.y$)(m,z,(e=>{t.setThumbValue(n,e)})),{inputProps:(0,i.dG)(R,k,{type:"range",tabIndex:y?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:z,name:v,disabled:y,"aria-orientation":g,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":u||void 0,"aria-invalid":h||"invalid"===p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[S["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[S["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:e=>{t.setThumbValue(n,parseFloat(e.target.value))}}),thumbProps:{...L,style:{position:"absolute",[b?"top":"left"]:100*j+"%",transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:E,isDragging:t.isThumbDragging(n),isDisabled:y,isFocused:D}}},65163:(e,t,n)=>{"use strict";n.d(t,{G:()=>l});var r;r={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Prázdné"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vacío"},"et-EE":{Empty:"Tühjenda"},"fi-FI":{Empty:"Tyhjä"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"Üres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Prázdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};var o=n(55260),i=n(67294),a=n(13807),s=n(44608);function l(e){const t=(0,i.useRef)(void 0);let{value:n,textValue:l,minValue:c,maxValue:u,isDisabled:d,isReadOnly:p,isRequired:h,onIncrement:f,onIncrementPage:m,onDecrement:g,onDecrementPage:v,onDecrementToMin:y,onIncrementToMax:b}=e;const w=(0,s.qb)((x=r)&&x.__esModule?x.default:x,"@react-aria/spinbutton");var x;const _=()=>clearTimeout(t.current);(0,i.useEffect)((()=>()=>_()),[]);let S=(0,i.useRef)(!1),C=()=>{S.current=!0},E=()=>{S.current=!1},k=""===l?w.format("Empty"):(l||`${n}`).replace("-","−");(0,i.useEffect)((()=>{S.current&&((0,o.gb)("assertive"),(0,o.xQ)(k,"assertive"))}),[k]);const z=(0,a.iW)((e=>{_(),null==f||f(),t.current=window.setTimeout((()=>{(void 0===u||isNaN(u)||void 0===n||isNaN(n)||n<u)&&z(60)}),e)})),P=(0,a.iW)((e=>{_(),null==g||g(),t.current=window.setTimeout((()=>{(void 0===c||isNaN(c)||void 0===n||isNaN(n)||n>c)&&P(60)}),e)}));let D=e=>{e.preventDefault()},{addGlobalListener:A,removeAllGlobalListeners:T}=(0,a.xi)();return{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===n||isNaN(n)?void 0:n,"aria-valuetext":k,"aria-valuemin":c,"aria-valuemax":u,"aria-disabled":d||void 0,"aria-readonly":p||void 0,"aria-required":h||void 0,onKeyDown:e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||p))switch(e.key){case"PageUp":if(m){e.preventDefault(),null==m||m();break}case"ArrowUp":case"Up":f&&(e.preventDefault(),null==f||f());break;case"PageDown":if(v){e.preventDefault(),null==v||v();break}case"ArrowDown":case"Down":g&&(e.preventDefault(),null==g||g());break;case"Home":y&&(e.preventDefault(),null==y||y());break;case"End":b&&(e.preventDefault(),null==b||b())}},onFocus:C,onBlur:E},incrementButtonProps:{onPressStart:()=>{z(400),A(window,"contextmenu",D)},onPressEnd:()=>{_(),T()},onFocus:C,onBlur:E},decrementButtonProps:{onPressStart:()=>{P(400),A(window,"contextmenu",D)},onPressEnd:()=>{_(),T()},onFocus:C,onBlur:E}}}},97480:(e,t,n)=>{"use strict";n.d(t,{Av:()=>f,gP:()=>u});var r=n(67294);const o={prefix:String(Math.round(1e10*Math.random())),current:0},i=r.createContext(o),a=r.createContext(!1);let s=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),l=new WeakMap;function c(e=!1){let t=(0,r.useContext)(i),n=(0,r.useRef)(null);if(null===n.current&&!e){var o,a;let e=null===(a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===a||null===(o=a.ReactCurrentOwner)||void 0===o?void 0:o.current;if(e){let n=l.get(e);null==n?l.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,l.delete(e))}n.current=++t.current}return n.current}const u="function"==typeof r.useId?function(e){let t=r.useId(),[n]=(0,r.useState)(f());return e||`${n?"react-aria":`react-aria${o.prefix}`}-${t}`}:function(e){let t=(0,r.useContext)(i);t!==o||s||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=c(!!e),a=`react-aria${t.prefix}`;return e||`${a}-${n}`};function d(){return!1}function p(){return!0}function h(e){return()=>{}}function f(){return"function"==typeof r.useSyncExternalStore?r.useSyncExternalStore(h,d,p):(0,r.useContext)(a)}},43032:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var r=n(22607);function o(e,t,n){let{labelProps:o,inputProps:i,isSelected:a,isPressed:s,isDisabled:l,isReadOnly:c}=(0,r.O)(e,t,n);return{labelProps:o,inputProps:{...i,role:"switch",checked:a},isSelected:a,isPressed:s,isDisabled:l,isReadOnly:c}}},21965:(e,t,n)=>{"use strict";new WeakMap;n(56406),n(85187);n(55260),n(13807),n(62651),n(44608),n(67294);n(21722),n(14147);n(4366)},85634:(e,t,n)=>{"use strict";n.d(t,{xD:()=>s,hp:()=>h,WE:()=>c});const r=new WeakMap;function o(e,t,n){return"string"==typeof t&&(t=t.replace(/\s+/g,"")),`${r.get(e)}-${n}-${t}`}var i=n(13807),a=n(16752);function s(e,t,n){let{key:r,isDisabled:s,shouldSelectOnPressUp:l}=e,{selectionManager:c,selectedKey:u}=t,d=r===u,p=s||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:h,isPressed:f}=(0,a.Cs)({selectionManager:c,key:r,ref:n,isDisabled:p,shouldSelectOnPressUp:l,linkBehavior:"selection"}),m=o(t,r,"tab"),g=o(t,r,"tabpanel"),{tabIndex:v}=h,y=t.collection.getItem(r),b=(0,i.zL)(null==y?void 0:y.props,{labelable:!0});delete b.id;let w=(0,i.eY)(null==y?void 0:y.props);return{tabProps:(0,i.dG)(b,w,h,{id:m,"aria-selected":d,"aria-disabled":p||void 0,"aria-controls":d?g:void 0,tabIndex:p?void 0:v,role:"tab"}),isSelected:d,isDisabled:p,isPressed:f}}var l=n(21722);function c(e,t,n){let r=(0,l.pu)(n)?void 0:0;var a;const s=o(t,null!==(a=e.id)&&void 0!==a?a:null==t?void 0:t.selectedKey,"tabpanel"),c=(0,i.bE)({...e,id:s,"aria-labelledby":o(t,null==t?void 0:t.selectedKey,"tab")});return{tabPanelProps:(0,i.dG)(c,{tabIndex:r,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class u{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}getKeyAbove(e){return this.getPreviousKey(e)}getKeyBelow(e){return this.getNextKey(e)}isDisabled(e){var t,n;return this.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getNextKey(e){do{null==(e=this.collection.getKeyAfter(e))&&(e=this.collection.getFirstKey())}while(this.isDisabled(e));return e}getPreviousKey(e){do{null==(e=this.collection.getKeyBefore(e))&&(e=this.collection.getLastKey())}while(this.isDisabled(e));return e}constructor(e,t,n,r=new Set){this.collection=e,this.flipDirection="rtl"===t&&"horizontal"===n,this.disabledKeys=r}}var d=n(44608),p=n(67294);function h(e,t,n){let{orientation:o="horizontal",keyboardActivation:s="automatic"}=e,{collection:l,selectionManager:c,disabledKeys:h}=t,{direction:f}=(0,d.bU)(),m=(0,p.useMemo)((()=>new u(l,f,o,h)),[l,h,o,f]),{collectionProps:g}=(0,a.gq)({ref:n,selectionManager:c,keyboardDelegate:m,selectOnFocus:"automatic"===s,disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),v=(0,i.Me)();r.set(t,v);let y=(0,i.bE)({...e,id:v});return{tabListProps:{...(0,i.dG)(g,y),role:"tablist","aria-orientation":o,tabIndex:void 0}}}},59743:(e,t,n)=>{"use strict";n.d(t,{E:()=>h,H:()=>d});var r=n(13807),o=n(16752),i=n(67294),a=n(31111),s=n(14147),l=n(64669),c=n(44608);const u=new WeakMap;function d(e,t,n){let{direction:d}=(0,c.bU)(),p=e.keyboardDelegate||new(0,o.dp)({collection:t.collection,ref:n,orientation:"horizontal",direction:d,disabledKeys:t.disabledKeys,disabledBehavior:t.selectionManager.disabledBehavior}),{labelProps:h,fieldProps:f,descriptionProps:m,errorMessageProps:g}=(0,a.U)({...e,labelElementType:"span"}),{gridProps:v}=(0,l.c)({...e,...f,keyboardDelegate:p,shouldFocusWrap:!0,linkBehavior:"override"},t,n),[y,b]=(0,i.useState)(!1),{focusWithinProps:w}=(0,s.L_)({onFocusWithinChange:b}),x=(0,r.zL)(e),_=(0,i.useRef)(t.collection.size);return(0,i.useEffect)((()=>{n.current&&_.current>0&&0===t.collection.size&&y&&n.current.focus(),_.current=t.collection.size}),[t.collection.size,y,n]),u.set(t,{onRemove:e.onRemove}),{gridProps:(0,r.dG)(v,x,{role:t.collection.size?"grid":null,"aria-atomic":!1,"aria-relevant":"additions","aria-live":y?"polite":"off",...w,...f}),labelProps:h,descriptionProps:m,errorMessageProps:g}}var p;function h(e,t,n){let{item:o}=e,i=(0,c.qb)((a=p)&&a.__esModule?a.default:a,"@react-aria/tag");var a;let d=(0,r.Me)(),{onRemove:h}=u.get(t)||{},{rowProps:f,gridCellProps:m,...g}=(0,l.Fb)({node:o},t,n);delete f.onKeyDownCapture;let{descriptionProps:v,...y}=g,b=(0,s.Kf)();"virtual"===b&&"undefined"!=typeof window&&"ontouchstart"in window&&(b="pointer");let w=!h||"keyboard"!==b&&"virtual"!==b?"":i.format("removeDescription"),x=(0,r.PK)(w),_=o.key===t.selectionManager.focusedKey,S=(0,r.zL)(o.props),C=(0,r.fU)(o.props);return{removeButtonProps:{"aria-label":i.format("removeButtonLabel"),"aria-labelledby":`${d} ${f.id}`,isDisabled:t.disabledKeys.has(o.key)||o.props.isDisabled,id:d,onPress:()=>h?h(new Set([o.key])):null,excludeFromTabOrder:!0},rowProps:(0,r.dG)(f,S,C,{tabIndex:_||null==t.selectionManager.focusedKey?0:-1,onKeyDown:h?e=>{"Delete"!==e.key&&"Backspace"!==e.key||(e.preventDefault(),t.selectionManager.isSelected(o.key)?null==h||h(new Set(t.selectionManager.selectedKeys)):null==h||h(new Set([o.key])))}:void 0,"aria-describedby":x["aria-describedby"]}),gridCellProps:(0,r.dG)(m,{"aria-errormessage":e["aria-errormessage"],"aria-label":e["aria-label"]}),...y,allowsRemoving:!!h}}p={"ar-AE":{removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."},"bg-BG":{removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."},"cs-CZ":{removeButtonLabel:"Odebrat",removeDescription:"Stisknutím klávesy Delete odeberete značku."},"da-DK":{removeButtonLabel:"Fjern",removeDescription:"Tryk på Slet for at fjerne tag."},"de-DE":{removeButtonLabel:"Entfernen",removeDescription:"Auf „Löschen“ drücken, um das Tag zu entfernen."},"el-GR":{removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."},"en-US":{removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"},"es-ES":{removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."},"et-EE":{removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."},"fi-FI":{removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."},"fr-FR":{removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’étiquette."},"he-IL":{removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."},"hr-HR":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."},"hu-HU":{removeButtonLabel:"Eltávolítás",removeDescription:"Nyomja meg a Delete billentyűt a címke eltávolításához."},"it-IT":{removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."},"ja-JP":{removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"},"ko-KR":{removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."},"lt-LT":{removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."},"lv-LV":{removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."},"nb-NO":{removeButtonLabel:"Fjern",removeDescription:"Trykk på Slett for å fjerne taggen."},"nl-NL":{removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."},"pl-PL":{removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."},"pt-BR":{removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."},"pt-PT":{removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."},"ro-RO":{removeButtonLabel:"Îndepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."},"ru-RU":{removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."},"sk-SK":{removeButtonLabel:"Odstrániť",removeDescription:"Ak chcete odstrániť značku, stlačte kláves Delete."},"sl-SI":{removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."},"sr-SP":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."},"sv-SE":{removeButtonLabel:"Ta bort",removeDescription:"Tryck på Radera för att ta bort taggen."},"tr-TR":{removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak için Sil tuşuna basın."},"uk-UA":{removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."},"zh-CN":{removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"},"zh-TW":{removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"}}},96382:(e,t,n)=>{"use strict";n.d(t,{h:()=>p,E:()=>u});var r=n(67294),o=n(13807),i=n(80539),a=n(31111),s=n(21722),l=n(57992),c=n(35998);function u(e,t){let{inputElementType:n="input",isDisabled:u=!1,isRequired:d=!1,isReadOnly:p=!1,type:h="text",validationBehavior:f="aria"}=e,[m,g]=(0,i.zk)(e.value,e.defaultValue||"",e.onChange),{focusableProps:v}=(0,s.kc)(e,t),y=(0,c.Q3)({...e,value:m}),{isInvalid:b,validationErrors:w,validationDetails:x}=y.displayValidation,{labelProps:_,fieldProps:S,descriptionProps:C,errorMessageProps:E}=(0,a.U)({...e,isInvalid:b,errorMessage:e.errorMessage||w}),k=(0,o.zL)(e,{labelable:!0});const z={type:h,pattern:e.pattern};return(0,o.y$)(t,m,g),(0,l.Q)(e,y,t),(0,r.useEffect)((()=>{if(t.current instanceof(0,o.kR)(t.current).HTMLTextAreaElement){let e=t.current;Object.defineProperty(e,"defaultValue",{get:()=>e.value,set:()=>{},configurable:!0})}}),[t]),{labelProps:_,inputProps:(0,o.dG)(k,"input"===n?z:void 0,{disabled:u,readOnly:p,required:d&&"native"===f,"aria-required":d&&"aria"===f||void 0,"aria-invalid":b||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:m,onChange:e=>g(e.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...v,...S}),descriptionProps:C,errorMessageProps:E,isInvalid:b,validationErrors:w,validationDetails:x}}function d(){return"undefined"!=typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}function p(e,t,n){let i=(0,o.iW)((e=>{let r,o=n.current;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":r=o.value.slice(0,o.selectionStart)+o.value.slice(o.selectionEnd);break;case"deleteContentForward":r=o.selectionEnd===o.selectionStart?o.value.slice(0,o.selectionStart)+o.value.slice(o.selectionEnd+1):o.value.slice(0,o.selectionStart)+o.value.slice(o.selectionEnd);break;case"deleteContentBackward":r=o.selectionEnd===o.selectionStart?o.value.slice(0,o.selectionStart-1)+o.value.slice(o.selectionStart):o.value.slice(0,o.selectionStart)+o.value.slice(o.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":r=o.value.slice(o.selectionStart);break;default:null!=e.data&&(r=o.value.slice(0,o.selectionStart)+e.data+o.value.slice(o.selectionEnd))}null!=r&&t.validate(r)||e.preventDefault()}));(0,r.useEffect)((()=>{if(!d())return;let e=n.current;return e.addEventListener("beforeinput",i,!1),()=>{e.removeEventListener("beforeinput",i,!1)}}),[n,i]);let a=d()?null:e=>{let n=e.target.value.slice(0,e.target.selectionStart)+e.data+e.target.value.slice(e.target.selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:s,inputProps:l,descriptionProps:c,errorMessageProps:p,...h}=u(e,n),f=(0,r.useRef)(null);return{inputProps:(0,o.dG)(l,{onBeforeInput:a,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;f.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:o}=f.current;n.current.value=e,n.current.setSelectionRange(r,o),t.setInputValue(e)}}}),labelProps:s,descriptionProps:c,errorMessageProps:p,...h}}},22607:(e,t,n)=>{"use strict";n.d(t,{O:()=>a});var r=n(13807),o=n(21722),i=n(14147);function a(e,t,n){let{isDisabled:a=!1,isReadOnly:s=!1,value:l,name:c,children:u,"aria-label":d,"aria-labelledby":p,validationState:h="valid",isInvalid:f}=e;null!=u||(null!=d||null!=p)||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:m,isPressed:g}=(0,i.r7)({isDisabled:a}),{pressProps:v,isPressed:y}=(0,i.r7)({isDisabled:a||s,onPress(){t.toggle()}}),{focusableProps:b}=(0,o.kc)(e,n),w=(0,r.dG)(m,b),x=(0,r.zL)(e,{labelable:!0});return(0,r.y$)(n,t.isSelected,t.setSelected),{labelProps:(0,r.dG)(v,{onClick:e=>e.preventDefault()}),inputProps:(0,r.dG)(x,{"aria-invalid":f||"invalid"===h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":s||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:a,...null==l?{}:{value:l},name:c,type:"checkbox",...w}),isSelected:t.isSelected,isPressed:g||y,isDisabled:a,isReadOnly:s,isInvalid:f||"invalid"===h}}},83040:(e,t,n)=>{"use strict";n.d(t,{l:()=>i,Q:()=>l});var r=n(13807),o=n(14147);function i(e,t){let n=(0,r.zL)(e,{labelable:!0}),{hoverProps:i}=(0,o.XI)({onHoverStart:()=>null==t?void 0:t.open(!0),onHoverEnd:()=>null==t?void 0:t.close()});return{tooltipProps:(0,r.dG)(n,i,{role:"tooltip"})}}var a=n(67294),s=n(21722);function l(e,t,n){let{isDisabled:i,trigger:l}=e,c=(0,r.Me)(),u=(0,a.useRef)(!1),d=(0,a.useRef)(!1),p=()=>{(u.current||d.current)&&t.open(d.current)},h=e=>{u.current||d.current||t.close(e)};(0,a.useEffect)((()=>{let e=e=>{n&&n.current&&"Escape"===e.key&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}}),[n,t]);let f=()=>{d.current=!1,u.current=!1,h(!0)},{hoverProps:m}=(0,o.XI)({isDisabled:i,onHoverStart:()=>{"focus"!==l&&("pointer"===(0,o.Jz)()?u.current=!0:u.current=!1,p())},onHoverEnd:()=>{"focus"!==l&&(d.current=!1,u.current=!1,h())}}),{focusableProps:g}=(0,s.kc)({isDisabled:i,onFocus:()=>{(0,o.E)()&&(d.current=!0,p())},onBlur:()=>{d.current=!1,u.current=!1,h(!0)}},n);return{triggerProps:{"aria-describedby":t.isOpen?c:void 0,...(0,r.dG)(g,m,{onPointerDown:f,onKeyDown:f})},tooltipProps:{id:c}}}},13807:(e,t,n)=>{"use strict";n.d(t,{tS:()=>h,uZ:()=>ye.uZ,zL:()=>k,Ao:()=>z,Gf:()=>y,r3:()=>f,kR:()=>m,Q5:()=>v,k3:()=>g,rP:()=>ie,Dt:()=>L,ad:()=>N,gn:()=>F,zc:()=>R,IN:()=>M,V5:()=>I,a9:()=>oe,Zj:()=>fe,cr:()=>me,Pf:()=>O,dG:()=>x,nG:()=>$,QB:()=>X,zT:()=>de,Gt:()=>he,b0:()=>H,vE:()=>ge,PK:()=>ce,iW:()=>i,zX:()=>ue,y$:()=>ve,xi:()=>Q,Me:()=>u,bE:()=>J,bt:()=>o,eY:()=>q,B3:()=>ee,yU:()=>ne,tv:()=>V,mp:()=>p,lE:()=>re,fU:()=>Z,rf:()=>te});var r=n(67294);const o="undefined"!=typeof document?r.useLayoutEffect:()=>{};function i(e){const t=(0,r.useRef)(null);return o((()=>{t.current=e}),[e]),(0,r.useCallback)(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}function a(e){let[t,n]=(0,r.useState)(e),a=(0,r.useRef)(null),s=i((()=>{if(!a.current)return;let e=a.current.next();e.done?a.current=null:t===e.value?s():n(e.value)}));o((()=>{a.current&&s()}));let l=i((e=>{a.current=e(t),s()}));return[t,l]}var s=n(97480);let l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),c=new Map;function u(e){let[t,n]=(0,r.useState)(e),i=(0,r.useRef)(null),a=(0,s.gP)(t),u=(0,r.useCallback)((e=>{i.current=e}),[]);return l&&c.set(a,u),o((()=>{let e=a;return()=>{c.delete(e)}}),[a]),(0,r.useEffect)((()=>{let e=i.current;e&&(i.current=null,n(e))})),a}function d(e,t){if(e===t)return e;let n=c.get(e);if(n)return n(t),t;let r=c.get(t);return r?(r(e),e):t}function p(e=[]){let t=u(),[n,i]=a(t),s=(0,r.useCallback)((()=>{i((function*(){yield t,yield document.getElementById(t)?t:void 0}))}),[t,i]);return o(s,[t,s,...e]),n}function h(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const f=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},m=e=>{if(e&&"window"in e&&e.window===e)return e;const t=g(e);return t instanceof ShadowRoot?t.ownerDocument.defaultView||window:(null==t?void 0:t.defaultView)||window},g=e=>{if(!e)return document;const t=e.getRootNode?e.getRootNode():document;return e.isConnected?(Document,t):null},v=e=>{var t;return e instanceof ShadowRoot?null===(t=e.ownerDocument)||void 0===t?void 0:t.body:e.body},y=()=>{var e;let t=document.activeElement;for(;(null==t?void 0:t.shadowRoot)&&(null===(e=t.shadowRoot)||void 0===e?void 0:e.activeElement);)t=t.shadowRoot.activeElement;return t};function b(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=b(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const w=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=b(e))&&(r&&(r+=" "),r+=t);return r};function x(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=h(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=d(n,o):t[e]=void 0!==o?o:n:t[e]=w(n,o)}}return t}const _=new Set(["id"]),S=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),C=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),E=/^(data-.*)$/;function k(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(_.has(t)||n&&S.has(t)||r&&C.has(t)||(null==o?void 0:o.has(t))||E.test(t))&&(i[t]=e[t]);return i}function z(e){if(function(){if(null==P){P=!1;try{document.createElement("div").focus({get preventScroll(){return P=!0,!0}})}catch(e){}}return P}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft});return n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let P=null;function D(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function A(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function T(e){let t=null;return()=>(null==t&&(t=e()),t)}const I=T((function(){return A(/^Mac/i)})),M=T((function(){return A(/^iPhone/i)})),R=T((function(){return A(/^iPad/i)||I()&&navigator.maxTouchPoints>1})),F=T((function(){return M()||R()})),N=T((function(){return I()||F()})),O=T((function(){return D(/AppleWebKit/i)&&!j()})),j=T((function(){return D(/Chrome/i)})),L=T((function(){return D(/Android/i)})),B=T((function(){return D(/Firefox/i)})),K=(0,r.createContext)({isNative:!0,open:function(e,t){U(e,(e=>$(e,t)))},useHref:e=>e});function V(){return(0,r.useContext)(K)}function H(e,t){let n=e.getAttribute("target");return!(n&&"_self"!==n||e.origin!==location.origin||e.hasAttribute("download")||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey)}function $(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;B()&&(null===(o=window.event)||void 0===o||null===(r=o.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(I()?i=!0:a=!0);let c=O()&&I()&&!R()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});$.isOpening=n,z(e),e.dispatchEvent(c),$.isOpening=!1}function U(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function Z(e){let t=V();return{"data-href":e.href?t.useHref(e.href):void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function q(e){let t=V();return{href:(null==e?void 0:e.href)?t.useHref(null==e?void 0:e.href):void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}$.isOpening=!1;let G=new Map,W=new Set;function Y(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=G.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),G.delete(n.target)),0===G.size)){for(let e of W)e();W.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let r=G.get(n.target);r||(r=new Set,G.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function X(e){requestAnimationFrame((()=>{0===G.size?e():W.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?Y():document.addEventListener("DOMContentLoaded",Y));function Q(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)(((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,r,o)}),[]),n=(0,r.useCallback)(((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),o=(0,r.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,r.useEffect)((()=>o),[o]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}function J(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=u(n),o&&r){let e=new Set([n,...o.trim().split(/\s+/)]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return r||o||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function ee(e){const t=(0,r.useRef)(null);return(0,r.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}function te(e,t){const n=(0,r.useRef)(!0),o=(0,r.useRef)(null);(0,r.useEffect)((()=>(n.current=!0,()=>{n.current=!1})),[]),(0,r.useEffect)((()=>{n.current?n.current=!1:o.current&&!t.some(((e,t)=>!Object.is(e,o[t])))||e(),o.current=t}),t)}function ne(e){const{ref:t,box:n,onResize:o}=e;(0,r.useEffect)((()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)};{const t=new window.ResizeObserver((e=>{e.length&&o()}));return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}}}),[o,t,n])}function re(e,t){o((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function oe(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function ie(e,t){let n=e;for(oe(n,t)&&(n=n.parentElement);n&&!oe(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ae(e,t){const n=[];for(;e&&e!==document.documentElement;)oe(e,t)&&n.push(e),e=e.parentElement;return n}"undefined"!=typeof document&&window.visualViewport;let se=0;const le=new Map;function ce(e){let[t,n]=(0,r.useState)();return o((()=>{if(!e)return;let t=le.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+se++;n(r);let o=document.createElement("div");o.id=r,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},le.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),le.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}function ue(e,t,n,o){let a=i(n),s=null==n;(0,r.useEffect)((()=>{if(s||!e.current)return;let n=e.current;return n.addEventListener(t,a,o),()=>{n.removeEventListener(t,a,o)}}),[e,t,o,s,a])}function de(e,t){let n=pe(e,t,"left"),r=pe(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c}=getComputedStyle(e),u=e.scrollLeft+parseInt(c,10),d=e.scrollTop+parseInt(l,10),p=u+e.clientWidth,h=d+e.clientHeight;n<=a?a=n-parseInt(c,10):n+o>p&&(a+=n+o-p),r<=d?s=r-parseInt(l,10):r+i>h&&(s+=r+i-h),e.scrollLeft=a,e.scrollTop=s}function pe(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function he(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(a).overflow){let t=ae(e);for(let n of t)de(n,e)}else{var n;let{left:a,top:s}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:l,top:c}=e.getBoundingClientRect();var r,o,i;if(Math.abs(a-l)>1||Math.abs(s-c)>1)null==t||null===(o=t.containingElement)||void 0===o||null===(r=o.scrollIntoView)||void 0===r||r.call(o,{block:"center",inline:"center"}),null===(i=e.scrollIntoView)||void 0===i||i.call(e,{block:"nearest"})}}}function fe(e){return!(0!==e.mozInputSource||!e.isTrusted)||(L()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function me(e){return!L()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}function ge(e,t){let n=(0,r.useRef)(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function ve(e,t,n){let o=(0,r.useRef)(t),a=i((()=>{n&&n(o.current)}));(0,r.useEffect)((()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",a),()=>{null==n||n.removeEventListener("reset",a)}}),[e,a])}var ye=n(80539)},4366:(e,t,n)=>{"use strict";n.d(t,{T:()=>l,S:()=>s});var r=n(13807),o=n(67294),i=n(14147);const a={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function s(e={}){let{style:t,isFocusable:n}=e,[r,s]=(0,o.useState)(!1),{focusWithinProps:l}=(0,i.L_)({isDisabled:!n,onFocusWithinChange:e=>s(e)});return{visuallyHiddenProps:{...l,style:(0,o.useMemo)((()=>r?t:t?{...a,...t}:a),[r])}}}function l(e){let{children:t,elementType:n="div",isFocusable:i,style:a,...l}=e,{visuallyHiddenProps:c}=s(e);return o.createElement(n,(0,r.dG)(l,c),t)}},4479:(e,t,n)=>{"use strict";n(19315);n(80539),n(67294)},1917:(e,t,n)=>{"use strict";n(35998),n(80539),n(67294)},56406:(e,t,n)=>{"use strict";n.d(t,{ck:()=>a,$0:()=>l,eg:()=>v,_P:()=>f,l8:()=>m,is:()=>w,s:()=>g,Kx:()=>h});var r=n(67294);function o(e){return null}function i(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&r.Children.count(e.children)>0)}o.getCollectionNode=function*(e,t){let{childItems:n,title:o,children:a}=e,s=e.title||e.children,l=e.textValue||("string"==typeof s?s:"")||e["aria-label"]||"";l||(null==t?void 0:t.suppressTextValueWarning)||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:s,textValue:l,"aria-label":e["aria-label"],hasChildNodes:i(e),*childNodes(){if(n)for(let e of n)yield{type:"item",value:e};else if(o){let e=[];r.Children.forEach(a,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let a=o;function s(e){return null}s.getCollectionNode=function*(e){let{children:t,title:n,items:o}=e;yield{type:"section",props:e,hasChildNodes:!0,rendered:n,"aria-label":e["aria-label"],*childNodes(){if("function"==typeof t){if(!o)throw new Error("props.children was a function but props.items is missing");for(let e of o)yield{type:"item",value:e,renderer:t}}else{let e=[];r.Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let l=s;class c{build(e,t){return this.context=t,u((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:n}=e;if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.items is missing");for(let n of e.items)yield*this.getFullNode({value:n},{renderer:t})}else{let e=[];r.Children.forEach(t,(t=>{e.push(t)}));let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${r}${t.key}`;let o=t.value;if(null!=o){var i;let e=null!==(i=o.key)&&void 0!==i?i:o.id;if(null==e)throw new Error("No key found for item");return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,o){let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context)))return n.index=e.index,n.parentKey=o?o.key:null,void(yield n);i=t.renderer(e.value)}if(r.isValidElement(i)){let r=i.type;if("function"!=typeof r&&"function"!=typeof r.getCollectionNode){let e="function"==typeof i.type?i.type.name:i.type;throw new Error(`Unknown element <${e}> in collection.`)}let a=r.getCollectionNode(i.props,this.context),s=e.index,l=a.next();for(;!l.done&&l.value;){let r=l.value;e.index=s;let c=r.key;c||(c=r.element?null:this.getKey(i,e,t,n));let u=[...this.getFullNode({...r,key:c,index:s,wrapper:d(e.wrapper,r.wrapper)},this.getChildState(t,r),n?`${n}${i.key}`:i.key,o)];for(let t of u){if(t.value=r.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${p(t.type)}> in <${p(o.type)}>. Only <${p(e.type)}> is supported.`);s++,yield t}l=a.next(u)}return}if(null==e.key)return;let a=this,s={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:e.value,level:o?o.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:u((function*(){if(!e.hasChildNodes)return;let n=0;for(let r of e.childNodes()){null!=r.key&&(r.key=`${s.key}${r.key}`),r.index=n;let e=a.getFullNode(r,a.getChildState(t,r),s.key,s);for(let t of e)n++,yield t}}))};yield s}constructor(){this.cache=new WeakMap}}function u(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function d(e,t){return e&&t?n=>e(t(n)):e||(t||void 0)}function p(e){return e[0].toUpperCase()+e.slice(1)}function h(e,t,n){let o=(0,r.useMemo)((()=>new c),[]),{children:i,items:a,collection:s}=e;return(0,r.useMemo)((()=>{if(s)return s;let e=o.build({children:i,items:a},n);return t(e)}),[o,i,a,s,n,t])}function f(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function m(e){return function(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}(e,0)}function g(e){let t;for(let n of e)t=n;return t}function v(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...y(e,t),t],o=[...y(e,n),n],i=r.slice(0,o.length).findIndex(((e,t)=>e!==o[t]));return-1!==i?(t=r[i],n=o[i],t.index-n.index):r.findIndex((e=>e===n))>=0?1:(o.findIndex((e=>e===t)),-1)}function y(e,t){let n=[];for(;null!=(null==t?void 0:t.parentKey);)t=e.getItem(t.parentKey),n.unshift(t);return n}const b=new WeakMap;function w(e){let t=b.get(e);if(null!=t)return t;t=0;let n=r=>{for(let o of r)"section"===o.type?n(f(o,e)):t++};return n(e),b.set(e,t),t}},1392:(e,t,n)=>{"use strict";n.d(t,{lu:()=>c,Eg:()=>C,jF:()=>M,Y3:()=>k});var r;r={"ar-AE":{alpha:"ألفا",black:"أسود",blue:"أزرق","blue purple":"أرجواني مزرق",brightness:"السطوع",brown:"بني","brown yellow":"أصفر بني",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"سماوي","cyan blue":"أزرق سماوي",dark:"داكن",gray:"رمادي",grayish:"مائل للرمادي",green:"أخضر","green cyan":"سماوي مخضر",hue:"درجة اللون",light:"فاتح",lightness:"الإضاءة",magenta:"أرجواني","magenta pink":"أرجواني وردي",orange:"برتقالي","orange yellow":"أصفر برتقالي",pale:"باهت",pink:"وردي","pink red":"أحمر وردي",purple:"أرجواني","purple magenta":"بنفسجي",red:"أحمر","red orange":"برتقالي محمر",saturation:"التشبع",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} شفاف`,"very dark":"داكن جدًا","very light":"فاتح جدًا",vibrant:"ساطع",white:"أبيض",yellow:"أصفر","yellow green":"أخضر مصفر"},"bg-BG":{alpha:"Алфа",black:"черно",blue:"Синьо","blue purple":"синьо лилаво",brightness:"Яркост",brown:"кафяво","brown yellow":"кафяво жълто",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"циан","cyan blue":"циан синьо",dark:"тъмно",gray:"сиво",grayish:"сивкав",green:"Зелено","green cyan":"зелен циан",hue:"Оттенък",light:"светло",lightness:"Лекота",magenta:"магента","magenta pink":"магента розово",orange:"оранжево","orange yellow":"оранжево жълто",pale:"бледо",pink:"розово","pink red":"розово червено",purple:"лилаво","purple magenta":"лилаво магента",red:"Червено","red orange":"червен портокал",saturation:"Наситеност",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} прозрачен`,"very dark":"много тъмно","very light":"много светло",vibrant:" ярко",white:"бяло",yellow:"жълто","yellow green":"жълто зелен"},"cs-CZ":{alpha:"Alfa",black:"černá",blue:"Modrá","blue purple":"modrofialová",brightness:"Jas",brown:"hnědá","brown yellow":"hnědožlutá",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tyrkysová","cyan blue":"tyrkysovomodrá",dark:"tmavá",gray:"šedá",grayish:"našedlá",green:"Zelená","green cyan":"zelenotyrkysová",hue:"Odstín",light:"světlá",lightness:"Světlost",magenta:"purpurová","magenta pink":"purpurově růžová",orange:"oranžová","orange yellow":"oranžovožlutá",pale:"bledá",pink:"růžová","pink red":"růžovočervená",purple:"fialová","purple magenta":"fialově purpurová",red:"Červená","red orange":"červenooranžová",saturation:"Sytost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} průhledné`,"very dark":"velmi tmavá","very light":"velmi světlá",vibrant:"zářivá",white:"bílá",yellow:"žlutá","yellow green":"žlutozelená"},"da-DK":{alpha:"Alfa",black:"sort",blue:"Blå","blue purple":"blålilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyan blå",dark:"mørk",gray:"grå",grayish:"grålig",green:"Grøn","green cyan":"grøn cyan",hue:"Tone",light:"lys",lightness:"Lyshed",magenta:"magenta","magenta pink":"magenta pink",orange:"orange","orange yellow":"orangegul",pale:"bleg",pink:"lyserød","pink red":"lyserødlig rød",purple:"lilla","purple magenta":"lilla magenta",red:"Rød","red orange":"rødorange",saturation:"Farvemætning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gennemsigtig`,"very dark":"meget mørk","very light":"meget lys",vibrant:"klar",white:"hvid",yellow:"gul","yellow green":"gulgrøn"},"de-DE":{alpha:"Alpha",black:"Schwarz",blue:"Blau","blue purple":"Blaulila",brightness:"Helligkeit",brown:"Braun","brown yellow":"Braungelb",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Cyanblau",dark:"dunkles",gray:"Grau",grayish:"gräuliches",green:"Grün","green cyan":"Grüncyan",hue:"Farbton",light:"helles",lightness:"Leuchtkraft",magenta:"Magenta","magenta pink":"Magentarosa",orange:"Orange","orange yellow":"Orangegelb",pale:"blasses",pink:"Rosa","pink red":"Rosarot",purple:"Lila","purple magenta":"Lilamagenta",red:"Rot","red orange":"Rotorange",saturation:"Sättigung",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, zu ${e.percentTransparent} transparent`,"very dark":"sehr dunkles","very light":"sehr helles",vibrant:"lebhaftes",white:"Weiß",yellow:"Gelb","yellow green":"Gelbgrün"},"el-GR":{alpha:"Άλφα",black:"μαύρο",blue:"Μπλε","blue purple":"μπλε μωβ",brightness:"Φωτεινότητα",brown:"καφέ","brown yellow":"καφέ κίτρινο",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"κυανό","cyan blue":"κυανό μπλε",dark:"σκούρο",gray:"γκρι",grayish:"γκριζωπό",green:"Πράσινο","green cyan":"πράσινο κυανό",hue:"Τόνος",light:"ανοιχτό",lightness:"Φωτεινότητα",magenta:"ματζέντα","magenta pink":"ματζέντα ροζ",orange:"πορτοκαλί","orange yellow":"πορτοκαλί κίτρινο",pale:"ανοιχτό",pink:"ροζ","pink red":"ροζ κόκκινο",purple:"μωβ","purple magenta":"μωβ ματζέντα",red:"Κόκκινο","red orange":"κόκκινο πορτοκαλί",saturation:"Κορεσμός",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} διαφανές`,"very dark":"πολύ σκούρο","very light":"πολύ ανοιχτό",vibrant:"έντονο",white:"λευκό",yellow:"κίτρινο","yellow green":"κίτρινο πράσινο"},"en-US":{hue:"Hue",saturation:"Saturation",lightness:"Lightness",brightness:"Brightness",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"very dark",dark:"dark",light:"light","very light":"very light",pale:"pale",grayish:"grayish",vibrant:"vibrant",black:"black",white:"white",gray:"gray",pink:"pink","pink red":"pink red","red orange":"red orange",brown:"brown",orange:"orange","orange yellow":"orange yellow","brown yellow":"brown yellow",yellow:"yellow","yellow green":"yellow green","green cyan":"green cyan",cyan:"cyan","cyan blue":"cyan blue","blue purple":"blue purple",purple:"purple","purple magenta":"purple magenta",magenta:"magenta","magenta pink":"magenta pink"},"es-ES":{alpha:"Alpha",black:"negro",blue:"Azul","blue purple":"púrpura azulado",brightness:"Brillo",brown:"marrón","brown yellow":"amarillo amarronado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"azul cian",dark:"oscuro",gray:"gris",grayish:"grisáceo",green:"Verde","green cyan":"cian verdoso",hue:"Tono",light:"claro",lightness:"Luminosidad",magenta:"magenta","magenta pink":"rosa magenta",orange:"naranja","orange yellow":"amarillo anaranjado",pale:"pálido",pink:"rosa","pink red":"rojo rosado",purple:"morado","purple magenta":"magenta violáceo",red:"Rojo","red orange":"naranja rojizo",saturation:"Saturación",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muy oscuro","very light":"muy claro",vibrant:"intenso",white:"blanco",yellow:"amarillo","yellow green":"verde amarillento"},"et-EE":{alpha:"Alfa",black:"must",blue:"Sinine","blue purple":"sinakaslilla",brightness:"Heledus",brown:"pruun","brown yellow":"pruunikaskollane",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tsüaan","cyan blue":"tsüaansinine",dark:"tume",gray:"hall",grayish:"hallikas",green:"Roheline","green cyan":"tsüaanroheline",hue:"Värv",light:"valgus",lightness:"Valgus",magenta:"magentapunane","magenta pink":"magentaroosa",orange:"oranž","orange yellow":"oranžikaskollane",pale:"kahvatu",pink:"roosa","pink red":"vaarikapunane",purple:"lilla","purple magenta":"purpurne magenta",red:"Punane","red orange":"punakasoranž",saturation:"Küllastus",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} läbipaistev`,"very dark":"väga tume","very light":"väga hele",vibrant:"ere",white:"valge",yellow:"kollane","yellow green":"kollakasroheline"},"fi-FI":{alpha:"Alpha",black:"musta",blue:"Sininen","blue purple":"sinivioletti",brightness:"Kirkkaus",brown:"ruskea","brown yellow":"ruskeankeltainen",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"syaani","cyan blue":"syaaninsininen",dark:"tumma",gray:"harmaa",grayish:"harmahtava",green:"Vihreä","green cyan":"vihreänsyaani",hue:"Sävy",light:"vaalea",lightness:"Valomäärä",magenta:"magenta","magenta pink":"magentapinkki",orange:"oranssi","orange yellow":"oranssinkeltainen",pale:"vaalea",pink:"pinkki","pink red":"vaaleanpunainen",purple:"violetti","purple magenta":"violettimagenta",red:"Punainen","red orange":"punaoranssi",saturation:"Värikylläisyys",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} läpinäkyvä`,"very dark":"hyvin tumma","very light":"erittäin vaalea",vibrant:"eloisa",white:"valkea",yellow:"keltainen","yellow green":"keltavihreä"},"fr-FR":{alpha:"Alpha",black:"Noir",blue:"Bleu","blue purple":"Violet bleu",brightness:"Luminosité",brown:"Brun","brown yellow":"Jaune brun",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Bleu cyan",dark:"Sombre",gray:"Gris",grayish:"Grisâtre",green:"Vert","green cyan":"Cyan vert",hue:"Teinte",light:"Clair",lightness:"Luminosité",magenta:"Magenta","magenta pink":"Rose magenta",orange:"Orange","orange yellow":"Jaune orangé",pale:"Pâle",pink:"Rose","pink red":"Rouge rosé",purple:"Violet","purple magenta":"Magenta violet",red:"Rouge","red orange":"Orange rouge",saturation:"Saturation",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"Très sombre","very light":"Très clair",vibrant:"Vif",white:"Blanc",yellow:"Jaune","yellow green":"Vert jaune"},"he-IL":{alpha:"אלפא",black:"שחור",blue:"כחול","blue purple":"כחול סגול",brightness:"בהירות",brown:"חום","brown yellow":"חום צהוב",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"טורקיז","cyan blue":"כחול ציאן",dark:"כהה",gray:"אפור",grayish:"אפרפר",green:"ירוק","green cyan":"ציאן ירוק",hue:"גוון",light:"אור",lightness:"כמות אור",magenta:"מג'נטה","magenta pink":"ורוד מג'נטה",orange:"כתום","orange yellow":"כתום צהוב",pale:"חיוור",pink:"ורוד","pink red":"ורוד אדום",purple:"סגול","purple magenta":"מג'נטה סגול",red:"אדום","red orange":"כתום אדום",saturation:"רוויה",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} שקוף`,"very dark":"כהה מאוד","very light":"בהיר מאוד",vibrant:"תוסס",white:"לבן",yellow:"צהוב","yellow green":"צהוב ירוק"},"hr-HR":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavo ljubičasta",brightness:"Svjetlina",brown:"smeđa","brown yellow":"smeđe žuta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasto",green:"Zelena","green cyan":"zelena cijan",hue:"Nijansa",light:"svjetlo",lightness:"Osvijetljenost",magenta:"magenta","magenta pink":"magentno ružičasta",orange:"narančasta","orange yellow":"narančasto žuta",pale:"blijeda",pink:"ružičasta","pink red":"ružičasto crvena",purple:"ljubičasta","purple magenta":"ljubičasta magenta",red:"Crvena","red orange":"crveno narančasta",saturation:"Zasićenost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirnosti`,"very dark":"jako tamna","very light":"vrlo svijetlo",vibrant:"vibrantna",white:"bijela",yellow:"žuto","yellow green":"žuto zelena"},"hu-HU":{alpha:"Alfa",black:"fekete",blue:"Kék","blue purple":"kék lila",brightness:"Fényesség",brown:"barna","brown yellow":"barna sárga",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciánkék","cyan blue":"ciánkék",dark:"sötét",gray:"szürke",grayish:"szürkés",green:"Zöld","green cyan":"zöld ciánkék",hue:"Színárnyalat",light:"világos",lightness:"Világosság",magenta:"bíbor","magenta pink":"bíbor rózsaszín",orange:"narancs","orange yellow":"narancssárga",pale:"halvány",pink:"rózsaszín","pink red":"rózsaszín piros",purple:"lila","purple magenta":"lila bíbor",red:"Piros","red orange":"piros narancs",saturation:"Telítettség",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} átlátszó`,"very dark":"nagyon sötét","very light":"nagyon világos",vibrant:"élénk",white:"fehér",yellow:"sárga","yellow green":"sárga zöld"},"it-IT":{alpha:"Alfa",black:"nero",blue:"Blu","blue purple":"blu viola",brightness:"Luminosità",brown:"marrone","brown yellow":"giallo bruno",colorName:e=>`${e.hue} ${e.chroma} ${e.lightness}`,cyan:"ciano","cyan blue":"blu ciano",dark:"scuro",gray:"grigio",grayish:"grigiastro",green:"Verde","green cyan":"verde ciano",hue:"Tonalità",light:"chiaro",lightness:"Luminosità",magenta:"magenta","magenta pink":"rosa magenta",orange:"arancio","orange yellow":"giallo arancio",pale:"tenue",pink:"rosa","pink red":"rosa rosso",purple:"viola","purple magenta":"viola magenta",red:"Rosso","red orange":"rosso arancio",saturation:"Saturazione",transparentColorName:e=>`${e.hue} ${e.chroma} ${e.lightness}, trasparenza ${e.percentTransparent}`,"very dark":"molto scuro","very light":"molto chiaro",vibrant:"vivace",white:"bianco",yellow:"giallo","yellow green":"giallo verde"},"ja-JP":{alpha:"アルファ",black:"ブラック",blue:"青","blue purple":"ブルーパープル",brightness:"明るさ",brown:"ブラウン","brown yellow":"ブラウンイエロー",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"シアン","cyan blue":"シアンブルー",dark:"ダーク",gray:"グレー",grayish:"グレイッシュ",green:"緑","green cyan":"グリーンシアン",hue:"色相",light:"ライト",lightness:"明度",magenta:"マゼンタ","magenta pink":"マゼンタピンク",orange:"オレンジ","orange yellow":"オレンジイエロー",pale:"ペール",pink:"ピンク","pink red":"ピンクレッド",purple:"パープル","purple magenta":"パープルマゼンタ",red:"赤","red orange":"レッドオレンジ",saturation:"彩度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"最も暗い","very light":"ベリーライト",vibrant:"鮮やか",white:"ホワイト",yellow:"イエロー","yellow green":"イエローグリーン"},"ko-KR":{alpha:"알파",black:"검은색",blue:"파랑","blue purple":"청자색",brightness:"명도",brown:"갈색","brown yellow":"황갈색",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"청록색","cyan blue":"청록색",dark:"다크",gray:"회색",grayish:"회갈색",green:"초록","green cyan":"청록색",hue:"색조",light:"라이트",lightness:"밝기",magenta:"자홍색","magenta pink":"마젠타 핑크",orange:"주황색","orange yellow":"불그스름한 노랑",pale:"흙색",pink:"분홍색","pink red":"핑크 레드",purple:"자주색","purple magenta":"보라빛 자홍색",red:"빨강","red orange":"붉은 주황색",saturation:"채도",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 투명도`,"very dark":"매우 어두운","very light":"매우 연함",vibrant:"강렬한",white:"흰색",yellow:"노란색","yellow green":"연두색"},"lt-LT":{alpha:"Alfa",black:"juoda",blue:"Mėlyna","blue purple":"melsvai violetinė",brightness:"Ryškumas",brown:"ruda","brown yellow":"rusvai geltona",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"žalsvai mėlyna","cyan blue":"žalsvai mėlyna",dark:"tamsi",gray:"pilka",grayish:"pilkšva",green:"Žalia","green cyan":"žalsvai mėlyna",hue:"Atspalvis",light:"šviesi",lightness:"Šviesumas",magenta:"rausvai raudona","magenta pink":"purpurinė",orange:"oranžinė","orange yellow":"oranžinio atspalvio geltona",pale:"blyški",pink:"rožinė","pink red":"rožinė raudona",purple:"violetinė","purple magenta":"purpurinė rausvai raudona",red:"Raudona","red orange":"rausvai oranžinė",saturation:"Įsotinimas",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} skaidri`,"very dark":"labai tamsi","very light":"labai šviesi",vibrant:"ryški",white:"balta",yellow:"geltona","yellow green":"gelsvai žalia"},"lv-LV":{alpha:"Alfa",black:"melns",blue:"Zila","blue purple":"zili violets",brightness:"Spilgtums",brown:"brūns","brown yellow":"brūni dzeltens",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciāns","cyan blue":"ciāna zils",dark:"tumšs",gray:"pelēks",grayish:"pelēcīgs",green:"Zaļa","green cyan":"zaļš ciāns",hue:"Nokrāsa",light:"gaišs",lightness:"Gaišums",magenta:"fuksiju","magenta pink":"fuksiju rozā",orange:"oranžs","orange yellow":"oranži dzeltens",pale:"bāls",pink:"rozā","pink red":"rozīgi sarkans",purple:"violets","purple magenta":"violets fuksiju",red:"Sarkana","red orange":"sarkanīgi oranžs",saturation:"Piesātinājums",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} caurspīdīgs`,"very dark":"ļoti tumšs","very light":"ļoti gaišs",vibrant:"košs",white:"balts",yellow:"dzeltens","yellow green":"dzelteni zaļš"},"nb-NO":{alpha:"Alfa",black:"svart",blue:"Blå","blue purple":"blålilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanblå",dark:"mørk",gray:"grå",grayish:"gråaktig",green:"Grønn","green cyan":"grønncyan",hue:"Fargetone",light:"lys",lightness:"Lyshet",magenta:"magenta","magenta pink":"magentarosa",orange:"oransje","orange yellow":"oransjegul",pale:"blek",pink:"rosa","pink red":"rosarød",purple:"lilla","purple magenta":"lillamagenta",red:"Rød","red orange":"rødoransje",saturation:"Metning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gjennomsiktig`,"very dark":"svært mørk","very light":"svært lys",vibrant:"levende",white:"hvit",yellow:"gul","yellow green":"gulgrønn"},"nl-NL":{alpha:"Alfa",black:"zwart",blue:"Blauw","blue purple":"paarsblauw",brightness:"Helderheid",brown:"bruin","brown yellow":"bruingeel",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyaan","cyan blue":"cyaanblauw",dark:"donker",gray:"grijs",grayish:"grijsachtig",green:"Groen","green cyan":"cyaangroen",hue:"Kleurtoon",light:"licht",lightness:"Lichtsterkte",magenta:"magenta","magenta pink":"magentaroze",orange:"oranje","orange yellow":"oranjegeel",pale:"bleek",pink:"roze","pink red":"rozerood",purple:"paars","purple magenta":"magentapaars",red:"Rood","red orange":"roodoranje",saturation:"Verzadiging",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparant`,"very dark":"heel donker","very light":"heel licht",vibrant:"levendig",white:"wit",yellow:"geel","yellow green":"geelgroen"},"pl-PL":{alpha:"Alfa",black:"czarny",blue:"Niebieski","blue purple":"niebiesko-fioletowy",brightness:"Jasność",brown:"brązowy","brown yellow":"brązowo-żółty",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyjanowy","cyan blue":"cyjanowo-niebieski",dark:"ciemny",gray:"szary",grayish:"szarawy",green:"Zielony","green cyan":"zielono-cyjanowy",hue:"Odcień",light:"jasny",lightness:"Jaskrawość",magenta:"purpurowy","magenta pink":"purpurowo-różowy",orange:"pomarańczowy","orange yellow":"pomarańczowo-żółty",pale:"blady",pink:"różowy","pink red":"różowo-czerwony",purple:"fioletowy","purple magenta":"fioletowo-purpurowy",red:"Czerwony","red orange":"czerwono-pomarańczowy",saturation:"Nasycenie",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} przezroczystości`,"very dark":"bardzo ciemny","very light":"bardzo jasny",vibrant:"intensywny",white:"biały",yellow:"żółty","yellow green":"żółto-zielony"},"pt-BR":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"roxo azulado",brightness:"Brilho",brown:"marrom","brown yellow":"marrom amarelado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinza",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Matiz",light:"claro",lightness:"Luminosidade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo alaranjado",pale:"pálido",pink:"rosa","pink red":"rosa avermelhado",purple:"roxo","purple magenta":"roxo-magenta",red:"Vermelho","red orange":"laranja avermelhado",saturation:"Saturação",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde amarelado"},"pt-PT":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"azul-púrpura",brightness:"Luminosidade",brown:"castanho","brown yellow":"amarelo-castanho",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinzento",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Tonalidade",light:"claro",lightness:"Claridade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo-laranja",pale:"pálido",pink:"cor-de-rosa","pink red":"vermelho-rosa",purple:"púrpura","purple magenta":"púrpura-magenta",red:"Vermelho","red orange":"laranja-vermelho",saturation:"Saturação",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde-amarelo"},"ro-RO":{alpha:"Alfa",black:"negru",blue:"Albastru","blue purple":"albastru-violet",brightness:"Luminozitate",brown:"maro","brown yellow":"galben maro",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"bleu","cyan blue":"albastru-bleu",dark:"închis",gray:"gri",grayish:"cenușiu",green:"Verde","green cyan":"verde bleu",hue:"Nuanță",light:"deschis",lightness:"Luminozitate",magenta:"fucsia","magenta pink":"roz-fucsia",orange:"portocaliu","orange yellow":"galben-portocaliu",pale:"pal",pink:"roz","pink red":"roz-roșu",purple:"violet","purple magenta":"violet-fucsia",red:"Roșu","red orange":"portocaliu-roșu",saturation:"Saturație",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"foarte închis","very light":"foarte deschis",vibrant:"plin de viață",white:"alb",yellow:"galben","yellow green":"galben-verde"},"ru-RU":{alpha:"Альфа",black:"черный",blue:"Синий","blue purple":"сине-фиолетовый",brightness:"Яркость",brown:"коричневый","brown yellow":"коричнево-желтый",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"голубой","cyan blue":"цвет морской волны",dark:"темный",gray:"серый",grayish:"сероватый",green:"Зеленый","green cyan":"сине-зеленый",hue:"Оттенок",light:"светлый",lightness:"Освещенность",magenta:"пурпурный","magenta pink":"пурпурно-розовый",orange:"оранжевый","orange yellow":"оранжево-желтый",pale:"бледный",pink:"розовый","pink red":"розово-красный",purple:"фиолетовый","purple magenta":"фиолетово-пурпурный",red:"Красный","red orange":"красно-оранжевый",saturation:"Насыщенность",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, прозрачный на ${e.percentTransparent}`,"very dark":"очень темный","very light":"очень светлый",vibrant:"яркий",white:"белый",yellow:"желтый","yellow green":"желто-зеленый"},"sk-SK":{alpha:"Alfa",black:"čierna",blue:"Modrá","blue purple":"modrofialová",brightness:"Jas",brown:"hnedá","brown yellow":"hnedožltá",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"azúrová","cyan blue":"azúrová modrá",dark:"tmavá",gray:"sivá",grayish:"sivastá",green:"Zelená","green cyan":"zelená azúrová",hue:"Odtieň",light:"svetlá",lightness:"Svetlosť",magenta:"purpurová","magenta pink":"ružová purpurová",orange:"oranžová","orange yellow":"oranžovožltá",pale:"bledá",pink:"ružová","pink red":"ružovočervená",purple:"fialová","purple magenta":"fialová purpurová",red:"Červená","red orange":"červenooranžová",saturation:"Sýtosť",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} priehľadná`,"very dark":"veľmi tmavá","very light":"veľmi svetlá",vibrant:"energická",white:"biela",yellow:"žltá","yellow green":"žltozelená"},"sl-SI":{alpha:"Alfa",black:"črna",blue:"Modra","blue purple":"modro vijolična",brightness:"Svetlost",brown:"rjava","brown yellow":"rjavo rumena",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"cian modra",dark:"temna",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zelena cian",hue:"Barva",light:"svetla",lightness:"Lahkost",magenta:"škrlatna","magenta pink":"škrlatno roza",orange:"oranžna","orange yellow":"oranžno rumena",pale:"bleda",pink:"roza","pink red":"roza rdeča",purple:"vijolična","purple magenta":"vijolično škrlatna",red:"Rdeča","red orange":"rdeče oranžna",saturation:"Nasičenost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozorna`,"very dark":"zelo temna","very light":"zelo svetla",vibrant:"živahna",white:"bela",yellow:"rumena","yellow green":"rumeno zelena"},"sr-SP":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavoljubičasta",brightness:"Osvetljenost",brown:"smeđa","brown yellow":"smeđežuta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zeleno cijan",hue:"Nijansa",light:"svetla",lightness:"Osvetljenje",magenta:"purpurnocrvena","magenta pink":"magenta ružičasta",orange:"narandžasta","orange yellow":"narandžastožuta",pale:"bledo",pink:"ružičasta","pink red":"ružičastocrvena",purple:"ljubičasta","purple magenta":"ljubičasta magenta",red:"Crvena","red orange":"crvenonarandžasta",saturation:"Zasićenje",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirna`,"very dark":"veoma tamno","very light":"vrlo svetlo",vibrant:"živopisna",white:"bela",yellow:"žuto","yellow green":"žutozelena"},"sv-SE":{alpha:"Alfa",black:"svart",blue:"Blått","blue purple":"blålila",brightness:"Ljusstyrka",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanblå",dark:"mörk",gray:"grå",grayish:"gråaktig",green:"Grönt","green cyan":"grön cyan",hue:"Nyans",light:"ljus",lightness:"Ljushet",magenta:"magenta","magenta pink":"magentarosa",orange:"orange","orange yellow":"orangegul",pale:"blek",pink:"rosa","pink red":"rosaröd",purple:"lila","purple magenta":"lila magenta",red:"Rött","red orange":"rödorange",saturation:"Mättnad",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} genomskinlig`,"very dark":"mycket mörk","very light":"mycket ljus",vibrant:"livfull",white:"vit",yellow:"gul","yellow green":"gulgrön"},"tr-TR":{alpha:"Alfa",black:"siyah",blue:"Mavi","blue purple":"mavi mor",brightness:"Parlaklık",brown:"kahverengi","brown yellow":"kahverengi sarı",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"camgöbeği","cyan blue":"camgöbeği mavi",dark:"koyu",gray:"gri",grayish:"grimsi",green:"Yeşil","green cyan":"yeşil camgöbeği",hue:"Ton",light:"açık",lightness:"Canlılık",magenta:"eflatun","magenta pink":"eflatun pembe",orange:"turuncu","orange yellow":"turuncu sarı",pale:"solgun",pink:"pembe","pink red":"pembe kırmızı",purple:"mor","purple magenta":"mor eflatun",red:"Kırmızı","red orange":"kırmızı portakal",saturation:"Doygunluk",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} saydam`,"very dark":"çok koyu","very light":"çok açık",vibrant:"canlı",white:"beyaz",yellow:"sarı","yellow green":"sarı yeşil"},"uk-UA":{alpha:"Альфа",black:"чорний",blue:"Синій","blue purple":"синьо-фіолетовий",brightness:"Яскравість",brown:"коричневий","brown yellow":"коричнево-жовтий",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"блакитний","cyan blue":"синьо-блакитний",dark:"темний",gray:"сірий",grayish:"сіруватий",green:"Зелений","green cyan":"зелено-блакитний",hue:"Тон",light:"світлий",lightness:"Освітленість",magenta:"пурпуровий","magenta pink":"пурпурово-рожевий",orange:"помаранчевий","orange yellow":"помаранчево-жовтий",pale:"блідий",pink:"рожевий","pink red":"рожево-червоний",purple:"фіолетовий","purple magenta":"фіолетово-пурпуровий",red:"Червоний","red orange":"червоно-помаранчевий",saturation:"Насиченість",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, прозорий на ${e.percentTransparent}`,"very dark":"дуже темний","very light":"дуже світлий",vibrant:"яскравий",white:"білий",yellow:"жовтий","yellow green":"жовто-зелений"},"zh-CN":{alpha:"Alpha",black:"黑色",blue:"蓝色","blue purple":"蓝紫色",brightness:"亮度",brown:"棕色的","brown yellow":"棕黄色",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"蓝绿色","cyan blue":"青蓝色",dark:"深色",gray:"灰色",grayish:"浅灰色的",green:"绿色","green cyan":"绿青色",hue:"色相",light:"浅色",lightness:"明亮度",magenta:"紫红色","magenta pink":"紫粉色",orange:"橙色","orange yellow":"橙黄色",pale:"苍白的",pink:"粉色","pink red":"粉红色",purple:"紫色","purple magenta":"紫洋红色",red:"红色","red orange":"红橙色",saturation:"饱和度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"很暗","very light":"很浅",vibrant:"生机勃勃",white:"白色",yellow:"黄色","yellow green":"黄色/绿色"},"zh-TW":{alpha:"Alpha",black:"黑",blue:"藍色","blue purple":"藍紫",brightness:"亮度",brown:"棕","brown yellow":"棕黃",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"青","cyan blue":"青藍",dark:"暗",gray:"灰",grayish:"偏灰",green:"綠色","green cyan":"青綠",hue:"色相",light:"淺",lightness:"明亮",magenta:"洋紅","magenta pink":"淺洋紅",orange:"橙","orange yellow":"橙黃",pale:"淡",pink:"粉紅","pink red":"粉紅",purple:"紫","purple magenta":"紫洋紅",red:"紅色","red orange":"橙紅",saturation:"飽和度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"很暗","very light":"很淺",vibrant:"鮮豔",white:"白",yellow:"黃","yellow green":"黃綠"}};var o=n(80539),i=n(6275),a=n(89424);let s=new(0,i.J)((l=r)&&l.__esModule?l.default:l);var l;function c(e){let t=h.parse(e)||m.parse(e)||y.parse(e);if(t)return t;throw new Error("Invalid color value: "+e)}function u(e){return"string"==typeof e?c(e):e}const d=[[0,"pink"],[15,"red"],[48,"orange"],[94,"yellow"],[135,"green"],[175,"cyan"],[264,"blue"],[284,"purple"],[320,"magenta"],[349,"pink"]];class p{toHexInt(){return this.toFormat("rgb").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}withChannelValue(e,t){if(e in this){let n=this.clone();return n[e]=t,n}throw new Error("Unsupported color channel: "+e)}getChannelName(e,t){return(i.J.getGlobalDictionaryForPackage("@react-stately/color")||s).getStringForLocale(e,t)}getColorSpaceAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getColorChannels().find((e=>e!==n)),o=n||this.getColorChannels().find((e=>e!==r)),i=this.getColorChannels().find((e=>e!==r&&e!==o));return{xChannel:r,yChannel:o,zChannel:i}}getColorName(e){let t,[n,r,o]=b(this),l=i.J.getGlobalDictionaryForPackage("@react-stately/color")||s;if(n>.999)return l.getStringForLocale("white",e);if(n<.001)return l.getStringForLocale("black",e);[t,n]=this.getOklchHue(n,r,o,e);let c="",u="";r<=.1&&r>=.001?u=n>=.7?"pale":"grayish":r>=.15&&(u="vibrant"),n<.3?c="very dark":n<.55?c="dark":n<.7||(c=n<.85?"light":"very light"),u&&(u=l.getStringForLocale(u,e)),c&&(c=l.getStringForLocale(c,e));let d=this.getChannelValue("alpha"),p=new(0,i.E)(e,l);if(d<1){let n=new(0,a.e)(e,{style:"percent"}).format(1-d);return p.format("transparentColorName",{lightness:c,chroma:u,hue:t,percentTransparent:n}).replace(/\s+/g," ").trim()}return p.format("colorName",{lightness:c,chroma:u,hue:t}).replace(/\s+/g," ").trim()}getOklchHue(e,t,n,r){let o=i.J.getGlobalDictionaryForPackage("@react-stately/color")||s;if(t<.001)return[o.getStringForLocale("gray",r),e];for(let t=0;t<d.length;t++){let[i,a]=d[t],[s,l]=d[t+1]||[360,"pink"];if(n>=i&&n<s){return"orange"===a&&(e<.68?a="brown":e=e-.68+.55),n>i+(s-i)/2&&a!==l?a=`${a} ${l}`:"yellow"===a&&e<.85&&(a="yellow green"),[o.getStringForLocale(a,r).toLocaleLowerCase(r),e]}}throw new Error("Unexpected hue")}getHueName(e){let[t,n,r]=b(this),[o]=this.getOklchHue(t,n,r,e);return o}}class h extends p{static parse(e){let t=[];if(/^#[\da-f]+$/i.test(e)&&[4,5,7,9].includes(e.length)){const n=(e.length<6?e.replace(/[^#]/gi,"$&$&"):e).slice(1).split("");for(;n.length>0;)t.push(parseInt(n.splice(0,2).join(""),16));t[3]=void 0!==t[3]?t[3]/255:void 0}const n=e.match(/^rgba?\((.*)\)$/);var r;return(null==n?void 0:n[1])&&(t=n[1].split(",").map((e=>Number(e.trim()))),t=t.map(((e,t)=>(0,o.uZ)(e,0,t<3?255:1)))),t.length<3?void 0:new h(t[0],t[1],t[2],null!==(r=t[3])&&void 0!==r?r:1)}toString(e="css"){switch(e){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(255*this.alpha).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hex":case"hexa":case"rgb":case"rgba":return this;case"hsb":case"hsba":return this.toHSB();case"hsl":case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+e)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),i=Math.max(e,t,n),a=i-r,s=0===i?0:a/i;let l=0;if(0!==a){switch(i){case e:l=(t-n)/a+(t<n?6:0);break;case t:l=(n-e)/a+2;break;case n:l=(e-t)/a+4}l/=6}return new m((0,o.lt)(360*l,2),(0,o.lt)(100*s,2),(0,o.lt)(100*i,2),this.alpha)}toHSL(){const e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),i=Math.max(e,t,n),a=(i+r)/2,s=i-r;let l,c;if(0===s)l=c=0;else{switch(c=s/(a<.5?i+r:2-i-r),i){case e:l=(t-n)/s+(t<n?6:0);break;case t:l=(n-e)/s+2;break;case n:l=(e-t)/s+4}l/=6}return new y((0,o.lt)(360*l,2),(0,o.lt)(100*c,2),(0,o.lt)(100*a,2),this.alpha)}clone(){return new h(this.red,this.green,this.blue,this.alpha)}getChannelRange(e){switch(e){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return new(0,a.e)(t,n).format(r)}getColorSpace(){return"rgb"}getColorChannels(){return h.colorChannels}constructor(e,t,n,r){super(),this.red=e,this.green=t,this.blue=n,this.alpha=r}}h.colorChannels=["red","green","blue"];const f=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;class m extends p{static parse(e){let t;if(t=e.match(f)){var n;const[e,r,i,a]=(null!==(n=t[1])&&void 0!==n?n:t[2]).split(",").map((e=>Number(e.trim().replace("%",""))));return new m(v(e,360),(0,o.uZ)(r,0,100),(0,o.uZ)(i,0,100),(0,o.uZ)(null!=a?a:1,0,1))}}toString(e="css"){switch(e){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${(0,o.lt)(this.saturation,2)}%, ${(0,o.lt)(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${(0,o.lt)(this.saturation,2)}%, ${(0,o.lt)(this.brightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsb":case"hsba":return this;case"hsl":case"hsla":return this.toHSL();case"rgb":case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+e)}}toHSL(){let e=this.saturation/100,t=this.brightness/100,n=t*(1-e/2);return e=0===n||1===n?0:(t-n)/Math.min(n,1-n),new y((0,o.lt)(this.hue,2),(0,o.lt)(100*e,2),(0,o.lt)(100*n,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,n=this.brightness/100,r=(r,o=(r+e/60)%6)=>n-t*n*Math.max(Math.min(o,4-o,1),0);return new h(Math.round(255*r(5)),Math.round(255*r(3)),Math.round(255*r(1)),this.alpha)}clone(){return new m(this.hue,this.saturation,this.brightness,this.alpha)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return"saturation"!==e&&"brightness"!==e||(r/=100),new(0,a.e)(t,n).format(r)}getColorSpace(){return"hsb"}getColorChannels(){return m.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.brightness=n,this.alpha=r}}m.colorChannels=["hue","saturation","brightness"];const g=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;function v(e,t){return(e%t+t)%t}class y extends p{static parse(e){let t;if(t=e.match(g)){var n;const[e,r,i,a]=(null!==(n=t[1])&&void 0!==n?n:t[2]).split(",").map((e=>Number(e.trim().replace("%",""))));return new y(v(e,360),(0,o.uZ)(r,0,100),(0,o.uZ)(i,0,100),(0,o.uZ)(null!=a?a:1,0,1))}}toString(e="css"){switch(e){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${(0,o.lt)(this.saturation,2)}%, ${(0,o.lt)(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${(0,o.lt)(this.saturation,2)}%, ${(0,o.lt)(this.lightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsl":case"hsla":return this;case"hsb":case"hsba":return this.toHSB();case"rgb":case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+e)}}toHSB(){let e=this.saturation/100,t=this.lightness/100,n=t+e*Math.min(t,1-t);return e=0===n?0:2*(1-t/n),new m((0,o.lt)(this.hue,2),(0,o.lt)(100*e,2),(0,o.lt)(100*n,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,n=this.lightness/100,r=t*Math.min(n,1-n),o=(t,o=(t+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return new h(Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4)),this.alpha)}clone(){return new y(this.hue,this.saturation,this.lightness,this.alpha)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return"saturation"!==e&&"lightness"!==e||(r/=100),new(0,a.e)(t,n).format(r)}getColorSpace(){return"hsl"}getColorChannels(){return y.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=r}}function b(e){let t=e.toFormat("rgb"),n=t.getChannelValue("red")/255,r=t.getChannelValue("green")/255,o=t.getChannelValue("blue")/255;[n,r,o]=function(e,t,n){return[w(e),w(t),w(n)]}(n,r,o);let[i,a,s]=function(e,t,n){return x([506752/1228815,87881/245763,12673/70218,87098/409605,175762/245763,12673/175545,7918/409605,87881/737289,1001167/1053270],e,t,n)}(n,r,o),[l,c,u]=function(e,t,n){const r=[.819022437996703,.3619062600528904,-.1288737815209879,.0329836539323885,.9292868615863434,.0361446663506424,.0481771893596242,.2642395317527308,.6335478284694309],o=[.210454268309314,.7936177747023054,-.0040720430116193,1.9779985324311684,-2.42859224204858,.450593709617411,.0259040424655478,.7827717124575296,-.8086757549230774];let[i,a,s]=x(r,e,t,n);return x(o,Math.cbrt(i),Math.cbrt(a),Math.cbrt(s))}(i,a,s);return function(e,t,n){var r=180*Math.atan2(n,t)/Math.PI;return[e,Math.sqrt(t**2+n**2),r>=0?r:r+360]}(l,c,u)}function w(e){let t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*Math.pow((n+.055)/1.055,2.4)}function x(e,t,n,r){return[e[0]*t+e[1]*n+e[2]*r,e[3]*t+e[4]*n+e[5]*r,e[6]*t+e[7]*n+e[8]*r]}y.colorChannels=["hue","saturation","lightness"];var _=n(67294);const S=c("#ffffff");function C(e){let{value:t,defaultValue:n,colorSpace:r,xChannel:i,yChannel:a,onChange:s,onChangeEnd:l}=e;t||n||(n=S);let[c,d]=(0,o.zk)(t&&u(t),n&&u(n),s),p=(0,_.useMemo)((()=>r&&c?c.toFormat(r):c),[c,r]),h=(0,_.useRef)(p),f=e=>{h.current=e,d(e)},m=(0,_.useMemo)((()=>p.getColorSpaceAxes({xChannel:i,yChannel:a})),[p,i,a]),g=p.getChannelRange(m.xChannel),v=p.getChannelRange(m.yChannel),{minValue:y,maxValue:b,step:w,pageSize:x}=g,{minValue:C,maxValue:E,step:k,pageSize:z}=v,[P,D]=(0,_.useState)(!1),A=(0,_.useRef)(!1),T=p.getChannelValue(m.xChannel),I=p.getChannelValue(m.yChannel),M=e=>{if(e===T)return;let t=p.withChannelValue(m.xChannel,e);f(t)},R=e=>{if(e===I)return;let t=p.withChannelValue(m.yChannel,e);f(t)};return{channels:m,xChannelStep:w,yChannelStep:k,xChannelPageStep:x,yChannelPageStep:z,value:p,setValue(e){f(u(e))},xValue:T,setXValue:M,yValue:I,setYValue:R,setColorFromPoint(e,t){let n,r=y+(0,o.uZ)(e,0,1)*(b-y),i=C+(1-(0,o.uZ)(t,0,1))*(E-C);r!==T&&(r=(0,o.N4)(r,y,b,w),n=p.withChannelValue(m.xChannel,r)),i!==I&&(i=(0,o.N4)(i,C,E,k),n=(n||p).withChannelValue(m.yChannel,i)),n&&f(n)},getThumbPosition:()=>({x:(T-y)/(b-y),y:1-(I-C)/(E-C)}),incrementX(e){M(T+e>b?b:(0,o.N4)(T+e,y,b,w))},incrementY(e){R(I+e>E?E:(0,o.N4)(I+e,C,E,k))},decrementX(e){M((0,o.N4)(T-e,y,b,w))},decrementY(e){R((0,o.N4)(I-e,C,E,k))},setDragging(e){let t=A.current;A.current=e,l&&!e&&t&&l(h.current),D(e)},isDragging:P,getDisplayColor:()=>p.withChannelValue("alpha",1)}}var E=n(1413);function k(e){let{channel:t,colorSpace:n,value:r,defaultValue:i,onChange:a,locale:s,...l}=e;if(null==r&&null==i)throw new Error("useColorSliderState requires a value or defaultValue");let[d,p]=(0,o.zk)(r&&u(r),i&&u(i),a),h=(0,_.useMemo)((()=>n&&d?d.toFormat(n):d),[d,n]),f=(0,E.x)({...h.getChannelRange(t),...l,numberFormatter:null,value:h.getChannelValue(t),onChange(e){p(h.withChannelValue(t,e))},onChangeEnd(n){e.onChangeEnd&&e.onChangeEnd(h.withChannelValue(t,n))}}),{step:m,pageSize:g}=h.getChannelRange(t);return{...f,value:h,setValue(e){p(u(e))},getDisplayColor(){switch(t){case"hue":return c(`hsl(${h.getChannelValue("hue")}, 100%, 50%)`);case"lightness":case"brightness":case"saturation":case"red":case"green":case"blue":return h.withChannelValue("alpha",1);case"alpha":return h;default:throw new Error("Unknown color channel: "+t)}},getThumbValueLabel:()=>h.formatChannelValue(t,s),step:m,pageSize:g,isDragging:f.isThumbDragging(0)}}c("hsl(0, 100%, 50%)");function z(e){return(0,_.useMemo)((()=>{if("string"==typeof e)try{return c(e)}catch(e){return}return e}),[e])}var P=n(35998);const D=c("#000000"),A=c("#FFFFFF"),T=D.toHexInt(),I=A.toHexInt();function M(e){let{value:t,defaultValue:n,onChange:r}=e,{step:i}=D.getChannelRange("red"),a=z(t),s=z(n),[l,u]=(0,o.zk)(a,s,r),[d,p]=(0,_.useState)((()=>(t||n)&&l?l.toString("hex"):"")),h=(0,P.Q3)({...e,value:l}),f=e=>{l&&e&&e.toHexInt()===l.toHexInt()||u(e)},[m,g]=(0,_.useState)(l);m!==l&&(p(l?l.toString("hex"):""),g(l));let v=(0,_.useMemo)((()=>{let e;try{e=c(d.startsWith("#")?d:`#${d}`)}catch(t){e=null}return e}),[d]);return{...h,validate:e=>{var t;return""===e||!!(null===(t=e.match(/^#?[0-9a-f]{0,6}$/i))||void 0===t?void 0:t[0])},colorValue:l,inputValue:d,setInputValue:p,commit:()=>{if(!d.length)return f(null),void p(void 0===t?"":l.toString("hex"));if(null==v)return void p(l?l.toString("hex"):"");f(v);let e="";l&&(e=l.toString("hex")),p(e)},increment:()=>{let e=R(v,i);e===l&&p(e.toString("hex")),f(e),h.commitValidation()},incrementToMax:()=>f(A),decrement:()=>{let e=R(v,-i);e===l&&p(e.toString("hex")),f(e),h.commitValidation()},decrementToMin:()=>f(D)}}function R(e,t){let n=e||D,r=n.toHexInt(),o=Math.min(Math.max(r+t,T),I);if(o!==r){n=c(`#${o.toString(16).padStart(6,"0").toUpperCase()}`)}return n}n(27436)},79185:(e,t,n)=>{"use strict";n.d(t,{P:()=>c});var r=n(35998),o=n(56406),i=n(61621),a=n(67294),s=n(80539),l=n(106);function c(e){var t,n;let{defaultFilter:o,menuTrigger:c="input",allowsEmptyCollection:d=!1,allowsCustomValue:p,shouldCloseOnBlur:h=!0}=e,[f,m]=(0,a.useState)(!1),[g,v]=(0,a.useState)(!1),[y,b]=(0,a.useState)(null);var w;let{collection:x,selectionManager:_,selectedKey:S,setSelectedKey:C,selectedItem:E,disabledKeys:k}=(0,i.BA)({...e,onSelectionChange:t=>{e.onSelectionChange&&e.onSelectionChange(t),t===S&&(H(),B())},items:null!==(w=e.items)&&void 0!==w?w:e.defaultItems});var z,P;let[D,A]=(0,s.zk)(e.inputValue,null!==(P=null!==(z=e.defaultInputValue)&&void 0!==z?z:null===(t=x.getItem(S))||void 0===t?void 0:t.textValue)&&void 0!==P?P:"",e.onInputChange),T=x,I=(0,a.useMemo)((()=>null==e.items&&o?function(e,t,n){return new(0,i.DC)(u(e,e,t,n))}(x,D,o):x),[x,D,o,e.items]),[M,R]=(0,a.useState)(I),F=(0,a.useRef)("focus"),N=(0,l.d)({...e,onOpenChange:t=>{e.onOpenChange&&e.onOpenChange(t,t?F.current:void 0),_.setFocused(t),t||_.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),O=(t=null,n)=>{let r="manual"===n||"focus"===n&&"focus"===c;(d||I.size>0||r&&T.size>0||e.items)&&(r&&!N.isOpen&&void 0===e.items&&m(!0),F.current=n,b(t),N.open())},j=(0,a.useCallback)((()=>{R(f?T:I)}),[f,T,I]),L=(0,a.useCallback)(((e=null)=>{N.isOpen&&j(),b(e),N.toggle()}),[N,j]),B=(0,a.useCallback)((()=>{N.isOpen&&(j(),N.close())}),[N,j]),[K,V]=(0,a.useState)(D),H=()=>{var e,t;let n=null!==(t=null===(e=x.getItem(S))||void 0===e?void 0:e.textValue)&&void 0!==t?t:"";V(n),A(n)};var $,U;let Z=(0,a.useRef)(null!==(U=null!==($=e.selectedKey)&&void 0!==$?$:e.defaultSelectedKey)&&void 0!==U?U:null);var q;let G=(0,a.useRef)(null!==(q=null===(n=x.getItem(S))||void 0===n?void 0:n.textValue)&&void 0!==q?q:"");(0,a.useEffect)((()=>{var t,n;g&&(I.size>0||d)&&!N.isOpen&&D!==K&&"manual"!==c&&O(null,"input"),f||d||!N.isOpen||0!==I.size||B(),null!=S&&S!==Z.current&&B(),D!==K&&(_.setFocusedKey(null),m(!1),""!==D||void 0!==e.inputValue&&void 0!==e.selectedKey||C(null)),S===Z.current||void 0!==e.inputValue&&void 0!==e.selectedKey?K!==D&&V(D):H();let r=null!==(n=null===(t=x.getItem(S))||void 0===t?void 0:t.textValue)&&void 0!==n?n:"";g||null==S||void 0!==e.inputValue||S!==Z.current||G.current!==r&&(V(r),A(r)),Z.current=S,G.current=r}));let W=(0,r.Q3)({...e,value:(0,a.useMemo)((()=>({inputValue:D,selectedKey:S})),[D,S])}),Y=()=>{Z.current=null,C(null),B()},X=()=>{if(void 0!==e.selectedKey&&void 0!==e.inputValue){var t,n;e.onSelectionChange(S);let r=null!==(n=null===(t=x.getItem(S))||void 0===t?void 0:t.textValue)&&void 0!==n?n:"";V(r),B()}else H(),B()};const Q=()=>{if(p){var e,t;const n=null!==(t=null===(e=x.getItem(S))||void 0===e?void 0:e.textValue)&&void 0!==t?t:"";D===n?X():Y()}else X()};let J=(0,a.useRef)(D),ee=(0,a.useMemo)((()=>N.isOpen?f?T:I:M),[N.isOpen,T,I,f,M]);return{...W,...N,focusStrategy:y,toggle:(t=null,n)=>{let r="manual"===n||"focus"===n&&"focus"===c;(d||I.size>0||r&&T.size>0||e.items||N.isOpen)&&(r&&!N.isOpen&&void 0===e.items&&m(!0),N.isOpen||(F.current=n),L(t))},open:O,close:Q,selectionManager:_,selectedKey:S,setSelectedKey:C,disabledKeys:k,isFocused:g,setFocused:t=>{t?(J.current=D,"focus"!==c||e.isReadOnly||O(null,"focus")):(h&&Q(),D!==J.current&&W.commitValidation()),v(t)},selectedItem:E,collection:ee,inputValue:D,setInputValue:A,commit:()=>{N.isOpen&&null!=_.focusedKey?S===_.focusedKey?X():C(_.focusedKey):Q()},revert:()=>{p&&null==S?Y():X()}}}function u(e,t,n,r){let i=[];for(let a of t)if("section"===a.type&&a.hasChildNodes){let t=u(e,(0,o._P)(a,e),n,r);[...t].some((e=>"item"===e.type))&&i.push({...a,childNodes:t})}else("item"===a.type&&r(a.textValue,n)||"item"!==a.type)&&i.push({...a});return i}},32801:(e,t,n)=>{"use strict";n.d(t,{VH:()=>o});var r=n(67294);function o(e){let{initialItems:t=[],initialSelectedKeys:n,getKey:o=(e=>e.id||e.key),getChildren:i=(e=>e.children)}=e,[a,s]=(0,r.useState)((()=>p(t,new Map))),{items:l,nodeMap:c}=a,[u,d]=(0,r.useState)(new Set(n||[]));function p(e=[],t,n){return{items:e.map((e=>{let r={key:o(e),parentKey:n,value:e,children:null};return r.children=p(i(e),t,r.key).items,t.set(r.key,r),r})),nodeMap:t}}function h(e,t,n,r){let o=r.get(t);if(!o)return{items:e,nodeMap:r};let i=new Map(r),a=n(o);for(null==a?m(o,i):f(a,i);o.parentKey;){let e=i.get(o.parentKey),t={key:e.key,parentKey:e.parentKey,value:e.value,children:null},n=e.children;null==a&&(n=n.filter((e=>e!==o))),t.children=n.map((e=>e===o?a:e)),i.set(t.key,t),a=t,o=e}return null==a&&(e=e.filter((e=>e!==o))),{items:e.map((e=>e===o?a:e)),nodeMap:i}}function f(e,t){t.set(e.key,e);for(let n of e.children)f(n,t)}function m(e,t){t.delete(e.key);for(let n of e.children)m(n,t)}return{items:l,selectedKeys:u,setSelectedKeys:d,getItem:e=>c.get(e),insert(e,t,...n){s((({items:r,nodeMap:o})=>{let{items:i,nodeMap:a}=p(n,o,e);return null==e?{items:[...r.slice(0,t),...i,...r.slice(t)],nodeMap:a}:h(r,e,(e=>({key:e.key,parentKey:e.parentKey,value:e.value,children:[...e.children.slice(0,t),...i,...e.children.slice(t)]})),a)}))},insertBefore(e,...t){let n=c.get(e);if(!n)return;let r=c.get(n.parentKey),o=(r?r.children:l).indexOf(n);this.insert(null==r?void 0:r.key,o,...t)},insertAfter(e,...t){let n=c.get(e);if(!n)return;let r=c.get(n.parentKey),o=(r?r.children:l).indexOf(n);this.insert(null==r?void 0:r.key,o+1,...t)},prepend(e,...t){this.insert(e,0,...t)},append(e,...t){if(null==e)this.insert(null,l.length,...t);else{let n=c.get(e);if(!n)return;this.insert(e,n.children.length,...t)}},remove(...e){if(0===e.length)return;let t,n=l,r=c;for(let o of e)t=h(n,o,(()=>null),r),r=t.nodeMap,n=t.items;s(t);let o=new Set(u);for(let e of u)t.nodeMap.has(e)||o.delete(e);d(o)},removeSelectedItems(){this.remove(...u)},move(e,t,n){s((({items:r,nodeMap:o})=>{let i=o.get(e);if(!i)return{items:r,nodeMap:o};let{items:a,nodeMap:s}=h(r,e,(()=>null),o);const l={...i,parentKey:t};return null==t?(s.set(l.key,l),{items:[...a.slice(0,n),l,...a.slice(n)],nodeMap:s}):h(a,t,(e=>({key:e.key,parentKey:e.parentKey,value:e.value,children:[...e.children.slice(0,n),l,...e.children.slice(n)]})),s)}))},update(e,t){s((({items:n,nodeMap:r})=>h(n,e,(e=>{let n={key:e.key,parentKey:e.parentKey,value:t,children:null},o=p(i(t),r,n.key);return n.children=o.items,n}),r)))}}}},7220:(e,t,n)=>{"use strict";var r;r={"ar-AE":{rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."},"bg-BG":{rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."},"cs-CZ":{rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."},"da-DK":{rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."},"el-GR":{rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."},"fr-FR":{rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."},"he-IL":{rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"},"ko-KR":{rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."},"lt-LT":{rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."},"ru-RU":{rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."},"sk-SK":{rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."},"tr-TR":{rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."},"uk-UA":{rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."},"zh-CN":{rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"},"zh-TW":{rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"}};n(19315);var o=n(6275);n(35998),n(67294);new(0,o.J)((i=r)&&i.__esModule?i.default:i);var i;n(106),n(80539);new(0,o.J)({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en")},68049:(e,t,n)=>{"use strict";n.d(t,{h:()=>o,x:()=>i});var r=n(67294);function o(e){let{getItems:t,isDisabled:n,collection:o,selectionManager:i,onDragStart:a,onDragMove:s,onDragEnd:l,preview:c,getAllowedDropOperations:u}=e,[,d]=(0,r.useState)(!1),p=(0,r.useRef)(new Set),h=(0,r.useRef)(null),f=e=>{let t=new Set(i.isSelected(e)?new Set([...i.selectedKeys].filter((e=>!!o.getItem(e)))):[]);return t.add(e),t};return{collection:o,selectionManager:i,get draggedKey(){return h.current},get draggingKeys(){return p.current},isDragging:e=>p.current.has(e),getKeysForDrag:f,getItems:e=>t(f(e)),isDisabled:n,preview:c,getAllowedDropOperations:u,startDrag(e,t){let n=f(e);p.current=n,h.current=e,i.setFocused(!1),d(!0),"function"==typeof a&&a({...t,keys:n})},moveDrag(e){"function"==typeof s&&s({...e,keys:p.current})},endDrag(e){let{isInternal:t}=e;"function"==typeof l&&l({...e,keys:p.current,isInternal:t}),p.current=new Set,h.current=null,d(!1)}}}function i(e){let{acceptedDragTypes:t="all",isDisabled:n,onInsert:o,onRootDrop:i,onItemDrop:s,onReorder:l,shouldAcceptItemDrop:c,collection:u,selectionManager:d,onDropEnter:p,getDropOperation:h,onDrop:f}=e,[m,g]=(0,r.useState)(null),v=(0,r.useRef)(null),y=e=>{if("before"===e.dropPosition){let t=u.getKeyBefore(e.key);return null!=t?{type:"item",key:t,dropPosition:"after"}:null}if("after"===e.dropPosition){let t=u.getKeyAfter(e.key);return null!=t?{type:"item",key:t,dropPosition:"before"}:null}},b=(0,r.useCallback)((e=>{if(n)return"cancel";let{target:r,types:a,allowedOperations:u,isInternal:d,draggingKeys:p}=e;if("all"===t||t.some((e=>a.has(e)))){let e=o&&"item"===r.type&&!d&&("before"===r.dropPosition||"after"===r.dropPosition),t=l&&"item"===r.type&&d&&("before"===r.dropPosition||"after"===r.dropPosition),n=i&&"root"===r.type&&!d,m=s&&"item"===r.type&&"on"===r.dropPosition&&!(d&&p.has(r.key))&&(!c||c(r,a));if(f||e||t||n||m)return h?h(r,a,u):u[0]}return"cancel"}),[n,t,h,o,i,s,c,l,f]);return{collection:u,selectionManager:d,isDisabled:n,target:m,setTarget(t){if(this.isDropTarget(t))return;let n=v.current;n&&"function"==typeof e.onDropExit&&e.onDropExit({type:"dropexit",x:0,y:0,target:n}),t&&"function"==typeof p&&p({type:"dropenter",x:0,y:0,target:t}),v.current=t,g(t)},isDropTarget(e){let t=v.current;return!!a(e,t)||"item"===(null==e?void 0:e.type)&&"item"===(null==t?void 0:t.type)&&e.key!==t.key&&e.dropPosition!==t.dropPosition&&"on"!==e.dropPosition&&"on"!==t.dropPosition&&(a(y(e),t)||a(e,y(t)))},getDropOperation:e=>b(e)}}function a(e,t){if(!e)return!t;switch(e.type){case"root":return"root"===(null==t?void 0:t.type);case"item":return"item"===(null==t?void 0:t.type)&&(null==t?void 0:t.key)===e.key&&(null==t?void 0:t.dropPosition)===e.dropPosition}}},62651:(e,t,n)=>{"use strict"},35998:(e,t,n)=>{"use strict";n.d(t,{tL:()=>l,Q3:()=>c});var r=n(67294);const o={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},i={...o,customError:!0,valid:!1},a={isInvalid:!1,validationDetails:o,validationErrors:[]},s=(0,r.createContext)({}),l="__formValidationState"+Date.now();function c(e){if(e[l]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[l];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return function(e){let{isInvalid:t,validationState:n,name:o,value:l,builtinValidation:c,validate:h,validationBehavior:f="aria"}=e;n&&(t||(t="invalid"===n));let m=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:i}:null,g=(0,r.useMemo)((()=>d(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return u(n)}return[]}(h,l))),[h,l]);(null==c?void 0:c.validationDetails.valid)&&(c=null);let v=(0,r.useContext)(s),y=(0,r.useMemo)((()=>o?Array.isArray(o)?o.flatMap((e=>u(v[e]))):u(v[o]):[]),[v,o]),[b,w]=(0,r.useState)(v),[x,_]=(0,r.useState)(!1);v!==b&&(w(v),_(!1));let S=(0,r.useMemo)((()=>d(x?[]:y)),[x,y]),C=(0,r.useRef)(a),[E,k]=(0,r.useState)(a),z=(0,r.useRef)(a),P=()=>{if(!D)return;A(!1);let e=g||c||C.current;p(e,z.current)||(z.current=e,k(e))},[D,A]=(0,r.useState)(!1);return(0,r.useEffect)(P),{realtimeValidation:m||S||g||c||a,displayValidation:"native"===f?m||S||E:m||S||g||c||E,updateValidation(e){"aria"!==f||p(E,e)?C.current=e:k(e)},resetValidation(){let e=a;p(e,z.current)||(z.current=e,k(e)),"native"===f&&A(!1),_(!0)},commitValidation(){"native"===f&&A(!0),_(!0)}}}(e)}function u(e){return e?Array.isArray(e)?e:[e]:[]}function d(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:i}:null}function p(e,t){return e===t||e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every(((e,n)=>e===t.validationErrors[n]))&&Object.entries(e.validationDetails).every((([e,n])=>t.validationDetails[e]===n))}},61621:(e,t,n)=>{"use strict";n.d(t,{DC:()=>r,n_:()=>s,BA:()=>c});class r{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.iterable=e;let t,n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=0;for(let[e,n]of this.keyMap)t?(t.nextKey=e,n.prevKey=t.key):(this.firstKey=e,n.prevKey=void 0),"item"===n.type&&(n.index=r++),t=n,t.nextKey=void 0;this.lastKey=null==t?void 0:t.key}}var o=n(36624),i=n(67294),a=n(56406);function s(e){let{filter:t}=e,n=(0,o.q)(e),s=(0,i.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),l=(0,i.useCallback)((e=>new r(t?t(e):e)),[t]),c=(0,i.useMemo)((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),u=(0,a.Kx)(e,l,c),d=(0,i.useMemo)((()=>new(0,o.Z)(u,n)),[u,n]);const p=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(null!=n.focusedKey&&!u.getItem(n.focusedKey)){const e=p.current.getItem(n.focusedKey),t=[...p.current.getKeys()].map((e=>{const t=p.current.getItem(e);return"item"===t.type?t:null})).filter((e=>null!==e)),r=[...u.getKeys()].map((e=>{const t=u.getItem(e);return"item"===t.type?t:null})).filter((e=>null!==e)),o=t.length-r.length;let i,a=Math.min(o>1?Math.max(e.index-o+1,0):e.index,r.length-1),s=!1;for(;a>=0;){if(!d.isDisabled(r[a].key)){i=r[a];break}a<r.length-1&&!s?a++:(s=!0,a>e.index&&(a=e.index),a--)}n.setFocusedKey(i?i.key:null)}p.current=u}),[u,d,n,n.focusedKey]),{collection:u,disabledKeys:s,selectionManager:d}}var l=n(80539);function c(e){var t;let[n,r]=(0,l.zk)(e.selectedKey,null!==(t=e.defaultSelectedKey)&&void 0!==t?t:null,e.onSelectionChange),o=(0,i.useMemo)((()=>null!=n?[n]:[]),[n]),{collection:a,disabledKeys:c,selectionManager:u}=s({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:t=>{var o;let i=null!==(o=t.values().next().value)&&void 0!==o?o:null;i===n&&e.onSelectionChange&&e.onSelectionChange(i),r(i)}}),d=null!=n?a.getItem(n):null;return{collection:a,disabledKeys:c,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:d}}},31417:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(106),o=n(67294);function i(e){let t=(0,r.d)(e),[n,i]=(0,o.useState)(null),[a,s]=(0,o.useState)([]);return{focusStrategy:n,...t,open(e=null){i(e),t.open()},toggle(e=null){i(e),t.toggle()},close(){s([]),t.close()},expandedKeysStack:a,openSubmenu:(e,t)=>{s((n=>t>n.length?n:[...n.slice(0,t),e]))},closeSubmenu:(e,t)=>{s((n=>n[t]===e?n.slice(0,t):n))}}}},27436:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});var r=n(80539),o=n(35998),i=n(89424),a=n(67294);function s(e){let{minValue:t,maxValue:n,step:s,formatOptions:c,value:u,defaultValue:d=NaN,onChange:p,locale:h,isDisabled:f,isReadOnly:m}=e;null===u&&(u=NaN),void 0===u||isNaN(u)||(u=void 0===s||isNaN(s)?(0,r.uZ)(u,t,n):(0,r.N4)(u,t,n,s)),isNaN(d)||(d=void 0===s||isNaN(s)?(0,r.uZ)(d,t,n):(0,r.N4)(d,t,n,s));let[g,v]=(0,r.zk)(u,isNaN(d)?NaN:d,p),[y,b]=(0,a.useState)((()=>isNaN(g)?"":new(0,i.e)(h,c).format(g))),w=(0,a.useMemo)((()=>new(0,i.d)(h,c)),[h,c]),x=(0,a.useMemo)((()=>w.getNumberingSystem(y)),[w,y]),_=(0,a.useMemo)((()=>new(0,i.e)(h,{...c,numberingSystem:x})),[h,c,x]),S=(0,a.useMemo)((()=>_.resolvedOptions()),[_]),C=(0,a.useCallback)((e=>isNaN(e)||null===e?"":_.format(e)),[_]),E=(0,o.Q3)({...e,value:g}),k=void 0===s||isNaN(s)?1:s;"percent"!==S.style||void 0!==s&&!isNaN(s)||(k=.01);let[z,P]=(0,a.useState)(g),[D,A]=(0,a.useState)(h),[T,I]=(0,a.useState)(c);Object.is(g,z)&&h===D&&c===T||(b(C(g)),P(g),A(h),I(c));let M=(0,a.useMemo)((()=>w.parse(y)),[w,y]),R=(e,o=0)=>{let i=M;if(isNaN(i)){let e=isNaN(o)?0:o;return(0,r.N4)(e,t,n,k)}{let o=(0,r.N4)(i,t,n,k);return"+"===e&&o>i||"-"===e&&o<i?o:(0,r.N4)(l(e,i,k),t,n,k)}},F=(0,a.useMemo)((()=>!f&&!m&&(isNaN(M)||void 0===n||isNaN(n)||(0,r.N4)(M,t,n,k)>M||l("+",M,k)<=n)),[f,m,t,n,k,M]),N=(0,a.useMemo)((()=>!f&&!m&&(isNaN(M)||void 0===t||isNaN(t)||(0,r.N4)(M,t,n,k)<M||l("-",M,k)>=t)),[f,m,t,n,k,M]);return{...E,validate:e=>w.isValidPartialNumber(e,t,n),increment:()=>{let e=R("+",t);e===g&&b(C(e)),v(e),E.commitValidation()},incrementToMax:()=>{null!=n&&(v((0,r.N4)(n,t,n,k)),E.commitValidation())},decrement:()=>{let e=R("-",n);e===g&&b(C(e)),v(e),E.commitValidation()},decrementToMin:()=>{null!=t&&(v(t),E.commitValidation())},canIncrement:F,canDecrement:N,minValue:t,maxValue:n,numberValue:M,setNumberValue:v,setInputValue:b,inputValue:y,commit:()=>{if(!y.length)return v(NaN),void b(void 0===u?"":C(g));if(isNaN(M))return void b(C(g));let e;e=void 0===s||isNaN(s)?(0,r.uZ)(M,t,n):(0,r.N4)(M,t,n,s),e=w.parse(C(e)),v(e),b(C(void 0===u?e:g))}}}function l(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){const o=t.toString().split("."),i=n.toString().split("."),a=o[1]&&o[1].length||0,s=i[1]&&i[1].length||0,l=Math.pow(10,Math.max(a,s));t=Math.round(t*l),n=Math.round(n*l),r="+"===e?t+n:t-n,r/=l}return r}},106:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(67294),o=n(80539);function i(e){let[t,n]=(0,o.zk)(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const i=(0,r.useCallback)((()=>{n(!0)}),[n]),a=(0,r.useCallback)((()=>{n(!1)}),[n]),s=(0,r.useCallback)((()=>{n(!t)}),[n,t]);return{isOpen:t,setOpen:n,open:i,close:a,toggle:s}}},49713:(e,t,n)=>{"use strict";n.d(t,{w:()=>l});var r=n(35998),o=n(80539),i=n(67294);let a=Math.round(1e10*Math.random()),s=0;function l(e){let t=(0,i.useMemo)((()=>e.name||`radio-group-${a}-${++s}`),[e.name]);var n;let[l,c]=(0,o.zk)(e.value,null!==(n=e.defaultValue)&&void 0!==n?n:null,e.onChange),[u,d]=(0,i.useState)(null),p=(0,r.Q3)({...e,value:l}),h=p.displayValidation.isInvalid;return{...p,name:t,selectedValue:l,setSelectedValue:t=>{e.isReadOnly||e.isDisabled||(c(t),p.commitValidation())},lastFocusedValue:u,setLastFocusedValue:d,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(h?"invalid":null),isInvalid:h}}},52836:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(80539);function o(e){let[t,n]=(0,r.zk)(i(e.value),i(e.defaultValue)||"",e.onChange);return{value:t,setValue:n}}function i(e){if(null!=e)return e.toString()}},7805:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(35998),o=n(106),i=n(61621),a=n(67294);function s(e){let t=(0,o.d)(e),[n,s]=(0,a.useState)(null),l=(0,i.BA)({...e,onSelectionChange:n=>{null!=e.onSelectionChange&&e.onSelectionChange(n),t.close(),c.commitValidation()}}),c=(0,r.Q3)({...e,value:l.selectedKey}),[u,d]=(0,a.useState)(!1);return{...c,...l,...t,focusStrategy:n,open(e=null){0!==l.collection.size&&(s(e),t.open())},toggle(e=null){0!==l.collection.size&&(s(e),t.toggle())},isFocused:u,setFocused:d}}},36624:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,q:()=>a});class r extends Set{constructor(e,t,n){super(e),e instanceof r?(this.anchorKey=t||e.anchorKey,this.currentKey=n||e.currentKey):(this.anchorKey=t,this.currentKey=n)}}var o=n(80539),i=n(67294);function a(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:a,selectionBehavior:l="toggle",disabledBehavior:c="all"}=e,u=(0,i.useRef)(!1),[,d]=(0,i.useState)(!1),p=(0,i.useRef)(null),h=(0,i.useRef)(null),[,f]=(0,i.useState)(null),m=(0,i.useMemo)((()=>s(e.selectedKeys)),[e.selectedKeys]),g=(0,i.useMemo)((()=>s(e.defaultSelectedKeys,new r)),[e.defaultSelectedKeys]),[v,y]=(0,o.zk)(m,g,e.onSelectionChange),b=(0,i.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[w,x]=(0,i.useState)(l);"replace"===l&&"toggle"===w&&"object"==typeof v&&0===v.size&&x("replace");let _=(0,i.useRef)(l);return(0,i.useEffect)((()=>{l!==_.current&&(x(l),_.current=l)}),[l]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:x,get isFocused(){return u.current},setFocused(e){u.current=e,d(e)},get focusedKey(){return p.current},get childFocusStrategy(){return h.current},setFocusedKey(e,t="first"){p.current=e,h.current=t,f(e)},selectedKeys:v,setSelectedKeys(e){!a&&function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,v)||y(e)},disabledKeys:b,disabledBehavior:c}}function s(e,t){return e?"all"===e?"all":new r(e):t}var l=n(56406);class c{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&(0,l.eg)(this.collection,n,e)<0)&&(e=n)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&(0,l.eg)(this.collection,n,e)>0)&&(e=n)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new r([e],e,e);else{let n=this.state.selectedKeys,o=n.anchorKey||e;t=new r(n,o,e);for(let r of this.getKeyRange(o,n.currentKey||e))t.delete(r);for(let n of this.getKeyRange(e,o))this.canSelectItem(n)&&t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?(0,l.eg)(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new r("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode)return;if(null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new r([e],e,e):new r;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new r;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;null!=n;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);"item"===r.type&&e.push(n),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&t((0,l.l8)((0,l._P)(r,this.collection)).key)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new r)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||(null==n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)||"cell"===n.type&&!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,n){var r;this.collection=e,this.state=t,this.allowsCellSelection=null!==(r=null==n?void 0:n.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null}}},1413:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(80539),o=n(67294);const i=0,a=100,s=1;function l(e){const{isDisabled:t=!1,minValue:n=i,maxValue:l=a,numberFormatter:p,step:h=s,orientation:f="horizontal"}=e;let m=(0,o.useMemo)((()=>{let e=(l-n)/10;return e=(0,r.N4)(e,0,e+h,h),Math.max(e,h)}),[h,l,n]),g=(0,o.useCallback)((e=>null==e?void 0:e.map(((t,o)=>{let i=0===o?n:t[o-1],a=o===e.length-1?l:t[o+1];return(0,r.N4)(t,i,a,h)}))),[n,l,h]),v=(0,o.useMemo)((()=>g(u(e.value))),[e.value]),y=(0,o.useMemo)((()=>{var t;return g(null!==(t=u(e.defaultValue))&&void 0!==t?t:[n])}),[e.defaultValue,n]),b=d(e.value,e.defaultValue,e.onChange),w=d(e.value,e.defaultValue,e.onChangeEnd);const[x,_]=(0,r.zk)(v,y,b),[S,C]=(0,o.useState)(new Array(x.length).fill(!1)),E=(0,o.useRef)(new Array(x.length).fill(!0)),[k,z]=(0,o.useState)(void 0),P=(0,o.useRef)(x),D=(0,o.useRef)(S);function A(e){return(e-n)/(l-n)}function T(e){return 0===e?n:x[e-1]}function I(e){return e===x.length-1?l:x[e+1]}function M(e){return E.current[e]}function R(e,n){if(t||!M(e))return;const o=T(e),i=I(e);n=(0,r.N4)(n,o,i,h),(e=>{P.current=e,_(e)})(c(P.current,e,n))}function F(e){return p.format(e)}function N(e){const t=e*(l-n)+n;return(0,r.uZ)(function(e){return Math.round((e-n)/h)*h+n}(t),n,l)}return{values:x,getThumbValue:e=>x[e],setThumbValue:R,setThumbPercent:function(e,t){R(e,N(t))},isThumbDragging:e=>S[e],setThumbDragging:function(e,n){if(t||!M(e))return;n&&(P.current=x);const r=D.current[e];var o;D.current=c(D.current,e,n),o=D.current,D.current=o,C(o),w&&r&&!D.current.some(Boolean)&&w(P.current)},focusedThumb:k,setFocusedThumb:z,getThumbPercent:e=>A(x[e]),getValuePercent:A,getThumbValueLabel:e=>F(x[e]),getFormattedValue:F,getThumbMinValue:T,getThumbMaxValue:I,getPercentValue:N,isThumbEditable:M,setThumbEditable:function(e,t){E.current[e]=t},incrementThumb:function(e,t=1){let o=Math.max(t,h);R(e,(0,r.N4)(x[e]+o,n,l,h))},decrementThumb:function(e,t=1){let o=Math.max(t,h);R(e,(0,r.N4)(x[e]-o,n,l,h))},step:h,pageSize:m,orientation:f,isDisabled:t}}function c(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function u(e){if(null!=e)return Array.isArray(e)?e:[e]}function d(e,t,n){return r=>{"number"==typeof e||"number"==typeof t?null==n||n(r[0]):null==n||n(r)}}},18786:(e,t,n)=>{"use strict";var r=n(67294);n(56406),n(36624);class o{*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){var e;return null===[...this.rows][0]||void 0===e?void 0:e.key}getLastKey(){var e;let t=[...this.rows];return null===t[t.length-1]||void 0===e?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=null==e?void 0:e.columnCount,this.rows=[];let t,n=t=>{let o=this.keyMap.get(t.key);e.visitNode&&e.visitNode(t),this.keyMap.set(t.key,t);let i,a=new Set;for(let e of t.childNodes)"cell"===e.type&&null==e.parentKey&&(e.parentKey=t.key),a.add(e.key),i?(i.nextKey=e.key,e.prevKey=i.key):e.prevKey=null,n(e),e;if(i&&(i.nextKey=null),o)for(let e of o.childNodes)a.has(e.key)||r(e)},r=e=>{this.keyMap.delete(e.key);for(let t of e.childNodes)this.keyMap.get(t.key)===t&&r(t)};e.items.forEach(((e,r)=>{let o={level:0,key:"row-"+r,type:"row",value:void 0,hasChildNodes:!0,childNodes:[...e.childNodes],rendered:void 0,textValue:void 0,...e};t?(t.nextKey=o.key,o.prevKey=t.key):o.prevKey=null,this.rows.push(o),n(o),o})),t&&(t.nextKey=null)}}const i="row-header-column-"+Math.random().toString(36).slice(2);let a="row-header-column-"+Math.random().toString(36).slice(2);for(;i===a;)a="row-header-column-"+Math.random().toString(36).slice(2);class s extends o{*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){var e;return null===(0,dist_import.l8)(this.body.childNodes)||void 0===e?void 0:e.key}getLastKey(){var e;return null===(0,dist_import.s)(this.body.childNodes)||void 0===e?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){return e===this.body.key?this.body.childNodes:super.getChildren(e)}getTextValue(e){let t=this.getItem(e);if(!t)return"";if(t.textValue)return t.textValue;let n=this.rowHeaderColumnKeys;if(n){let e=[];for(let r of t.childNodes){let t=this.columns[r.index];if(n.has(t.key)&&r.textValue&&e.push(r.textValue),e.length===n.size)break}return e.join(" ")}return""}constructor(e,t,n){let r,o=new Set,s=[];if(null==n?void 0:n.showSelectionCheckboxes){let e={type:"column",key:i,value:null,textValue:"",level:0,index:(null==n?void 0:n.showDragButtons)?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};s.unshift(e)}if(null==n?void 0:n.showDragButtons){let e={type:"column",key:a,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};s.unshift(e)}let l=[],c=new Map,u=e=>{switch(e.type){case"body":e;break;case"column":c.set(e.key,e),e.hasChildNodes||(s.push(e),e.props.isRowHeader&&o.add(e.key));break;case"item":return void l.push(e)}for(let t of e.childNodes)u(t)};for(let t of e)u(t);let d=function(e,t){if(0===t.length)return[];let n=[],r=new Map;for(let o of t){let t=o.parentKey,i=[o];for(;t;){let n=e.get(t);if(!n)break;if(r.has(n)){n.colspan++;let{column:e,index:t}=r.get(n);if(t>i.length)break;for(let n=t;n<i.length;n++)e.splice(n,0,null);for(let t=i.length;t<e.length;t++)e[t]&&r.has(e[t])&&(r.get(e[t]).index=t)}else n.colspan=1,i.push(n),r.set(n,{column:i,index:i.length-1});n.parentKey}n.push(i),o.index=n.length-1}let o=Math.max(...n.map((e=>e.length))),i=Array(o).fill(0).map((()=>[])),a=0;for(let e of n){let t=o-1;for(let n of e){if(n){let e=i[t],r=e.reduce(((e,t)=>e+t.colspan),0);if(r<a){let o={type:"placeholder",key:"placeholder-"+n.key,colspan:a-r,index:r,value:null,rendered:null,level:t,hasChildNodes:!1,childNodes:[],textValue:null};e.length>0&&(e[e.length-1].nextKey=o.key,o.prevKey=e[e.length-1].key),e.push(o)}e.length>0&&(e[e.length-1].nextKey=n.key,n.prevKey=e[e.length-1].key),n.level=t,n.colIndex=a,e.push(n)}0}0}let s=0;for(let e of i){let n=e.reduce(((e,t)=>e+t.colspan),0);if(n<t.length){let r={type:"placeholder",key:"placeholder-"+e[e.length-1].key,colspan:t.length-n,index:n,value:null,rendered:null,level:s,hasChildNodes:!1,childNodes:[],textValue:null,prevKey:e[e.length-1].key};e.push(r)}0}return i.map(((e,t)=>({type:"headerrow",key:"headerrow-"+t,index:t,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:e,textValue:null})))}(c,s);d.forEach(((e,t)=>l.splice(t,0,e))),super({columnCount:s.length,items:l,visitNode:e=>(e.column=s[e.index],e)}),this._size=0,this.columns=s,this.rowHeaderColumnKeys=o,this.body=r,this.headerRows=d,this._size=[...r.childNodes].length,0===this.rowHeaderColumnKeys.size&&this.rowHeaderColumnKeys.add(this.columns.find((e=>{var t,n;return!(null===e.props||void 0===t?void 0:t.isDragButtonCell)&&!(null===e.props||void 0===n?void 0:n.isSelectionCell)})).key)}}function l(e){return null}l.getCollectionNode=function*(e,t){let{children:n,columns:o}=e;if(t.columns=[],"function"==typeof n){if(!o)throw new Error("props.children was a function but props.columns is missing");for(let e of o)yield{type:"column",value:e,renderer:n}}else{let e=[];r.Children.forEach(n,(t=>{e.push({type:"column",element:t})})),yield*e}};function c(e){return null}c.getCollectionNode=function*(e){let{children:t,items:n}=e;yield{type:"body",hasChildNodes:!0,props:e,*childNodes(){if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.items is missing");for(let e of n)yield{type:"item",value:e,renderer:t}}else{let e=[];r.Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};function u(e){return null}u.getCollectionNode=function*(e,t){let{title:n,children:o,childColumns:i}=e,a=n||o,s=e.textValue||("string"==typeof a?a:"")||e["aria-label"],l=yield{type:"column",hasChildNodes:!!i||n&&r.Children.count(o)>0,rendered:a,textValue:s,props:e,*childNodes(){if(i)for(let e of i)yield{type:"column",value:e};else if(n){let e=[];r.Children.forEach(o,(t=>{e.push({type:"column",element:t})})),yield*e}},shouldInvalidate:e=>(c(e),!1)},c=e=>{for(let t of l)t.hasChildNodes||e.columns.push(t)};c(t)};function d(e){return null}d.getCollectionNode=function*(e,t){let{children:n,textValue:o,UNSTABLE_childItems:i}=e;yield{type:"item",props:e,textValue:o,"aria-label":e["aria-label"],hasChildNodes:!0,*childNodes(){if(t.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),t.showSelectionCheckboxes&&"none"!==t.selectionMode&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),"function"==typeof n){for(let e of t.columns)yield{type:"cell",element:n(e.key),key:e.key};if(i)for(let e of i)yield{type:"item",value:e}}else{let e=[],o=[];if(r.Children.forEach(n,(n=>{if(n.type===d){if(e.length<t.columns.length)throw new Error("All of a Row's child Cells must be positioned before any child Rows.");o.push({type:"item",element:n})}else e.push({type:"cell",element:n})})),e.length!==t.columns.length)throw new Error(`Cell count must match column count. Found ${e.length} cells and ${t.columns.length} columns.`);yield*e,yield*o}},shouldInvalidate:e=>e.columns.length!==t.columns.length||e.columns.some(((e,n)=>e.key!==t.columns[n].key))||e.showSelectionCheckboxes!==t.showSelectionCheckboxes||e.showDragButtons!==t.showDragButtons||e.selectionMode!==t.selectionMode}};function p(e){return null}p.getCollectionNode=function*(e){let{children:t}=e,n=e.textValue||("string"==typeof t?t:"")||e["aria-label"]||"";yield{type:"cell",props:e,rendered:t,textValue:n,"aria-label":e["aria-label"],hasChildNodes:!1}};n(62651),n(80539)},94464:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(61621),o=n(67294);function i(e){var t;let n=(0,r.BA)({...e,suppressTextValueWarning:!0,defaultSelectedKey:null!==(t=e.defaultSelectedKey)&&void 0!==t?t:a(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:i,collection:s,selectedKey:l}=n,c=(0,o.useRef)(l);return(0,o.useEffect)((()=>{let e=l;!i.isEmpty&&s.getItem(e)||(e=a(s,n.disabledKeys),null!=e&&i.setSelectedKeys([e])),(null!=e&&null==i.focusedKey||!i.isFocused&&e!==c.current)&&i.setFocusedKey(e),c.current=e})),{...n,isDisabled:e.isDisabled||!1}}function a(e,t){let n=null;if(e){var r,o,i,a;for(n=e.getFirstKey();(t.has(n)||(null===(o=e.getItem(n))||void 0===o||null===(r=o.props)||void 0===r?void 0:r.isDisabled))&&n!==e.getLastKey();)n=e.getKeyAfter(n);(t.has(n)||(null===(a=e.getItem(n))||void 0===a||null===(i=a.props)||void 0===i?void 0:i.isDisabled))&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}},94730:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var r=n(80539);function o(e={}){let{isReadOnly:t}=e,[n,o]=(0,r.zk)(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||o(e)},toggle:function(){t||o(!n)}}}},52378:(e,t,n)=>{"use strict";n.d(t,{O:()=>p});var r=n(67294),o=n(106);const i=1500,a=500;let s={},l=0,c=!1,u=null,d=null;function p(e={}){let{delay:t=i,closeDelay:n=a}=e,{isOpen:p,open:h,close:f}=(0,o.d)(e),m=(0,r.useMemo)((()=>""+ ++l),[]),g=(0,r.useRef)(void 0),v=(0,r.useRef)(f),y=()=>{s[m]=x},b=()=>{for(let e in s)e!==m&&(s[e](!0),delete s[e])},w=()=>{clearTimeout(g.current),g.current=null,b(),y(),c=!0,h(),u&&(clearTimeout(u),u=null),d&&(clearTimeout(d),d=null)},x=e=>{e||n<=0?(clearTimeout(g.current),g.current=null,v.current()):g.current||(g.current=setTimeout((()=>{g.current=null,v.current()}),n)),u&&(clearTimeout(u),u=null),c&&(d&&clearTimeout(d),d=setTimeout((()=>{delete s[m],d=null,c=!1}),Math.max(a,n)))};return(0,r.useEffect)((()=>{v.current=f}),[f]),(0,r.useEffect)((()=>()=>{clearTimeout(g.current),s[m]&&delete s[m]}),[m]),{isOpen:p,open:e=>{!e&&t>0&&!g.current?(b(),y(),p||u||c?p||w():u=setTimeout((()=>{u=null,c=!0,w()}),t)):w()},close:x}}},98517:(e,t,n)=>{"use strict";n.d(t,{D:()=>l});class r{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.iterable=e,t=t||new Set;let n,r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&("section"===e.type||t.has(e.key)))for(let t of e.childNodes)r(t)};for(let t of e)r(t);let o=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=o++),n=t,n.nextKey=void 0;this.lastKey=null==n?void 0:n.key}}var o=n(36624),i=n(67294),a=n(56406),s=n(80539);function l(e){let{onExpandedChange:t}=e,[n,l]=(0,s.zk)(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),c=(0,o.q)(e),u=(0,i.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),d=(0,a.Kx)(e,(0,i.useCallback)((e=>new r(e,{expandedKeys:n})),[n]),null);(0,i.useEffect)((()=>{null==c.focusedKey||d.getItem(c.focusedKey)||c.setFocusedKey(null)}),[d,c.focusedKey]);return{collection:d,expandedKeys:n,disabledKeys:u,toggleKey:e=>{l(function(e,t){let n=new Set(e);n.has(t)?n.delete(t):n.add(t);return n}(n,e))},setExpandedKeys:l,selectionManager:new(0,o.Z)(d,c)}}},80539:(e,t,n)=>{"use strict";n.d(t,{uZ:()=>i,N4:()=>s,lt:()=>l,zk:()=>o});var r=n(67294);function o(e,t,n){let[o,i]=(0,r.useState)(e||t),a=(0,r.useRef)(void 0!==e),s=void 0!==e;(0,r.useEffect)((()=>{let e=a.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s}),[s]);let l=s?e:o,c=(0,r.useCallback)(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(l,e)||n(e,...t)),s||(l=e)};if("function"==typeof e){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i(((n,...o)=>{let i=e(s?l:n,...o);return r(i,...t),s?n:i}))}else s||i(e),r(e,...t)}),[s,l,n]);return[l,c]}function i(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function a(e,t){let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let e=Math.pow(10,i);n=Math.round(n*e)/e}return n}function s(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=a(2*Math.abs(o)>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o,r);return isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(a(n/r,r))*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor(a((n-t)/r,r))*r),i=a(i,r),i}function l(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r}},44228:(e,t,n)=>{"use strict";n.d(t,{xC:()=>E,oM:()=>A});var r=n(76438),o=n(28623);function i(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var a=e=>Array.isArray(e)?e:[e];function s(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function l(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}Symbol(),Object.getPrototypeOf({});var c="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function u(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t={s:0,v:void 0,o:null,p:null},e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t={s:0,v:void 0,o:null,p:null},e.set(n,t)):t=r}}const s=t;let l;if(1===t.s?l=t.v:(l=e.apply(null,arguments),i++),s.s=1,r){const e=o?.deref?.()??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--);o="object"==typeof l&&null!==l||"function"==typeof l?new c(l):l}return s.v=l,l}return a.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function d(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,c={},d=e.pop();"object"==typeof d&&(c=d,d=e.pop()),i(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const p={...n,...c},{memoize:h,memoizeOptions:f=[],argsMemoize:m=u,argsMemoizeOptions:g=[],devModeChecks:v={}}=p,y=a(f),b=a(g),w=s(e),x=h((function(){return r++,d.apply(null,arguments)}),...y);const _=m((function(){o++;const e=l(w,arguments);return t=x.apply(null,e),t}),...b);return Object.assign(_,{resultFunc:d,memoizedResultFunc:x,dependencies:w,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:h,argsMemoize:m})};return Object.assign(r,{withTypes:()=>r}),r}var p=d(u),h=Object.assign(((e,t=p)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>h});function f(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var m=f(),g=f,v=(((...e)=>{const t=d(...e)})(u),"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?r.qC:r.qC.apply(null,arguments)});"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function y(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(R(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>(0,r.LG)(t)&&t.type===e,n}var b=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function w(e){return(0,o.o$)(e)?(0,o.Uy)(e,(()=>{})):e}function x(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(R(10));const r=n.insert(t,e);return e.set(t,r),r}var _=e=>t=>{setTimeout(t,e)},S="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:_(10),C=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new b(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?S:"callback"===e.type?e.queueNotification:_(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>o&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.RTK_autoBatch,i=!o,i&&(a||(a=!0,l(c))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r};function E(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new b;return t&&("boolean"==typeof t?i.push(m):i.push(g(t.extraArgument))),i},{reducer:n,middleware:o,devTools:i=!0,preloadedState:a,enhancers:s}=e||{};let l,c;if("function"==typeof n)l=n;else{if(!(0,r.PO)(n))throw new Error(R(1));l=(0,r.UY)(n)}c="function"==typeof o?o(t):t();let u=r.qC;i&&(u=v({trace:!1,..."object"==typeof i&&i}));const d=(0,r.md)(...c),p=C(d);let h="function"==typeof s?s(p):p();const f=u(...h);return(0,r.MT)(l,a,f)}function k(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(R(28));if(r in t)throw new Error(R(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var z=Symbol.for("rtk-slice-createasyncthunk");function P(e,t){return`${e}/${t}`}function D(e,t,n,r){function o(o,...i){let a=n.call(e,o);return void 0===a&&r&&(a=e.getInitialState()),t(a,...i)}return o.unwrapped=t,o}var A=function({creators:e}={}){const t=e?.asyncThunk?.[z];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(R(11));const i=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(i),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(R(12));if(n in s.sliceCaseReducersByType)throw new Error(R(13));return s.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(s.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(s.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(s.sliceCaseReducersByName[e]=t,l)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?k(e.extraReducers):[e.extraReducers],i={...t,...s.sliceCaseReducersByType};return function(e,t){let n,[r,i,a]=k(t);if("function"==typeof e)n=()=>w(e());else{const t=w(e);n=()=>t}function s(e=n(),t){let s=[r[t.type],...i.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===s.filter((e=>!!e)).length&&(s=[a]),s.reduce(((e,n)=>{if(n){if((0,o.mv)(e)){const r=n(e,t);return void 0===r?e:r}if((0,o.o$)(e))return(0,o.Uy)(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(R(9))}return r}}return e}),e)}return s.getInitialState=n,s}(e.initialState,(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of s.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}a.forEach((r=>{const o=i[r],a={reducerName:r,type:P(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(R(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?y(e,a):y(e))}(a,o,l):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(R(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);c&&r.addMatcher(d.settled,c);r.exposeCaseReducer(t,{fulfilled:a||T,pending:s||T,rejected:l||T,settled:c||T})}(a,o,l,t)}));const u=e=>e,d=new WeakMap;let p;const h={name:n,reducerPath:r,reducer:(e,t)=>(p||(p=c()),p(e,t)),actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:()=>(p||(p=c()),p.getInitialState()),getSelectors(t=u){const n=x(d,this,{insert:()=>new WeakMap});return x(n,t,{insert:()=>{const n={};for(const[r,o]of Object.entries(e.selectors??{}))n[r]=D(this,o,t,this!==h);return n}})},selectSlice(e){let t=e[this.reducerPath];return void 0===t&&this!==h&&(t=this.getInitialState()),t},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(e,{reducerPath:t,...n}={}){const r=t??this.reducerPath;return e.inject({reducerPath:r,reducer:this.reducer},n),{...this,reducerPath:r}}};return h}}();function T(){}var{assign:I}=Object,M="listenerMiddleware";y(`${M}/add`),y(`${M}/removeAll`),y(`${M}/remove`);Symbol.for("rtk-state-proxy-original");function R(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},2278:(e,t,n)=>{"use strict";function r(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n.d(t,{_:()=>r})},4338:(e,t)=>{"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsReader=void 0;var r=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ownerDocument=null,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]&&(r[e]=t[e])}))}var t,r,o;return t=e,(r=[{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){return this.ownerDocument?this.ownerDocument:this.window?this.window.document:void 0}}])&&n(t.prototype,r),o&&n(t,o),e}();t.OptionsReader=r},2874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TouchBackendImpl=void 0;var r,o=n(47930),i=n(96944),a=n(91527),s=n(68953),l=n(68827),c=n(17890),u=n(4338);function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=(p(r={},i.ListenerType.mouse,{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"}),p(r,i.ListenerType.touch,{start:"touchstart",move:"touchmove",end:"touchend"}),p(r,i.ListenerType.keyboard,{keydown:"keydown"}),r),f=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lastClientOffset=null,this.lastDragOverTargetIds=null,this.updateTimer=null,this.getSourceClientOffset=function(e){var t=o.sourceNodes.get(e);return t&&(0,s.getNodeClientOffset)(t)},this.handleTopMoveStartCapture=function(e){(0,a.eventShouldStartDrag)(e)&&(o.moveStartSourceIds=[])},this.handleMoveStart=function(e){Array.isArray(o.moveStartSourceIds)&&o.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=function(e){if((0,a.eventShouldStartDrag)(e)){var t=(0,s.getEventClientOffset)(e);if(t){(0,a.isTouchEvent)(e)&&(o.lastTargetTouchFallback=e.targetTouches[0]),o._mouseClientOffset=t;var n=e.type===h.touch.start?o.options.delayTouchStart:o.options.delayMouseStart;if(!o.monitor.isDragging()&&o.waitingForDelay&&n>0){var r=o.moveStartSourceIds;o.actions.beginDrag(r,{clientOffset:o._mouseClientOffset,getSourceClientOffset:o.getSourceClientOffset,publishSource:!1})}}o.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(e){if((0,a.eventShouldStartDrag)(e)){var t=e.type===h.touch.start?o.options.delayTouchStart:o.options.delayMouseStart;o.timeout=setTimeout(o.handleTopMoveStart.bind(o,e),t),o.waitingForDelay=!0}},this.handleTopMoveCapture=function(){o.dragOverTargetIds=[]},this.handleMove=function(e,t){o.dragOverTargetIds&&o.dragOverTargetIds.unshift(t)},this.handleTopMove=function(e){if(o.document&&!o.waitingForDelay){o.timeout&&clearTimeout(o.timeout);var t=o.moveStartSourceIds,n=o.dragOverTargetIds,r=o.options.enableHoverOutsideTarget,i=(0,s.getEventClientOffset)(e,o.lastTargetTouchFallback);if(i)if(o._isScrolling||!o.monitor.isDragging()&&(0,l.inAngleRanges)(o._mouseClientOffset.x||0,o._mouseClientOffset.y||0,i.x,i.y,o.options.scrollAngleRanges))o._isScrolling=!0;else if(!o.monitor.isDragging()&&o._mouseClientOffset.hasOwnProperty("x")&&t&&(0,l.distance)(o._mouseClientOffset.x||0,o._mouseClientOffset.y||0,i.x,i.y)>(o.options.touchSlop?o.options.touchSlop:0)&&(o.moveStartSourceIds=void 0,o.actions.beginDrag(t,{clientOffset:o._mouseClientOffset,getSourceClientOffset:o.getSourceClientOffset,publishSource:!1})),o.monitor.isDragging()){var a=o.sourceNodes.get(o.monitor.getSourceId());o.installSourceNodeRemovalObserver(a),o.actions.publishDragSource(),e.cancelable&&e.preventDefault();var c=(n||[]).map((function(e){return o.targetNodes.get(e)})).filter((function(e){return!!e})),u=o.options.getDropTargetElementsAtPoint?o.options.getDropTargetElementsAtPoint(i.x,i.y,c):o.document.elementsFromPoint(i.x,i.y),d=[];for(var p in u)if(u.hasOwnProperty(p)){var h=u[p];for(d.push(h);h;)(h=h.parentElement)&&-1===d.indexOf(h)&&d.push(h)}var f=d.filter((function(e){return c.indexOf(e)>-1})).map((function(e){return o._getDropTargetId(e)})).filter((function(e){return!!e})).filter((function(e,t,n){return n.indexOf(e)===t}));if(r)for(var m in o.targetNodes){var g=o.targetNodes.get(m);if(a&&g&&g.contains(a)&&-1===f.indexOf(m)){f.unshift(m);break}}if(o.lastDragOverTargetIds=f.reverse(),o.lastClientOffset=i,!o.updateTimer){var v=function e(){o.monitor.isDragging()&&(o.actions.hover(o.lastDragOverTargetIds,{clientOffset:o.lastClientOffset}),o.updateTimer=requestAnimationFrame(e))};o.updateTimer=requestAnimationFrame((function(){v()}))}}}},this._getDropTargetId=function(e){for(var t=o.targetNodes.keys(),n=t.next();!1===n.done;){var r=n.value;if(e===o.targetNodes.get(r))return r;n=t.next()}},this.handleTopMoveEndCapture=function(e){o._isScrolling=!1,o.lastTargetTouchFallback=void 0,(0,a.eventShouldEndDrag)(e)&&(o.monitor.isDragging()&&!o.monitor.didDrop()?(e.cancelable&&e.preventDefault(),o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.drop(),o.actions.endDrag(),o.updateTimer&&cancelAnimationFrame(o.updateTimer),o.updateTimer=null):o.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&o.monitor.isDragging()&&(o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.endDrag())},this.options=new u.OptionsReader(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(i.ListenerType.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(i.ListenerType.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(i.ListenerType.keyboard)}var t,n,r;return t=e,(n=[{key:"profile",value:function(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"setup",value:function(){this.document&&((0,o.invariant)(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(this.document,"start",this.getTopMoveStartHandler()),this.addEventListener(this.document,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(this.document,"move",this.handleTopMove),this.addEventListener(this.document,"move",this.handleTopMoveCapture,!0),this.addEventListener(this.document,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(this.document,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(this.document,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){this.document&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(this.document,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(this.document,"start",this.handleTopMoveStart),this.removeEventListener(this.document,"move",this.handleTopMoveCapture,!0),this.removeEventListener(this.document,"move",this.handleTopMove),this.removeEventListener(this.document,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(this.document,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(this.document,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"throttle",value:function(e,t){var n=!1;return function(r){n||(e(r),n=!0,setTimeout((function(){n=!1}),t))}}},{key:"addEventListener",value:function(e,t,n,r){var o=c.supportsPassive?{capture:r,passive:!1}:r,i=this.throttle(n,50);this.listenerTypes.forEach((function(n){var r=h[n][t];r&&e.addEventListener(r,i,o)}))}},{key:"removeEventListener",value:function(e,t,n,r){var o=c.supportsPassive?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var i=h[r][t];i&&e.removeEventListener(i,n,o)}))}},{key:"connectDragSource",value:function(e,t){var n=this,r=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",r),function(){n.sourceNodes.delete(e),n.removeEventListener(t,"start",r)}}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDropTarget",value:function(e,t){var n=this;if(!this.document)return function(){};var r=function(r){if(n.document&&n.monitor.isDragging()){var o;switch(r.type){case h.mouse.move:o={x:r.clientX,y:r.clientY};break;case h.touch.move:o={x:r.touches[0].clientX,y:r.touches[0].clientY}}var i=null!=o?n.document.elementFromPoint(o.x,o.y):void 0,a=i&&t.contains(i);return i===t||a?n.handleMove(r,e):void 0}};return this.addEventListener(this.document.body,"move",r),this.targetNodes.set(e,t),function(){n.document&&(n.targetNodes.delete(e),n.removeEventListener(n.document.body,"move",r))}}},{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:"document",get:function(){return this.options.document}}])&&d(t.prototype,n),r&&d(t,r),e}();t.TouchBackendImpl=f},36623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={TouchBackend:!0};t.TouchBackend=void 0;var o=n(2874);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));t.TouchBackend=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new o.TouchBackendImpl(e,t,n)}},96944:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ListenerType=void 0,t.ListenerType=n,function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(n||(t.ListenerType=n={}))},68827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distance=function(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))},t.inAngleRanges=function(e,t,n,r,o){if(!o)return!1;for(var i=180*Math.atan2(r-t,n-e)/Math.PI+180,a=0;a<o.length;++a)if((null==o[a].start||i>=o[a].start)&&(null==o[a].end||i<=o[a].end))return!0;return!1}},68953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeClientOffset=function(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}},t.getEventClientTouchOffset=o,t.getEventClientOffset=i;var r=n(91527);function o(e,t){return 1===e.targetTouches.length?i(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?i(e.touches[0]):void 0}function i(e,t){return(0,r.isTouchEvent)(e)?o(e,t):{x:e.clientX,y:e.clientY}}},91527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventShouldStartDrag=function(e){return void 0===e.button||e.button===r},t.eventShouldEndDrag=function(e){return void 0===e.buttons||0==(e.buttons&n)},t.isTouchEvent=function(e){return!!e.targetTouches};var n=1,r=0},17890:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsPassive=void 0;var n=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();t.supportsPassive=n},47930:(e,t,n)=>{"use strict";function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return r[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}n.r(t),n.d(t,{invariant:()=>r})},54576:(e,t,n)=>{"use strict";n.d(t,{jK:()=>ge,u_:()=>we,CU:()=>Pe,ZP:()=>De,Gt:()=>Ce});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.create;function a(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var s,l,c;Object.create;function u(e){return e.type===l.literal}function d(e){return e.type===l.argument}function p(e){return e.type===l.number}function h(e){return e.type===l.date}function f(e){return e.type===l.time}function m(e){return e.type===l.select}function g(e){return e.type===l.plural}function v(e){return e.type===l.pound}function y(e){return e.type===l.tag}function b(e){return!(!e||"object"!=typeof e||e.type!==c.number)}function w(e){return!(!e||"object"!=typeof e||e.type!==c.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(s||(s={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(l||(l={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(c||(c={}));var x=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,_=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function S(e){var t={};return e.replace(_,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var C=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var E=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,k=/^(@+)?(\+|#+)?[rs]?$/g,z=/(\*)(0+)|(#+)(0+)|(0+)/g,P=/^(0+)$/;function D(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(k,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function A(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function T(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!P.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function I(e){var t=A(e);return t||{}}function M(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=i(i(i({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return i(i({},e),I(t))}),{}));continue;case"engineering":t=i(i(i({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return i(i({},e),I(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(z,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(P.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(E.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(E,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var a=o.options[0];"w"===a?t=i(i({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=i(i({},t),D(a)))}else if(k.test(o.stem))t=i(i({},t),D(o.stem));else{var s=A(o.stem);s&&(t=i(i({},t),s));var l=T(o.stem);l&&(t=i(i({},t),l))}}return t}var R,F={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function N(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(F[n||""]||F[r||""]||F["".concat(r,"-001")]||F["001"])[0]}var O=new RegExp("^".concat(x.source,"*")),j=new RegExp("".concat(x.source,"*$"));function L(e,t){return{start:e,end:t}}var B=!!String.prototype.startsWith,K=!!String.fromCodePoint,V=!!Object.fromEntries,H=!!String.prototype.codePointAt,$=!!String.prototype.trimStart,U=!!String.prototype.trimEnd,Z=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},q=!0;try{q="a"===(null===(R=te("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===R?void 0:R[0])}catch(e){q=!1}var G,W=B?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Y=K?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},X=V?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},Q=H?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},J=$?function(e){return e.trimStart()}:function(e){return e.replace(O,"")},ee=U?function(e){return e.trimEnd()}:function(e){return e.replace(j,"")};function te(e,t){return new RegExp(e,t)}if(q){var ne=te("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");G=function(e,t){var n;return ne.lastIndex=t,null!==(n=ne.exec(e)[1])&&void 0!==n?n:""}}else G=function(e,t){for(var n=[];;){var r=Q(e,t);if(void 0===r||ie(r)||ae(r))break;n.push(r),t+=r>=65536?2:1}return Y.apply(void 0,n)};var re=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(s.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&oe(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:l.pound,location:L(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:l.literal,value:"<".concat(r,"/>"),location:L(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!oe(this.char()))return this.error(s.INVALID_TAG,L(a,this.clonePosition()));var c=this.clonePosition();return r!==this.parseTagName()?this.error(s.UNMATCHED_CLOSING_TAG,L(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:l.tag,value:r,children:i,location:L(n,this.clonePosition())},err:null}:this.error(s.INVALID_TAG,L(a,this.clonePosition())))}return this.error(s.UNCLOSED_TAG,L(n,this.clonePosition()))}return this.error(s.INVALID_TAG,L(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=L(n,this.clonePosition());return{val:{type:l.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(oe(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Y.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Y(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(s.EMPTY_ARGUMENT,L(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(s.MALFORMED_ARGUMENT,L(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:l.argument,value:r,location:L(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(s.MALFORMED_ARGUMENT,L(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=G(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:L(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,a=this.clonePosition(),u=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(u){case"":return this.error(s.EXPECT_ARGUMENT_TYPE,L(a,d));case"number":case"date":case"time":this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((x=this.parseSimpleArgStyleIfPossible()).err)return x;if(0===(v=ee(x.val)).length)return this.error(s.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));p={style:v,styleLocation:L(h,this.clonePosition())}}if((_=this.tryParseArgumentClose(r)).err)return _;var f=L(r,this.clonePosition());if(p&&W(null==p?void 0:p.style,"::",0)){var m=J(p.style.slice(2));if("number"===u)return(x=this.parseNumberSkeletonFromString(m,p.styleLocation)).err?x:{val:{type:l.number,value:n,location:f,style:x.val},err:null};if(0===m.length)return this.error(s.EXPECT_DATE_TIME_SKELETON,f);var g=m;this.locale&&(g=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var a=1+(1&i),s=i<2?1:3+(i>>1),l=N(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=l+n}else n+="J"===o?"H":o}return n}(m,this.locale));var v={type:c.dateTime,pattern:g,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?S(g):{}};return{val:{type:"date"===u?l.date:l.time,value:n,location:f,style:v},err:null}}return{val:{type:"number"===u?l.number:"date"===u?l.date:l.time,value:n,location:f,style:null!==(o=null==p?void 0:p.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(s.EXPECT_SELECT_ARGUMENT_OPTIONS,L(y,i({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),w=0;if("select"!==u&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));var x;if(this.bumpSpace(),(x=this.tryParseDecimalInteger(s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,s.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return x;this.bumpSpace(),b=this.parseIdentifierIfPossible(),w=x.val}var _,C=this.tryParsePluralOrSelectOptions(e,u,t,b);if(C.err)return C;if((_=this.tryParseArgumentClose(r)).err)return _;var E=L(r,this.clonePosition());return"select"===u?{val:{type:l.select,value:n,options:X(C.val),location:E},err:null}:{val:{type:l.plural,value:n,options:X(C.val),offset:w,pluralType:"plural"===u?"cardinal":"ordinal",location:E},err:null};default:return this.error(s.INVALID_ARGUMENT_TYPE,L(a,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,L(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(s.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(C).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(s.INVALID_NUMBER_SKELETON,t)}return{val:{type:c.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?M(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,i=!1,a=[],l=new Set,c=r.value,u=r.location;;){if(0===c.length){var d=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var p=this.tryParseDecimalInteger(s.EXPECT_PLURAL_ARGUMENT_SELECTOR,s.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=L(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}if(l.has(c))return this.error("select"===t?s.DUPLICATE_SELECT_ARGUMENT_SELECTOR:s.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?s.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:s.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var m=this.tryParseArgumentClose(h);if(m.err)return m;a.push([c,{value:f.val,location:L(h,this.clonePosition())}]),l.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===a.length?this.error("select"===t?s.EXPECT_SELECT_ARGUMENT_SELECTOR:s.EXPECT_PLURAL_ARGUMENT_SELECTOR,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(s.MISSING_OTHER_CLAUSE,L(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=L(r,this.clonePosition());return o?Z(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Q(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(W(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ie(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function oe(e){return e>=97&&e<=122||e>=65&&e<=90}function ie(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ae(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function se(e){e.forEach((function(e){if(delete e.location,m(e)||g(e))for(var t in e.options)delete e.options[t].location,se(e.options[t].value);else p(e)&&b(e.style)||(h(e)||f(e))&&w(e.style)?delete e.style.location:y(e)&&se(e.children)}))}function le(e,t){void 0===t&&(t={}),t=i({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new re(e,t).parse();if(n.err){var r=SyntaxError(s[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||se(n.val),n.val}function ce(e,t){var n=t&&t.cache?t.cache:ve,r=t&&t.serializer?t.serializer:fe;return(t&&t.strategy?t.strategy:he)(e,{cache:n,serializer:r})}function ue(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function de(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function pe(e,t,n,r,o){return n.bind(t,e,r,o)}function he(e,t){return pe(e,this,1===e.length?ue:de,t.cache.create(),t.serializer)}var fe=function(){return JSON.stringify(arguments)};function me(){this.cache=Object.create(null)}me.prototype.get=function(e){return this.cache[e]},me.prototype.set=function(e,t){this.cache[e]=t};var ge,ve={create:function(){return new me}},ye={variadic:function(e,t){return pe(e,this,de,t.cache.create(),t.serializer)},monadic:function(e,t){return pe(e,this,ue,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ge||(ge={}));var be,we=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return o(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),xe=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),ge.INVALID_VALUE,o)||this}return o(t,e),t}(we),_e=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),ge.INVALID_VALUE,r)||this}return o(t,e),t}(we),Se=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),ge.MISSING_VALUE,n)||this}return o(t,e),t}(we);function Ce(e){return"function"==typeof e}function Ee(e,t,n,r,o,i,a){if(1===e.length&&u(e[0]))return[{type:be.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var x=c[l];if(u(x))s.push({type:be.literal,value:x.value});else if(v(x))"number"==typeof i&&s.push({type:be.literal,value:n.getNumberFormat(t).format(i)});else{var _=x.value;if(!o||!(_ in o))throw new Se(_,a);var S=o[_];if(d(x))S&&"string"!=typeof S&&"number"!=typeof S||(S="string"==typeof S||"number"==typeof S?String(S):""),s.push({type:"string"==typeof S?be.literal:be.object,value:S});else if(h(x)){var C="string"==typeof x.style?r.date[x.style]:w(x.style)?x.style.parsedOptions:void 0;s.push({type:be.literal,value:n.getDateTimeFormat(t,C).format(S)})}else if(f(x)){C="string"==typeof x.style?r.time[x.style]:w(x.style)?x.style.parsedOptions:r.time.medium;s.push({type:be.literal,value:n.getDateTimeFormat(t,C).format(S)})}else if(p(x)){(C="string"==typeof x.style?r.number[x.style]:b(x.style)?x.style.parsedOptions:void 0)&&C.scale&&(S*=C.scale||1),s.push({type:be.literal,value:n.getNumberFormat(t,C).format(S)})}else{if(y(x)){var E=x.children,k=x.value,z=o[k];if(!Ce(z))throw new _e(k,"function",a);var P=z(Ee(E,t,n,r,o,i).map((function(e){return e.value})));Array.isArray(P)||(P=[P]),s.push.apply(s,P.map((function(e){return{type:"string"==typeof e?be.literal:be.object,value:e}})))}if(m(x)){if(!(D=x.options[S]||x.options.other))throw new xe(x.value,S,Object.keys(x.options),a);s.push.apply(s,Ee(D.value,t,n,r,o))}else if(g(x)){var D;if(!(D=x.options["=".concat(S)])){if(!Intl.PluralRules)throw new we('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ge.MISSING_INTL_API,a);var A=n.getPluralRules(t,{type:x.pluralType}).select(S-(x.offset||0));D=x.options[A]||x.options.other}if(!D)throw new xe(x.value,S,Object.keys(x.options),a);s.push.apply(s,Ee(D.value,t,n,r,o,S-(x.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===be.literal&&t.type===be.literal?n.value+=t.value:e.push(t),e}),[])}(s)}function ke(e,t){return t?Object.keys(e).reduce((function(n,r){var o,a;return n[r]=(o=e[r],(a=t[r])?i(i(i({},o||{}),a||{}),Object.keys(o).reduce((function(e,t){return e[t]=i(i({},o[t]),a[t]||{}),e}),{})):o),n}),i({},e)):e}function ze(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(be||(be={}));var Pe=function(){function e(t,n,r,o){var i,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===be.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Ee(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=s.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ke(e.formats,r),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ce((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,a([void 0],t,!1)))}),{cache:ze(i.number),strategy:ye.variadic}),getDateTimeFormat:ce((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,a([void 0],t,!1)))}),{cache:ze(i.dateTime),strategy:ye.variadic}),getPluralRules:ce((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,a([void 0],t,!1)))}),{cache:ze(i.pluralRules),strategy:ye.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=le,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const De=Pe},24021:(e,t,n)=>{"use strict";n.d(t,{_H:()=>_t,Pj:()=>ut,dp:()=>lt,Sn:()=>I,vU:()=>Ct,XN:()=>et,YB:()=>tt});var r=n(70655),o=n(67294),i=n(8679),a=n.n(i);["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"].map((function(e){return e.slice(e.indexOf("-")+1)}));function s(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}var l=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;new RegExp("^"+l.source),new RegExp(l.source+"$");var c;!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t}(0,r.ZT)(t,e)}(Error);!function(e){e.startRange="startRange",e.shared="shared",e.endRange="endRange"}(c||(c={}));var u=n(54576);function d(e,t){var n=t&&t.cache?t.cache:b,r=t&&t.serializer?t.serializer:g;return(t&&t.strategy?t.strategy:m)(e,{cache:n,serializer:r})}function p(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function h(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function f(e,t,n,r,o){return n.bind(t,e,r,o)}function m(e,t){return f(e,this,1===e.length?p:h,t.cache.create(),t.serializer)}var g=function(){return JSON.stringify(arguments)};function v(){this.cache=Object.create(null)}v.prototype.has=function(e){return e in this.cache},v.prototype.get=function(e){return this.cache[e]},v.prototype.set=function(e,t){this.cache[e]=t};var y,b={create:function(){return new v}},w={variadic:function(e,t){return f(e,this,h,t.cache.create(),t.serializer)},monadic:function(e,t){return f(e,this,p,t.cache.create(),t.serializer)}};!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(y||(y={}));var x=function(e){function t(n,r,o){var i=e.call(this,"[@formatjs/intl Error "+n+"] "+r+" \n"+(o?"\n"+o.message+"\n"+o.stack:""))||this;return i.code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return(0,r.ZT)(t,e),t}(Error),_=function(e){function t(t,n){return e.call(this,y.UNSUPPORTED_FORMATTER,t,n)||this}return(0,r.ZT)(t,e),t}(x),S=function(e){function t(t,n){return e.call(this,y.INVALID_CONFIG,t,n)||this}return(0,r.ZT)(t,e),t}(x),C=function(e){function t(t,n){return e.call(this,y.MISSING_DATA,t,n)||this}return(0,r.ZT)(t,e),t}(x),E=function(e){function t(t,n,r,o){var i=e.call(this,y.FORMAT_ERROR,t+" \nLocale: "+n+"\nMessageID: "+(null==r?void 0:r.id)+"\nDefault Message: "+(null==r?void 0:r.defaultMessage)+"\nDescription: "+(null==r?void 0:r.description)+" \n",o)||this;return i.descriptor=r,i}return(0,r.ZT)(t,e),t}(x),k=function(e){function t(t,n){var r=e.call(this,y.MISSING_TRANSLATION,'Missing message: "'+t.id+'" for locale "'+n+'", using '+(t.defaultMessage?"default message":"id")+" as fallback.")||this;return r.descriptor=t,r}return(0,r.ZT)(t,e),t}(x);function z(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var P,D,A,T={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function I(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function M(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function R(e,t,n,r){var o,i=e&&e[t];if(i&&(o=i[n]),o)return o;r(new _("No "+t+" format named: "+n))}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(P||(P={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(D||(D={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(A||(A={}));var F=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,N=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function O(e){var t={};return e.replace(N,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var j=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var L,B=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,K=/^(@+)?(\+|#+)?$/g,V=/(\*)(0+)|(#+)(0+)|(0+)/g,H=/^(0+)$/;function $(e){var t={};return e.replace(K,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function U(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Z(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!H.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function q(e){var t=U(e);return t||{}}function G(e){for(var t={},n=0,o=e;n<o.length;n++){var i=o[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,r.pi)((0,r.pi)((0,r.pi)({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return(0,r.pi)((0,r.pi)({},e),q(t))}),{}));continue;case"engineering":t=(0,r.pi)((0,r.pi)((0,r.pi)({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return(0,r.pi)((0,r.pi)({},e),q(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(V,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(H.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(B.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(B,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""})),i.options.length&&(t=(0,r.pi)((0,r.pi)({},t),$(i.options[0])))}else if(K.test(i.stem))t=(0,r.pi)((0,r.pi)({},t),$(i.stem));else{var a=U(i.stem);a&&(t=(0,r.pi)((0,r.pi)({},t),a));var s=Z(i.stem);s&&(t=(0,r.pi)((0,r.pi)({},t),s))}}return t}var W=new RegExp("^"+F.source+"*"),Y=new RegExp(F.source+"*$");function X(e,t){return{start:e,end:t}}var Q=!!String.prototype.startsWith,J=!!String.fromCodePoint,ee=!!Object.fromEntries,te=!!String.prototype.codePointAt,ne=!!String.prototype.trimStart,re=!!String.prototype.trimEnd,oe=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ie=!0;try{ie="a"===(null===(L=he("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===L?void 0:L[0])}catch(e){ie=!1}var ae,se=Q?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},le=J?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},ce=ee?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},ue=te?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},de=ne?function(e){return e.trimStart()}:function(e){return e.replace(W,"")},pe=re?function(e){return e.trimEnd()}:function(e){return e.replace(Y,"")};function he(e,t){return new RegExp(e,t)}if(ie){var fe=he("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ae=function(e,t){var n;return fe.lastIndex=t,null!==(n=fe.exec(e)[1])&&void 0!==n?n:""}}else ae=function(e,t){for(var n=[];;){var r=ue(e,t);if(void 0===r||ge(r)||ve(r))break;n.push(r),t+=r>=65536?2:1}return le.apply(void 0,n)};!function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(P.UNMATCHED_CLOSING_TAG,X(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&me(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:D.pound,location:X(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:D.literal,value:"<"+r+"/>",location:X(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!me(this.char()))return this.error(P.INVALID_TAG,X(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(P.UNMATCHED_CLOSING_TAG,X(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:D.tag,value:r,children:i,location:X(n,this.clonePosition())},err:null}:this.error(P.INVALID_TAG,X(a,this.clonePosition())))}return this.error(P.UNCLOSED_TAG,X(n,this.clonePosition()))}return this.error(P.INVALID_TAG,X(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=X(n,this.clonePosition());return{val:{type:D.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(me(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return le.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),le(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,X(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(P.EMPTY_ARGUMENT,X(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(P.MALFORMED_ARGUMENT,X(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,X(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:D.argument,value:r,location:X(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,X(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(P.MALFORMED_ARGUMENT,X(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=ae(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:X(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,o){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(P.EXPECT_ARGUMENT_TYPE,X(a,l));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(h=pe(v.val)).length)return this.error(P.EXPECT_ARGUMENT_STYLE,X(this.clonePosition(),this.clonePosition()));c={style:h,styleLocation:X(u,this.clonePosition())}}if((y=this.tryParseArgumentClose(o)).err)return y;var d=X(o,this.clonePosition());if(c&&se(null==c?void 0:c.style,"::",0)){var p=de(c.style.slice(2));if("number"===s)return(v=this.parseNumberSkeletonFromString(p,c.styleLocation)).err?v:{val:{type:D.number,value:n,location:d,style:v.val},err:null};if(0===p.length)return this.error(P.EXPECT_DATE_TIME_SKELETON,d);var h={type:A.dateTime,pattern:p,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?O(p):{}};return{val:{type:"date"===s?D.date:D.time,value:n,location:d,style:h},err:null}}return{val:{type:"number"===s?D.number:"date"===s?D.date:D.time,value:n,location:d,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(P.EXPECT_SELECT_ARGUMENT_OPTIONS,X(f,(0,r.pi)({},f)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,X(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,P.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=v.val}var y,b=this.tryParsePluralOrSelectOptions(e,s,t,m);if(b.err)return b;if((y=this.tryParseArgumentClose(o)).err)return y;var w=X(o,this.clonePosition());return"select"===s?{val:{type:D.select,value:n,options:ce(b.val),location:w},err:null}:{val:{type:D.plural,value:n,options:ce(b.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:w},err:null};default:return this.error(P.INVALID_ARGUMENT_TYPE,X(a,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,X(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(P.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,X(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(j).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(P.INVALID_NUMBER_SKELETON,t)}return{val:{type:A.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?G(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,i=!1,a=[],s=new Set,l=r.value,c=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_SELECTOR,P.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=X(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(s.has(l))return this.error("select"===t?P.DUPLICATE_SELECT_ARGUMENT_SELECTOR:P.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?P.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:P.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,X(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var f=this.tryParseArgumentClose(p);if(f.err)return f;a.push([l,{value:h.val,location:X(p,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===a.length?this.error("select"===t?P.EXPECT_SELECT_ARGUMENT_SELECTOR:P.EXPECT_PLURAL_ARGUMENT_SELECTOR,X(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(P.MISSING_OTHER_CLAUSE,X(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=X(r,this.clonePosition());return o?oe(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ue(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(se(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ge(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null}}();function me(e){return e>=97&&e<=122||e>=65&&e<=90}function ge(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ve(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function ye(e,t){return Object.keys(e).reduce((function(n,o){return n[o]=(0,r.pi)({timeZone:t},e[o]),n}),{})}function be(e,t){return Object.keys((0,r.pi)((0,r.pi)({},e),t)).reduce((function(n,o){return n[o]=(0,r.pi)((0,r.pi)({},e[o]||{}),t[o]||{}),n}),{})}function we(e,t){if(!t)return e;var n=u.CU.formats;return(0,r.pi)((0,r.pi)((0,r.pi)({},n),e),{date:be(ye(n.date,t),ye(e.date||{},t)),time:be(ye(n.time,t),ye(e.time||{},t))})}function xe(e,t,n,o,i){var a=e.locale,l=e.formats,c=e.messages,u=e.defaultLocale,d=e.defaultFormats,p=e.onError,h=e.timeZone,f=e.defaultRichTextElements;void 0===n&&(n={id:""});var m=n.id,g=n.defaultMessage;s(!!m,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var v=String(m),y=c&&Object.prototype.hasOwnProperty.call(c,v)&&c[v];if(Array.isArray(y)&&1===y.length&&y[0].type===D.literal)return y[0].value;if(!o&&y&&"string"==typeof y&&!f)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(o=(0,r.pi)((0,r.pi)({},f),o||{}),l=we(l,h),d=we(d,h),!y){if((!g||a&&a.toLowerCase()!==u.toLowerCase())&&p(new k(n,a)),g)try{return t.getMessageFormat(g,u,d,i).format(o)}catch(e){return p(new E('Error formatting default message for: "'+v+'", rendering default message verbatim',a,n,e)),"string"==typeof g?g:v}return v}try{return t.getMessageFormat(y,a,l,(0,r.pi)({formatters:t},i||{})).format(o)}catch(e){p(new E('Error formatting message: "'+v+'", using '+(g?"default message":"id")+" as fallback.",a,n,e))}if(g)try{return t.getMessageFormat(g,u,d,i).format(o)}catch(e){p(new E('Error formatting the default message for: "'+v+'", rendering message verbatim',a,n,e))}return"string"==typeof y?y:"string"==typeof g?g:v}var _e=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function Se(e,t,n,o){var i=e.locale,a=e.formats,s=e.onError,l=e.timeZone;void 0===o&&(o={});var c=o.format,u=(0,r.pi)((0,r.pi)({},l&&{timeZone:l}),c&&R(a,t,c,s)),d=z(o,_e,u);return"time"!==t||d.hour||d.minute||d.second||d.timeStyle||d.dateStyle||(d=(0,r.pi)((0,r.pi)({},d),{hour:"numeric",minute:"numeric"})),n(i,d)}function Ce(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Se(e,"date",t,a).format(s)}catch(t){e.onError(new x(y.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function Ee(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Se(e,"time",t,a).format(s)}catch(t){e.onError(new x(y.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function ke(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=n[2],s=void 0===a?{}:a,l=e.timeZone,c=e.locale,u=e.onError,d=z(s,_e,l?{timeZone:l}:{});try{return t(c,d).formatRange(o,i)}catch(e){u(new x(y.FORMAT_ERROR,"Error formatting date time range.",e))}return String(o)}function ze(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Se(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new x(y.FORMAT_ERROR,"Error formatting date.",t))}return[]}function Pe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Se(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new x(y.FORMAT_ERROR,"Error formatting time.",t))}return[]}var De=["localeMatcher","style","type","fallback"];function Ae(e,t,n,r){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new u.u_('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',u.jK.MISSING_INTL_API));var a=z(r,De);try{return t(o,a).of(n)}catch(e){i(new x(y.FORMAT_ERROR,"Error formatting display name.",e))}}var Te=["localeMatcher","type","style"],Ie=Date.now();function Me(e,t,n,r){void 0===r&&(r={});var o=Re(e,t,n,r).reduce((function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[]);return 1===o.length?o[0]:o}function Re(e,t,n,o){var i=e.locale,a=e.onError;void 0===o&&(o={}),Intl.ListFormat||a(new u.u_('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',u.jK.MISSING_INTL_API));var s=z(o,Te);try{var l={},c=n.map((function(e,t){if("object"==typeof e){var n=function(e){return Ie+"_"+e+"_"+Ie}(t);return l[n]=e,n}return String(e)}));return t(i,s).formatToParts(c).map((function(e){return"literal"===e.type?e:(0,r.pi)((0,r.pi)({},e),{value:l[e.value]||e.value})}))}catch(e){a(new x(y.FORMAT_ERROR,"Error formatting list.",e))}return n}var Fe=["localeMatcher","type"];function Ne(e,t,n,r){var o=e.locale,i=e.onError;void 0===r&&(r={}),Intl.PluralRules||i(new u.u_('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',u.jK.MISSING_INTL_API));var a=z(r,Fe);try{return t(o,a).select(n)}catch(e){i(new E("Error formatting plural.",e))}return"other"}var Oe=["numeric","style"];function je(e,t,n,r,o){void 0===o&&(o={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new u.u_('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',u.jK.MISSING_INTL_API));try{return function(e,t,n){var r=e.locale,o=e.formats,i=e.onError;void 0===n&&(n={});var a=n.format,s=!!a&&R(o,"relative",a,i)||{};return t(r,z(n,Oe,s))}(e,t,o).format(n,r)}catch(t){e.onError(new E("Error formatting relative time.",t))}return String(n)}var Le=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Be(e,t,n){var r=e.locale,o=e.formats,i=e.onError;void 0===n&&(n={});var a=n.format,s=a&&R(o,"number",a,i)||{};return t(r,z(n,Le,s))}function Ke(e,t,n,r){void 0===r&&(r={});try{return Be(e,t,r).format(n)}catch(t){e.onError(new x(y.FORMAT_ERROR,"Error formatting number.",t))}return String(n)}function Ve(e,t,n,r){void 0===r&&(r={});try{return Be(e,t,r).formatToParts(n)}catch(t){e.onError(new x(y.FORMAT_ERROR,"Error formatting number.",t))}return[]}function He(e){var t;e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&console.warn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}function $e(e,t){var n=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,o=Intl.DisplayNames,i=d((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,r.ev)([void 0],t)))}),{cache:M(e.dateTime),strategy:w.variadic}),a=d((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,r.ev)([void 0],t)))}),{cache:M(e.number),strategy:w.variadic}),s=d((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,r.ev)([void 0],t)))}),{cache:M(e.pluralRules),strategy:w.variadic});return{getDateTimeFormat:i,getNumberFormat:a,getMessageFormat:d((function(e,t,n,o){return new u.CU(e,t,n,(0,r.pi)({formatters:{getNumberFormat:a,getDateTimeFormat:i,getPluralRules:s}},o||{}))}),{cache:M(e.message),strategy:w.variadic}),getRelativeTimeFormat:d((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,(0,r.ev)([void 0],e)))}),{cache:M(e.relativeTime),strategy:w.variadic}),getPluralRules:s,getListFormat:d((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,(0,r.ev)([void 0],e)))}),{cache:M(e.list),strategy:w.variadic}),getDisplayNames:d((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(o.bind.apply(o,(0,r.ev)([void 0],e)))}),{cache:M(e.displayNames),strategy:w.variadic})}}(t),o=(0,r.pi)((0,r.pi)({},T),e),i=o.locale,a=o.defaultLocale,s=o.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&s?s(new C('Missing locale data for locale: "'+i+'" in Intl.NumberFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&s&&s(new C('Missing locale data for locale: "'+i+'" in Intl.DateTimeFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(s&&s(new S('"locale" was not configured, using "'+a+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),o.locale=o.defaultLocale||"en"),He(o),(0,r.pi)((0,r.pi)({},o),{formatters:n,formatNumber:Ke.bind(null,o,n.getNumberFormat),formatNumberToParts:Ve.bind(null,o,n.getNumberFormat),formatRelativeTime:je.bind(null,o,n.getRelativeTimeFormat),formatDate:Ce.bind(null,o,n.getDateTimeFormat),formatDateToParts:ze.bind(null,o,n.getDateTimeFormat),formatTime:Ee.bind(null,o,n.getDateTimeFormat),formatDateTimeRange:ke.bind(null,o,n.getDateTimeFormat),formatTimeToParts:Pe.bind(null,o,n.getDateTimeFormat),formatPlural:Ne.bind(null,o,n.getPluralRules),formatMessage:xe.bind(null,o,n),formatList:Me.bind(null,o,n.getListFormat),formatListToParts:Re.bind(null,o,n.getListFormat),formatDisplayName:Ae.bind(null,o,n.getDisplayNames)})}function Ue(e){s(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Ze=(0,r.pi)((0,r.pi)({},T),{textComponent:o.Fragment});function qe(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var a=n[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var Ge,We,Ye=o.createContext(null),Xe=Ye.Consumer,Qe=Ye.Provider,Je=Ye;function et(e,t){var n=t||{},i=n.intlPropName,s=void 0===i?"intl":i,l=n.forwardRef,c=void 0!==l&&l,u=n.enforceContext,d=void 0===u||u,p=function(t){return o.createElement(Xe,null,(function(n){var i;d&&Ue(n);var a=((i={})[s]=n,i);return o.createElement(e,(0,r.pi)({},t,a,{ref:c?t.forwardedRef:null}))}))};return p.displayName="injectIntl("+function(e){return e.displayName||e.name||"Component"}(e)+")",p.WrappedComponent=e,c?a()(o.forwardRef((function(e,t){return o.createElement(p,(0,r.pi)({},e,{forwardedRef:t}))})),e):a()(p,e)}function tt(){var e=o.useContext(Je);return Ue(e),e}!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(Ge||(Ge={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(We||(We={}));var nt=function(e){var t=tt(),n=e.value,o=e.children,i=(0,r._T)(e,["value","children"]);return o(t.formatNumberToParts(n,i))};nt.displayName="FormattedNumberParts";function rt(e){var t=function(t){var n=tt(),o=t.value,i=t.children,a=(0,r._T)(t,["value","children"]),s="string"==typeof o?new Date(o||0):o;return i("formatDate"===e?n.formatDateToParts(s,a):n.formatTimeToParts(s,a))};return t.displayName=We[e],t}function ot(e){var t=function(t){var n=tt(),i=t.value,a=t.children,s=(0,r._T)(t,["value","children"]),l=n[e](i,s);if("function"==typeof a)return a(l);var c=n.textComponent||o.Fragment;return o.createElement(c,null,l)};return t.displayName=Ge[e],t}function it(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function at(e){return e?Object.keys(e).reduce((function(t,n){var r,i=e[n];return t[n]=(0,u.Gt)(i)?(r=i,function(e){return r(o.Children.toArray(e))}):i,t}),{}):e}nt.displayName="FormattedNumberParts";var st=function(e,t,n,i){for(var a=[],s=4;s<arguments.length;s++)a[s-4]=arguments[s];var l=at(i),c=xe.apply(void 0,(0,r.ev)([e,t,n,l],a));return Array.isArray(c)?o.Children.toArray(c):c},lt=function(e,t){var n=e.defaultRichTextElements,o=(0,r._T)(e,["defaultRichTextElements"]),i=at(n),a=$e((0,r.pi)((0,r.pi)((0,r.pi)({},Ze),o),{defaultRichTextElements:i}),t);return(0,r.pi)((0,r.pi)({},a),{formatMessage:st.bind(null,{locale:a.locale,timeZone:a.timeZone,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:i},a.formatters)})},ct=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:lt(it(t.props),t.cache),prevConfig:it(t.props)},t}return(0,r.ZT)(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,o=it(e);return qe(n,o)?null:{intl:lt(o,r),prevConfig:o}},t.prototype.render=function(){return Ue(this.state.intl),o.createElement(Qe,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Ze,t}(o.PureComponent);const ut=ct;var dt=3600;function pt(e){var t=Math.abs(e);return t<60?"second":t<dt?"minute":t<86400?"hour":"day"}function ht(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return dt;default:return 86400}}var ft=["second","minute","hour"];function mt(e){return void 0===e&&(e="second"),ft.includes(e)}var gt=function(e){var t=tt(),n=t.formatRelativeTime,i=t.textComponent,a=e.children,s=n(e.value||0,e.unit,(0,r._T)(e,["children","value","unit"]));return"function"==typeof a?a(s):i?o.createElement(i,null,s):o.createElement(o.Fragment,null,s)},vt=function(e){var t=e.value,n=e.unit,i=e.updateIntervalInSeconds,a=(0,r._T)(e,["value","unit","updateIntervalInSeconds"]);s(!i||!(!i||!mt(n)),"Cannot schedule update with unit longer than hour");var l,c=o.useState(),u=c[0],d=c[1],p=o.useState(0),h=p[0],f=p[1],m=o.useState(0),g=m[0],v=m[1];n===u&&t===h||(f(t||0),d(n),v(mt(n)?function(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return e*dt}}(t,n):0)),o.useEffect((function(){function e(){clearTimeout(l)}if(e(),!i||!mt(n))return e;var t=g-i,r=pt(t);if("day"===r)return e;var o=ht(r),a=t-t%o,s=a>=g?a-o:a,c=Math.abs(s-g);return g!==s&&(l=setTimeout((function(){return v(s)}),1e3*c)),e}),[g,i,n]);var y=t||0,b=n;if(mt(n)&&"number"==typeof g&&i){var w=ht(b=pt(g));y=Math.round(g/w)}return o.createElement(gt,(0,r.pi)({value:y,unit:b},a))};vt.displayName="FormattedRelativeTime",vt.defaultProps={value:0,unit:"second"};var yt=function(e){var t=tt(),n=t.formatPlural,r=t.textComponent,i=e.value,a=e.other,s=e.children,l=e[n(i,e)]||a;return"function"==typeof s?s(l):r?o.createElement(r,null,l):l};yt.defaultProps={type:"cardinal"},yt.displayName="FormattedPlural";function bt(e,t){var n=e.values,o=(0,r._T)(e,["values"]),i=t.values,a=(0,r._T)(t,["values"]);return qe(i,n)&&qe(o,a)}function wt(e){var t=tt(),n=t.formatMessage,r=t.textComponent,i=void 0===r?o.Fragment:r,a=e.id,s=e.description,l=e.defaultMessage,c=e.values,u=e.children,d=e.tagName,p=void 0===d?i:d,h=n({id:a,description:s,defaultMessage:l},c,{ignoreTag:e.ignoreTag});return Array.isArray(h)||(h=[h]),"function"==typeof u?u(h):p?o.createElement(p,null,o.Children.toArray(h)):o.createElement(o.Fragment,null,h)}wt.displayName="FormattedMessage";var xt=o.memo(wt,bt);xt.displayName="MemoizedFormattedMessage";const _t=xt;var St=function(e){var t=tt(),n=e.from,i=e.to,a=e.children,s=(0,r._T)(e,["from","to","children"]),l=t.formatDateTimeRange(n,i,s);if("function"==typeof a)return a(l);var c=t.textComponent||o.Fragment;return o.createElement(c,null,l)};St.displayName="FormattedDateTimeRange";function Ct(e){return e}ot("formatDate"),ot("formatTime"),ot("formatNumber"),ot("formatList"),ot("formatDisplayName"),rt("formatDate"),rt("formatTime")},15381:(e,t,n)=>{"use strict";n.d(t,{n:()=>i,s:()=>o});var r=n(96156);class o{constructor(){(0,r.Z)(this,"cancelled",!1),(0,r.Z)(this,"cancelFns",[])}cancel(){for(const e of this.cancelFns)e();this.cancelled=!0}isCancelled(){return this.cancelled}addCancelFn(e){this.cancelFns.push(e)}addPromise(e){return this.addCancelFn(e.cancel),e.promise}wrapPromise(e){return i({promise:e,cancel:()=>this.cancel()})}}const i=e=>({promise:e.promise,cancel:e.cancel,then:(t,n)=>{const r=e.promise.then(t,n);return i({promise:r,cancel:e.cancel})}})},76580:(e,t,n)=>{"use strict";n.d(t,{eC:()=>p,UQ:()=>d,pQ:()=>u,j2:()=>g,kS:()=>m,Q$:()=>f,dN:()=>h});var r=n(15359),o=n(16126),i=n(90184),a=n(51679),s=n(91034);class l{constructor(e){this.requestQueue=new a.g(e)}enqueue(e,t){const{promise:n,cancel:r}=this.requestQueue.enqueue(e,t===s.Priority.High);return{promise:n,cancel:()=>{(function(e){return"cancel"in e})(e)&&e.cancel(),r()}}}cancelRequests(e){this.requestQueue.cancel(e)}}const c=e=>new l(e),u=e=>{const t=c(2);return{wasmCtx:{engine:new i.D4(t,e)},requestQueue:t}},d=(e,t,n)=>({serverCtx:{info:e,satisfiesVersion:n},requestQueue:c(10),getWasmDispatch:t}),p=(e,t)=>{(0,o.h)(!e.wasmCtx),e.wasmCtx={engine:new i.D4(e.requestQueue,t)}},h=(e,t)=>((0,o.h)(e.wasmCtx),t(e.wasmCtx)),f=(e,t)=>((0,o.h)(e.serverCtx),t(e.serverCtx)),m=(e,t,n)=>{if(e.wasmCtx)return h(e,t);if(e.serverCtx)return f(e,n);throw new r.p2("No engine found")},g=(e,t)=>!!e.serverCtx&&e.serverCtx.satisfiesVersion(t)},91034:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ContentEditor:()=>I,ContentEditorTypes:()=>i,ImageFormat:()=>z,Priority:()=>k,Renderer:()=>r,Text:()=>o,addWASMCtx:()=>a.eC,createContentEditor:()=>T,createServerContext:()=>a.UQ,createWASMContext:()=>a.pQ,ping:()=>l,satifiesServerVersion:()=>a.j2,withEngine:()=>a.kS,withServerEngine:()=>a.Q$,withWASMEngine:()=>a.dN});var r={};n.r(r),n.d(r,{renderTile:()=>x});var o={};n.r(o),n.d(o,{getContentTreeForPage:()=>E,getTextForPage:()=>C});var i={};n.r(i);var a=n(76580),s=n(85728);const l=async e=>(0,a.kS)(e,(async e=>{await e.engine.executeCommand("ping",k.Normal,{})}),(async e=>{throw new s.X9("not implemented")}));var c=n(16126);let u=function(e){return e[e.Windows=0]="Windows",e[e.iOS=1]="iOS",e[e.macOS=2]="macOS",e[e.Android=3]="Android",e[e.Linux=4]="Linux",e}({});const d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent??"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:globalThis.navigator?.platform??"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:globalThis.navigator?.maxTouchPoints??0;return t.indexOf("MacIntel")>-1&&n>1?u.iOS:e.indexOf("Win")>-1?u.Windows:e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1||"iPad"===t?u.iOS:e.indexOf("Mac")>-1?u.macOS:e.indexOf("Android")>-1?u.Android:e.indexOf("Linux")>-1?u.Linux:null}();let p=function(e){return e[e.Trident=0]="Trident",e[e.Edge=1]="Edge",e[e.Blink=2]="Blink",e[e.Webkit=3]="Webkit",e[e.Gecko=4]="Gecko",e}({});const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent??"";return e.indexOf("Trident/")>-1?p.Trident:e.indexOf("Edge/")>-1?p.Edge:e.indexOf("Chrome/")>-1?p.Blink:e.indexOf("AppleWebKit/")>-1?p.Webkit:e.indexOf("Gecko/")>-1?p.Gecko:null}(),f=16383;const m=e=>{if(e){if(e.includes("image/webp"))return z.WebP;if(e.includes("image/png"))return z.PNG;if(e.includes("image/jpeg"))return z.JPEG}throw new s.X9("Couldn't determine image format")};var g=n(96156),v=n(77017);let y=function(e){return e[e.Token=0]="Token",e[e.QueryToken=1]="QueryToken",e[e.ImageToken=2]="ImageToken",e}({});class b{constructor(e,t){(0,g.Z)(this,"abortController",new AbortController),this.url=e,this.requestInit=t,this.identifier=(0,v.v4)()}async request(){return fetch(this.url,{...this.requestInit,signal:this.abortController.signal})}cancel(){this.abortController.abort()}}const w=(e,t,n,r,o,i)=>{let a={...i?.headers,...t.info.headers};switch(o){case y.Token:a={...a,"X-PSPDFKit-Token":t.info.token};break;case y.ImageToken:a={...a,"X-PSPDFKit-Image-Token":t.info.imageToken}}let l="";if(o==y.QueryToken){const e=new URLSearchParams;e.append("token",t.info.token),l="?"+e.toString()}return(0,s.nb)(e.enqueue(new b(`${t.info.url}i/d/${t.info.documentId}/h/${t.info.layerHandle}/${n}${l}`,{...i,headers:a}),r))},x=(e,t,n,r,o,i,l)=>{const g=new s.sk,v=(0,a.kS)(e,(async e=>{o.format=o.format??z.Bitmap;const a=function(e,t){let{width:n,height:r}=t;return e===z.WebP&&(n>f||r>f)||e===z.Bitmap&&d===u.iOS&&n*r>16777216?z.PNG:e}(o.format,n),s=i&&(i.annotations.length>0||i.formFieldValues.length>0),l=g.addPromise(e.engine.executeCommand("render_tile",o.priority??k.Normal,{render_annotations:s,print_rendering:o.renderForPrinting,page:t,bitmap_width:r.width,bitmap_height:r.height,bitmap_x:r.left,bitmap_y:r.top,page_width:n.width,page_height:n.height,format:a,render_text:o.renderText??!0})),p=await l;return(0,c.h)(1==p.values.length,"Should have exactly one image buffer in result."),(0,c.h)(p.values[0]instanceof Uint8Array),{buffer:p.values[0],format:a}}),(async a=>{(0,c.h)(!o.format,"Requesting image format is not supported on server.");const u=`page-${t}-dimensions-${n.width}-${n.height}-tile-${r.left}-${r.top}-${r.width}-${r.height}${o.renderForPrinting?"-print":""}`,d=i?((e,t)=>{const n=new FormData;return n.append("data",JSON.stringify({annotations:e.annotations,formFieldValues:e.formFieldValues,formFields:e.formFields,signatures:e.signatures||[]})),t&&t.length>0&&t.forEach((t=>{const r=e.attachments[t];(0,c.h)(r,`Attachment data '${t}' could not be found.`),(0,c.h)(r.data,`Attachment '${t}' doesn't have any data.`),n.append(t,r.data)})),n})(i,l):void 0,v={method:d?"POST":"GET",body:d,headers:h!=p.Webkit||n.width<=f&&n.height<=f?{Accept:"image/webp,*/*"}:void 0},b=g.addPromise(w(e.requestQueue,a,u,o.priority,y.ImageToken,v)),_=await b;if(!_.ok){if("application/json"!==_.headers.get("content-type"))throw new s.X9(`The image can not be rendered because of an unknown error (${_.status})`);{const a=await _.json();if(a.attachments_not_found){if(!i)throw new s.X9("Document state is required when attachments are missing");for(const e of a.attachments_not_found)if(!i.attachments[e])throw new s.X9(`Attachment ${e} not found in document state, but required by server.`);const l=x(e,t,n,r,o,i,a.attachments_not_found);return g.addCancelFn((()=>{l.cancel()})),l.promise}if(a.error)throw new s.X9(`The server could not render the requested image (${a.error})`)}}const S=await _.arrayBuffer();return{buffer:new Uint8Array(S),format:m(_.headers.get("content-type"))}}));return g.wrapPromise(v)};var _=n(15381),S=n(90184);const C=(e,t)=>{const n=new _.s,r=(0,a.kS)(e,(async e=>{const r=await n.addPromise(e.engine.executeCommand("page_info",k.Normal,{page:t,query:"text_lines"}));(0,c.h)(1==r.values.length,"Should have exactly one result.");const o=r.values[0];return(0,c.h)((0,S.hj)(o),"Should have a binary result."),JSON.parse((new TextDecoder).decode(o)).textLines}),(async r=>{const o=await n.addPromise(w(e.requestQueue,r,`page-${t}-text`,k.Normal,y.Token));return(await o.json()).textLines}));return n.wrapPromise(r)},E=(e,t)=>{const n=new _.s,r=(0,a.kS)(e,(async e=>{const r=await n.addPromise(e.engine.executeCommand("get_content_tree",k.Normal,{pageIndex:t,version:1}));return(0,c.h)(1==r.values.length,"Should have exactly one result."),(0,c.h)((0,S.sO)(r.values[0]),"Should have a JSON result."),[r.values[0]]}),(async r=>{const o=r.satisfiesVersion(">=1.3.0"),i=`page-${t}-text-content${o?"-v-1":""}`;return(await n.addPromise(w(e.requestQueue,r,i,k.Normal,y.Token))).json()}));return n.wrapPromise(r)};let k=function(e){return e[e.Normal=0]="Normal",e[e.High=1]="High",e}({}),z=function(e){return e.PNG="png",e.JPEG="jpeg",e.WebP="webp",e.Bitmap="bitmap",e}({});const P=">=1.3",D=async(e,t,n)=>{const r=await e.engine.executeCommand(t,k.High,n);return(0,c.h)(1===r.values.length,`expected only one response for ${t}: ${r.values}`),(0,c.h)(!(r.values[0]instanceof Uint8Array),"expected JSON response: "+r.values),r.values[0]},A=e=>{e.serverCtx&&(0,c.h)((0,a.j2)(e,P),"Content Editing is available with Document Engine version >=1.3")};async function T(e){if(e.serverCtx){A(e);const t=w(e.requestQueue,e.serverCtx,"pdf",k.High,y.QueryToken);if(!e.wasmCtx){(0,c.h)(e.getWasmDispatch);const t=await e.getWasmDispatch();e.wasmCtx||(0,a.eC)(e,t)}(0,c.h)(e.wasmCtx);const n=await t;return await e.wasmCtx.engine.coreClient.writeFile("/document.pdf",await n.arrayBuffer()),await e.wasmCtx.engine.executeCommand("open_document",k.Normal,{file_path:"/document.pdf"}),await e.wasmCtx.engine.executeCommand("content_editing/enter",k.High,{}),new I(e.wasmCtx,e)}if(e.wasmCtx)return(0,c.h)(e.wasmCtx,"wasmCtx is required."),await(e.wasmCtx?.engine.executeCommand("content_editing/enter",k.High,{})),new I(e.wasmCtx,e)}class I{constructor(e,t){(0,c.h)(e,"wasmCtx is required."),this.wasmCtx=e,this.ctx=t}async closeContentEditor(){await this.wasmCtx.engine.executeCommand("content_editing/exit",k.High,{})}async getTextBlocks(e){return D(this.wasmCtx,"content_editing/get_text_blocks",{pageIndex:e})}async detectParagraphs(e){return D(this.wasmCtx,"content_editing/detect_paragraphs",{pageIndex:e})}async renderTextBlock(e,t,n){const r=await this.wasmCtx.engine.executeCommand("content_editing/render_text_block",k.High,{textBlockId:e,renderTextBlockParams:t,externalControlState:n});return(0,c.h)(2===r.values.length,"expected only two responses for renderTextBlock. ArrayBuffer and Size info."),(0,c.h)(!(r.values[0]instanceof Uint8Array),`expected JSON response: ${r.values}`),(0,c.h)(r.values[1]instanceof Uint8Array,`expected ArrayBuffer response: ${r.values}`),{imageBuffer:r.values[1],displayRect:r.values[0].displayRect}}async setTextBlockCursor(e,t,n,r){return D(this.wasmCtx,"content_editing/set_cursor",{textBlockId:e,offset:t,selectText:n,externalControlState:r})}async moveTextBlockCursor(e,t,n,r){return D(this.wasmCtx,"content_editing/move_cursor",{textBlockId:e,movement:t,selectText:n,externalControlState:r})}async insertTextBlockString(e,t,n,r){return D(this.wasmCtx,"content_editing/insert_text",{textBlockId:e,cluster:t,text:n,externalControlState:r})}async insertTextBlockContentRef(e,t,n,r){return D(this.wasmCtx,"content_editing/insert_content_ref",{textBlockId:e,cluster:t,contentRef:n,externalControlState:r})}async createTextBlock(e){return D(this.wasmCtx,"content_editing/create_text_block",{pageIndex:e})}async layoutTextBlock(e,t,n,r){return D(this.wasmCtx,"content_editing/layout",{textBlockId:e,cursor:t,selection:n,externalControlState:r})}async deleteTextBlockRange(e,t,n){return D(this.wasmCtx,"content_editing/delete_range",{textBlockId:e,range:t,externalControlState:n})}async deleteTextBlockString(e,t,n){return D(this.wasmCtx,"content_editing/delete_cluster",{textBlockId:e,direction:t,externalControlState:n})}async setTextBlockSelection(e,t,n){return D(this.wasmCtx,"content_editing/set_selection",{textBlockId:e,mode:t,externalControlState:n})}async setTextBlockSelectionRange(e,t,n,r,o){return D(this.wasmCtx,"content_editing/set_selection_range",{textBlockId:e,begin:t,end:n,mode:r,externalControlState:o})}async textBlockUndo(e,t){return D(this.wasmCtx,"content_editing/undo",{textBlockId:e,externalControlState:t})}async textBlockRedo(e,t){return D(this.wasmCtx,"content_editing/redo",{textBlockId:e,externalControlState:t})}async textBlockRestore(e,t,n){return D(this.wasmCtx,"content_editing/restore",{textBlockId:e,version:t,externalControlState:n})}async textBlockApplyFormat(e,t,n,r){return D(this.wasmCtx,"content_editing/apply_format",{textBlockId:e,range:t,formatModifications:n,externalControlState:r})}async save(e,t,n){try{const r="/update";if(this.ctx.serverCtx){A(this.ctx);const o=await D(this.wasmCtx,"content_editing/save_to_document",{path:e,textBlockSaveInfos:t,graphicBlockSaveInfos:n,alsoSaveUpdate:!0,updateSavePath:r});(0,c.h)(o.checksum.length>0,"expected non-empty checksum");let i=new FormData;i.append("update",new Blob([await this.wasmCtx.engine.coreClient.readFile(r)]),"update"),i.append("checksum",o.checksum);if((await w(this.ctx.requestQueue,this.ctx.serverCtx,"update-source-document",k.High,y.Token,{method:"POST",body:i})).ok)return;(0,c.h)(this.ctx.serverCtx,"serverCtx is required."),i=new FormData,i.append("file",new Blob([await this.wasmCtx.engine.coreClient.readFile(e)]),"file"),await w(this.ctx.requestQueue,this.ctx.serverCtx,"replace-source-document",k.High,y.Token,{method:"POST",body:i})}else await this.wasmCtx.engine.executeCommand("content_editing/save_to_document",k.High,{path:e,textBlockSaveInfos:t,graphicBlockSaveInfos:n})}catch(t){throw new Error(`Error saving to ${e}: ${t.message}`)}}async getAvailableFaces(){return D(this.wasmCtx,"content_editing/available_faces")}async detectPageElements(e){return D(this.wasmCtx,"content_editing/detect_page_elements",{pageIndex:e})}async renderGraphicBlock(e,t){const n=await this.wasmCtx.engine.executeCommand("content_editing/render_graphic_block",k.High,{graphicBlockId:e,renderGraphicBlockParams:t});return(0,c.h)(2===n.values.length,"expected only two responses for renderGraphicBlock. ArrayBuffer and Size info."),(0,c.h)(!(n.values[0]instanceof Uint8Array),`expected JSON response: ${n.values}`),(0,c.h)(n.values[1]instanceof Uint8Array,`expected ArrayBuffer response: ${n.values}`),{imageBuffer:n.values[1],displayRect:n.values[0].displayRect}}cancelRequests(){this.wasmCtx.engine.cancelRequests((e=>!!e.jsonCommand&&((0,c.h)("string"==typeof e.jsonCommand.type,"expected string type"),e.jsonCommand.type.startsWith("content_editing/"))))}}},86358:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(15359);class o extends r.p2{constructor(e){super(e)}}},16126:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var r=n(15359);function o(e,t){(0,r.kG)(e,t)}},85728:(e,t,n)=>{"use strict";n.d(t,{X9:()=>o.X,f:()=>r,nb:()=>i.n,sk:()=>i.s});var r=n(91034),o=n(86358),i=n(15381)},90184:(e,t,n)=>{"use strict";n.d(t,{D4:()=>u,hj:()=>s,sO:()=>l});var r=n(77017),o=n(86358);class i extends o.X{constructor(e,t){super(e),this.code=t}}var a=n(85728);function s(e){return e instanceof Uint8Array}function l(e){return!s(e)}class c{constructor(e,t){this.jsonCommand=t,this.identifier=(0,r.v4)(),this.coreClient=e}async request(){const e=await this.coreClient.dispatchCommand(JSON.stringify(this.jsonCommand));if(e.success)return e;throw new i(e.message,e.code)}}class u{constructor(e,t){this.requestQueue=e,this.coreClient=t}executeCommand(e,t,n){return(0,a.nb)(this.requestQueue.enqueue(new c(this.coreClient,{type:e,...n}),t))}cancelRequests(e){this.requestQueue.cancelRequests((t=>e(t)))}}},75472:(e,t,n)=>{"use strict";n.d(t,{Xn:()=>h,AO:()=>s,L7:()=>l,$u:()=>f});var r=n(96156),o=n(15359),i=n(96650);const a=()=>{};class s{constructor(){(0,r.Z)(this,"_requests",new Map),(0,r.Z)(this,"_nextRequestId",1),(0,r.Z)(this,"_isLoading",!0),(0,r.Z)(this,"_loadPromise",null),(0,r.Z)(this,"_initPromise",null),(0,r.Z)(this,"_hasOpenedDocument",!1),(0,r.Z)(this,"_hasLoadedCertificates",!1),(0,r.Z)(this,"_handleMessage",(e=>{const t=e.data,n=this._requests.get(t.id);(0,o.kG)(n,`No request was made for id ${t.id}.`);const{resolve:r,reject:i}=n;if(this._requests.delete(t.id),t.error){const e=new o.p2(t.error);e.callArgs=t.callArgs,i(e)}else r(t.result)}))}getNativeModule(){throw new Error("Method not implemented.")}async loadNativeModule(e,t){let{mainThreadOrigin:n,disableWebAssemblyStreaming:r,enableAutomaticLinkExtraction:i,overrideMemoryLimit:a,wasmLoaderPath:s,wasm:l,workerSpawnerFn:c}=t;return(0,o.kG)(!this._hasOpenedDocument,"cannot invoke `loadNativeModule` while an instance is still in use. Please call `recycle` first."),this._loadPromise?this._loadPromise.then((()=>{})):(this._initPromise||(this.workerSpawner||(this.workerSpawner=await c(),this.workerSpawner.setMessageHandler(this._handleMessage)),this._baseCoreUrl=e,this._mainThreadOrigin=n,this._initPromise=this._sendRequest("loadNativeModule",[s&&l?{wasm:l,wasmLoaderPath:s}:e,{mainThreadOrigin:n,disableWebAssemblyStreaming:r,enableAutomaticLinkExtraction:i,overrideMemoryLimit:a}]).then((e=>e)).catch((e=>{throw this._isLoading=!1,this.destroy(),e}))),this._initPromise)}load(e,t,n){let{mainThreadOrigin:r,customFonts:i,dynamicFonts:a,productId:s}=n;return(0,o.kG)(!this._hasOpenedDocument,"cannot invoke `load` while an instance is still in use. Please call `recycle` first."),this._loadPromise||(this._loadPromise=this._sendRequest("load",[e,t,{mainThreadOrigin:r,customFonts:i,dynamicFonts:a,productId:s}]).then((e=>(this._isLoading=!1,e))).catch((e=>{throw this._isLoading=!1,this.workerSpawner?.terminate(),e}))),this._loadPromise}corePBProtoBridge(e,t,n){return this._assertLoaded(),this._sendRequest("corePBProtoBridge",[e,t,n])}version(){return this._assertLoaded(),this._sendRequest("version")}writeFile(e,t){return this._assertLoaded(),this._sendRequest("writeFile",[e,t])}readFile(e){return this._assertLoaded(),this._sendRequest("readFile",[e])}openDocument(e,t,n){return this._assertLoaded(),this._hasOpenedDocument=!0,this._sendRequest("openDocument",[e,t,n]).catch((e=>{throw this._hasOpenedDocument=!1,e}))}async getMeasurementScales(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getMeasurementScales")}async removeMeasurementScale(e){return this._sendRequest("removeMeasurementScale",[e])}async addMeasurementScale(e){return await this._sendRequest("addMeasurementScale",[e])}async getAnnotationsByScale(e){return await this._sendRequest("getAnnotationsByScale",[e])}async openDocumentAt(){throw new Error("Should never be called")}async getAllPageInfos(e){return this._assertLoaded(),this._sendRequest("getAllPageInfos",[e])}async enablePDFJavaScriptSupport(){return this._assertLoaded(),this._sendRequest("enablePDFJavaScriptSupport")}async runPDFFormattingScripts(e,t){return this._assertLoaded(),this._sendRequest("runPDFFormattingScripts",[e,t])}async getSuggestedLineHeightFactor(e,t){return this._assertLoaded(),this._sendRequest("getSuggestedLineHeightFactor",[e,t])}async getAvailableFontFaces(e){return this._assertLoaded(),this._sendRequest("getAvailableFontFaces",[e])}async setFontSubstitutions(e){return this._assertLoaded(),this._sendRequest("setFontSubstitutions",[e])}getBookmarks(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getBookmarks")}getFormJSON(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getFormJSON")}evalFormValuesActions(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("evalFormValuesActions",[e])}evalScript(e,t,n){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("evalScript",[e,t,n])}setFormJSONUpdateBatchMode(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setFormJSONUpdateBatchMode",[e])}getFormValues(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getFormValues")}closeDocument(){return this._assertLoaded(),this._hasOpenedDocument=!1,this._sendRequest("closeDocument")}renderAnnotation(e,t,n,r,o,i){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("renderAnnotation",[e,t,n,r,o,i])}renderPageAnnotations(e,t,n,r,o){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("renderPageAnnotations",[e,t,n,r,o])}renderDetachedAnnotation(e,t,n,r,o){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("renderDetachedAnnotation",[e,t,n,r,o])}onKeystrokeEvent(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("onKeystrokeEvent",[e])}getAttachment(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getAttachment",[e])}annotationsForPageIndex(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("annotationsForPageIndex",[e])}getTabOrder(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getTabOrder",[e])}setTabOrder(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setTabOrder",[e,t])}createAnnotation(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("createAnnotation",[e,t])}updateAnnotation(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("updateAnnotation",[e])}deleteAnnotation(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteAnnotation",[e])}createFormField(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("createFormField",[e,t])}updateFormField(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("updateFormField",[e,t])}deleteFormField(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteFormField",[e])}setFormFieldValue(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setFormFieldValue",[e])}deleteFormFieldValue(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteFormFieldValue",[e])}createBookmark(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("createBookmark",[e])}updateBookmark(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("updateBookmark",[e])}deleteBookmark(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteBookmark",[e])}setDocumentOutline(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setDocumentOutline",[e])}getTextFromRects(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getTextFromRects",[e,t])}getClosestSnapPoint(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getClosestSnapPoint",[e,t])}configureSnapper(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("configureSnapper",[e])}search(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.S.TEXT;return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("search",[e,t,n,r,o])}getSecondaryMeasurementUnit(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getSecondaryMeasurementUnit",[])}compareDocuments(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("compareDocuments",[e])}setSecondaryMeasurementUnit(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setSecondaryMeasurementUnit",[e])}getMeasurementSnappingPoints(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getMeasurementSnappingPoints",[e])}parseXFDF(e,t){return this._sendRequest("parseXFDF",[e,t])}getEmbeddedFilesList(){return this._sendRequest("getEmbeddedFilesList")}exportFile(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"pdf",o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0;return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportFile",[e,t,n,r,o,i,a,s])}importXFDF(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("importXFDF",[e,t,n])}exportXFDF(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportXFDF",[e])}importInstantJSON(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("importInstantJSON",[e])}exportInstantJSON(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportInstantJSON",[e])}getDocumentOutline(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getDocumentOutline")}getPageGlyphs(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getPageGlyphs",[e])}applyOperations(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("applyOperations",[e,t])}reloadDocument(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("reloadDocument")}exportPDFWithOperations(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportPDFWithOperations",[e,t])}loadCertificates(e){return this._assertLoaded(),this._assertDocumentOpen(),this._hasLoadedCertificates=Boolean(e.length),this._sendRequest("loadCertificates",[e]).catch((e=>{throw this._hasLoadedCertificates=!1,e}))}getSignaturesInfo(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getSignaturesInfo",[])}getComments(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getComments",[])}applyComments(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("applyComments",[e])}prepareSign(e,t,n,r,o,i){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("prepareSign",[e,t,n,r,o,i])}getTimestampRequest(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getTimestampRequest",[e,t])}getRevocationRequests(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getRevocationRequests",[e])}setSignaturesLTV(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setSignaturesLTV",[e])}sign(e,t,n,r,o,i,a,s,l){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("sign",[e,t,n,r,o,i,a,s,l])}restoreToOriginalState(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("restoreToOriginalState")}applyRedactions(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("applyRedactions",[])}readFormJSONObjects(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("readFormJSONObjects")}clearAPStreamCache(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("clearAPStreamCache")}setComparisonDocument(e,t){return this._assertLoaded(),t||this._assertDocumentOpen(),this._sendRequest("setComparisonDocument",[e,t])}openComparisonDocument(e){return this._assertLoaded(),this._hasOpenedDocument=!0,this._sendRequest("openComparisonDocument",[e]).catch((e=>{throw this._hasOpenedDocument=!1,e}))}documentCompareAndOpen(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("documentCompareAndOpen",[e])}persistOpenDocument(e){return this._assertLoaded(),e||this._assertDocumentOpen(),this._sendRequest("persistOpenDocument",[e])}cleanupDocumentComparison(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("cleanupDocumentComparison")}getOCGs(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getOCGs",[])}getOCGVisibilityState(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getOCGVisibilityState",[])}setOCGVisibilityState(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setOCGVisibilityState",[e])}updateButtonIcon(e,t,n){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("updateButtonIcon",[e,t,n])}dispatchCommand(e){return this._assertLoaded(),this._sendRequest("dispatchCommand",[e])}recycle(){this._hasLoadedCertificates&&this.loadCertificates([]),this._hasOpenedDocument&&this.closeDocument(),this._isLoading||this._requests.forEach(((e,t)=>{this._requests.set(t,{resolve:a,reject:a})}))}destroy(){this._loadPromise=null,this.workerSpawner?.terminate()}_assertLoaded(){if(this._isLoading)throw new o.p2("CoreClient not yet initialized")}_assertDocumentOpen(){if(!this._hasOpenedDocument)throw new o.p2("This method can not be called since there is no open document. Have you run PSPDFKit.unload()?")}_sendRequest(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,o.kG)(this.workerSpawner,"CoreClient has been destroyed");const n=this.workerSpawner;return new Promise(((r,o)=>{const i=this._assignId(),a=[...t].filter((e=>e instanceof ArrayBuffer));n.postMessage({id:i,action:e,args:t},a),this._requests=this._requests.set(i,{resolve:r,reject:o})}))}_assignId(){const e=this._nextRequestId;return this._nextRequestId=this._nextRequestId+1,e}getCoreCallRecording(){return this._assertLoaded(),this._sendRequest("getCoreCallRecording")}enableCoreCallRecording(e){return this._assertLoaded(),this._sendRequest("enableCoreCallRecording",[e])}}class l{constructor(e){(0,r.Z)(this,"size",1),(0,r.Z)(this,"_freeObjects",[]),this._constructor=e}checkOut(){let e;return e=this._freeObjects.length>0?this._freeObjects.shift():new this._constructor,{object:e,checkIn:()=>{this._freeObjects.length>=this.size?e.destroy():(e.recycle(),this._freeObjects.push(e))}}}}n(44276),n(71856),n(91117),n(35349);var c=n(52923),u=n.n(c);let d;d="object"==typeof process&&"object"==typeof process.versions&&void 0!==process.versions.node?u():function(e){return"object"==typeof window?new Promise(((t,n)=>{const r=document.createElement("script");r.type="text/javascript",r.async=!0,r.onload=()=>t(window.PSPDFModuleInit),r.onerror=n,r.src=e;const{documentElement:i}=document;(0,o.kG)(i),i.appendChild(r)})):(self.importScripts(e),Promise.resolve(self.PSPDFModuleInit))};n(34299),n(79112),n(10983);var p=n(33383);n(74110);n(94161),n(98179),n(72110);const h="/create.pdf";new Set;new Set;p.x.Maui_iOS,p.x.Maui_Android,p.x.Maui_MacCatalyst,p.x.Maui_Windows,p.x.FlutterForWeb;const f=async function(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){const{default:t}=await n.e(4132).then(n.bind(n,27425));e=new t}else e=new Worker(new URL(n.p+n.u(4098),n.b));return{setMessageHandler(t){(0,o.kG)(e,"Worker is null"),e.onmessage=t},postMessage(t,n){e?.postMessage(t,n)},terminate(){e?.terminate(),e=null}}}},94161:(e,t,n)=>{"use strict";n.d(t,{ri:()=>o});var r=n(15359);async function o(e){const t=(await async function(e){try{const t=await fetch(e).catch((t=>{throw new r.p2(`Error fetching dynamic fonts file ${e}. ${t}`)}));if(200!==t.status)throw new r.p2(`Error fetching dynamic fonts file ${e}. Status code: ${t.status}`);return t}catch(e){throw e}}(e)).json().catch((t=>{throw new r.p2(`Error parsing dynamic fonts file ${e}. ${t}`)}));return t}},51679:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var r=n(35369),o=n(15359);function i(){return!0}class a{constructor(e){this.queue=(0,r.zN)(),this.priorityQueue=(0,r.zN)(),this.inFlightRequests=(0,r.D5)(),this.inflightRequestLimit=e,this.isDestroyed=!1}enqueue(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.isDestroyed)return{promise:new Promise((()=>{})),cancel:()=>{}};let n=null,o=null;const i=new Promise(((e,t)=>{n=e,o=t})),a=t?this.priorityQueue:this.queue,s=(0,r.t8)(a,e,{promise:i,resolve:n,reject:o});return t?this.priorityQueue=s:this.queue=s,t?this.next():setTimeout((()=>this.next()),35),{promise:i,cancel:()=>this._cancel(e)}}_cancel(e){this.queue.has(e)&&(this.queue=this.queue.delete(e)),this.priorityQueue.has(e)&&(this.priorityQueue=this.priorityQueue.delete(e)),this.inFlightRequests.has(e)&&(this.inFlightRequests=this.inFlightRequests.delete(e))}cancelAll(){this.queue=(0,r.zN)(),this.priorityQueue=(0,r.zN)(),this.inFlightRequests=(0,r.D5)()}cancel(e){const t=(t,n)=>e(n);this.queue=this.queue.filter(t),this.priorityQueue=this.priorityQueue.filter(t),this.inFlightRequests=this.inFlightRequests.filter(t)}_requestFinished(e,t){if(this.isDestroyed)return;const n=this.inFlightRequests.get(e);n&&(n.resolve(t),this.inFlightRequests=this.inFlightRequests.delete(e)),this.next()}_requestFailed(e,t){if(this.isDestroyed)return;const n=this.inFlightRequests.get(e);n&&(n.reject(t),this.inFlightRequests=this.inFlightRequests.delete(e)),this.next()}next(){if(!(this.isDestroyed||this.inFlightRequests.size>=this.inflightRequestLimit)){if(this.priorityQueue.size>=1){const e=this.priorityQueue.findLastEntry(i);(0,o.kG)(e);const[t,n]=e;return this.priorityQueue=this.priorityQueue.delete(t),this.inFlightRequests=this.inFlightRequests.set(t,n),void t.request().then((e=>this._requestFinished(t,e))).catch((e=>this._requestFailed(t,e)))}if(this.queue.size>=1){const e=this.queue.findEntry(i);(0,o.kG)(e);const[t,n]=e;this.queue=this.queue.delete(t),this.inFlightRequests=this.inFlightRequests.set(t,n),t.request().then((e=>this._requestFinished(t,e))).catch((e=>this._requestFailed(t,e)))}}}destroy(){this.isDestroyed=!0}}},82654:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(96156);class o{constructor(e){(0,r.Z)(this,"_subscriptions",new Set),this._state=e}getState(){return this._state}setState(e){this._state="function"==typeof e?e(this._state):e;for(const e of this._subscriptions)e(this._state)}subscribe(e){return this._subscriptions.add(e),()=>this.unsubscribe(e)}unsubscribe(e){this._subscriptions.delete(e)}}},17137:(e,t,n)=>{"use strict";n.d(t,{T:()=>i,Z:()=>o});const r=function e(t){let n;return n=t instanceof Error?t:new Error(t),Object.setPrototypeOf(n,e.prototype),n};r.prototype=Object.create(Error.prototype,{name:{value:"PSPDFKitError",enumerable:!1}});const o=r;function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=>new r(""===e?t:`${e}: ${t}`)}},73044:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=e=>{throw new Error("")}},14736:(e,t,n)=>{"use strict";n.d(t,{G:()=>i,Z:()=>o});const r={keys:[]};function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;if(n={keys:null!=n?.keys?n.keys:r.keys},Object.is(e,t))return[];let o=n.keys||[];if(0===o.length){o=[...new Set(Object.keys(e).concat(Object.keys(t)))]}const i=o.filter((n=>e[n]!==t[n]));return i.map((n=>({key:n,previous:e[n],current:t[n]})))}function i(e){return e.map((e=>{let{key:t,previous:n,current:r}=e;return`- ${t} was previously ${n}, but is now ${r}`})).join("\n")}},6273:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(2===t.length)return i(t[0],t[1])||null;const r=t.slice(1).reduce(((e,t)=>i(e,t)),t[0]);return r||null}n.d(t,{Z:()=>r});const o=new WeakMap;function i(e,t){if(e&&t){const n=o.get(e)||new WeakMap;o.set(e,n);const r=n.get(t)||(n=>{a(e,n),a(t,n)});return n.set(t,r),r}return e||t}function a(e,t){"function"==typeof e?e(t):e.current=t}},38252:(e,t,n)=>{"use strict";function r(e){a(e)}function o(e,t,n){if(n)return r(`The API ${e} has been deprecated and will be removed in the next major release. Please use ${t} instead. Please go to https://pspdfkit.com/api/web/ for more informations`);r(`The function ${e} was deprecated and will be removed in future version. Please use ${t} instead.`)}function i(e){console.log(e)}function a(){console.warn(...arguments)}function s(e){console.error(e)}function l(){console.info(...arguments)}n.d(t,{XV:()=>o,ZK:()=>a,a1:()=>r,cM:()=>i,um:()=>l,vU:()=>s})},23664:(e,t,n)=>{"use strict";n.d(t,{GO:()=>o,cO:()=>r});const r=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");function o(e){return Array.prototype.filter.call(e.querySelectorAll(r),(e=>!(e.inert||e.hasAttribute("inert")||"-1"===e.getAttribute("tabindex")||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))))}},15359:(e,t,n)=>{"use strict";n.d(t,{$O:()=>l.Z,AK:()=>s.Z,FE:()=>d.Z,GB:()=>l.G,H7:()=>p.x,Ou:()=>p.Z,PO:()=>a.Z,Qo:()=>h.Q,Rz:()=>i.Z,Tr:()=>o.T,XV:()=>u.XV,ZK:()=>u.ZK,a1:()=>u.a1,cM:()=>u.cM,kG:()=>r.Z,lH:()=>f.l,p2:()=>o.Z,um:()=>u.um,vU:()=>u.vU,wp:()=>c.w});var r=n(51984),o=n(17137),i=n(73044),a=n(81787),s=n(61904),l=n(14736),c=n(9041),u=n(38252),d=(n(51722),n(23664),n(86849),n(82654),n(6273)),p=n(37131),h=n(28413),f=n(86241);n(1184)},51984:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(17137);function o(e,t){if(!e)throw new r.Z(`Assertion failed: ${t||"Condition not met"}\n\nFor further assistance, please go to: https://pspdfkit.com/support/request`)}},51722:(e,t,n)=>{"use strict";function r(e){return"true"===e.contentEditable||"INPUT"===e.tagName||"TEXTAREA"===e.tagName}n.d(t,{c:()=>r})},81787:(e,t,n)=>{"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}n.d(t,{Z:()=>r})},61904:(e,t,n)=>{"use strict";function r(e){const t=new MessageChannel;try{t.port1.postMessage(e)}catch(e){return!1}return!0}n.d(t,{Z:()=>r})},86849:(e,t,n)=>{"use strict";n.d(t,{AV:()=>v,Cp:()=>r,E$:()=>l,MS:()=>p,OC:()=>w,P9:()=>h,b8:()=>i,bs:()=>b,cS:()=>g,d2:()=>y,gs:()=>m,gx:()=>s,iT:()=>a,j4:()=>o,rw:()=>f,tW:()=>u,wG:()=>d,zz:()=>c});const r=48,o=70,i=71,a=80,s=90,l=13,c=27,u=32,d=34,p=33,h=37,f=38,m=39,g=40,v=187,y=189,b=8,w=9},86241:(e,t,n)=>{"use strict";function r(e){return null!=e}n.d(t,{l:()=>r})},9041:(e,t,n)=>{"use strict";function r(e){alert(e)}n.d(t,{w:()=>r})},28413:(e,t,n)=>{"use strict";function r(e,t){if(t.caretRangeFromPoint)return t.caretRangeFromPoint(e.x,e.y);if("caretPositionFromPoint"in t&&"function"==typeof t.caretPositionFromPoint){const n=t.caretPositionFromPoint(e.x,e.y),r=t.createRange();return r.setStart(n.offsetNode,n.offset),r.setEnd(n.offsetNode,n.offset),r}}n.d(t,{Q:()=>r})},1184:()=>{},37131:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,x:()=>i});var r=n(51984);function o(e){(0,r.Z)("object"==typeof e&&null!==e,"instantJSON must be an Object"),(0,r.Z)("https://pspdfkit.com/instant-json/v1"===e.format,"instantJSON has an invalid format, please use 'https://pspdfkit.com/instant-json/v1");const{pdfId:t}=e;t&&(0,r.Z)("object"==typeof t&&null!==t&&("string"==typeof t.permanent&&"string"==typeof t.changing||"string"!=typeof t.permanent&&"string"!=typeof t.changing),"instantJSON has an invalid pdfId"),(0,r.Z)(void 0===e.skippedPdfObjectIds||Array.isArray(e.skippedPdfObjectIds),"instantJSON has invalid skippedPdfObjectIds"),(0,r.Z)(void 0===e.annotations||Array.isArray(e.annotations)&&e.annotations.every((e=>"object"==typeof e&&null!==e)),"instantJSON has invalid annotations"),(0,r.Z)(void 0===e.formFieldValues||Array.isArray(e.formFieldValues)&&e.formFieldValues.every((e=>"object"==typeof e&&null!==e)),"instantJSON has invalid form field values"),(0,r.Z)(void 0===e.skippedPdfBookmarkIds||Array.isArray(e.skippedPdfBookmarkIds),"instantJSON has invalid skippedPdfBookmarkIds"),(0,r.Z)(void 0===e.bookmarks||Array.isArray(e.bookmarks)&&e.bookmarks.every((e=>"object"==typeof e&&null!==e)),"instantJSON has invalid bookmarks")}function i(e){const t={};return Object.keys(e).forEach((n=>{Array.isArray(e[n])?t[n]=e[n].filter(Boolean):"object"==typeof e[n]&&null!==e[n]?t[n]=i(e[n]):t[n]=e[n]})),t}},20144:(e,t,n)=>{"use strict";n.d(t,{HJ:()=>Wt,zx:()=>d,hE:()=>p,qe:()=>vt,M5:()=>wt,bK:()=>Mn,FE:()=>Kt,D:()=>br,F0:()=>Ut,w6:()=>$t,z:()=>xn,QO:()=>hn,u_:()=>ln,Ex:()=>gn,Ee:()=>Dn,xv:()=>wn,oi:()=>En,TX:()=>tn,ri:()=>r});var r={};n.r(r),n.d(r,{applyStyle:()=>ur,cssStringToObject:()=>Hn,deserialize:()=>Kn,escapeHtml:()=>Bn,getComputedStyleAll:()=>ir,getInnerHTML:()=>Yn,getLastNCharacters:()=>Jn,getSelectedNodesColor:()=>ar,getStyleString:()=>$n,getText:()=>qn,getWrapperTags:()=>Wn,isAtStartOfWordOrText:()=>er,isMarkActive:()=>Un,isRangeSelected:()=>Qn,isSelectionUnderlined:()=>dr,parseHTML:()=>Gn,prepareHTML:()=>Xn,serialize:()=>Vn,setStyleOrToggleFormat:()=>nr,toHex:()=>rr,toggleMark:()=>Zn,unwrapNode:()=>cr,wrapNode:()=>lr});var o=n(22122),i=n(67294),a=n.t(i,2),s=n(9327),l=n.n(s),c=n(37672),u=n.n(c);const d=e=>{const{className:t,disabled:n,inverted:r,primary:a,danger:s,type:c,...d}=e,p=l()({[u().general]:!0,[u().default]:!a,[u().primary]:a,[u().danger]:s,[u().disabled]:n,[u().inverted]:!n&&r},t);return i.createElement("button",(0,o.Z)({},d,{className:p,disabled:n,type:c||"button"}))},p=e=>{const{className:t,children:n,align:r,style:o}=e;let a=null;return i.createElement("div",{className:l()(u().group,"start"===r&&u().groupAlignStart,"end"===r&&u().groupAlignEnd,t),style:o},i.Children.map(n,(e=>e?a?(a=e,i.createElement(i.Fragment,null,i.createElement("div",{className:u().groupSpacer}),e)):(a=e,e):null)))};function h(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function f(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function m(e){f(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function g(e,t){f(2,arguments);var n=m(e).getTime(),r=h(t);return new Date(n+r)}function v(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}Math.pow(10,8);function y(e){f(1,arguments);var t=m(e);return!isNaN(t)}var b={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function w(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}const x={date:w({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:w({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:w({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var _={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function S(e){return function(t,n){var r,o=n||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=o.width?String(o.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=o.width?String(o.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const C={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:S({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:S({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:S({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:S({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:S({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function E(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?z(l,(function(e){return e.test(s)})):k(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var u=t.slice(s.length);return{value:a,rest:u}}}function k(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function z(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var P,D={ordinalNumber:(P={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(P.matchPattern);if(!n)return null;var r=n[0],o=e.match(P.parsePattern);if(!o)return null;var i=P.valueCallback?P.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(r.length);return{value:i,rest:a}}),era:E({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:E({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:E({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:E({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:E({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var A={code:"en-US",formatDistance:function(e,t,n){var r;return n=n||{},r="string"==typeof b[e]?b[e]:1===t?b[e].one:b[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:x,formatRelative:function(e,t,n,r){return _[e]},localize:C,match:D,options:{weekStartsOn:0,firstWeekContainsDate:1}};const T=A;function I(e,t){f(2,arguments);var n=h(t);return g(e,-n)}function M(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var R={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return M("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):M(n+1,2)},d:function(e,t){return M(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return M(e.getUTCHours()%12||12,t.length)},H:function(e,t){return M(e.getUTCHours(),t.length)},m:function(e,t){return M(e.getUTCMinutes(),t.length)},s:function(e,t){return M(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return M(Math.floor(r*Math.pow(10,n-3)),t.length)}};const F=R;var N=864e5;function O(e){f(1,arguments);var t=1,n=m(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function j(e){f(1,arguments);var t=m(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=O(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=O(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function L(e){f(1,arguments);var t=j(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=O(n);return r}var B=6048e5;function K(e){f(1,arguments);var t=m(e),n=O(t).getTime()-L(t).getTime();return Math.round(n/B)+1}function V(e,t){f(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,i=null==o?0:h(o),a=null==n.weekStartsOn?i:h(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=m(e),l=s.getUTCDay(),c=(l<a?7:0)+l-a;return s.setUTCDate(s.getUTCDate()-c),s.setUTCHours(0,0,0,0),s}function H(e,t){f(1,arguments);var n=m(e,t),r=n.getUTCFullYear(),o=t||{},i=o.locale,a=i&&i.options&&i.options.firstWeekContainsDate,s=null==a?1:h(a),l=null==o.firstWeekContainsDate?s:h(o.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,l),c.setUTCHours(0,0,0,0);var u=V(c,t),d=new Date(0);d.setUTCFullYear(r,0,l),d.setUTCHours(0,0,0,0);var p=V(d,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=p.getTime()?r:r-1}function $(e,t){f(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,i=null==o?1:h(o),a=null==n.firstWeekContainsDate?i:h(n.firstWeekContainsDate),s=H(e,t),l=new Date(0);l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0);var c=V(l,t);return c}var U=6048e5;function Z(e,t){f(1,arguments);var n=m(e),r=V(n,t).getTime()-$(n,t).getTime();return Math.round(r/U)+1}var q="midnight",G="noon",W="morning",Y="afternoon",X="evening",Q="night",J={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return F.y(e,t)},Y:function(e,t,n,r){var o=H(e,r),i=o>0?o:1-o;return"YY"===t?M(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):M(i,t.length)},R:function(e,t){return M(j(e),t.length)},u:function(e,t){return M(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return M(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return M(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return F.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return M(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=Z(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):M(o,t.length)},I:function(e,t,n){var r=K(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):M(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):F.d(e,t)},D:function(e,t,n){var r=function(e){f(1,arguments);var t=m(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/N)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):M(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return M(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return M(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return M(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?G:0===o?q:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?X:o>=12?Y:o>=4?W:Q,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return F.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):F.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):M(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):M(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):F.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):F.s(e,t)},S:function(e,t){return F.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return te(o);case"XXXX":case"XX":return ne(o);default:return ne(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return te(o);case"xxxx":case"xx":return ne(o);default:return ne(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ee(o,":");default:return"GMT"+ne(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ee(o,":");default:return"GMT"+ne(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return M(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return M((r._originalDate||e).getTime(),t.length)}};function ee(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+M(i,2)}function te(e,t){return e%60==0?(e>0?"-":"+")+M(Math.abs(e)/60,2):ne(e,t)}function ne(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+M(Math.floor(o/60),2)+n+M(o%60,2)}const re=J;function oe(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function ie(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var ae={p:ie,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),o=r[1],i=r[2];if(!i)return oe(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",oe(o,t)).replace("{{time}}",ie(i,t))}};const se=ae;var le=["D","DD"],ce=["YY","YYYY"];function ue(e){return-1!==le.indexOf(e)}function de(e){return-1!==ce.indexOf(e)}function pe(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var he=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,me=/^'([^]*?)'?$/,ge=/''/g,ve=/[a-zA-Z]/;function ye(e,t,n){f(2,arguments);var r=String(t),o=n||{},i=o.locale||T,a=i.options&&i.options.firstWeekContainsDate,s=null==a?1:h(a),l=null==o.firstWeekContainsDate?s:h(o.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=i.options&&i.options.weekStartsOn,u=null==c?0:h(c),d=null==o.weekStartsOn?u:h(o.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!i.localize)throw new RangeError("locale must contain localize property");if(!i.formatLong)throw new RangeError("locale must contain formatLong property");var p=m(e);if(!y(p))throw new RangeError("Invalid time value");var g=v(p),b=I(p,g),w={firstWeekContainsDate:l,weekStartsOn:d,locale:i,_originalDate:p},x=r.match(fe).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,se[t])(e,i.formatLong,w):e})).join("").match(he).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return be(n);var a=re[r];if(a)return!o.useAdditionalWeekYearTokens&&de(n)&&pe(n,t,e),!o.useAdditionalDayOfYearTokens&&ue(n)&&pe(n,t,e),a(b,n,i.localize,w);if(r.match(ve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return x}function be(e){return e.match(me)[1].replace(ge,"'")}function we(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function xe(e,t,n){f(2,arguments);var r=n||{},o=r.locale,i=o&&o.options&&o.options.weekStartsOn,a=null==i?0:h(i),s=null==r.weekStartsOn?a:h(r.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=m(e),c=h(t),u=l.getUTCDay(),d=c%7,p=(d+7)%7,g=(p<s?7:0)+c-u;return l.setUTCDate(l.getUTCDate()+g),l}var _e=/^(1[0-2]|0?\d)/,Se=/^(3[0-1]|[0-2]?\d)/,Ce=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Ee=/^(5[0-3]|[0-4]?\d)/,ke=/^(2[0-3]|[0-1]?\d)/,ze=/^(2[0-4]|[0-1]?\d)/,Pe=/^(1[0-1]|0?\d)/,De=/^(1[0-2]|0?\d)/,Ae=/^[0-5]?\d/,Te=/^[0-5]?\d/,Ie=/^\d/,Me=/^\d{1,2}/,Re=/^\d{1,3}/,Fe=/^\d{1,4}/,Ne=/^-?\d+/,Oe=/^-?\d/,je=/^-?\d{1,2}/,Le=/^-?\d{1,3}/,Be=/^-?\d{1,4}/,Ke=/^([+-])(\d{2})(\d{2})?|Z/,Ve=/^([+-])(\d{2})(\d{2})|Z/,He=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,$e=/^([+-])(\d{2}):(\d{2})|Z/,Ue=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Ze(e,t,n){var r=t.match(e);if(!r)return null;var o=parseInt(r[0],10);return{value:n?n(o):o,rest:t.slice(r[0].length)}}function qe(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function Ge(e,t){return Ze(Ne,e,t)}function We(e,t,n){switch(e){case 1:return Ze(Ie,t,n);case 2:return Ze(Me,t,n);case 3:return Ze(Re,t,n);case 4:return Ze(Fe,t,n);default:return Ze(new RegExp("^\\d{1,"+e+"}"),t,n)}}function Ye(e,t,n){switch(e){case 1:return Ze(Oe,t,n);case 2:return Ze(je,t,n);case 3:return Ze(Le,t,n);case 4:return Ze(Be,t,n);default:return Ze(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function Xe(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Qe(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}var Je=[31,28,31,30,31,30,31,31,30,31,30,31],et=[31,29,31,30,31,30,31,31,30,31,30,31];function tt(e){return e%400==0||e%4==0&&e%100!=0}var nt={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var o=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return We(4,e,o);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return We(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var o=e.getUTCFullYear();if(n.isTwoDigitYear){var i=Qe(n.year,o);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var o=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return We(4,e,o);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return We(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var o=H(e,r);if(n.isTwoDigitYear){var i=Qe(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),V(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),V(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return Ye("R"===t?4:t.length,e)},set:function(e,t,n,r){var o=new Date(0);return o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0),O(o)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return Ye("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return We(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return We(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var o=function(e){return e-1};switch(t){case"M":return Ze(_e,e,o);case"MM":return We(2,e,o);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:o});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var o=function(e){return e-1};switch(t){case"L":return Ze(_e,e,o);case"LL":return We(2,e,o);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:o});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return Ze(Ee,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return We(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return V(function(e,t,n){f(2,arguments);var r=m(e),o=h(t),i=Z(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return Ze(Ee,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return We(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return O(function(e,t){f(2,arguments);var n=m(e),r=h(t),o=K(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"d":return Ze(Se,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return We(t.length,e)}},validate:function(e,t,n){var r=tt(e.getUTCFullYear()),o=e.getUTCMonth();return r?t>=1&&t<=et[o]:t>=1&&t<=Je[o]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"D":case"DD":return Ze(Ce,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return We(t.length,e)}},validate:function(e,t,n){return tt(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=xe(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return We(t.length,e,o);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:o});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=xe(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return We(t.length,e,o);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:o});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=xe(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var o=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return We(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o});default:return n.day(e,{width:"wide",context:"formatting",valueCallback:o})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return e=function(e,t){f(2,arguments);var n=h(t);n%7==0&&(n-=7);var r=1,o=m(e),i=o.getUTCDay(),a=((n%7+7)%7<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+a),o}(e,n,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Xe(n),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Xe(n),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Xe(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return Ze(De,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return We(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var o=e.getUTCHours()>=12;return o&&n<12?e.setUTCHours(n+12,0,0,0):o||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return Ze(ke,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return We(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return Ze(Pe,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return We(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return Ze(ze,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return We(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var o=n<=24?n%24:n;return e.setUTCHours(o,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return Ze(Ae,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return We(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return Ze(Te,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return We(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return We(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return qe(Ke,e);case"XX":return qe(Ve,e);case"XXXX":return qe(He,e);case"XXXXX":return qe(Ue,e);default:return qe($e,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return qe(Ke,e);case"xx":return qe(Ve,e);case"xxxx":return qe(He,e);case"xxxxx":return qe(Ue,e);default:return qe($e,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return Ge(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return Ge(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}};const rt=nt;var ot=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,it=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,at=/^'([^]*?)'?$/,st=/''/g,lt=/\S/,ct=/[a-zA-Z]/;function ut(e,t,n,r){f(3,arguments);var o=String(e),i=String(t),a=r||{},s=a.locale||T;if(!s.match)throw new RangeError("locale must contain match property");var l=s.options&&s.options.firstWeekContainsDate,c=null==l?1:h(l),u=null==a.firstWeekContainsDate?c:h(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=s.options&&s.options.weekStartsOn,p=null==d?0:h(d),g=null==a.weekStartsOn?p:h(a.weekStartsOn);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===i)return""===o?m(n):new Date(NaN);var y,b={firstWeekContainsDate:u,weekStartsOn:g,locale:s},w=[{priority:10,subPriority:-1,set:dt,index:0}],x=i.match(it).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,se[t])(e,s.formatLong,b):e})).join("").match(ot),_=[];for(y=0;y<x.length;y++){var S=x[y];!a.useAdditionalWeekYearTokens&&de(S)&&pe(S,i,e),!a.useAdditionalDayOfYearTokens&&ue(S)&&pe(S,i,e);var C=S[0],E=rt[C];if(E){var k=E.incompatibleTokens;if(Array.isArray(k)){for(var z=void 0,P=0;P<_.length;P++){var D=_[P].token;if(-1!==k.indexOf(D)||D===C){z=_[P];break}}if(z)throw new RangeError("The format string mustn't contain `".concat(z.fullToken,"` and `").concat(S,"` at the same time"))}else if("*"===E.incompatibleTokens&&_.length)throw new RangeError("The format string mustn't contain `".concat(S,"` and any other token at the same time"));_.push({token:C,fullToken:S});var A=E.parse(o,S,s.match,b);if(!A)return new Date(NaN);w.push({priority:E.priority,subPriority:E.subPriority||0,set:E.set,validate:E.validate,value:A.value,index:w.length}),o=A.rest}else{if(C.match(ct))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");if("''"===S?S="'":"'"===C&&(S=pt(S)),0!==o.indexOf(S))return new Date(NaN);o=o.slice(S.length)}}if(o.length>0&&lt.test(o))return new Date(NaN);var M=w.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return w.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),R=m(n);if(isNaN(R))return new Date(NaN);var F=I(R,v(R)),N={};for(y=0;y<M.length;y++){var O=M[y];if(O.validate&&!O.validate(F,O.value,b))return new Date(NaN);var j=O.set(F,N,O.value,b);j[0]?(F=j[0],we(N,j[1])):F=j}return F}function dt(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function pt(e){return e.match(at)[1].replace(st,"'")}var ht=n(7232),ft=n.n(ht),mt=n(98179);const gt={date:"yyyy-MM-dd",time:"HH:mm","datetime-local":"yyyy-MM-dd'T'HH:mm"},vt=i.forwardRef(((e,t)=>{const[n,r]=i.useState(),[o,a]=i.useState(),s=i.useCallback((e=>{r(e)}),[]),c=i.useCallback((e=>{a(e)}),[]),u=e.format.split("").map((e=>{switch(e){case"m":return"M";case"M":return"m"}return e})).join("");i.useEffect((()=>{if(n&&o&&n.value!==o.value){const t=ut(n.value,u,new Date);y(t)?o.value=ye(t,gt[e.type]):o.value=""}}),[n,o,e.type,u]);const[d,p]=i.useState(!1);i.useImperativeHandle(t,(()=>n),[n]);const h=mt.i7||mt.TL||"date"===e.type,f=t=>{if(!n)return;const r=n.ownerDocument.activeElement;r!==n&&r!==o&&(e.onBlur?.(t),p(!1))},m=t=>{d||e.onFocus?.(t),p(!0)},g=l()({[ft().picker]:!0,[ft().firefoxDatePicker]:mt.vU});return i.createElement("div",{className:ft().wrapper},i.createElement("input",{"data-testid":"input",ref:s,name:e.name,value:e.value,style:e.style,className:l()(ft().input,e.className,"PSPDFKit-Annotation-Widget-Date-Input"),type:"text",disabled:e.disabled,maxLength:e.maxLength,placeholder:e.format,required:e.required,onChange:t=>{if(n){const r=ut(n.value,u,new Date);!0===y(r)&&o&&(o.value=ye(r,gt[e.type])),e.onChange?.(t)}},onBlur:f,onFocus:m}),h?i.createElement("div",{style:{opacity:d?1:0},className:ft().pickerWidget},i.createElement("input",{"data-testid":"picker",ref:c,className:g,type:e.type,onChange:t=>{if(n&&o){if(""===o.value)n.value="";else{const t=ut(o.value,gt[e.type],new Date);y(t)&&o&&(n.value=ye(t,u))}e.onChange?.(t)}},onBlur:f,onFocus:m,disabled:e.disabled})):null)}));vt.defaultProps={};var yt=n(19290),bt=n.n(yt);function wt(e){let{children:t,className:n}=e;return i.createElement("div",{className:l()(bt().center,n)},t)}var xt=n(2245),_t=n(36623),St=n(35369),Ct=n(67366),Et=n(81454),kt=n.n(Et);const zt=e=>{const{onDragOver:t}=e,[,n]=(0,xt.c0)({type:Pt,item:()=>(e.onDragStart&&e.onDragStart(e.index),{id:e.index,type:Pt}),canDrag:()=>e.draggable||!1,end:()=>{e.onDragEnd&&e.onDragEnd()}}),[,r]=(0,xt.LW)({accept:Pt,hover:(n,r)=>{t&&t(e.index,r.getClientOffset())}});return i.createElement("div",{"data-id":e.index,ref:r},i.createElement("div",{ref:n,className:kt().item},i.createElement("div",{className:kt().content},e.children)))},Pt="ITEM",Dt=e=>{const{renderItem:t,containerOffset:n}=e,{item:r,isDragging:o,currentOffset:a}=(0,xt.f$)((e=>({item:e.getItem(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging()}))),s=i.useMemo((()=>o?i.createElement(zt,{index:r.id},t(r.id)):null),[o,r,t]);if(!o||!a)return null;const{x:l,y:c}=a,u={transform:`translate(${l-n.left}px, ${c-n.top}px)`};return i.createElement("div",{className:kt().dragPreview},i.createElement("div",{style:u},s))};var At=n(67057);const Tt=e=>{const{scrollY:t=0,onViewportChange:n,initialForcedScrollY:r}=e,[o,a]=i.useState(null),[s,l]=i.useState({height:0,width:0,scrollY:0}),c=i.useRef(null),u=i.useRef(null),d=i.useRef(0);i.useLayoutEffect((()=>{o&&(o.scrollTop=t)}),[o,t]),i.useLayoutEffect((()=>{o&&"number"==typeof r&&(o.scrollTop=r)}),[o,r]);const{currentOffset:p,isDragging:h}=(0,xt.f$)((e=>({isDragging:e.isDragging(),currentOffset:e.getClientOffset()}))),f=i.useCallback((()=>{const{clientWidth:e=0,clientHeight:t=0}=o||{},n=e||0,r=t||0;n===s.width&&r===s.height||l({...s,width:n||0,height:r||0})}),[o,s]),m=i.useCallback((e=>{const t=e.currentTarget.scrollTop,n={...s,scrollY:t};s.scrollY!==t&&l(n)}),[s]);i.useLayoutEffect((()=>{n(s)}),[n,s]),i.useEffect((()=>{c.current=o?.getBoundingClientRect(),f()}),[o,f]);const g=i.useCallback((()=>{clearInterval(u.current),u.current=null}),[]),v=i.useCallback((e=>{g(),o&&d.current!==e&&(g(),u.current=setInterval((()=>{o.scrollBy(0,e)}),Nt),d.current=e)}),[o,g]);i.useEffect((()=>{if(!c.current||!p)return void g();const{height:e}=c.current,t=p.y<It,n=p.y>e-It,r=p.y,o=e-p.y,i=Mt+(It-(t?r:o))/It*(Rt-Mt);!u.current||t||n?t?v(-Ft*i):n&&v(Ft*i):g()}),[p,v,g]);const y={position:"relative",width:"100%",height:"100%",overflowX:"hidden",overflowY:h&&(0,mt.b1)()?"hidden":"scroll"},b=i.useRef(null);return i.useEffect((()=>{b.current&&b.current?.focus({preventScroll:!0})})),i.createElement("div",{"data-testid":"scroll",ref:e=>a(e),style:y,onScroll:m},i.createElement(At.Z,{onResize:f}),o?e.renderContent(s,b):null)},It=50,Mt=.5,Rt=1,Ft=10,Nt=1;var Ot=n(96156),jt=n(15359);class Lt{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;(0,Ot.Z)(this,"itemWidth",0),(0,Ot.Z)(this,"itemHeight",0),(0,Ot.Z)(this,"itemPaddingLeft",0),(0,Ot.Z)(this,"itemPaddingRight",0),(0,Ot.Z)(this,"totalItems",0),(0,jt.kG)(e>0,"You must provide an item width of greater than 0"),(0,jt.kG)(t>0,"You must provide an item height of greater than 0"),(0,jt.kG)(r>=0,"Padding must be greater than 0"),(0,jt.kG)(o>=0,"Padding must be greater than 0"),this.itemWidth=e,this.itemHeight=t,this.totalItems=n,this.itemPaddingLeft=r,this.itemPaddingRight=o}contentHeight(e){const t=this.itemsPerRow(e);return Math.ceil(this.totalItems/t)*this.itemHeight}itemsPerRow(e){return Math.max(Math.floor(e.width/this.itemWidth),1)}layoutAttributesForItemsIn(e){const{scrollY:t,height:n}=e,r=this.itemsPerRow(e),o=Math.ceil(this.totalItems/r),i=t?Math.floor(t/this.itemHeight):0,a=Math.ceil(n/this.itemHeight),s=Math.max(i-Bt,0),l=Math.min(i+a+Bt,o),c=[];for(let t=s*r;t<l*r;t++)c.push(this.layoutAttributeForItemAt(e,t));return c}layoutAttributeForItemAt(e,t){const{width:n}=e,r=this.itemsPerRow(e),o=r*this.itemWidth,i=Math.max((n-o)/(r+1),0),a=Math.floor(t/r);return{index:t,left:(this.itemWidth+i)*(t%r)+i,top:this.itemHeight*a,width:this.itemWidth,height:this.itemHeight}}layoutAttributeForInsertionCursor(e,t,n){const r=this.itemsPerRow(e),o=r+1,i=Math.floor((t||n)/r),a=(n+i)%o,s=this.itemWidth*r,l=(e.width-s)/o,c=a===r;let u=(l+this.itemWidth)*a;return 0===a?u+=this.itemPaddingLeft:c&&(u-=this.itemPaddingRight),{index:n,left:u,top:this.itemHeight*i,width:l,height:this.itemHeight,atRowEnd:c}}}const Bt=2,Kt=e=>{var t;const{draggingEnabled:n=!1,totalItems:r,itemHeight:o,itemWidth:a,itemPaddingLeft:s,itemPaddingRight:l,selectedItemIndexes:c=(0,St.l4)(),canInsert:u,renderDragPreview:d,renderInsertionCursor:p,focusedItemIndex:h,containerOffset:f,gridContainerEl:m}=e,[g,v]=i.useState(null),y=i.useRef(null),b=i.useRef(null),w=i.useRef(null),[x,_]=i.useState((0,St.l4)([])),S=new Lt(a,o,r,s,l),[C,E]=i.useState(0),k=(0,Ct.v9)((e=>e.shadowRoot));i.useLayoutEffect((()=>{0!==c.size&&(e=>{const t=b.current;if(0===e.size)return;if(!t)return;const n=t.height+t.scrollY,r=e=>{const r=e.top+e.height/2;return r>t.scrollY&&r<n};let o=S.layoutAttributesForItemsIn(t);o=o.filter((t=>e.has(t.index)));if(o.filter(r).length>0)return;let i=o.filter((e=>!r(e)));0===i.length&&(i=e.map((e=>S.layoutAttributeForItemAt(t,e))).toArray()),i=i.sort(((e,t)=>e.index-t.index));const a=i[0];b.current={...t,scrollY:a.top},E(a.top)})(c)}),[c]);const z=e=>{e.preventDefault()},P=e=>c.has(e)||!1,D=()=>{y.current=null,w.current=null,_((0,St.l4)([]))},A=(0,i.useCallback)(((e,t)=>{if(!m)return y.current=null,void(w.current=null);const n=k?.elementsFromPoint(e,t),r=n?.find((e=>m.contains(e)));if(r){const t=r.closest("[data-page-index]")||r,n=t.getAttribute("data-page-index");if("string"==typeof n){const r=parseInt(n,10),o=t.getBoundingClientRect();y.current={index:r,bounds:o};const i=o.left+o.width/2;w.current=e<i?r:r+1}}else y.current=null,w.current=null}),[k,m]),T=i.useCallback(((e,t)=>{if(!n)return;const o=y.current;if(g&&t)if(null===o||o.index!==e){const t=g.querySelector(`[data-id="${e}"]`)?.getBoundingClientRect();if(!t)return void(y.current=null);y.current={index:e,bounds:t}}else{const n=o.bounds.left+o.bounds.width/2,i=t.x<n?e:e+1;w.current=Math.min(i,r)}}),[y,g,r,n]),I=e=>{if(!n)return;const t=P(e);_(t?(0,St.l4)(c):(0,St.l4)([e]))},M=()=>{if(!n)return;const t=w.current;if(null!==t){const n=Array.from(x);if(x.has(t))return void R();e.onDragEnd&&e.onDragEnd(n,t)}D()},R=()=>{requestAnimationFrame((()=>D()))},F=t=>{if(d)return d(t,Array.from(x));{const n={selected:!1,dragging:!1};return e.renderItem(t,n)}},N=e=>{b.current=e},O=(t,n)=>{if(!p)return null;const r=null!==w.current?w.current:e.insertionIndex;if(null==r)return;const o=t.layoutAttributeForInsertionCursor(n,y.current?y.current.index:null,r),a={position:"absolute",width:o.width,height:o.height,left:o.left,top:o.top,zIndex:100},s=(e=>!u||u(x.isEmpty()&&c?Array.from(c):Array.from(x),e))(o.index);return i.createElement("div",{style:a},p(s,!!o.atRowEnd))},j=(t,s)=>{const l=S.layoutAttributesForItemsIn(t);let c=!1;if(l.length>0){const e=l[0].index,t=l[l.length-1].index;c=null!=h&&(h<e||h>t)}const u=l.map(((t,u)=>{const{index:d}=t,p={position:"absolute",left:t.left,top:t.top,width:t.width,height:t.height},h=u===Math.floor(l.length/2)&&c;return i.createElement("div",{key:e.itemKey?e.itemKey(d):d,style:p},((t,s)=>{const l={selected:P(t),dragging:x.has(t),itemRef:s},c=!(t<r);return i.createElement(zt,{index:t,draggable:n&&!c,onDragStart:I,onDragOver:T,onDragEnd:M},c?i.createElement("div",{style:{width:a,height:o}}):e.renderItem(t,l))})(d,h?s:void 0))})),d={height:S.contentHeight(t),width:"100%"};return i.createElement("div",{style:d},O(S,t),u)};return i.createElement("div",{ref:e=>v(e)},(()=>{if(!g)return null;const r=g.ownerDocument,o={enableMouseEvents:!0,delayTouchStart:500,touchSlop:10,ignoreContextMenu:!0,ownerDocument:k?.ownerDocument||r,getDropTargetElementsAtPoint:k&&n?A:void 0},a={width:e.width,height:e.height};return i.createElement(xt.WG,{backend:_t.TouchBackend,options:o},i.createElement("div",{className:kt().container,onContextMenu:z,style:a},n&&(t||(t=i.createElement(Dt,{renderItem:F,containerOffset:f}))),i.createElement(Tt,{onViewportChange:N,renderContent:j,scrollY:b.current?.scrollY||0,initialForcedScrollY:C})))})())};var Vt=n(7764),Ht=n.n(Vt);const $t=e=>{const{children:t,onPress:n,expanded:r,ariaControls:o,className:a,headingRef:s}=e,c=e.headingTag;return i.createElement(c,{className:l()("PSPDFKit-Expando-Control",Ht().control,a),ref:s},i.createElement("button",{className:Ht().controlButton,"aria-expanded":o?r:void 0,"aria-controls":o,onClick:n,autoFocus:e.autoFocus},t))};$t.defaultProps={headingTag:"div"};const Ut=e=>{const{children:t,expanded:n,id:r}=e;return i.createElement("div",{id:r,className:l()("PSPDFKit-Expando-Content",!n&&Ht().contentHidden,!n&&"PSPDFKit-Expando-Content-Hidden")},t)};var Zt=n(51722),qt=n(86849),Gt=n(23664);class Wt extends i.Component{constructor(){super(...arguments),(0,Ot.Z)(this,"rootRef",i.createRef()),(0,Ot.Z)(this,"activeItem",i.createRef()),(0,Ot.Z)(this,"state",{activeItemIndex:0,focusReason:"initial"}),(0,Ot.Z)(this,"didSetActiveItem",!1),(0,Ot.Z)(this,"onActiveItemIndexChange",(()=>{this.props.onActiveItemIndexChange&&this.props.onActiveItemIndexChange(this.state.activeItemIndex)})),(0,Ot.Z)(this,"onKeyDown",(e=>{const{ignoreOnKeyPress:t}=this.props;if("function"==typeof t?t(e):e.altKey||e.shiftKey)return;const n=e.currentTarget.ownerDocument.defaultView?.HTMLElement;if(!(e.target instanceof n)||(0,Zt.c)(e.target))return;const{activeItemIndex:r}=this.state,o=e.ctrlKey||e.metaKey;if(e.which===this.props.prevKey&&r>0&&this.setState({activeItemIndex:o?0:r-1,focusReason:"keyboard"},this.onActiveItemIndexChange),e.which===this.props.nextKey){const e=this.props.items.length-1;r<e&&this.setState({activeItemIndex:o?e:r+1,focusReason:"keyboard"},this.onActiveItemIndexChange)}})),(0,Ot.Z)(this,"onFocus",(e=>{const t=e.target!==e.currentTarget;let n=this.state.activeItemIndex;const r=e.currentTarget,o=r&&r.parentNode&&r.parentNode.children?Array.prototype.findIndex.call(r.parentNode.children,(e=>e===r)):-1;-1!==o&&(n=o),this.setState({activeItemIndex:n,focusReason:t?"focus_within":"focus"},this.onActiveItemIndexChange)}))}setActiveItem(e){this.didSetActiveItem=!0,this.setState({activeItemIndex:e,focusReason:"focus"})}getActiveItem(){return this.state.activeItemIndex}componentDidMount(){Yt(this.rootRef.current,this.activeItem.current),this.onActiveItemIndexChange()}componentDidUpdate(e,t){(this.didSetActiveItem||e.items.length!==this.props.items.length||t.activeItemIndex!==this.state.activeItemIndex)&&(this.didSetActiveItem=!1,Yt(this.rootRef.current,this.activeItem.current),"focus_within"!==this.state.focusReason&&function(e){if(!e)return;const t=e.children,n=t[0],r=n.matches||n.msMatchesSelector;1===t.length&&r.call(n,Gt.cO)?(e.removeAttribute("tabindex"),n.focus()):e.focus()}(this.activeItem.current))}render(){if("function"==typeof this.props.children){let e=!1,t=!1;const n=this.props.children({activeItemIndex:this.state.activeItemIndex,getContainerProps:()=>(e=!0,{onKeyDown:this.onKeyDown,ref:this.rootRef}),getItemProps:e=>{let{item:n}=e;(0,jt.kG)(n,"getItemProps must be called with `{ item }`");const r=this.props.items.findIndex((e=>e===n));(0,jt.kG)(r>-1,"getItemPropsL: Cannot find `item` in `props.items`");const o=r===this.state.activeItemIndex;return t=!0,{tabIndex:o?0:-1,ref:o?this.activeItem:void 0,onFocus:this.onFocus,onClick:e=>{e.target.closest(Gt.cO)||this.setState({activeItemIndex:r,focusReason:"focus"},this.onActiveItemIndexChange)}}}});return(0,jt.kG)(n,"Did not return valid children"),(0,jt.kG)(e,"Did not call getContainerProps"),(0,jt.kG)(t,"Did not call getItemProps"),n}return i.createElement("div",{onKeyDown:this.onKeyDown,ref:this.rootRef,"data-testid":"accessible-collection"},this.props.items.map(((e,t)=>{const n=t===this.state.activeItemIndex;return i.createElement("div",{key:t,tabIndex:n?0:-1,ref:n?this.activeItem:void 0,onFocus:this.onFocus,onClick:e=>{e.target.closest(Gt.cO)||this.setState({activeItemIndex:t,focusReason:"focus"},this.onActiveItemIndexChange)}},e)})))}}function Yt(e,t){if(!e||!t)return;(0,Gt.GO)(e).forEach((t=>{t.parentNode!==e&&t.setAttribute("tabindex","-1")})),Array.prototype.forEach.call(t.querySelectorAll('[tabindex="-1"]'),(e=>{e.removeAttribute("tabindex")}))}(0,Ot.Z)(Wt,"defaultProps",{prevKey:qt.rw,nextKey:qt.cS,ignoreOnKeyPress:null});var Xt=n(67665),Qt=n(44276),Jt=n(42164),en=n.n(Jt);const tn=i.forwardRef((function(e,t){const{className:n,tag:r,announce:a,...s}=e,c=a?{role:"status","aria-live":a}:{};return i.createElement(r||"p",(0,o.Z)({},s,{ref:t,className:l()(en().visuallyHidden,n)},c))}));class nn extends i.Component{constructor(){super(...arguments),(0,Ot.Z)(this,"_handleRef",(e=>{this._el=e,this._document=e?e.ownerDocument:null})),(0,Ot.Z)(this,"_handleKeyDown",(e=>{const t=this._el,n=this._document;if(e.keyCode===qt.OC&&t&&n){const r=(0,Gt.GO)(t),o=r.indexOf(n.activeElement);e.shiftKey&&0===o?(r[r.length-1].focus(),e.preventDefault()):e.shiftKey||o!==r.length-1||(r[0].focus(),e.preventDefault())}}))}componentDidMount(){this._document&&this._document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keydown",this._handleKeyDown);const e=this._el;if(e&&!e.querySelector('[autofocus]:not([autofocus="false"])')){const t=(0,Gt.GO)(e)[0]||e.querySelector('[tabindex="-1"]');t&&t.focus()}}componentWillUnmount(){this._document&&this._document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keydown",this._handleKeyDown)}render(){return i.createElement("div",{ref:this._handleRef},this.props.children)}}var rn=n(35840),on=n.n(rn);const an=[];function sn(){const e=an.length-1;an.forEach(((t,n)=>{t.setState({isOnTop:n==e})}))}class ln extends i.Component{constructor(){super(...arguments),(0,Ot.Z)(this,"descriptionId",this.props.accessibilityDescription?`modal-description-${Qt.DS.encode(this.props.accessibilityDescription).substr(0,10)}`:null),(0,Ot.Z)(this,"restoreOnCloseElement",this.props.restoreOnCloseElement),(0,Ot.Z)(this,"useBorderRadius",!1!==this.props.useBorderRadius),(0,Ot.Z)(this,"state",{isShaking:!1,isOnTop:!0}),(0,Ot.Z)(this,"_preventPropagation",(e=>{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()})),(0,Ot.Z)(this,"_handleClick",(()=>{this.props.onDismiss&&this.props.onDismiss()})),(0,Ot.Z)(this,"onMount",(e=>{0===an.length&&e.setAttribute("aria-hidden","true"),an.push(this),sn()})),(0,Ot.Z)(this,"onUnmount",(e=>{an.pop(),0===an.length&&e.removeAttribute("aria-hidden"),sn(),this.restoreOnCloseElement&&this.restoreOnCloseElement.focus()})),(0,Ot.Z)(this,"_handleKeyDown",(e=>{e.keyCode!==qt.E$&&e.keyCode!==qt.tW||e.nativeEvent.stopImmediatePropagation(),this.props.onEscape&&e.keyCode===qt.zz&&(this.props.onEscape(),e.preventDefault(),e.target.ownerDocument.addEventListener("keyup",this._preventPropagation,{capture:!0,once:!0})),this.props.onEnter&&e.keyCode===qt.E$&&(this.props.onEnter(),e.preventDefault())})),(0,Ot.Z)(this,"_handleAnimationEnd",(()=>{this.setState({isShaking:!1})}))}shake(){this.setState({isShaking:!0})}componentDidMount(){this.props.innerRef&&(this.props.innerRef.current=this)}componentWillUnmount(){this.props.innerRef&&(this.props.innerRef.current=null)}render(){const{isShaking:e,isOnTop:t}=this.state,{className:n,backdropFixed:r,visibleDimensions:o}=this.props,a=t?nn:i.Fragment,s=r&&o?{position:"absolute",left:o.width/2,top:o.height/2,transform:"translate(-50%, -50%)"}:{};return i.createElement(Xt.m,{onMount:this.onMount,onUnmount:this.onUnmount},i.createElement("div",{"aria-hidden":!t},i.createElement(a,null,i.createElement("div",{className:l()(on().backdropContainer,"PSPDFKit-Modal-Backdrop",r&&on().backdropFixed),onClick:this._handleClick,onKeyDown:t?this._handleKeyDown:void 0},i.createElement("div",{role:this.props.role,"aria-label":this.props.accessibilityLabel,"aria-describedby":this.props.accessibilityDescription?this.descriptionId??void 0:void 0,className:l()(on().dialog,n,"PSPDFKit-Modal-Dialog",{[on().shaking]:e,[on().squareCorners]:!this.useBorderRadius}),onTouchEndCapture:this._preventPropagation,onMouseUpCapture:this._preventPropagation,onPointerUpCapture:this._preventPropagation,onKeyUpCapture:this._preventPropagation,onAnimationEnd:this._handleAnimationEnd,tabIndex:-1,style:s},this.props.children,this.props.accessibilityDescription&&i.createElement(tn,{id:this.descriptionId??void 0},this.props.accessibilityDescription))))))}}function cn(e){const{children:t,className:n,spaced:r,...a}=e,s=l()(on().section,r&&on().sectionSpaced,r&&"PSPDFKit-Modal-Section-Spaced",n,"PSPDFKit-Modal-Section");return i.createElement("div",(0,o.Z)({},a,{className:s}),t)}function un(e){const{className:t,spaced:n,...r}=e,a=l()(on().divider,n&&on().dividerSpaced,n&&"PSPDFKit-Modal-Divider-Spaced",t,"PSPDFKit-Modal-Divider");return i.createElement("div",(0,o.Z)({},r,{className:a}))}(0,Ot.Z)(ln,"Section",cn),(0,Ot.Z)(ln,"Divider",un),(0,Ot.Z)(ln,"defaultProps",{role:"dialog"}),cn.displayName="Modal.Section",cn.defaultProps={spaced:!1},un.displayName="Modal.Divider",un.defaultProps={spaced:!0};var dn=n(90315),pn=n.n(dn);const hn=i.forwardRef((function(e,t){const n=i.useRef(null);return i.useImperativeHandle(t,(()=>n.current)),i.useEffect((()=>{const e=n.current;return e?.showModal(),()=>{e?.close()}}),[]),i.createElement("dialog",{ref:n,className:l()("PSPDFKit-Modal-Backdrop",pn().wrapper,e.wrapperClass),onClose:e.onDismiss},i.createElement("form",{method:"dialog",className:e.formClass},e.children))}));var fn=n(64550),mn=n.n(fn);const gn=e=>{let{message:t,progress:n,style:r}=e;if(n){const e=Math.floor(100*n);return i.createElement("div",{className:l()("PSPDFKit-Progress",mn().progress),style:r,role:"progressbar","aria-valuenow":e,"aria-label":`${e}% complete`},i.createElement("div",{className:mn().progressBar},i.createElement("div",{className:mn().progressFill,style:{width:`${e}%`}})),t?i.createElement("div",{className:mn().progressText},t):null)}return i.createElement("div",{className:l()("PSPDFKit-Progress",mn().loader),style:r,role:"progressbar","aria-valuenow":0,"aria-label":"0% complete"},i.createElement("div",{className:mn().loaderDot}),i.createElement("div",{className:mn().loaderDot}),i.createElement("div",{className:mn().loaderDot}))};var vn=n(8134),yn=n.n(vn);const bn=e=>t=>{const{className:n,children:r,...o}=t,a={...o,className:l()(yn()[e],n)};return i.createElement(e,a,r)},wn=bn("p");wn.displayName="Text";const xn=bn("h1");xn.displayName="HeaderText";var _n=n(24470),Sn=n.n(_n);const Cn=(e,t)=>{const n=i.useRef(null);i.useImperativeHandle(t,(()=>n.current)),i.useEffect((()=>{const{selectTextOnFocus:t,autoFocus:n}=e;t&&n&&r()}),[]);const r=i.useCallback((()=>{const{selectTextOnFocus:t}=e,{current:r}=n;r&&(t&&r.select(),p&&p())}),[]),{secureTextEntry:a,error:s,success:c,selectTextOnFocus:u,onBlur:d,onFocus:p,...h}=e,f=l()({[Sn().default]:!s&&!c,[Sn().error]:s,[Sn().success]:c},e.className),m=a?"password":"text";return i.createElement("input",(0,o.Z)({},h,{className:f,type:m,ref:n,onFocus:r,onBlur:d}))},En=i.memo(i.forwardRef(Cn));var kn=n(53261),zn=n(47963),Pn=n.n(zn);function Dn(e){let{inputName:t,label:n,options:r,onChange:o,selectedOption:a,labelClassNamePrefix:s,disabled:c=!1,showLabel:u,isButton:d,wrapperClasses:p}=e;return i.createElement("div",{className:l()(Pn().radioGroup,{[p]:p}),"aria-label":n,role:"radiogroup"},r.map((e=>{let{value:n,label:r,iconPath:p}=e;const h=n===a,f=l()(Pn().iconLabel,{[Pn().iconLabelIsActive]:h,[`${s}-${n}`]:!0,[`${s}-active`]:h,[Pn().focusedLabelFocusVisible]:h,[Pn().selectedLabel]:h&&d,[Pn().radioGroupLabel]:!h&&d,[Pn().fullWidthRadio]:d});return i.createElement("label",{key:n,className:f},i.createElement(tn,{tag:"span"},r),i.createElement("input",{type:"radio",name:t,value:n,checked:h,onChange:e=>o(e.target.value),"aria-label":r,disabled:c}),d&&h&&i.createElement(kn.Z,{src:p,className:l()(Pn().icon,{[Pn().radioGroupIcon]:d})}),!d&&i.createElement(kn.Z,{src:p,className:Pn().icon}),u&&i.createElement("span",null,r))})))}var An=n(5612),Tn=n.n(An);let In=0;function Mn(e){const t=i.useRef(In++),{label:n,accessibilityLabel:r,onUpdate:o}=e,a=i.useCallback((e=>{o(e.target.checked)}),[o]);const s=l()(Tn().label,e.styles.label);return i.createElement("div",{className:e.styles.controlWrapper},i.createElement("div",{className:e.styles.control},i.createElement("div",{className:l()("PSPDFKit-Checkbox-Input",e.className,Tn().root)},i.createElement("input",{className:l()(Tn().input,e.styles.input),type:"checkbox",id:`${Tn().label}-${t.current}`,onChange:a,checked:e.value}),e.label?i.createElement("label",{htmlFor:`${Tn().label}-${t.current}`,className:s},n):r?i.createElement("label",{htmlFor:`${Tn().label}-${t.current}`,className:s},i.createElement(tn,{tag:"span"},r)):null)))}var Rn=n(4345),Fn=n(77493),Nn=n(57645),On=n(23629),jn=n(71815);const Ln=/["'&<>]/;function Bn(e){const t=""+e,n=Ln.exec(t);if(!n)return t;let r,o="",i=0,a=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=r}return a!==i?o+t.substring(a,i):o}function Kn(e,t){if(e.nodeType===Node.TEXT_NODE)return(0,jn.tZ)("text",t,e.textContent);if(e.nodeType!==Node.ELEMENT_NODE)return null;const n={...t};switch(e.nodeName.toUpperCase()){case"B":n.bold=!0;break;case"I":case"EM":n.italic=!0;break;case"U":n.underline=!0;break;case"SPAN":if("underline"===Hn(e.getAttribute("style")||"")["text-decoration"]){n.underline=!0;break}}const r=Array.from(e.childNodes).map((e=>Kn(e,n))).flat();switch(0===r.length&&r.push((0,jn.tZ)("text",n,"")),e.nodeName.toUpperCase()){case"BR":return(0,jn.tZ)("text",t,"\n");case"SPAN":{const t=function(e){return"SPAN"===e.nodeName.toUpperCase()&&e.getAttribute("data-user-id")}(e);if(t)return(0,jn.tZ)("element",{type:"mention",userId:t,displayName:qn(Vn(r))},r);if(function(e){return"SPAN"===e.nodeName.toUpperCase()&&e.getAttribute("style")}(e)&&!function(e){return"underline"===e.style.textDecoration&&!e.style.color&&!e.style.backgroundColor}(e)){const t=Hn(e.getAttribute("style")||""),n=t.color?rr(t.color):void 0,o=t["background-color"]?rr(t["background-color"]):void 0;return(0,jn.tZ)("element",{type:"style",fontColor:n,backgroundColor:o},r)}return r}case"P":return(0,jn.tZ)("element",{type:"paragraph"},r);case"A":return(0,jn.tZ)("element",{type:"link",url:e.getAttribute("href")},r);default:return r}}function Vn(e){function t(e){if(function(e){return Fn.xv.isText(e)}(e)){let t=Bn(e.text);return e.bold&&(t=`<b>${t}</b>`),e.italic&&(t=`<i>${t}</i>`),e.underline&&(t=`<span style="text-decoration: underline;">${t}</span>`),t}const t=e.children?.map((e=>Vn(e))).join("");switch(e.type){case"paragraph":return`<p>${t}</p>`;case"link":return`<a href="${e.url}">${t}</a>`;case"mention":return`<span data-user-id="${e.userId}">${e.displayName}</span>`;case"style":{const n=$n(e);return`<span${n?` style="${n}"`:""}>${t}</span>`}default:return t}}return Array.isArray(e)?e.map((e=>t(e))).join(""):t(e)}function Hn(e){return e?((e=e.trim()).endsWith(";")&&(e=e.slice(0,-1)),e.split(";").map((e=>e.split(":").map((e=>e.trim())))).reduce(((e,t)=>{let[n,r]=t;return{...e,[n]:r}}),{})):{}}function $n(e){let t="";return e.fontColor&&(t+=`color: ${e.fontColor};`),e.backgroundColor&&(t+=`background-color: ${e.backgroundColor};`),t}function Un(e,t){const n=Fn.ML.marks(e);return!!n&&!0===n[t]}const Zn=(e,t)=>{Un(e,t)?Fn.ML.removeMark(e,t):Fn.ML.addMark(e,t,!0)};function qn(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function Gn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(new DOMParser).parseFromString(e,"text/html")}function Wn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=(e||"").match(/(<[^<>]+>)/g)||[],n={pre:[],post:[]};return t.forEach((e=>{if(e.startsWith("<html"))return n.pre.push(e),void n.post.unshift("</html>");e.startsWith("<body")&&(n.pre.push(e),n.post.unshift("</body>"))})),n}function Yn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Gn(e).body.innerHTML}function Xn(e){let{changeUnderlineCSStoHTML:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Gn(e).body;if(0===n.childNodes.length){const e=document.createElement("p");return n.appendChild(e),n}const r=document.createElement("body");let o=[];return[...n.childNodes].forEach(((e,t)=>{const i=n.childNodes.length-1===t;if("P"===e.nodeName.toUpperCase()||i){if(i&&"P"!==e.nodeName.toUpperCase()&&o.push(e),o.length){const e=document.createElement("p");o.forEach((t=>{e.appendChild(t)})),r.appendChild(e),o=[]}"P"===e.nodeName.toUpperCase()&&r.appendChild(e)}else o.push(e)})),r.childNodes.forEach((e=>{e.querySelectorAll?.("p").forEach((e=>{const t=document.createElement("span");e.style.cssText&&t.setAttribute("style",e.style.cssText),t.innerHTML=e.innerHTML,e.replaceWith(t)})),e.querySelectorAll?.("div").forEach((e=>{const t=document.createElement("span");e.style.cssText&&t.setAttribute("style",e.style.cssText),t.innerHTML=e.innerHTML,e.replaceWith(t)})),t&&e.querySelectorAll?.("span").forEach((e=>{if("underline"===e.style.textDecoration){const t=document.createElement("u");t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML,e.style.textDecoration="",e.style.cssText||(e.removeAttribute("style"),e.attributes.length||e.replaceWith(...e.childNodes))}}))})),r}function Qn(e){if(!e)return!1;const{selection:t}=e;return!!t&&Fn.e6.isExpanded(t)&&""!==Fn.ML.string(e,t)}function Jn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const{selection:n}=e;if(n){const[r]=Fn.e6.edges(n),o=Fn.ML.before(e,r,{distance:t,unit:"character"}),i=o&&Fn.ML.range(e,o,r);return{text:i&&Fn.ML.string(e,i),range:i}}return null}function er(e){return e&&(" "===e.text||!e.range)}function tr(e,t,n){const r={...Hn(e.getAttribute("style")??""),["fontColor"===t?"color":"background-color"]:n??void 0};return Object.entries(r).filter((e=>{let[,t]=e;return void 0!==t})).map((e=>{let[t,n]=e;return`${t}: ${n}`})).join("; ").concat(";")}function nr(e,t,n){const r=Xn(e,{changeUnderlineCSStoHTML:!1});function o(e){const t=e.closest("p")?.textContent;return e.textContent===t&&!e.closest("span[style]")}return r.querySelectorAll("p").forEach((e=>{const{isBold:r,isUnderlined:i,isItalic:a}=or(e);if("fontColor"===t){let t=!1;if(e.querySelectorAll("span[style]").forEach((e=>{o(e)?(t=!0,e.setAttribute("style",tr(e,"fontColor",n))):(e.style.color="",""===e.style.cssText&&e.replaceWith(...e.childNodes))})),!t){const t=document.createElement("span");t.setAttribute("style",tr(t,"fontColor",n)),t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}else if("underline"===t){const t=e.querySelectorAll("span[style]");if(i)t.forEach((e=>{e.style.textDecoration=""}));else{let n=!1;if(t.forEach((e=>{o(e)&&(n=!0,e.style.textDecoration="underline")})),!n){const t=document.createElement("span");t.style.textDecoration="underline",t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}t.forEach((e=>{o(e)?e.style.textDecoration=i?"":"underline":(e.style.textDecoration="",""===e.style.cssText&&e.replaceWith(...e.childNodes))}))}else if("bold"===t){const t=e.querySelectorAll("b");if(r)t.forEach((e=>{e.replaceWith(...e.childNodes)}));else{const t=document.createElement("b");t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}else if("italic"===t){const t=e.querySelectorAll("i, em");if(a)t.forEach((e=>{e.replaceWith(...e.childNodes)}));else{const t=document.createElement("i");t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}})),r.innerHTML}function rr(e){if(!e)return"";if(e.startsWith("rgb")){const t=e.replace("rgb(","").replace(")","").split(",").map((e=>parseInt(e,10))).map((e=>e.toString(16))).map((e=>1===e.length?`0${e}`:e)).join("");return`#${t}`}return e.startsWith("#")&&9===e.length?`#${e.substr(3,6)}`:7===e.length&&e.startsWith("#")?e:"#000000"}function or(e){const t=e.querySelectorAll("span[style]"),n=Array.from(t).filter((t=>t.textContent===e.textContent)),r=n.filter((e=>e.style.color)),o=n.filter((e=>e.style.backgroundColor)),i=n.filter((e=>"underline"===e.style.textDecoration)),a=e.querySelectorAll("b"),s=Array.from(a).filter((t=>t.textContent===e.textContent)),l=e.querySelectorAll("i, em"),c=Array.from(l).filter((t=>t.textContent===e.textContent));return{fontColor:r.length>0?rr(r[r.length-1].style.color):null,backgroundColor:o.length>0?rr(o[o.length-1].style.backgroundColor):null,isUnderlined:i.length>0,isBold:s.length>0,isItalic:c.length>0}}function ir(e){const t=Xn(e,{changeUnderlineCSStoHTML:!1}).querySelectorAll("p"),n=Array.from(t).map((e=>or(e)));return{fontColor:n.every((e=>{let{fontColor:t}=e;return t&&t===n[0].fontColor}))?n[0].fontColor:null,isUnderlined:n.every((e=>{let{isUnderlined:t}=e;return t&&t===n[0].isUnderlined})),isBold:n.every((e=>{let{isBold:t}=e;return t&&t===n[0].isBold})),isItalic:n.every((e=>{let{isItalic:t}=e;return t&&t===n[0].isItalic})),backgroundColor:n.every((e=>{let{backgroundColor:t}=e;return t&&t===n[0].backgroundColor}))?n[0].backgroundColor:null}}function ar(e,t){const{selection:n}=e;if(!n)return;const[...r]=Array.from(Fn.ML.nodes(e,{at:Fn.ML.unhangRange(e,n),match:e=>!Fn.ML.isEditor(e)&&sr(e)})),o=r.map((e=>{let[t]=e;return t}));if(!o)return;const i=o.map((e=>rr(e[t])));return 1===new Set(i).size?i[0]??void 0:void 0}function sr(e){return"style"===e.type}function lr(e,t){const{selection:n}=e;n&&Fn.e6.isCollapsed(n)?Fn.YR.insertNodes(e,t):(Fn.YR.wrapNodes(e,t,{split:!0}),Fn.YR.collapse(e,{edge:"end"}))}function cr(e,t){Fn.YR.unwrapNodes(e,{match:e=>!Fn.ML.isEditor(e)&&Fn.W_.isElement(e)&&e.type===t})}function ur(e,t,n){(0,jt.kG)(e,"Editor is not defined.");const[r]=Fn.ML.nodes(e,{match:e=>!Fn.ML.isEditor(e)&&Fn.W_.isElement(e)&&sr(e)});r?Fn.YR.setNodes(e,{[t]:n},{match:e=>sr(e),split:!0}):lr(e,{type:"style",[t]:n,children:[{text:""}]})}function dr(e){const{selection:t}=e;if(!t)return!1;const[...n]=Array.from(Fn.ML.nodes(e,{at:Fn.ML.unhangRange(e,t),match:e=>!Fn.ML.isEditor(e)&&sr(e)}));return!!n.map((e=>{let[t]=e;return t}))?.[0]?.underline}function pr(e,t){const n=Kn(Xn(e));Fn.YR.insertFragment(t,n)}function hr(e){return"mention"===e.type}const fr=e=>{const{insertData:t,isInline:n,markableVoid:r,isVoid:o}=e;return e.isInline=e=>"link"===e.type||hr(e)||"style"===e.type||n(e),e.isVoid=e=>hr(e)||o(e),e.markableVoid=e=>hr(e)||r(e),e.insertData=n=>{try{const r=n.getData("text/html");if(r)return void pr(r,e);t(n)}catch(t){!function(e){let{html:t,editor:n}=e;try{Fn.YR.insertNodes(n,{type:"style",contentEditable:!1,fontSize:0,children:[{text:"​"}]}),pr(t,n)}catch(e){return!1}}({html:n.getData("text/html"),editor:e})}},e};var mr,gr;const vr="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),yr="undefined"!=typeof navigator&&/Chrome/.test(navigator.userAgent),br=i.forwardRef(((e,t)=>{let{text:n,style:r,updateBoundingBox:o,onValueChange:a,onBlurSave:s,maxLength:c,onStopEditing:u,onEscape:d,lastMousePoint:p,onEditorInit:h,className:f,placeholder:m,onBlur:g,autoFocus:v=!0,onSelectionChange:y,autoOpenKeyboard:b=!0,onKeyDown:w,keepSelectedTool:x,title:_="Rich text editor",shadowRoot:S}=e;const{value:C,wrapperTags:E}=(0,i.useMemo)((()=>({wrapperTags:Wn(n),value:Yn(n)})),[n]),k=(0,i.useRef)(null),z=i.useRef(C),P=(0,i.useMemo)((()=>fr((0,Nn.VC)((0,Rn.BU)((0,Fn.Jh)())))),[]),D=(0,i.useCallback)((e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}),[]);(0,i.useEffect)((()=>{const e=k.current;function t(t){const n=t?.target?.shadowRoot,r=!!(n?n?.elementFromPoint?.(t.x,t.y)?.parentElement:t.target)?.closest(".PSPDFKit-Text-Annotation-Toolbar, .PSPDFKit-Input-Dropdown-Items, .PSPDFKit-Input-Dropdown-Button");e?.contains(t.target)||s?.({isTextToolbarClicked:r,isNativeBlurEvent:!0})}return e?.ownerDocument.addEventListener("pointerdown",t,{capture:!0}),Fn.YR.select(P,Fn.ML.end(P,[])),()=>{e?.ownerDocument.removeEventListener("pointerdown",t,{capture:!0})}}),[P,s]);const A=(0,i.useMemo)((()=>Kn(Xn(C))),[C]),T=(0,i.useCallback)((e=>i.createElement(_r,e)),[]),I=(0,i.useCallback)((e=>i.createElement(wr,e)),[]);(0,i.useEffect)((()=>(h?.(P),()=>{h?.(null)})),[P,h]),(0,i.useEffect)((()=>{v&&(Rn.F3.focus(P),x?b||setTimeout((()=>{Rn.F3.blur(P)}),0):setTimeout((()=>{Rn.F3.blur(P),Rn.F3.focus(P),b||Rn.F3.blur(P)}),0))}),[b]),(0,i.useEffect)((()=>{setTimeout((()=>{if(p&&k.current){const e=(0,jt.Qo)(p,k.current.ownerDocument);if(!e)return;const t=Rn.F3.toSlatePoint(P,[e.startContainer,e.startOffset],{exactMatch:!0,suppressThrow:!0});t&&Fn.YR.select(P,t)}}),0)}),[P,p,t]);const M=(0,i.useCallback)((e=>{if("Escape"!==e.key)return"Enter"===e.key&&e.shiftKey?(u?.(),void e.preventDefault()):void(c&&qn(z.current).length>=c&&e.preventDefault());d?.(e)}),[c,d,u]),R=(0,i.useCallback)((()=>{const{selection:e}=P;if(e&&Fn.e6.isCollapsed(e)){const[t]=Fn.e6.edges(e),n=Jn(P,2);if((n?.text?.startsWith(" ")||1===n?.text?.length)&&n?.text?.endsWith("@")){(0,jt.kG)(n,"lastTwoCharacters should be defined");const e=Jn(P)?.range;return e?{query:"",target:e}:null}{const e=Fn.ML.before(P,t,{unit:"word"}),n=e&&Fn.ML.before(P,e),r=n&&Fn.ML.range(P,n,t),o=r&&Fn.ML.string(P,r),i=o&&o.match(/^@(\w+)$/),a=Fn.ML.after(P,t),s=Fn.ML.range(P,t,a),l=Fn.ML.string(P,s).match(/^(\s|$)/);return i&&l&&r?{query:i[1],target:r}:null}}return null}),[P]),F=(0,i.useCallback)((e=>{P.operations.every((e=>"set_selection"===e.type))&&(y?.(),"onSelectionChange"in P&&"function"==typeof P.onSelectionChange&&P.onSelectionChange());const t=e.map((e=>Vn(e))).join("");z.current=t,a(`${E.pre.join("")}${t}${E.post.join("")}`,{activeMention:R()??null}),o?.(),"onValueChange"in P&&"function"==typeof P.onValueChange&&P.onValueChange(t)}),[a,o,E,P,y,R]);return i.createElement("div",{role:"presentation",className:l()(On.richTextEditor,"PSPDFKit-Rich-Text-Editor",f),style:r,ref:(0,jt.FE)(t,k),onBlur:()=>{s?.({}),g?.()},onDragStart:D,onDragEnd:D,onKeyUp:D,onMouseDown:D,onPointerUp:D,onTouchStart:D,onTouchEnd:D,onMouseUp:D},i.createElement(Rn.mH,{onChange:F,editor:P,value:A},i.createElement(Rn.CX,{title:_,placeholder:m,renderLeaf:I,renderElement:T,onInput:o,className:On.wrapper,onKeyDown:e=>{w?w(e):(M(e),(e.metaKey||e.ctrlKey)&&"b"===e.key?(e.preventDefault(),Zn(P,"bold")):(e.metaKey||e.ctrlKey)&&"i"===e.key?(e.preventDefault(),Zn(P,"italic")):(e.metaKey||e.ctrlKey)&&"u"===e.key&&(e.preventDefault(),Zn(P,"underline")),vr&&!Rn.F3.isComposing(P)&&setTimeout(P.onChange,10),mt.vU&&S&&Rn.F3.focus(P))}})))})),wr=e=>{let{attributes:t,children:n,leaf:r}=e;return r.bold&&(n=i.createElement("strong",null,n)),r.italic&&(n=i.createElement("em",null,n)),r.underline&&(n=i.createElement("u",null,n)),i.createElement("span",t,n)},xr=()=>i.createElement("span",{contentEditable:!1,style:{fontSize:0}},"$",String.fromCodePoint(160)),_r=e=>{const{attributes:t,children:n,element:r}=e;switch(r.type){case"link":return i.createElement("a",(0,o.Z)({},t,{href:r.url}),mr||(mr=i.createElement(xr,null)),n,gr||(gr=i.createElement(xr,null)));case"mention":return i.createElement("span",(0,o.Z)({},t,{contentEditable:yr?void 0:t.contentEditable,"data-user-id":r.userId}),n,"@",r.displayName);case"style":return i.createElement("span",(0,o.Z)({},t,{style:{color:r.fontColor,backgroundColor:r.backgroundColor}}),n);default:return i.createElement("p",t,n)}};function Sr(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Cr(...e){return(0,i.useCallback)(Sr(...e),e)}function Er(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,i.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,i.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,i.createContext)(r),a=n.length;function s(t){const{scope:n,children:r,...s}=t,l=(null==n?void 0:n[e][a])||o,c=(0,i.useMemo)((()=>s),Object.values(s));return(0,i.createElement)(l.Provider,{value:c},r)}return n=[...n,r],s.displayName=t+"Provider",[s,function(n,s){const l=(null==s?void 0:s[e][a])||o,c=(0,i.useContext)(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},kr(r,...t)]}function kr(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,i.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function zr(){return zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zr.apply(this,arguments)}var Pr=n(73935);function Dr(){return Dr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dr.apply(this,arguments)}const Ar=(0,i.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(Mr);if(a){const e=a.props.children,n=o.map((t=>t===a?i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null:t));return(0,i.createElement)(Tr,Dr({},r,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(Tr,Dr({},r,{ref:t}),n)}));Ar.displayName="Slot";const Tr=(0,i.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...Rr(r,n.props),ref:Sr(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null}));Tr.displayName="SlotClone";const Ir=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function Mr(e){return(0,i.isValidElement)(e)&&e.type===Ir}function Rr(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,i.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,a=r?Ar:t;return(0,i.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,i.createElement)(a,zr({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Fr(e){const t=e+"CollectionProvider",[n,r]=Er(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:n}=e,r=i.useRef(null),a=i.useRef(new Map).current;return i.createElement(o,{scope:t,itemMap:a,collectionRef:r},n)},l=e+"CollectionSlot",c=i.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Cr(t,a(l,n).collectionRef);return i.createElement(Ar,{ref:o},r)})),u=e+"CollectionItemSlot",d="data-radix-collection-item",p=i.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,s=i.useRef(null),l=Cr(t,s),c=a(u,n);return i.useEffect((()=>(c.itemMap.set(s,{ref:s,...o}),()=>{c.itemMap.delete(s)}))),i.createElement(Ar,{[d]:"",ref:l},r)}));return[{Provider:s,Slot:c,ItemSlot:p},function(t){const n=a(e+"CollectionConsumer",t),r=i.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}new Set,new Set,new Set;!function(){let e=[]}();function Nr(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Or=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?i.useLayoutEffect:()=>{};a["useId".toString()];Math.min,Math.max;const jr=["top","right","bottom","left"];jr.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);Math.min,Math.max,Math.round;"undefined"!=typeof document?i.useLayoutEffect:i.useEffect;const Lr="Popper",[Br,Kr]=Er(Lr),[Vr,Hr]=Br(Lr),$r="PopperContent",[Ur,Zr]=Br($r),[qr,Gr]=Br($r,{hasParent:!1,positionUpdateFns:new Set});const Wr=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,i.useState)(),r=(0,i.useRef)({}),o=(0,i.useRef)(e),a=(0,i.useRef)("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return(0,i.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,i.useEffect)((()=>{const e=Yr(r.current);a.current="mounted"===l?e:"none"}),[l]),Or((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=Yr(t);if(e)c("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{const e=r!==i;c(n&&e?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,c]),Or((()=>{if(t){const e=e=>{const n=Yr(r.current).includes(e.animationName);e.target===t&&n&&(0,Pr.flushSync)((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=Yr(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,i.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),a=Cr(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,i.cloneElement)(o,{ref:a}):null};function Yr(e){return(null==e?void 0:e.animationName)||"none"}Wr.displayName="Presence";const Xr="RovingFocusGroup",[Qr,Jr,eo]=Fr(Xr),[to,no]=Er(Xr,[eo]),[ro,oo]=to(Xr);new WeakMap,new WeakMap;var io=n(70655),ao="right-scroll-bar-position",so="width-before-scroll-bar";function lo(e,t){return function(e,t){var n=(0,i.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}new WeakMap;new WeakMap;function co(e){return e}function uo(e,t){void 0===t&&(t=co);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}var po=function(e){var t=e.sideCar,n=(0,io._T)(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,(0,io.pi)({},n))};po.isSideCarExport=!0;var ho,fo=function(e){void 0===e&&(e={});var t=uo(null);return t.options=(0,io.pi)({async:!0,ssr:!1},e),t}(),mo=function(){},go=i.forwardRef((function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:mo,onWheelCapture:mo,onTouchMoveCapture:mo}),o=r[0],a=r[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,f=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=(0,io._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,x=lo([n,t]),_=(0,io.pi)((0,io.pi)({},b),o);return i.createElement(i.Fragment,null,d&&i.createElement(w,{sideCar:fo,removeScrollBar:u,shards:p,noIsolation:f,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n}),s?i.cloneElement(i.Children.only(l),(0,io.pi)((0,io.pi)({},_),{ref:x})):i.createElement(y,(0,io.pi)({},_,{className:c,ref:x}),l))}));go.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},go.classNames={fullWidth:so,zeroRight:ao};function vo(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ho||n.nc;return t&&e.setAttribute("nonce",t),e}var yo=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=vo())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bo=function(){var e,t=(e=yo(),function(t,n){i.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},wo={left:0,top:0,right:0,gap:0},xo=function(e){return parseInt(e||"",10)||0},_o=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return wo;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[xo(n),xo(r),xo(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},So=bo(),Co=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(ao," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(so," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(ao," .").concat(ao," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(so," .").concat(so," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},Eo=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,a=i.useMemo((function(){return _o(o)}),[o]);return i.createElement(So,{styles:Co(a,!t,o,n?"":"!important")})},ko=!1;if("undefined"!=typeof window)try{var zo=Object.defineProperty({},"passive",{get:function(){return ko=!0,!0}});window.addEventListener("test",zo,zo),window.removeEventListener("test",zo,zo)}catch(e){ko=!1}var Po=!!ko&&{passive:!1},Do=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Ao=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),To(e,n)){var r=Io(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},To=function(e,t){return"v"===e?function(e){return Do(e,"overflowY")}(t):function(e){return Do(e,"overflowX")}(t)},Io=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Mo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ro=function(e){return[e.deltaX,e.deltaY]},Fo=function(e){return e&&"current"in e?e.current:e},No=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Oo=0,jo=[];const Lo=(Bo=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(Oo++)[0],a=i.useState((function(){return bo()}))[0],s=i.useRef(e);i.useEffect((function(){s.current=e}),[e]),i.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,io.ev)([e.lockRef.current],(e.shards||[]).map(Fo),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var o,i=Mo(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=Ao(d,u);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=Ao(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var h=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,p=0;do{var h=Io(e,s),f=h[0],m=h[1]-h[2]-i*f;(f||m)&&To(e,s)&&(d+=m,p+=f),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===p||!o&&-a>p))&&(c=!0),c}(h,t,e,"h"===h?l:c,!0)}),[]),c=i.useCallback((function(e){var n=e;if(jo.length&&jo[jo.length-1]===a){var r="deltaY"in n?Ro(n):Mo(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(s.current.shards||[]).map(Fo).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?l(n,i[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=i.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=i.useCallback((function(e){n.current=Mo(e),r.current=void 0}),[]),p=i.useCallback((function(t){u(t.type,Ro(t),t.target,l(t,e.lockRef.current))}),[]),h=i.useCallback((function(t){u(t.type,Mo(t),t.target,l(t,e.lockRef.current))}),[]);i.useEffect((function(){return jo.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Po),document.addEventListener("touchmove",c,Po),document.addEventListener("touchstart",d,Po),function(){jo=jo.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,Po),document.removeEventListener("touchmove",c,Po),document.removeEventListener("touchstart",d,Po)}}),[]);var f=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:No(o)}):null,f?i.createElement(Eo,{gapMode:"margin"}):null)},fo.useMedium(Bo),po);var Bo,Ko=i.forwardRef((function(e,t){return i.createElement(go,(0,io.pi)({},e,{ref:t,sideCar:Lo}))}));Ko.classNames=go.classNames;const Vo=["Enter"," "],Ho=["ArrowUp","PageDown","End"],$o="Menu",[Uo,Zo,qo]=Fr($o),[Go,Wo]=Er($o,[qo,Kr,no]),[Yo,Xo]=(Kr(),no(),Go($o)),[Qo,Jo]=Go($o),ei="MenuPortal",[ti,ni]=Go(ei,{forceMount:void 0}),ri="MenuContent",[oi,ii]=Go(ri),ai="MenuRadioGroup",[si,li]=Go(ai,{value:void 0,onValueChange:()=>{}}),ci="MenuItemIndicator",[ui,di]=Go(ci,{checked:!1}),pi="MenuSub",[hi,fi]=Go(pi);const mi="DropdownMenu",[gi,vi]=Er(mi,[Wo]),[yi,bi]=(Wo(),gi(mi));n(95189),n(58729)},39236:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Ze});var r=n(35369),o=n(15359),i=n(82654),a=n(69847),s=n(44550),l=n(52163);const c="You need the text comparison license component to use this feature.",u="The text comparison feature is only available in Standalone mode.";var d=n(66327),p=n(36828),h=n(33622),f=n(67041),m=n(84293),g=n(12705),v=n(93113),y=n(68944),b=n(40084),w=n(70025),x=n(44077),_=n(33056),S=n(73900),C=n(89637),E=n(4087),k=n(53416),z=n(79724);const P=(0,z.Z)("ToolbarItems");var D=n(4715),A=n(54103),T=n(33427),I=n(5130);const M=["annotationSelection.change"];var R=n(45249),F=n(56573),N=n(20388),O=n(17078),j=n(7654);const L=(0,z.Z)("Annotations");var B=n(23951);const K=(0,z.Z)("Bookmarks");var V=n(4480),H=n(55012);var $=n(56874);const U=(0,z.Z)("CustomOverlayItem");var Z=n(43069),q=n(28018),G=n(77897);const W=(0,z.Z)("Forms");var Y=n(21753);var X=n(38252),Q=n(21693);const J=(0,z.Z)("InkSignatures"),ee=["inkSignatures.create","inkSignatures.update","inkSignatures.delete","inkSignatures.change"],te=["storedSignatures.create","storedSignatures.update","storedSignatures.delete","storedSignatures.change"];var ne=n(10983),re=n(21853);const oe=(0,z.Z)();async function ie(e,t,n){if("object"!=typeof e||"number"!=typeof e.width&&"number"!=typeof e.height)throw new o.p2("The first argument must be an object with either `width` or `height` set to a number.");if("width"in e&&"height"in e)throw new o.p2("The first argument can't contain both `height` and `width` propeties at the same time.");if("width"in e&&"number"!=typeof e.width)throw new o.p2("`width` must be a number.");if("height"in e&&"number"!=typeof e.height)throw new o.p2("`height` must be a number.");oe("number"==typeof t,"pageIndex must be a number."),await(n.getState().annotationManager?.loadAnnotationsForPageIndex(t));const r=n.getState(),i=r.pages.get(t);oe(i,`Could not find page with index ${t} in this document.`);const{pageSize:a}=i;let s,l;"width"in e&&"number"==typeof e.width&&e.width>0&&e.width<=ne.Qr?(s=Math.round(e.width),l=Math.round(s*a.height/a.width)):"height"in e&&"number"==typeof e.height&&e.height>0&&e.height<=ne.Qr?(l=Math.round(e.height),s=Math.round(l*a.width/a.height)):oe(!1,`Could not calculate cover dimensions. Values must be in the interval \`(0; ${ne.Qr}]\`.`);const c=r.annotations.filter((e=>e.pageIndex===t&&!(e instanceof R.Jn||e instanceof R.On&&r.commentThreads.has(e.id)))).toList(),u=r.formFields.filter((e=>e.annotationIds.some((e=>{const n=r.annotations.get(e);return!(!n||n.pageIndex!==t)})))),d=(0,Z.Qg)(u);oe(r.backend);const{promise:p}=r.backend.corePDFBridge.renderTile(t,new R.$u({width:s,height:l}),new R.UL({width:s,height:l}),!1,!0,{annotations:c,formFieldValues:d,formFields:u.toList(),attachments:r.attachments,signatures:r.digitalSignatures&&r.digitalSignatures.signatures}),{element:h}=await p;return{element:h,width:s,height:l}}var ae=n(18287),se=n(13422),le=n(96650),ce=n(5709),ue=n(82716);const de=["search.stateChange","search.termChange"];var pe=n(30006);const he=(0,z.Z)("StampAnnotationTemplates");var fe=n(1990),me=n(20253),ge=n(6197);const ve=(0,z.Z)("ToolbarItems");var ye=n(38705);var be=n(86037),we=n(35727),xe=n(35464);var _e=n(41172);function Se(e){return e instanceof r.aV?e.toArray():Array.isArray(e)?[...e]:[e]}function Ce(e,t){return"STANDALONE"!==e.type?t():(e.setFormJSONUpdateBatchMode(!0),t().finally((()=>{e.setFormJSONUpdateBatchMode(!1)})))}var Ee=n(49876);const ke=["history.undo","history.redo","history.change","history.willChange","history.clear"];var ze=n(75287),Pe=n(65652),De=n(713);const Ae=(0,z.Z)("DocumentEditorFooterItem");var Te=n(3792);const Ie=["documentComparisonUI.start","documentComparisonUI.end"];var Me=n(8210);var Re=n(17310),Fe=n(58163),Ne=n(44156),Oe=n(2891),je=n(4526),Le=n(55752),Be=n(11267);const Ke=(0,z.Z)(),Ve=["instant.connectedClients.change","page.press","textLine.press","annotationPresets.update","annotationNote.hover","annotationNote.press"],He=[function(e,t){Object.defineProperty(t,"editableAnnotationTypes",{enumerable:!0,configurable:!1,get:()=>e.getState().editableAnnotationTypes}),t.setEditableAnnotationTypes=function(t){if(!Array.isArray(t))throw new o.p2("editableAnnotationTypes must be an array of annotation types.");if(!t.every((e=>e&&e.prototype&&(e.prototype instanceof B.Z||e==B.Z))))throw new o.p2("editableAnnotationTypes must be an array of annotation types.");e.dispatch((0,d.ZV)((0,r.l4)(t)))},t.setIsEditableAnnotation=function(t){if("function"!=typeof t)throw new o.p2("The type for isEditableAnnotation is not valid. Must be `function`.");e.dispatch((0,d.R1)(t))}},function(e,t){const n=()=>e.getState().annotationPresets;Object.defineProperty(t,"annotationPresets",{enumerable:!0,configurable:!1,get:()=>n().toObject()}),Object.defineProperty(t,"currentAnnotationPreset",{enumerable:!0,configurable:!1,get:()=>e.getState().currentItemPreset}),t.setAnnotationPresets=function(t){let o=t;"function"==typeof t&&(o=t.call(null,n().toObject())),P("object"==typeof o,`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an object.`),Object.values(o).forEach(k.G);const i=(0,r.D5)(o);n().equals(i)||e.dispatch((0,E.QA)(i))},t.setCurrentAnnotationPreset=function(t){const n=e.getState();"string"==typeof t&&(0,o.kG)(void 0!==n.annotationPresets.get(t),`There is no annotation preset with the supplied 'annotationPresetID' ${t}`),e.dispatch((0,E.Ds)(t))}},function(e,t){const n=()=>[...e.getState().stampAnnotationTemplates];Object.defineProperty(t,"stampAnnotationTemplates",{enumerable:!0,configurable:!1,get:()=>n()}),t.setStampAnnotationTemplates=function(t){let r=t;"function"==typeof r&&(r=r.call(null,n())),he(Array.isArray(r),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`),r.forEach(pe.wB);const o=n();JSON.stringify(o)!==JSON.stringify(r)&&e.dispatch((0,E.fx)([...r]))}},ye.ZP,function(e,t){const n=()=>e.getState().toolbarItems;Object.defineProperty(t,"toolbarItems",{enumerable:!0,configurable:!1,get:()=>n().toJS()}),t.setToolbarItems=function(t){let i=t;"function"==typeof i&&(i=i.call(null,n().toJS())),ve(Array.isArray(i),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`),i=i.map((e=>"ink-signature"===e.type?((0,o.a1)("The 'ink-signature' toolbar item type has been renamed to 'signature'. The 'ink-signature' identifier will be removed on a future release of PSPDFKit for Web."),{...e,type:"signature"}):e)),i.forEach(ge.G);const a=(0,r.d0)(i);n().equals(a)||e.dispatch((0,me.De)(a))},t.setAnnotationToolbarItems=t=>{(0,o.kG)("function"==typeof t,"The annotationToolbarItemsCallback argument must be a function."),e.dispatch((0,me.v1)(t))}},function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("annotations.willChange","annotations.change","annotations.willSave","annotations.didSave","annotations.load","annotations.create","annotations.update","annotations.delete","annotations.press","annotations.focus","annotations.blur","annotations.transform","annotations.cut","annotations.copy","annotations.paste","annotations.duplicate");let n=e.getState().annotations;const r=()=>t.emit("annotations.willSave"),o=()=>t.emit("annotations.didSave"),i=e=>t.emit("annotations.load",e),a=e=>t.emit("annotations.create",e),s=e=>t.emit("annotations.update",e),l=e=>t.emit("annotations.delete",e);let c=!1;const u=()=>{if(!c){const{annotationManager:t}=e.getState();t&&(t.eventEmitter.on("willSave",r),t.eventEmitter.on("didSave",o),t.eventEmitter.on("load",i),t.eventEmitter.on("create",a),t.eventEmitter.on("update",s),t.eventEmitter.on("delete",l),c=!0)}},d=e.subscribe((()=>{const r=e.getState().annotations;n!==r&&(n=r,t.emit("annotations.change")),u()}));return u(),()=>{if(c){const{annotationManager:t}=e.getState();L(t,"AnnotationManager is not present in the state"),t.eventEmitter.off("willSave",r),t.eventEmitter.off("didSave",o),t.eventEmitter.off("load",i),t.eventEmitter.off("create",a),t.eventEmitter.off("update",s),t.eventEmitter.off("delete",l),c=!1}d()}}(e);return t.getAnnotations=async function(t){L("number"==typeof t,"`pageIndex` must be a number");const{annotationManager:n,totalPages:r}=e.getState();L(t>-1&&t<r,"`pageIndex` must be a number between 0 and "+(r-1)),await(n?.loadAnnotationsForPageIndex(t));const{annotations:o}=e.getState();return o.filter((e=>e.pageIndex===t)).toList()},t.createAttachment=async function(t){const{hash:n}=await(0,F.uq)(t),r=new R.Pg({data:t});return e.dispatch((0,O.O)({hash:n,attachment:r})),n},t.getAttachment=async function(t){if(!(0,T.F3)(t))throw new o.p2(`${t} is not a valid attachment.`);const n=e.getState(),r=n.attachments.get(t);if(r){if(r.data)return r.data;throw new o.p2(`Attachment ${t} not found.`)}return L(n.backend),n.backend.getAttachment(t)},t.calculateFittingTextAnnotationBoundingBox=function(t){L(t instanceof D.gd,"The annotation in `calculateFittingTextAnnotationBoundingBox(annotation)` must be of type `PSPDFKit.Annotations.TextAnnotation`"),L("number"==typeof t.pageIndex,"`pageIndex` must be a number");const{viewportState:n,shadowRoot:r}=e.getState(),o=n.pageSizes.get(t.pageIndex);return L(o,"`pageIndex` is not a valid page index in the open document"),(0,N.Zv)(t,o,void 0,r)},t.getEmbeddedFiles=async function(){const{backend:t}=e.getState();return L(t),t.getEmbeddedFiles()},t.setOnAnnotationResizeStart=function(t){e.dispatch((0,E.dt)(t))},t.getOverlappingAnnotations=async function(t){L(t instanceof D.q6||t instanceof j.ZP,"Argument must be an annotation or a form field");const{annotationManager:n,annotations:o}=e.getState();if(t instanceof j.ZP){const i=t.annotationIds?t.annotationIds:(0,r.aV)(),a=o.valueSeq().toList().filter((e=>i.includes(e.id)||i.includes(String(e.pdfObjectId)))),s=a.map((e=>e.pageIndex)),l=s.filter(((e,t)=>s.indexOf(e)===t));for(let e=0;e<l.size;e++){const t=l.get(e);t&&await(n?.loadAnnotationsForPageIndex(t))}const c=e.getState().annotations.valueSeq().toList().filter((e=>a.some((t=>t.pageIndex===e.pageIndex)))).filter((e=>!(e instanceof D.x_&&e.formFieldName!==t.formFieldName)));let u,d=(0,r.aV)();return c.size>0&&(u=a.map((e=>e.boundingBox)),d=c.filter((e=>u.some((t=>e.boundingBox.isRectOverlapping(t)))))),d}{await(n?.loadAnnotationsForPageIndex(t.pageIndex));const{annotations:r}=e.getState();return r.filter((e=>!(e.id===t.id))).filter((e=>e.boundingBox.isRectOverlapping(t.boundingBox)&&e.pageIndex===t.pageIndex)).valueSeq().toList()}},n},function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("bookmarks.change","bookmarks.willSave","bookmarks.didSave","bookmarks.load","bookmarks.create","bookmarks.update","bookmarks.delete");const n=()=>t.emit("bookmarks.change"),r=()=>t.emit("bookmarks.willSave"),o=()=>t.emit("bookmarks.didSave"),i=e=>t.emit("bookmarks.load",e),a=e=>t.emit("bookmarks.create",e),s=e=>t.emit("bookmarks.update",e),l=e=>t.emit("bookmarks.delete",e);let c=!1;const u=()=>{if(!c){const{bookmarkManager:t}=e.getState();t&&(t.eventEmitter.on("change",n),t.eventEmitter.on("willSave",r),t.eventEmitter.on("didSave",o),t.eventEmitter.on("load",i),t.eventEmitter.on("create",a),t.eventEmitter.on("update",s),t.eventEmitter.on("delete",l),c=!0)}},d=e.subscribe(u);return u(),()=>{if(c){const{bookmarkManager:t}=e.getState();t.eventEmitter.off("change",n),t.eventEmitter.off("willSave",r),t.eventEmitter.off("didSave",o),t.eventEmitter.off("load",i),t.eventEmitter.off("create",a),t.eventEmitter.off("update",s),t.eventEmitter.off("delete",l),c=!1}d()}}(e);return t.getBookmarks=async function(){const t=await(e.getState().bookmarkManager?.getBookmarks());return K(t),t.toList()},n},function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("formFieldValues.update","formFieldValues.willSave","formFieldValues.didSave","forms.willSubmit","forms.didSubmit","formFields.change","formFields.willSave","formFields.didSave","formFields.load","formFields.create","formFields.update","formFields.delete");const n=e.getState();let{formFields:r}=n;const o=()=>t.emit("formFieldValues.willSave"),i=()=>t.emit("formFieldValues.didSave"),a=e=>t.emit("formFieldValues.update",e),s=e=>t.emit("forms.willSubmit",e),l=e=>t.emit("forms.didSubmit",e),c=()=>t.emit("formFields.willSave"),u=()=>t.emit("formFields.didSave"),d=e=>t.emit("formFields.load",e),p=e=>t.emit("formFields.create",e),h=e=>t.emit("formFields.update",e),f=e=>t.emit("formFields.delete",e);let m=!1,v=!1;const y=()=>{const t=e.getState();if(!m){const{formFieldValueManager:e}=t;e&&(e.eventEmitter.on("willSave",o),e.eventEmitter.on("didSave",i),e.eventEmitter.on("update",a),e.eventEmitter.on("willSubmit",s),e.eventEmitter.on("didSubmit",l),m=!0)}if(!v){const{formFieldManager:e}=t;e&&(0,g.ix)(t)&&(e.eventEmitter.on("willSave",c),e.eventEmitter.on("didSave",u),e.eventEmitter.on("load",d),e.eventEmitter.on("create",p),e.eventEmitter.on("update",h),e.eventEmitter.on("delete",f),v=!0)}},b=e.subscribe((()=>{const n=e.getState().formFields;r!==n&&(r=n,t.emit("formFields.change")),y()}));return y(),()=>{if(m){const{formFieldValueManager:t}=e.getState();t.eventEmitter.off("willSave",o),t.eventEmitter.off("didSave",i),t.eventEmitter.off("update",a),t.eventEmitter.off("willSubmit",s),t.eventEmitter.off("didSubmit",l),m=!1}if(v){const{formFieldManager:t}=e.getState();t.eventEmitter.off("willSave",c),t.eventEmitter.off("didSave",u),t.eventEmitter.off("load",d),t.eventEmitter.off("create",p),t.eventEmitter.off("update",h),t.eventEmitter.off("delete",f),v=!1}b()}}(e);return t.getFormFields=async function(){const{features:t,formFieldManager:n,formsEnabled:r}=e.getState();W(t.includes(s.q.FORMS),I.DR),W(r,I.BZ),n instanceof q.c&&await n.loadFormFields();const{formFields:o}=e.getState();return o.valueSeq().toList()},t.getFormFieldValues=function(){const{formFields:t,features:n,formsEnabled:o}=e.getState();return W(n.includes(s.q.FORMS),I.DR),W(o,I.BZ),(0,Z.Qg)(t).reduce(((e,t)=>(e[t.name]=t.value instanceof r.aV?t.value.toJS():t.value,e)),{})},t.setFormFieldValues=async function(t){const{formFieldManager:n,features:o,formsEnabled:i}=e.getState();W(o.includes(s.q.FORMS),I.DR),W(i,I.BZ),n instanceof q.c&&await n.loadFormFields();const{formFields:a}=e.getState(),l=Object.keys(t).map((e=>{const n=a.get(e);W(a.has(e),`Tried to set the form field value for form field \`${e}\` which does not exist.`);const o=Array.isArray(t[e])?(0,r.aV)(t[e]):t[e];return n&&(0,I._1)(n,o),{name:e,value:o,optionIndexes:void 0}}));return new Promise((t=>{e.dispatch((0,G.xh)(l,t))})).then((()=>{})).catch((e=>{throw e}))},t.setOnWidgetAnnotationCreationStart=function(t){const{features:n}=e.getState();W("function"==typeof t,"The callback must be a function."),W(n.includes(s.q.FORMS),I.DR),W(n.includes(s.q.FORM_DESIGNER),I.RB),e.dispatch((0,G.r$)(t))},n},fe.Z,function(e,t){function n(){const{selectedAnnotationIds:t,annotations:n}=e.getState();return(0,r.aV)(t.map((e=>{const t=n.get(e);return(0,o.kG)(t),t})))}function i(t,n){if(!t)return void e.dispatch((0,C.fz)());const i=r.aV.isList(t)?t:(0,r.aV)([t]),{annotations:a}=e.getState(),l=e.getState(),c=i.map((t=>{const n=t instanceof D.q6?t.id:t;(0,o.kG)("string"==typeof n,"annotationId must be a string"),(0,o.kG)(a.has(n),"Unknown annotationId. Either the annotation was not yet created or is not yet loaded from the annotation provider.");const r=a.get(n);return(0,o.kG)(r&&(0,T.Fp)(r),"Annotations with the `noView` or `hidden` flag set cannot be selected."),r instanceof D.x_&&!l.formDesignMode?e.dispatch((0,E.vy)(n)):((0,o.kG)(!(r instanceof D.x_)||l.features.includes(s.q.FORM_DESIGNER),`Cannot select PSPDFKit.Annotations.WidgetAnnotation: ${I.RB}`),(0,o.kG)(!(r instanceof D.x_)||(0,g.k_)(l.backend),`Cannot select PSPDFKit.Annotations.WidgetAnnotation: ${I.Bl}`)),n}));if(1===c.size){const t=a.get(c.first());e.dispatch((0,C.J4)(c.toSet(),t instanceof D.gd||t instanceof D.Qi?n:A.o.SELECTED))}else e.dispatch((0,C.J4)(c.toSet(),A.o.SELECTED))}t.getSelectedAnnotation=function(){(0,o.XV)("getSelectedAnnotation","getSelectedAnnotations",!1);const e=n();return e.size>0?e.first():null},t.getSelectedAnnotations=function(){const e=n();return e.size>0?e:null},t.setSelectedAnnotation=function(e){(0,o.XV)("setSelectedAnnotation","setSelectedAnnotations",!1),i(e,A.o.SELECTED)},t.setSelectedAnnotations=function(e){i(e,A.o.SELECTED)},t.groupAnnotations=function(t){if(!t||0===t?.size)return;const n=t?.map((e=>e instanceof D.q6?e.id:e));e.dispatch((0,d._R)(n.toSet()))},t.getAnnotationsGroups=function(){const{annotationsGroups:t}=e.getState();return t.size>=1?t:null},t.deleteAnnotationsGroup=function(t){t&&e.dispatch((0,d.UZ)(t))},t.setEditingAnnotation=function(t,n){e.dispatch((0,C.fz)()),!0===n&&e.dispatch((0,C.Y1)()),i(t,A.o.EDITING)};let a=n();const{eventEmitter:l}=e.getState();return l.events.push(...M),e.subscribe((()=>{const e=n();a.every((t=>e.some((e=>e.id===t.id))))&&a.size===e.size?a=e:(a=e,l.emit("annotationSelection.change",e))}))},function(e,t){t.setCustomOverlayItem=function(t){U(t instanceof $.Z,"invalid item. Expected an instance of PSPDFKit.CustomOverlayItem"),(0,$.G)(t),e.dispatch((e=>({type:H.jJ7,item:e}))(t))},t.removeCustomOverlayItem=function(t){U("string"==typeof t,"`id` must be a string"),e.dispatch((e=>({type:H.G8_,id:e}))(t))}},function(e,t){t.setLocale=async function(t){const n=(0,Y.z5)(t);await(0,Y.sS)(n),e.dispatch((0,d.i_)(n))},Object.defineProperty(t,"locale",{enumerable:!0,configurable:!1,get:()=>e.getState().locale})},function(e,t){const n=()=>e.getState().searchState;t.search=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{backend:r,totalPages:o,searchState:{minSearchQueryLength:i}}=e.getState(),a=null!=n.startPageIndex?n.startPageIndex:0,s=null!=n.endPageIndex?n.endPageIndex:o-1,l=n.searchType||le.S.TEXT,c=n.searchInAnnotations||!1,u="boolean"==typeof n.caseSensitive?n.caseSensitive:l!==le.S.TEXT;return(0,ue.k)(Object.values(le.S).includes(l),"searchType is not valid."),l===le.S.PRESET&&(0,ue.k)(Object.values(ce.n).includes(t),"search query is not a valid search pattern."),(0,ue.k)("number"==typeof a&&"number"==typeof s,"startPageIndex/endPageIndex must be numbers"),(0,ue.k)("boolean"==typeof c,"searchInAnnotations should be boolean"),(0,ue.k)(void 0===n.caseSensitive||"boolean"==typeof n.caseSensitive,"caseSensitive should be boolean"),(0,ue.k)(s>=a,"endPageIndex must be greater than or equal to startPageIndex"),(0,ue.k)(t.length>=i,`"${t}" - search query length (${t.length}) shorter than the minimum (${i})`),(0,ue.k)(r),await r.search(t,a,s-a+1,u,c,l)},Object.defineProperty(t,"searchState",{enumerable:!0,configurable:!1,get:n}),t.setSearchState=function(t){let i=t;if("function"==typeof i&&(i=i.call(null,n())),!(i instanceof se.Z)){const e="function"==typeof i?"return value of your update function":"supplied argument";throw new o.p2(`The ${e} is not an instance of PSPDFKit.SearchState.`)}const a=n();i.minSearchQueryLength!==a.minSearchQueryLength&&((0,o.ZK)(`Trying to set readonly property SearchState.minSearchQueryLength from ${a.minSearchQueryLength} to ${i.minSearchQueryLength} failed. For more details please see https://pspdfkit.com/api/web/PSPDFKit.SearchState.html#minSearchQueryLength`),i=i.set("minSearchQueryLength",a.minSearchQueryLength)),function(e){if("boolean"!=typeof e.isFocused)throw new o.p2("`isFocused` must be of type boolean.");if("boolean"!=typeof e.isLoading)throw new o.p2("`isLoading` must be of type boolean.");if("string"!=typeof e.term)throw new o.p2("`term` must be of type string.");if("number"!=typeof e.focusedResultIndex)throw new o.p2("`focusedResultIndex` must be of type number.");if(!(e.results instanceof r.aV))throw new o.p2("`results` must be of type PSPDFKit.Immutable.List.")}(i),function(e,t,n){const{dispatch:r}=e;t!==n&&r((0,ae.j8)(n))}(e,n(),i)},t.startUISearch=function(t){const{dispatch:n,getState:r}=e,{searchProvider:o,eventEmitter:i,searchState:{minSearchQueryLength:a}}=r();let s=!1;i.emit("search.termChange",{term:t,preventDefault:()=>{s=!0}}),s||((0,ue.k)(t.length>=a,`"${t}" - search query length (${t.length}) shorter than the minimum (${a})`),n((0,ae.Xe)()),n((0,ae._8)(t)),o?.searchTerm(t))};let i=e.getState();const{eventEmitter:a}=i;return a.events.push(...de),e.subscribe((()=>{const t=e.getState();i.searchState.equals(t.searchState)||a.emit("search.stateChange",t.searchState),i=t}))},function(e,t){t.renderPageAsArrayBuffer=async function(t,n){const{element:r,width:o,height:i}=await ie(t,n,e);let a;if(r instanceof HTMLImageElement){const e=document.createElement("canvas");e.width=o,e.height=i,a=e.getContext("2d"),await(0,re.sR)(r),a.drawImage(r,0,0,o,i)}else r instanceof HTMLCanvasElement?a=r.getContext("2d"):oe(!1,"There was an error while rendering the page. Please try again.");return a.getImageData(0,0,o,i).data.buffer},t.renderPageAsImageURL=async function(t,n){const{element:r}=await ie(t,n,e);return r instanceof HTMLImageElement?r.src:r instanceof HTMLCanvasElement?URL.createObjectURL(await(0,re._c)(r)):void oe(!1,"There was an error while generating the image URL. Please try again.")}},function(e,t){async function n(){let{storedSignatures:t}=e.getState().signatureState;if(!t){const n=(0,Q.de)();await n(e.dispatch,e.getState),t=e.getState().signatureState.storedSignatures}return t||(0,r.aV)()}async function o(t){let n=e.getState().signatureState.storedSignatures;const o=n instanceof r.aV;n||(n=await e.getState().signatureState.populateStoredSignatures());let i=t;"function"==typeof i&&(i=i.call(null,n)),J(i instanceof r.aV&&i.every((e=>e instanceof R.Zc||e instanceof R.sK)),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not a PSPDFKit.Immutable.List of PSPDFKit.Annotations.InkAnnotation or PSPDFKit.Annotations.ImageAnnotation`),o&&n.equals(i)||(e.dispatch((0,Q.nR)(i)),e.getState().eventEmitter.emit("inkSignatures.update",i),e.getState().eventEmitter.emit("inkSignatures.change"),e.getState().eventEmitter.emit("storedSignatures.update",i),e.getState().eventEmitter.emit("storedSignatures.change"))}e.getState().eventEmitter.events.push(...ee,...te),t.getInkSignatures=async function(){return(0,X.XV)("instance.getInkSignatures","instance.getStoredSignatures"),n()},t.getStoredSignatures=n,t.setInkSignatures=async function(e){return(0,X.XV)("instance.setInkSignatures","instance.setStoredSignatures"),o(e)},t.setStoredSignatures=o},V.Z,function(e,t){t.setIsEditableComment=function(t){(0,o.kG)("function"==typeof t,"The type for isEditableComment is not valid. Must be `function`."),e.dispatch((0,d.Gh)(t))}},be.Z,function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("comments.change","comments.willSave","comments.didSave","comments.load","comments.create","comments.update","comments.delete","comments.mention");const n=()=>t.emit("comments.change"),r=()=>t.emit("comments.willSave"),o=()=>t.emit("comments.didSave"),i=e=>t.emit("comments.load",e),a=e=>t.emit("comments.create",e),s=e=>t.emit("comments.update",e),l=e=>t.emit("comments.delete",e);let c=!1;const u=()=>{if(!c){const{commentManager:t}=e.getState();t&&(t.eventEmitter.on("change",n),t.eventEmitter.on("willSave",r),t.eventEmitter.on("didSave",o),t.eventEmitter.on("load",i),t.eventEmitter.on("create",a),t.eventEmitter.on("update",s),t.eventEmitter.on("delete",l),c=!0)}},d=e.subscribe(u);return u(),()=>{if(c){const{commentManager:t}=e.getState();t&&(t.eventEmitter.off("change",n),t.eventEmitter.off("willSave",r),t.eventEmitter.off("didSave",o),t.eventEmitter.off("load",i),t.eventEmitter.off("create",a),t.eventEmitter.off("update",s),t.eventEmitter.off("delete",l)),c=!1}d()}}(e);return t.getComments=async function(){const{comments:t,backend:n}=e.getState(),r=t.filter((e=>!(0,we.kT)(e))).toList();return r.size||!n?.isUsingInstantProvider()?r:new Promise((t=>{const n=setInterval((()=>{const{hasFetchedInitialRecordsFromInstant:r,comments:o}=e.getState();r&&(clearInterval(n),t(o.filter((e=>!(0,we.kT)(e))).toList()))}),500)}))},t.setMentionableUsers=function(t){e.dispatch((0,xe.v7)(t))},t.setMaxMentionSuggestions=function(t){e.dispatch((0,xe.aZ)(t))},t.setOnCommentCreationStart=function(t){(0,o.kG)("function"==typeof t,"The callback must be a function."),e.dispatch((0,xe.Rf)(t))},n},_e.Z,function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("document.saveStateChange");const n=e=>{t.emit("document.saveStateChange",e)};let r=!1;const i=()=>{if(!r){const{changeManager:t}=e.getState();t&&(t.eventEmitter.on("saveStateChange",n),r=!0)}},a=e.subscribe((()=>{i()}));return i(),()=>{if(r){const{changeManager:t}=e.getState();(0,o.kG)(t),t.eventEmitter.off("saveStateChange",n),r=!1}a()}}(e);return t.save=async function(){const{changeManager:t}=e.getState();return(0,o.kG)(t),t.save(!0)},t.hasUnsavedChanges=function(){const{changeManager:t}=e.getState();return(0,o.kG)(t),t.hasUnsavedChanges()},t.syncChanges=async function(){const{backend:n}=e.getState();if((0,o.kG)(n),!n.isUsingInstantProvider())throw new o.p2("You need PSPDFKit Instant to use this method.");return t.save()},t.create=async function(t){const{changeManager:n,backend:r}=e.getState();return(0,o.kG)(n&&r),Ce(r,(()=>n.create(Se(t))))},t.update=async function(t){const{changeManager:n,backend:r}=e.getState();return(0,o.kG)(n&&r),Ce(r,(()=>n.update(Se(t))))},t.delete=async function(t){const{changeManager:n,backend:r}=e.getState();return(0,o.kG)(n&&r),Ce(r,(()=>n.delete(Se(t))))},t.ensureChangesSaved=async function(t){const{changeManager:n,backend:r}=e.getState();return(0,o.kG)(n&&r),"STANDALONE"===r?.type&&await(r?.setFormJSONUpdateBatchMode(!1)),n.ensureChangesSaved(Se(t))},n},_e.Z,function(e,t){t.setGroup=function(t){const{backend:n}=e.getState();n?.isCollaborationPermissionsEnabled()?e.dispatch((0,d.YK)(t)):(0,o.ZK)("`instance.setGroup` is no-op if Collaboration Permissions is not enabled.")},t.resetGroup=function(){const{backend:t}=e.getState();t?.isCollaborationPermissionsEnabled()?e.dispatch((0,d.YK)(t.getDefaultGroup())):(0,o.ZK)("`instance.setGroup` is no-op if Collaboration Permissions is not enabled.")}},function(e,t){const n=()=>e.getState().documentEditorFooterItems,o=()=>e.getState().documentEditorToolbarItems;Object.defineProperty(t,"documentEditorFooterItems",{enumerable:!0,configurable:!1,get:()=>n().toJS()}),Object.defineProperty(t,"documentEditorToolbarItems",{enumerable:!0,configurable:!1,get:()=>o().toJS()}),t.setDocumentEditorFooterItems=function(t){const{features:o}=e.getState();(0,ue.k)(o.includes(s.q.DOCUMENT_EDITING),V.I);let i=t;"function"==typeof i&&(i=i(n().toJS())),Ae(Array.isArray(i),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`),i.forEach(Pe.G);const a=(0,r.d0)(i);var l;n().equals(a)||e.dispatch((l=a,{type:H.Kpf,documentEditorFooterItems:l}))},t.setDocumentEditorToolbarItems=function(t){const{features:n}=e.getState();(0,ue.k)(n.includes(s.q.DOCUMENT_EDITING),V.I);let i=t;"function"==typeof i&&(i=i(o().toJS())),Ae(Array.isArray(i),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`),i.forEach(De.G);const a=(0,r.d0)(i);var l;o().equals(a)||e.dispatch((l=a,{type:H.wPI,documentEditorToolbarItems:l}))}},function(e,t){function n(){const{isHistoryEnabled:t,undoActions:n}=e.getState();return t&&n.size>0}function r(){const{isHistoryEnabled:t,redoActions:n}=e.getState();return t&&n.size>0}e.getState().eventEmitter.events.push(...ke),t.history={},t.history.undo=async function(){return!!n()&&(e.dispatch((0,Ee.Yw)()),!0)},t.history.redo=async function(){return!!r()&&(e.dispatch((0,Ee.KX)()),!0)},t.history.canUndo=function(){return n()},t.history.canRedo=function(){return r()},t.history.clear=function(){e.dispatch((0,Ee.QQ)())},t.history.enable=function(){e.dispatch((0,Ee.z9)())},t.history.disable=function(){e.dispatch((0,Ee.ou)())}},function(e,t){t.parseXFDF=async(t,n)=>{const{backend:r}=e.getState();return(0,o.kG)(r,"backend is null."),(0,o.kG)("STANDALONE"===r.type,"`instance.parseXFDF` only works in standalone mode."),r.parseXFDF(t,n??!1)}},function(e,t){e.getState().eventEmitter.events.push(...Ie),t.setDocumentComparisonMode=async function(t){const{features:n,backend:r,viewportState:{documentComparisonMode:i}}=e.getState();if((0,o.kG)(n.includes(s.q.DOCUMENT_COMPARISON),l.nN),(0,o.kG)("STANDALONE"===r?.type,l.bZ),function(e){if("object"!=typeof e)throw new o.p2("`PSPDFKit.DocumentComparisonConfiguration` must be a `PSPDFKit.DocumentComparisonConfiguration` plain object, or `null`.");if(null===e)return;if("boolean"!=typeof e.autoCompare)throw new o.p2("`PSPDFKit.DocumentComparisonConfiguration.autoCompare` must be a boolean value.");if("object"!=typeof e.documentA||null===e.documentA)throw new o.p2("`PSPDFKit.DocumentComparisonConfiguration.documentA` must be a plain object.");if("object"!=typeof e.documentB||null===e.documentB)throw new o.p2("`PSPDFKit.DocumentComparisonConfiguration.documentB` must be a plain object.");if(!("string"==typeof e.documentA.source||e.documentA.source instanceof ArrayBuffer||e.documentA.source instanceof Promise))throw new o.p2("`PSPDFKit.DocumentComparisonConfiguration.documentA#source` must be a string, an ArrayBuffer or a Promise object resolving to a string or an ArrayBuffer.");if(!("string"==typeof e.documentB.source||e.documentB.source instanceof ArrayBuffer||e.documentB.source instanceof Promise))throw new o.p2("`PSPDFKit.DocumentComparisonConfiguration.documentB#source` must be a string, an ArrayBuffer or a Promise object resolving to a string or an ArrayBuffer.");if(void 0!==e.documentA.pageIndex&&"number"!=typeof e.documentA.pageIndex)throw new o.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.documentA#pageIndex` must be a number.");if(void 0!==e.documentB.pageIndex&&"number"!=typeof e.documentB.pageIndex)throw new o.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.documentB#pageIndex` must be a number.");if(void 0!==e.blendMode&&!Object.values(Te.b).includes(e.blendMode))throw new o.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.blendMode` must be a `PSPDFKit.BlendMode`.");if(void 0!==e.strokeColors&&("object"!=typeof e.strokeColors||null===e.strokeColors))throw new o.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.strokeColors` must be a plain object.");if("object"==typeof e.strokeColors){if(void 0!==e.strokeColors.documentA&&!(e.strokeColors.documentA instanceof R.Il))throw new o.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentA` must be a `PSPDFKit.Color` value.");if(void 0!==e.strokeColors.documentB&&!(e.strokeColors.documentB instanceof R.Il))throw new o.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentB` must be a `PSPDFKit.Color` value.");e.strokeColors.documentA&&e.strokeColors.documentB&&e.strokeColors.documentA.equals(e.strokeColors.documentB)&&(0,o.ZK)("The values provided for `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentA` and `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentB` are identical.")}}(t),t)e.dispatch((0,d.cz)(t));else if(i){const{completion:{end:{promise:t}}}=i;return e.dispatch((0,d.cz)(null)),t}}},function(e,t){t.compareDocuments=async function(t,n){const{backend:r,features:i}=e.getState();if("object"!=typeof t||null===t)throw new o.p2("`comparisonDocuments` must be a plain object.");(0,o.kG)(i.includes(s.q.TEXT_COMPARISON),c),(0,o.kG)("STANDALONE"===r?.type,u);const d=await async function(e){return(0,o.kG)(e.originalDocument.filePath),(0,o.kG)(e.changedDocument.filePath),{originalDocument:{...(0,a.c)(e.originalDocument),arrayBuffer:await(0,l.rh)(e.originalDocument.filePath)},changedDocument:{...(0,a.c)(e.changedDocument),arrayBuffer:await(0,l.rh)(e.changedDocument.filePath)}}}(t);return(0,o.kG)(r),(0,o.kG)("STANDALONE"===r.type,"compareDocuments is only supported in the web standalone."),r.compareDocuments?.(d,n)}},function(e,t){t.getPageTabOrder=async function(t){const{pages:n,backend:r}=e.getState();if((0,o.kG)(r),"STANDALONE"!==r.type)throw new o.p2("`instance.getTabOrder()` is only available in Standalone mode.");if("number"!=typeof t)throw new o.p2("pageIndex must be a number.");if(t>=n.size||t<0)throw new o.p2(`pageIndex is out of bounds. Please provide a value between 0 and ${n.size-1}.`);const i=n.get(t);if(!i)throw new o.p2(`Cannot retrieve tab order for page: page ${t} does not exist.`);if(i.tabOrder)return i.tabOrder;await r.provider.updateTabOrder(t);const{pages:a}=e.getState(),s=a.get(t);if(!s)throw new o.p2(`Cannot retrieve tab order for page: page ${t} does not exist.`);if(!s.tabOrder)throw new o.p2(`Cannot retrieve tab order for page: page ${t} does not have a tab order.`);return s.tabOrder},t.setPageTabOrder=async function(t,n){if("function"!=typeof n)throw new o.p2("annotationIdsSortCallback must be a function.");const{backend:r,annotations:i,pages:a}=e.getState();if((0,o.kG)(r),"STANDALONE"!==r.type)throw new o.p2("`instance.getTabOrder()` is only available in Standalone mode.");if(!a.get(t))throw new o.p2(`Cannot set tab order for page: page ${t} does not exist.`);const s=n((await this.getPageTabOrder(t)).map((e=>i.get(e))).filter(Boolean));if(!Array.isArray(s))throw new o.p2("annotationIdsSortCallback must return an array of annotation IDs.");const l=s.map((e=>{const t=i.get(e);if(!t)throw new o.p2(`Annotation with ID ${e} does not exist.`);return{id:t.id,pdfObjectId:t.pdfObjectId}}));return e.dispatch((0,E.N1)(t,l)),r.provider.setTabOrder(t,l)}},ze.ZP],$e="You need PSPDFKit Instant to use this method.",Ue="You need to enable clients presence in your configuration (`instant: { clientsPresenceEnabled: true }`) to use this method.";class Ze{constructor(e){let{store:t,backend:n,eventEmitter:a}=e;a.events.push(...Ve);let l=!1;const c=He.map((e=>e(t,this)));let u=(0,r.D5)();t.dispatch((0,d.lW)((e=>{l||(u=e.map((e=>(0,h.B)(e))),a.emit("instant.connectedClients.change",u))}))),Object.defineProperty(this,"totalPageCount",{enumerable:!0,configurable:!1,get:()=>t.getState().totalPages}),this.pageInfoForIndex=function(e){const n=t.getState().pages.get(e);return n?(0,p.J)(n):null},this.textLinesForPageIndex=async function(e){const{promise:t}=n.textForPageIndex(e);return t},this.toggleClipboardActions=function(e){Ke("boolean"==typeof e,"`toggleClipboardActions` expects a boolean as an argument"),t.dispatch((0,d.UG)(e))},this.setMeasurementSnapping=function(e){Ke("boolean"==typeof e,"`setMeasurementSnapping` expects a boolean as an argument"),Ke(t.getState().features.includes(s.q.MEASUREMENT_TOOLS),Oe.oD),t.dispatch((0,d.Gc)(e))},this.setMeasurementPrecision=function(e){Ke("string"==typeof e,"`setMeasurementPrecision` expects a string as an argument"),Ke(t.getState().features.includes(s.q.MEASUREMENT_TOOLS),Oe.oD),t.dispatch((0,d.M4)(e))},this.setMeasurementScale=function(e){Ke(e instanceof Fe.Z,"`setMeasurementScale` expects an instance of `MeasurementScale` as an argument"),Ke(t.getState().features.includes(s.q.MEASUREMENT_TOOLS),Oe.oD),t.dispatch((0,d._b)(e))},this.setMeasurementValueConfiguration=e=>{Ke("function"==typeof e,"The `measurementValueConfigurationCallback` argument must be a function."),Ke(t.getState().features.includes(s.q.MEASUREMENT_TOOLS),Oe.oD),t.dispatch((0,d.QL)(e))},this.getMarkupAnnotationText=async function(e){return Ke(e instanceof f.Z,"annotation must be a PSPDFKit.Annotations.MarkupAnnotation"),n.getTextFromRects(e.pageIndex,e.rects)},this.getTextFromRects=async function(e,t){return Ke("number"==typeof e,"pageIndex must be a number"),Ke(t instanceof r.aV&&t.every((e=>e instanceof x.UL)),"rects must be a PSPDFKit.Immutable.List of PSPDFKit.Geometry.Rect"),n.getTextFromRects(e,t)},this.getDocumentPermissions=async function(){return(0,g.Pt)(t.getState())},Object.defineProperty(this,"currentZoomLevel",{enumerable:!0,configurable:!1,get:()=>t.getState().viewportState.zoomLevel}),Object.defineProperty(this,"annotationCreatorName",{enumerable:!0,configurable:!1,get:()=>t.getState().annotationCreatorName}),Object.defineProperty(this,"maximumZoomLevel",{enumerable:!0,configurable:!1,get(){const{viewportState:e}=t.getState();return(0,m.Sm)(e)}}),Object.defineProperty(this,"minimumZoomLevel",{enumerable:!0,configurable:!1,get(){const{viewportState:e}=t.getState();return(0,m.Yo)(e)}}),Object.defineProperty(this,"zoomStep",{enumerable:!0,configurable:!1,get(){const{viewportState:e}=t.getState();return e.zoomStep}}),Object.defineProperty(this,"disablePointSnapping",{get(){const{viewportState:e}=t.getState();return e.disablePointSnapping}}),Object.defineProperty(this,"connectedClients",{enumerable:!0,configurable:!1,get:()=>n.isUsingInstantProvider()?n.hasClientsPresence()?u:((0,o.ZK)(Ue),(0,r.D5)()):((0,o.ZK)($e),(0,r.D5)())}),Object.defineProperty(this,"enableAlwaysScrollToZoom",{get(){const{viewportState:e}=t.getState();return e.enableAlwaysScrollToZoom}}),this.addEventListener=function(e,t){Ke("instant.connectedClients.change"!==e||n.isUsingInstantProvider(),$e),Ke("instant.connectedClients.change"!==e||n.hasClientsPresence(),Ue),Ke(!e.startsWith("comments.")||(0,g.xr)(n),$e);const r=qe(e);try{a.on(r,t)}catch(e){throw new o.p2(e)}},this.removeEventListener=function(e,t){Ke("instant.connectedClients.change"!==e||n.isUsingInstantProvider(),$e),Ke("instant.connectedClients.change"!==e||n.hasClientsPresence(),Ue);const r=qe(e);try{a.off(r,t)}catch(e){throw new o.p2(e)}},this.jumpToRect=function(e,n){const{totalPages:r}=t.getState();Ke(e>=0&&e<r,`Could not find page with index ${e} in this document.`),Ke(n instanceof x.UL,"rect must be of type `PSPDFKit.Geometry.Rect`."),t.dispatch((0,b.kN)(e,n))},this.jumpAndZoomToRect=function(e,n){const{totalPages:r}=t.getState();Ke(e>=0&&e<r,`Could not find page with index ${e} in this document.`),Ke(n instanceof x.UL,"rect must be of type `PSPDFKit.Geometry.Rect`."),t.dispatch((0,b.vP)(e,n))},this.transformContentClientToPageSpace=function(e,n){const{totalPages:r,viewportState:o}=t.getState();Ke(n>=0&&n<r,`Could not find page with index ${n} in this document.`),Ke(e instanceof x.UL||e instanceof x.E9,"rectOrPoint must be of type `PSPDFKit.Geometry.Rect` or `PSPDFKit.Geometry.Point`.");const i=(0,v.Ek)(o,n);return e.apply(i)},this.transformContentPageToClientSpace=function(e,n){const{totalPages:r,viewportState:o}=t.getState();Ke(n>=0&&n<r,`Could not find page with index ${n} in this document.`),Ke(e instanceof x.UL||e instanceof x.E9,"rectOrPoint must be of type `PSPDFKit.Geometry.Rect` or `PSPDFKit.Geometry.Point`.");const i=(0,v.cr)(o,n);return e.apply(i)},this.transformClientToPageSpace=function(e,n){const{totalPages:r,viewportState:o,rootElement:i}=t.getState();Ke(n>=0&&n<r,`Could not find page with index ${n} in this document.`),Ke(e instanceof x.UL||e instanceof x.E9,"rectOrPoint must be of type `PSPDFKit.Geometry.Rect` or `PSPDFKit.Geometry.Point`.");const a=i?.getBoundingClientRect(),s=(0,v.Ek)(o,n).translate({x:-a.left,y:-a.top});return e.apply(s)},this.transformPageToClientSpace=function(e,n){const{totalPages:r,viewportState:o,rootElement:i}=t.getState();Ke(n>=0&&n<r,`Could not find page with index ${n} in this document.`),Ke(e instanceof x.UL||e instanceof x.E9,"rectOrPoint must be of type `PSPDFKit.Geometry.Rect` or `PSPDFKit.Geometry.Point`.");const a=i?.getBoundingClientRect(),s=(0,v.cr)(o,n);return e.translate(new x.E9({x:a.left,y:a.top})).apply(s)},this.transformRawToPageSpace=function(e,n){Ke(null!=n,"No page index was provided as second parameter to this function.");const{pages:r}=t.getState(),o=r.get(n);Ke(o,`No page found with pageIndex ${n}`);let i=null;if(e instanceof x.eB)i=e;else{i=(0,Re.r)(e);const t=i.top;i=i.set("top",i.bottom).set("bottom",t)}let a=i.apply(o.matrix);const s=x.UL.fromInset(a),l=a.top;return a=a.set("top",a.bottom).set("bottom",l),s.set("top",o.pageSize.height-a.top)},this.transformPageToRawSpace=function(e,n){Ke(null!=n,"No page index was provided as second parameter to this function.");const{pages:r}=t.getState(),o=r.get(n);Ke(o,`No page found with pageIndex ${n}`);let i=x.eB.fromRect(e);const{height:a}=o.pageSize,s=a-i.top;i=i.set("top",s).set("bottom",s-e.height);const l=i.apply(o.reverseMatrix),c=l.top;return l.set("top",l.bottom).set("bottom",c)},this.exportOffice=async function(e){if(!e||!e.format||!Object.values(Be._).includes(e.format))throw new o.p2(`An object has to be passed to \`instance.exportOffice()\` specifying one of the supported output formats\n        in the \`format\` property: ${Object.values(Be._).map((e=>`PSPDFKit.OfficeDocumentFormat.${e}`)).join(", ")}`);return n.exportOffice(e)},this.exportPDF=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=t.getState();if((0,g.RZ)(r)){let t;return e.flattenElectronicSignatures&&"STANDALONE"===n.type&&(t=r.annotations.toList().filter((e=>(e instanceof Le.Z||e instanceof je.Z)&&e.isSignature)).map((e=>({pageIndex:e.pageIndex,id:e.id,pdfObjectId:e.pdfObjectId})))),n.exportPDF(e,t?.toArray())}throw new o.p2("This document permissions do not allow exporting.")},this.exportXFDF=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return n.exportXFDF(e)},this.exportInstantJSON=async function(e){return n.exportInstantJSON(e)},this._destroy=function(){c.filter(Boolean).forEach((e=>{e?.()})),l=!0},this.print=function(e){const n=t.getState(),{isPrinting:r}=n,i=(0,g.VT)(n);e&&"object"!=typeof e&&(0,o.ZK)("PSPDFKit.Instance.print: options must be an object. If you want to pass the `printMode`, use `{ mode: PSPDFKit.PrintMode.DOM }` instead.");const a="object"==typeof e?e.mode:e;if(!i)throw new o.p2("Tried to start a print job while printing is disabled.");if(r)throw new o.p2("Tried to start a print job while another one was already being processed.\nUse PSPDFKit.Instance#abortPrint to terminate the current print job.\n        ");if(a&&!Object.prototype.hasOwnProperty.call(w.X,a))throw new o.p2("The supplied printMode is not valid.\nValid `printMode`s are: PSPDFKit.PrintMode.DOM, PSPDFKit.PrintMode.EXPORT_PDF");t.dispatch(S.S0({mode:a,excludeAnnotations:"object"==typeof e&&e.excludeAnnotations}))},this.setAnnotationCreatorName=function(e){const{annotationCreatorNameReadOnly:n}=t.getState();if(n)throw new o.p2("When the annotation creator name is defined on the JWT it can't be overriden.");t.dispatch((0,d.X8)(e))},this.setCustomRenderers=function(e){t.dispatch((0,d.jM)(e))},this.setCustomUIConfiguration=function(e){const{customUIStore:n}=t.getState();if(n?.getState()===e)return;let r,o;r="function"==typeof e?e(n?.getState()||null):e,(0,Me.a)(r),n||(o=new i.Z(r),t.dispatch((0,d.W)(o))),(n||o).setState(r)},this.setInlineTextSelectionToolbarItems=e=>{Ke("function"==typeof e,"The inlineTextSelectionToolbarItemsCallback argument must be a function."),t.dispatch((0,C.tu)(e))},this.abortPrint=function(){const e=t.getState(),{isPrinting:n}=e;if(!(0,g.VT)(e))throw new o.p2("Tried to terminate a print job while printing is disabled.");if(!n)throw new o.p2("No print job to abort found.");t.dispatch(S.xF())},this.getDocumentOutline=async function(){const e=t.getState();if(e.documentOutlineState.elements)return e.documentOutlineState.elements;Ke(e.backend);const n=await e.backend.getDocumentOutline();return t.dispatch((0,_.o)(n)),n},this.setDocumentOutline=async function(e){const n=t.getState();Ke(n.backend);try{await n.backend.setDocumentOutline(e)}catch(e){throw new o.p2(`Failed to set the document outline: ${e.message}`,e)}t.dispatch((0,_.o)(e))},this.getPageGlyphs=async function(e){const n=t.getState();return Ke(n.backend),Ke("number"==typeof e&&Number.isInteger(e)&&e>=0&&e<n.totalPages,`Page index must be an integer between 0 and ${n.totalPages-1} (number of pages - 1) inclusive.`),n.backend.getPageGlyphs(e)},this.getLayers=async function(){const e=t.getState();return Ke(e.backend),e.backend.getOCGs()},this.getLayersVisibilityState=async function(){const e=t.getState();return Ke(e.backend),e.backend.getOCGVisibilityState()},this.setLayersVisibilityState=async function(e){t.dispatch((0,Ne.Nx)(e))},Object.defineProperty(this,"contentWindow",{enumerable:!0,configurable:!1,get:()=>t.getState().frameWindow}),Object.defineProperty(this,"contentDocument",{enumerable:!0,configurable:!1,get:()=>t.getState().shadowRoot||t.getState().frameWindow?.document}),Object.defineProperty(this,"licenseFeatures",{enumerable:!0,configurable:!1,get:()=>t.getState().features}),"production"!==(0,y.zj)()&&(this._store=t,this._eventEmitter=a)}}function qe(e){switch(e){case"annotations.onPress":case"textLine.onPress":case"page.onPress":{const t=e.replace(".onPress",".press");return(0,o.a1)(`The event ${e} was renamed and will be removed in a a future version. Please use ${t} instead.`),t}default:return e}}},7409:(e,t,n)=>{"use strict";n.d(t,{default:()=>Ht});n(84633);"object"==typeof window&&(window._babelPolyfill=!1);var r=n(35369),o=n(15359),i=n(72810),a=n(67185),s=n(64352),l=n(30874),c=n(11267),u=n(4715);function d(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function p(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,d(e,t,"get"))}function h(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,d(e,t,"set"),n),n}var f=n(33907),m=n(39236),g=n(21853);function v(e){if(null==e)throw new o.p2("Expected `PSPDFKit.unload` to be called with an `HTMLElement | string | PSPDFKit.Instance`\ninstead none was provided.");if("string"==typeof e){const t=e;if(null===(e=document.querySelector(t)))throw new o.p2(`Couldn't find a container which matches the provided selector \`${t}\``)}else if(!((0,g.Re)(e)||e instanceof m.Z))throw new o.p2("Expected `PSPDFKit.unload` to be called with a valid `target` argument.\nAllowed values for `target` are: `HTMLElement | string | PSPDFKit.Instance`.\n");let t;return e instanceof m.Z?t=f.ae.current.get(e):f.If.current.has(e)&&(t=f.If.current.get(e)),!!t&&(t(),!0)}var y=n(8898);function b(e,t){x(e,t),t.add(e)}function w(e,t,n){x(e,t),t.set(e,n)}function x(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var S=new WeakMap,C=new WeakMap,E=new WeakMap,k=new WeakMap,z=new WeakMap,P=new WeakMap,D=new WeakMap,A=new WeakMap,T=new WeakMap,I=new WeakSet,M=new WeakSet,R=new WeakSet,F=new WeakSet,N=new WeakSet,O=new WeakSet,j=new WeakSet,L=new WeakSet;class B{constructor(e){b(this,L),b(this,j),b(this,O),b(this,N),b(this,F),b(this,R),b(this,M),b(this,I),w(this,S,{writable:!0,value:void 0}),w(this,C,{writable:!0,value:void 0}),w(this,E,{writable:!0,value:void 0}),w(this,k,{writable:!0,value:void 0}),w(this,z,{writable:!0,value:void 0}),w(this,P,{writable:!0,value:void 0}),w(this,D,{writable:!0,value:void 0}),w(this,A,{writable:!0,value:void 0}),w(this,T,{writable:!0,value:void 0}),h(this,S,e)}annotationFocused(e){p(this,S).invokeMethodAsync(this.annotationFocused.name,e)}async annotationPressed(e){const t=await p(this,S).invokeMethodAsync("annotationsPressed",e.annotation.id,e.selected);e.preventDefault=t}annotationSelected(e){p(this,S).invokeMethodAsync(this.annotationSelected.name,e)}annotationToolbarButtonClicked(e,t){p(this,S).invokeMethodAsync(this.annotationToolbarButtonClicked.name,e,t)}annotationUnfocused(e){p(this,S).invokeMethodAsync(this.annotationUnfocused.name,e)}mainToolbarButtonClicked(e){p(this,S).invokeMethodAsync(this.mainToolbarButtonClicked.name,e)}subscribeToEvent(e,t){switch(e){case"annotations.change":h(this,C,(()=>_(this,I,K).call(this))),t.addEventListener(e,p(this,C));break;case"annotations.create":h(this,E,(e=>_(this,M,V).call(this,e))),t.addEventListener(e,p(this,E));break;case"annotations.delete":h(this,k,(e=>_(this,R,H).call(this,e))),t.addEventListener(e,p(this,k));break;case"annotations.didSave":h(this,z,(()=>_(this,F,$).call(this))),t.addEventListener(e,p(this,z));break;case"annotations.load":h(this,P,(e=>_(this,N,U).call(this,e))),t.addEventListener(e,p(this,P));break;case"annotations.update":h(this,T,(e=>_(this,O,Z).call(this,e))),t.addEventListener(e,p(this,T));break;case"annotations.willChange":h(this,D,(e=>_(this,j,q).call(this,e))),t.addEventListener(e,p(this,D));break;case"annotations.willSave":h(this,A,(()=>_(this,L,G).call(this))),t.addEventListener(e,p(this,A))}}unsubscribeFromEvent(e,t){switch(e){case"annotations.change":t.removeEventListener(e,p(this,C));break;case"annotations.create":t.removeEventListener(e,p(this,E));break;case"annotations.delete":t.removeEventListener(e,p(this,k));break;case"annotations.didSave":t.removeEventListener(e,p(this,z));break;case"annotations.load":t.removeEventListener(e,p(this,P));break;case"annotations.update":t.removeEventListener(e,p(this,T));break;case"annotations.willChange":t.removeEventListener(e,p(this,D));break;case"annotations.willSave":t.removeEventListener(e,p(this,A))}}viewStateUpdated(e,t){const{interactionMode:n,sidebarMode:r}=e;n==t.interactionMode&&r==t.sidebarMode||p(this,S).invokeMethodAsync(this.viewStateUpdated.name,JSON.stringify({interactionMode:n,sidebarMode:r}))}}function K(){p(this,S).invokeMethodAsync("annotationsChanged")}function V(e){p(this,S).invokeMethodAsync("annotationsCreated",JSON.stringify(e))}function H(e){p(this,S).invokeMethodAsync("annotationsDeleted",JSON.stringify(e))}function $(){p(this,S).invokeMethodAsync("annotationsDidSave")}function U(e){p(this,S).invokeMethodAsync("annotationsLoaded",JSON.stringify(e))}function Z(e){p(this,S).invokeMethodAsync("annotationsUpdated",JSON.stringify(e))}function q(e){p(this,S).invokeMethodAsync("annotationsWillChange",JSON.stringify(e.annotations),e.reason)}function G(){p(this,S).invokeMethodAsync("annotationsWillSave")}var W=n(90093),Y=n(11765);function X(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Q=new WeakMap;class J{constructor(e){X(this,Q,{writable:!0,value:void 0}),h(this,Q,e)}async applyRedactions(){await p(this,Q).applyRedactions()}async createAnnotation(e){const[t]=await p(this,Q).create((0,Y.vH)(null,JSON.parse(e)));return t.id}deleteAnnotations(e){p(this,Q).delete(JSON.parse(e))}async exportInstantJSON(){return await p(this,Q).exportInstantJSON()}async flattenAnnotations(e){p(this,Q).applyOperations([{type:"flattenAnnotations",pageIndexes:e}])}async getAnnotations(e){const t=await p(this,Q).getAnnotations(e),n=[];return t.forEach((e=>{try{const t=(0,Y.Hs)(e);n.push(t)}catch(e){if("Unsupported annotation type"!==e.message)throw e}})),JSON.stringify(n)}importInstantJSON(e){p(this,Q).applyOperations([{type:"applyInstantJson",instantJson:e}])}setSelectedAnnotations(e){p(this,Q).setSelectedAnnotations(null==e?null:(0,r.aV)(JSON.parse(e)))}updateAnnotation(e){const t=JSON.parse(e),n=(0,Y.vH)(t.id,t);p(this,Q).update(n)}}function ee(e,t){ne(e,t),t.add(e)}function te(e,t,n){ne(e,t),t.set(e,n)}function ne(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function re(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var oe=new WeakMap,ie=new WeakMap,ae=new WeakMap,se=new WeakMap,le=new WeakMap,ce=new WeakMap,ue=new WeakMap,de=new WeakMap,pe=new WeakSet,he=new WeakSet,fe=new WeakSet,me=new WeakSet,ge=new WeakSet,ve=new WeakSet;async function ye(e,t){const{CustomStylesheetPath:n,License:r,PackageName:o,ProductId:i,instantJson:a,IsDarkTheme:s,UseInBuiltFilePicker:l,toolbarItems:c,toolbarPlacement:u}=JSON.parse(t),d={licenseKey:r,container:p(this,oe),document:e,theme:s?y.Q.DARK:y.Q.LIGHT,appName:o,productId:re(this,fe,we).call(this,i),toolbarItems:c,toolbarPlacement:u,initialViewState:re(this,ge,_e).call(this,t),instantJSON:a};n&&(d.styleSheets=[n]);const m="undefined"!=typeof advanceConfiguration?{...advanceConfiguration,...d}:d;if(this.currentDocument=await(0,f.zD)(m),h(this,ae,new J(this.currentDocument)),this.currentDocument.setToolbarItems((e=>p(this,le)?p(this,le):e)),this.currentDocument.setAnnotationToolbarItems(((e,t)=>{let{defaultAnnotationToolbarItems:n}=t;const r=re(this,he,be).call(this,e),o=p(this,se).get(r);return o||n})),re(this,ve,Se).call(this),l){const e={type:"custom",id:"file-picker",title:"Pick document",onPress:()=>{re(this,me,xe).call(this),p(this,de)||(h(this,de,document.getElementById("filePicker")),p(this,de)?.addEventListener("change",(e=>{const n=e?.target?.files[0];if(n){const e=new FileReader;e.onload=async e=>{const n=new Uint8Array(e.target.result);this.unload(),await re(this,pe,ye).call(this,n.buffer,t)},e.readAsArrayBuffer(n)}}))),p(this,de)?.click()},icon:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 20.5H7C6.60218 20.5 6.22064 20.342 5.93934 20.0607C5.65804 19.7794 5.5 19.3978 5.5 19V5C5.5 4.60218 5.65804 4.22064 5.93934 3.93934C6.22064 3.65804 6.60218 3.5 7 3.5H14L18.5 8V14" stroke="#3D424E" stroke-miterlimit="10" stroke-linecap="round"/><path opacity="0.66" d="M14.4963 8.21565H18.01L13.7936 3.99927V7.51292C13.796 7.69854 13.8708 7.87587 14.0021 8.00714C14.1334 8.1384 14.3107 8.21322 14.4963 8.21565Z" fill="#3D424E"/><path d="M18.5 18V23" stroke="#3D424E" stroke-miterlimit="10" stroke-linecap="round"/><path d="M21 20.5H16" stroke="#3D424E" stroke-miterlimit="10" stroke-linecap="round"/></svg>'};this.currentDocument.setToolbarItems((t=>[e,...t]))}}function be(e){if(e instanceof u.Zc)return u.Zc.readableName;if(e instanceof u.b3)return u.b3.readableName;if(e instanceof u.Xs)return u.Xs.readableName;if(e instanceof u.o9)return u.o9.readableName;if(e instanceof u.om)return u.om.readableName;if(e instanceof u.Hi)return u.Hi.readableName;if(e instanceof u.Wk)return u.Wk.readableName;if(e instanceof u.On)return u.On.readableName;if(e instanceof u.sK)return u.sK.readableName;if(e instanceof u.GI)return u.GI.readableName;if(e instanceof u.x_)return u.x_.readableName;if(e instanceof u.gd)return u.gd.readableName;if(e instanceof u.Qi)return u.Qi.readableName;if(e instanceof u.R1)return u.R1.readableName;throw"Unknown annotation type"}function we(e){return`Maui_${e}`}function xe(){if(!p(this,ce)){const e=document.getElementById("documentLoadingIndicator");if(!e)return;h(this,ce,e)}p(this,ce).style.visibility="collapse"}function _e(e){const{interactionMode:t,sidebarMode:n,showToolbar:r}=JSON.parse(e);return new W.Z({interactionMode:t,showToolbar:r,sidebarMode:n})}function Se(){this.currentDocument.addEventListener("viewState.change",((e,t)=>{p(this,ie).viewStateUpdated(e,t)})),this.currentDocument.addEventListener("annotations.focus",(e=>{p(this,ie).annotationFocused(e.annotation.id)})),this.currentDocument.addEventListener("annotations.blur",(e=>{p(this,ie).annotationUnfocused(e.annotation.id)})),this.currentDocument.addEventListener("annotationSelection.change",(e=>{e&&p(this,ie).annotationSelected(e.id)})),this.currentDocument.addEventListener("annotations.press",(e=>{p(this,ie).annotationPressed(e)}))}new class{constructor(){ee(this,ve),ee(this,ge),ee(this,me),ee(this,fe),ee(this,he),ee(this,pe),te(this,oe,{writable:!0,value:"#pspdfkit"}),te(this,ie,{writable:!0,value:void 0}),te(this,ae,{writable:!0,value:void 0}),te(this,se,{writable:!0,value:new Map}),te(this,le,{writable:!0,value:void 0}),te(this,ce,{writable:!0,value:void 0}),te(this,ue,{writable:!0,value:void 0}),te(this,de,{writable:!0,value:void 0})}initialize(e){h(this,ie,new B(e))}async addAdvanceAccessScript(e){const t=document.getElementById("advanceAccess");t.src=e;const n=new Promise(((e,n)=>{t.onload=e,t.onerror=n}));await n}async loadDocumentFromPath(e,t){re(this,me,xe).call(this),await re(this,pe,ye).call(this,e,t)}async loadDocumentFromBase64String(e,t){re(this,me,xe).call(this),await re(this,pe,ye).call(this,`data:application/pdf;base64,${e}`,t)}async loadDocumentFromBuffer(e,t){re(this,me,xe).call(this),await re(this,pe,ye).call(this,e.buffer,t)}async exportDocument(e){const t=JSON.parse(e),n=await this.currentDocument.exportPDF(t);return new Uint8Array(n)}setMainToolbarItems(e){const t=JSON.parse(e);h(this,le,t),p(this,le).forEach((e=>{"custom"===e.type&&(e.onPress=(e,t)=>{p(this,ie).mainToolbarButtonClicked(t)})})),this.currentDocument?.setToolbarItems((e=>p(this,le)?p(this,le):e))}setAnnotationToolbarItems(e,t){const n=JSON.parse(t);p(this,se).set(e,n),p(this,se).get(e).forEach((t=>{"custom"===t.type&&(t.onPress=(t,n)=>{p(this,ie).annotationToolbarButtonClicked(e,n)})})),this.currentDocument?.setAnnotationToolbarItems(((e,t)=>{let{defaultAnnotationToolbarItems:n}=t;const r=re(this,he,be).call(this,e),o=p(this,se).get(r);return o||n}))}unload(){v("#pspdfkit")}setViewState(e,t){const n=this.currentDocument.viewState.set(e,t);this.currentDocument.setViewState(n)}async applyRedactions(){await p(this,ae).applyRedactions()}async createAnnotation(e){return await p(this,ae).createAnnotation(e)}async exportInstantJSON(){return JSON.stringify(await p(this,ae).exportInstantJSON())}async getAnnotations(e){return p(this,ae).getAnnotations(e)}importInstantJSON(e){p(this,ae).importInstantJSON(JSON.parse(e))}setSelectedAnnotations(e){p(this,ae).setSelectedAnnotations(e)}deleteAnnotations(e){p(this,ae).deleteAnnotations(e)}async flattenAnnotations(e){return await p(this,ae).flattenAnnotations(e)}updateAnnotation(e){p(this,ae).updateAnnotation(e)}subscribeToEvent(e){p(this,ie).subscribeToEvent(e,this.currentDocument)}unsubscribeFromEvent(e){p(this,ie).unsubscribeFromEvent(e,this.currentDocument)}showDocumentLoadingIndicator(){if(!p(this,ce)){const e=document.getElementById("documentLoadingIndicator");if(!e)return;h(this,ce,e)}p(this,ce).style.visibility="visible"}showGenericProcessingIndicator(){if(!p(this,ue)){const e=document.getElementById("genericProcessingIndicator");if(!e)return;h(this,ue,e)}p(this,ue).style.visibility="visible"}hideGenericProcessingIndicator(){if(!p(this,ue)){const e=document.getElementById("genericProcessingIndicator");if(!e)return;h(this,ue,e)}p(this,ue).style.visibility="collapse"}};var Ce=n(1858),Ee=n(690),ke=n(96706),ze=n(2841),Pe=n(99745),De=n(60379),Ae=n(56874),Te=n(10734),Ie=n(29435),Me=n(33622),Re=n(36828),Fe=n(34390),Ne=n(56207),Oe=n(2282),je=n(47120),Le=n(74110),Be=n(69842),Ke=n(68944),Ve=n(48625),He=n(25673),$e=n(14286),Ue=n(59062),Ze=n(87996),qe=n(44077),Ge=n(70025),We=n(26637),Ye=n(1990),Xe=n(2464),Qe=n(13264),Je=n(91105),et=n(27122);var tt=n(7202),nt=n(65369),rt=n(39684),ot=n(97586),it=n(38478),at=n(81777),st=n(13349),lt=n(31442),ct=n(38246),ut=n(57712),dt=n(41390),pt=n(73417),ht=n(66013),ft=n(58342),mt=n(21753),gt=n(68804),vt=n(13422),yt=n(5709),bt=n(96650),wt=n(34923),xt=n(2549),_t=n(62083),St=n(24126),Ct=n(18009),Et=n(74750),kt=n(93767),zt=n(3792),Pt=n(3888),Dt=n(42370),At=n(35062),Tt=n(94327),It=n(1385),Mt=n(97281),Rt=n(15650),Ft=n(33383),Nt=n(58163),Ot=n(5705),jt=n(74311),Lt=n(45249),Bt=n(33241);let Kt;try{Kt=(0,Ke.SV)(document)}catch(e){}const Vt=f.n_;const Ht={UI:{Core:a,createBlock:i.j,Recipes:Bt.lx,Decorators:Bt.tP,Interfaces:Bt.xr,App:s},Immutable:{List:r.aV},version:"2024.5.1",Geometry:{Point:qe.E9,DrawingPoint:qe.Wm,Rect:qe.UL,Size:qe.$u,Inset:qe.eB},Actions:{Action:Ee.aU,GoToAction:ke.Di,GoToEmbeddedAction:ke.Qr,GoToRemoteAction:ke._6,HideAction:ke.ZD,JavaScriptAction:ke.bp,LaunchAction:ke.b,NamedAction:ke.oH,ResetFormAction:ke.BO,SubmitFormAction:ke.pl,URIAction:ke.lm},Annotations:{Annotation:u.q6,CommentMarkerAnnotation:u.Jn,HighlightAnnotation:u.FV,InkAnnotation:u.Zc,ShapeAnnotation:u.UX,LineAnnotation:u.o9,RectangleAnnotation:u.b3,EllipseAnnotation:u.Xs,PolygonAnnotation:u.Hi,PolylineAnnotation:u.om,LinkAnnotation:u.R1,NoteAnnotation:u.Qi,MarkupAnnotation:u.On,RedactionAnnotation:u.Wk,SquiggleAnnotation:u.hL,StampAnnotation:u.GI,StrikeOutAnnotation:u.R9,TextAnnotation:u.gd,UnderlineAnnotation:u.xu,ImageAnnotation:u.sK,UnknownAnnotation:u.Ih,WidgetAnnotation:u.x_,MediaAnnotation:u.Hu,toSerializableObject:Y.Hs,fromSerializableObject:e=>(0,Y.vH)(null,e),rotate:(e,t,n)=>{const r=(0,Ot.h4)(e,n);return(0,Ot.az)(r.set("rotation",t))}},AnnotationPresets:{toSerializableObject:Y.xT,fromSerializableObject:Y.MR},Comment:Ne.ZP,Bookmark:Pe.Z,CustomOverlayItem:Ae.Z,OutlineElement:Te.Z,FormFields:{FormField:Ce.Wi,ButtonFormField:Ce.R0,CheckBoxFormField:Ce.rF,ChoiceFormField:Ce.Dz,ComboBoxFormField:Ce.fB,ListBoxFormField:Ce.Vi,RadioButtonFormField:Ce.XQ,TextFormField:Ce.$o,SignatureFormField:Ce.Yo,toSerializableObject:Y.vD,fromSerializableObject:e=>(0,Y.IN)(String(e.pdfObjectId),e)},FormFieldValue:Ce.KD,FormOption:Ie.Z,Callout:Lt.UW,Color:De.Z,Instance:m.Z,preloadWorker:Vt,load:f.zD,unload:v,convertToOffice:f.py,convertToPDF:f.eQ,populateDocumentTemplate:f.XV,Error:o.p2,SaveError:xt.V,ViewState:W.Z,PageInfo:Re.Z,TextLine:Fe.Z,InstantClient:Me.Z,TextSelection:Ye.H,SearchResult:gt.Z,SearchState:vt.Z,AutoSaveMode:je.u,SignatureSaveMode:ot.f,LayoutMode:$e.X,PrintMode:Ge.X,PrintQuality:We.g,ScrollMode:Xe.G,ZoomMode:at.c,InteractionMode:Ve.A,unstable_InkEraserMode:He.b,SidebarMode:et.f,UIElement:{Sidebar:"Sidebar"},Alignment:kt.v,BlendMode:zt.b,BorderStyle:Pt.N,LineCap:Dt.u,SidebarPlacement:nt.d,SignatureAppearanceMode:rt.H,ShowSignatureValidationStatusMode:st.W,NoteIcon:Ue.Zi,Theme:y.Q,ToolbarPlacement:Qe.p,ElectronicSignatureCreationMode:Je.M,I18n:mt.ZP,baseUrl:Kt,DocumentIntegrityStatus:Le.QA,SignatureValidationStatus:Le.qA,SignatureType:Le.BG,SignatureContainerType:Le.FR,PAdESLevel:Le.hz,CertificateChainValidationStatus:Le.wk,DocumentValidationStatus:Be._,AnnotationsWillChangeReason:ze.f,DocumentComparisonSourceType:tt.b,MeasurementScaleUnitFrom:Tt.s,MeasurementScaleUnitTo:It.K,MeasurementPrecision:Mt.L,MeasurementScale:Nt.Z,ProductId:Ft.x,ProcessorEngine:Rt.l,Conformance:jt.w,DocumentPermissions:_t.X,ComparisonOperation:Lt.Bd,DocumentDescriptor:Lt.ZS,ComparisonOperationType:l.b,OfficeDocumentFormat:c._,viewStateFromOpenParameters:it.s,get defaultElectronicSignatureColorPresets(){return(0,r.d0)(ht.Z).toJS().map((e=>{let{color:t,...n}=e;return{...n,color:new De.Z(t)}}))},get defaultToolbarItems(){return pt.ZP.toJS()},get defaultDocumentEditorFooterItems(){return St.Z.toJS()},get defaultDocumentEditorToolbarItems(){return Ct.Z.toJS()},get defaultAnnotationPresets(){return lt.ZP.toObject()},get defaultStampAnnotationTemplates(){return[...dt.ZP]},get defaultAnnotationsSidebarContent(){return Et.Z.toJS()},defaultEditableAnnotationTypes:ct.Z,defaultElectronicSignatureCreationModes:ut.Z,defaultSigningFonts:ft.Z,Options:Ze.Options,SearchPattern:yt.n,SearchType:bt.S,UIDateTimeElement:At.Y,generateInstantId:wt.C,Font:Oe.Z}},6502:(e,t,n)=>{"use strict";n.d(t,{TU:()=>m,aG:()=>h,gH:()=>g,oo:()=>f});var r=n(15359),o=n(67366),i=n(35369),a=n(77897),s=n(40084),l=n(96706),c=n(97395),u=n(87996),d=n(4087),p=n(66701);const h=e=>(t,n)=>{!function e(u){try{if(u instanceof l.lm){(0,r.kG)("string"==typeof u.uri,"URIAction requires `uri`");const e=n();(!e.onOpenURI||e.onOpenURI(u.uri,!0))&&(0,c.Z)(u.uri)}else if(u instanceof l.Di)(0,r.kG)("number"==typeof u.pageIndex,"GoToAction requires `pageIndex`"),t((0,s.YA)(u.pageIndex));else if(u instanceof l.BO)(0,r.kG)("boolean"==typeof u.includeExclude,"ResetFormAction requires `includeExclude`"),t((0,a.yM)(u.fields,u.includeExclude));else if(u instanceof l.pl)(0,r.kG)("string"==typeof u.uri,"ResetFormAction requires `uri`"),(0,r.kG)("boolean"==typeof u.includeExclude,"ResetFormAction requires `includeExclude`"),t((0,a.V6)(u));else{if(!(u instanceof l.ZD))throw new r.p2(`Annotation action not handled: ${u.constructor.name}`);{(0,r.kG)(i.aV.isList(u.annotationReferences),"HideAction must have `annotationReferences`");const{annotations:e,formFields:a}=n(),s=u.annotationReferences.map((e=>"fieldName"in e&&a.get(e.fieldName))),l=u.annotationReferences.map((t=>"pdfObjectId"in t&&"number"==typeof t.pdfObjectId?e.find((e=>e.pdfObjectId===t.pdfObjectId)):null));(0,o.dC)((()=>{l.forEach((e=>{e&&t((0,d.FG)(e.set("hidden",u.hide)))})),s.forEach((n=>{n&&n.annotationIds.forEach((n=>{const r=e.get(n);r&&t((0,d.FG)(r.set("hidden",u.hide)))}))}))}))}}}catch(e){(0,r.ZK)(e.message)}u.subActions&&u.subActions.forEach((t=>{e(t)}))}(e)},f=e=>{const{action:t}=e;return t instanceof l.bp?g(t.script,"onPointerDown",e instanceof p.Z?e.formFieldName:null):h(t)},m=(e,t)=>{const{additionalActions:n,formFieldName:r}=e;return n?.[t]instanceof l.bp?g(n[t].script,t,e instanceof p.Z?r:null):h(n?.[t])};function g(e,t,n){return async(o,i)=>{const{backend:s}=i();if((0,r.kG)(s),"STANDALONE"!==s.type||!u.Options.PDF_JAVASCRIPT)return;(0,r.kG)("string"==typeof e,"JavaScriptAction requires `script`");const l=await s.evalScript(e,t,n);o((0,a.bt)({changes:l}))}}},4087:(e,t,n)=>{"use strict";n.d(t,{$d:()=>T,$e:()=>P,Ds:()=>N,FG:()=>Z,GI:()=>ne,GT:()=>Q,GZ:()=>W,Iv:()=>z,N1:()=>se,QA:()=>O,RK:()=>ee,VX:()=>K,WL:()=>A,XG:()=>J,ZE:()=>B,Zr:()=>M,aF:()=>R,d8:()=>Y,dt:()=>oe,fx:()=>X,gX:()=>F,hQ:()=>G,hX:()=>E,hj:()=>k,i0:()=>te,ip:()=>D,lA:()=>I,mw:()=>ie,pZ:()=>j,sF:()=>L,ug:()=>re,uk:()=>$,vc:()=>C,vy:()=>ae});var r=n(35369),o=n(67366),i=n(15359),a=n(45249),s=n(2841),l=n(44077),c=n(89637),u=n(17078),d=n(66327),p=n(40084),h=n(77897),f=n(35464),m=n(33427),g=n(5619),v=n(20388),y=n(97238),b=n(56573),w=n(35727),x=n(55012),_=n(10983),S=n(31442);const C=(e,t)=>n=>{n((0,c.Ab)()),n({type:x.ILc,annotation:e,pageIndex:t})},E=(e,t)=>n=>{n((0,c.Ab)()),n({type:x.HS7,annotation:e,pageIndex:t})},k=(e,t)=>n=>{n((0,c.Ab)()),n({type:x.jzI,annotation:e,pageIndex:t})},z=async e=>{const{hash:t,dimensions:n}=await(0,b.uq)(e);return{hash:t,dimensions:n,attachment:new a.Pg({data:e})}},P=e=>async(t,n)=>{const{dimensions:i,hash:a,attachment:l}=await z(e),d=(0,m.om)(n(),i,a,e.type,e.name),h={annotations:(0,r.aV)([d]),reason:s.f.SELECT_END},{eventEmitter:f,annotationManager:g}=n();(0,o.dC)((()=>{f?.emit("annotations.willChange",h),t((0,u.O)({hash:a,attachment:l})),t(I((0,r.aV)([d]))),g?.createObject(d,{attachments:(0,r.D5)([[a,l]])}),g?.autoSave(),t((0,c.Df)((0,r.l4)([d.id]),null)),t((0,p.kN)(d.pageIndex,d.boundingBox))}))},D=e=>(t,n)=>{let i;const{imageAttachmentId:u,contentType:d,fileName:h,description:f}=e,g=u&&n().attachments.get(u);if(e instanceof a.GI)t(N("stamp")),i=(0,m.hG)(n(),new l.$u({width:e.boundingBox.width,height:e.boundingBox.height}),e);else{if(!(e instanceof a.sK))return;if(!u)return;t(N("image")),i=(0,m.om)(n(),new l.$u({width:e.boundingBox.width,height:e.boundingBox.height}),u,d||"",h),f&&(i=i.set("description",f))}const v={annotations:(0,r.aV)([i]),reason:s.f.SELECT_END},{eventEmitter:y,annotationManager:b}=n();(0,o.dC)((()=>{y?.emit("annotations.willChange",v),t(I((0,r.aV)([i]))),b?.createObject(i,{attachments:u&&g?(0,r.D5)([[u,g]]):(0,r.D5)()}),b?.autoSave(),t((0,c.Df)((0,r.l4)([i.id]),null)),t((0,p.kN)(i.pageIndex,i.boundingBox))}))},A=e=>(t,n)=>{const{annotationManager:o,backend:a,attachments:s}=n();(0,i.kG)(a),"STANDALONE"===a.type?t(I((0,r.aV)(e.map((e=>e.set("pdfObjectId",null).delete("APStreamCache")))))):t(I((0,r.aV)(e))),o?.createObjects(e,e.map((e=>({attachments:(0,m.Dc)(s,e)}))))},T=e=>(t,n)=>{const a=n();(0,i.kG)(a.backend);const{annotationManager:s,backend:l,attachments:c}=a;(0,o.dC)((()=>{t(I("STANDALONE"===l?.type?(0,r.aV)([e.set("pdfObjectId",null).delete("APStreamCache")]):(0,r.aV)([e]))),s?.createObject(e,{attachments:(0,m.Dc)(c,e)})}))},I=e=>({type:x.M85,annotations:e}),M=e=>({type:x.R8P,annotations:e}),R=e=>({type:x.gF5,ids:e}),F=e=>(t,n)=>{const r=n(),o=r.currentItemPreset;if(!o)return;const i=r.annotationPresets.get(o);if(!i)return;let a=!1;r.eventEmitter.emit("annotationPresets.update",{preventDefault:()=>a=!0,currentPreset:o,currentPresetProperties:i,newPresetProperties:e}),a||t({type:x.oE1,attributes:e})},N=e=>({type:x.oWy,currentItemPreset:e}),O=e=>({type:x.UiQ,annotationPresets:e}),j=(e,t)=>({type:x.R1i,annotationID:e,annotationPresetID:t}),L=e=>({type:x.x0v,annotationID:e}),B=e=>({type:x.JwD,annotationID:e}),K=(e,t)=>(n,r)=>{n(N(t)),(0,y.PK)(r(),e).forEach((e=>{n(T(e)),!S.AQ[t]&&n(j(e.id,t))}))},V=(e,t)=>{const{annotationManager:n,attachments:r}=e();n.updateObject(t,(0,m.Dc)(r,t))},H={},$=e=>(t,n)=>{const{annotations:o,invalidAPStreams:a,backend:s}=n();if(!o.has(e.id))return void(0,i.ZK)("An annotation that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this annotation was skipped.");(0,m.tl)({annotations:o,backend:s},(0,r.aV)([e]));let l=e.set("updatedAt",new Date);t(M((0,r.aV)([l]))),l=(0,m.tM)(n(),a,l),H[l.id]||(H[l.id]=(0,g.Z)(V,_.sP)),H[l.id](n,l)};function U(e,t,n){const{annotations:r,invalidAPStreams:o,backend:s,annotationManager:l,attachments:c}=t;(0,m.tl)({annotations:r,backend:s},n);const u=n.map((e=>r.has(e.id)?(e instanceof a.UX&&e.isMeasurement()&&(e=e.set("note",e.getMeasurementDetails().label)),"STANDALONE"===s?.type?e.delete("APStreamCache").set("updatedAt",new Date):e.set("updatedAt",new Date)):((0,i.ZK)("An annotation that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this annotation was skipped."),!1))).filter(Boolean);e(M(u)),u.forEach((e=>{const n=(0,m.tM)(t,o,e);null!==e.pageIndex&&l?.updateObject(n,{attachments:(0,m.Dc)(c,n)})}))}const Z=e=>(t,n)=>{const i=n();(0,o.dC)((()=>{U(t,i,(0,r.aV)([e]))}))};function q(e,t,n){const{commentThreads:s,comments:l,annotationManager:c,formFieldValueManager:u}=t;n.forEach((t=>{const n=s.get(t.id);if(n&&1===n.size){const t=l.get(n.first());t&&(0,w.kT)(t)&&((0,i.kG)(t.id),e((0,f.Vn)((0,r.l4)([t.id]))))}})),n.forEach((t=>{(t instanceof a.Jn||t instanceof a.FV||t.isCommentThreadRoot)&&e((0,f.Wn)(t))}));let d=(0,r.aV)();(0,o.dC)((()=>{e(R(n.map((e=>e.id)).toSet())),d=n.map((e=>(0,m.dk)(t,e))),d.forEach((e=>{c?.deleteObject(e)}))})),d.forEach((n=>{if(n instanceof a.x_){const o=n.formFieldName?t.formFields.get(n.formFieldName):null;if(o)if(1!==o.annotationIds.size||o.annotationIds.first()!==n.id&&o.annotationIds.first()!==String(n.pdfObjectId)){if(o.annotationIds.includes(n.id)||o.annotationIds.includes(String(n.pdfObjectId))){const t=o.annotationIds.findIndex((e=>e===n.id||e===String(n.pdfObjectId)));let i=o.set("annotationIds",o.annotationIds.filter((e=>e!==n.id&&e!==String(n.pdfObjectId))));i.options&&(i=i.set("options",o.options.filter(((e,n)=>n!==t)))),e((0,h.vK)(i)),i.options.some((e=>e.value===i.value))||e((0,h.xW)((0,r.aV)([new a.KD({name:i.name,value:null})])))}}else e((0,h.Wh)(o)),t.backend?.isUsingInstantProvider()||u?.deleteObject(new a.KD({name:o.name,value:o.value}))}H[n.id]&&delete H[n.id]}))}const G=e=>(t,n)=>{q(t,n(),(0,r.aV)([e]))},W=(e,t)=>(n,r)=>{const i=r(),{annotations:a}=i,s=t.map((e=>a.get(e))).filter(Boolean);(0,o.dC)((()=>{e.size>0&&U(n,i,e),s.size>0&&q(n,i,s)}))};function Y(e){return(t,n)=>{if(e&&!e.isEmpty()){const t=n(),o=e.map((e=>t.annotations.get(e))).filter(Boolean),i={annotations:(0,r.aV)(o),reason:s.f.DELETE_START};t.eventEmitter.emit("annotations.willChange",i)}t({type:x.sCM,annotationsIDs:e})}}const X=e=>({type:x.qRJ,stampAnnotationTemplates:e}),Q=e=>({type:x.RPc,lineWidth:e});function J(){return(e,t)=>{const n=t();let r=new a.Qi((0,m.lx)(n));const o=n.pages.get(n.viewportState.currentPageIndex);(0,i.kG)(o);const s=a.UL.getCenteredRect(new l.$u({width:_.SP,height:_.SP}),o.pageSize);r=r.set("pageIndex",n.viewportState.currentPageIndex).set("boundingBox",s),e((0,d.i9)(null,r)),e(Z(r))}}function ee(){return(e,t)=>{const n=t();let r=new a.gd((0,m.lx)(n));const o=n.pages.get(n.viewportState.currentPageIndex);(0,i.kG)(o);const{pagesRotation:s,currentPageIndex:l}=n.viewportState,c=o.pageSize.scale(.5),u=(0,v.gB)(new a.E9({x:c.width,y:c.height}),s);r=r.set("pageIndex",l).set("boundingBox",u).set("rotation",s),e((0,d.DU)(null,r)),e(Z(r))}}const te=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:x.WaW,value:e}},ne=e=>({type:x.ieh,ids:e}),re=e=>({type:x.kVz,ids:e}),oe=e=>({type:x.hw0,callback:e}),ie=(e,t)=>({type:x.Dqw,variant:e,annotationObjectIds:t}),ae=e=>({type:x.uOP,annotationId:e}),se=(e,t)=>({type:x.SHi,pageIndex:e,tabOrder:t})},35464:(e,t,n)=>{"use strict";n.d(t,{$z:()=>A,BY:()=>C,Dm:()=>_,GH:()=>T,Jr:()=>E,Rf:()=>I,UM:()=>z,V4:()=>k,Vn:()=>x,Wn:()=>P,aZ:()=>b,cQ:()=>v,fg:()=>m,gk:()=>w,mh:()=>g,v7:()=>y});var r=n(35369),o=n(55012),i=n(10983),a=n(45249),s=n(4087),l=n(89637),c=n(66327),u=n(97238),d=n(35727),p=n(33427),h=n(82716),f=n(89004);const m=e=>t=>{t({type:o.ckI,comments:e}),t(A())},g=e=>t=>{t({type:o.hxO,rootId:e}),t(A())};function v(){return(e,t)=>{const n=(0,u.PK)(t(),a.FV,!0);if(n.size){e((0,l.fz)()),e((0,s.lA)(n));const o=t().annotations.get(n.first().id);(0,h.k)(o),e((0,l.Df)((0,r.l4)([o.id]),null)),e(g(o.id))}}}const y=e=>({type:o.YHT,users:e}),b=e=>({type:o.ZLr,maxSuggestions:e}),w=e=>t=>{t((e=>({type:o.FdD,comments:e}))(e)),t(A())},x=e=>t=>{t({type:o.kg,ids:e}),t(A())};function _(){return(e,t)=>{const n=t(),o=[],i=[];n.selectedAnnotationIds.forEach((e=>{const t=n.commentThreads.get(e);if(!t)return;let r=t.size;t.forEach((e=>{const t=n.comments.get(e);!t||null!=t.pageIndex||null!=t.text?.value&&""!==(0,f.KY)(t.text.value)||(o.push(e),r--)})),0===r&&i.push(e)})),o.length>0&&e(x((0,r.l4)(o))),i.length>0&&e((0,s.aF)((0,r.l4)(i)))}}function S(e,t){let{oldComment:n,comment:o,action:i}=t;const{comments:a,eventEmitter:s}=e;if("DELETE"===i)(0,h.k)(n),s.emit("comments.mention",{comment:n,modifications:n.getMentionedUserIds().map((e=>({userId:e,action:"REMOVED"}))).toList()});else if("CREATE"===i)(0,h.k)(o),s.emit("comments.mention",{comment:o,modifications:o.getMentionedUserIds().map((e=>({userId:e,action:"ADDED"}))).toList()});else{(0,h.k)(o);const e=n||o.id&&a.get(o.id),t=o.getMentionedUserIds();let i=(0,r.aV)();(0,h.k)(e);const l=e.getMentionedUserIds(),c=l.subtract(t);c.size>0&&(i=i.push(...c.map((e=>({userId:e,action:"REMOVED"}))).toList()));const u=t.subtract(l);u.size>0&&(i=i.push(...u.map((e=>({userId:e,action:"ADDED"}))).toList())),s.emit("comments.mention",{comment:o,modifications:i})}}const C=(e,t)=>(n,o)=>{const i=o();(0,h.k)(e.rootId);const a=i.annotations.get(e.rootId);(0,h.k)(a);const l=new Date,c=e.set("updatedAt",l).set("pageIndex",a.pageIndex);S(i,{comment:c,oldComment:t,action:"UPDATE"}),n(w((0,r.aV)([c])));const u=i.commentThreads.get(e.rootId);if((0,h.k)(null!=u),1===u.size&&(0,d.kT)(e)){let e=a.set("isCommentThreadRoot",!0);const t=i.comments.get(u.first());e=e.set("isAnonymous",Boolean(t?.isAnonymous)),n((0,s.Zr)((0,r.aV)([e]))),i.annotationManager?.createObject(e),i.annotationManager?.autoSave()}(0,h.k)(null!=i.commentManager);const p=o(),f=p.comments.toList().filter((e=>!(0,d.kT)(e)));i.commentManager.createObject(c,{comments:f,annotations:p.annotations}),i.commentManager.autoSave()},E=e=>(t,n)=>{const o=new Date,i=e.set("createdAt",o).set("updatedAt",o);t(m((0,r.aV)([i]))),S(n(),{comment:i,action:"CREATE"});const{commentManager:a,annotations:s}=n();(0,h.k)(null!=a);const l=n().comments.toList().filter((e=>!(0,d.kT)(e)));a.createObject(i,{comments:l,annotations:s})},k=e=>(t,n)=>{const o=e.set("updatedAt",new Date);t(w((0,r.aV)([o]))),S(n(),{comment:o,oldComment:e,action:"UPDATE"});const{annotations:i,commentManager:a}=n();(0,h.k)(null!=a);const s=n().comments.toList().filter((e=>!(0,d.kT)(e)));a.updateObject(o,{comments:s,annotations:i})},z=e=>(t,n)=>{const o=n();if((0,h.k)(e.id),S(o,{oldComment:e,action:"DELETE"}),e.rootId){const r=o.commentThreads.get(e.rootId);if(r&&r.first()===e.id){const i=r.toList().get(1);if(i){const r=o.comments.get(i);r&&D(n,e.rootId,t,r.isAnonymous??!1)}}if(r&&(1===r.size||(0,d._P)(r,o.comments)&&2===r.size)){const n=o.annotations.get(e.rootId);if(n)return void t((0,s.hQ)(n))}}t(x((0,r.l4)([e.id])));const{commentManager:i}=o;(0,h.k)(null!=i);const a=n(),l=a.comments.toList().filter((e=>!(0,d.kT)(e)));i.deleteObject(e,{comments:l,annotations:a.annotations}),i.autoSave()},P=e=>(t,n)=>{const r=n();if((0,h.k)(e),"SERVER"===r.backend?.type)return;const o=r.comments.filter((t=>t.rootId===e.id&&!(0,d.kT)(t))).map((e=>e.id));if(0===o.size)return;t(x(o.toSet())),r.comments.forEach((e=>{S(r,{oldComment:e,action:"DELETE"})}));const{commentManager:i}=r;(0,h.k)(null!=i);const a=n();let s=a.comments.toList().filter((e=>!(0,d.kT)(e)));s.forEach((t=>{t.rootId===e.id&&(i.deleteObject(t,{comments:s,annotations:a.annotations}),s=s.filter((e=>e.id!==t.id)))})),i.autoSave()},D=(e,t,n,o)=>{const i=e(),a=i.annotations.get(t);(0,h.k)(null!=a);const l=a.set("isAnonymous",o);n((0,s.Zr)((0,r.aV)([l]))),i.annotationManager?.updateObject(l),i.annotationManager?.autoSave()};function A(){return{type:o.NB4}}const T=()=>(e,t)=>{const n=t();let o=new a.Jn((0,p.lx)(n));const l=n.pages.get(n.viewportState.currentPageIndex);(0,h.k)(l);const u=a.UL.getCenteredRect(new a.$u({width:i.zk,height:i.zk}),l.pageSize);o=o.set("pageIndex",n.viewportState.currentPageIndex).set("boundingBox",u),e((0,c.k6)(o)),e((0,s.Zr)((0,r.aV)([o]))),e(g(o.id))};function I(e){return{type:o.mfU,onCommentCreationStartCallback:e}}},66327:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>ae,A7:()=>fe,BB:()=>p,BR:()=>x,C4:()=>I,Cc:()=>E,Ce:()=>D,Cn:()=>dt,DU:()=>ee,Di:()=>it,EJ:()=>Oe,EY:()=>ye,FA:()=>xt,Fs:()=>Be,Ft:()=>ft,GL:()=>Pe,Gc:()=>B,Gh:()=>Re,HT:()=>mt,Hf:()=>Ne,I:()=>Tt,IU:()=>se,Ie:()=>Ze,JN:()=>ge,Jn:()=>ne,K_:()=>me,LE:()=>L,LH:()=>Le,Lt:()=>J,M4:()=>V,M5:()=>lt,MV:()=>k,O4:()=>It,Ol:()=>U,Ox:()=>He,P4:()=>b,PR:()=>kt,P_:()=>at,Q8:()=>Ce,QL:()=>H,Ql:()=>le,R:()=>d,R1:()=>Ie,RN:()=>$,Rx:()=>q,SE:()=>ze,Sn:()=>f,T:()=>ke,T1:()=>Pt,TR:()=>y,Tu:()=>Se,UF:()=>Xe,UG:()=>h,UU:()=>re,UZ:()=>St,Ug:()=>S,VU:()=>C,W:()=>yt,Wv:()=>Q,X2:()=>ie,X8:()=>Ge,XX:()=>Qe,Xv:()=>gt,YA:()=>pe,YF:()=>wt,YI:()=>G,YK:()=>qe,ZV:()=>Te,Z_:()=>Mt,Zg:()=>oe,_$:()=>vt,_P:()=>be,_R:()=>_t,_U:()=>he,_b:()=>K,_z:()=>M,aw:()=>v,bv:()=>W,c8:()=>ce,cI:()=>_e,cz:()=>st,d5:()=>m,d9:()=>nt,dp:()=>N,ek:()=>xe,el:()=>je,fq:()=>ot,hS:()=>_,he:()=>Dt,i9:()=>F,iJ:()=>ct,i_:()=>Ue,iu:()=>Y,jJ:()=>zt,jM:()=>tt,jP:()=>T,k4:()=>te,k6:()=>O,lC:()=>g,lL:()=>bt,lV:()=>We,lW:()=>ue,m$:()=>X,m0:()=>Z,m9:()=>At,mu:()=>Ve,oX:()=>we,of:()=>Ct,p2:()=>Et,p9:()=>z,pM:()=>R,qB:()=>pt,rL:()=>ut,rd:()=>Ke,s3:()=>w,sJ:()=>Ye,sY:()=>De,si:()=>et,t:()=>A,t6:()=>rt,tr:()=>j,u0:()=>Ee,vI:()=>$e,vM:()=>Rt,vY:()=>ve,we:()=>Me,xF:()=>Je,xW:()=>ht,yg:()=>P,z5:()=>de,ze:()=>Fe});var r=n(15359),o=n(67366),i=n(33056),a=n(55012),s=n(89637),l=n(27122),c=n(40084),u=n(79112);const d=()=>({type:a.Dj2}),p=()=>({type:a.G5w}),h=e=>({type:a.kt4,enabled:e}),f=()=>({type:a.GW4}),m=e=>({type:a.mqf,preset:e}),g=()=>({type:a.tLW}),v=e=>({type:a.tS$,preset:e}),y=()=>({type:a.g30}),b=e=>({type:a.GXR,preset:e}),w=()=>({type:a.J7J}),x=e=>({type:a.yPS,preset:e}),_=()=>({type:a.m_C}),S=()=>({type:a.JyO}),C=()=>({type:a.NDs}),E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{signatureRect:null,signaturePageIndex:null,formFieldName:null};return{type:a.Vu4,...e}},k=()=>({type:a.S$y}),z=(e,t)=>()=>P(e,t),P=(e,t,n)=>({type:a.JS9,shapeClass:e,shapeInteractionMode:t,preset:n}),D=()=>({type:a.AIf}),A=e=>({type:a.cbv,preset:e}),T=()=>({type:a.TUA}),I=()=>({type:a.Dzg}),M=()=>({type:a.M3C}),R=()=>({type:a.tie}),F=(e,t)=>({type:a.ZDQ,preset:e,annotation:t}),N=()=>({type:a.B1n}),O=e=>({type:a.dEe,annotation:e}),j=()=>({type:a.iMs});function L(e){return{type:a.IFt,formDesignMode:e}}function B(e){return{type:a.Gkm,measurementSnapping:e}}function K(e){return{type:a.G6t,scale:e}}function V(e){return{type:a.fwq,measurementPrecision:e}}function H(e){return{type:a.vkF,configurationCallback:e}}function $(e){return{type:a.SdX,scales:e}}function U(){return{type:a.aYj}}function Z(){return{type:a.hpj}}function q(){return{type:a.QYP}}function G(){return{type:a.zKF}}const W=()=>({type:a.MuN}),Y=()=>({type:a.xk1}),X=()=>({type:a.tYC}),Q=()=>({type:a.NAH}),J=(e,t)=>({type:a.pnu,preset:e,annotation:t,isCallout:!0}),ee=(e,t)=>({type:a.pnu,preset:e,annotation:t}),te=()=>({type:a.KqR}),ne=()=>({type:a.R7l}),re=()=>({type:a.Vpf}),oe=()=>({type:a.eFQ}),ie=()=>({type:a.L8n}),ae=e=>({type:a.VNM,editor:e}),se=e=>({type:a.tPZ,width:e}),le=e=>({type:a.u9b,zoomStep:e}),ce=e=>({type:a.tIQ,disablePointSnapping:e}),ue=e=>({type:a.Ce5,callback:e}),de=e=>({type:a.WtY,transformClientToPage:e});function pe(e){return{type:a.rWQ,layoutMode:e}}function he(e){return{type:a.b0l,scrollMode:e}}function fe(e){return{type:a._TO,showSignatureValidationStatus:e}}function me(e){return{type:a._n_,scrollElement:e}}function ge(e){return{type:a.bxr,spreadSpacing:e}}function ve(e){return{type:a._ko,pageSpacing:e}}function ye(e){return{type:a.FHt,keepFirstSpreadAsSinglePage:e}}function be(e){return{type:a.ht3,viewportPadding:e}}function we(e){return{type:a.NfO,readOnlyEnabled:e}}function xe(){return{type:a.Xlm}}function _e(){return{type:a.cyk}}function Se(){return{type:a.KYU}}function Ce(){return{type:a.Nl1}}function Ee(){return{type:a.L9g}}function ke(){return{type:a.Dl4}}function ze(){return{type:a.GfR}}function Pe(e){return{type:a.iQZ,features:e}}function De(e){return{type:a.JQC,signatureFeatureAvailability:e}}function Ae(e){return t=>{t({type:a.hv0,mode:e}),t((0,s.vR)())}}function Te(e){return{type:a.ZbY,editableAnnotationTypes:e}}function Ie(e){return{type:a.uFU,isEditableAnnotation:e}}function Me(e,t){return{type:a.ArU,editableAnnotationTypes:e,isEditableAnnotation:t}}function Re(e){return{type:a.Q2U,isEditableComment:e}}const Fe=()=>(e,t)=>{e(Ae(l.f.ANNOTATIONS));const n=t();for(let e=0;e<n.totalPages;e++)n.annotationManager?.loadAnnotationsForPageIndex(e)};function Ne(){return Ae(l.f.BOOKMARKS)}const Oe=()=>async(e,t)=>{e(Ae(l.f.DOCUMENT_OUTLINE));const n=t();if(n.documentOutlineState.elements)return;(0,r.kG)(n.backend);const o=await n.backend.getDocumentOutline();e((0,i.o)(o))};function je(){return Ae(l.f.THUMBNAILS)}function Le(){return Ae(l.f.SIGNATURES)}function Be(){return Ae(l.f.LAYERS)}function Ke(){return Ae(l.f.CUSTOM)}function Ve(){return{type:a.hv0,mode:null}}function He(e){return{type:a.eI4,placement:e}}function $e(e){return{type:a.bP3,sidebarOptions:e}}function Ue(e){return{type:a.dVW,locale:e}}function Ze(){return{type:a.RTr}}function qe(e){return{type:a.heZ,group:e}}function Ge(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:a.hlI,annotationCreatorName:e,immutable:t}}const We=()=>({type:a.YIz}),Ye=()=>({type:a.K26}),Xe=e=>({type:a.$VE,interactionMode:e}),Qe=()=>({type:a.yrz});function Je(){return{type:a.Hbz}}function et(){return{type:a.sYK}}const tt=e=>({type:a.fAF,customRenderers:e});function nt(){return{type:a.pNz}}function rt(){return{type:a.bV3}}function ot(){return{type:a.EpY}}function it(){return{type:a.bui}}function at(e){return{type:a.vVk,previewRedactionMode:e}}function st(e){return async(t,n)=>{const{viewportState:i,eventEmitter:a,documentComparisonState:s}=n();if(e){const n={start:{},end:{}};n.start.promise=new Promise(((e,t)=>{n.start.resolve=e,n.start.reject=t})),n.end.promise=new Promise(((e,t)=>{n.end.resolve=e,n.end.reject=t})),(0,o.dC)((()=>{t((0,c.nr)(i.set("documentComparisonMode",{...e,completion:n}))),t(lt({referencePoints:[],autoCompare:e.autoCompare,isResultFetched:!1,currentTab:e.autoCompare?null:u.Q.documentA,documentKey:u.Q.documentA,previousViewportState:{zoomMode:i.zoomMode,zoomLevel:i.zoomLevel,scrollPosition:i.scrollPosition,currentPageIndex:i.currentPageIndex,pageSizes:i.pageSizes}}))})),a.emit("documentComparisonUI.start",e)}else if(i.documentComparisonMode){const{completion:e}=i.documentComparisonMode;try{e.start.resolve(),await e.end.promise,(0,o.dC)((()=>{t((0,c.nr)(i.set("documentComparisonMode",null).merge(s.previousViewportState))),t(lt(null))})),a.emit("documentComparisonUI.end")}catch(e){throw new r.p2(e.message)}}}}function lt(e){return{type:a.KA1,documentComparisonState:e}}function ct(e){return{type:a.D5x,a11yStatusMessage:e}}function ut(){return{type:a.JRS}}function dt(){return{type:a.Gox}}function pt(e){return{type:a.rpU,lastToolbarActionUsedKeyboard:e}}function ht(){return{type:a.MYU}}function ft(){return{type:a.mbD}}function mt(){return{type:a.wog}}function gt(){return{type:a.UL9}}function vt(e){return{type:a.IyB,instance:e}}function yt(e){return{type:a.eJ4,customUIStore:e}}const bt=()=>({type:a.qKG}),wt=e=>({type:a.oZW,multiAnnotationsUsingShortcut:e}),xt=()=>({type:a.odo}),_t=e=>({type:a.FQb,annotationsIds:e}),St=e=>({type:a.bzW,groupId:e}),Ct=(e,t)=>({type:a.b4I,annotationId:e,groupId:t}),Et=e=>({type:a.tzG,customFontsReadableNames:e}),kt=()=>({type:a.Vje}),zt=()=>({type:a.XTO});function Pt(e){return{type:a.ej0,enableAlwaysScrollToZoom:e}}function Dt(e){return{type:a.QM1,forceRenderWidgetsInAnnotationsOrder:e}}function At(e){return{type:a.ol,evaluation:e}}function Tt(e){return{type:a.wJn,prerenderedPageSpreads:e}}function It(e){return{type:a.rq0,configuration:e}}function Mt(e){return{type:a.HXk,showDocumentAssistant:e}}function Rt(e){return{type:a.wHH,currentTextSelection:e}}},52741:(e,t,n)=>{"use strict";n.d(t,{Bm:()=>p,qZ:()=>d,rJ:()=>m,sr:()=>h,uT:()=>f});var r=n(67366),o=n(55012),i=n(18287),a=n(77897),s=n(44156),l=n(66327),c=n(70982),u=n(49876);function d(e,t){return{type:o.BS3,reason:e,progress:t}}function p(){return{type:o.nmm}}function h(e){return{type:o.zZV,reason:e}}function f(e){return{type:o.Ty$,resolvePassword:e}}function m(e){let{attemptedUnlockViaModal:t,hasPassword:n,features:d,signatureFeatureAvailability:p,permissions:h,documentInfo:f,formJSON:m,annotationManager:g,bookmarkManager:v,formFieldManager:y,formFieldValueManager:b,commentManager:w,changeManager:x,minSearchQueryLength:_,documentHandle:S,allowedTileScales:C,pageKeys:E}=e;return(e,k)=>{const{searchState:z,documentHandle:P,features:D,signatureFeatureAvailability:A}=k();(0,r.dC)((()=>{C&&e(function(e){return{type:o.iZ1,allowedTileScales:e}}(C)),t&&e({type:o.hC8}),e(function(e){return{type:o.poO,hasPassword:e}}(n)),d&&0===D.size&&e((0,l.GL)(d)),p&&!A&&e((0,l.sY)(p)),e((0,s.at)(h)),P&&P!==S&&e({type:o.obk}),e((0,s.GO)(f,E)),m&&e((0,a.Qi)(m)),e((0,u.QQ)()),e(function(e){return{type:o.rxv,annotationManager:e}}(g)),e(function(e){return{type:o.Hrp,bookmarkManager:e}}(v)),e(function(e){return{type:o.oj5,formFieldManager:e}}(y)),e(function(e){return{type:o.GHc,formFieldValueManager:e}}(b)),null!=w&&e(function(e){return{type:o.UII,commentManager:e}}(w)),e(function(e){return{type:o.gbd,changeManager:e}}(x)),"number"==typeof _&&e((0,i.j8)(z.set("minSearchQueryLength",_))),e((0,c.kE)(S))}))}}},2927:(e,t,n)=>{"use strict";n.d(t,{$t:()=>M,C0:()=>D,FD:()=>x,Hv:()=>L,Ij:()=>T,Mq:()=>R,O2:()=>F,Ow:()=>S,PZ:()=>I,Pq:()=>A,RL:()=>_,SF:()=>P,Yg:()=>z,Zv:()=>E,gY:()=>g,lx:()=>O,qt:()=>w,rO:()=>$,sC:()=>C,ss:()=>v,u:()=>H,u8:()=>y,um:()=>V,uy:()=>j,v2:()=>b,yy:()=>k});var r=n(67366),o=n(85728),i=n(75472),a=n(76580),s=n(15359),l=n(55012),c=n(95431),u=n(77897),d=n(36904),p=n(96988),h=n(89637),f=n(26559),m=n(68944);const g=async(e,t)=>{const{backend:n}=t();if((0,m.Kr)(n)){if(e({type:l.iR6,promptContentEditorDocumentDownload:!0}),!n.corePDFBridge.ctx.wasmCtx){e({type:l.mxA,isServerModeDownloadingWASM:!0});try{const t=await(n.corePDFBridge.ctx.getWasmDispatch?.());(0,s.kG)(t),n.corePDFBridge.ctx.wasmCtx||await(0,a.eC)(n.corePDFBridge.ctx,t)}catch(e){(0,s.vU)(`Failed to load WASM context: ${e.message}`)}finally{e({type:l.mxA,isServerModeDownloadingWASM:!1})}}}else e(v)},v=async(e,t)=>{const{backend:n,contentEditorSession:i}=t();i.contentEditor&&await i.contentEditor.closeContentEditor(),(0,s.kG)(n),(0,m.Kr)(n)&&(0,r.dC)((()=>{e({type:l.fBs,isServerModeDownloadingDocument:!0}),e({type:l.mxA,isServerModeDownloadingWASM:!0})}));const a=await o.f.createContentEditor(n.corePDFBridge.ctx);(0,m.Kr)(n)&&(0,r.dC)((()=>{e({type:l.mxA,isServerModeDownloadingWASM:!1}),e({type:l.fBs,isServerModeDownloadingDocument:!1})})),(0,r.dC)((()=>{e((0,h.fz)()),e({type:l.MGL,contentEditor:a})}))},y=async(e,t)=>{const{contentEditorSession:n}=t();(0,s.kG)(n.contentEditor),await n.contentEditor.closeContentEditor(),(0,r.dC)((()=>{e({type:l.Qm9}),e(z(!1))}))},b=(e,t,n,r,o)=>K(e,t,(e=>e.setTextBlockCursor(t,n,r,o))),w=(e,t,n,r,o)=>K(e,t,(e=>e.insertTextBlockString(t,n,r,o))),x=(e,t,n,r,o)=>K(e,t,(e=>e.moveTextBlockCursor(t,n,r,o))),_=(e,t,n,r)=>K(e,t,(e=>e.deleteTextBlockString(t,n,r))),S=(e,t,n,r)=>K(e,t,(e=>e.setTextBlockSelection(t,n,r))),C=(e,t,n,r,o,i)=>K(e,t,(e=>e.setTextBlockSelectionRange(t,n,r,o,i))),E=(e,t,n)=>K(e,t,(e=>e.textBlockUndo(t,n))),k=(e,t,n)=>K(e,t,(e=>e.textBlockRedo(t,n))),z=e=>({type:l.bOH,isVisible:e}),P=(e,t)=>({type:l.joZ,pageIndex:e,textBlockId:t}),D=(e,t)=>({type:l.xhM,pageIndex:e,textBlockId:t}),A=e=>{e({type:l.fQw})},T=async(e,t)=>{e({type:l.Y4,isSaving:!0});const{contentEditorSession:n,backend:o,features:a,annotations:p,isAPStreamRendered:h,contentEditorSession:f}=t(),m=(0,d.Gp)(n);(0,s.kG)(o),(0,s.kG)(f.contentEditor);try{await f.contentEditor.save(i.Xn,m,[])}catch(t){return void(0,r.dC)((()=>{e({type:l.Y4,isSaving:!1}),e({type:l.guy,promptContentEditorCannotSaveChanges:!0})}))}o.cancelRequests(),f.contentEditor.cancelRequests(),await o.contentEditorReload(),e({type:l.Y4,isSaving:!1});const g=await o.runPDFFormattingScriptsFromWidgets(p,null,h);await(0,c.jX)(e,t,{features:a}),g.length&&e((0,u.bt)({changes:g})),e(y)},I=e=>{let{fixpointValue:t,newWidth:n}=e;return async(e,r)=>{const o=r(),{contentEditorSession:i}=o;(0,s.kG)(i.contentEditor);const{textBlockInteractionState:a}=i;if(a?.state!==p.FP.Selected)return;const{pageIndex:c,textBlockId:u}=a;e({type:l.ciU,pageIndex:c,textBlockId:u,fixpointValue:t,newWidth:n});const d=(0,p.aT)(c,u)(r());(0,s.kG)(d),await i.contentEditor.layoutTextBlock(u,null,null,(0,f.hH)(d)).then((t=>e({type:l.VOt,pageIndex:c,textBlockId:u,updateInfo:t}))).catch()}},M=e=>{let{anchor:t,pageIndex:n=null,textBlockId:r=null,isKeyboardMove:o}=e;return async(e,i)=>{const a=i(),{contentEditorSession:c}=a;if((0,s.kG)(c.contentEditor),null===n||!r){const{textBlockInteractionState:e}=c;if(({pageIndex:n,textBlockId:r}=e),e?.state===p.FP.Active)return}e({type:l.fLm,pageIndex:n,textBlockId:r,anchor:t,isKeyboardMove:o});const u=(0,p.aT)(n,r)(i());(0,s.kG)(u),await c.contentEditor.layoutTextBlock(r,null,null,(0,f.hH)(u)).then((t=>e({type:l.VOt,pageIndex:n,textBlockId:r,updateInfo:t}))).catch()}},R=e=>(t,n)=>{const r=n(),{contentEditorSession:o}=r;(0,s.kG)(o.contentEditor);const{textBlockInteractionState:i}=o;(0,s.kG)(i?.state===p.FP.Active);const a=(0,p.aT)(i.pageIndex,i.textBlockId)(r);if(a)if(a.selection)o.contentEditor.textBlockApplyFormat(i.textBlockId,null,e,(0,f.hH)(a)).then((e=>{t({type:l.VOt,pageIndex:i.pageIndex,textBlockId:i.textBlockId,updateInfo:e})}));else{let n=a.modificationsCharacterStyle.fontRef.faceRef;e.family&&(n=n.set("family",e.family)),null!=e.bold&&(n=n.setIn(["variant","bold"],e.bold)),null!=e.italic&&(n=n.setIn(["variant","italic"],e.italic)),t({type:l.Ebp,pageIndex:i.pageIndex,textBlockId:i.textBlockId,faceRef:n,color:e.color,size:e.size})}},F=async(e,t)=>{e(N());const{contentEditorSession:n}=t();(0,s.kG)(n.contentEditor);const r=await n.contentEditor.getAvailableFaces();e(B(r))},N=()=>({type:l.U7k}),O=(e,t)=>({type:l.Han,tooltipRect:e,fontFace:t}),j=e=>async t=>{new Promise((n=>{setTimeout((()=>{e.aborted||t({type:l.WmI}),n()}),100)}))},L=e=>({type:l.nI6,abortController:e}),B=e=>({type:l.ZgW,faceList:e}),K=(e,t,n)=>async(r,o)=>{const{contentEditorSession:i}=o();(0,s.kG)(i.contentEditor),r({type:l.HYy});const a=await n(i.contentEditor);r({type:l.VOt,pageIndex:e,textBlockId:t,updateInfo:a})},V=async(e,t)=>{const n=t(),{contentEditorSession:o}=n,{textBlockInteractionState:i}=o;(0,s.kG)(i?.state===p.FP.Selected||i?.state===p.FP.Active);const{pageIndex:a,textBlockId:c}=i,u=(0,p.aT)(a,c)(t());(0,s.kG)(u);const d=(0,f.hH)(u);(0,r.dC)((()=>{e(S(a,c,"everything",d)),e(_(a,c,"forward",d)),e({type:l.snK,pageIndex:a,textBlockId:c})}))},H=e=>({type:l.teI,mode:e}),$=(e,t)=>async(n,o)=>{const{contentEditorSession:i}=o();(0,s.kG)(i.contentEditor),n({type:l.HYy});const a=await i.contentEditor.createTextBlock(e);a.textBlock.modificationsCharacterStyle.fontRef.size=16;const{id:c,textBlock:{maxWidth:u,alignment:d,lineSpacingFactor:p,modificationsCharacterStyle:h}}=a,f=await i.contentEditor.layoutTextBlock(c,null,null,{maxWidth:u,alignment:d,lineSpacingFactor:p,modificationsCharacterStyle:h});(0,r.dC)((()=>{n({type:l.uo5,pageIndex:e,initialTextBlock:a,anchor:t.set("y",t.y-f.contentRect.offset.y/2)}),n({type:l.VOt,pageIndex:e,textBlockId:c,updateInfo:f})}))}},56554:(e,t,n)=>{"use strict";n.d(t,{Y:()=>l,e:()=>s});var r=n(15359),o=n(95431),i=n(55012),a=n(77897);function s(e,t,n,i){return async(s,l)=>{const{backend:c,features:u,pages:d}=l();try{(0,r.kG)(c),c.cancelRequests();const n=await c.signDocumentAndReload(e,t);if(await(0,o.jX)(s,l,{features:u,pageKeys:d.map((e=>e.pageKey))}),n&&"STANDALONE"===c.type){const e=await c.runPDFFormattingScripts([n],!1);e.length>0&&s((0,a.bt)({changes:e,isReloading:!0}))}}catch(e){return i(e)}l().eventEmitter.emit("document.change",[]),n()}}function l(e){return{type:i.lRe,digitalSignatures:e}}},70982:(e,t,n)=>{"use strict";n.d(t,{KY:()=>p,NV:()=>h,b_:()=>u,kE:()=>d});var r=n(15359),o=n(95431),i=n(55012),a=n(77897),s=n(11765),l=n(34923),c=n(94732);function u(e,t,n){return async(i,l)=>{const{backend:u,features:d,pages:p,annotations:h,isAPStreamRendered:m}=l();(0,r.kG)(u);try{const t=e.map(s.kg);u.cancelRequests(),await u.applyOperationsAndReload(t);const n=await u.runPDFFormattingScriptsFromWidgets(h,null,m);await(0,o.jX)(i,l,{features:d,pageKeys:f(p.map((e=>e.pageKey)),e,h.filter((e=>e instanceof c.Z)))}),n.length&&i((0,a.bt)({changes:n}))}catch(e){return n(e)}l().eventEmitter.emit("document.change",e),t()}}function d(e){return{type:i.S0t,documentHandle:e}}function p(e){return{type:i.YS$,isDocumentHandleOutdated:e}}function h(e,t){return async(n,i)=>{const{backend:s,features:l,annotations:c,isAPStreamRendered:u}=i();(0,r.kG)(s);try{s.cancelRequests(),await s.reloadDocument();const e=await s.runPDFFormattingScriptsFromWidgets(c,null,u);await(0,o.jX)(n,i,{features:l}),e.length&&n((0,a.bt)({changes:e}))}catch(e){return t(e)}i().eventEmitter.emit("document.change",[]),e()}}function f(e,t,n){return t.reduce(((e,t)=>{switch(t.type){case"addPage":return e.insert("beforePageIndex"in t?t.beforePageIndex:t.afterPageIndex+1,(0,l.C)());case"movePages":{const n=e.filter(((e,n)=>t.pageIndexes.includes(n)));return e.map(((e,n)=>t.pageIndexes.includes(n)?null:e)).splice("beforePageIndex"in t?t.beforePageIndex:t.afterPageIndex+1,0,...n.toArray()).filter((e=>e))}case"removePages":return e.filter(((e,n)=>!t.pageIndexes.includes(n)));case"keepPages":return e.filter(((e,n)=>t.pageIndexes.includes(n)));case"duplicatePages":return e.flatMap(((e,n)=>t.pageIndexes.includes(n)?[e,(0,l.C)()]:[e]));case"addPageMargins":case"cropPages":case"rotatePages":case"flattenAnnotations":return e.map(((e,n)=>!t.pageIndexes||t.pageIndexes.includes(n)?(0,l.C)():e));case"applyRedactions":{const t=n.map((e=>e.pageIndex)).toSet();return e.map(((e,n)=>t.includes(n)?(0,l.C)():e))}case"updateMetadata":case"setPageLabel":return e;case"importDocument":if(t.treatImportedDocumentAsOnePage){const n="beforePageIndex"in t?t.beforePageIndex:t.afterPageIndex+1;return e.map(((e,t)=>t<n?e:(0,l.C)()))}return e;case"applyInstantJson":case"applyXfdf":case"performOcr":return e.map((()=>(0,l.C)()));default:throw new Error(`Operation ${t} is not implemented`)}}),e)}},33056:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i,o:()=>o});var r=n(55012);function o(e){return{type:r.Oh4,outline:e}}function i(e){return{type:r.Whn,level:e}}},77897:(e,t,n)=>{"use strict";n.d(t,{bt:()=>B,kW:()=>K,zq:()=>P,TD:()=>T,Wh:()=>H,HE:()=>A,PT:()=>M,h4:()=>N,el:()=>F,ul:()=>L,Vp:()=>$,yM:()=>U,_4:()=>G,xW:()=>D,xh:()=>O,Qi:()=>z,r$:()=>R,V6:()=>Z,vK:()=>V,C2:()=>I});var r=n(67366),o=n(15359),i=n(35369),a=n(73935),s=n(45249),l=n(55012),c=n(11765),u=n(4087),d=n(690),p=n(97395),h=n(43069),f=n(73900),m=n(46364),g=n(87996),v=n(17766),y=n(24021),b=n(8514);async function w(e,t,n){const{default:r}=await b.o[e](),i=(0,y.dp)({locale:e,messages:r},(0,y.Sn)());setTimeout((()=>(0,o.wp)(i.formatMessage(t,n?.reduce(((e,t,n)=>({...e,[`arg${n}`]:t})),{})))),0)}var x=n(66327),_=n(48625),S=n(47120),C=n(33427),E=n(60859),k=n(34923);function z(e){return{type:l.iJ2,formJSON:e}}function P(e){return{type:l.Ui_,formFieldValues:e}}function D(e){return{type:l.m3$,formFieldValues:e}}function A(e){return{type:l.u7V,formFieldValuesIds:e}}function T(e){return{type:l.zGM,formFields:e}}function I(e){return{type:l.Wyx,formFields:e}}function M(e){return{type:l.u_c,formFieldsIds:e}}function R(e){return{type:l.TYu,onWidgetCreationStartCallback:e}}function F(){return e=>{e((0,x.LE)(!0)),e((0,x.UF)(_.A.FORM_CREATOR))}}function N(){return e=>{e((0,x.LE)(!1)),e((0,x.XX)())}}function O(e,t){return(n,a)=>{const l=e.map((e=>new s.KD({name:e.name,value:e.value,optionIndexes:e.optionIndexes,isFitting:e.isFitting}))),c=(0,i.aV)(l),{backend:u,formFields:d,formFieldValueManager:p,annotations:f,viewportState:{zoomLevel:m}}=a();if((0,o.kG)(u),(0,o.kG)(p),g.Options.PDF_JAVASCRIPT&&"STANDALONE"===u.type)n(L(c,t));else{const e=[];(0,r.dC)((()=>{c.forEach((t=>{let r;const a=new Promise((e=>{r=e}));e.push(a),(0,h.Ay)({getState:()=>({formFields:d,annotations:f,backend:u}),originalFormFields:(0,i.D5)({[t.name]:d.get(t.name)}),formFieldValues:(0,i.aV)(l),callback:e=>{if(!e.includes(t.name)){const e=d.get(t.name);(0,o.kG)(e);const r=e.annotationIds.reduce(((e,t)=>{const n=f.get(t);return n instanceof s.x_?e.push(n):e}),(0,i.aV)());if(e.multiLine){const o=(0,E.$Z)(r.first(),e.value,m);n(D((0,i.aV)([t.set("isFitting",o)])))}else n(D((0,i.aV)([t])))}},resolve:r}),p.updateObject(t)}))})),Promise.all(e).then((()=>{t?.((0,i.aV)())})).catch((e=>{throw e}))}}}let j=Promise.resolve();function L(e,t){return async(n,r)=>{const l=j;let c;j=new Promise((function(e){c=e})),await l;let u=(0,i.aV)();try{const{backend:t}=r();if((0,o.kG)(t),"STANDALONE"!==t.type||!g.Options.PDF_JAVASCRIPT)return;const l=await(0,m.Vs)(t.evalFormValuesActions(e),1e4),p=l.filter((e=>e.change_type===d.zR&&"pspdfkit/form-field-value"===e.object.type)),f=p.map((e=>e.object.name)),v=(0,i.aV)(p.map((e=>new s.KD({name:e.object.name,value:Array.isArray(e.object.value)?(0,i.aV)(e.object.value):e.object.value,optionIndexes:e.object.optionIndexes})))),y=e.map((e=>e.name)).toArray().filter((e=>f.indexOf(e)<0)),{formFields:b}=r(),w=(0,h.Qg)(b.filter(((e,t)=>y.indexOf(t)>=0))),x=b.filter((t=>e.find((e=>e.name===t.name))||w.find((e=>e.name===t.name))||f.includes(t.name))),_=e.map((e=>v.find((t=>t.name===e.name))||e)).concat(v.filter((t=>!e.find((e=>e.name===t.name)))));(0,h.Ay)({getState:r,originalFormFields:x,formFieldValues:_,callback:t=>{e.size>0&&(0,a.flushSync)((function(){n(D(e))})),w.size>0&&(u=w,n(D(w))),n(B({changes:l,unchangedFormFieldValues:t}))}})}catch(e){}finally{c()}t?.(u)}}function B(e){let{changes:t,unchangedFormFieldValues:n=[],resolve:a,reject:s,isReloading:m=!1}=e;return(e,g)=>{const y=g(),{annotations:b,formFields:x,formFieldManager:_,backend:C,autoSaveMode:E}=y,k=y.formattedFormFieldValues;let z,P=(0,i.aV)(),A=y.editingFormFieldValues;(0,r.dC)((function(){C?.setFormJSONUpdateBatchMode(!0).catch((e=>{s?.(e)})),P=(0,i.aV)().withMutations((n=>{z=k.withMutations((r=>{t.forEach((t=>{let{change_type:i,object:a}=t;switch(i){case d.uV:case d.zR:if("pspdfkit/form-field-value"===a.type){const e=(0,c.u9)(a);n.push(e),"string"==typeof a.formattedValue&&r.set(e.name,a.formattedValue),"string"==typeof a.editingValue&&(A=A.set(e.name,a.editingValue))}else if(a.type.startsWith("pspdfkit/form-field/")){if(!_)return;const t=(0,c.IN)(a.id,a,{permissions:a.permissions,group:a.group});x.has(t.name)?e(V(t)):e(K(t))}else try{const t=(0,c.vH)(a.id,a);b.has(t.id)?e((0,u.FG)(t)):e((0,u.$d)(t))}catch(e){(0,o.ZK)(`Form actions: unable to apply change of type "${i}"\n\n${a}\n\n${e.message}`)}break;case d.co:if(a.type.startsWith("pspdfkit/form-field/")){const t=x.get(a.name);t?e(H(t)):(0,o.ZK)(`Form actions: unable to find FormField to delete with id "${a.id}".`)}else{const t=b.get(a.id);t?e((0,u.hQ)(t)):(0,o.ZK)(`Form actions: unable to find Annotation to delete with id "${a.id}".`)}break;case d.D2:switch(a.type){case"pspdfkit/javascript/effects/alert":{const{message:e}=a;if(e.startsWith(h.$Y)){const t=e.split("[")[1].split("]"),n=t[1].split(h.as);w(y.locale,v.A.dateValidationBadFormat,[t[0],n[1]])}else if(e.startsWith(h.sh)){const t=e.split("[")[1].split("]");w(y.locale,v.A.numberValidationBadFormat,[t[0]])}else(0,o.wp)(e);break}case"pspdfkit/javascript/effects/print":e((0,f.S0)());break;case"pspdfkit/javascript/effects/launchURL":{const e=y.onOpenURI?.(a.url,!1);e&&(a.newFrame?(0,p.Z)(a.url):(0,p.l)(a.url));break}case"pspdfkit/javascript/effects/mail":{if(!a.to)break;let e=`mailto:${Array.isArray(a.to)?a.to.join(","):a.to}?`;const t=[];if(a.subject&&t.push(`subject=${encodeURIComponent(a.subject)}`),a.cc){const e=Array.isArray(a.cc)?a.cc.map((e=>encodeURIComponent(e))).join(";"):encodeURIComponent(a.cc);t.push(`cc=${e}`)}if(a.bcc){const e=Array.isArray(a.bcc)?a.bcc.map((e=>encodeURIComponent(e))).join(";"):encodeURIComponent(a.bcc);t.push(`bcc=${e}`)}a.message&&t.push(`body=${encodeURIComponent(a.message)}`),e+=t.join("&"),(0,p.Z)(e);break}case"pspdfkit/javascript/effects/importIcon":{const t=b.find((e=>e.pdfObjectId===a.annotationID||e.id===a.id));t?e(G(t)):(0,o.ZK)(`Form actions: unable to find Annotation to import icon for with pdfObjectId "${a.annotationID}".`);break}default:(0,o.ZK)(`Form actions: side effect "${a.type}" not supported.`)}break;case d.Q:break;default:(0,o.ZK)(`Form actions: change type "${i}" not supported.`)}}))}))}))}));const T=C?.setFormJSONUpdateBatchMode(!1);let I=[];if(P.size>0){e(D(P)),z.size>0&&e(function(e){return{type:l.VK7,formattedFormFieldValues:e}}(z)),A.size>0&&e(function(e){return{type:l.yET,editingFormFieldValues:e}}(A));const{formFieldValueManager:t}=g();(0,o.kG)(t);let r=(0,i.l4)();I=P.filter((e=>!n.includes(e.name))).map((e=>{if(t.updateObject(e),m){const t=x.get(e.name);if(t){const e=t.annotationIds.map((e=>b.get(e))).filter(Boolean);r=r.concat((0,i.l4)(e.map((e=>e.pageIndex))))}}return E===S.u.DISABLED?Promise.resolve():t.ensureObjectSaved(e)})).toArray(),m&&r.size>0&&e({type:l.TG1,pageIndexes:r})}Promise.all([T,...I]).then((()=>{a?.()})).catch((e=>{s?.(e)}))}}function K(e){return(t,n)=>{const{formFields:r,formFieldManager:a}=n();if(r.get(e.name))throw new o.p2(`Cannot create form field: a form field with the name "${e.name}" already exists. Form field names must be unique.`);t(T((0,i.aV)([e]))),a?.createObject(e)}}function V(e){return(t,n)=>{const{formFields:r,annotationManager:a,annotations:l,backend:c,formFieldManager:d}=n(),p=r.find((t=>t.id===e.id||t.name===e.name));if(!p)return void(0,o.ZK)("A form field that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this form field was skipped.");const h=e.merge({value:p.value,values:p.values});if(p.readOnly!==e.readOnly){const t=e.annotationIds.map((e=>l.get(e))).filter(Boolean);(0,C.CU)({formFields:r,backend:c},t,e)}let f;if(t(I((0,i.aV)([h]))),p.name!==e.name){const n=l.filter((e=>e instanceof s.x_&&e.formFieldName===p.name)).toList();f=n.map((t=>t.set("formFieldName",e.name))),t((0,u.Zr)(f))}d?.updateObject(h),f?.size>0&&f.forEach((e=>{a?.updateObject(e)}))}}function H(e){return(t,n)=>{const r=n(),o=e.annotationIds.map((e=>r.annotations.get(e))).filter(Boolean);var a;o.isEmpty()||(t((0,u.aF)(o.map((e=>e?.id)).toSet())),o.forEach((e=>{r.annotationManager?.deleteObject(e)}))),t((a=(0,i.l4)([e.name]),{type:l.D_w,formFieldNames:a})),r.formFieldManager?.deleteObject(e)}}function $(e,t,n){return(r,i)=>{const{formFields:a,annotations:l}=i();(0,o.kG)(a.has(e.name),`Form field with name "${e.name}" not found; renaming it is not possible.`),(0,o.kG)(e.annotationIds.size===n.size,"Invalid newWidgetIds size.");const c=e.annotationIds.map((e=>l.get(e)||l.find((t=>String(t.pdfObjectId)===e)))).filter((e=>e instanceof s.x_)),d=c.map(((e,r)=>{const i=n.get(r);return(0,o.kG)(i,"Invalid newWidgetId."),e.set("formFieldName",t).set("id",i).set("pdfObjectId",null)})),p=d.map((e=>e.id));d.forEach((e=>{r((0,u.$d)(e))}));const h=e.merge({name:t,id:(0,k.C)(),pdfObjectId:null,annotationIds:p});r(K(h))}}function U(e,t){return(n,r)=>{const i=q(r(),e,t).map((e=>{const{name:t}=e;let n;return e instanceof s.$o||e instanceof s.XQ?n=e.defaultValue:e instanceof s.Dz||e instanceof s.rF?n=e.defaultValues:e instanceof s.R0?n=null:(0,o.kG)(!1),new s.KD({name:t,value:n})}));g.Options.PDF_JAVASCRIPT&&n(L(i)),n(D(i)),i.forEach((e=>{r().formFieldValueManager?.updateObject(e)}))}}function Z(e){return(t,n)=>{const r=n();let a,l=!1;if(r.formFieldValueManager?.eventEmitter.emit("willSubmit",{preventDefault:()=>l=!0}),l)return;const{uri:c,fields:u,includeExclude:d,exportFormat:p,getMethod:h,submitPDF:f,xfdf:m}=e,g=(0,i.D5)(q(r,u,d).filter((e=>!e.noExport)).map((e=>{const{name:t}=e;return[t,e instanceof s.R0?null:void 0===e.value?e.values:e.value]})));if(p){const e=function(e){const t=[];return e.forEach(((e,n)=>{const r=encodeURIComponent(n);"string"==typeof e?t.push(`${r}=${encodeURIComponent(e)}`):null===e?t.push(`${r}=`):e instanceof i.aV&&e.forEach((e=>{t.push(`${r}[]=${encodeURIComponent(e)}`)}))})),t.join("&")}(g);if(h)a=Promise.resolve({uri:`${c}?${e}`,fetchOptions:{method:"GET"}});else{const t={headers:new Headers({"Content-Type":"application/x-www-form-urlencoded"}),method:"POST",body:e};a=Promise.resolve({uri:c,fetchOptions:t})}}else{if(!f)return m?void(0,o.vU)("XFDF Form submission not supported yet."):void(0,o.vU)("FDF Form submission not supported yet.");a=r.backend?.exportPDF({flatten:!0,incremental:!1}).then((e=>{const t={headers:new Headers({"Content-Type":"application/pdf"}),method:"POST",body:e};return{uri:c,fetchOptions:t}}))}a.then((e=>{let{uri:t,fetchOptions:n}=e;fetch(t,n).then((e=>{r.formFieldValueManager?.eventEmitter.emit("didSubmit",{response:e})}))})).catch((e=>{e(`Form submission failed with the following error:\n\n${e}`),r.formFieldValueManager?.eventEmitter.emit("didSubmit",{error:e})}))}}function q(e,t,n){let r;const o=e.formFields.keySeq().toSet();return r=t?n?o.subtract(t):o.intersect(t):o,e.get("formFields").valueSeq().filter((e=>r.includes(e.name))).toList()}function G(e){return{type:l.zyH,annotation:e}}},49876:(e,t,n)=>{"use strict";n.d(t,{KX:()=>y,QQ:()=>b,Yw:()=>v,ou:()=>x,pB:()=>m,z9:()=>w,zM:()=>g});var r=n(35369),o=n(15359),i=n(55012),a=n(4087),s=n(48338),l=n(23951),c=n(33427),u=n(76934),d=n(35464),p=n(34923),h=n(77897);function f(e){return{type:i.faS,historyChangeContext:e}}function m(e,t){return(n,r)=>{const{historyChangeContext:o}=r();n(f(e)),t(),n(f(o))}}function g(e){return{type:i.x64,annotationId:e}}function v(){return(e,t)=>{const{undoActions:n,annotations:f,isHistoryEnabled:g}=t();if(!g)throw new o.p2("Cannot undo: the Undo Redo history API is disabled.");if(0===n.size)throw new o.p2("Cannot undo: the Undo actions history is empty.");const v=n.last(),y=(0,s.kM)(v,f);e(m(u.j.HISTORY,(()=>{"create"===v.type?e(function(e){return function(t,n){const{historyIdsMap:o,backend:s}=n();let l=e.payload;const c=e.formField;if(e.restoreAPStream&&"STANDALONE"===s?.type&&(l=l.set("APStreamCache",{attach:o.get(l.id)||l.id})),t((0,a.$d)(l)),c&&t((0,h.kW)(c)),l.isCommentThreadRoot&&e.comments){e.comments.map((t=>t.set("rootId",e.payload.id).set("id",(0,p.C)()))).forEach((e=>{t((0,d.Jr)(e))}))}e.restoreAPStream?t((0,a.ug)((0,r.D5)({[l.id]:l.pageIndex}))):t((0,a.GI)((0,r.D5)({[l.id]:l.pageIndex})));const u={type:"delete",payload:{id:l.id}};t({type:i.bVL,nextRedoAction:u})}}(v)):"update"===v.type?e(function(e){return function(t,n){const{annotations:u,historyIdsMap:d,backend:p}=n();let h=u.get(e.payload.id);!h&&e.deletedAnnotation&&(h=e.deletedAnnotation.set("id",(0,c.xc)()),t((0,a.$d)(h))),(0,o.kG)(h instanceof l.Z);let f=h.merge({...e.payload,pdfObjectId:h.pdfObjectId,id:h.id});e.restoreAPStream&&"STANDALONE"===p?.type&&(f=f.set("APStreamCache",{attach:d.get(f.id)||f.id})),t((0,a.FG)(f)),e.restoreAPStream&&t((0,a.ug)((0,r.D5)({[f.id]:f.pageIndex})));const m={type:"update",payload:{...(0,s.mZ)(f,h),id:h.id}};t({type:i.bVL,nextRedoAction:m}),t({type:i.tC1,oldId:d.get(e.payload.id)||e.payload.id,newId:h.id})}}(v)):"delete"===v.type?e(function(e){return function(t,n){const o=n(),{annotations:u,commentThreads:d,comments:p,historyIdsMap:f}=o,m=u.get(e.payload.id);if(!(m instanceof l.Z))return;t((0,a.hQ)(m));const g=(0,c.xc)(),v=(0,s.Yr)(m,g,d,p),y=(0,s.ax)(m,g,o);y&&t((0,h.PT)((0,r.l4)([y.id])));const b={type:"create",payload:m.merge(e.payload).set("id",g),comments:v,formField:y};t({type:i.bVL,nextRedoAction:b,oldId:e.payload.id}),t({type:i.tC1,oldId:f.get(e.payload.id)||e.payload.id,newId:g})}}(v)):(0,o.Rz)(v.type)})));const{annotations:b,eventEmitter:w}=t(),x=(0,s.FA)(v,b,v.payload.id);w.emit("history.undo",{before:y,after:x}),w.emit("history.change",{before:y,after:x,action:"undo"})}}function y(){return(e,t)=>{const{redoActions:n,annotations:r,isHistoryEnabled:f}=t();if(!f)throw new o.p2("Cannot redo: the Undo Redo history API is disabled.");if(0===n.size)throw new o.p2("Cannot redo: the Redo actions history is empty.");const g=n.last(),v=(0,s.kM)(g,r);e(m(u.j.HISTORY,(()=>{"create"===g.type?e(function(e){return t=>{const n=e.payload,r=e.formField;if(t((0,a.$d)(n)),n.isCommentThreadRoot&&e.comments){e.comments.map((e=>e.set("rootId",n.id).set("id",(0,p.C)()))).forEach((e=>{t((0,d.Jr)(e))}))}r&&t((0,h.kW)(r));const o={type:"delete",payload:{id:n.id}};t({type:i.iwn,nextUndoAction:o})}}(g)):"update"===g.type?e(function(e){return(t,n)=>{const{annotations:r}=n(),u=r.get(e.payload.id);(0,o.kG)(u instanceof l.Z);const d=u.merge({...e.payload,id:u.id}),p=(0,c.pe)(n,u,(()=>{t((0,a.FG)(d))})),h={type:"update",payload:(0,s.mZ)(d,u),restoreAPStream:p};t({type:i.iwn,nextUndoAction:h})}}(g)):"delete"===g.type&&e(function(e){return(t,n)=>{const r=n(),{historyIdsMap:u,annotations:d,commentThreads:p,comments:h}=r,f=d.get(e.payload.id);(0,o.kG)(f instanceof l.Z);const m=(0,c.pe)(n,f,(()=>{t((0,a.hQ)(f))})),g=(0,c.xc)(),v=(0,s.Yr)(f,g,p,h),y=(0,s.ax)(f,g,r),b={type:"create",payload:f.set("id",g),restoreAPStream:m,comments:v,formField:y};t({type:i.iwn,nextUndoAction:b,oldId:e.payload.id}),t({type:i.tC1,oldId:u.get(e.payload.id)||e.payload.id,newId:g})}}(g))})));const{annotations:y,eventEmitter:b}=t(),w=(0,s.FA)(g,y,g.payload.id);b.emit("history.redo",{before:v,after:w}),b.emit("history.change",{before:v,after:w,action:"redo"})}}function b(){return(e,t)=>{e({type:i._Qf});const{backend:n,eventEmitter:r}=t();"STANDALONE"===n?.type&&n.clearAPStreamCache(),r.emit("history.clear")}}function w(){return{type:i._33}}function x(){return{type:i.wG7}}},14935:(e,t,n)=>{"use strict";n.d(t,{C0:()=>m,Ik:()=>c,Se:()=>d,U7:()=>f,VO:()=>u,Xh:()=>p,eO:()=>l,v9:()=>h});var r=n(15359),o=n(70982),i=n(29152),a=n(66327),s=n(55012);function l(e){return{type:s.$8O,measurementToolState:e}}function c(e){return{type:s.UP4,hintLines:e}}function u(e){return{type:s.Zt9,secondaryMeasurementUnit:e}}function d(e){return{type:s.VNu,activeMeasurementScale:e}}function p(e){return{type:s.wgG,isCalibratingScale:e}}const h=e=>async(t,n)=>{const o=n();(0,r.kG)(o.backend);const{backend:i,secondaryMeasurementUnit:a}=o;try{e&&(await(i?.setSecondaryMeasurementUnit(e)),t(u(e))),a&&!e&&(await(i?.setSecondaryMeasurementUnit(null)),t(u(null)))}catch(e){(0,r.ZK)(`Failed to set secondary measurement unit: ${e}.`),t(u(a))}},f=(e,t)=>async(n,s)=>{const l=s();(0,r.kG)(l.backend);const{backend:c,measurementScales:u}=l,d="STANDALONE"===c.type;(0,r.kG)(u);const{added:p,deleted:h}=(0,i.Rc)(u,e),f=h.map((async e=>{d&&await(c?.removeMeasurementScale(e));const r=t?.find((t=>t.prevScale===e));r||await(0,i.fH)({deletedScale:e,getState:s,dispatch:n})})),m=p.map((async e=>{d&&await(c?.addMeasurementScale(e))})),g=t?.map((async t=>{await(0,i.Hg)({scale:e[t.index],oldScale:t.prevScale,getState:s,dispatch:n})}));Promise.all([f,m,g]).then((async()=>{d||(p.length>0?await(c?.addMeasurementScale(p[0])):h.length>0&&await(c?.removeMeasurementScale(h[0])),n((0,o.KY)(!0))),n((0,a.RN)(e))}))},m=e=>async(t,n)=>{const o=n();(0,r.kG)(o.backend);const{backend:i,measurementScales:s}=o;await(i?.addMeasurementScale(e)),t((0,a.RN)(s?[...s,e]:[e]))}},40084:(e,t,n)=>{"use strict";n.d(t,{IT:()=>a,Ic:()=>p,Pt:()=>_,U1:()=>b,YA:()=>s,Yr:()=>x,_R:()=>g,ac:()=>S,du:()=>y,dx:()=>d,fz:()=>i,kN:()=>c,kr:()=>f,lO:()=>v,lt:()=>l,nr:()=>h,vG:()=>m,vP:()=>u,vc:()=>w});var r=n(55012),o=n(35464);const i=()=>({type:r.wtk}),a=()=>({type:r.mE7}),s=e=>({type:r.RxB,pageIndex:e}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:r.mLh,scrollPosition:e,lastScrollUsingKeyboard:t}},c=(e,t)=>({type:r.g4f,pageIndex:e,rect:t}),u=(e,t)=>({type:r.Lyo,pageIndex:e,rect:t});function d(e,t){return n=>{n({type:r.xYE,viewportRect:e,isTriggeredByOrientationChange:t}),n((0,o.$z)())}}const p=(e,t)=>({type:r.syg,zoomLevel:e,scrollPosition:t}),h=e=>({type:r.ZGb,viewportState:e}),f=()=>({type:r.UFs}),m=()=>({type:r.RCc}),g=()=>({type:r.MfE}),v=()=>({type:r.BWS}),y=()=>({type:r.QU3}),b=e=>({type:r.lD1,degCW:e}),w=()=>({type:r.kRo}),x=()=>({type:r.UFK}),_=e=>({type:r.D1d,width:e}),S=e=>({type:r.WsN,shouldDisable:e})},44156:(e,t,n)=>{"use strict";n.d(t,{GO:()=>l,Nx:()=>f,at:()=>d,h1:()=>p,kQ:()=>h,uM:()=>c,wY:()=>u});var r=n(67366),o=n(55012),i=n(79724),a=n(34923);const s=(0,i.Z)();function l(e,t){return{type:o.ME7,payload:e,pageKeys:t}}function c(e){return{type:o.dCo,payload:e}}const u=(e,t)=>({type:o.z_j,pageIndex:e,contentBlocks:t});function d(e){return{type:o.fnw,backendPermissions:e}}const p=e=>({type:o.QYq,OCGLayers:e}),h=e=>({type:o.kQ7,visibleLayerIds:e}),f=e=>async(t,n)=>{(0,r.dC)((async()=>{const{backend:r,pages:i}=n();var l;s(r),t(h(e.visibleLayerIds)),await r.setOCGVisibilityState(e),t((l=i.map((e=>({pageIndex:e.pageIndex,pageKey:(0,a.C)()}))),{type:o.bM3,pageKeysForPages:l}))}))}},73900:(e,t,n)=>{"use strict";n.d(t,{xF:()=>A,WQ:()=>D,S0:()=>I});var r=n(35369),o=n(15359),i=n(10983),a=n(26637),s=n(45249),l=n(98179);const c=l.Ni;function u(e,t,n){const r=i.nJ[n];let o=r>=i.nJ[a.g.LOW]&&c?i.nJ[a.g.MEDIUM]:r;t||(o=i.nJ[a.g.MEDIUM]);let l=e.scale(o).floor();return l.width>i.Qr&&l.width>l.height&&(l=new s.$u({width:i.Qr,height:Math.round(i.Qr*l.height/l.width)})),l.height>i.Qr&&l.height>l.width&&(l=new s.$u({width:Math.round(i.Qr*l.width/l.height),height:i.Qr})),[l,o]}const d=e=>{const t=e.scale(i.Ui);return new s.$u({width:Math.ceil(t.width),height:Math.floor(t.height)})};function p(e,t,n,r){const a=e.ownerDocument,l=a.createElement("div");l.id="print";const c=a.createElement("style");c.textContent=function(e){const t=`\n    @page {\n      size: ${e.width}pt ${e.height}pt;\n    }\n\n    \n    @page {\n      margin: 0;\n    }`;return`\n    @media print {\n      \n      * {\n        ${h()}\n        padding: 0 !important;\n        margin: 0 !important;\n        box-sizing: initial !important;\n        display: none !important;\n        visibility: hidden !important;\n      }\n\n      html, body {\n        ${h()}\n        height: 100% !important;\n        width: 100% !important;\n        display: block !important;\n        visibility: visible !important;\n      }\n\n      \n\n      body {\n        background: transparent none !important;\n      }\n\n      #print, #print-container {\n        ${h()}\n        display: block !important;\n        visibility: visible !important;\n        height: 100% !important;\n      }\n\n      #print-container > div {\n        ${h()}\n        display: block !important;\n        visibility: visible !important;\n        position: relative !important;\n        top: 0 !important;\n        left: 0 !important;\n        width: 1px !important;\n        height: 1px !important;\n        overflow: visible !important;\n        page-break-after: always !important;\n        page-break-inside: avoid !important;\n      }\n\n      #print-container canvas {\n        ${h()}\n        display: block !important;\n        visibility: visible !important;\n      }\n\n    \n      #print-container > .rotate90 {\n       ${h()}\n        display: block !important;\n        visibility: visible !important;\n        transform: rotate(90deg) !important;\n    }\n\n    \n    #print-container > .rotateNegative90 {\n       ${h()}\n        display: block !important;\n        visibility: visible !important;\n        transform: translateY(${Math.abs(e.height-e.width)}pt) rotate(-90deg) !important;\n    }\n\n    \n    @-moz-document url-prefix() {\n      #print-container > .rotateNegative90 , #print-container > .rotate90 {\n        margin-bottom: ${Math.abs(e.height-e.width)}pt !important;\n      }\n    }\n\n\n\n\n    ${t}\n  `}(function(e){const t=e.first();if(!t)return new s.$u({width:i.zA,height:i._2});let n=!1;const r=e.reduce(((e,t)=>{let{pageSize:r}=t;return r.width<e.width?(n=!0,r):(r.height!=e.height&&(n=!0),e)}),t.pageSize).floor();return n&&(0,o.ZK)("Printing documents using PrintMode.DOM may lead to incorrect results because not all pages have the same size.\nFor more information, see: https://pspdfkit.com/guides/web/current/features/printing/"),r}(n));const u=a.createElement("div");return u.id="print-container",t.forEach(((e,t)=>{const{rotation:o}=n.get(t)||{},i=a.createElement("div");if(i.classList.add("page"),r){e.width>e.height&&(1===o?i.classList.add("rotateNegative90"):i.classList.add("rotate90"))}i.appendChild(e),u.appendChild(i)})),l.appendChild(c),l.appendChild(u),e.appendChild(l),()=>{e.removeChild(l)}}function h(){return"animation: none 0s ease 0s 1 normal none running !important;\nbackface-visibility: visible !important;\nbackground: transparent none repeat 0 0/auto auto padding-box border-box scroll !important;\nborder: medium none currentColor !important;\nborder-collapse: separate !important;\nborder-image: none !important;\nborder-radius: 0 !important;\nborder-spacing: 0 !important;\nbottom: auto !important;\nbox-shadow: none !important;\nbox-sizing: content-box !important;\ncaption-side: top !important;\nclear: none !important;\nclip: auto !important;\ncolor: #000 !important;\ncolumns: auto !important;\ncolumn-count: auto !important;\ncolumn-fill: balance !important;\ncolumn-gap: normal !important;\ncolumn-rule: medium none currentColor !important;\ncolumn-span: 1 !important;\ncolumn-width: auto !important;\ncontent: normal !important;\ncounter-increment: none !important;\ncounter-reset: none !important;\ncursor: auto !important;\ndirection: ltr !important;\ndisplay: inline !important;\nempty-cells: show !important;\nfloat: none !important;\nfont-family: serif !important;\nfont-size: medium !important;\nfont-style: normal !important;\nfont-variant: normal !important;\nfont-weight: 400 !important;\nfont-stretch: normal !important;\nline-height: normal !important;\nheight: auto !important;\nhyphens: none !important;\nleft: auto !important;\nletter-spacing: normal !important;\nlist-style: disc outside none !important;\nmargin: 0 !important;\nmax-height: none !important;\nmax-width: none !important;\nmin-height: 0 !important;\nmin-width: 0 !important;\nopacity: 1 !important;\norphans: 2 !important;\noutline: medium none invert !important;\noverflow: visible !important;\noverflow-x: visible !important;\noverflow-y: visible !important;\npadding: 0 !important;\npage-break-after: auto !important;\npage-break-before: auto !important;\npage-break-inside: auto !important;\nperspective: none !important;\nperspective-origin: 50% 50% !important;\nposition: static !important;\nright: auto !important;\ntab-size: 8 !important;\ntable-layout: auto !important;\ntext-align: left !important;\ntext-align-last: auto !important;\ntext-decoration: none !important;\ntext-indent: 0 !important;\ntext-shadow: none !important;\ntext-transform: none !important;\ntop: auto !important;\ntransform: none !important;\ntransform-origin: 50% 50% 0 !important;\ntransform-style: flat !important;\ntransition: none 0s ease 0s !important;\nunicode-bidi: normal !important;\nvertical-align: baseline !important;\nvisibility: visible !important;\nwhite-space: normal !important;\nwidows: 2 !important;\nwidth: auto !important;\nword-spacing: normal !important;\nz-index: auto !important;\nall-initial !important;"}var f=n(66327),m=n(43069),g=n(32249),v=n(33427),y=n(70025),b=n(82716);const w={macos:{blink:!0,webkit:!0},windows:{blink:!0,trident:!0},ios:{webkit:!0},android:{},linux:{blink:!0},unknown:{}};let x=null,_=null,S=null,C=null;function E(){S&&(clearTimeout(S),S=null),C&&(clearTimeout(C),C=null),x&&x.parentNode&&(x.parentNode.removeChild(x),x=null),_&&_()}var k=n(55012),z=n(12705);function P(){return{type:k.skc}}function D(){return{type:k.snh}}function A(){return{type:k._uU}}function T(e){const t="number"==typeof e?e:null;return{type:k.qV6,currentPage:t}}function I(){let{mode:e,excludeAnnotations:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(n,r)=>{e||(e=r().printMode);return(e===y.X.DOM?R:F)(n,r,t)}}let M=()=>{};async function R(e,t,n){e((0,f.X2)()),e(T(0)),e(P());const o=[];let i=t(),a=[];function c(){a.forEach((e=>{e()})),a=[]}M(),M=c;for(const{pageIndex:p,pageSize:h}of i.pages){if(!t().isPrinting)return M(),M=()=>{},void e(T(null));const[f,g]=u(h,(0,z.jb)(i),i.printQuality);try{await(i.annotationManager?.loadAnnotationsForPageIndex(p)),i=t();const c=i.pages.get(p);let u;if((0,b.k)(c&&i.backend),n)u=i.backend.corePDFBridge.renderTile(p,f,new s.UL({width:f.width,height:f.height}),!0,!0).promise;else{const{annotationIds:e}=c,t=e.map((e=>i.annotations.get(e))).filter(Boolean).filter((e=>(0,v.x2)(e)&&(0,v.d)(e)&&!(e instanceof s.Jn||e instanceof s.On&&i.commentThreads.has(e.id)))).toList(),n=i.formFields.filter((e=>e.annotationIds.some((e=>{const t=i.annotations.get(e);return!(!t||t.pageIndex!==p)})))),o=(0,m.Qg)(n),a=t.reduce(((e,t)=>e.merge((0,v.Dc)(i.attachments,t))),(0,r.D5)()),l=i.digitalSignatures?.signatures?.filter((e=>n.some((t=>{let{name:n}=t;return n===e.signatureFormFQN}))));u=i.backend.corePDFBridge.renderTile(p,f,new s.UL({width:f.width,height:f.height}),!0,!0,{annotations:t,formFieldValues:o,attachments:a,signatures:l,formFields:n.toList()}).promise}let{element:y,release:w}=await u;if(a.push(w),"IMG"===y.nodeName){const e=y,t=document.createElement("canvas");t.width=f.width,t.height=f.height;const n=t.getContext("2d");(0,b.k)(n),n?.drawImage(e,0,0),y=t}const{renderPageCallback:x}=i;if("function"==typeof x){const e=y.getContext("2d");e?.scale(g,g),x(e,p,h)}const _=l.G6?h:d(h);y.style.cssText=`width: ${_.width}px !important;\nheight: ${_.height}px !important; display: none; filter: none; ${l.vU?"border: 1px solid transparent !important":""}`,o.push(y),e(T(p+1))}catch(e){throw c(),e}}try{(0,b.k)(document.body,"Printing requires a `<body>` tag in the main HTML layout.");const{pages:t}=i,n=function(e){let t;for(const[n,{pageSize:r}]of e.entries()){const e=r.width>r.height?"landscape":"portrait";if(0!==n){if(e!==t)return!0}else t=e}return!1}(t),r=p(document.body,o,t,n);M=()=>{c(),r()},await(h=()=>{if((0,g.il)(),window.focus(),l.b5){let e=!1;const t=()=>{e=!0,window.focus()},n=()=>{e=!1},r=()=>{e||(window.removeEventListener("focus",r),window.removeEventListener("beforeprint",t),window.removeEventListener("afterprint",n),M(),M=()=>{})};window.addEventListener("focus",r),window.addEventListener("beforeprint",t),window.addEventListener("afterprint",n)}window.print()},y=()=>{e((0,f.Zg)()),e(D()),e(T(null))},new Promise((e=>{const t=Date.now();setTimeout((()=>{h(),y();const n=Date.now()-t>500?25:18e4;setTimeout(e,n)}))})))}catch(e){throw e}finally{l.b5||(M(),M=()=>{})}var h,y}async function F(e,t,n){const r=t().backend;if((0,b.k)(r),!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.By,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.SR,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:navigator.plugins;const r=w[e].hasOwnProperty(t);let o="ios"===e;const i=/pdf/i;for(let e=0;e<n.length;e++)n[e].name.match(i)&&(o=!0);return r&&o}()||t().hasPassword)if("STANDALONE"===r.type&&"function"==typeof navigator.msSaveOrOpenBlob){const e=await r.exportPDF({flatten:!0,incremental:!1,includeComments:!1,saveForPrinting:!0,excludeAnnotations:n});navigator.msSaveOrOpenBlob(new Blob([e],{type:"application/pdf"}),"document.pdf")}else{const{promise:e}=r.getPDFURL({includeComments:!1,saveForPrinting:!0,excludeAnnotations:n});!function(e){const t=window.open(e,"_blank");t?(t.opener=null,t.focus()):(0,o.cM)("PSPDFKit: cannot open the PDF document in another window. You browser is probably blocking the popup.")}(await e)}else{e(P());try{await function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.SR,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((async(r,o)=>{const i=12e4;E();const a=document.documentElement;(0,b.k)(a,"Could not access document.documentElement");const s=e=>{e.dataset.pspdfkitPrint="true",e.style.position="absolute",e.style.bottom="0px",e.style.left="0px",e.style.width="0px",e.style.height="0px",e.style.border="none",e.setAttribute("type","application/pdf")},{promise:l,revoke:c}=e.generatePDFObjectURL({includeComments:!1,saveForPrinting:!0,excludeAnnotations:n});_=c;const u=await l;if("trident"===t){x=document.createElement("embed"),x.setAttribute("src",u),s(x),a.appendChild(x),x.focus();const e=Date.now();!function t(){const n=document.querySelector("embed[data-pspdfkit-print=true]");(0,b.k)(n,"element not found"),Date.now()-e>3e4&&(c(),o(new Error("timeout")));try{n.print(),r(),S=setTimeout(E,i)}catch(e){C=setTimeout(t,500)}}()}else try{x=document.createElement("iframe"),x.setAttribute("src",u),x.setAttribute("aria-hidden","true"),s(x),x.onload=()=>{(0,b.k)(x,"iframe.onload called without element"),(0,b.k)(x instanceof HTMLIFrameElement,"element must be of type iframe");const e=x.contentWindow;if("webkit"===t){const t=setInterval((()=>{"about:blank"!==e?.location.href&&"complete"===e?.document.readyState&&(clearInterval(t),x?.focus(),e?.print(),r(),S=setTimeout(E,i))}),100);setTimeout((()=>{clearInterval(t),o("Print failed: the document is taking too long to prepare"),E()}),5e3)}else x.focus(),e?.print(),r(),S=setTimeout(E,i)},a.appendChild(x)}catch(e){o(e),E()}}))}(r,void 0,n),e(D())}catch(t){e(D())}}}},31647:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var r=n(15359),o=n(95431),i=n(94732),a=n(34923);function s(e,t){return async(n,i)=>{const{backend:a,features:s}=i();try{(0,r.kG)(a),a.cancelRequests(),await a.applyRedactionsAndReload(),await(0,o.jX)(n,i,{features:s,pageKeys:l(i())})}catch(e){return t(e)}i().eventEmitter.emit("document.change",[]),e()}}function l(e){const{pages:t,annotations:n}=e,r=n.filter((e=>e instanceof i.Z)).map((e=>e.pageIndex)).toSet();return t.map((e=>r.includes(e.pageIndex)?(0,a.C)():e.pageKey))}},18287:(e,t,n)=>{"use strict";n.d(t,{M0:()=>d,Sc:()=>p,Xe:()=>s,_8:()=>o,ct:()=>l,dZ:()=>a,j8:()=>h,jL:()=>i,nJ:()=>u,t2:()=>f,tB:()=>c});var r=n(55012);function o(e){return{type:r.FH6,term:e}}function i(){return{type:r.$Jy}}function a(){return{type:r.gIV}}function s(){return{type:r.$hO}}function l(){return{type:r._AY}}function c(){return{type:r.Ifu}}function u(){return{type:r.nFn}}function d(e){return{type:r.F6q,isLoading:e}}function p(e){return{type:r.qZT,results:e}}function h(e){return{type:r.p1u,state:e}}function f(e){return{type:r.esN,provider:e}}},89637:(e,t,n)=>{"use strict";n.d(t,{Ab:()=>z,BO:()=>k,Df:()=>T,FP:()=>x,IP:()=>F,J4:()=>D,Oc:()=>O,Q2:()=>N,Sb:()=>M,VR:()=>I,Y1:()=>A,_:()=>V,_3:()=>j,d5:()=>S,fz:()=>P,mg:()=>B,mv:()=>L,oX:()=>R,td:()=>C,tu:()=>H,vR:()=>_});var r=n(67366),o=n(35369),i=n(15359),a=n(98179),s=n(45249),l=n(11192),c=n(12705),u=n(33427),d=n(35464),p=n(4087),h=n(31442),f=n(54103),m=n(55012),g=n(97238),v=n(6502),y=n(35727),b=n(67009),w=n(14935);const x=(e,t)=>n=>{n((0,d.Dm)()),n(((e,t)=>({type:m.f3N,textRange:e,inlineTextMarkupToolbar:t}))(e,t))},_=()=>(e,t)=>{(0,l.a7)(t().frameWindow),e({type:m.MOe})},S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.l4)(),t=arguments.length>1?arguments[1]:void 0;return{type:m._fK,newSelectedAnnotationsIds:e,annotationClass:t}},C=e=>(t,n)=>{const{annotations:r,selectedAnnotationIds:i}=n(),a=i.reduce(((e,t)=>{const n=r.get(t);return n?e.push(n):e}),(0,o.aV)());t(E(a)),t(S((0,o.l4)(),e))},E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.aV)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,o.aV)(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,o.aV)();return(r,o)=>{const i=o().currentItemPreset;e.forEach((e=>{e&&r((0,p.hQ)(e)),e&&!h.ZP[i]&&r((0,p.sF)(e.id))})),t.forEach((e=>{r((0,p.$d)(e)),i&&!h.ZP[i]&&r((0,p.pZ)(e.id,i))})),n.forEach((e=>{r((0,p.uk)(e))}))}},k=e=>(t,n)=>{const r=n();if(!r.currentTextSelection)return t(C(e)),void t(_());const i=r.annotations.filter((e=>r.selectedAnnotationIds.has(e.id))).mapEntries((e=>{let[,t]=e;return[null!=t.pageIndex?t.pageIndex:r.viewportState.currentPageIndex,null!=t.pageIndex?t:t.set("pageIndex",r.viewportState.currentPageIndex)]})),a=(0,g.Bx)(r,i,e),s=i.reduce(((e,t)=>a.find((e=>e.id===t.id))?e:e.push(t)),(0,o.aV)()),l=a.filter((e=>!r.selectedAnnotationIds.has(e.id))),c=a.filter((e=>r.selectedAnnotationIds.has(e.id)&&!e.equals(i.get(e.pageIndex))));t(E(s,l,c));const u=(0,o.l4)(a.map((e=>e.id)));t(S(u,e))},z=()=>(e,t)=>{const n=t();n.selectedAnnotationIds.toSeq().map((e=>n.annotations.get(e))).filter(Boolean).filter((e=>e instanceof s.gd?!e.text.value||""===e.text.value:(e instanceof s.Hi||e instanceof s.om)&&(!e.points||e.points.size<=1))).forEach((t=>{e((0,p.hQ)(t))}))},P=()=>(e,t)=>{(0,l.a7)(t().frameWindow),(0,r.dC)((()=>{e((0,d.Dm)()),e(z()),e((0,p.i0)()),e({type:m.MOe}),e({type:m.a33}),e((0,d.$z)()),e(K(null)),e((0,w.Ik)(null))})),t().annotationManager?.autoSave()},D=(e,t)=>(n,r)=>{const o=r(),a=o.annotations.filter(((t,n)=>e.includes(n))),u=(0,c.ix)(o),p=a.some((e=>e instanceof s.x_));(0,i.kG)(!p||u,"Widget annotations cannot be selected without the corresponding license feature nor without instant enabled.");const h=a.map((e=>e.id)).toSet();n((0,d.Dm)()),(0,l.a7)(o.frameWindow);const f=h.find((e=>o.commentThreads.has(e)));if(f){const e=o.commentThreads.get(f);(0,i.kG)(null!=e);(0,y._P)(e,o.comments)||n((0,d.mh)(f))}n({type:m._Yi,annotations:h,mode:t,selectedAnnotationShouldDrag:null}),n((0,d.$z)())},A=()=>({type:m.RvB}),T=(e,t)=>(n,r)=>{const{commentThreads:a,comments:s,annotationsGroups:l}=r();if(1===e.size){const r=l?.find((t=>{let{annotationsIds:n}=t;return n.has(e.first())}));if(r)return n(T(r.annotationsIds,t||null)),void n(K(r.groupKey))}e.forEach((e=>{if(a.has(e)){const t=a.get(e);(0,i.kG)(t);(0,y._P)(t,s)||n((0,d.mh)(e))}})),n(((e,t)=>({type:m._Yi,annotations:(0,o.l4)(e),mode:f.o.SELECTED,selectedAnnotationShouldDrag:t}))(e,t)),n((0,d.$z)())},I=e=>({type:m._Yi,annotations:(0,o.l4)([e]),mode:f.o.EDITING});function M(){return{type:m.c3G}}const R=e=>({type:m.TPT,id:e}),F=e=>({type:m.iyZ,id:e}),N=e=>({type:m.qh0,id:e}),O=e=>({type:m.rm,id:e}),j=e=>(t,n)=>{const{eventEmitter:r}=n();if(e){let t=!1;if(r.emit("annotationNote.hover",{preventDefault:()=>t=!0,annotationNote:e}),t)return}t({type:m.yyM,annotationNote:e})},L=e=>(t,n)=>{const{eventEmitter:r}=n();if(e){let t=!1;if(r.emit("annotationNote.press",{preventDefault:()=>t=!0,annotationNote:e}),t)return}t({type:m.vSH,annotationNote:e})},B=function(e,t){let{selectedAnnotationShouldDrag:n,preventDefault:i,stopPropagation:l,ignoreReadOnly:d,isAnnotationPressPrevented:h,clearSelection:f,longPress:m}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{selectedAnnotationShouldDrag:null,preventDefault:!1,stopPropagation:!1,ignoreReadOnly:!1,isAnnotationPressPrevented:void 0,clearSelection:!1,longPress:!1};return(g,y)=>{const w=y(),{selectedAnnotationIds:x,annotations:_,activeAnnotationNote:S,collapseSelectedNoteContent:C,interactionsDisabled:E,eventEmitter:k,formDesignMode:z,isMultiSelectionEnabled:D}=w,A=!!e&&(e instanceof s.Qi||(e instanceof s.Jn||e instanceof s.FV)&&e.isCommentThreadRoot);if(e?.locked&&!A)return;const I=x.size>1,M=t.shiftKey||a.Ni&&I;if(S&&g(L(null)),C&&g((0,p.i0)()),!d&&(E||e&&(!("action"in e)||!e.action)&&!e.additionalActions?.onPointerDown&&!e.isCommentThreadRoot&&(0,c.lV)(e,w)))return;if(void 0===h&&(h=!!e&&(0,u.TW)({annotation:e,nativeEvent:t.nativeEvent,selected:!1},k)),h)return;if((i||t.hasOwnProperty("type")&&"keypress"===t.type)&&t.preventDefault(),l&&t.stopPropagation(),f&&g(P()),!e)return;if(M){if(_.get(x.first())?.pageIndex!==e.pageIndex)return}const R=x.has(e.id);if("action"in e&&e.action&&!m&&!R&&!M)return void g((0,v.oo)(e));if("additionalActions"in e&&e.additionalActions?.onPointerDown)return void g((0,v.TU)(e,"onPointerDown"));const F=!(0,b.Zt)(w,e)&&(!(e instanceof s.x_)||z);if(!F)return;const N=w.annotationsGroups.find((t=>{let{annotationsIds:n}=t;return n.has(e.id)}));if(R||!F||M||N){if(M&&D){if(R)return g(T(x.remove(e.id),n||null)),void g(K(null));if(N)return void(0,r.dC)((()=>{g(T(w.selectedAnnotationIds.merge(N.annotationsIds),n||null)),g(K(null))}));if(!R&&!N)return g(T(x.add(e.id),n||null)),void g(K(null))}if(!M){if(!R&&!N)return void(0,r.dC)((()=>{g(P()),g(T((0,o.l4)([e.id]),n||null))}));R||!N||I||(0,r.dC)((()=>{g(T(N.annotationsIds,n||null)),g(K(N.groupKey))}))}}else(0,r.dC)((()=>{g(P()),g(T((0,o.l4)([e.id]),n||null))}))}},K=e=>({type:m.t$K,groupId:e}),V=e=>({type:m.vBn,pullToRefreshNewState:e}),H=e=>({type:m.L2A,inlineTextSelectionToolbarItemsCallback:e})},21693:(e,t,n)=>{"use strict";n.d(t,{Bm:()=>y,T6:()=>m,Th:()=>f,de:()=>b,l5:()=>g,nR:()=>v});var r=n(35369),o=n(15359),i=n(55012),a=n(54662),s=n(55441),l=n(90569),c=n(13205),u=n(33427),d=n(2841),p=n(17078),h=n(4087);function f(e,t){let{signatureRect:n,signaturePageIndex:p}=t,{hash:h,attachment:f}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(t,m)=>{null===p&&(p=m().viewportState.currentPageIndex),(0,o.kG)("number"==typeof p,"Page index for a signature should be a number.");const g=m().pages.get(p);(0,o.kG)(g,`Cannot find page at index ${p}`);const v=g.pageSize;let y,b=e.withMutations((e=>{const t=(0,u.lx)(m());Object.keys(t).forEach((n=>{e.set(n,t[n])})),e.set("pageIndex",p),e.set("isSignature",!0)}));if(n){b=b.set("boundingBox",b.boundingBox.set("top",0).set("left",0)),b=(0,s.o)(b,new l.Z({width:n.width,height:n.height}),!0);const{boundingBox:e}=b,t=n.left+(n.width-e.width)/2,r=n.top+(n.height-e.height)/2;y=new c.Z({x:t,y:r})}else if(!b.boundingBox.top&&!b.boundingBox.left){const{boundingBox:e}=b;y=new c.Z({x:v.width/2-e.width/2,y:v.height/2-e.height/2})}y&&(b=(0,a.c)(b,y,v,new c.Z));const w={annotations:(0,r.aV)([b]),reason:d.f.SELECT_END};m().eventEmitter.emit("annotations.willChange",w),t({type:i.mGH,signature:b}),m().annotationManager?.createObject(b,{attachments:h&&f?(0,r.D5)([[h,f]]):(0,r.D5)()}),m().annotationManager?.autoSave()}}function m(e,t){return(n,r)=>{const o=e.merge({id:null,name:null,pageIndex:0});t&&n({type:i.W0l,annotation:o}),r().eventEmitter.emit("inkSignatures.create",o),r().eventEmitter.emit("inkSignatures.change"),r().eventEmitter.emit("storedSignatures.create",o),r().eventEmitter.emit("storedSignatures.change")}}function g(e,t,n,r){let{dimensions:o,hash:i,attachment:a,file:s}=e,{signatureRect:l,signaturePageIndex:c}=r;return(e,r)=>{let d;e((0,h.Ds)("image")),d=s instanceof File?(0,u.om)(r(),o,i,s.type,s.name):(0,u.om)(r(),o,i,"image/png"),d=d.set("isSignature",!0),e((0,p.O)({hash:i,attachment:a})),e(f(d,{signatureRect:l,signaturePageIndex:c},{hash:i,attachment:a})),t&&e(m(d,n))}}function v(e){return{type:i.Kw7,annotations:e}}function y(e,t){return(n,r)=>{t&&n({type:i.Kc8,annotation:e}),r().eventEmitter.emit("inkSignatures.delete",e),r().eventEmitter.emit("inkSignatures.change"),r().eventEmitter.emit("storedSignatures.delete",e),r().eventEmitter.emit("storedSignatures.change")}}function b(){return async(e,t)=>{const{populateStoredSignatures:n}=t().signatureState;e(v(await n()))}}},20253:(e,t,n)=>{"use strict";n.d(t,{De:()=>o,LT:()=>a,v1:()=>i});var r=n(55012);const o=e=>({type:r.aWu,toolbarItems:e}),i=e=>({type:r.T3g,annotationToolbarItemsCallback:e}),a=e=>({type:r.A8G,height:e})},739:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(96156),o=n(67294),i=n(45249),a=n(40163),s=n(59140),l=n(98179),c=n(21853),u=n(47460),d=n.n(u),p=n(37390),h=n.n(p),f=n(48947),m=n.n(f),g=n(24322),v=n(14935);const y=(0,l.yx)(),b="data:image/svg+xml;base64,"+globalThis.btoa(h()),w="data:image/svg+xml;base64,"+globalThis.btoa(m());class x extends o.Component{constructor(){super(...arguments),(0,r.Z)(this,"shouldComponentUpdate",a.O),(0,r.Z)(this,"position",null),(0,r.Z)(this,"rect",null),(0,r.Z)(this,"state",{isDrawing:!1,isPenUser:!1,explicitScroll:!1,clientX:0,clientY:0,canAutoCloseShape:!1}),(0,r.Z)(this,"_drawingAreaEl",null),(0,r.Z)(this,"lastClickTime",null),(0,r.Z)(this,"_drawingAreaRef",(e=>{this._drawingAreaEl=e,e&&l.TL&&this._drawingAreaEl?.addEventListener("touchmove",c.PF)})),(0,r.Z)(this,"onUnmount",(()=>{this._drawingAreaEl&&l.TL&&this._drawingAreaEl?.removeEventListener("touchmove",c.PF),this._drawingAreaEl=null})),(0,r.Z)(this,"_handlePointerDown",(e=>{let t=!0;if(y&&this.props.canScrollWhileDrawing&&("pen"!==e.pointerType||this.state.isPenUser?"touch"===e.pointerType&&this.state.isPenUser&&(this.setState({explicitScroll:!0,clientX:e.clientX,clientY:e.clientY}),t=!1):this.setState({explicitScroll:!1,isPenUser:!0})),this.state.isDrawing)return void this._handlePointerUp();if(!e.isPrimary)return;if(!this._drawingAreaEl)return;this.rect=this._drawingAreaEl.getBoundingClientRect(),e.stopPropagation();const n=new i.E9({x:e.clientX,y:e.clientY}),r=this.position&&n.distance(this.position)<=10;this.position=n,this._buffer=[],this.setState({isDrawing:!0}),(this.props.currentAnnotation instanceof i.om||this.props.currentAnnotation instanceof i.Hi)&&this.props.dispatch?.((0,v.Ik)(null));const{onDrawStart:o,onDoubleClick:a}=this.props,s=(new Date).getTime();if(this.lastClickTime&&a&&s-this.lastClickTime<500&&r)return a(this._transformPoint(n)),void(this.lastClickTime=null);this.lastClickTime=s,t&&o&&o(this._transformPoint(n),n)})),(0,r.Z)(this,"_buffer",[]),(0,r.Z)(this,"_throttleMove",_()),(0,r.Z)(this,"_throttleUp",_()),(0,r.Z)(this,"_handlePointerMove",(e=>{if(this.state.explicitScroll){const t={x:e.clientX,y:e.clientY},n={x:this.state.clientX,y:this.state.clientY};return requestAnimationFrame((()=>{if(this.props.scrollElement){const e=this.props.scrollElement.scrollTop+(n.y-t.y),r=this.props.scrollElement.scrollLeft+(n.x-t.x);this.props.scrollElement.scrollTop=e,this.props.scrollElement.scrollLeft=r}})),void this.setState({clientX:t.x,clientY:t.y})}this._handleDrawLine(e),this._handleCursorMove(e)})),(0,r.Z)(this,"_handleCursorMove",(e=>{if(this.props.currentAnnotation instanceof i.om||this.props.currentAnnotation instanceof i.Hi){if(!this.props.defaultAutoCloseThreshold)return;const t=new i.E9({x:e.clientX,y:e.clientY}),n=this.props.currentAnnotation.points,r=n.last(),o=this._transformPoint(t);if(r&&o&&this.props.dispatch?.((0,v.Ik)({lines:[{start:r,end:o}],pageIndex:this.props.currentAnnotation.pageIndex})),n&&n.size<3)return;const a=(0,g.KM)(this.props.currentAnnotation,0,this.props.defaultAutoCloseThreshold,new i.E9({x:o.x,y:o.y}));-1!==a&&a!==n.size-1?(this.setState({canAutoCloseShape:!0}),this.props.dispatch?.((0,v.Ik)({lines:[{start:r,end:n.get(a)}],pageIndex:this.props.currentAnnotation.pageIndex}))):this.setState({canAutoCloseShape:!1})}})),(0,r.Z)(this,"_handlePointerUp",(e=>{e&&!e.isPrimary||(e&&e.stopPropagation(),this.setState({isDrawing:!1}),this.state.isPenUser&&"touch"==e?.pointerType?this.setState({explicitScroll:!1}):this._throttleUp((()=>{const{onDrawEnd:e}=this.props;this._drawingAreaEl&&(this.rect=this._drawingAreaEl.getBoundingClientRect(),this._buffer=[],this.position&&e&&e(this._transformPoint(this.position)))})))})),(0,r.Z)(this,"_defaultTransformPoint",(e=>{if(!this.rect)return e;const t=this.props.size.width/this.rect.width,n=this.props.size.height/this.rect.height,r="number"==typeof this.rect.x?this.rect.x:this.rect.left,o="number"==typeof this.rect.y?this.rect.y:this.rect.top;return new i.Wm({x:e.x-r,y:e.y-o}).scale(t,n)})),(0,r.Z)(this,"_transformPoint",(e=>this._clipPointToContainerBounds((this.props.transformPoint||this._defaultTransformPoint)(new i.Wm({x:e.x,y:e.y})))))}render(){return o.createElement(s.Z,{onPointerDown:this._handlePointerDown,onRootPointerMove:this.state.isDrawing?this._handlePointerMove:this._handleCursorMove,onRootPointerUpCapture:this.state.isDrawing?this._handlePointerUp:void 0,interactionMode:this.props.interactionMode},o.createElement("div",{"data-testid":"drawcomponent",role:"application"},o.createElement("div",{className:d().layer,style:(this.props.currentAnnotation instanceof i.om||this.props.currentAnnotation instanceof i.Hi)&&!l.G6?{cursor:this.state.canAutoCloseShape?`url(${w}) 6 6, auto`:`url(${b}) 6 6, auto`}:{},ref:this._drawingAreaRef})))}_handleDrawLine(e){e.preventDefault(),e.stopPropagation();const t=new i.E9({x:e.clientX,y:e.clientY});if(t.equals(this.position))return;this.position=t;const{onDrawCoalesced:n}=this.props;if(n){const t=e.getCoalescedEvents();this._buffer=this._buffer.concat(t),this._throttleMove((()=>{const[e,t]=this._buffer.reduce(((e,t)=>{const n=new i.E9({x:t.clientX,y:t.clientY});return e[0].push(this._transformPoint(n)),e[1].push(n),e}),[[],[]]);this._buffer=[],n(e,t)}))}}_clipPointToContainerBounds(e){if(this._isPointWithinContainer(e))return e;const{size:t}=this.props;return e.x>t.width&&(e=e.set("x",t.width)),e.x<0&&(e=e.set("x",0)),e.y>t.height&&(e=e.set("y",t.height)),e.y<0&&(e=e.set("y",0)),e}_isPointWithinContainer(e){const{size:t}=this.props;return new i.UL({width:t.width,height:t.height}).isPointInside(e)}}function _(){let e;return t=>{e||requestAnimationFrame((()=>{const t=e;e=null,t()})),e=t}}},2877:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(96156),o=n(15359),i=n(67294),a=n(94184),s=n.n(a),l=n(72322),c=n(21853),u=n(84008),d=n.n(u);class p extends i.PureComponent{constructor(){var e;super(...arguments),e=this,(0,r.Z)(this,"_cancelImagePromise",null),(0,r.Z)(this,"_throttledFetchImage",(0,l.Z)(this._fetchImage,"number"==typeof this.props.throttleTimeout?this.props.throttleTimeout:2e3,!0)),(0,r.Z)(this,"imageRef",i.createRef()),(0,r.Z)(this,"_replaceImage",(function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.imageRef.current?(e.imageRef.current.appendChild(t.element),setTimeout((()=>t.release()),500),e.imageRef.current&&e.imageRef.current.children.length>1&&e.imageRef.current.removeChild(e.imageRef.current.firstChild),e.props.onRenderFinished&&e.props.onRenderFinished(),n&&e._throttledFetchImage()):t.release()})),(0,r.Z)(this,"_onImageAvailable",(function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{label:r,visible:i}=e.props,a=t.element;a&&e.imageRef.current&&a!==e.imageRef.current.firstChild&&(a.setAttribute("alt",r||""),i||a.setAttribute("role","presentation"),(0,c.sR)(a).then((()=>requestAnimationFrame((()=>e._replaceImage(t,n))))).catch((t=>{(0,o.vU)(t),e.props.onError&&e.props.onError(t)})))}))}componentDidMount(){this._throttledFetchImage()}refresh(){this._throttledFetchImage()}refreshSkippingThrottle(){this._fetchImage()}async _fetchImage(){let e;this._cancelOutstandingRequests();const{promise:t,isProvisional:n,cancel:r}=this.props.fetchImage();this._cancelImagePromise=r;try{e=await t,e?this._onImageAvailable(e,n):this.props.onError?.()}catch(e){(0,o.vU)(e),r(e),this.props.onError?.(e)}this._cancelImagePromise=null}_cancelOutstandingRequests(){this._cancelImagePromise&&this._cancelImagePromise()}componentWillUnmount(){this._cancelOutstandingRequests()}render(){const{className:e,rectStyle:t}=this.props;return i.createElement("div",{className:s()(d().root,e),style:t,ref:this.imageRef})}}},21655:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(22122),o=n(20144),i=n(67294),a=n(94184),s=n.n(a),l=n(83882),c=n(86849),u=n(44077),d=n(98179),p=n(16989),h=n.n(p);function f(e){const{pageIndex:t,cssPrefix:n,renderItemCallback:o,itemState:a,clickDisabled:u,onItemPress:p,onItemFocus:f,size:m,itemScale:g,thumbnailSize:v,thumbnailHeight:y}=e,b={...m.toJS(),paddingTop:32*g,paddingRight:32*g,paddingBottom:24*g,paddingLeft:32*g},[,w]=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0;const[r,o]=i.useState(null),[a,s]=i.useState(!1),l=e=>{t||s(e)};function c(){n=Date.now(),l(!1)}return[a,{onTouchStart(){n=Date.now(),l(!0)},onTouchEnd:c,onTouchCancel:c,onMouseEnter(){Date.now()-n>500&&l(!0)},onMouseLeave(){l(!1)},onMouseDown(e){o(e)},onPointerDown(e){o(e)},onClick(t){r&&r.clientX===t.clientX&&r.clientY===t.clientY&&(e(t),o(null))}}]}((()=>{a.dragging||p(t)})),{item:x,label:_,props:S}=o(t,v,y),C=s()(h().thumbnail,n+"-Thumbnails-Page-Image",{[h().thumbnailClickDisabled]:u,[h().thumbnailSelected]:a.selected,[h().thumbnailBeingDragged]:a.dragging});return i.createElement("div",(0,r.Z)({style:b,className:s()(h().column,n+"-Thumbnails-Page",h()[`engine-${d.SR}`],{[n+"-Thumbnails-Page-Selected"]:a.selected}),"data-testid":"grid-column","data-page-index":t},S),i.createElement("div",{style:{width:v,height:v},className:h().columnPreview},e.clickDisabled?i.createElement("div",{className:C},x):i.createElement(l.Z,(0,r.Z)({is:"div",className:C,"aria-label":`Select Page ${_}`,"aria-pressed":a.selected,onKeyPress:e=>{const{charCode:n}=e;n===c.tW&&p(t)},onFocus:()=>f(t),onBlur:()=>f(null),ref:a.itemRef},"object"==typeof w&&w),x)),i.createElement("div",{style:{height:24,maxWidth:v,marginTop:16*g,lineHeight:"24px"},className:s()(h().label,n+"-Thumbnails-Page-Label",{[h().labelSelected]:a.selected})},_))}const m=e=>{const{cssPrefix:t,clickDisabled:n,width:r,moveCursor:a,thumbnailHeight:l,containerOffset:c,gridContainerEl:d}=e;let{itemScale:p}=e;const[m,g]=i.useState(null);p=Math.min(p,(r-15)/(l+32+32)),p=Math.max(p,.01);const v=i.useMemo((function(){return new u.$u({width:p*(l+32+32),height:p*(l+32+24+16)+24})}),[p,l]),y=l*p,b=a?"left"===a.position?a.pageIndex:a.pageIndex+1:void 0;return i.createElement(o.FE,{width:e.width,height:e.height,canInsert:e.canInsert,draggingEnabled:!!e.onItemsMove&&!n,totalItems:e.totalItems,itemWidth:v.width,itemHeight:v.height,itemPaddingLeft:32*p,itemPaddingRight:32*p,renderItem:(r,o)=>i.createElement(f,{selectedItemIndexes:e.selectedItemIndexes,size:v,itemScale:p,pageIndex:r,itemState:o,cssPrefix:t,clickDisabled:n||!1,renderItemCallback:e.renderItemCallback,onItemPress:e.onItemPress,onItemFocus:e=>g(e),thumbnailHeight:l,thumbnailSize:y}),itemKey:e.itemKeyCallback,renderDragPreview:e.renderDragPreviewCallback?(t,n)=>e.renderDragPreviewCallback?e.renderDragPreviewCallback(n,t,y,l):null:void 0,renderInsertionCursor:(e,t)=>{const n={top:32*p+1,height:l*p-1};return i.createElement("div",{style:n,className:s()(h().moveCursor,{[h().moveCursorDisabled]:!e})},null!=a?.previewContent&&i.createElement("div",{className:s()(h().moveCursorPreview,{[h().moveCursorPreviewEnd]:t})},a.previewContent))},onDragEnd:e.onItemsMove,selectedItemIndexes:e.selectedItemIndexes,insertionIndex:b,focusedItemIndex:m,containerOffset:c,gridContainerEl:d})}},53261:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(22122),o=n(67294);function i(e){let{src:t,...n}=e;const i=o.useRef(null);return o.useEffect((function(){if(i.current){const e=i.current.childNodes[0];"function"==typeof e.setAttribute&&e.setAttribute("focusable","false")}}),[]),o.createElement("span",(0,r.Z)({},n,{dangerouslySetInnerHTML:{__html:t},ref:i}))}},12559:(e,t,n)=>{"use strict";n.d(t,{O:()=>c});var r=n(67294);const o={strokeDasharray:100},i={...o,fill:"none"},a=e=>r.createElement("polygon",{points:"0.5,2 0.5,0.5 3.5,0.5 3.5,3.5 0.5,3.5 0.5,2",style:{...e,...o}}),s=e=>r.createElement("circle",{cx:"2",cy:"2",r:"1.5",style:{...e,...o}}),l=e=>r.createElement("line",{x1:"0",y1:"2",x2:"4",y2:"2",style:{...e,...i}}),c={none:{startElement:l,endElement:l,width:4},square:{startElement:a,endElement:a,width:3.5},circle:{startElement:s,endElement:s,width:3.5},diamond:{startElement:e=>r.createElement("polygon",{points:"3.5,2 2.25,3.25 1,2 2.25,0.75 3.5,2 4,2",style:{...e,...o}}),endElement:e=>r.createElement("polygon",{points:"0.75,2 2,0.75 3.25,2 2,3.25 0.75,2 0.25,2",style:{...e,...o}}),width:3.5},openArrow:{startElement:e=>r.createElement("polyline",{points:"4.25,0.5 1.25,2 4.25,3.5 1.25,2 4.75,2",style:{...e,...i}}),endElement:e=>r.createElement("polyline",{points:"0.25,0.5 3.25,2 0.25,3.5 3.25,2 -0.25,2",style:{...e,...i}}),width:3.75},closedArrow:{startElement:e=>r.createElement("polygon",{points:"3.75,2 3.75,0.75 1.25,2 3.75,3.25 3.75,2 4.75,2",style:{...e,...o}}),endElement:e=>r.createElement("polygon",{points:"0.75,2 0.75,0.75 3.25,2 0.75,3.25 0.75,2 -0.75,2",style:{...e,...o}}),width:3.75},butt:{startElement:e=>r.createElement("line",{x1:"3.75",y1:"0.5",x2:"3.75",y2:"3.5",style:{...e,...i}}),endElement:e=>r.createElement("line",{x1:"0.5",y1:"0.5",x2:"0.5",y2:"3.5",style:{...e,...i}}),width:.5},reverseOpenArrow:{startElement:e=>r.createElement("polyline",{points:"1,0.5 4,2 1,3.5",style:{...e,...i}}),endElement:e=>r.createElement("polyline",{points:"3.25,0.5 0.25,2 3.25,3.5",style:{...e,...i}}),width:3},reverseClosedArrow:{startElement:e=>r.createElement("polygon",{points:"4,2 1.5,3.25 1.5,0.75",style:{...e,...o}}),endElement:e=>r.createElement("polygon",{points:"0.25,2 2.75,3.25 2.75,0.75",style:{...e,...o}}),width:2.75},slash:{startElement:e=>r.createElement("polyline",{points:"3.25,0.5 2.25,3.75 2.85,2 3.75,2",style:{...e,...i}}),endElement:e=>r.createElement("polyline",{points:"1.85,0.5 0.85,3.75 1.25,2 0.35,2",style:{...e,...i}}),width:1.5}}},29911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(67294),o=n(94184),i=n.n(o),a=n(44032),s=n.n(a);function l(e){let{scale:t=1,rotate:n=0}=e;const[o,a]=r.useState(!1);r.useEffect((()=>{const e=setTimeout((()=>{a(!0)}),400);return()=>{clearTimeout(e)}}),[]);const l=`scale(${t})`,c={transform:n?`rotate(${n}deg) ${l}`:l,transformOrigin:"center center"};return r.createElement("div",{style:c,className:i()("PSPDFKit-Loading-Indicator",s().loader,{[s().loaderShown]:o})},r.createElement("div",{className:s().loaderDot}),r.createElement("div",{className:s().loaderDot}),r.createElement("div",{className:s().loaderDot}))}},80444:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(96156),o=n(67366),i=n(67294),a=n(84293),s=n(93113),l=n(11192),c=n(98179),u=n(2464),d=n(40084),p=n(45249),h=n(87849),f=n(82716);const m=(0,h.Yw)(),g={onPinchStart:"pinchstart",onPinchIn:"pinchin",onPinchOut:"pinchout",onPinchCancel:"pinchcancel",onPinchEnd:"pinchend",onSwipeLeft:"swipeleft",onSwipeRight:"swiperight",onDoubleTap:"doubletap"};function v(e,t,n){t&&Object.keys(t).forEach((r=>{const o=g[r];!o||"function"!=typeof t[r]||n&&"function"==typeof n[r]&&n[r]===t[r]||e.off(o,t[r])})),n&&(n.enablePinch&&e.get("pinch").set({enable:!0,threshold:.3}),n.onDoubleTap&&e.get("doubletap").set({posThreshold:50}),Object.keys(n).forEach((r=>{const o=g[r];!o||"function"!=typeof n[r]||t&&"function"==typeof n[r]&&n[r]===t[r]||e.on(o,n[r])})))}class y extends i.Component{constructor(){super(...arguments),(0,r.Z)(this,"_handleRef",(e=>{e&&((0,f.k)("string"==typeof e.nodeName,"TRC requires a basic HTML element as children. This looks like a custom react component."),this._refElement=e)}))}componentDidMount(){this.initializeHammer(),v(this._hammer,null,this.props)}initializeHammer(){this._hammer=new m(this._refElement,{touchAction:"pan-x pan-y"}),this._refElement.style.msTouchSelect="initial"}componentDidUpdate(e){this._hammer&&v(this._hammer,e,this.props)}componentWillUnmount(){v(this._hammer,this.props,null),this._hammer&&(this._hammer.stop(),this._hammer.destroy()),this._hammer=null}render(){const e=i.Children.only(this.props.children);return(0,f.k)(!e.ref,"TRC requires the child element to not have a `ref` assigned. Consider inserting a new `<div>` in between."),i.cloneElement(e,{ref:this._handleRef})}}const b=!n(87856).Gn||{passive:!1,capture:!0};class w extends i.Component{constructor(){super(...arguments),(0,r.Z)(this,"_trackpadRef",i.createRef()),(0,r.Z)(this,"_hasWheelEventStarted",!1),(0,r.Z)(this,"_currentWheelTimeout",null),(0,r.Z)(this,"_lastScale",1),(0,r.Z)(this,"_handleWheel",(e=>{if(!this.props.enableAlwaysScrollToZoom&&!e.ctrlKey)return;e.preventDefault(),e.stopPropagation(),this._currentWheelTimeout&&clearTimeout(this._currentWheelTimeout),this._currentWheelTimeout=setTimeout((()=>{this.props.onPinchEnd(),this._hasWheelEventStarted=!1,this._lastScale=1}),250);const t=function(e,t){return{center:{x:e.clientX,y:e.clientY},scale:t-e.deltaY/120,pointerType:"mouse",preventDefault:e.preventDefault,srcEvent:e}}(e,this._lastScale);let n=1;n=t.scale>1?1.05*this._lastScale:.95*this._lastScale,t.scale=n,n*this.props.zoomLevel>this.props.minZoomLevel&&n*this.props.zoomLevel<this.props.maxZoomLevel&&(this._hasWheelEventStarted||(this.props.onPinchStart(t),this._hasWheelEventStarted=!0),this._lastScale=n,this.props.onPinch(t))})),(0,r.Z)(this,"_handleGestureStart",(e=>{e.preventDefault(),this.props.onPinchStart(x(e))})),(0,r.Z)(this,"_handleGestureChange",(e=>{e.preventDefault(),this.props.onPinch(x(e))})),(0,r.Z)(this,"_handleGestureEnd",(e=>{e.preventDefault(),this.props.onPinchEnd(x(e))}))}componentDidMount(){const{current:e}=this._trackpadRef;if(e){const t=e.ownerDocument;t.addEventListener("wheel",this._handleWheel,b),"ios"!==c.By&&(t.addEventListener("gesturestart",this._handleGestureStart),t.addEventListener("gesturechange",this._handleGestureChange),t.addEventListener("gestureend",this._handleGestureEnd))}}componentWillUnmount(){const{current:e}=this._trackpadRef;if(e){const t=e.ownerDocument;t.removeEventListener("wheel",this._handleWheel,b),"ios"!==c.By&&(t.removeEventListener("gesturestart",this._handleGestureStart),t.removeEventListener("gesturechange",this._handleGestureChange),t.removeEventListener("gestureend",this._handleGestureEnd))}}render(){return i.createElement("div",{ref:this._trackpadRef},this.props.children)}}function x(e){return{center:{x:e.clientX,y:e.clientY},scale:e.scale,pointerType:"mouse",preventDefault:e.preventDefault,srcEvent:e}}class _ extends i.Component{constructor(){super(),(0,r.Z)(this,"_zoomLayerRef",i.createRef()),(0,r.Z)(this,"_handleDoubleTap",(e=>{if("touch"!==e.pointerType)return;const{viewportState:t}=this.props,{viewportRect:n,zoomLevel:r}=t;this._startZooming();const o=new p.E9({x:e.center.x,y:e.center.y}).translate(n.getLocation().scale(-1)),i=this.props.viewportState.scrollMode===u.G.PER_SPREAD||this.props.viewportState.scrollMode===u.G.DISABLED?(0,a.vw)(t):(0,a.kh)(t),s=r>i?i:1.5*r,l=(0,a.cq)(t,s,{zoomCenter:o});this.setState({nextViewportState:l,shouldAnimate:!0}),this._callEndZoomingAfterTransition(l)})),(0,r.Z)(this,"_handlePinchStart",(e=>{const{viewportState:t}=this.props,{viewportRect:n}=t;this._startZooming(),this._touchZoomCenter=new p.E9({x:e.center.x,y:e.center.y}).translate(n.getLocation().scale(-1))})),(0,r.Z)(this,"_handlePinch",(e=>{this._isZooming&&(this._lastPinchScale=e.scale,this.requestAnimationFrameId||(this.requestAnimationFrameId=window.requestAnimationFrame(this._renderNextFrame)),null!==this._pinchResetTimeoutId&&clearTimeout(this._pinchResetTimeoutId),this._pinchResetTimeoutId=setTimeout((()=>this._handlePinchEnd()),2e3))})),(0,r.Z)(this,"_handlePinchEnd",(()=>{if(!this._isZooming)return;null!==this._pinchResetTimeoutId&&(clearTimeout(this._pinchResetTimeoutId),this._pinchResetTimeoutId=null);const{viewportState:e}=this.props,{zoomLevel:t}=e;if(!this._touchZoomCenter)return;this.requestAnimationFrameId&&(window.cancelAnimationFrame(this.requestAnimationFrameId),this.requestAnimationFrameId=null);const n=t*this._lastPinchScale,r=(0,a.cq)(e,n,{zoomCenter:this._touchZoomCenter});this.state.nextViewportState&&(0,a.hT)(this.state.nextViewportState)?(this.setState({nextViewportState:r,shouldAnimate:!0}),this._callEndZoomingAfterTransition(r)):this._zoomComplete(r)})),(0,r.Z)(this,"_renderNextFrame",(()=>{const{viewportState:e}=this.props,{zoomLevel:t}=e,n=t*this._lastPinchScale,r=(0,a.cq)(e,n,{zoomCenter:this._touchZoomCenter,unbounded:!0});this.setState({nextViewportState:r}),this.requestAnimationFrameId=null})),(0,r.Z)(this,"_zoomComplete",(e=>{(0,o.dC)((()=>{this.props.dispatch((0,d.nr)(e)),this._endZooming()}))})),this._touchZoomCenter=new p.E9,this._isZooming=!1,this.state={shouldAnimate:!1,nextViewportState:null},this.requestAnimationFrameId=null}render(){const{children:e,viewportState:t}=this.props,{nextViewportState:n}=this.state,r=(0,s.G4)(t);let o={transformOrigin:"0 0",width:r.width+t.viewportPadding.x,height:r.height+t.viewportPadding.y};if(n){const e=n.scrollPosition.scale(n.zoomLevel).translate(t.scrollPosition.scale(-t.zoomLevel)),r=(0,s.G4)(n).translate(e.scale(-1)),i=n.zoomLevel/t.zoomLevel;o={...o,transform:`translate(${r.left}px, ${r.top}px)\n                    scale(${i}, ${i})`,willChange:"transform",transition:this.state.shouldAnimate?"transform 150ms ease-in":""}}else o={...o,transform:`translate(${Math.ceil(r.left)}px, ${Math.ceil(r.top)}px)`};return i.createElement(w,{onPinchStart:this._handlePinchStart,onPinch:this._handlePinch,onPinchEnd:this._handlePinchEnd,zoomLevel:this.props.viewportState.zoomLevel,minZoomLevel:(0,a.Yo)(this.props.viewportState),maxZoomLevel:(0,a.Sm)(this.props.viewportState),enableAlwaysScrollToZoom:this.props.viewportState.enableAlwaysScrollToZoom},i.createElement(y,{onPinchStart:this._handlePinchStart,onPinchIn:this._handlePinch,onPinchOut:this._handlePinch,onPinchEnd:this._handlePinchEnd,onPinchCancel:this._handlePinchEnd,onDoubleTap:this._handleDoubleTap,enablePinch:!0},i.createElement("div",null,i.createElement("div",{ref:this._zoomLayerRef,style:o,className:"PSPDFKit-Zoom"},e))))}_callEndZoomingAfterTransition(e){this._removeAnimationEventListener();const t=this._zoomComplete.bind(this,e);this._zoomCompleteFn=t,this._zoomLayerRef.current&&this._zoomLayerRef.current.addEventListener("transitionend",this._zoomCompleteFn),setTimeout((()=>{this._zoomCompleteFn&&t===this._zoomCompleteFn&&this._zoomCompleteFn()}),250)}_startZooming(){if(!this._isZooming&&(this._isZooming=!0,"gecko"===c.SR&&"windows"===c.By&&this._zoomLayerRef.current)){const{defaultView:e}=this._zoomLayerRef.current.ownerDocument;(0,l.a7)(e)}}_endZooming(){this._resetState()}_resetState(){this.setState({shouldAnimate:!1,nextViewportState:null}),this._lastPinchScale=1,this._touchZoomCenter=new p.E9,this._isZooming=!1,this._removeAnimationEventListener()}_removeAnimationEventListener(){this._zoomLayerRef.current&&this._zoomLayerRef.current.removeEventListener("transitionend",this._zoomCompleteFn),this._zoomCompleteFn=null}}},3962:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>J,getDocumentKeyForReferencePoints:()=>Q,messages:()=>ee});var r,o,i,a,s,l,c,u,d=n(67294),p=n(73935),h=n(24021),f=n(52163),m=n(79112),g=n(29911),v=n(22122),y=n(67665),b=n(94184),w=n.n(b),x=n(67366),_=n(80444),S=n(739),C=n(53261),E=n(44077),k=n(68540),z=n(92744),P=n(48625),D=n(15164),A=n(85944),T=n(98179),I=n(28735),M=n.n(I);const R=(0,T.b1)(),F=R?{x:31.25,y:13}:{x:12.5,y:-4},N=e=>{const{viewportState:t,backend:r,scrollElement:o,styles:i,currentDocumentKey:a,referencePoints:s,addReferencePoint:l,page:c,isAutoCompare:u,interactionMode:p}=e,{formatMessage:f}=(0,h.YB)(),g=(0,k.tm)(),[v,b]=d.useState(!1),T=d.useRef(null),I=(0,k.R9)((e=>{R?(v||b(!0),T.current&&clearTimeout(T.current),T.current=setTimeout((()=>{T.current=null,g()&&b(!1)}),300)):e()})),N=a!==m.Q.result?a===m.Q.documentA?s.slice(0,3):s.slice(3,6):[],O=s.length<6&&N.filter(Boolean).length<3&&!u&&p!==P.A.PAN&&(a===m.Q.documentA&&s.length<3||a===m.Q.documentB&&s.length>=3),L={width:c.pageSize.width*t.zoomLevel,height:c.pageSize.height*t.zoomLevel},B=d.useRef(null),K=w()({"PSPDFKit-Page":!0,[`PSPDFKit-Page-Rotation-${t.pagesRotation}-degree`]:!0,[i.page]:!0,[i["deg-"+t.pagesRotation]]:!0}),V=(0,k._x)(),H=(0,x.v9)((e=>e.showToolbar))?A.k3:0,$=(0,k.R9)((()=>{l(V(new E.Wm({x:t.viewportRect.width/2+2,y:t.viewportRect.height/2+H})))})),U={inViewport:!0,page:c,backend:r,shouldPrerender:!0,zoomLevel:t.zoomLevel,rotation:t.pagesRotation,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,documentHandle:a,viewportRect:t.viewportRect,forceDetailView:!1,renderPagePreview:e.renderPagePreview,isPageSizeReal:!0,crispTiles:!0,inContentEditorMode:!1},Z=(0,x.v9)((e=>e.scrollbarOffset)),q=N.map(((e,n)=>e?d.createElement("div",{className:w()({"PSPDFKit-DocumentComparison-ReferencePoint-Marker":!0,[i.referencePoint]:!0}),style:{left:e.x*t.zoomLevel-F.x+(R?Z/2:0),top:e.y*t.zoomLevel-F.y},key:`point_${n}`},d.createElement(j,{touchDevice:R,className:i.comparisonPin},n+1)):null));return d.createElement(d.Fragment,null,d.createElement("div",{className:w()({[i.source]:!R,[i.sourceTouch]:!!R,"PSPDFKit-DocumentComparison-Source":!0,[`PSPDFKit-DocumentComparison-Source-${a}`]:!!a}),style:{cursor:O&&!R?`url('data:image/svg+xml,${M()}') 12 22, crosshair`:"auto"}},O&&R&&d.createElement(y.m,null,d.createElement("div",{className:i.crosshair,ref:B},d.createElement("div",{className:w()(i.selectPoint,{[i.hidden]:v}),onClick:$},f(ee.Comparison_selectPoint)),d.createElement(C.Z,{src:n(23874)}))),d.createElement(_.Z,{dispatch:e.dispatch,viewportState:t},d.createElement("section",{className:K,style:L,"data-page-index":c?c.pageIndex:""},d.createElement(D.Z,U),q,R?null:d.createElement("div",{className:i.pointerLayer},O?d.createElement(S.Z,{size:c.pageSize,onDrawEnd:l,transformPoint:V,interactionMode:p,scrollElement:o}):null)))),o&&!R?d.createElement(z.B,{viewportState:t,scrollElement:o,onScroll:I,className:"PSPDFKit-DocumentComparison-Magnifier",pageIndex:c.pageIndex,pageRendererComponentProps:U},q):null)},O=R?{width:"100",height:"100",viewBox:"-10 0 90 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"}:{width:"66",height:"66",viewBox:"-10 0 56 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j=e=>{let{children:t,touchDevice:n,className:p}=e;return d.createElement("svg",(0,v.Z)({},O,{className:p}),n?d.createElement("g",{stroke:"#f5281b"},r||(r=d.createElement("path",{d:"M44.0171 43.4142L72.3014 71.6985",strokeWidth:"4"})),o||(o=d.createElement("path",{d:"M12.9043 12.3015L41.1886 40.5858",strokeWidth:"4"})),i||(i=d.createElement("path",{d:"M72.3013 12.3015L44.017 40.5858",strokeWidth:"4"})),a||(a=d.createElement("path",{d:"M41.189 43.4142L12.9047 71.6985",strokeWidth:"4"})),d.createElement("text",{x:"-10",y:"82",fontSize:"28",fill:"#f5281b",dominantBaseline:"central"},t)):d.createElement("g",{stroke:"#f5281b"},s||(s=d.createElement("path",{d:"M26.0083 25.7072L40.1505 39.8493",strokeWidth:"1.99616"})),l||(l=d.createElement("path",{d:"M10.4521 10.1508L24.5943 24.2929",strokeWidth:"1.99616"})),c||(c=d.createElement("path",{d:"M40.1509 10.1508L26.0087 24.2929",strokeWidth:"1.99616"})),u||(u=d.createElement("path",{d:"M24.5952 25.7072L10.453 39.8493",strokeWidth:"1.99616"})),d.createElement("text",{x:"0",y:"44",fontSize:"14",fill:"#f5281b",dominantBaseline:"central"},t)))};var L=n(20144);const B=e=>{const{addSource:t}=e,n=d.useCallback((e=>{e?.click&&e.click()}),[]),r=d.useCallback((e=>{if(e.target.files[0]){const n=new FileReader;n.onload=e=>{t(e.target?.result)},n.readAsArrayBuffer(e.target.files[0])}}),[t]);return d.createElement(L.TX,{tag:"div"},d.createElement("input",{ref:n,"aria-label":"","aria-hidden":!0,type:"file",accept:"image/png, image/jpeg, image/tiff, application/pdf",onChange:r,tabIndex:-1}))};var K,V=n(7202),H=n(8271),$=n(40084),U=n(74751),Z=n(2058);const q=e=>{const{styles:t,currentDocumentKey:n,referencePoints:r,addReferencePoint:o,settings:i,completionConfiguration:a,setDocumentSources:s,documentSources:l,backend:c,viewportState:u,interactionMode:h,dispatch:v,isAutoCompare:y,renderPagePreview:b}=e,w=(0,k.tm)(),[x,_]=d.useState(null),[S,C]=d.useState(!1),z=(0,k.R9)((()=>{x&&v((0,$.nr)((0,f.mr)(u,x)))}));d.useEffect((()=>{z()}),[x,z]);const[P,D]=(0,k.dX)();d.useEffect((()=>{D(!1)}),[y,D]);const A=(0,k.R9)((e=>{e&&!l[e]&&i[e].source!==V.b.USE_OPEN_DOCUMENT||async function(){if(S)return;let t;e!==m.Q.result&&e?(x&&_(null),t=await c.openComparisonDocument(e)):(x&&_(null),t=P?await c.openComparisonDocument(m.Q.result):await G(r,i,c),D(!0));const n=i[m.Q.documentA].pageIndex||0,o=new H.Z({pageSize:new E.$u(t.pages[n]),...t.pages[n]});w()&&_(o)}()})),T=d.useRef(null);d.useEffect((()=>{T.current!==n&&x&&_(null),T.current=n}),[n,x]),d.useEffect((()=>{x||S||A(n)}),[x,n,A,S,l]);const I=6===r.length||y;d.useEffect((()=>{I&&!y&&A(null)}),[A,I,y]),d.useEffect((()=>{!async function(){try{await a.start.promise,w()&&(0,p.unstable_batchedUpdates)((()=>{C(!0),_(null)}))}catch(e){a.start.reject(e)}}()}),[a,w]),d.useEffect((()=>{S&&async function(){try{await c.cleanupDocumentComparison(),a.end.resolve()}catch(e){a.end.reject(e)}}()}),[S,c,a]);const M=d.useCallback((async e=>{e&&(await c.setComparisonDocument(n,e),w()&&s({...l,[n]:e}))}),[n,l,s,c,w]);return x?d.createElement(N,{backend:e.backend,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,viewportState:u,scrollElement:e.scrollElement,styles:t,dispatch:e.dispatch,viewportWidth:e.viewportWidth,currentDocumentKey:n,addReferencePoint:o,referencePoints:r,page:x,isAutoCompare:y,interactionMode:h,renderPagePreview:b}):I||l[n]||i[n].source!==V.b.USE_FILE_DIALOG?d.createElement("div",{className:t.documentComparisonPageLoading},K||(K=d.createElement(g.Z,{scale:2}))):d.createElement(B,{addSource:M})},G=async(e,t,n)=>{let r;r=e&&e.length?[[[e[3].x,e[3].y],[e[0].x,e[0].y]],[[e[4].x,e[4].y],[e[1].x,e[1].y]],[[e[5].x,e[5].y],[e[2].x,e[2].y]]]:f.h6;return await n.documentCompareAndOpen({documentA:{pageIndex:t.documentA.pageIndex||0,strokeColor:t.strokeColors?.documentA?(0,U.C)(t.strokeColors?.documentA):(0,U.C)(Z.se.strokeColors?.documentA)},documentB:{pageIndex:t.documentB.pageIndex||0,strokeColor:t.strokeColors?.documentB?(0,U.C)(t.strokeColors?.documentB):(0,U.C)(Z.se.strokeColors?.documentB)},options:{type:"path",points:r,blendMode:t.blendMode||"darken"}})},W=e=>{const{onHide:t,styles:r}=e,{formatMessage:o}=(0,h.YB)();return d.createElement("div",{className:r.container},d.createElement("div",{className:r.wrapper},d.createElement(C.Z,{src:n(33413),className:r.icon,style:{color:"#5E5CEB"}}),d.createElement("div",{className:r.header},o(Y.UserHint_title)),d.createElement("div",{className:r.hint},o(Y.UserHint_description)),d.createElement("div",{className:r.hideButton},d.createElement(L.zx,{onClick:t},o(Y.UserHint_dismissMessage)))))},Y=(0,h.vU)({UserHint_title:{id:"UserHint_Select",defaultMessage:"Selecting Points",description:"User hint Title. User should select points to compare documents."},UserHint_description:{id:"UserHint_description",defaultMessage:"Select 3 points on both documents for manual alignment. For best results, choose  points near corners of the document, and make sure to choose the points in the same  order on both documents.",description:"Main body of the user hint. Explains what to do to compare documents"},UserHint_dismissMessage:{id:"UserHint_dismissMessage",defaultMessage:"Dismiss Message",description:"Dismiss user hint message"}}),X=(0,T.b1)(),Q=e=>e.length<3?m.Q.documentA:e.length<6?m.Q.documentB:m.Q.result,J=e=>{const{interactionMode:t,initialDocumentSources:n,settings:r,backend:o}=e,{styles:i}=e.CSS_HACK,a=(0,k.tm)(),[s,l]=(0,k.nG)(),[c,u]=(0,k.jw)(),[h]=(0,k.$)(),[g,v]=d.useState(!0),y=(0,f.SH)(c),b=(0,k.R9)((e=>{e!==y&&u(e||m.Q.result)})),w=d.useCallback((e=>{const t=[...s,e];(0,p.unstable_batchedUpdates)((()=>{l(t),b(Q(t))}))}),[s,b,l]),[x,_]=d.useState(null);return d.useEffect((()=>{!async function(){const[e,t]=await Promise.all([n[m.Q.documentA],n[m.Q.documentB]]);(e&&e.byteLength>0||r[m.Q.documentA].source===V.b.USE_OPEN_DOCUMENT)&&await o.setComparisonDocument(m.Q.documentA,e),(t&&t.byteLength>0||r[m.Q.documentB].source===V.b.USE_OPEN_DOCUMENT)&&await o.setComparisonDocument(m.Q.documentB,t),a()&&_({[m.Q.documentA]:e,[m.Q.documentB]:t,[m.Q.result]:{source:null}})}()}),[n,o,r,a]),d.createElement("div",{className:i.docComparison},x?d.createElement(q,{backend:o,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,viewportState:e.viewportState,interactionMode:t,scrollElement:e.scrollElement,styles:i,dispatch:e.dispatch,settings:r,completionConfiguration:e.completionConfiguration,documentSources:x,setDocumentSources:_,viewportWidth:e.viewportWidth,currentDocumentKey:y,addReferencePoint:w,referencePoints:s,isAutoCompare:h,renderPagePreview:e.renderPagePreview}):null,!X&&!(6===s.length)&&!h&&g&&d.createElement(W,{styles:i.userHintStyles,onHide:()=>v(!1)}))},ee=(0,h.vU)({Comparison_documentOld:{id:"Comparison_documentOld",defaultMessage:"Old Document",description:"One of the documents to be compared."},Comparison_documentOldTouch:{id:"Comparison_documentOldTouch",defaultMessage:"Old",description:"The original document used in the comparison."},Comparison_documentNew:{id:"Comparison_documentNew",defaultMessage:"New Document",description:"The new document used in the comparison."},Comparison_documentNewTouch:{id:"Comparison_documentNewTouch",defaultMessage:"New",description:"The new document used in the comparison."},Comparison_result:{id:"Comparison_result",defaultMessage:"Comparison",description:"The compared document."},Comparison_resetButton:{id:"Comparison_resetButton",defaultMessage:"Reset",description:"Reset all placed alignment points."},Comparison_alignButton:{id:"Comparison_alignButton",defaultMessage:"Align Documents",description:"Start the manual document alignment process."},Comparison_alignButtonTouch:{id:"Comparison_alignButtonTouch",defaultMessage:"Align",description:"Start the manual document alignment process."},Comparison_selectPoint:{id:"Comparison_selectPoint",defaultMessage:"Select Point",description:"Select alignment point."}})},2058:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>b,se:()=>m});var r=n(67294),o=n(29911),i=n(60379),a=n(7202),s=n(52163),l=n(79112),c=n(80389),u=n.n(c),d=n(5871),p=n.n(d);const h={styles:{...u(),userHintStyles:p()}},f=r.lazy((()=>Promise.resolve().then(n.bind(n,3962)))),m={documentA:{source:a.b.USE_OPEN_DOCUMENT,pageIndex:0},documentB:{source:a.b.USE_FILE_DIALOG,pageIndex:0},strokeColors:{documentA:new i.Z({r:245,g:40,b:27}),documentB:new i.Z({r:49,g:193,b:255})},blendMode:"darken",autoCompare:!1},g=r.createElement("div",{className:u().documentComparisonPageLoading,"data-testid":"documentComparisonFallback"},r.createElement(o.Z,{scale:2})),v=(e,t)=>({documentA:{...m.documentA,pageIndex:e?.documentA.source===a.b.USE_OPEN_DOCUMENT?t:0,...e?.documentA},documentB:{...m.documentB,pageIndex:e?.documentB.source===a.b.USE_OPEN_DOCUMENT?t:0,...e?.documentB},strokeColors:{...m.strokeColors,...e?.strokeColors},blendMode:e?.blendMode||m.blendMode,autoCompare:e.autoCompare}),y=e=>e!==a.b.USE_OPEN_DOCUMENT&&e!==a.b.USE_FILE_DIALOG?(0,s.rh)(e):null,b=e=>{const{backend:t,viewportState:n,interactionMode:o=null,configuration:i}=e,s=r.useMemo((()=>v(i,n.currentPageIndex)),[i,n.currentPageIndex]);r.useEffect((()=>{let e;s[l.Q.documentA].source===a.b.USE_OPEN_DOCUMENT?e=l.Q.documentA:s[l.Q.documentB].source===a.b.USE_OPEN_DOCUMENT&&(e=l.Q.documentB),t.persistOpenDocument(e)}),[t,s]);const c=r.useRef({[l.Q.documentA]:y(s.documentA.source),[l.Q.documentB]:y(s.documentB.source)});return r.createElement(r.Suspense,{fallback:g},r.createElement(f,{backend:e.backend,interactionMode:o,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,viewportState:n,scrollElement:e.scrollElement,CSS_HACK:h,viewportWidth:e.viewportWidth,dispatch:e.dispatch,settings:s,completionConfiguration:i.completion,initialDocumentSources:c.current,renderPagePreview:e.renderPagePreview}))}},46945:(e,t,n)=>{"use strict";n.d(t,{n:()=>l});var r=n(22122),o=n(67294),i=n(20144),a=n(50439),s=n.n(a);function l(e){return o.createElement(i.bK,(0,r.Z)({},e,{styles:{label:s().label,input:s().input}}))}},62477:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});var r=n(67294),o=n(20144),i=n(53261),a=n(86378),s=n.n(a);function l(e){let{title:t,children:a}=e;const[l,c]=r.useState(!1),u=(0,r.useCallback)((()=>c((e=>!e))),[]);return r.createElement(r.Fragment,null,r.createElement(o.w6,{expanded:l,onPress:u,className:s().wrapper},r.createElement("div",{className:s().controlContent},r.createElement(i.Z,{src:n(35982)(`./caret-${l?"down":"right"}.svg`),className:s().icon}),r.createElement("span",null,t))),r.createElement(o.F0,{expanded:l},r.createElement("div",{className:s().content},a)))}},62102:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>A,ck:()=>P,zx:()=>z});var r=n(22122),o=n(67294),i=n(24021),a=n(94184),s=n.n(a),l=n(83882),c=n(67366),u=n(17766),d=n(62477),p=n(53261),h=n(35012),f=n(54707),m=n(46945),g=n(22690),v=n(3888),y=n(71623),b=n(33427),w=n(30549),x=n.n(w),_=n(44170),S=n.n(_),C=n(84691),E=n.n(C);function k(e){return D[e]||u.Z[e]}const z=(e,t,n)=>i=>{let{btnComponentProps:a,selectedItem:c}=i;return o.createElement(l.Z,(0,r.Z)({is:"div"},a,{className:s()("PSPDFKit-Input-Dropdown-Button",E().selectBox,x().selectBox,{[E().measurementDropdownText]:"measurement"===t}),style:{minWidth:"measurement"===t?"60px":"100px",columnGap:"measurement"===t?"8px":"",width:n?`${n}px`:""}}),o.createElement("span",null,c?.label?k(c.label)?e(k(c.label)):c.label:null),o.createElement("div",null,(0,y.Z)({type:"caret-down",style:{width:12,height:12,flexBasis:12},className:s()(E().dropdownIcon)})))},P=(e,t)=>n=>{let{item:i,state:a,itemComponentProps:c,ref:u}=n;return o.createElement(l.Z,(0,r.Z)({is:"div",className:s()(E().item,{[E().isSelected]:a?.includes("selected")||a?.includes("focused"),[E().measurementDropdownText]:"measurement"===t}),name:i?.value},c,{ref:u}),o.createElement("span",null,i?.label?k(i.label)?e(k(i.label)):i.label:null))};const D=(0,i.vU)({borderColor:{id:"borderColor",defaultMessage:"Border Color",description:"Form Creator popover style section border color label"},borderWidth:{id:"borderWidth",defaultMessage:"Border Width",description:"Form Creator popover style section border width label"},borderStyle:{id:"borderStyle",defaultMessage:"Border Style",description:"Form Creator popover style section border style label"},print:{id:"print",defaultMessage:"Print",description:"Form Creator popover style section print label"},solid:{id:"solid",defaultMessage:"Solid",description:"Form Creator popover style section solid border label"},dashed:{id:"dashed",defaultMessage:"Dashed",description:"Form Creator popover style section dashed border label"},beveled:{id:"beveled",defaultMessage:"Beveled",description:"Form Creator popover style section beveled border label"},inset:{id:"inset",defaultMessage:"Inset",description:"Form Creator popover style section inset border label"},underline:{id:"underline",defaultMessage:"Underline",description:"Form Creator popover style section unredline border label"}}),A=function(e){let{annotation:t,updateAnnotation:r,intl:i,frameWindow:a,label:s,pageSize:l}=e;const y=(0,c.v9)((e=>e.shadowRoot)),w=o.useCallback((e=>i.formatMessage(u.Z.numberInPt,{arg0:e.toFixed(0)})),[i]),_=o.useCallback((e=>`${Math.round(e)}%`),[]),C=o.useCallback((e=>r({borderWidth:e})),[r]),E=o.useCallback((e=>{if(!l)return;const n=Number(e);if(90!==Math.abs(n-t.rotation)&&270!==Math.abs(n-t.rotation))r({rotation:n});else{const e=(0,b.eJ)(t,l),o=e.set("rotation",n);r({rotation:o.rotation,boundingBox:e.boundingBox})}}),[l,r,t]),A=o.useMemo((()=>[{label:"none",value:"none"},...Object.keys(v.N).map((e=>({label:e,value:e})))]),[]),T=A.find((e=>(t.borderStyle??"none")===e.value))??null,I=[{label:"0°",value:"0"},{label:"90°",value:"90"},{label:"180°",value:"180"},{label:"270°",value:"270"}];let M=t.rotation?I.find((e=>{let{value:n}=e;return Number(n)===t.rotation})):I[0];void 0===M&&(M=I[0]);const R=o.useCallback(z(i.formatMessage),[i.formatMessage]),F=o.useCallback(P(i.formatMessage),[i.formatMessage]);return o.createElement(d.U,{title:s},o.createElement("div",{className:x().item},o.createElement(p.Z,{src:n(92742),className:x().itemIcon,role:"presentation"}),o.createElement("div",{className:x().itemLabel},i.formatMessage(u.Z.fillColor)),o.createElement(h.Z,{record:t,onChange:r,styles:{...S(),colorSvg:x().colorSvg,colorItem:x().colorItem,controlWrapper:{...S().controlWrapper,width:"auto"}},accessibilityLabel:i.formatMessage(u.Z.fillColor),caretDirection:"down",colorProperty:"backgroundColor",frameWindow:a,className:x().colorDropdown})),o.createElement("div",{className:x().item},o.createElement(p.Z,{src:n(25615),className:x().itemIcon,role:"presentation"}),o.createElement("div",{className:x().itemLabel},i.formatMessage(D.borderColor)),o.createElement(h.Z,{record:t,onChange:r,styles:{...S(),colorSvg:x().colorSvg,colorItem:x().colorItem,controlWrapper:{...S().controlWrapper,width:"auto"}},accessibilityLabel:i.formatMessage(D.borderColor),caretDirection:"down",colorProperty:"borderColor",frameWindow:a,className:x().colorDropdown})),o.createElement("div",{className:x().item},o.createElement(p.Z,{src:n(20113),className:x().itemIcon,role:"presentation"}),o.createElement("div",{className:x().itemLabel},i.formatMessage(D.borderStyle)),o.createElement("div",{className:x().nativeDropdown},o.createElement("select",{"aria-label":i.formatMessage(D.borderStyle),className:"PSPDFKit-Input-Dropdown-Select",value:t.borderStyle||"",onChange:e=>{e.target.value!==A[0].value?void 0!==e.target.value&&r({borderStyle:e.target.value}):r({borderStyle:null})}},A.map((e=>o.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},e.label?i.formatMessage(k(e.label)):""))))),o.createElement(g.Z,{items:A,value:T,accessibilityLabel:i.formatMessage(D.borderStyle),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:x().dropdownGroupComponent,menuClassName:x().dropdownGroupMenu,ButtonComponent:R,ItemComponent:F,onSelect:(e,t)=>{t.value!==A[0].value?void 0!==t.value&&r({borderStyle:t.value}):r({borderStyle:null})},frameWindow:a})),o.createElement("div",{className:x().item},o.createElement(p.Z,{src:n(41869),className:x().itemIcon,role:"presentation"}),o.createElement("div",{className:x().itemLabel},i.formatMessage(D.borderWidth)),o.createElement(f.Z,{onChange:C,value:t.borderWidth||0,name:"borderWidth",caretDirection:"down",min:0,max:40,valueLabel:w,className:x().sliderDropdown,accessibilityLabel:i.formatMessage(D.borderWidth),shadowRoot:y})),o.createElement("div",{className:x().item},o.createElement(p.Z,{src:n(22636),className:x().itemIcon,role:"presentation"}),o.createElement("div",{className:x().itemLabel},i.formatMessage(u.Z.opacity)),o.createElement(f.Z,{onChange:e=>r({opacity:e/100}),value:100*t.opacity,name:"opacity",caretDirection:"down",valueLabel:_,className:x().sliderDropdown,accessibilityLabel:i.formatMessage(u.Z.opacity),shadowRoot:y})),o.createElement("div",{className:x().item},o.createElement(p.Z,{src:n(3315),className:x().itemIcon,role:"presentation"}),o.createElement("div",{className:x().itemLabel},i.formatMessage(u.Z.rotation)),o.createElement("div",{className:x().nativeDropdown},o.createElement("select",{"aria-label":i.formatMessage(u.Z.rotation),className:"PSPDFKit-Input-Dropdown-Select",value:t.rotation||0,onChange:e=>{e.target.value&&E(e.target.value)}},I.map((e=>o.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},e.label))))),o.createElement(g.Z,{items:I,value:M,accessibilityLabel:i.formatMessage(u.Z.rotation),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:x().dropdownGroupComponent,menuClassName:x().dropdownGroupMenu,ButtonComponent:R,ItemComponent:F,onSelect:(e,t)=>{t.value&&E(t.value)},frameWindow:a})),o.createElement("div",{className:x().item},o.createElement(p.Z,{src:n(738),className:x().itemIcon,role:"presentation"}),o.createElement("div",{className:x().itemLabel},i.formatMessage(D.print)),o.createElement(m.n,{value:!t.noPrint,onUpdate:e=>r({noPrint:!e}),accessibilityLabel:i.formatMessage(D.print)})))}},46455:(e,t,n)=>{"use strict";n.d(t,{X:()=>h,Z:()=>f});var r=n(67294),o=n(35369),i=n(19181),a=n(54537),s=n(44077),l=n(92537),c=n(33427),u=n(43069),d=n(15743),p=n.n(d);function h(e,t,n,r){const{width:o,height:i}=e,a=Math.min(n/o,n/i),s=Math.min(r/o,r/i),c=Math.ceil(o*s*(0,l.L)()),u=Math.ceil(i*s*(0,l.L)()),d=Math.floor(o*a),p=Math.floor(i*a);let h=d,f=p;90!==t&&270!==t||(h=p,f=d);let m=0,g=0;return 90===t?m=h:180===t?(m=h,g=f):270===t&&(g=f),{ratio:a,tileRatio:s,tileWidth:c,tileHeight:u,containerWidth:d,containerHeight:p,rotatedWidth:h,rotatedHeight:f,translationX:m,translationY:g}}const f=(0,i.x)((function(e,t){const{page:n}=t,{backend:r,annotations:i,attachments:a,formFields:s,showAnnotations:l,renderPageCallback:d}=e,p=l?(0,c.xp)(i,n):void 0,h=l?(0,u.ET)(s,n):void 0,f=l&&h?(0,u.Qg)(h.reduce(((e,t)=>e.set(t.name,t)),(0,o.D5)())):void 0;return{annotations:p,formFields:h,formFieldValues:f,attachments:l?a:void 0,backend:r,renderPageCallback:d,digitalSignatures:e.digitalSignatures}}))((function(e){const{page:{pageSize:t,pageIndex:n,pageKey:o},size:i,maxSize:c,backend:u,annotations:d,attachments:f,formFields:m,formFieldValues:g,renderPageCallback:v,digitalSignatures:y,pageRef:b}=e,w=e.rotation||0,{ratio:x,tileRatio:_,tileWidth:S,tileHeight:C,rotatedWidth:E,rotatedHeight:k,translationX:z,translationY:P}=h(t,w,i,c),D=r.useMemo((function(){return new s.$u({width:S,height:C})}),[C,S]),A=r.useMemo((function(){return new s.UL({width:S,height:C})}),[C,S]),T={width:E,height:k,transform:`\n      translateX(${z}px)\n      translateY(${P}px)\n      rotate(${w}deg)\n      scale(${x/_/(0,l.L)()})\n    `,transformOrigin:"top left"};return r.createElement("div",{style:T,ref:b},r.createElement("div",{className:p().tilePlaceholder,style:{width:S,height:C}}),r.createElement(a.Z,{backend:u,pageIndex:n,originalPageSize:t,scaledPageSize:D,rect:A,annotations:d,attachments:f,formFields:m,formFieldValues:g,renderPageCallback:v,digitalSignatures:y,pageKey:o}))}))},67057:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(22122),o=n(96156),i=n(67294),a=n(73935),s=n(40163),l=n(45249),c=n(45639),u=n.n(c);class d extends i.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",s.O),(0,o.Z)(this,"_lastOrientationChange",0),(0,o.Z)(this,"_handleResize",(()=>{const e=this._element&&this._element.getBoundingClientRect();if(!e)return;const t=Date.now()-this._lastOrientationChange<1e3;(0,a.unstable_batchedUpdates)((()=>{this.props.onResize(l.UL.fromClientRect(e),t)}))})),(0,o.Z)(this,"_handleOrientationChange",(()=>{this._lastOrientationChange=Date.now()})),(0,o.Z)(this,"_handleRef",(e=>{this._element=e,this.props.onRefUpdate?.(e?.contentDocument?.defaultView||null)}))}componentDidMount(){const e=this._getIFrameWindow();e?.addEventListener("resize",this._handleResize),e?.addEventListener("orientationchange",this._handleOrientationChange),this._handleResize()}componentWillUnmount(){const e=this._getIFrameWindow();e?.removeEventListener("resize",this._handleResize),e?.removeEventListener("orientationchange",this._handleOrientationChange)}_getIFrameWindow(){return this._element?.contentWindow}render(){return i.createElement("iframe",(0,r.Z)({ref:this._handleRef,className:u().root},{inert:""},{"aria-hidden":!0,tabIndex:"-1"}))}}},71623:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(67294),o=n(94184),i=n.n(o),a=n(53261),s=n(37253),l=n.n(s),c=n(89004);function u(e){const{icon:t,type:o,style:s=null}=e,u=i()(l().root,e.className,"PSPDFKit-Icon","PSPDFKit-Icon-"+(0,c.in)(o));if(t)return/<svg/i.test(t)?r.createElement(a.Z,{src:t,className:u,role:"presentation",style:s||void 0}):r.createElement("img",{src:t,role:"presentation",className:u,style:s||void 0});if("custom"===o)return null;let d;try{d=n(89457)(`./${o}.svg`)}catch(e){}return d?r.createElement(a.Z,{src:d,className:u,"aria-hidden":"true",style:s||void 0}):null}},35012:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(96156),o=n(67294),i=n(45249),a=n(87996),s=n(94732),l=n(33427),c=n(22939),u=n(17766);const d=[i.Xs,i.gd,i.Zc,s.Z,i.FV,i.o9,i.om,i.Hi,i.b3,i.x_];class p extends o.PureComponent{static getDerivedStateFromProps(e){if(e.annotationToolbarColorPresets){const t=e.annotationToolbarColorPresets({propertyName:(()=>{for(const[t,n]of l.fc.entries())if(n===e.colorProperty)return t})(),defaultAnnotationToolbarColorPresets:a.Options.COLOR_PRESETS});if(void 0!==t)return!1===t.showColorPicker?{hasColorPicker:t.showColorPicker,colors:t.presets,isUsingCustomConfig:!0}:{colors:t.presets,hasColorPicker:!0,isUsingCustomConfig:!0}}return e.colors?{colors:e.colors}:{colors:a.Options.COLOR_PRESETS}}constructor(e){super(e),(0,r.Z)(this,"state",{colors:a.Options.COLOR_PRESETS,colorPresets:(0,l.sH)(this.props.colorProperty),creatingColor:void 0,hasColorPicker:!0,isDeleteButtonVisible:void 0,isUsingCustomConfig:!1}),(0,r.Z)(this,"defaultBorderColor","#404040"),(0,r.Z)(this,"_autoFocused",!1),(0,r.Z)(this,"_onChange",(e=>{this.props.onChange({[this.props.colorProperty]:e?e.color:null})})),(0,r.Z)(this,"showCustomPickerForAnnotation",(e=>d.some((t=>e instanceof t)))),(0,r.Z)(this,"_setStoredColors",(e=>localStorage.setItem(`persistedColors${this.props.colorProperty}`,JSON.stringify(e))))}render(){const{record:e}=this.props,t=this.state.hasColorPicker&&(!(e instanceof i.q6)||this.showCustomPickerForAnnotation(e)),n=this.props.record[this.props.colorProperty],r=this.state.colors.find((e=>!(null!=e.color&&!e.color.transparent||null!=n)||null!=e.color&&null!=n&&e.color.equals(n)))??{color:n,localization:u.Z.color};return o.createElement(c.Z,{colors:this.state.colors,value:r,customColorPresets:this.state.colorPresets,setCustomColorPresets:e=>e?this.setState({colorPresets:e}):null,onChange:this._onChange,className:this.props.className,caretDirection:this.props.caretDirection,removeTransparent:this.props.removeTransparent,opacity:this.props.record.opacity,accessibilityLabel:this.props.accessibilityLabel,keepOpacity:this.props.keepOpacity,frameWindow:this.props.frameWindow,innerRef:this.props.innerRef,lastToolbarActionUsedKeyboard:this.props.lastToolbarActionUsedKeyboard,styles:this.props.styles,setStoredColors:this._setStoredColors,shouldShowCustomColorPicker:t,unavailableItemFallback:{type:"swatch"},isUsingCustomConfig:this.state.isUsingCustomConfig})}}(0,r.Z)(p,"defaultProps",{className:"",removeTransparent:!1,lastToolbarActionUsedKeyboard:!1})},22939:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Y});var r=n(22122),o=n(83882),i=n(67294),a=n(77017),s=n(15359),l=n(20144),c=n(94184),u=n.n(c),d=n(24021),p=n(43165),h=n.n(p),f=n(87996),m=n(45249),g=n(44380),v=n.n(g),y=n(84691),b=n.n(y),w=n(17722),x=n.n(w),_=n(94683),S=n.n(_),C=n(17766),E=n(22690),k=n(50331),z=n.n(k),P=n(98179),D=n(21853),A=n(71623),T=n(53261),I=n(775),M=n(74076),R=n.n(M);const F=i.memo((function(e){const{onCreateNewColor:t,onChange:n,disabled:r,isChoosingColor:o}=e,[a,s]=i.useState("#000000"),l={opacity:r?"40%":"100%",backgroundImage:o?"none":R().nativeColorInput.backgroundImage,backgroundColor:o?a:null,border:o?"1px solid var(--PSPDFKit-ColorDropdownPickerComponent-item-circle-border-stroke)":"none",width:o?"18px":"22px",height:o?"18px":"22px"};return i.createElement("label",{htmlFor:"input-color"},i.createElement("div",{className:R().nativeColorInputWrapper},i.createElement(I.DebounceInput,{className:u()(R().nativeColorInput,"PSPDFKit-Custom-Color-Input"),style:l,type:"color",id:"input-color",debounceTimeout:200,value:a,onChange:e=>{const t=e.target.value;t&&(s(t),n(m.Il.fromHex(t)))},onBlur:e=>{const n=e.target.value;n&&t(m.Il.fromHex(n))},disabled:r})))}));var N,O,j,L,B;const K=e=>{const t=e.colors??f.Options.COLOR_PRESETS,{formatMessage:n}=(0,d.YB)(),{removeTransparent:r=!1,customColorPresets:o=[],setCustomColorPresets:s,setStoredColors:l,lastToolbarActionUsedKeyboard:c=!1,opacity:p=1,innerRef:h,value:g,caretDirection:v,keepOpacity:y,frameWindow:b,accessibilityLabel:w,onChange:x,unavailableItemFallback:_={type:"label"},disabled:S=!1,styles:C,shouldShowCustomColorPicker:k=!1,isUsingCustomConfig:z=!1,menuClassName:D}=e,[A,T]=i.useState(),[I,M]=i.useState(),R=i.useRef(!1),N=i.useCallback((e=>{const n=[...t,...o].find((t=>(null!=t.color&&null!=e?.value?.color&&e.value.color?.equals(t.color))??(null==e?.value?.color&&null==t.color))),r=[...t,...o].find((e=>n?$(e)===$(n):null));x(r??null)}),[t,o,x]),O=i.useCallback((e=>{const t={color:e,localization:{id:`custom-${(0,a.v4)()}`,defaultMessage:"Custom",description:"Custom color"}},n=[...o,t];l?.(n),s&&(s(n),T(void 0)),g?.color?.equals(e)||x(t)}),[o,s,l,x,g]),j=i.useCallback((e=>{const n=o.filter((t=>t.localization.id!==e.localization.id));l?.(n),s&&(s(n),T(void 0)),e.color&&g?.color?.equals(e.color)&&x(t[0])}),[o,x,s,l,t,g]),L=i.useCallback((e=>{T(e);const t={color:e,localization:{id:`custom-${(0,a.v4)()}`,defaultMessage:"Custom",description:"Custom color"}};x(t)}),[x]),B=[...t,...o].filter((e=>!(r&&(null===e.color||e.color.transparent)))).map((e=>({label:e.localization.id,value:e,disabled:!1}))),K=G({caretDirection:v,colors:t,customColorPresets:o,colorItems:B,disabled:S,innerRef:h,keepOpacity:y,lastToolbarActionUsedKeyboard:c,opacity:p,unavailableItemFallback:_,styles:C,value:g,formatMessage:n,autoFocused:R}),H=W({colors:t,customColorPresets:o,isDeleteButtonVisible:I,setIsDeleteButtonVisible:M,formatMessage:n,handleChange:N,handleDeleteColor:j,keepOpacity:y,opacity:p,styles:C});return i.createElement("div",{className:C.controlWrapper},i.createElement("div",{className:C.control},i.createElement(E.Z,{items:B,value:null!=g?B.find((e=>$(e.value)===$(g)))??null:null,discreteDropdown:!1,isActive:!1,caretDirection:v,className:`${e.className} ${C.colorSelect}`,menuClassName:u()(C.dropdownMenu,C.colorPickerDropdownMenu,D),ButtonComponent:K,ItemComponent:H,onSelect:(0,P.b1)()?void 0:(e,t)=>{N(t)},frameWindow:b,accessibilityLabel:w,maxCols:6,itemWidth:30,appendAfter:k?{node:V,index:z?t.length-1:t.length-(r?2:1)}:null},k&&i.createElement(F,{onCreateNewColor:O,onChange:L,disabled:o.length>=17,isChoosingColor:A instanceof m.Il}))))},V=()=>{const{formatMessage:e}=(0,d.YB)();return i.createElement("label",{style:{width:"100%",paddingTop:"10px",paddingBottom:"10px",paddingLeft:"5px"}},e(C.Z.custom))};function H(e){let{onClick:t}=e;return i.createElement(o.Z,{onClick:t,is:"button",className:u()(`PSPDFKit-AnnotationToolbar-Custom-Color-Delete-Button ${v().colorDeleteButton}`)},N||(N=i.createElement(T.Z,{src:z(),"aria-hidden":"true"})))}function $(e){return null!=e?null!=e.color?e.color.toCSSValue():"none":"N/A"}function U(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return{stroke:"var(--PSPDFKit-ColorDropdownPickerComponent-item-circle-border-stroke)",fill:e?e.toCSSValue():"none",strokeWidth:1,fillOpacity:t?n:1}}const Z=()=>i.createElement(i.Fragment,null,i.createElement("defs",null,i.createElement("pattern",{id:"PSPDFKit-Color-Background-Chessboard",width:"0.5",height:"0.5",patternContentUnits:"objectBoundingBox"},i.createElement("rect",{x:"0",y:"0",width:"0.25",height:"0.25",style:{fill:"rgba(0,0,0,.2)"}}),i.createElement("rect",{x:"0.25",y:"0.25",width:"0.25",height:"0.25",style:{fill:"rgba(0,0,0,.2)"}}))),i.createElement("circle",{cx:"12",cy:"12",r:"10",style:{fill:"url(#PSPDFKit-Color-Background-Chessboard)"}})),q=()=>i.createElement("g",{transform:"translate(5 5)"},i.createElement("line",{x1:"2",x2:"12",y1:"12",y2:"2",style:{stroke:"#F00",strokeWidth:2},strokeLinecap:"round"})),G=e=>t=>{let{btnComponentProps:n,selectedItem:o}=t,a=!1;if(null!=o?.value?.color){const t=o.value?.color;a=Boolean(!e.colorItems.some((e=>e.value?.color?.equals(t))))}else a=!e.colorItems.some((e=>null==e.value?.color&&null==o?.value?.color||e.value?.color?.transparent));const s=[...e.colors,...e.customColorPresets].find((e=>o?$(e)===$(o.value):e.color?.transparent)),c=s?$(s):null,d=e.formatMessage(s?s.localization:{id:"transparent",defaultMessage:"Transparent",description:"Transparent"}),p=e.value,h=(!p||!s||"transparent"===s.localization.id||!e.keepOpacity&&e.opacity<1)&&(O||(O=i.createElement(Z,null)));return i.createElement("button",(0,r.Z)({},n,{className:u()("PSPDFKit-Input-Dropdown-Button","PSPDFKit-Input-Color-Dropdown",e.styles.colorSelectButton,{[x().isDisabled]:e.disabled,[e.styles.controlIsDisabled]:e.disabled}),ref:t=>{n.ref(t),"function"==typeof e.innerRef?e.innerRef(t):e.innerRef&&"object"==typeof e.innerRef&&"current"in e.innerRef&&(e.innerRef.current=t),e.innerRef&&t&&!e.autoFocused.current&&(t.focus(),e.autoFocused.current=!0,e.lastToolbarActionUsedKeyboard&&(t.classList.add(S().focusedFocusVisible),t.addEventListener("blur",D.Cz)))},name:"clickableBox",disabled:e.disabled}),a&&"label"===e.unavailableItemFallback.type?i.createElement("span",null,e.unavailableItemFallback.label??"N/A"):i.createElement(i.Fragment,null,i.createElement(l.TX,{tag:"div"},d),i.createElement("svg",(0,r.Z)({viewBox:"0 0 24 24",className:e.styles.colorSvg,key:c},{title:d,value:c},{"aria-hidden":!0}),h,(s&&"transparent"===s.localization.id||!p)&&(j||(j=i.createElement(q,null))),i.createElement("circle",{cx:"12",cy:"12",r:"10",style:U(p?.color??null)}))),i.createElement("div",null,(0,A.Z)({type:`caret-${e.caretDirection}`,style:{width:12,height:12,flexBasis:12},className:u()(b().dropdownIcon)})))},W=e=>t=>{let{item:n,state:a,itemComponentProps:c}=t;const d=[...e.colors,...e.customColorPresets].find((e=>null!=e.color&&null!=n?.value?.color?e.color.equals(n?.value.color):null==e.color&&null==n?.value?.color)),p=e.colors.some((e=>null!=e.color&&null!=n?.value?.color?e.color.equals(n.value.color):null==e.color&&null==n?.value?.color));(0,s.kG)(d,"Couldn't find matching color.");const f=$(d),m=p?e.formatMessage(d.localization):e.formatMessage(C.Z.newColor),g=e.customColorPresets.find((e=>null!=e.color&&null!=n?.value?.color?e.color.equals(n.value.color):null==e.color&&null==n?.value?.color));let y,w=0;const _=("transparent"===d.localization.id||!e.keepOpacity&&e.opacity<1)&&(L||(L=i.createElement(Z,null)));return i.createElement("div",{"data-testid":"color-swatch",className:v().colorItemContainer},g&&(e.isDeleteButtonVisible===f||!(0,P.b1)())&&i.createElement(H,{onClick:()=>e.handleDeleteColor(g)}),i.createElement(o.Z,(0,r.Z)({is:"div",className:u()(h().root,x().root,{[b().isSelected]:a?.includes("selected")||a?.includes("focused")},b().item,e.styles.colorItem),name:n?.value?.localization.id??""},c,{onPointerDown:(0,P.b1)()?()=>{w=Date.now(),y=setTimeout((()=>{e.setIsDeleteButtonVisible(f)}),300)}:void 0,onPointerUp:(0,P.b1)()?(t=>()=>{Date.now()-w<300&&(window.clearTimeout(y),e.setIsDeleteButtonVisible(void 0),e.handleChange(t))})(n):void 0}),i.createElement(l.TX,{tag:"div"},m),i.createElement("svg",(0,r.Z)({viewBox:"0 0 24 24",className:`PSPDFKit-Input-Dropdown-Item ${e.styles.colorSvg}`,key:f},{title:m,value:f},{"aria-hidden":"true"}),_,"transparent"===d.localization.id&&(B||(B=i.createElement(q,null))),i.createElement("circle",{cx:"12",cy:"12",r:"10",style:U(d.color,e.keepOpacity)}))))},Y=i.memo(K)},54707:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(22122),o=n(96156),i=(n(15359),n(67294)),a=n(94184),s=n.n(a),l=n(20144),c=n(53261),u=n(40163),d=n(60210),p=n.n(d);let h=0;class f extends i.Component{constructor(){super(...arguments),(0,o.Z)(this,"inputRef",i.createRef()),(0,o.Z)(this,"shouldComponentUpdate",u.O),(0,o.Z)(this,"_guid",h++),(0,o.Z)(this,"triggerChange",(()=>{this.inputRef.current&&this.props.onChange(Number(this.inputRef.current.value))}))}render(){const{label:e,accessibilityLabel:t}=this.props;return i.createElement("div",{className:`PSPDFKit-Input-Slider ${this.props.className} ${p().root}`},this.props.label?i.createElement("label",{htmlFor:`${p().label}-${this._guid}`,className:p().label},this.props.label):this.props.accessibilityLabel?i.createElement(l.TX,{tag:"label",htmlFor:`${p().label}-${this._guid}`},this.props.accessibilityLabel):null,i.createElement("div",{className:p().input},i.createElement("input",{id:`${p().label}-${this._guid}`,type:"range",ref:this.inputRef,className:"PSPDFKit-Input-Slider-Input",min:this.props.min,max:this.props.max,step:this.props.step,value:this.props.value,onChange:this.triggerChange})),!this.props.hideLabel&&i.createElement("label",{className:`PSPDFKit-Input-Slider-Value ${p().value}`},this.props.valueLabel(this.props.value)))}}(0,o.Z)(f,"defaultProps",{min:0,max:100,step:1,valueLabel:e=>e.toString(),className:""});var m=n(65927),g=n.n(m);let v=0;class y extends i.Component{constructor(){super(...arguments),(0,o.Z)(this,"controlRef",i.createRef()),(0,o.Z)(this,"state",{isOpen:!1}),(0,o.Z)(this,"_guid",v++),(0,o.Z)(this,"_toggleItems",(()=>{this.state.isOpen?this._hideItems():this._showItems()})),(0,o.Z)(this,"_handleKeyDown",(e=>{"ArrowDown"!==e.key||this.state.isOpen||this._toggleItems()})),(0,o.Z)(this,"_handleBlur",(e=>{e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),setTimeout((()=>{const e=this.controlRef.current,t=this.props.shadowRoot,n=t?t.activeElement:e&&e.ownerDocument&&e.ownerDocument.activeElement,r=e&&e.contains(n);this.state.isOpen&&!r&&this._hideItems()}),0)}))}_showItems(){this.setState({isOpen:!0})}_hideItems(){this.setState({isOpen:!1})}render(){const{label:e,accessibilityLabel:t,caretDirection:r}=this.props;const o=this.props.className?this.props.className:"",a=s()(g().root,this.state.isOpen&&g().show,o,"PSPDFKit-Input-Dropdown",this.state.isOpen&&"PSPDFKit-Input-Dropdown-open");return i.createElement("div",{style:this.props.style,className:a,onBlur:this._handleBlur,ref:this.controlRef,tabIndex:-1},i.createElement("button",{className:`PSPDFKit-Input-Dropdown-Button ${g().button}`,onClick:this._toggleItems,onKeyDown:this._handleKeyDown,"aria-labelledby":`${g().srLabel}-${this._guid} ${g().value}-${this._guid}`,style:{height:32},ref:this.props.innerRef,"aria-expanded":this.state.isOpen,"aria-controls":`${g().dropdownItems}-${this._guid}`,type:"button"},i.createElement("span",{className:`PSPDFKit-Input-Dropdown-FlexContainer ${g().flexContainer}`,"aria-hidden":"true"},i.createElement("span",{className:`PSPDFKit-Input-Slider-Value ${g().value}`,id:`${g().value}-${this._guid}`},this.props.valueLabel(this.props.value))),i.createElement(l.TX,{id:`${g().srLabel}-${this._guid}`},t||null),i.createElement(c.Z,{src:n("down"===r?52904:19201),className:g().toggle,"aria-hidden":"true"})),i.createElement("div",{className:s()("PSPDFKit-Input-Dropdown-Items",g().dropdownItems,g().dropdown,{[g().dropDownItemsUp]:"up"===this.props.caretDirection}),id:`${g().dropdownItems}-${this._guid}`},this.state.isOpen&&this._renderDropdownItems()))}_renderDropdownItems(){return i.createElement("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",width:"auto",padding:"5px 10px"}},i.createElement(f,(0,r.Z)({},this.props,{className:`${this.props.className} ${g().slider}`,hideLabel:!0})))}}(0,o.Z)(y,"defaultProps",{min:0,max:100,step:1,valueLabel:e=>e.toString(),className:""})},92744:(e,t,n)=>{"use strict";n.d(t,{B:()=>S});var r,o=n(22122),i=n(67294),a=n(67665),s=n(94184),l=n.n(s),c=n(93113),u=n(92537),d=n(98179),p=n(68540),h=n(59140),f=n(45249),m=n(15164),g=n(21683),v=n(37922),y=n.n(v);const b=d.G6&&(0,u.L)()>1,w=b?2:1,x=16/w;function _(e,t){const{zoomLevel:n}=e;return Math.round((0,g.e8)(e,(0,g.dF)(e,t))*n)}const S=e=>{const{pageRendererComponentProps:t,contentState:n,pageIndex:s,viewportState:g,onScroll:v,className:S,scrollElement:C,label:E,cursorPosition:k,isMobile:z}=e,[{x:P,y:D},A]=i.useState({x:0,y:0}),[{scrollTop:T,scrollLeft:I},M]=i.useState({scrollLeft:C?.scrollLeft||0,scrollTop:(C?.scrollTop||0)-_(g,s)}),R=(0,p.R9)((e=>{k||A({x:e.clientX,y:e.clientY})})),F=(0,p.tm)(),N=(0,p.R9)((()=>{if(!C||!F())return;const e={scrollLeft:C.scrollLeft,scrollTop:C.scrollTop-_(g,s)};v?v((()=>M(e))):M(e)}));i.useEffect((()=>(C?.addEventListener("scroll",N,!1),()=>{C?.removeEventListener("scroll",N,!1)})),[N,C]);const O=z?136:174,j=g.scrollPosition.scale(g.zoomLevel).translate(g.scrollPosition.scale(-g.zoomLevel)),L=(0,c.G4)(g).translate(j.scale(-1)),B=(0,u.L)(),K=Math.floor(B*((k?.x||P)-L.left+I))/B-g.viewportRect.left,V=Math.floor(B*((k?.y||D)-L.top+T))/B-g.viewportRect.top,H=Math.floor(O/2-K),$=Math.floor(O/2-V),U=B/(w*x/B)+.5/w,Z=w*x*.5*B,q=E||`${(g.zoomLevel*x*B/2).toFixed(1).replace(".0","")}x`;return i.createElement(h.Z,{onRootPointerMove:R},i.createElement(a.m,null,i.createElement("div",{className:l()(y().magnifierContainer,{[y().magnifierContainerMobile]:z},S)},i.createElement("div",{className:y().magnifier,style:{transformOrigin:`${K}px ${V}px`,transform:`scale(${x*B/2}) translate(-${U}px, -${U}px)`,left:H,top:$}},i.createElement(m.Z,(0,o.Z)({},t,{contentState:n,viewportRect:new f.UL({left:K,top:V,width:O,height:O}),forceDetailView:!0})),e.children),i.createElement("div",{className:y().magnifierGridContainer},i.createElement("svg",{width:O,height:O,viewBox:`0 0 ${O*B} ${O*B}`},i.createElement("defs",null,i.createElement("pattern",{id:"grid",x:z?-3*B:B>1?-.5*B:0,y:z?-3*B:B>1?-.5*B:0,width:Z,height:Z,patternUnits:"userSpaceOnUse"},i.createElement("polyline",{points:`${Z-.5},0 ${Z-.5},${Z-.5} 0,${Z-.5}`,className:y().magnifierGridStroke,strokeWidth:1,strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"}))),i.createElement("g",{transform:`translate(-${1+Z/2},-${1+Z/2})`},r||(r=i.createElement("rect",{fill:"url(#grid)",x:"0",y:"0",width:"100%",height:"100%",strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"})),i.createElement("rect",{x:Math.floor(O*B/2)+B*(b||d.vU&&B>1?0:.5),y:Math.floor(O*B/2)+(b?1:0),width:Z,height:Z,className:y().magnifierCenterStroke,strokeWidth:1,strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"}),i.createElement("rect",{x:Math.floor(O*B/2)-1,y:Math.floor(O*B/2)-1,width:Z+3,height:Z+3,className:y().magnifierCenterOutlineStroke,strokeWidth:2,strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"}))),i.createElement("div",{className:y().magnifierLabelBackground}),i.createElement("div",{className:y().magnifierLabelText},q)))))}},92879:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>W,qw:()=>Q,sY:()=>Y});var r,o,i,a,s=n(22122),l=n(67294),c=n(94184),u=n.n(c),d=n(24021),p=n(35369),h=n(20144),f=n(15359),m=n(67366),g=n(83882),v=n(70982),y=n(85151),b=n(48625),w=n(89637),x=n(14935),_=n(17766),S=n(11236),C=n(30549),E=n.n(C),k=n(60790),z=n(4087),P=n(53261),D=n(97281),A=n(29152),T=n(98179),I=n(22690),M=n(62102),R=n(2841),F=n(94327),N=n(8643),O=n.n(N),j=n(89107),L=n.n(j),B=n(87301),K=n.n(B),V=n(84691),H=n.n(V),$=n(1385),U=n(66327),Z=n(75124),q=n(79579),G=n.n(q);const W=function(e){let{referenceRect:t,viewportState:r,isHidden:o,annotation:i,frameWindow:a,eventEmitter:s,setModalClosurePreventionError:c}=e;(0,f.kG)(i.measurementPrecision&&i.measurementScale);const{formatMessage:g}=(0,d.YB)(),C=(0,m.I0)(),T=i.getMeasurementDetails().value,N=(0,m.v9)((e=>e.backend)),j=(0,m.v9)((e=>e.measurementScales)),B=(0,m.v9)((e=>e.activeMeasurementScale)),[V,H]=(0,l.useState)(!1),[q,G]=(0,l.useState)(!1),W=B&&!V?B.precision:i.measurementPrecision,[X,J]=(0,l.useState)((0,p.l4)([])),[ee,te]=(0,l.useState)(T.toFixed(A._P[W])),ne=l.useMemo((()=>B&&!V?{unitFrom:B.scale.unitFrom,unitTo:B.scale.unitTo,fromValue:B.scale.fromValue,toValue:B.scale.toValue}:i.measurementScale),[B,i.measurementScale,V]),[re,oe]=(0,l.useState)((0,y.sJ)({scale:ne,precision:W}).label),[ie,ae]=(0,l.useState)(ne?.fromValue.toString()),[se,le]=(0,l.useState)(ne?.toValue.toString()),[ce,ue]=(0,l.useState)(!1),de=(0,l.useCallback)((e=>{const t=i.merge(e),n={annotations:(0,p.aV)([t]),reason:R.f.PROPERTY_CHANGE};s.emit("annotations.willChange",n),C((0,z.FG)(t)),H(!0)}),[i,C,s]),pe=l.useCallback((e=>{const t=(0,A.P_)(i,e);de({measurementScale:t}),ae(t.fromValue.toString()),le(t.toValue.toString())}),[i,de]);(0,l.useEffect)((()=>{c({error:k.x.MEASUREMENT_ERROR,annotationId:i.id})}),[i.id]),(0,l.useEffect)((()=>{pe(parseFloat(ee||"1"))}),[ee,ne]),(0,l.useEffect)((()=>{C((0,U.M4)(W))}),[W]),(0,l.useEffect)((()=>{q&&re||(oe((0,y.sJ)({scale:ne,precision:W}).label),J(X.delete("scaleName")));const e=j?.find((e=>{let{scale:t,precision:n}=e;return t.fromValue===Number(ne?.fromValue)&&t.toValue===Number(ne?.toValue)&&t.unitFrom===ne?.unitFrom&&t.unitTo===ne?.unitTo&&n===W}));J(e?X.add("duplicate"):X.delete("duplicate"))}),[ie,se,ee,ne,W]);const he="startPoint"in i&&i.startPoint,fe="endPoint"in i&&i.endPoint;(0,l.useEffect)((()=>{te(i.getMeasurementDetails().value.toFixed(A._P[W]))}),[he,fe,W]);const me=l.useCallback((0,M.zx)(g,"measurement"),[g]),ge=l.useCallback((0,M.ck)(g),[g]),ve=l.useCallback((()=>{const e={name:re,scale:{fromValue:parseFloat(ie),toValue:parseFloat(se),unitFrom:ne?.unitFrom,unitTo:ne?.unitTo},precision:W};(0,m.dC)((()=>{C((0,x.C0)(e)),C((0,x.Se)(e))})),"SERVER"===N?.type?(0,m.dC)((()=>{C((0,z.hQ)(i)),C((0,w.fz)()),C((0,U.UF)(b.A.MEASUREMENT)),C((0,x.Xh)(!1)),C((0,v.KY)(!0))})):ue(!0)}),[ue,C,ie,W,ne?.unitFrom,ne?.unitTo,re,se]),ye="in"===i.measurementScale.unitTo||"ft"===i.measurementScale.unitTo||"yd"===i.measurementScale.unitTo?A.nK:A.nK.filter((e=>!e.label.includes("/")));return ce?l.createElement(h.u_,{onEscape:()=>{(0,m.dC)((()=>{C((0,z.hQ)(i)),C((0,w.fz)()),C((0,U.UF)(b.A.MEASUREMENT)),C((0,x.Xh)(!1))}))},background:"var(--PSPDFKit-MeasurementModalComponent-background-color)",className:K().calibrationSuccessModal},l.createElement("div",{className:K().calibrationSuccessModalContainer},l.createElement("div",{className:K().calibrationSuccessRow},l.createElement(P.Z,{src:n(97468),className:E().itemIcon,role:"presentation",style:{color:"#628D06"}}),l.createElement("div",{onClick:()=>{(0,m.dC)((()=>{C((0,z.hQ)(i)),C((0,w.fz)()),C((0,U.UF)(b.A.MEASUREMENT)),C((0,x.Xh)(!1))}))}},l.createElement(P.Z,{src:n(66361),className:E().itemIcon,role:"presentation",style:{cursor:"pointer"}}))),l.createElement("div",{className:u()(K().calibrationSuccessRow,K().calibrationSuccessTitle)},l.createElement("p",null,g(Y.calibrationScaleSuccess))),l.createElement("div",{className:K().calibrationSuccessRow},l.createElement("p",null,g(Y.calibrationScaleSubtitle))))):o?null:l.createElement(S.Z,{referenceRect:t,viewportState:r,className:"PSPDFKit-Measurement-Popover",wrapperClassName:"PSPDFKit-Measurement-Editor",title:g(Y.calibrateScale),footer:l.createElement("div",{className:u()(K().footer,K().contentRow,K().spaceBetweenRow)},l.createElement(h.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end"},l.createElement(h.zx,{autoFocus:!0,onClick:()=>{(0,m.dC)((()=>{C((0,x.Xh)(!1)),C((0,z.hQ)(i)),C((0,w.fz)()),C((0,U.UF)(b.A.MEASUREMENT))}))},className:u()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Cancel",K().button)},g(_.Z.delete)),l.createElement(h.zx,{onClick:()=>ve(),primary:!0,disabled:X.size>0,className:u()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Confirm",K().button)},g(_.Z.done))))},l.createElement("div",{className:L().calibration},l.createElement("div",{className:L().calibrationTop},l.createElement(P.Z,{src:n(64772),className:E().itemIcon,role:"presentation"}),l.createElement("div",{className:E().itemLabel},g(Y.calibrateLength)),l.createElement("div",{className:L().calibrateRight},l.createElement(h.oi,{type:"number",value:ee,onChange:e=>{if(te(e.target.value),!function(e){const t=parseFloat(e);return!isNaN(t)&&isFinite(t)&&t>0}(e.target.value))return void J(X.add("calibrationValue"));J(X.delete("calibrationValue"));const t=parseFloat(e.target.value);pe(t)},required:!0,style:{height:32,width:90,borderColor:X.has("calibrationValue")?"#FF0000":void 0},className:u()(O().input,"PSPDFKit-Calibration-Input")}),l.createElement("div",{className:u()(E().nativeDropdown,L().nativeButton)},l.createElement("select",{"aria-label":g(Y.calibrate),className:u()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Calibration-UnitTo"),value:A.b5.find((e=>e.value===ne?.unitTo))?.value??i.measurementScale?.unitTo,onChange:e=>{de({measurementScale:i.measurementScale?.set("unitTo",e.target.value)})}},Object.keys($.K).map((e=>l.createElement("option",{key:e,value:$.K[e]},$.K[e]))))),l.createElement(I.Z,{items:A.b5,value:A.b5.find((e=>e.value===ne?.unitTo))??null,accessibilityLabel:g(Y.calibrate),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:u()(E().dropdownGroupComponent,"PSPDFKit-Calibration-UnitTo"),menuClassName:E().dropdownGroupMenu,ButtonComponent:me,ItemComponent:ge,onSelect:(e,t)=>{de({measurementScale:i.measurementScale?.set("unitTo",t.value)})},frameWindow:a})))),l.createElement("span",{className:L().spacer}),l.createElement("div",{className:L().scale},l.createElement("div",{className:L().scaleTop},l.createElement(P.Z,{src:n(45983),className:E().itemIcon,role:"presentation"}),l.createElement("div",{className:E().itemLabel},g(Y.measurementScale))),l.createElement("div",{style:{width:"100%"},className:L().itemHeader},l.createElement(h.oi,{type:"text",value:re,onChange:e=>{e.target.value?J(X.delete("scaleName")):J(X.add("scaleName")),oe(e.target.value),q||G(!0)},required:!0,style:{height:32,width:"100%",borderColor:X.has("scaleName")?"#FF0000":void 0},className:u()(O().input,"PSPDFKit-Calibration-Name")})),l.createElement("div",{className:L().scaleBottom},l.createElement("div",null,l.createElement(h.oi,{type:"number",value:ie,required:!0,disabled:!0,style:{height:32,width:90,borderColor:X.has("fromValue")?"#FF0000":void 0,opacity:"var(--PSPDFKit-Button-isDisabled-opacity)"},className:u()(O().input,O().disabled)}),l.createElement("div",{className:u()(E().nativeDropdown,L().nativeButton)},l.createElement("select",{"aria-label":g(Y.measurementScale),className:"PSPDFKit-Input-Dropdown-Select",value:i.measurementScale?.unitFrom||"",disabled:!0},Object.keys(F.s).map((e=>l.createElement("option",{key:e,value:F.s[e]},F.s[e]))))),l.createElement(I.Z,{items:A.m_,value:A.m_.find((e=>e.value===ne?.unitFrom))??null,accessibilityLabel:g(Y.measurementScale),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:E().dropdownGroupComponent,menuClassName:E().dropdownGroupMenu,ButtonComponent:me,ItemComponent:ge,disabled:!0,frameWindow:a})),":",l.createElement("div",null,l.createElement(h.oi,{type:"number",value:se,required:!0,disabled:!0,style:{height:32,width:90,borderColor:X.has("toValue")?"#FF0000":void 0,opacity:"var(--PSPDFKit-Button-isDisabled-opacity)"},className:u()(O().input,O().disabled)}),l.createElement("div",{className:u()(E().nativeDropdown,L().nativeButton)},l.createElement("select",{"aria-label":g(Y.measurementScale),className:"PSPDFKit-Input-Dropdown-Select",value:i.measurementScale?.unitTo||"",disabled:!0},Object.keys($.K).map((e=>l.createElement("option",{key:e,value:$.K[e]},$.K[e]))))),l.createElement(I.Z,{items:A.b5,value:A.b5.find((e=>e.value===ne?.unitTo))??null,accessibilityLabel:g(Y.measurementScale),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:E().dropdownGroupComponent,menuClassName:E().dropdownGroupMenu,ButtonComponent:me,ItemComponent:ge,disabled:!0,frameWindow:a})))),l.createElement("span",{className:L().spacer}),l.createElement("div",{className:E().item},l.createElement("div",{className:u()(E().itemLabel,L().itemLabel)},g(Y.measurementPrecision)),l.createElement("div",{className:u()(E().nativeDropdown,L().nativeButton)},l.createElement("select",{style:{height:30},"aria-label":g(Y.measurementPrecision),className:u()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Calibration-Precision"),value:i.measurementPrecision||"",onChange:e=>{de({measurementPrecision:e.target.value})}},Object.keys(D.L).map(((e,t)=>l.createElement("option",{key:e,value:D.L[e]},A.W9[t]))))),l.createElement(I.Z,{items:ye,value:ye.find((e=>e.value===i.measurementPrecision))??null,accessibilityLabel:g(Y.measurementPrecision),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:u()(E().dropdownGroupComponent,"PSPDFKit-Measurement-Popover-Precision-Dropdown","PSPDFKit-Calibration-Precision"),menuClassName:E().dropdownGroupMenu,ButtonComponent:me,ItemComponent:Q,onSelect:(e,t)=>{de({measurementPrecision:t.value}),te(T.toFixed(A._P[t.value]).toString())},frameWindow:a})),X.has("duplicate")&&l.createElement("p",{className:K().scaleError},g(Z.s.scaleAlreadyAddedWarning)))},Y=(0,d.vU)({calibrationScaleSuccess:{id:"calibrationScaleSuccess",defaultMessage:"Scale has been successfully set",description:"Scale has been successfully set"},calibrationScaleSubtitle:{id:"calibrationScaleSubtitle",defaultMessage:"Start measuring by selecting one of the measurement tools.",description:"Start measuring by selecting one of the measurement tools."},perimeterMeasurementSettings:{id:"perimeterMeasurementSettings",defaultMessage:"Perimeter Measurement Settings",description:"Perimeter Measurement Settings"},polygonAreaMeasurementSettings:{id:"polygonAreaMeasurementSettings",defaultMessage:"Polygon Area Measurement Settings",description:"Polygon Area Measurement Settings"},rectangularAreaMeasurementSettings:{id:"rectangularAreaMeasurementSettings",defaultMessage:"Rectangle Area Measurement Settings",description:"Rectangle Area Measurement Settings"},ellipseAreaMeasurementSettings:{id:"ellipseAreaMeasurementSettings",defaultMessage:"Ellipse Area Measurement Settings",description:"Ellipse Area Measurement Settings"},calibrateLength:{id:"calibrateLength",defaultMessage:"Calibrate Length",description:"Calibrate"},measurementPrecision:{id:"measurementPrecision",defaultMessage:"Precision",description:"Precision"},measurementScale:{id:"measurementScale",defaultMessage:"Scale",description:"Scale"},calibrateScale:{id:"calibrateScale",defaultMessage:"Calibrate Scale",description:"Calibrate Scale"},calibrate:{id:"calibrate",defaultMessage:"Calibrate",description:"Calibrate"}});const X=e=>T.G6?l.createElement("span",null,e.label):"1/2"===e.label?r||(r=l.createElement("span",null,"1⁄2 in")):"1/4"===e.label?o||(o=l.createElement("span",null,"1⁄4 in")):"1/8"===e.label?i||(i=l.createElement("span",null,"1⁄8 in")):"1/16"===e.label?a||(a=l.createElement("span",null,"1⁄16 in ")):l.createElement("span",null,e.label),Q=e=>{let{item:t,state:n,itemComponentProps:r,ref:o}=e;return l.createElement(g.Z,(0,s.Z)({is:"div",className:u()(H().item,{[H().isSelected]:n?.includes("selected")||n?.includes("focused")},H().measurementDropdownText),name:t?.value},r,{ref:o}),n?.includes("selected")?l.createElement(P.Z,{src:G(),className:L().icon}):l.createElement("span",{className:L().icon}),l.createElement(X,{label:t?.label}))}},38835:(e,t,n)=>{"use strict";n.d(t,{Z:()=>T,s:()=>I});var r=n(67294),o=n(24021),i=n(20144),a=n(94184),s=n.n(a),l=n(67366),c=n(15837),u=n(58163),d=n(4087),p=n(89637),h=n(66327),f=n(67260),m=n(75124),g=n(72113),v=n(17766),y=n(87301),b=n.n(y),w=n(46945),x=n(89107),_=n.n(x),S=n(1385),C=n(30549),E=n.n(C),k=n(22690),z=n(62102),P=n(97281),D=n(29152),A=n(14935);const T=function(e){let{frameWindow:t}=e;const{formatMessage:n}=(0,o.YB)(),a=(0,l.v9)((e=>e.measurementScales)),y=(0,l.v9)((e=>e.secondaryMeasurementUnit)),[x,C]=r.useState(Boolean(y)),[T,M]=r.useState(y?.unitTo),[R,F]=r.useState(y?.precision),[N,O]=r.useState(!1),[j,L]=r.useState([]),[B,K]=r.useState(null),[V,H]=r.useState(null),[$,U]=r.useState(!1),Z=(0,l.v9)((e=>{const{selectedAnnotationIds:t,annotations:n}=e;return t.map((e=>n.get(e)))})),q=(0,l.I0)(),G=r.useCallback((0,z.zx)(n,"measurement"),[n]),W=r.useCallback((0,z.ck)(n),[n]),Y=r.useCallback((()=>{q((0,h.jJ)()),q((0,p.fz)()),q((0,d.Ds)("measurement")),q((0,h.BR)())}),[q]),X=r.useCallback((e=>{if(N&&j&&a){const{deleted:t}=(0,D.Rc)(a,j);if(t.filter((e=>{const t=V?.find((t=>t.prevScale===e));return!t})).length>0&&!e)return void U(!0);(0,l.dC)((()=>{q((0,A.U7)(j,V)),q((0,A.Se)(B))}))}x&&T&&R&&q((0,A.v9)({unitTo:T,precision:R})),!y||T||R||q((0,A.v9)(null)),Z.size>0&&(0,l.dC)((()=>{Z.toList().forEach((e=>{const t=e.set("measurementScale",new u.Z({fromValue:Number(B?.scale.fromValue),toValue:Number(B?.scale.toValue),unitFrom:B?.scale.unitFrom,unitTo:B?.scale.unitTo})).set("measurementPrecision",B?.precision);q((0,d.FG)(t))}))})),Y()}),[B,N,q,V,a,Y,j,y,T,R,x]),Q=r.useMemo((()=>!!T&&(0,D.B0)(T)),[T]);return $?r.createElement(f.z,{onConfirm:()=>{X(!0)},onCancel:()=>{U(!1)},accessibilityLabel:n(I.scaleAnnotationsDeleteWarning),accessibilityDescription:n(I.scaleAnnotationsDeleteWarning)},r.createElement("p",null,n(I.scaleAnnotationsDeleteWarning))):r.createElement(g.Z,{onEscape:Y,background:"var(--PSPDFKit-MeasurementModalComponent-background-color)",className:s()(b().modal,"PSPDFKit-Modal-Measurement-Settings")},r.createElement("h2",{className:s()(b().title,b().header,b().contentRow)},n(I.setScale)),r.createElement(m.Z,{frameWindow:t,setAreValidScales:O,scalesSetter:L,activeScaleSetter:K,editedScalesSetter:H}),r.createElement("h2",{className:s()(b().contentRow,b().sectionTitle,b().spaceBetweenRow)},n(I.secondaryUnits)),r.createElement("div",{className:s()(b().contentRow,b().spaceBetweenRow)},r.createElement("p",null,n(I.displaySecondaryUnit)),r.createElement(w.n,{value:x,onUpdate:()=>{x?(M(void 0),F(void 0)):(M(S.K.INCHES),F(P.L.WHOLE)),C(!x)},accessibilityLabel:n(I.displaySecondaryUnit)})),x?r.createElement("div",{className:"PSPDFKit-Secondary-Measurement"},r.createElement("div",{className:s()(b().contentRow,b().spaceBetweenRow)},r.createElement("p",null,n(I.unit)),r.createElement("div",{className:s()(b().nativeDropdown,_().nativeButton)},r.createElement("select",{style:{height:30},"aria-label":n(I.measurementScale),value:D.b5.find((e=>e.value===T))?.value||"",className:"PSPDFKit-Input-Dropdown-Select",onChange:e=>{M(e.target.value)}},Object.keys(S.K).map((e=>r.createElement("option",{key:e,value:S.K[e]},S.K[e]))))),r.createElement(k.Z,{items:D.b5,value:D.b5.find((e=>e.value===T))??null,accessibilityLabel:n(I.measurementScale),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:s()(b().dropdownGroupComponent,E().dropdownGroupComponent,"PSPDFKit-Secondary-Measurement-UnitTo"),menuClassName:E().dropdownGroupMenu,ButtonComponent:G,ItemComponent:W,onSelect:(e,t)=>{(0,D.B0)(t.value)&&(0,D.zl)(R)&&!Q&&F(void 0),M(t.value)},frameWindow:t})),r.createElement("div",{className:s()(b().contentRow,b().spaceBetweenRow)},r.createElement("p",null,n(I.measurementPrecision)),r.createElement(c.Z,{frameWindow:t,unit:T,onPrecisionChange:F,selectedPrecision:R,precisionDropdownClassname:"PSPDFKit-Secondary-Measurement-Precision",accessibilityLabel:n(I.measurementPrecision)}))):null,r.createElement("div",{className:s()(b().footer,b().contentRow,b().spaceBetweenRow)},r.createElement(i.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end"},r.createElement(i.zx,{autoFocus:!0,onClick:Y,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Cancel",b().button)},n(v.Z.cancel)),r.createElement(i.zx,{onClick:()=>X(),primary:!0,disabled:x&&(!T||!R)||!N,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Confirm",b().button)},n(v.Z.done)))))},I=(0,o.vU)({distanceMeasurementSettings:{id:"distanceMeasurementSettings",defaultMessage:"Distance Measurement Settings",description:"Distance Measurement Settings"},perimeterMeasurementSettings:{id:"perimeterMeasurementSettings",defaultMessage:"Perimeter Measurement Settings",description:"Perimeter Measurement Settings"},polygonAreaMeasurementSettings:{id:"polygonAreaMeasurementSettings",defaultMessage:"Polygon Area Measurement Settings",description:"Polygon Area Measurement Settings"},rectangularAreaMeasurementSettings:{id:"rectangularAreaMeasurementSettings",defaultMessage:"Rectangle Area Measurement Settings",description:"Rectangle Area Measurement Settings"},ellipseAreaMeasurementSettings:{id:"ellipseAreaMeasurementSettings",defaultMessage:"Ellipse Area Measurement Settings",description:"Ellipse Area Measurement Settings"},measurementCalibrateLength:{id:"measurementCalibrateLength",defaultMessage:"Calibrate Length",description:"Calibrate"},measurementPrecision:{id:"measurementPrecision",defaultMessage:"Precision",description:"Precision"},measurementScale:{id:"measurementScale",defaultMessage:"Scale",description:"Measurement Scale"},setScale:{id:"setScale",defaultMessage:"Set Scale",description:"Set Scale"},unit:{id:"unit",defaultMessage:"Unit",description:"Unit"},secondaryUnits:{id:"secondaryUnits",defaultMessage:"Secondary Units",description:"Secondary Units"},displaySecondaryUnit:{id:"displaySecondaryUnit",defaultMessage:"Display Secondary Unit",description:"Display Secondary Unit"},scaleAnnotationsDeleteWarning:{id:"scaleAnnotationsDeleteWarning",defaultMessage:"Deleting the scale will also delete measurements using the scale.",description:"Message displayed in the scales deletion dialog"}})},15837:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(94184),o=n.n(r),i=n(67294),a=n(24021),s=n(62102),l=n(92879),c=n(89107),u=n.n(c),d=n(38835),p=n(87301),h=n.n(p),f=n(30549),m=n.n(f),g=n(22690),v=n(97281),y=n(29152);const b=e=>{let{unit:t,frameWindow:n,selectedPrecision:r,onPrecisionChange:c,wrapperClass:p,precisionDropdownClassname:f,accessibilityLabel:b,index:w}=e;const{formatMessage:x}=(0,a.YB)(),_=(0,i.useMemo)((()=>!!t&&(0,y.B0)(t)),[t]),S=(0,i.useMemo)((()=>_?y.Qc:y.nK),[_]),C=i.useCallback((0,s.zx)(x,"measurement"),[x]);return i.createElement("div",{className:p||void 0},i.createElement("div",{className:o()(h().nativeDropdown,u().nativeButton)},i.createElement("select",{style:{height:30},"aria-label":x(d.s.measurementPrecision),"data-test-id":void 0!==w?`PSPDFKit-Scale-${w+1}-Precision`:"PSPDFKit-Scale-Precision",value:y.nK.find((e=>e.value===r||e.label===r))?.value||"",className:o()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Measurement-Precision-Dropdown"),onChange:e=>{c(e.target.value)}},Object.keys(v.L).filter((e=>_?!(0,y.zl)(v.L[e]):e)).map(((e,t)=>i.createElement("option",{key:e,value:v.L[e]},y.W9[t]))))),i.createElement(g.Z,{items:S,value:S.find((e=>e.value===r||e.label===r))??null,accessibilityLabel:b,discreteDropdown:!1,isActive:!1,caretDirection:"down",className:o()("PSPDFKit-Input-Dropdown-Select",h().dropdownGroupComponent,"PSPDFKit-Measurement-Precision-Dropdown",f),"data-test-id":void 0!==w?`PSPDFKit-Scale-${w+1}-Precision`:"PSPDFKit-Scale-Precision",menuClassName:m().dropdownGroupMenu,ButtonComponent:C,ItemComponent:l.qw,onSelect:(e,t)=>{c(t.value)},frameWindow:n}))}},75124:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R,s:()=>M});var r=n(20144),o=n(94184),i=n.n(o),a=n(67294),s=n(24021),l=n(67366),c=n(15837),u=n(97281),d=n(62102),p=n(30549),h=n.n(p),f=n(8643),m=n.n(f),g=n(53261),v=n(92879),y=n(89107),b=n.n(y),w=n(17766),x=n(22690),_=n(94327),S=n(1385),C=n(29152),E=n(87301),k=n.n(E);const z="duplicate",P="name",D="fromValue",A="toValue",T="precision";function I(e){const t=parseFloat(e);return!isNaN(t)&&isFinite(t)&&t>0}const M=(0,s.vU)({scaleSelector:{id:"scaleSelector",defaultMessage:"Scale {arg0}",description:"Scale checkbox selector for multiple scale selection accessibility"},scaleName:{id:"scaleName",defaultMessage:"Scale Name",description:"Scale Name"},scaleUnitFrom:{id:"scaleUnitFrom",defaultMessage:"Scale unit from",description:"Scale unit from"},scaleUnitTo:{id:"scaleUnitTo",defaultMessage:"Scale unit to",description:"Scale unit to"},addScale:{id:"addScale",defaultMessage:"Add scale",description:"Add scale"},scaleAlreadyAddedWarning:{id:"scaleAlreadyAddedWarning",defaultMessage:"Scale with these settings has already been defined. Please choose a different scale.",description:"Scale with these settings has already been defined. Please choose a different scale."}}),R=function(e){const{frameWindow:t,setAreValidScales:o,scalesSetter:p,activeScaleSetter:f,editedScalesSetter:y}=e,{formatMessage:E}=(0,s.YB)(),R=(0,l.v9)((e=>e.measurementScales)),F=(0,l.v9)((e=>e.activeMeasurementScale)),[N,O]=(0,a.useState)([]),[j,L]=(0,a.useState)(R),[B,K]=(0,a.useState)(F?R?.findIndex((e=>(0,C.cd)(e,F))):0),[V,H]=(0,a.useState)([]),[$,U]=(0,a.useState)([]);a.useEffect((()=>{const e=function(e,t){const n=[];return t.forEach((t=>{const r=e[t],o=[],i=r.scale.fromValue,a=r.scale.toValue,s=r.precision;I(i)||o.push(D),I(a)||o.push(A),s||o.push(T);const l=[];e.forEach(((e,n)=>{n!==t&&(l.push(n),r.name&&r.name===e.name&&!o.includes(P)&&o.push(P),(0,C.cd)(r,e)&&!o.includes(z)&&o.push(z))})),o.length>0&&n.push({index:t,fields:o,conflicts:l})})),n}(j,$);if(e.length>0){const t=e[e.length-1];O([t])}else O([]),U([]),p(j);o(0===e.length)}),[j,p,o]),a.useEffect((()=>{L(R)}),[R]),a.useEffect((()=>{const e=j?.find(((e,t)=>t===B));e&&f(e)}),[B,f,j]),a.useEffect((()=>{y(V)}),[V]);const Z=(e,t,n)=>{L((r=>{const o=r?.map((e=>({...e,scale:{...e.scale}})));return"precision"===t?o[e][t]=n:o[e].scale={...o[e].scale,[t]:n},o})),R?.find((t=>JSON.stringify(t)===JSON.stringify(j?.[e])))&&V&&!V.find((t=>t===e))&&H([...V,{index:e,prevScale:R[e]}]),$.includes(e)||U([...$,e])},q=a.useCallback((0,d.zx)(E,"measurement"),[E]),G=a.useCallback((0,d.ck)(E),[E]);return a.createElement("div",{className:k().scale},j?.map(((e,o)=>{const s=e.name,l=e.scale,u=e.precision,d=l?.unitFrom,p=l?.unitTo,f=l?.fromValue,y=l?.toValue,I=N.find((e=>e.index===o)),F=I?.fields.includes(z),O=I?.fields.includes(P),W=I?.fields.includes(D),Y=I?.fields.includes(A),X=I?.fields.includes(T);return a.createElement("div",{key:o,style:{marginBottom:"var(--PSPDFKit-spacing-6)"}},a.createElement("div",{className:i()(k().scaleRow),style:F?{borderBottom:0}:{},"data-test-id":`PSPDFKit-Scale-${o+1}`},a.createElement("input",{key:s,type:"radio",checked:Boolean(B===o&&!F),value:o,id:E(M.scaleSelector,{arg0:o+1}),name:E(M.scaleSelector,{arg0:o+1}),onChange:e=>{e.target.checked&&K(o)},className:i()(k().activeScaleRadio,"PSPDFKit-Active-Scale-Radio-Input")}),a.createElement("div",{className:i()(k().scaleContent,k().scaleMiddleSection)},a.createElement("div",{className:i()(k().scaleRow,k().spaceBetweenRow,k().rowSeparator)},a.createElement(r.oi,{type:"text",value:s,placeholder:E(M.scaleName),onChange:e=>{((e,t)=>{$.includes(e)||U([...$,e]),L((n=>{const r=n?.map((e=>({...e,scale:{...e.scale}})));return r[e].name=t,r})),R?.find((t=>JSON.stringify(t)===JSON.stringify(j?.[e])))&&V&&!V.find((t=>t===e))&&H([...V,{index:e,prevScale:R[e]}])})(o,e.target.value)},required:!0,style:{height:32,width:"100%",borderColor:O?"#FF0000":void 0},className:i()(m().input),maxLength:40})),a.createElement("div",{className:i()(k().scaleRow,k().rowSeparator)},a.createElement("div",{className:k().scaleRowContent},a.createElement(r.oi,{type:"number",value:""+f,onChange:e=>{Z(o,"fromValue",e.target.value)},required:!0,style:{height:32,width:54,borderColor:W||F?"#FF0000":void 0},"data-test-id":`PSPDFKit-Scale-${o+1}-FromValue`,className:i()(m().input)}),a.createElement("div",{className:i()(k().nativeDropdown,b().nativeButton)},a.createElement("select",{style:{height:30},"aria-label":`${E(M.scaleUnitFrom)} ${o+1}`,className:i()("PSPDFKit-Input-Dropdown-Select"),"data-test-id":`PSPDFKit-Scale-${o+1}-UnitFrom`,value:d||"",onChange:e=>{Z(o,"unitFrom",e.target.value)}},Object.keys(_.s).map((e=>a.createElement("option",{key:e,value:_.s[e]},_.s[e]))))),a.createElement(x.Z,{items:C.m_,value:C.m_.find((e=>e.value===d))??null,accessibilityLabel:`${E(M.scaleUnitFrom)} ${o+1}`,discreteDropdown:!1,isActive:!1,caretDirection:"down","data-test-id":`PSPDFKit-Scale-${o+1}-UnitFrom`,className:i()(k().dropdownGroupComponent,h().dropdownGroupComponent),menuClassName:h().dropdownGroupMenu,ButtonComponent:q,ItemComponent:G,onSelect:(e,t)=>{Z(o,"unitFrom",t.value)},frameWindow:t})),"=",a.createElement("div",{className:k().scaleRowContent},a.createElement(r.oi,{type:"number",value:""+y,onChange:e=>{Z(o,"toValue",e.target.value)},required:!0,style:{height:32,width:54,borderColor:Y||F?"#FF0000":void 0},"data-test-id":`PSPDFKit-Scale-${o+1}-ToValue`,className:i()(m().input)}),a.createElement("div",{className:i()(k().nativeDropdown,b().nativeButton)},a.createElement("select",{style:{height:30},"aria-label":`${E(M.scaleUnitFrom)} ${o+1}`,"data-test-id":`PSPDFKit-Scale-${o+1}-UnitTo`,className:i()("PSPDFKit-Input-Dropdown-Select"),value:p||"",onChange:e=>{Z(o,"unitTo",e.target.value)}},Object.keys(S.K).map((e=>a.createElement("option",{key:e,value:S.K[e]},S.K[e]))))),a.createElement(x.Z,{items:C.b5,value:C.b5.find((e=>e.value===p))??null,accessibilityLabel:`${E(M.scaleUnitFrom)} ${o+1}`,discreteDropdown:!1,isActive:!1,caretDirection:"down","data-test-id":`PSPDFKit-Scale-${o+1}-UnitTo`,className:i()(k().dropdownGroupComponent,h().dropdownGroupComponent),menuClassName:h().dropdownGroupMenu,ButtonComponent:q,ItemComponent:G,onSelect:(e,t)=>{Z(o,"unitTo",t.value)},frameWindow:t}))),a.createElement("div",{className:i()(k().scaleRow,k().spaceBetweenRow,k().rowSeparator)},a.createElement("p",{className:h().itemLabel},E(v.sY.measurementPrecision)),a.createElement(c.Z,{frameWindow:t,unit:p,onPrecisionChange:e=>Z(o,"precision",e),selectedPrecision:u,wrapperClass:i()({[k().error]:X}),accessibilityLabel:`${v.sY.measurementScale} ${E(v.sY.measurementPrecision)} ${o+1}`,index:o}))),a.createElement("div",null,a.createElement(r.zx,{"data-test-id":`PSPDFKit-Scale-${o+1}-RemoveScale`,className:i()(k().closeButton,"PSPDFKit-Measurement-Exit-Dialog-Close-Button"),onClick:()=>{(e=>{if(L((t=>{const n=t?.map((e=>({...e,scale:{...e.scale}})));return n.splice(e,1),n})),V){const t=V.filter((t=>t.index!==e)).map((e=>({...e,index:e.index-1})));H(t)}if($){const t=$.filter((t=>t!==e)).map((e=>e-1));U(t)}K((e=>e?e-1:0))})(o)},"aria-label":E(w.Z.close),disabled:1===j.length,style:{position:"relative",top:"7px"}},a.createElement(g.Z,{className:k().signatureValidationCloseIcon,src:n(2256)})))),(F||O)&&a.createElement("p",{className:i()(k().scaleError)},E(M.scaleAlreadyAddedWarning)))})),a.createElement("div",{className:k().addNewScale,onClick:()=>{L((e=>{const t=e?.map((e=>({...e,scale:{...e.scale}})));return t.push({name:"",scale:{unitFrom:"cm",unitTo:"cm",fromValue:1,toValue:1},precision:u.L.WHOLE}),t})),U([...$,j?.length])}},a.createElement(g.Z,{className:k().signatureValidationCloseIcon,src:n(45632),style:{color:"#4636E3"}}),a.createElement("u",{style:{color:"var(--color-blue600)"}},E(M.addScale))))}},85151:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>L,sJ:()=>O});var r=n(22122),o=n(94184),i=n.n(o),a=n(83882),s=n(85628),l=n.n(s),c=n(67294),u=n(24021),d=n(67366),p=n(79579),h=n.n(p),f=n(29152),m=n(38835),g=n(58163),v=n(48625),y=n(4087),b=n(14935),w=n(62102),x=n(84691),_=n.n(x),S=n(30549),C=n.n(S),E=n(89107),k=n.n(E),z=n(22690),P=n(66327),D=n(53261),A=n(44170),T=n.n(A),I=n(71479),M=n(87301),R=n.n(M),F=n(17766);function N(e,t){const n=Math.round(e*t);return new(l())(n/t).toFraction(!0)}function O(e){if(!e)return{label:"",value:null};let t,n;const r=function(e){switch(e){case"whole":return"1";case"oneDp":return"0.1";case"twoDp":return"0.001";case"threeDp":case"fourDp":return"0.0001";default:return null}}(e.precision)||e.precision;if(["1","0.1","0.01","0.001","0.0001"].includes(r)){const o=function(e){switch(e){case"1":default:return 0;case"0.1":return 1;case"0.01":return 2;case"0.001":return 3;case"0.0001":return 4}}(r);t=Number(e.scale.fromValue).toFixed(o),n=Number(e.scale.toValue).toFixed(o)}else if(["1/2","1/4","1/8","1/16"].includes(r)){const o=Number(r.split("/")[1]);t=N(e.scale.fromValue,o),n=N(e.scale.toValue,o)}return{label:e.name||`${t} ${e.scale.unitFrom} : ${n} ${e.scale.unitTo}`,value:e}}const j=(0,u.vU)({unit:{id:"unit",defaultMessage:"Unit",description:"Unit"},scalesDropdown:{id:"scalesDropdown",defaultMessage:"Scales dropdown",description:"Scales dropdown"},editAddNewScale:{id:"editAddNewScale",defaultMessage:"Edit or add new scale",description:"Edit or add new scale"},useCalibrationTool:{id:"useCalibrationTool",defaultMessage:"Use calibration tool",description:"Use calibration tool"}}),L=function(e){let{frameWindow:t,selectedAnnotation:r,onAnnotationScaleUpdate:o,selectedAnnotations:a}=e;const s=(0,d.v9)((e=>e.measurementScales)),l=(0,d.v9)((e=>e.activeMeasurementScale)),p=(0,d.I0)(),{formatMessage:h}=(0,u.YB)(),x=c.useMemo((()=>function(e,t){if(t&&e)return e?.find((e=>{const n=e.precision===t.measurementPrecision,r=e.scale.fromValue===t.measurementScale?.fromValue,o=e.scale.toValue===t.measurementScale?.toValue,i=e.scale.unitFrom===t.measurementScale?.unitFrom,a=e.scale.unitTo===t.measurementScale?.unitTo;return n&&r&&o&&i&&a}))}(s,r)||l),[s,r,l]),S=c.useCallback((0,w.zx)(h,"measurement",200),[h]),E=c.useMemo((()=>!!a&&(0,f.mq)(a)),[a]),A=c.useMemo((()=>function(e,t,n){if(!e)return[];const r=e.map((e=>O(e)));return t?[...r,{label:n,value:n}]:r}(s,E,h(F.Z.mixed))),[E,h,s]),M=c.useCallback((e=>{if(e.value!==h(F.Z.mixed))if(r){const{value:t}=e,{precision:n,scale:r}=t,{fromValue:i,toValue:a,unitFrom:s,unitTo:l}=r;o?.({measurementPrecision:n,measurementScale:new g.Z({fromValue:Number(i),toValue:Number(a),unitFrom:s,unitTo:l})})}else p((0,b.Se)(e.value))}),[p,h,o,r]);if(!s)return null;if(!x)return c.createElement("div",{className:T().warningButton,onClick:()=>p((0,P.PR)())},c.createElement(D.Z,{src:n(42744),role:"presentation",className:T().warningButtonIcon}),c.createElement("span",{className:T().radioButtonWarningLabel},h(m.s.setScale)));function N(){(0,d.dC)((()=>{p((0,b.Xh)(!0)),p((0,y.Ds)("distance")),p((0,P.yg)(I.Z,v.A.DISTANCE))}))}return c.createElement("div",{className:k().scaleDropdownContainer},c.createElement("div",{className:i()(C().nativeDropdown,k().nativeButton)},c.createElement("select",{"aria-label":h(j.scalesDropdown),value:E?h(F.Z.mixed):A.find((e=>JSON.stringify(e.value)===JSON.stringify(x)))?.label,className:i()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Scales-Dropdown"),onChange:e=>{const t=e.target.value;"editAddScale"===t?p((0,P.PR)()):"calibrationTool"===t?N():M(A.find((e=>e.label===t)))}},A?.map((e=>c.createElement("option",{key:e.label,value:e.label},e.label))),c.createElement("option",{key:h(j.editAddNewScale),value:"editAddScale"},h(j.editAddNewScale),"..."),c.createElement("option",{key:h(j.useCalibrationTool),value:"calibrationTool"},h(j.useCalibrationTool),"..."))),c.createElement(z.Z,{items:A,value:E?{label:h(F.Z.mixed),value:h(F.Z.mixed)}:A.find((e=>JSON.stringify(e.value)===JSON.stringify(x))),accessibilityLabel:h(j.scalesDropdown),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:i()(C().dropdownGroupComponent,"PSPDFKit-Measurement-Popover-Precision-Dropdown","PSPDFKit-Scales-Dropdown"),menuClassName:i()(C().dropdownGroupMenu,_().measurementDropdownText),ButtonComponent:S,ItemComponent:B,onSelect:(e,t)=>M(t),frameWindow:t},c.createElement("div",{className:R().scalesDropdownItem,onClick:()=>p((0,P.PR)())},h(j.editAddNewScale),"..."),c.createElement("div",{className:R().scalesDropdownItem,onClick:()=>{N()}},h(j.useCalibrationTool),"...")))},B=e=>{let{item:t,state:n,itemComponentProps:r,ref:o}=e;return c.createElement(K,{item:t,state:n,itemComponentProps:r,ref:o})},K=c.forwardRef(((e,t)=>{let{item:n,state:o,itemComponentProps:s,width:l}=e;return c.createElement(a.Z,(0,r.Z)({is:"div",className:i()(_().item,R().item,{[_().isSelected]:o?.includes("selected")||o?.includes("focused")}),name:n?.value??n?.label,style:{width:l},ref:t},s),o?.includes("selected")?c.createElement(D.Z,{src:h(),className:R().icon}):c.createElement("span",{className:R().icon}),n?.label)}))},17766:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Z:()=>i});var r=n(24021),o=n(60379);const i=(0,r.vU)({color:{id:"color",defaultMessage:"Color",description:"Color"},fillColor:{id:"fillColor",defaultMessage:"Fill Color",description:"Background color"},newColor:{id:"newColor",defaultMessage:"New Color",description:"New Custom Color"},[o.Z.BLACK.toCSSValue()]:{id:"black",defaultMessage:"Black",description:"Black, the color"},[o.Z.WHITE.toCSSValue()]:{id:"white",defaultMessage:"White",description:"White, the color"},[o.Z.BLUE.toCSSValue()]:{id:"blue",defaultMessage:"Blue",description:"Blue, the color"},[o.Z.RED.toCSSValue()]:{id:"red",defaultMessage:"Red",description:"Red, the color"},[o.Z.GREEN.toCSSValue()]:{id:"green",defaultMessage:"Green",description:"Green, the color"},[o.Z.ORANGE.toCSSValue()]:{id:"orange",defaultMessage:"Orange",description:"Orange, the color"},[o.Z.LIGHT_BLUE.toCSSValue()]:{id:"lightBlue",defaultMessage:"Light Blue",description:"Light Blue color"},[o.Z.LIGHT_RED.toCSSValue()]:{id:"lightRed",defaultMessage:"Light Red",description:"Light Red color"},[o.Z.LIGHT_GREEN.toCSSValue()]:{id:"lightGreen",defaultMessage:"Light Green",description:"Light Green color"},[o.Z.LIGHT_YELLOW.toCSSValue()]:{id:"yellow",defaultMessage:"Yellow",description:"Yellow color"},opacity:{id:"opacity",defaultMessage:"Opacity",description:"Opacity"},thickness:{id:"thickness",defaultMessage:"Thickness",description:"Thickness of a line"},"linecaps-dasharray":{id:"linecaps-dasharray",defaultMessage:"Line Style",description:"Select line caps and dash pattern of lines"},linestyle:{id:"dasharray",defaultMessage:"Line style",description:"Select line style"},borderStyle:{id:"borderStyle",defaultMessage:"Border style",description:"Select border style"},borderColor:{id:"borderColor",defaultMessage:"Border color",description:"Select border color"},font:{id:"font",defaultMessage:"Font",description:"Font"},fontSize:{id:"fontSize",defaultMessage:"Font size",description:"Font size selection"},fonts:{id:"fonts",defaultMessage:"Fonts",description:"Fonts"},allFonts:{id:"allFonts",defaultMessage:"All Fonts",description:"Used when presenting a list of fonts"},fontFamilyUnsupported:{id:"fontFamilyUnsupported",defaultMessage:"{arg0} (not supported)",description:"Font family (type) is not supported"},alignment:{id:"alignment",defaultMessage:"Alignment",description:"Alignment (left, center, right, top, middle, bottom)"},alignmentRight:{id:"alignmentRight",defaultMessage:"Right",description:"Right alignment"},alignmentLeft:{id:"alignmentLeft",defaultMessage:"Left",description:"Left alignment"},alignmentCenter:{id:"alignmentCenter",defaultMessage:"center",description:"Center alignment"},verticalAlignment:{id:"verticalAlignment",defaultMessage:"Vertical Alignment",description:"Vertical Alignment (top, center, bottom)"},horizontalAlignment:{id:"horizontalAlignment",defaultMessage:"Horizontal Alignment",description:"Horizontal Alignment (left, center, right)"},size:{id:"size",defaultMessage:"Size",description:"Used to label sizes (eg. font)"},numberInPt:{id:"numberInPt",defaultMessage:"{arg0} pt",description:"A number in pt (points). eg. 10pt"},startLineCap:{id:"startLineCap",defaultMessage:"Line Start",description:'Start line cap marker. eg. "open arrow"'},strokeDashArray:{id:"strokeDashArray",defaultMessage:"Line Style",description:"Line Style"},endLineCap:{id:"endLineCap",defaultMessage:"Line End",description:'End line cap marker. eg. "open arrow"'},edit:{id:"edit",defaultMessage:"Edit",description:"Generic edit label"},save:{id:"save",defaultMessage:"Save",description:"Generic save label"},saveAs:{id:"saveAs",defaultMessage:"Save As...",description:'Generic "save as" label'},export:{id:"export",defaultMessage:"Export",description:'Generic "export" label'},delete:{id:"delete",defaultMessage:"Delete",description:"Generic delete label"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},ok:{id:"ok",defaultMessage:"OK",description:"Ok, usually used to confirm an action"},close:{id:"close",defaultMessage:"Close",description:'Generic, usually to close something. "something" can be inferred from the context in which the message appears'},done:{id:"done",defaultMessage:"Done",description:'Generic "done" message. Usually used in a button.'},annotationsCount:{id:"annotationsCount",defaultMessage:"{arg0, plural,\n      =0 {{arg0} Annotations}\n      one {{arg0} Annotation}\n      two {{arg0} Annotations}\n      other {{arg0} Annotations}\n    }",description:"Amount of annotations."},annotations:{id:"annotations",defaultMessage:"Annotations",description:"PDF Annotations"},bookmark:{id:"bookmark",defaultMessage:"Bookmark",description:"PDF Bookmark"},bookmarks:{id:"bookmarks",defaultMessage:"Bookmarks",description:"PDF Bookmarks"},annotation:{id:"annotation",defaultMessage:"Annotation",description:"Annotation"},selectedAnnotation:{id:"selectedAnnotation",defaultMessage:"selected {arg0}",description:"Selected Annotation"},selectedAnnotationWithText:{id:"selectedAnnotationWithText",defaultMessage:"Selected {arg0} with {arg1} as content",description:"Selected Text or Note Annotation"},noteAnnotation:{id:"noteAnnotation",defaultMessage:"Note",description:"Text Note Annotation"},comment:{id:"comment",defaultMessage:"Comment",description:"Comment"},commentAction:{id:"commentAction",defaultMessage:"Comment",description:"Comment"},comments:{id:"comments",defaultMessage:"Comments",description:"Comments"},textAnnotation:{id:"textAnnotation",defaultMessage:"Text",description:"Free Text Annotation"},calloutAnnotation:{id:"calloutAnnotation",defaultMessage:"Callout",description:"Free Text Annotation (Callout)"},pen:{id:"pen",defaultMessage:"Drawing",description:"Ink Annotation used to do freehand drawing."},eraser:{id:"eraser",defaultMessage:"Ink Eraser",description:"Ink Eraser tool to remove ink annotations points by hand."},inkAnnotation:{id:"inkAnnotation",defaultMessage:"Drawing",description:"Ink Annotation used to do freehand drawing."},highlighterAnnotation:{id:"highlighterAnnotation",defaultMessage:"Freeform Highlight",description:"Ink Annotation used to highlight content."},highlightAnnotation:{id:"highlightAnnotation",defaultMessage:"Text Highlight",description:"Highlight Annotation used to select and mark text."},underlineAnnotation:{id:"underlineAnnotation",defaultMessage:"Underline",description:"Undeline Annotation used to select and mark text."},squiggleAnnotation:{id:"squiggleAnnotation",defaultMessage:"Squiggle",description:"Squiggle Annotation used to select and mark text."},strikeOutAnnotation:{id:"strikeOutAnnotation",defaultMessage:"Strikethrough",description:"StrikeOut Annotation used to select and mark text."},lineAnnotation:{id:"lineAnnotation",defaultMessage:"Line",description:"Shape Annotation used to draw straight lines."},arrowAnnotation:{id:"arrowAnnotation",defaultMessage:"Arrow",description:"Shape Annotation used to draw an arrow."},rectangleAnnotation:{id:"rectangleAnnotation",defaultMessage:"Rectangle",description:"Shape Annotation used to draw rectangles."},ellipseAnnotation:{id:"ellipseAnnotation",defaultMessage:"Ellipse",description:"Shape Annotation used to draw ellipses."},polygonAnnotation:{id:"polygonAnnotation",defaultMessage:"Polygon",description:"Shape Annotation used to draw polygons."},polylineAnnotation:{id:"polylineAnnotation",defaultMessage:"Polyline",description:"Shape Annotation used to draw polylines."},imageAnnotation:{id:"imageAnnotation",defaultMessage:"Image",description:"Image Annotation"},stampAnnotation:{id:"stampAnnotation",defaultMessage:"Stamp",description:"Stamp Annotation"},redactionAnnotation:{id:"redactionAnnotation",defaultMessage:"Redaction",description:"Redaction Annotation"},unknownAnnotation:{id:"unknownAnnotation",defaultMessage:"Unknown",description:"Unknown Annotation"},arrow:{id:"arrow",defaultMessage:"Line with arrow",description:"Shape Annotation used to draw straight lines with an arrow."},highlighter:{id:"highlighter",defaultMessage:"Freeform Highlight",description:"Ink Annotation used to highlight content with freehand drawing."},icon:{id:"icon",defaultMessage:"Icon",description:"Label for when users need to select an icon"},pageXofY:{id:"pageXofY",defaultMessage:"Page {arg0} of {arg1}",description:"Page indicator."},pageX:{id:"pageX",defaultMessage:"Page {arg0}",description:"Page number"},searchDocument:{id:"searchDocument",defaultMessage:"Search Document",description:"Search document (for text)"},sign:{id:"sign",defaultMessage:"Sign",description:"Label for a signature field"},signed:{id:"signed",defaultMessage:"Signed",description:"Label for a signed field"},signatures:{id:"signatures",defaultMessage:"Signatures",description:"Signatures title"},blendMode:{id:"blendMode",defaultMessage:"Blend Mode",description:"Blend Mode"},linesCount:{id:"linesCount",defaultMessage:"{arg0, plural,\n      =0 {{arg0} Lines}\n      one {{arg0} Line}\n      two {{arg0} Lines}\n      other {{arg0} Lines}\n    }",description:"Amount of lines (for example in a ink annotation)."},filePath:{id:"filePath",defaultMessage:"File Path",description:"Location of a file or file name"},useAnExistingStampDesign:{id:"useAnExistingStampDesign",defaultMessage:"Use an existing stamp design",description:"Use an existing stamp design"},customStamp:{id:"customStamp",defaultMessage:"Custom Stamp",description:"Custom Stamp"},stampText:{id:"stampText",defaultMessage:"Stamp Text",description:"Stamp Text"},clear:{id:"clear",defaultMessage:"Clear",description:"Clear"},date:{id:"date",defaultMessage:"Date",description:"Date."},time:{id:"time",defaultMessage:"Time",description:"Time."},sidebar:{id:"sidebar",defaultMessage:"Sidebar",description:"Generic label for a sidebar"},gotoPageX:{id:"gotoPageX",defaultMessage:"Go to Page {arg0}",description:"Go to a page"},name:{id:"name",defaultMessage:"Name",description:"Name field usually."},chooseColor:{id:"chooseColor",defaultMessage:"Choose Color",description:"Choose color from the UI."},textHighlighter:{id:"textHighlighter",defaultMessage:"Text highlighter",description:"Highlighter tool used to highlight selected text."},undo:{id:"undo",defaultMessage:"Undo",description:"Undo last action."},redo:{id:"redo",defaultMessage:"Redo",description:"Redo last undone action."},showMore:{id:"showMore",defaultMessage:"Show More",description:"Show more"},showLess:{id:"showLess",defaultMessage:"Show Less",description:"Show Less"},nMoreComments:{id:"nMoreComments",defaultMessage:"{arg0, plural,\none {{arg0} more comment}\nother {{arg0} more comments}\n}",description:"n more comments"},documentEditor:{id:"documentEditor",defaultMessage:"Document Editor",description:"Document Editor toolbar label"},areaRedaction:{id:"areaRedaction",defaultMessage:"Area Redaction",description:"Area Redaction toolbar item label"},textRedaction:{id:"textRedaction",defaultMessage:"Text Redaction",description:"Text Redaction toolbar item label"},outlineColor:{id:"outlineColor",defaultMessage:"Outline Color",description:"Outline color"},overlayText:{id:"overlayText",defaultMessage:"Overlay text",description:"Overlay text"},insertOverlayText:{id:"overlayTextPlaceholder",defaultMessage:"Insert overlay text",description:"Overlay Text property placeholder"},repeatText:{id:"repeatText",defaultMessage:"Repeat text",description:"Repeat text placeholder"},preview:{id:"preview",defaultMessage:"Preview",description:"Preview"},markupToolbar:{id:"markupAnnotationToolbar",defaultMessage:"Markup annotation toolbar",description:"Label for the markup annotation toolbar popover"},documentViewport:{id:"documentViewport",defaultMessage:"document viewport",description:"Label for document viewport region"},top:{id:"top",defaultMessage:"Top",description:"Top"},bottom:{id:"bottom",defaultMessage:"Bottom",description:"Bottom"},resize:{id:"resize",defaultMessage:"Resize",description:"Resize action when an annotation is selected."},resizeHandleTop:{id:"resizeHandleTop",defaultMessage:"top",description:"One of the top resize handlers."},resizeHandleBottom:{id:"resizeHandleBottom",defaultMessage:"bottom",description:"One of the bottom resize handlers."},resizeHandleLeft:{id:"resizeHandleLeft",defaultMessage:"left",description:"One of the left resize handlers."},resizeHandleRight:{id:"resizeHandleRight",defaultMessage:"right",description:"One of the right resize handlers."},cropAll:{id:"cropAll",defaultMessage:"Crop All",description:"Crop all pages."},cropAllPages:{id:"cropAllPages",defaultMessage:"Crop All Pages",description:"Crop all pages."},cropCurrent:{id:"cropCurrent",defaultMessage:"Crop Current",description:"Crop current page."},cropCurrentPage:{id:"cropCurrentPage",defaultMessage:"Crop Current Page",description:"Crop current page."},documentCrop:{id:"documentCrop",defaultMessage:"Document Crop",description:"Crop document pages."},documentComparison:{id:"documentComparison",defaultMessage:"Document Comparison",description:"Compare two documents."},rotateCounterclockwise:{id:"rotateCounterclockwise",defaultMessage:"Rotate counterclockwise",description:"Label for the rotate counterclockwise button"},rotateClockwise:{id:"rotateClockwise",defaultMessage:"Rotate clockwise",description:"Label for the rotate clockwise button"},rotation:{id:"rotation",defaultMessage:"Rotate",description:"Label for the rotate button"},applyRedactions:{id:"applyRedactions",defaultMessage:"Apply Redactions",description:"Applies redactions to document"},cloudyRectangleAnnotation:{id:"cloudyRectangleAnnotation",defaultMessage:"Cloudy Rectangle",description:"Cloudy Rectangle"},dashedRectangleAnnotation:{id:"dashedRectangleAnnotation",defaultMessage:"Dashed Rectangle",description:"Dashed Rectangle"},cloudyEllipseAnnotation:{id:"cloudyEllipseAnnotation",defaultMessage:"Cloudy Ellipse",description:"Cloudy Ellipse"},dashedEllipseAnnotation:{id:"dashedEllipseAnnotation",defaultMessage:"Dashed Ellipse",description:"Dashed Ellipse"},cloudyPolygonAnnotation:{id:"cloudyPolygonAnnotation",defaultMessage:"Cloudy Polygon",description:"Cloudy Polygon"},dashedPolygonAnnotation:{id:"dashedPolygonAnnotation",defaultMessage:"Dashed Polygon",description:"Dashed Polygon"},cloudAnnotation:{id:"cloudAnnotation",defaultMessage:"Cloud",description:"Cloud Annotation"},addSignature:{id:"addSignature",defaultMessage:"Add Signature",description:"Add Signature"},storeSignature:{id:"storeSignature",defaultMessage:"Store Signature",description:"Store the signature that is in creation"},clearSignature:{id:"clearSignature",defaultMessage:"Clear Signature",description:"Clear the signature canvas"},button:{id:"button",defaultMessage:"Button Field",description:"Button Field"},textField:{id:"textField",defaultMessage:"Text Field",description:"Text Field"},radioField:{id:"radioField",defaultMessage:"Radio Field",description:"Radio Field"},checkboxField:{id:"checkboxField",defaultMessage:"Checkbox Field",description:"Checkbox Field"},comboBoxField:{id:"comboBoxField",defaultMessage:"Combo Box Field",description:"Combo Box Field"},listBoxField:{id:"listBoxField",defaultMessage:"List Box Field",description:"List Box Field"},signatureField:{id:"signatureField",defaultMessage:"Signature Field",description:"Signature Field"},dateField:{id:"dateField",defaultMessage:"Date Field",description:"Date Field"},formCreator:{id:"formCreator",defaultMessage:"Form Creator",description:"Create, edit or Delete widget annotations."},mediaAnnotation:{id:"mediaAnnotation",defaultMessage:"Media Annotation",description:"Media Annotation"},mediaFormatNotSupported:{id:"mediaFormatNotSupported",defaultMessage:"This browser does not support embedded medias.",description:"The browser does not support embedded medias"},contentEditor:{id:"contentEditor",defaultMessage:"Content Editor",description:"Content Editor"},saveAndClose:{id:"saveAndClose",defaultMessage:"Save & Close",description:"Save changes"},none:{id:"none",defaultMessage:"None",description:"Normal line"},linkAnnotation:{id:"linkAnnotation",defaultMessage:"Link",description:"Link Annotation"},measurement:{id:"measurement",defaultMessage:"Measurement",description:"Measurement"},Snapping:{id:"Snapping",defaultMessage:"Snapping",description:"Snapping"},distanceMeasurement:{id:"distanceMeasurement",defaultMessage:"Distance",description:"Measurement Annotation used to measure distance between 2 points"},multiAnnotationsSelection:{id:"multiAnnotationsSelection",defaultMessage:"Select Multiple Annotations",description:"Multiple annotations selection tool used to enable selection of multiple annotations."},rectangularAreaMeasurement:{id:"rectangularAreaMeasurement",defaultMessage:"Rectangle Area",description:"Measurement Annotation used to measure rectangle areas."},ellipseAreaMeasurement:{id:"ellipseAreaMeasurement",defaultMessage:"Ellipse Area",description:"Measurement Annotation used to measure elliptical areas."},polygonAreaMeasurement:{id:"polygonAreaMeasurement",defaultMessage:"Polygon Area",description:"Measurement Annotation used to measure polygon areas."},perimeterMeasurement:{id:"perimeterMeasurement",defaultMessage:"Perimeter",description:"Measure Annotation used to measure perimeter."},bold:{id:"bold",defaultMessage:"Bold",description:"Bold text"},italic:{id:"italic",defaultMessage:"Italic",description:"Italic text"},underline:{id:"underline",defaultMessage:"Underline",description:"Underline"},discard:{id:"discardChanges",defaultMessage:"Discard Changes",description:"Discard"},anonymous:{id:"anonymous",defaultMessage:"Anonymous",description:"Anonymous"},loading:{id:"loading",defaultMessage:"Loading...",description:"Shown while the document is being fetched"},group:{id:"group",defaultMessage:"Group",description:"Group annotations."},ungroup:{id:"ungroup",defaultMessage:"Ungroup",description:"Ungroup annotations."},mixedMeasurements:{id:"mixedMeasurements",defaultMessage:"Mixed Measurements",description:"Mixed Measurements"},mixed:{id:"mixed",defaultMessage:"Mixed",description:"Mixed"},back:{id:"back",defaultMessage:"Back",description:"back"},readOnlyAnnotationFlag:{id:"readOnly",defaultMessage:"Read-only",description:"this annotation is read only"},lockedContents:{id:"lockedContents",defaultMessage:"Locked Contents",description:"this annotation has its contents locked"},locked:{id:"locked",defaultMessage:"Locked",description:"this annotation is locked"},selectImage:{id:"selectImage",defaultMessage:"Select image",description:"Selects an image from the local file system"},layers:{id:"layers",defaultMessage:"Layers",description:"OCG layers sidebar header title"},noLayers:{id:"noLayers",defaultMessage:"No Layers",description:"Message shown when there are no OCG layers in the document"},custom:{id:"custom",defaultMessage:"Custom",description:"Custom"},documentAI:{id:"documentAI",defaultMessage:"Document AI",description:"Document AI"}}),a=(0,r.vU)({numberValidationBadFormat:{id:"numberValidationBadFormat",defaultMessage:"The value entered does not match the format of the field [{arg0}]",description:"The number form field value format is wrong."},dateValidationBadFormat:{id:"dateValidationBadFormat",defaultMessage:"Invalid date/time: please ensure that the date/time exists. Field [{arg0}] should match format {arg1}",description:"The date form field value format is wrong."}})},67260:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f,z:()=>h});var r=n(20144),o=n(24021),i=n(67294),a=n(94184),s=n.n(a),l=n(17766),c=n(72113),u=n(68540),d=n(91414),p=n.n(d);function h(e){let{backdropFixed:t=!0,onCancel:n,onConfirm:a,accessibilityLabel:d,accessibilityDescription:h,restoreOnClose:f,children:m}=e;const{formatMessage:g}=(0,o.YB)(),v=(0,u.Je)();return i.createElement(c.Z,{role:"alertdialog",onEscape:n,background:"rgba(0,0,0,.1)",className:"PSPDFKit-Confirm-Dialog",accessibilityLabel:d||"Confirm Dialog",accessibilityDescription:h,restoreOnClose:f,backdropFixed:t,visibleDimensions:v},i.createElement(c.Z.Section,{style:{paddingBottom:0}},i.createElement("div",{className:`${p().content} PSPDFKit-Confirm-Dialog-Content`},m)),i.createElement(c.Z.Section,null,i.createElement(r.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end"},i.createElement(r.zx,{autoFocus:!0,onClick:n,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Cancel",p().button)},g(l.Z.cancel)),i.createElement(r.zx,{onClick:a,primary:!0,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Confirm",p().button)},g(l.Z.delete)))))}const f=h},15164:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(67294),o=n(29911),i=n(54537),a=n(45249);function s(e){const{backend:t,onInitialRenderFinished:n,pageIndex:o,pageSize:s,pageKey:l,renderPageCallback:c,zoomLevel:u,scaleFactor:d}=e,p=r.useRef(!1),h=r.useCallback((function(){p.current||(p.current=!0,n&&n())}),[n]),f=r.useMemo((function(){return new a.UL({width:Math.ceil(s.width*d),height:Math.ceil(s.height*d)})}),[s,d]),m=e.inContentEditorMode||!1;return r.createElement("div",{style:{transform:`scale(${u/d})`,transformOrigin:"0 0"},key:l,className:"PSPDFKit-PageOverview-Tile"},r.createElement(i.Z,{backend:t,pageIndex:o,scaledPageSize:f,originalPageSize:s,onRenderFinished:h,rect:f,renderPageCallback:c,pageKey:l,hasInitialRenderFinished:p.current,inContentEditorMode:m}))}var l=n(19181),c=n(22122),u=n(93113),d=n(44077),p=n(10983);function h(e){let{backend:t,viewportState:n,page:o,tileSize:a,tileOverlapping:s,scale:l,renderPageCallback:d,tilesRenderedCallback:h,contentState:m,crispTiles:g,inContentEditorMode:v,tilesClassName:y}=e;const{pageIndex:b,pageSize:w,pageKey:x}=o,[_,S]=function(e,t,n,o,i,a,s){const[l,c]=r.useState({}),d=r.useRef([]),h=r.useMemo((function(){return function(e,t,n,r,o,i,a){const{viewportRect:s}=e,l=(0,u.Ek)(e,o),c=s.apply(l).scale(a).round(),d=t.scale(a).ceil(),h={};f(h,c,d,n,r,i,a);const m=s.grow(Math.min(p.pK,n)).apply(l).scale(a).round();return f(h,m,d,n,r,i,a)}(e,t,n,o,i,a,s)}),[i,a,t,s,o,n,e]);r.useLayoutEffect((function(){c((e=>function(e,t,n){const r={};for(const n of t)r[n]=e[n];for(const e in n)r[e]=n[e];return r}(e,d.current,h)))}),[h]);return[r.useMemo((function(){return function(e){const t=[];for(const n in e){const r=e[n],{scale:o}=r;let i=t.find((function(e){return e[0]===o}));if(void 0===i){let e;for(i=[o,[]],e=0;e<t.length&&t[e][0]<o;e++);t.splice(e,0,i)}i[1].push(r)}return t}(l)}),[l]),function(e){if(!l.hasOwnProperty(e))return void 0;const t=Object.keys(l).length;d.current.length+1>=t?(d.current=Object.keys(h),c(h)):d.current.push(e)}]}(n,w,a,s,b,x,l);return r.createElement(r.Fragment,null,_.map((e=>{let[a,s]=e;const l=w,u=l.scale(a).ceil();return r.createElement("div",{key:a},s.map((e=>r.createElement(i.Z,(0,c.Z)({key:e.key,rect:e.rect,pageIndex:b,originalPageSize:l,scaledPageSize:u,backend:t,renderPageCallback:d,onRenderFinished:()=>{S(e.key),h()},pageKey:o.pageKey,crisp:g,inContentEditorMode:v},m,{tileScale:n.zoomLevel/a,tilesClassName:y})))))})))}function f(e,t,n,r,o,i,a){for(let s=0;s<=n.height;s+=r){let l=r;if(s+l>n.height&&(l=Math.floor(n.height-s)),s+l<=t.top||s>=t.bottom||l<=0)s-=o;else{for(let c=0;c<=n.width;c+=r){let u=r;if(c+r>n.width&&(u=Math.floor(n.width-c)),c+u<=t.left||c>=t.right||u<=0){c-=o;continue}const p=`${i}-sw${n.width}-sh${n.height}-x${c}-y${s}-w${u}-h${l}`;e[p]={key:p,scale:a,rect:new d.UL({width:u,height:l,left:c,top:s})},c-=o}s-=o}}return e}const m=r.memo(h,(function(e,t){return e.page.pageKey===t.page.pageKey&&!(0,u.pA)(e.viewportState,t.viewportState)&&e.inContentEditorMode===t.inContentEditorMode}));const g=(0,l.x)((function(e){return{viewportState:e.viewportState,backend:e.backend,tileSize:"SERVER"===e.backend?.type?p.uq:p.Bd,tileOverlapping:p.Dx,renderPageCallback:e.renderPageCallback}}))(m);var v=n(92537),y=n(98179);var b=n(68540),w=n(47460),x=n.n(w);const _=function(e){const{inViewport:t,shouldPrerender:n,rotation:i,backend:a,zoomLevel:l,renderPageCallback:c,page:u,onInitialOverviewRenderFinished:d,allowedTileScales:p,forceDetailView:h,renderPagePreview:f,isPageSizeReal:m,crispTiles:w=!1,inContentEditorMode:_,contentState:S}=e,[C,E]=r.useState(!f),k=r.useCallback((function(){E(!0),d&&d()}),[d]),z=function(e,t,n){let r=(0,v.L)();const o=window.navigator?.connection?.saveData;"STANDALONE"===t.type&&y.Ni&&r>2&&(r=2),"SERVER"===t.type&&o&&(r=1);const i=e*r;return"all"===n?i:n.reduce(((e,t)=>e<i?t:e))}(l,a,p),P=r.useMemo((()=>u.pageSize.floor()),[u.pageSize]),D=r.useMemo((function(){const t=Math.min((0,v.L)(),2);return Math.min(e.viewportRect.width*t/P.width,1)}),[P.width,e.viewportRect.width]),[A,T]=r.useState(!1),I=(0,b.R9)((()=>{A||f||T(!0)})),M=t&&m&&(!f||z>1||h||l>D)?r.createElement("div",{style:{opacity:C?1:0},className:"PSPDFKit-PageTilesContainer"},r.createElement(g,{contentState:S,page:u,scale:z,key:u.pageKey,crispTiles:w,tilesRenderedCallback:I,inContentEditorMode:_,tilesClassName:"PSPDFKit-PageTile"})):null;return r.createElement("div",null,(!C||!m||!A&&!f)&&r.createElement("div",{className:`${x().layer} ${x().deadCenter}`},r.createElement(o.Z,{scale:1.5,rotate:-i})),(t||C||n)&&f&&m&&r.createElement(s,{backend:a,pageIndex:u.pageIndex,pageSize:P,pageKey:u.pageKey,onInitialRenderFinished:k,zoomLevel:l,scaleFactor:D,renderPageCallback:c,inContentEditorMode:_}),M)}},54537:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(96156),o=n(67294),i=n(35369),a=n(94184),s=n.n(a),l=n(2877),c=n(46364),u=n(33427),d=n(98179),p=n(15743),h=n.n(p);class f extends o.PureComponent{constructor(){super(...arguments),(0,r.Z)(this,"imageFetcherRef",o.createRef()),(0,r.Z)(this,"_fetchImage",(()=>{const{backend:e,originalPageSize:t,scaledPageSize:n,pageIndex:r,rect:o,attachments:a,renderPageCallback:s,digitalSignatures:l}=this.props,d=(this.props.annotations||(0,i.aV)()).filter(u.bz),p=this.props.formFields||(0,i.aV)(),h=this.props.formFieldValues||(0,i.aV)(),f=l&&l.signatures||[],m=this.props.inContentEditorMode||!1;let g;if((d.size>0||h.size>0)&&(g={annotations:d,formFieldValues:h,formFields:p,attachments:a||(0,i.D5)(),signatures:f}),!n.width||!n.height)return{promise:Promise.resolve(null),cancel:()=>{}};const{cancel:v,promise:y}=e.corePDFBridge.renderTile(r,n,o,!1,!m,g);return(0,c.uZ)(y.then((e=>{let{element:i}=e;if("function"==typeof s){let a;if("IMG"===i.nodeName){const e=i,t=document.createElement("canvas");t.width=o.width,t.height=o.height,a=t.getContext("2d"),a?.drawImage(e,0,0),i=t}a||(a=i.getContext("2d")),a?.translate(-o.left,-o.top),a?.scale(n.width/t.width,n.height/t.height),s(a,r,t);const l=document.createElement("img");l.src=i.toDataURL(),e.element=l}return e})),v)}))}componentDidUpdate(e){const{annotations:t,formFieldValues:n}=this.props,{annotations:r,formFieldValues:o}=e;(null!=this.props.hasInitialRenderFinished&&!this.props.hasInitialRenderFinished||!this.props.scaledPageSize.equals(e.scaledPageSize)||!this.props.rect.equals(e.rect)||t&&t!==r&&!t.equals(r)||n&&n!==o&&!n.equals(o)||this.props.pageKey!==e.pageKey||this.props.inContentEditorMode!==e.inContentEditorMode)&&this.imageFetcherRef.current&&this.imageFetcherRef.current.refresh()}render(){const{onRenderFinished:e,rect:t,tileScale:n=1,crisp:r=!1,tilesClassName:i}=this.props,{width:a,height:c,left:u,top:p}=t,f={width:a*n,height:c*n,left:u*n,top:p*n,outline:null},m=s()({[h().tile]:!0,[h().tileChrome]:d.i7,[h().tileFirefox]:d.vU,[h().tileSafari]:d.G6,[h().crispTile]:r,...i?{[i]:!0}:null});return o.createElement(l.Z,{fetchImage:this._fetchImage,className:m,rectStyle:f,onRenderFinished:e,visible:!1,ref:this.imageFetcherRef})}}},11236:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,j:()=>u});var r=n(67294),o=n(94184),i=n.n(o),a=n(84337),s=n(66645),l=n.n(s);function c(e){let{referenceRect:t,viewportState:n,isHidden:o,children:s,title:c,className:u,wrapperClassName:d,innerWrapperClassName:p,footerClassName:h,footer:f,centeredTitle:m}=e;return r.createElement(a.Z,{referenceRect:t,viewportState:n,className:i()(l().popover,u,{[l().popoverHidden]:o})},r.createElement("div",{className:i()(l().container,d)},r.createElement("div",{className:i()(l().innerContainer,p)},r.createElement("h2",{className:i()(l().title,{[l().centeredTitle]:m})},c),s&&r.createElement("div",{className:l().content},s),f&&r.createElement("div",{className:i()(l().footer,h)},f))," "))}function u(e){let{children:t,className:n,onClick:o}=e;return r.createElement("button",{className:i()(l().footerButton,n),onClick:o},t)}},84337:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(67294),o=n(94184),i=n.n(o),a=n(59140),s=n(67057),l=n(44077),c=n(89004),u=n(54146),d=n.n(u);function p(e,t,n){let{top:r,right:o,bottom:i,left:a}=n,s=null,l=null;return e.isRectInside(t.setLocation(r))?(l=r,s="top"):e.isRectInside(t.setLocation(i))?(l=i,s="bottom"):e.isRectInside(t.setLocation(a))?(l=a,s="left"):e.isRectInside(t.setLocation(o))&&(l=o,s="right"),{direction:s,position:l}}function h(e){let{children:t,referenceRect:n,viewportRect:o,scroll:i=new l.E9,onPositionInfoChange:a,onPositionConflict:c}=e;const[u,d]=r.useState({position:null,direction:null}),[h,f]=r.useState(null);r.useLayoutEffect((()=>{if(!h)return;const e=o.translate(i);if(!e.isRectInside(n)&&!e.isRectOverlapping(n))return;const t=function(e){let{viewportRect:t,referenceRect:n,contentRect:r,scroll:o,onPositionConflict:i}=e,a=n.left+n.width/2-r.width/2;const s=new l.E9({x:a,y:n.top-r.height}),c=new l.E9({x:a,y:n.bottom});let u=n.top+n.height/2-r.height/2;const d=new l.E9({x:n.left-r.width,y:u}),h=new l.E9({x:n.right,y:u});let{position:f,direction:m}=p(t,r,{top:s,right:h,bottom:c,left:d});f||(a<t.left?a=t.left:a+r.width>t.width+t.left&&(a=t.width+t.left-r.width),u<t.top?u=t.top:u+r.height>t.height+t.top&&(u=t.height+t.top-r.height),({position:f,direction:m}=p(t,r,{top:s.set("x",a),right:h.set("y",u),bottom:c.set("x",a),left:d.set("y",u)}))),f||("function"==typeof i?({position:f,direction:m}=i({referenceRect:n,viewportRect:t,contentRect:r,scroll:o,attempts:{top:s,right:h,bottom:c,left:d}})):t.isRectOverlapping(n)&&(f=new l.E9({x:t.left+t.width/2-r.width/2,y:t.top+t.height/2-r.height/2}),m="center"));return{direction:m,position:f}}({viewportRect:e,referenceRect:n,contentRect:h,scroll:i,onPositionConflict:c});t.position&&d(t)}),[o,n,h,c,i]),r.useEffect((()=>{a&&a(u)}),[u,a]);const{direction:m}=u,g=u.position&&u.position.translate(o.getLocation().scale(-1)),v={position:"absolute",...g?{top:g.y,left:g.x}:{top:-1e5,left:-1e5},visibility:g?void 0:"hidden"},y=e=>{(e.height||e.width||e.top||e.left)&&f(e)};return"function"==typeof t?t({style:v,direction:m,onResize:y}):r.createElement("div",{style:v},r.createElement(s.Z,{onResize:y}),t)}const f=function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()};function m(e){let{children:t,referenceRect:n,color:o,baseColor:u,className:p,arrowClassName:m,viewportState:g,onPositionInfoChange:v,arrowSize:y=5,customZIndex:b}=e;const{viewportRect:w,zoomLevel:x,scrollPosition:_}=g;return r.createElement(h,{referenceRect:n.grow(y),viewportRect:w,scroll:_.scale(x),onPositionInfoChange:v},(e=>{let{style:h,direction:g,onResize:v}=e;const x=g&&(0,c.kC)(g),_=g&&"center"!==g?function(e){let t,n,{referenceRect:r,viewportRect:o,size:i,direction:a}=e;switch("top"===a||"bottom"===a?n=r.left+r.width/2-i:t=r.top+r.height/2-i,a){case"top":t=r.top-i;break;case"bottom":t=r.top+r.height;break;case"left":n=r.left-i;break;case"right":n=r.left+r.width;break;default:throw new Error("invalid direction")}return new l.E9({y:t,x:n}).translate(o.getLocation().scale(-1))}({referenceRect:n,viewportRect:w,size:y,direction:g}):null,S={};let C;if(o){switch(g){case"top":S.color=o[o.length-1].toCSSValue();break;case"bottom":S.color=o[0].toCSSValue();break;default:S.color=o[Math.floor((o.length-1)/2)].toCSSValue()}const e=o.map(((e,t)=>`${e.toCSSValue()} ${100*t/(o.length-1)}%`)).join(", ");u&&(h={...h,backgroundColor:u.toCSSValue()},C={color:u.toCSSValue()}),h={...h,backgroundImage:`linear-gradient(to bottom, ${e})`,zIndex:b}}return r.createElement(a.Z,{onPointerUp:f},r.createElement("div",{className:p},_&&r.createElement("span",{style:{...C,zIndex:b}},r.createElement("div",{style:{position:"absolute",top:_.y,left:_.x,width:y,height:y,zIndex:b,...S},className:i()(d().arrow,m,x&&d()[`arrow${x}`],"PSPDFKit-Popover-Arrow",x&&"PSPDFKit-Popover-Arrow-"+x)})),r.createElement("div",{style:h,className:i()(d().root,"PSPDFKit-Popover",x&&"PSPDFKit-Popover-"+x)},t,r.createElement(s.Z,{onResize:v}))))}))}},67040:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(15359),o=n(1175);const i=e=>t=>e(function(e){const t=e.nativeEvent||e;let n=!1,i=0,a=0;const s=t.shiftKey;let l=t.pointerType||"mouse";const c=(void 0!==e.touches||void 0!==e.changedTouches)&&void 0===e.width;c?(l="touch",n=1==t.touches.length||"touchend"===e.type,n&&t.changedTouches.length&&(i=t.changedTouches[0].clientX,a=t.changedTouches[0].clientY)):(n=e.isPrimary||(0,o.I)(e),i=e.clientX,a=e.clientY);let u={clientX:i,clientY:a,isPrimary:n,pointerType:l,shiftKey:s,metaKey:t.metaKey,ctrlKey:t.ctrlKey,getCoalescedEvents:"function"==typeof t.getCoalescedEvents?()=>{const e=t.getCoalescedEvents.call(t);return e.length?e:[u]}:()=>[u],stopPropagation:()=>{e.stopPropagation(),t.stopImmediatePropagation()},preventDefault:()=>{e.preventDefault()},get target(){const n=t.composedPath?.()[0];if(!n&&!e.target)throw new r.p2(`No valid target found for event ${t}.`);return n??e.target},nativeEvent:t,get buttons(){return c?(0,r.ZK)("TouchEvent do not have the method buttons"):e.buttons}};return u}(t))},59140:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(22122),o=n(96156),i=n(67294),a=n(15359),s=n(67040),l=n(87856),c=n(98179);const u=l.Gn?{passive:!1}:void 0,d=!l.Gn||{passive:!1,capture:!0},p=1e3;let h=0,f=0;function m(e){return e?function(){if(h=Date.now(),!(Date.now()-f<p))return e(...arguments)}:e}function g(e){return e?function(){const t=Date.now();if(!(t-f<p||t-h<p))return e(...arguments)}:e}function v(e){return e?function(){return f=Date.now(),e(...arguments)}:e}function y(){}class b extends i.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_attachedListeners",{touchstart:[null,null],touchmove:[null,null],touchend:[null,null],touchcancel:[null,null],mousedown:[null,null],mousemove:[null,null],mouseup:[null,null],mouseenter:[null,null],mouseleave:[null,null],pointerdown:[null,null],pointermove:[null,null],pointerup:[null,null],pointerenter:[null,null],pointerleave:[null,null],pointercancel:[null,null]}),(0,o.Z)(this,"_handleRef",(e=>{this.props.onDOMElement&&this.props.onDOMElement(e),e&&((0,a.kG)("string"==typeof e.nodeName,"PRC requires a basic HTML element as children (so that we can find the proper `ownerDocument`)."),this._refDocument=e.ownerDocument)}))}componentDidMount(){this._updateRootListeners(this.props)}componentDidUpdate(){this._updateRootListeners(this.props)}componentWillUnmount(){this._removeAllRootListeners()}_updateListener(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this._refDocument;let o=null,i=null;const a=this._attachedListeners[e][n?1:0];if(a&&([o,i]=a),i!==t&&(o&&(r.removeEventListener(e,o,n?d:u),this._attachedListeners[e][n?1:0]=null),"function"==typeof t)){const o=(0,s.S)(t);r.addEventListener(e,o,n?d:u),this._attachedListeners[e][n?1:0]=[o,t]}}_removeAllRootListeners(){const e=this._refDocument;Object.entries(this._attachedListeners).forEach((t=>{let[n,r]=t;const[o,i]=r;o&&e.removeEventListener(n,o[0],u),i&&e.removeEventListener(n,i[0],d)}))}_updateRootListeners(e){Object.entries(e).forEach((e=>{let[t,n]=e;switch(t){case"onRootPointerDown":this._updateListener("touchstart",m(n)),this.disablePointerEvents||this._updateListener("pointerdown",v(n)),this._updateListener("mousedown",g(n));break;case"onRootPointerDownCapture":this._updateListener("touchstart",m(n),!0),this.disablePointerEvents||this._updateListener("pointerdown",v(n),!0),this._updateListener("mousedown",g(n),!0);break;case"onRootPointerMove":this._updateListener("touchmove",m(n)),this.disablePointerEvents||this._updateListener("pointermove",v(n)),this._updateListener("mousemove",g(n));break;case"onRootPointerMoveCapture":this._updateListener("touchmove",m(n),!0),this.disablePointerEvents||this._updateListener("pointermove",v(n),!0),this._updateListener("mousemove",g(n),!0);break;case"onRootPointerUp":this._updateListener("touchend",m(n)),this.disablePointerEvents||this._updateListener("pointerup",v(n)),this._updateListener("mouseup",g(n));break;case"onRootPointerEnter":this.disablePointerEvents||this._updateListener("pointerenter",v(n)),this._updateListener("mouseenter",g(n));break;case"onRootPointerLeave":this.disablePointerEvents||this._updateListener("pointerleave",v(n)),this._updateListener("mouseleave",g(n));break;case"onRootPointerUpCapture":this._updateListener("touchend",m(n),!0),this.disablePointerEvents||this._updateListener("pointerup",v(n),!0),this._updateListener("mouseup",g(n),!0);break;case"onRootPointerEnterCapture":this.disablePointerEvents||this._updateListener("pointerenter",v(n),!0),this._updateListener("mouseenter",g(n),!0);break;case"onRootPointerLeaveCapture":this.disablePointerEvents||this._updateListener("pointerleave",v(n),!0),this._updateListener("mouseleave",g(n),!0);break;case"onRootPointerCancel":this.disablePointerEvents||this._updateListener("pointercancel",v(n)),this._updateListener("touchcancel",m(n));break;case"onRootPointerCancelCapture":this.disablePointerEvents||this._updateListener("pointercancel",v(n),!0),this._updateListener("touchcancel",m(n),!0)}}))}render(){const e={};let t=!1;if(this.disablePointerEvents="INK"!==this.props.interactionMode&&(0,c.yx)(),Object.entries(this.props).forEach((n=>{let[r,o]=n;if("function"==typeof o)switch(r){case"onPointerDown":e.onTouchStart=m((0,s.S)(o)),this.disablePointerEvents||(e.onPointerDown=v((0,s.S)(o))),e.onMouseDown=g((0,s.S)(o)),t=!0;break;case"onPointerDownCapture":e.onTouchStartCapture=m((0,s.S)(o)),this.disablePointerEvents||(e.onPointerDownCapture=v((0,s.S)(o))),e.onMouseDownCapture=g((0,s.S)(o)),t=!0;break;case"onPointerMove":e.onTouchMove=m((0,s.S)(o)),this.disablePointerEvents||(e.onPointerMove=v((0,s.S)(o))),e.onMouseMove=g((0,s.S)(o)),t=!0;break;case"onPointerMoveCapture":e.onTouchMoveCapture=m((0,s.S)(o)),this.disablePointerEvents||(e.onPointerMoveCapture=v((0,s.S)(o))),e.onMouseMoveCapture=g((0,s.S)(o)),t=!0;break;case"onPointerUp":e.onTouchEnd=m((0,s.S)(o)),this.disablePointerEvents||(e.onPointerUp=v((0,s.S)(o))),e.onMouseUp=g((0,s.S)(o)),t=!0;break;case"onPointerUpCapture":e.onTouchEndCapture=m((0,s.S)(o)),this.disablePointerEvents||(e.onPointerUpCapture=v((0,s.S)(o))),e.onMouseUpCapture=g((0,s.S)(o)),t=!0;break;case"onPointerEnter":this.disablePointerEvents||(e.onPointerEnter=v((0,s.S)(o))),e.onMouseEnter=g((0,s.S)(o)),t=!0;break;case"onPointerEnterCapture":this.disablePointerEvents||(e.onPointerEnterCapture=v((0,s.S)(o))),e.onMouseEnterCapture=g((0,s.S)(o)),t=!0;break;case"onPointerLeave":this.disablePointerEvents||(e.onPointerLeave=v((0,s.S)(o))),e.onMouseLeave=g((0,s.S)(o)),t=!0;break;case"onPointerLeaveCapture":this.disablePointerEvents||(e.onPointerLeaveCapture=v((0,s.S)(o))),e.onMouseLeaveCapture=g((0,s.S)(o)),t=!0;break;case"onPointerCancel":this.disablePointerEvents||(e.onPointerCancel=v((0,s.S)(o))),e.onTouchCancel=m((0,s.S)(o)),t=!0;break;case"onPointerCancelCapture":this.disablePointerEvents||(e.onPointerCancelCapture=v((0,s.S)(o))),e.onTouchCancelCapture=m((0,s.S)(o)),t=!0;break;case"onRootPointerDown":case"onRootPointerDownCapture":e.onTouchStart=e.onTouchStart||y,this.disablePointerEvents||(e.onPointerDown=e.onPointerDown||y),e.onMouseDown=e.onMouseDown||y;break;case"onRootPointerMove":case"onRootPointerMoveCapture":e.onTouchMove=e.onTouchMove||y,this.disablePointerEvents||(e.onPointerMove=e.onPointerMove||y),e.onMouseMove=e.onMouseMove||y;break;case"onRootPointerUp":case"onRootPointerUpCapture":e.onTouchEnd=e.onTouchEnd||y,this.disablePointerEvents||(e.onPointerUp=e.onPointerUp||y),e.onMouseUp=e.onMouseUp||y;break;case"onRootPointerEnter":case"onRootPointerEnterCapture":this.disablePointerEvents||(e.onPointerEnter=e.onPointerEnter||y),e.onMouseEnter=e.onMouseEnter||y;break;case"onRootPointerLeave":case"onRootPointerLeaveCapture":this.disablePointerEvents||(e.onPointerLeave=e.onPointerLeave||y),e.onMouseLeave=e.onMouseLeave||y;break;case"onRootPointerCancel":case"onRootPointerCancelCapture":this.disablePointerEvents||(e.onPointerCancel=e.onPointerCancel||y),e.onTouchCancel=e.onTouchCancel||y}})),!t)return i.createElement("div",(0,r.Z)({ref:this._handleRef},e),this.props.children);const n=i.Children.only(this.props.children);return e.ref=this._handleRef,(0,a.kG)(!n.ref,"PRC requires the child element to not have a `ref` assigned. Consider inserting a new `<div>` in between."),i.cloneElement(n,e)}}},54130:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(22122),o=n(67294),i=n(94184),a=n.n(i),s=(n(43165),n(80422)),l=n(17722),c=n.n(l);const u=o.forwardRef((function(e,t){const{selected:n,disabled:i}=e,l=a()(c().root,n&&c().isActive,i&&c().isDisabled,"string"==typeof e.className&&e.className,"PSPDFKit-Toolbar-Button",n&&"PSPDFKit-Toolbar-Button-active",i&&"PSPDFKit-Toolbar-Button-disabled");return o.createElement(s.Z,(0,r.Z)({},e,{className:l,iconClassName:"PSPDFKit-Toolbar-Button-Icon",ref:t,itemComponentProps:e.itemComponentProps}))}))},85944:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>Pe,k3:()=>Se});var r=n(96156),o=n(67294),i=n(35369),a=n(94184),s=n.n(a),l=n(30845),c=n(24021),u=n(20144),d=n(86849),p=n(67366),h=n(40163),f=n(22122),m=n(67665),g=n(41756),v=n(26353),y=n(84013),b=n(98260),w=n(2464),x=n(66327),_=n(46302),S=n(84691),C=n.n(S),E=n(37103),k=n.n(E),z=n(54130),P=n(13608),D=n.n(P),A=n(14286),T=n(40084),I=n(89637),M=n(53328),R=n.n(M),F=n(71623);function N(e){let{isActive:t,isHighlighted:n,type:r,title:i,className:a,itemProps:l}=e;return o.createElement("span",(0,f.Z)({className:s()(k().button,a,"PSPDFKit-Layout-Config-Option",t&&"PSPDFKit-Layout-Config-Option-Active",n&&"PSPDFKit-Layout-Config-Option-Highlighted"),title:i,"aria-label":i},l),(0,F.Z)({type:`layout-config/${r.toLowerCase()}`,style:{width:36,height:36},className:s()(k().icon,t&&k().activeIcon,n&&k().highlightedIcon,"PSPDFKit-Layout-Config-Option-Icon")}))}const O=[{type:"layout",mode:A.X.SINGLE},{type:"layout",mode:A.X.DOUBLE},{type:"layout",mode:A.X.AUTO},{type:"scroll",mode:w.G.CONTINUOUS},{type:"scroll",mode:w.G.PER_SPREAD},{type:"rotate",mode:"-90"},{type:"rotate",mode:"90"}];function j(e,t){switch(t.type){case g.ZP.stateChangeTypes.keyDownEnter:case g.ZP.stateChangeTypes.clickItem:return{...t,isOpen:e.isOpen,highlightedIndex:e.highlightedIndex};default:return t}}const L=(0,c.XN)((function(e){const{dispatch:t,layoutMode:n,scrollMode:r,disabled:i}=e,{formatMessage:a}=e.intl,l=o.useRef(),c=(0,p.v9)((e=>e.shadowRoot)),u=o.useMemo((()=>c?(0,b.ke)(c,window):e.frameWindow),[]);return o.createElement(g.ZP,{onSelect:function(e){if(e)switch(e.type){case"layout":t((0,x.YA)(e.mode));break;case"scroll":t((0,x._U)(e.mode));break;case"rotate":t((0,T.U1)(e.mode))}},itemToString:e=>null===e?"":`${e.type} ${e.mode}`,stateReducer:j,environment:u},(c=>{let{getToggleButtonProps:u,getMenuProps:d,getItemProps:p,isOpen:h,highlightedIndex:g,setHighlightedIndex:b}=c,x=!1;const S=d({onMouseDown:()=>{x=!0},onTouchStart:()=>{x=!0}},{suppressRefError:!0}),E=u(),P="down"===e.caretDirection;return o.createElement("div",{className:s()(h&&"PSPDFKit-Input-Dropdown-open")},o.createElement("div",(0,f.Z)({ref:l},E,e.disabled?{onClick:null}:null,{onBlur:function(e){if(x&&(x=!1,e.nativeEvent.preventDownshiftDefault=!0,l.current)){const e=l.current.querySelector("button");e&&e.focus()}E.onBlur(e)}}),o.createElement(z.Z,{type:"layout-config",selected:h,title:a(B.pageLayout),icon:e.icon,className:s()(D().toolbarButton,"PSPDFKit-Toolbar-Button-Layout-Config",e.className),onPress:e=>{e.target.focus&&e.target.focus(),h||t((0,I.fz)())},disabled:i})),o.createElement(m.m,null,o.createElement(y.Z,null,h&&o.createElement(v.Z,{timeout:{enter:window["PSPDFKit-disable-animations"]?0:240,exit:window["PSPDFKit-disable-animations"]?0:80},classNames:{enter:s()(R().scaleInEnter,{[R().scaleInEnterTop]:P,[R().scaleInEnterBottom]:!P}),enterActive:R().scaleInEnterActive,exit:s()(R().scaleInExit,{[R().scaleInExitTop]:P,[R().scaleInExitBottom]:!P}),exitActive:s()(R().scaleInExitActive,{[R().scaleInExitActiveTop]:P,[R().scaleInExitActiveBottom]:!P})}},o.createElement(_.Z,{referenceElement:l.current,horizontalAlignment:"center"},o.createElement("div",(0,f.Z)({},S,{className:s()(C().root,k().dropdownMenu,"PSPDFKit-Dropdown-Layout-Config",{[k().dropdownMenuUp]:!P}),style:{padding:0},onMouseLeave:()=>b(null)}),o.createElement("table",{className:s()(k().table,"PSPDFKit-Layout-Config")},o.createElement("tbody",null,o.createElement("tr",null,o.createElement("td",{className:"PSPDFKit-Layout-Config-Label"},a(B.pageMode)),o.createElement("td",{style:{textAlign:"right"},className:"PSPDFKit-Layout-Config-Options"},o.createElement(N,{itemProps:p({item:O[0]}),isActive:n===A.X.SINGLE,isHighlighted:0===g,type:A.X.SINGLE,className:"PSPDFKit-Layout-Config-Option-Layout-Mode-Single",title:a(B.pageModeSingle)}),o.createElement(N,{itemProps:p({item:O[1]}),isActive:n===A.X.DOUBLE,isHighlighted:1===g,type:A.X.DOUBLE,className:"PSPDFKit-Layout-Config-Option-Layout-Mode-Double",title:a(B.pageModeDouble)}),o.createElement(N,{itemProps:p({item:O[2]}),isActive:n===A.X.AUTO,isHighlighted:2===g,type:A.X.AUTO,className:"PSPDFKit-Layout-Config-Option-Layout-Mode-Auto",title:a(B.pageModeAutomatic)}))),o.createElement("tr",null,o.createElement("td",{className:"PSPDFKit-Layout-Config-Label"},a(B.pageTransition)),o.createElement("td",{style:{textAlign:"right"},className:"PSPDFKit-Layout-Config-Options"},o.createElement(N,{itemProps:p({item:O[3]}),isActive:r===w.G.CONTINUOUS,isHighlighted:3===g,type:w.G.CONTINUOUS,className:"PSPDFKit-Layout-Config-Option-Scroll-Mode-Continuous",title:a(B.pageTransitionContinuous)}),o.createElement(N,{itemProps:p({item:O[4]}),isActive:r===w.G.PER_SPREAD,isHighlighted:4===g,type:"single",className:"PSPDFKit-Layout-Config-Option-Scroll-Mode-Per-Spread",title:a(B.pageTransitionJump)}))),o.createElement("tr",null,o.createElement("td",{className:"PSPDFKit-Layout-Config-Label"},a(B.pageRotation)),o.createElement("td",{style:{textAlign:"right"},className:"PSPDFKit-Layout-Config-Options"},o.createElement(N,{itemProps:p({item:O[5]}),type:"view_rotate_left",title:a(B.pageRotationLeft),className:"PSPDFKit-Layout-Config-Option-Page-Rotation-Left",isHighlighted:5===g,isActive:!1}),o.createElement(N,{itemProps:p({item:O[6]}),type:"view_rotate_right",title:a(B.pageRotationRight),className:"PSPDFKit-Layout-Config-Option-Page-Rotation-Right",isHighlighted:6===g,isActive:!1})))))))))),!h&&o.createElement("div",S),o.createElement(m.m,null,o.createElement(y.Z,null,h&&o.createElement(v.Z,{timeout:{enter:window["PSPDFKit-disable-animations"]?0:240,exit:window["PSPDFKit-disable-animations"]?0:80},classNames:{enter:s()(R().scaleInEnter,{[R().scaleInEnterTop]:P,[R().scaleInEnterBottom]:!P}),enterActive:R().scaleInEnterActive,exit:s()(R().scaleInExit,{[R().scaleInExitTop]:P,[R().scaleInExitBottom]:!P}),exitActive:s()(R().scaleInExitActive,{[R().scaleInExitActiveTop]:P,[R().scaleInExitActiveBottom]:!P})}},o.createElement(_.Z,{referenceElement:l.current,horizontalAlignment:"center"},o.createElement(o.Fragment,null,o.createElement("div",{className:s()(k().arrow,{[k().arrowUp]:!P})},o.createElement("div",{className:s()({[k().arrowFill]:P,[k().arrowFillUp]:!P})}))))))))}))}));const B=(0,c.vU)({pageLayout:{id:"pageLayout",defaultMessage:"Page Layout",description:'Button to open the "change page layout" menu'},pageMode:{id:"pageMode",defaultMessage:"Page Mode",description:"Label for the page mode configuration"},pageModeSingle:{id:"pageModeSingle",defaultMessage:"Single",description:"Single page mode"},pageModeDouble:{id:"pageModeDouble",defaultMessage:"Double",description:"Double page mode"},pageModeAutomatic:{id:"pageModeAutomatic",defaultMessage:"Automatic",description:"Automatic page mode"},pageTransition:{id:"pageTransition",defaultMessage:"Page Transition",description:"Label for the page transition mode"},pageTransitionContinuous:{id:"pageTransitionContinuous",defaultMessage:"Continuous",description:"Continuous page transition mode"},pageTransitionJump:{id:"pageTransitionJump",defaultMessage:"Jump",description:"Jump-ing page transition mode (one page at the time)"},pageRotation:{id:"pageRotation",defaultMessage:"Page Rotation",description:"Label for the page rotation mode (left, right)"},pageRotationLeft:{id:"pageRotationLeft",defaultMessage:"Rotate Left",description:"Button to rotate the page to the left of 90°"},pageRotationRight:{id:"pageRotationRight",defaultMessage:"Rotate Right",description:"Button to rotate the page to the right of 90°"}});var K=n(15359),V=n(53261),H=n(61533),$=n.n(H);const U=e=>{["-","+",".","e","E"].some((t=>e.key===t))&&e.preventDefault()},Z=e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},q=e=>{e.currentTarget.select()},G=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{withParens:!1};return t=>o.createElement("div",{className:$().desktop},e.withParens&&"(",t.map(((e,t)=>o.createElement("span",{key:t},e))),e.withParens&&")")};const W=(0,c.XN)((function(e){const t=e.pages.get(e.currentPageNumber-1);(0,K.kG)(null!=t,`Couldn't get page number ${e.currentPageNumber}`);const r=o.useMemo((()=>e.pages.some((e=>e.pageLabel!==(e.pageIndex+1).toString()))),[e.pages]),[i,a]=o.useState(t?.pageLabel);o.useEffect((()=>{a(t?.pageLabel)}),[t?.pageLabel]);const l=n=>{if(r){const t=e.pages.findIndex((e=>e.pageLabel===n));if(t>=0&&!e.readOnly)return void e.dispatch((0,T.YA)(t))}const o=parseInt(n);1<=o&&o<=e.totalPages&&!e.readOnly?e.dispatch((0,T.YA)(o-1)):a(t.pageLabel)},{formatMessage:u}=e.intl,d=s()({"PSPDFKit-Page-Indicator-Prev":!0,[$().prev]:!0,"PSPDFKit-Page-Indicator-Prev-disabled":1===e.currentPageNumber}),p=s()({"PSPDFKit-Page-Indicator-Next":!0,[$().next]:!0,"PSPDFKit-Page-Indicator-Next-disabled":e.currentPageNumber===e.totalPages}),h=o.createElement("div",{className:$().control},o.createElement("button",{className:d,title:u(Y.prevPage),onClick:()=>e.dispatch((0,T.IT)()),disabled:1===e.currentPageNumber||e.readOnly},o.createElement(V.Z,{src:n(10190),className:$().icon})),o.createElement("label",{className:$().inputLabel,htmlFor:$().input},u(Y.goToPage)),o.createElement("input",(0,f.Z)({id:$().input,type:r?"text":"number",value:i,className:`PSPDFKit-Page-Indicator-Input ${$().input}`,onMouseDown:Z,onFocus:q,onChange:t=>{e.readOnly||a(t.currentTarget.value)},onBlur:e=>{l(e.currentTarget.value)},onKeyPress:e=>{"Enter"===e.key&&l(e.currentTarget.value)},disabled:e.readOnly},r?{}:{min:1,max:e.totalPages,onKeyDown:U,pattern:"[0-9]"})),o.createElement("button",{className:p,onClick:()=>e.dispatch((0,T.fz)()),title:u(Y.nextPage),disabled:e.currentPageNumber===e.totalPages||e.readOnly},o.createElement(V.Z,{src:n(92122),className:$().icon})));return o.createElement("div",{className:`PSPDFKit-Page-Indicator ${$().root}`},r?o.createElement(o.Fragment,null,o.createElement(c._H,{id:"pageX",defaultMessage:"Page {arg0}",description:"Page indicator prefix",values:{arg0:h},children:G()}),o.createElement(c._H,{id:"XofY",defaultMessage:"{arg0} of {arg1}",description:"Page indicator label",values:{arg0:e.currentPageNumber,arg1:e.totalPages},children:G({withParens:!0})})):o.createElement(c._H,{id:"pageXofY",defaultMessage:"Page {arg0} of {arg1}",description:"Page indicator control. arg0 is an interactive widget to select pages.",values:{arg0:h,arg1:e.totalPages},children:G()}),o.createElement("div",{className:$().mobile},o.createElement("label",{className:$().label},o.createElement("strong",null,e.currentPageNumber)," ","/"," ",e.totalPages)))})),Y=(0,c.vU)({prevPage:{id:"prevPage",defaultMessage:"Previous Page",description:"Button to go to the previous page"},nextPage:{id:"nextPage",defaultMessage:"Next Page",description:"Button to go to the next page"},goToPage:{id:"goToPage",defaultMessage:"Go to Page",description:"label for the go to page selector"}}),X=(0,p.$j)((e=>({currentPageNumber:e.viewportState.currentPageIndex+1})))(W);var Q=n(80292),J=n(76465),ee=n(3324),te=n(45249),ne=n(94732),re=n(2841),oe=n(2927),ie=n(4087),ae=n(35464),se=n(5283),le=n(73900),ce=n(18287),ue=n(98179);function de(e,t){const n=document.createElement("a");n.href=e,n.style.display="none",n.download=t,n.setAttribute("download",t);const r=document.body;return r?(r.appendChild(n),n.click(),()=>{const e=document.body;e&&e.removeChild(n)}):()=>{}}var pe=n(87996),he=n(48625),fe=n(27122),me=n(81777),ge=n(20063),ve=n(13264),ye=n(17766),be=n(49876),we=n(2058),xe=n(43069),_e=n(77897);const Se=44;class Ce extends o.Component{constructor(){for(var e,t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];super(...n),e=this,(0,r.Z)(this,"state",{currentPageIndex:0,items:null,responsiveGroupItems:null,activeResponsiveGroup:null,mediaQueryDidUpdate:{},lastSelectedToolbarItemType:null,prevActiveGroup:null}),(0,r.Z)(this,"imagePickerRef",o.createRef()),(0,r.Z)(this,"itemToFocusRef",o.createRef()),(0,r.Z)(this,"_mediaListeners",{}),(0,r.Z)(this,"_handlePanTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,I.fz)()),e===he.A.PAN?t((0,T.Yr)()):t((0,T.vc)())})),(0,r.Z)(this,"handleFormDesignerTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,I.fz)()),(0,xe.fF)(e)?t((0,_e.h4)()):t((0,_e.el)())})),(0,r.Z)(this,"_handleZoomOutTap",(()=>{this.props.dispatch((0,T.vG)())})),(0,r.Z)(this,"_handleZoomInTap",(()=>{this.props.dispatch((0,T.kr)())})),(0,r.Z)(this,"_handleUndoTap",(()=>{this.props.canUndo&&this.props.dispatch((0,be.Yw)())})),(0,r.Z)(this,"_handleRedoTap",(()=>{this.props.canRedo&&this.props.dispatch((0,be.KX)())})),(0,r.Z)(this,"_handleMarqueeZoomTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,I.fz)()),e===he.A.MARQUEE_ZOOM?t((0,x.si)()):t((0,x.xF)())})),(0,r.Z)(this,"_handleFitToWidthTap",(()=>{this.props.dispatch((0,T.du)())})),(0,r.Z)(this,"_handleFitToBothTap",(()=>{this.props.dispatch((0,T.lO)())})),(0,r.Z)(this,"handleCalloutTap",((e,t,n)=>{const{interactionMode:r,dispatch:o}=this.props;o((0,I.fz)()),r===he.A.CALLOUT&&n===this.props.currentItemPreset?(o((0,ie.Ds)(null)),o((0,x.k4)())):(o((0,ie.Ds)(n)),o((0,x.Lt)()))})),(0,r.Z)(this,"_handleTextTap",((e,t,n)=>{const{interactionMode:r,dispatch:o}=this.props;o((0,I.fz)()),r===he.A.TEXT&&n===this.props.currentItemPreset?(o((0,ie.Ds)(null)),o((0,x.k4)())):(o((0,ie.Ds)(n)),o((0,x.DU)()))})),(0,r.Z)(this,"_handleTextKeyPress",(()=>{const{dispatch:e}=this.props;e((0,I.fz)()),e((0,ie.RK)())})),(0,r.Z)(this,"_handleTextHighlighterTap",((e,t,n)=>{const{interactionMode:r,dispatch:o}=this.props;o((0,I.fz)()),r===he.A.TEXT_HIGHLIGHTER&&n===this.props.currentItemPreset?o((0,x.lC)()):o((0,x.d5)(n))})),(0,r.Z)(this,"_handleLinkTap",((e,t,n)=>{const{interactionMode:r,dispatch:o}=this.props;o((0,I.fz)()),r===he.A.LINK&&n===this.props.currentItemPreset?(o((0,ie.Ds)(null)),o((0,x.UU)())):(o((0,ie.Ds)(n)),o((0,x.Jn)()))})),(0,r.Z)(this,"_handleInkTap",((e,t,n)=>{const{interactionMode:r,dispatch:o}=this.props;o((0,I.fz)()),r===he.A.INK&&n===this.props.currentItemPreset?(o((0,ie.Ds)(null)),o((0,x.s3)())):(o((0,ie.Ds)(n)),o((0,x.P4)()))})),(0,r.Z)(this,"_handleMeasurementTap",((e,t,n)=>{const{interactionMode:r,dispatch:o}=this.props;o((0,I.fz)()),r===he.A.MEASUREMENT&&n===this.props.currentItemPreset?(o((0,ie.Ds)(null)),o((0,x.hS)())):(o((0,ie.Ds)(n)),o((0,x.BR)()))})),(0,r.Z)(this,"_handleInkEraserTap",((e,t,n)=>{const{interactionMode:r,dispatch:o}=this.props;o((0,I.fz)()),r===he.A.INK_ERASER?(o((0,ie.Ds)(null)),o((0,x.VU)())):(o((0,ie.Ds)(n)),o((0,x.Ug)()))})),(0,r.Z)(this,"_handleLineTap",((e,t,n)=>this._handleShapeTap(te.o9,he.A.SHAPE_LINE,n))),(0,r.Z)(this,"_handleRectangleTap",((e,t,n)=>this._handleShapeTap(te.b3,he.A.SHAPE_RECTANGLE,n))),(0,r.Z)(this,"_handleEllipseTap",((e,t,n)=>this._handleShapeTap(te.Xs,he.A.SHAPE_ELLIPSE,n))),(0,r.Z)(this,"_handlePolygonTap",((e,t,n)=>this._handleShapeTap(te.Hi,he.A.SHAPE_POLYGON,n))),(0,r.Z)(this,"_handlePolylineTap",((e,t,n)=>this._handleShapeTap(te.om,he.A.SHAPE_POLYLINE,n))),(0,r.Z)(this,"_handleShapeTap",((e,t,n)=>{const{interactionMode:r,dispatch:o}=this.props;o((0,I.fz)()),r===t&&n===this.props.currentItemPreset?(o((0,ie.Ds)(null)),o((0,x.Ce)())):(o((0,ie.Ds)(n)),o((0,x.yg)(e,t)))})),(0,r.Z)(this,"_handleNoteTap",((e,t,n)=>{const{interactionMode:r,dispatch:o}=this.props;o((0,I.fz)()),r===he.A.NOTE&&n===this.props.currentItemPreset?(o((0,ie.Ds)(null)),o((0,x.dp)())):(o((0,ie.Ds)(n)),o((0,x.i9)()))})),(0,r.Z)(this,"_handleNoteKeyPress",(()=>{const{dispatch:e}=this.props;e((0,I.fz)()),e((0,ie.XG)())})),(0,r.Z)(this,"_handleCommentMarkerTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,I.fz)()),e===he.A.COMMENT_MARKER?t((0,x.tr)()):t((0,x.k6)())})),(0,r.Z)(this,"_handleCommentMarkerKeyPress",(()=>{const{dispatch:e}=this.props;e((0,I.fz)()),e((0,ae.GH)())})),(0,r.Z)(this,"_handleSignatureTap",((e,t,n)=>{const{interactionMode:r,dispatch:o}=this.props;o((0,I.fz)()),r===he.A.INK_SIGNATURE||r===he.A.SIGNATURE?(o((0,ie.Ds)(null)),o((0,x.MV)())):(o((0,ie.Ds)(n)),o((0,x.Cc)()))})),(0,r.Z)(this,"_handleStampTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,I.fz)()),e===he.A.STAMP_PICKER?t((0,x.pM)()):t((0,x.C4)())})),(0,r.Z)(this,"_handleRedactRectangleTap",((e,t,n)=>{const{interactionMode:r,dispatch:o}=this.props;o((0,I.fz)()),r===he.A.REDACT_SHAPE_RECTANGLE&&n===this.props.currentItemPreset?o((0,x.jP)()):o((0,x.t)(n))})),(0,r.Z)(this,"_handleRedactTextHighlighterTap",((e,t,n)=>{const{interactionMode:r,dispatch:o}=this.props;o((0,I.fz)()),r===he.A.REDACT_TEXT_HIGHLIGHTER&&n===this.props.currentItemPreset?o((0,x.TR)()):o((0,x.aw)(n))})),(0,r.Z)(this,"_handleResponsiveGroupTap",(e=>{this.setState({activeResponsiveGroup:e}),e&&this.setState({prevActiveGroup:e})})),(0,r.Z)(this,"_handleAnnotateResponsiveGroupTap",(()=>this._handleResponsiveGroupTap("annotate"))),(0,r.Z)(this,"_handlePrintTap",(()=>{this.props.printingEnabled&&this.props.dispatch((0,le.S0)())})),(0,r.Z)(this,"_handleSearchTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,I.fz)()),e===he.A.SEARCH?t((0,ce.ct)()):t((0,ce.Xe)())})),(0,r.Z)(this,"handleCropTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,I.fz)()),e===he.A.DOCUMENT_CROP?t((0,x.Cn)()):t((0,x.rL)())})),(0,r.Z)(this,"handleDocumentComparisonTap",(()=>{const{currentDocumentComparisonMode:e,dispatch:t}=this.props;t((0,I.fz)()),t(e?(0,x.cz)(null):(0,x.cz)(we.se))})),(0,r.Z)(this,"_handleExportPDFTap",(async()=>{this.props.exportEnabled&&this.props.dispatch(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return async(t,n)=>{const{backend:r,annotations:o}=n(),i=e.flattenElectronicSignatures?o.toList().filter((e=>(e instanceof te.Zc||e instanceof te.sK)&&e.isSignature)).map((e=>({pageIndex:e.pageIndex,id:e.id,pdfObjectId:e.pdfObjectId}))):void 0;(0,K.kG)(r);const a=HTMLAnchorElement.prototype.hasOwnProperty("download"),s=await r.exportPDF(e,i?.toArray()),l=s.mimeType||"application/pdf",c=s.extension||"pdf",u=new Blob([s],{type:l}),d=`${(await r.documentInfo()).title||"document"}.${c}`;let p=()=>{};if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(u,d);else if(a){const e=window.URL.createObjectURL(u),t=de(e,d);p=()=>{t(),window.URL.revokeObjectURL(e)}}else{const e=new FileReader;e.onloadend=()=>{p=de(e.result,c)},e.readAsDataURL(u)}window.setTimeout(p,1e3)}}())})),(0,r.Z)(this,"_handleDebugTap",(()=>{this.props.dispatch((0,x.BB)())})),(0,r.Z)(this,"_handleThumbnailsSidebarTap",(()=>{const{sidebarMode:e,dispatch:t}=this.props;e===fe.f.THUMBNAILS?t((0,x.mu)()):t((0,x.el)())})),(0,r.Z)(this,"_handleDocumentOutlineSidebarTap",(()=>{const{sidebarMode:e,dispatch:t}=this.props;e===fe.f.DOCUMENT_OUTLINE?t((0,x.mu)()):t((0,x.EJ)())})),(0,r.Z)(this,"_handleDocumentEditorTap",(()=>{const{dispatch:e}=this.props;e((0,I.fz)()),e((0,x.lV)())})),(0,r.Z)(this,"_handleAnnotationsSidebarTap",(()=>{const{sidebarMode:e,dispatch:t}=this.props;e===fe.f.ANNOTATIONS?t((0,x.mu)()):t((0,x.ze)())})),(0,r.Z)(this,"_handleBookmarksSidebarTap",(()=>{const{sidebarMode:e,dispatch:t}=this.props;e===fe.f.BOOKMARKS?t((0,x.mu)()):t((0,x.Hf)())})),(0,r.Z)(this,"_handleSignaturesSidebarTap",(()=>{const{sidebarMode:e,dispatch:t}=this.props;e===fe.f.SIGNATURES?t((0,x.mu)()):t((0,x.LH)())})),(0,r.Z)(this,"_handleOCGsSidebarTap",(()=>{const{sidebarMode:e,dispatch:t}=this.props;e===fe.f.LAYERS?t((0,x.mu)()):t((0,x.Fs)())})),(0,r.Z)(this,"_handleImageTap",(()=>{const e={annotations:(0,i.aV)([new te.sK({pageIndex:this.state.currentPageIndex})]),reason:re.f.SELECT_START};this.props.eventEmitter.emit("annotations.willChange",e);const t=this.imagePickerRef&&this.imagePickerRef.current;if(t)try{const{formatMessage:e}=this.props.intl;this.props.dispatch((0,x.iJ)(e(De.selectAFileForImage))),t.removeAttribute("aria-hidden"),t.click()}catch{t.setAttribute("aria-hidden","true");const e={annotations:(0,i.aV)(),reason:re.f.SELECT_END};this.props.eventEmitter.emit("annotations.willChange",e)}})),(0,r.Z)(this,"_handleImageSelect",(e=>{if(e.target.setAttribute("aria-hidden","true"),!e.target.files[0])return;this.props.dispatch((0,I.fz)()),this.props.dispatch((0,ie.Ds)("image")),this.props.dispatch((0,ie.$e)(e.target.files[0]));const{formatMessage:t}=this.props.intl;this.props.dispatch((0,x.iJ)(t(De.newAnnotationCreated,{arg0:"image"}))),e.target.value=""})),(0,r.Z)(this,"_handleResponsiveGroupClose",(()=>{this.props.dispatch((0,I.fz)()),this._handleResponsiveGroupTap(null)})),(0,r.Z)(this,"_handleContentEditorTap",(()=>{const{interactionMode:e,dispatch:t,isContentEditorSessionDirty:n}=this.props;e===he.A.CONTENT_EDITOR?t(n?(0,oe.Yg)(!0):oe.u8):t(oe.gY)})),(0,r.Z)(this,"_handleMultiAnnotationsSelectionTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;e===he.A.MULTI_ANNOTATIONS_SELECTION?t((0,x.FA)()):t((0,x.YF)())})),(0,r.Z)(this,"_handleDocumentAssistantTap",(()=>{const{showDocumentAssistant:e,dispatch:t}=this.props;t(e?(0,x.Z_)(!1):(0,x.Z_)(!0))})),(0,r.Z)(this,"_getBuiltInDefaults",(0,l.Z)(((e,t,n,r,o,i,a,s,l,c,u,d,p,h,f,m,g,v,y)=>{const{formatMessage:b}=e,w=n===he.A.CONTENT_EDITOR;return{debug:{className:"",onPress:this._handleDebugTap,title:"Debug Info",forceHide:!t},image:{className:"PSPDFKit-Toolbar-Button-Image-Annotation",title:b(ye.Z.imageAnnotation),forceHide:r(te.sK),responsiveGroup:"annotate",preset:"image",onPress:this._handleImageTap,dropdownGroup:"image",disabled:w},stamp:{className:"PSPDFKit-Toolbar-Button-Stamp-Annotation",selected:n===he.A.STAMP_PICKER||n===he.A.STAMP_CUSTOM,onPress:this._handleStampTap,title:b(ye.Z.stampAnnotation),forceHide:r(te.GI),responsiveGroup:"annotate",preset:"stamp",dropdownGroup:"image",disabled:w},link:{className:"PSPDFKit-Toolbar-Button-Link-Annotation",selected:n===he.A.LINK&&"link"===this.state.lastSelectedToolbarItemType,onPress:this._handleLinkTap,title:b(ye.Z.linkAnnotation),forceHide:r(te.R1),responsiveGroup:"annotate",preset:"link",dropdownGroup:"image",disabled:w},ink:{className:"PSPDFKit-Toolbar-Button-Ink-Annotation",selected:n===he.A.INK&&"ink"===f,onPress:this._handleInkTap,title:b(ye.Z.pen),forceHide:r(te.Zc),responsiveGroup:"annotate",dropdownGroup:"ink",preset:"ink",disabled:w},"ink-eraser":{className:"PSPDFKit-Toolbar-Button-Ink-Eraser",selected:n===he.A.INK_ERASER&&"ink-eraser"===f,onPress:this._handleInkEraserTap,title:b(ye.Z.eraser),forceHide:r(te.Zc),responsiveGroup:"annotate",dropdownGroup:"ink",preset:"ink",disabled:w},highlighter:{className:"PSPDFKit-Toolbar-Button-Ink-Annotation PSPDFKit-Toolbar-Button-Variant-Highlighter",selected:n===he.A.INK&&"highlighter"===f,onPress:this._handleInkTap,title:b(ye.Z.highlighter),forceHide:r(te.Zc),responsiveGroup:"annotate",dropdownGroup:"ink",preset:"highlighter",disabled:w},"text-highlighter":{className:"PSPDFKit-Toolbar-Button-TextHighlighter-Annotation",selected:n===he.A.TEXT_HIGHLIGHTER&&"text-highlighter"===f,onPress:this._handleTextHighlighterTap,title:b(ye.Z.textHighlighter),forceHide:r(te.FV),responsiveGroup:"annotate",dropdownGroup:"ink",preset:"text-highlighter",disabled:w},line:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Line-Annotation",selected:n===he.A.SHAPE_LINE&&"line"===f,onPress:this._handleLineTap,title:b(ye.Z.lineAnnotation),forceHide:r(te.o9),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"line",disabled:w},arrow:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Line-Annotation PSPDFKit-Toolbar-Button-Variant-Arrow",selected:n===he.A.SHAPE_LINE&&"arrow"===f,onPress:this._handleLineTap,title:b(ye.Z.arrow),forceHide:r(te.o9),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"arrow",disabled:w},rectangle:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Rectangle-Annotation",selected:n===he.A.SHAPE_RECTANGLE&&"rectangle"===f,onPress:this._handleRectangleTap,title:b(ye.Z.rectangleAnnotation),forceHide:r(te.b3),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"rectangle",disabled:w},"cloudy-rectangle":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Rectangle-Annotation PSPDFKit-Toolbar-Button-Variant-CloudyRectangle",selected:n===he.A.SHAPE_RECTANGLE&&"cloudy-rectangle"===f,onPress:this._handleRectangleTap,title:b(ye.Z.cloudyRectangleAnnotation),forceHide:r(te.b3),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"cloudy-rectangle",disabled:w},"dashed-rectangle":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Rectangle-Annotation PSPDFKit-Toolbar-Button-Variant-DashedRectangle",selected:n===he.A.SHAPE_RECTANGLE&&"dashed-rectangle"===f,onPress:this._handleRectangleTap,title:b(ye.Z.dashedRectangleAnnotation),forceHide:r(te.b3),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"dashed-rectangle",disabled:w},ellipse:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Ellipse-Annotation",selected:n===he.A.SHAPE_ELLIPSE&&"ellipse"===f,onPress:this._handleEllipseTap,title:b(ye.Z.ellipseAnnotation),forceHide:r(te.Xs),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"ellipse",disabled:w},"cloudy-ellipse":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Ellipse-Annotation PSPDFKit-Toolbar-Button-Variant-CloudyEllipse",selected:n===he.A.SHAPE_ELLIPSE&&"cloudy-ellipse"===f,onPress:this._handleEllipseTap,title:b(ye.Z.cloudyEllipseAnnotation),forceHide:r(te.Xs),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"cloudy-ellipse",disabled:w},"dashed-ellipse":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Ellipse-Annotation PSPDFKit-Toolbar-Button-Variant-DashedEllipse",selected:n===he.A.SHAPE_ELLIPSE&&"dashed-ellipse"===f,onPress:this._handleEllipseTap,title:b(ye.Z.dashedEllipseAnnotation),forceHide:r(te.Xs),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"dashed-ellipse",disabled:w},polygon:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polygon-Annotation",selected:n===he.A.SHAPE_POLYGON&&"polygon"===f,onPress:this._handlePolygonTap,title:b(ye.Z.polygonAnnotation),forceHide:r(te.Hi),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"polygon",disabled:w},"cloudy-polygon":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polygon-Annotation PSPDFKit-Toolbar-Button-Variant-CloudyPolygon",selected:n===he.A.SHAPE_POLYGON&&"cloudy-polygon"===f,onPress:this._handlePolygonTap,title:ze("cloudy-",this.props.items)?b(ye.Z.cloudAnnotation):b(ye.Z.cloudyPolygonAnnotation),forceHide:r(te.Hi),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"cloudy-polygon",disabled:w},"dashed-polygon":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polygon-Annotation PSPDFKit-Toolbar-Button-Variant-DashedPolygon",selected:n===he.A.SHAPE_POLYGON&&"dashed-polygon"===f,onPress:this._handlePolygonTap,title:b(ye.Z.dashedPolygonAnnotation),forceHide:r(te.Hi),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"dashed-polygon",disabled:w},polyline:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polyline-Annotation",selected:n===he.A.SHAPE_POLYLINE&&"polyline"===f,onPress:this._handlePolylineTap,title:b(ye.Z.polylineAnnotation),forceHide:r(te.om),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"polyline",disabled:w},note:{className:"PSPDFKit-Toolbar-Button-Note-Annotation",selected:n===he.A.NOTE&&"note"===f,onPress:this._handleNoteTap,onKeyPress:this._handleNoteKeyPress,title:b(ye.Z.noteAnnotation),forceHide:r(te.Qi),responsiveGroup:"annotate",preset:"note",disabled:w},comment:{className:"PSPDFKit-Toolbar-Button-Comment-Marker-Annotation",selected:n===he.A.COMMENT_MARKER,title:b(ye.Z.comment),onPress:this._handleCommentMarkerTap,onKeyPress:this._handleCommentMarkerKeyPress,forceHide:r(te.Jn),responsiveGroup:"annotate",disabled:w},signature:{className:"PSPDFKit-Toolbar-Button-InkSignature-Annotation PSPDFKit-Toolbar-Button-Signature",selected:n===he.A.INK_SIGNATURE||n===he.A.SIGNATURE,onPress:this._handleSignatureTap,title:b(ye.Z.sign),forceHide:s===ge.H.NONE||a||r(te.Zc)&&s!==ge.H.ELECTRONIC_SIGNATURES,responsiveGroup:"annotate",preset:s===ge.H.ELECTRONIC_SIGNATURES?"es-signature":"ink-signature",disabled:w},"redact-text-highlighter":{className:"PSPDFKit-Toolbar-Button-RedactTextHighlighter-Annotation",selected:n===he.A.REDACT_TEXT_HIGHLIGHTER,onPress:this._handleRedactTextHighlighterTap,title:b(ye.Z.textRedaction),forceHide:r(ne.Z),responsiveGroup:"annotate",dropdownGroup:"redaction",preset:"redaction",disabled:w},"redact-rectangle":{className:"PSPDFKit-Toolbar-Button-Redaction-Annotation PSPDFKit-Toolbar-Button-Rectangle-Redaction-Annotation",selected:n===he.A.REDACT_SHAPE_RECTANGLE,onPress:this._handleRedactRectangleTap,title:b(ye.Z.areaRedaction),forceHide:r(ne.Z),responsiveGroup:"annotate",dropdownGroup:"redaction",preset:"redaction",disabled:w},"form-creator":{className:"PSPDFKit-Toolbar-Button-Form-Creator",selected:(0,xe.fF)(n),onPress:this.handleFormDesignerTap,title:b(ye.Z.formCreator),forceHide:r(te.x_),disabled:w},pan:{className:"PSPDFKit-Toolbar-Button-Pan",selected:n===he.A.PAN,onPress:this._handlePanTap,title:b(De.panMode),forceHide:ue.Ni,disabled:w},print:{className:"PSPDFKit-Toolbar-Button-Print",onPress:this._handlePrintTap,title:b(De.print),disabled:!l||w},"document-editor":{className:"PSPDFKit-Toolbar-Button-Document-Editor",onPress:this._handleDocumentEditorTap,title:b(ye.Z.documentEditor),dropdownGroup:"editor",disabled:w},"document-crop":{className:"PSPDFKit-Toolbar-Button-Document-Crop",onPress:this.handleCropTap,title:b(ye.Z.documentCrop),dropdownGroup:"editor",selected:n===he.A.DOCUMENT_CROP,disabled:w},"document-comparison":{className:"PSPDFKit-Toolbar-Button-Document-Comparison",onPress:this.handleDocumentComparisonTap,title:b(ye.Z.documentComparison),dropdownGroup:"editor",forceHide:!o,selected:i,disabled:w},search:{className:"PSPDFKit-Toolbar-Button-Search",selected:n===he.A.SEARCH,onPress:this._handleSearchTap,title:b(ye.Z.searchDocument),disabled:w},text:{className:"PSPDFKit-Toolbar-Button-Text-Annotation",selected:n===he.A.TEXT&&"text"===this.state.lastSelectedToolbarItemType,onPress:this._handleTextTap,onKeyPress:this._handleTextKeyPress,title:b(ye.Z.textAnnotation),forceHide:r(te.gd),dropdownGroup:"text",responsiveGroup:"annotate",preset:"text",disabled:w},callout:{className:"PSPDFKit-Toolbar-Button-Callout-Annotation",selected:n===he.A.CALLOUT&&"callout"===this.state.lastSelectedToolbarItemType,onPress:this.handleCalloutTap,title:b(ye.Z.calloutAnnotation),forceHide:r(te.gd),dropdownGroup:"text",responsiveGroup:"annotate",preset:"callout",disabled:w},"zoom-mode":{mediaQueries:[ue.Ni?`(min-width: ${pe.Options.BREAKPOINT_MD_TOOLBAR}px)`:"all"],...u===me.c.FIT_TO_VIEWPORT?{className:"PSPDFKit-Toolbar-Button-Fit-To-Width",onPress:this._handleFitToWidthTap,title:b(De.fitWidth),type:"fit-width",disabled:w}:{className:"PSPDFKit-Toolbar-Button-Fit-To-Page",onPress:this._handleFitToBothTap,title:b(De.fitPage),type:"fit-page",disabled:w}},"zoom-out":{className:"PSPDFKit-Toolbar-Button-Zoom-Out",disabled:p,onPress:this._handleZoomOutTap,title:b(De.zoomOut),mediaQueries:[ue.Ni?`(min-width: ${pe.Options.BREAKPOINT_MD_TOOLBAR}px)`:"all"]},"zoom-in":{className:"PSPDFKit-Toolbar-Button-Zoom-In",disabled:d,onPress:this._handleZoomInTap,title:b(De.zoomIn),mediaQueries:[ue.Ni?`(min-width: ${pe.Options.BREAKPOINT_MD_TOOLBAR}px)`:"all"]},undo:{className:"PSPDFKit-Toolbar-Button-Undo",disabled:!m||w,onPress:this._handleUndoTap,title:b(De.undo),forceHide:a,responsiveGroup:"annotate"},redo:{className:"PSPDFKit-Toolbar-Button-Redo",disabled:!g||w,onPress:this._handleRedoTap,title:b(De.redo),forceHide:a,responsiveGroup:"annotate"},"marquee-zoom":{className:"PSPDFKit-Toolbar-Button-Marquee-Zoom",selected:n===he.A.MARQUEE_ZOOM,onPress:this._handleMarqueeZoomTap,title:b(De.marqueeZoom),disabled:w},spacer:{},pager:{disabled:w},"layout-config":{mediaQueries:[`(min-width: ${pe.Options.BREAKPOINT_SM_TOOLBAR+1}px)`],disabled:w},"multi-annotations-selection":{className:"PSPDFKit-Toolbar-Button-Multiple-Annotations-Selection",selected:n===he.A.MULTI_ANNOTATIONS_SELECTION,onPress:this._handleMultiAnnotationsSelectionTap,title:b(ye.Z.multiAnnotationsSelection),disabled:!v||w},annotate:{className:"PSPDFKit-Toolbar-Button-Annotate",onPress:this._handleAnnotateResponsiveGroupTap,title:b(ye.Z.annotations),forceHide:r(te.q6),mediaQueries:[`(max-width: ${pe.Options.BREAKPOINT_MD_TOOLBAR}px)`],disabled:w},measure:{className:"PSPDFKit-Toolbar-Button-Measurement-Annotation",selected:n===he.A.MEASUREMENT||n===he.A.DISTANCE||n===he.A.PERIMETER||n===he.A.RECTANGLE_AREA||n===he.A.POLYGON_AREA||n===he.A.ELLIPSE_AREA,onPress:this._handleMeasurementTap,title:b(ye.Z.measurement),forceHide:r(te.q6),responsiveGroup:"annotate",preset:"measurement",disabled:w},"responsive-group":{onPress:(e,t)=>this._handleResponsiveGroupTap(t),disabled:w},"sidebar-thumbnails":{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Thumbnails",title:b(De.thumbnails),onPress:this._handleThumbnailsSidebarTap,selected:h===fe.f.THUMBNAILS,dropdownGroup:"sidebar",disabled:w},"sidebar-document-outline":{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Document-Outline",title:b(De.outline),onPress:this._handleDocumentOutlineSidebarTap,selected:h===fe.f.DOCUMENT_OUTLINE,dropdownGroup:"sidebar",disabled:w},"sidebar-annotations":{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Annotations",title:b(ye.Z.annotations),onPress:this._handleAnnotationsSidebarTap,selected:h===fe.f.ANNOTATIONS,dropdownGroup:"sidebar",disabled:w},"sidebar-bookmarks":{className:"PSPDFKit-Toolbar-Button-Bookmarks PSPDFKit-Toolbar-Button-Sidebar-Bookmarks",title:b(ye.Z.bookmarks),onPress:this._handleBookmarksSidebarTap,selected:h===fe.f.BOOKMARKS,dropdownGroup:"sidebar",disabled:w},"sidebar-signatures":{className:"PSPDFKit-Toolbar-Button-Signatures PSPDFKit-Toolbar-Button-Sidebar-Signatures",title:b(ye.Z.signatures),onPress:this._handleSignaturesSidebarTap,selected:h===fe.f.SIGNATURES,dropdownGroup:"sidebar",disabled:w},"sidebar-layers":{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Layers",title:b(ye.Z.layers),onPress:this._handleOCGsSidebarTap,selected:h===fe.f.LAYERS,forceHide:this.props.shouldHideOCGsSidebar,dropdownGroup:"sidebar",disabled:w},"export-pdf":{className:"PSPDFKit-Toolbar-Button-Export-PDF",title:b(ye.Z.export),onPress:this._handleExportPDFTap,disabled:!c||w,selected:!1},"content-editor":{className:"PSPDFKit-Toolbar-Button-Content-Editor",onPress:this._handleContentEditorTap,title:b(ye.Z.contentEditor),selected:n===he.A.CONTENT_EDITOR},"document-assistant":{className:"PSPDFKit-Toolbar-Button-Document-Assistant",onPress:this._handleDocumentAssistantTap,title:b(ye.Z.documentAI),selected:y}}}))),(0,r.Z)(this,"_prepareToolbarItems",(0,l.Z)(((e,t,n,r,o,i,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,_,S,C)=>{const E=this._getBuiltInDefaults(e,t,n,o,i,a,r,s,l,c,u,d,p,h,b,w,x,_,C),k=a?f:(0,se.q1)(f,E,S?g:m),z=(0,se.DQ)(k,E),P=a?function(e){return e.filter((e=>ke.includes(e.get("type"))))}(z):z,D=(0,se.Ut)((0,se.hJ)(P)),A=(0,se.Ut)(P,!0,v);return{items:D,groupedItems:this.getDropdownGroupGroupedItems(D),groupedResponsiveItems:this.getDropdownGroupGroupedItems(A)}}))),(0,r.Z)(this,"_onMediaQueryUpdate",(()=>{this.props.frameWindow?.matchMedia("print").matches||this.setState({mediaQueryDidUpdate:{}})})),(0,r.Z)(this,"_updateMediaQueryListener",(()=>{const{intl:e,debugMode:t,interactionMode:n,isAnnotationTypeReadOnly:r,isDocumentComparisonAvailable:o,currentDocumentComparisonMode:i,isDocumentReadOnly:a,signatureFeatureAvailability:s,printingEnabled:l,exportEnabled:c,zoomMode:u,maxZoomReached:d,minZoomReached:p,sidebarMode:h,items:f,canUndo:m,canRedo:g,isMultiSelectionEnabled:v,showDocumentAssistant:y}=this.props,b=this._getBuiltInDefaults(e,t,n,r,o,!!i,a,s,l,c,u,d,p,h,this.state.lastSelectedToolbarItemType,m,g,v,y),w=(0,se.se)(f,b),x=this.props.shadowRoot?this.props.resizeWatchFrameWindow:this.props.frameWindow;x&&(w.forEach((e=>{if(this._mediaListeners.hasOwnProperty(e))return;const t=x?.matchMedia(e);t&&(t.addListener(this._onMediaQueryUpdate),this._mediaListeners[e]=t)})),Object.keys(this._mediaListeners).filter((e=>!w.includes(e))).forEach((e=>{this._mediaListeners[e].removeListener(this._onMediaQueryUpdate),delete this._mediaListeners[e]})))})),(0,r.Z)(this,"_handleKeyPress",(e=>{e.keyCode===d.zz&&this.state.activeResponsiveGroup&&this._handleResponsiveGroupClose()})),(0,r.Z)(this,"_handleOnPress",(function(t,n,r,o,i){let a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6?arguments[6]:void 0;(0,se.Li)(o)&&e.setState({lastSelectedToolbarItemType:o}),(0,p.dC)((()=>{a&&s?s(n,r,i,a):t(n,r,i,a),e.props.dispatch((0,x.qB)(a))}))})),(0,r.Z)(this,"DropdownItemComponent",o.forwardRef(((e,t)=>{if(!e.item)return null;const n=e.item.item,r=e.item.index,{isSelectedItem:o,state:i,itemComponentProps:a}=e;return Ee(this.props,{...n,className:s()(n.className,{[D().dropdownButtonSelected]:i?.includes("selected"),[D().dropdownButtonDisabled]:i?.includes("disabled"),[D().dropdownButtonFocused]:i?.includes("focused")}),onPress:o?n.onPress:void 0},r,this._handleOnPress,!o,t,a)}))),(0,r.Z)(this,"_renderGroupedItems",(e=>{let{groupedItems:t,classNamePartial:n}=e;return t.map(((e,t)=>Array.isArray(e)?e.length<2?Ee(this.props,e[0].item,e[0].index,this._handleOnPress,!1,0===t?this.itemToFocusRef:void 0):o.createElement(ee.Z,{frameWindow:this.props.frameWindow,items:e,disabled:e.every((e=>e.item.disabled)),ItemComponent:this.DropdownItemComponent,role:"menu",onSelect:(t,n)=>{const{onPress:r,id:o,type:i,preset:a,disabled:s}=n.item;if(!s&&(e.forEach((e=>{delete e.item.selected})),r)){const e="keydown"===t.type;this._handleOnPress(r,t,o,i,a,e)}},isActive:e.some((e=>e.item.selected)),key:`toolbar-items-group-${t}-${n}`,caretDirection:this.props.toolbarPlacement===ve.p.TOP?"down":"up",ref:0===t?this.itemToFocusRef:void 0}):Ee(this.props,e.item,e.index,this._handleOnPress,!1,0===t||e.item.type===this.state.prevActiveGroup?this.itemToFocusRef:void 0)))}))}static getDerivedStateFromProps(e,t){let n=null;if(e.interactionMode&&e.interactionMode in se.FO){const t=se.FO[e.interactionMode];Array.isArray(t)?n=e.currentItemPreset&&t.includes(e.currentItemPreset)?e.currentItemPreset:t[0]:"string"==typeof t&&(n=t)}return n!==t.lastSelectedToolbarItemType?{lastSelectedToolbarItemType:n,currentPageIndex:e.currentPageIndex}:{currentPageIndex:e.currentPageIndex}}getDropdownGroupGroupedItems(e){let t=(0,i.aV)();const n={};return e.forEach(((e,r)=>{const o=(0,i.D5)({index:r,item:e}),a=e.get("dropdownGroup");a?void 0!==n[a]?t=t.update(n[a],(e=>e instanceof i.aV?e.push(o):e)):(n[a]=t.size,t=t.push((0,i.aV)([o]))):t=t.push(o)})),t.toJS()}componentDidUpdate(e,t){this._updateMediaQueryListener();const n=t&&!t.activeResponsiveGroup&&this.state.activeResponsiveGroup,r=t&&t.activeResponsiveGroup&&!this.state.activeResponsiveGroup;(n||r)&&this.itemToFocusRef.current&&this.itemToFocusRef.current.focus()}componentDidMount(){this._updateMediaQueryListener()}componentWillUnmount(){Object.keys(this._mediaListeners).forEach((e=>{this._mediaListeners[e].removeListener(this._onMediaQueryUpdate),delete this._mediaListeners[e]}))}shouldComponentUpdate(e,t){const n={...e,currentPageIndex:this.props.currentPageIndex},r={...t,currentPageIndex:this.state.currentPageIndex};return h.O.bind(this)(n,r)}render(){const{props:e}=this,{intl:t,debugMode:n,interactionMode:r,isDocumentReadOnly:i,isAnnotationTypeReadOnly:a,isDocumentComparisonAvailable:s,currentDocumentComparisonMode:l,signatureFeatureAvailability:c,printingEnabled:d,exportEnabled:p,zoomMode:h,maxZoomReached:f,minZoomReached:m,sidebarMode:g,items:v,frameWindow:y,resizeWatchFrameWindow:b,toolbarPlacement:w,canUndo:x,canRedo:_,isMultiSelectionEnabled:S,shadowRoot:C,showDocumentAssistant:E}=e,{formatMessage:k}=t,{activeResponsiveGroup:z,mediaQueryDidUpdate:P,lastSelectedToolbarItemType:A}=this.state,{groupedItems:T,groupedResponsiveItems:I}=this._prepareToolbarItems(t,n,r,i,a,s,!!l,c,d,p,h,f,m,g,v,y,b,z,P,A,x,_,S,C,E),M=z&&I.length,R=M?this._renderGroupedItems({groupedItems:I,classNamePartial:"groupedResponsiveItems"}):this._renderGroupedItems({groupedItems:T,classNamePartial:"groupedItems"}),F=M&&T.filter((e=>!Array.isArray(e))).find((e=>e.item.id===z)),N=F&&F.item?F.item.title:void 0,O=v.some((e=>"image"===e.get("type")));return o.createElement("div",{className:`PSPDFKit-Toolbar ${D().root}`,onKeyDown:this._handleKeyPress},M?null:R,o.createElement(J.Z,{onClose:this._handleResponsiveGroupClose,isPrimary:!0,position:w===ve.p.TOP?"top":"bottom",accessibilityLabel:N},M?R:null),O&&o.createElement(u.TX,{tag:"div"},o.createElement("input",{ref:this.imagePickerRef,"aria-label":k(De.selectImage),"aria-hidden":!0,type:"file",accept:"image/png, image/jpeg, application/pdf",onChange:this._handleImageSelect,tabIndex:-1})))}}function Ee(e,t,n,r,i,a,l){switch(t.type){case"spacer":return o.createElement("div",{style:{flex:1},key:`spacer-${n}`});case"pager":return o.createElement(X,{dispatch:e.dispatch,pages:e.pages,totalPages:e.totalPages,key:e.currentPageIndex.toString(),readOnly:e.scrollMode===w.G.DISABLED});case"layout-config":return o.createElement(L,{dispatch:e.dispatch,key:"layout-config",className:t.className,icon:t.icon,layoutMode:e.layoutMode,scrollMode:e.scrollMode,caretDirection:e.toolbarPlacement===ve.p.TOP?"down":"up",frameWindow:e.frameWindow,disabled:t.disabled??!1});default:{const{type:e,id:c,className:u,disabled:d,selected:p,icon:h,title:f,onPress:m,preset:g,onKeyPress:v}=t;return"custom"===e&&t.node?o.createElement(Q.Z,{node:t.node,className:u,onPress:m?t=>r(m,t,c,e,g):void 0,title:f,disabled:d,selected:p,ref:a,itemComponentProps:l,key:`custom-node-${n}`}):o.createElement(z.Z,{type:e,className:s()(u,i?D().dropdownButton:D().toolbarButton),disabled:d,selected:p,icon:h,title:f,onPress:m?(t,n)=>r(m,t,c,e,g,n,v):void 0,key:`${e}-${n}`,children:i?f:void 0,role:i?"menuitem":void 0,ref:a,itemComponentProps:l,doNotAutoFocusOnFirstItem:!0})}}}const ke=["pan","zoom-in","zoom-out","fit-page","fit-width","spacer","export-pdf","document-comparison"];function ze(e,t){return 1===t.filter((t=>t.get("type")?.startsWith(e))).size}const Pe=(0,c.XN)(Ce),De=(0,c.vU)({thumbnails:{id:"thumbnails",defaultMessage:"Thumbnails",description:"Show or hide the thumbnails sidebar"},outline:{id:"outline",defaultMessage:"Outline",description:"Show or hide the document outline sidebar"},panMode:{id:"panMode",defaultMessage:"Pan Mode",description:"Activate and deactivate the pan mode (the hand cursor to move the page)"},zoomIn:{id:"zoomIn",defaultMessage:"Zoom In",description:"Zoom in the document"},zoomOut:{id:"zoomOut",defaultMessage:"Zoom Out",description:"Zoom out the document"},undo:{id:"undo",defaultMessage:"Undo",description:"Undo a previous annotation operation"},redo:{id:"redo",defaultMessage:"Redo",description:"Redo a previous annotation operation"},marqueeZoom:{id:"marqueeZoom",defaultMessage:"Marquee Zoom",description:"Enables Marquee Zoom mode which allows to zoom to a rectangle"},fitPage:{id:"fitPage",defaultMessage:"Fit Page",description:"Fit the page in the viewer based on the bigger dimension"},fitWidth:{id:"fitWidth",defaultMessage:"Fit Width",description:"Fit the page in the document based on its width"},print:{id:"print",defaultMessage:"Print",description:"print"},selectImage:{id:"selectImage",defaultMessage:"Select Image",description:"Label for the select image field"},unsupportedImageFormat:{id:"unsupportedImageFormat",defaultMessage:"Unsupported type for image annotation: {arg0}. Please use a JPEG, PNG or PDF.",description:"Unsupported image type error."},newAnnotationCreated:{id:"newAnnotationCreated",defaultMessage:"New {arg0} annotation created.",description:"A new annotation was created."},selectAFileForImage:{id:"selectAFileForImage",defaultMessage:"Select a file for the new image annotation.",description:"Select a file from the file dialog for the new image annotation."}})},22690:(e,t,n)=>{"use strict";n.d(t,{Z:()=>z});var r=n(22122),o=n(67294),i=n(94184),a=n.n(i),s=n(24021),l=n(41756),c=n(67665),u=n(86849),d=n(20144),p=n(35369),h=n(67366),f=n(98260),m=n(98179),g=n(71623),v=n(46302),y=n(10983),b=n(17722),w=n.n(b),x=n(84691),_=n.n(x),S=n(94683),C=n.n(S),E=n(18920);function k(e,t){var n;const{items:i,value:b,onSelect:x,children:S,appendAfter:k,menuPositionOffsets:z}=e,{formatMessage:A}=(0,s.YB)(),T=(0,h.v9)((e=>e.shadowRoot)),I=(0,h.v9)((e=>e.containerRect)),M=o.useRef(null),R=o.useCallback((e=>{let{selectedItem:t}=e;x&&x(M.current||(0,E._t)("click"),t),M.current=null}),[x]),F=o.useRef(),N=o.useMemo((()=>i.find((e=>e.value===b?.value))),[i,b])??b,O=e.ItemComponent,j={root:a()("PSPDFKit-Input-Dropdown",e.isActive&&!e.disabled&&"PSPDFKit-Input-Dropdown-active","PSPDFKit-Toolbar-Dropdown",e.className,w().withDropdown,!e.isActive&&w().withDropdownIdle,e.disabled&&w().withDropdownDisabled,N&&"string"==typeof N.icon?N.icon:void 0),button:a()("PSPDFKit-Input-Dropdown-Button",w().dropdown,e.isActive&&!e.disabled&&w().isActive,{[w().discreteDropdown]:e.discreteDropdown,[w().isDisabled]:e.disabled}),menu:a()("PSPDFKit-Input-Dropdown-Items",_().root,e.menuClassName)},[L,B]=o.useState(!1),K=T?(0,f.ke)(T,window):e.frameWindow,{getToggleButtonProps:V,getMenuProps:H,getItemProps:$,getLabelProps:U,isOpen:Z,selectedItem:q,highlightedIndex:G,setHighlightedIndex:W}=(0,l.L7)({...e.frameWindow?{...K?{environment:K}:null}:null,items:i,itemToString:P,selectedItem:N,onHighlightedIndexChange:e=>{switch(e.type){case l.L7.stateChangeTypes.MenuKeyDownArrowDown:case l.L7.stateChangeTypes.MenuKeyDownArrowUp:case l.L7.stateChangeTypes.MenuKeyDownEscape:case l.L7.stateChangeTypes.MenuKeyDownHome:case l.L7.stateChangeTypes.MenuKeyDownEnd:case l.L7.stateChangeTypes.MenuKeyDownEnter:case l.L7.stateChangeTypes.MenuKeyDownSpaceButton:case l.L7.stateChangeTypes.MenuKeyDownCharacter:case l.L7.stateChangeTypes.FunctionSetHighlightedIndex:!L&&B(!0);break;default:L&&B(!1)}},onSelectedItemChange:t=>{"menu"!==e.role&&R(t)},circularNavigation:!e.hasOwnProperty("circularNavigation")||e.circularNavigation,getA11yStatusMessage(){},getA11ySelectionMessage(){}}),Y=V({onKeyDown:e=>{let{nativeEvent:t,key:n}=e;"Enter"===n&&(M.current=t)},onClick:e=>{e.target.focus&&e.target.focus()},"aria-haspopup":"menu"===e.role?"true":"listbox"}),X=H({onKeyDown:t=>{if(t.keyCode===u.zz&&Z&&!e.propagateEscPress)t.stopPropagation();else if((t.keyCode===u.E$||t.keyCode===u.tW)&&G>-1&&"menu"===e.role&&Z&&!i[G].disabled)M.current=t.nativeEvent,R({selectedItem:i[G]});else if(t.keyCode===u.P9&&te>1)W(0===G?i.length:G-1);else if(t.keyCode===u.gs&&te>1)W(G===i.length-1?0:G+1);else if(t.keyCode===u.OC&&F.current){const e=F.current.querySelector(`#${Y.id}`);e&&e.focus()}}},{suppressRefError:!0}),Q=U(),J=e.ButtonComponent,ee="menu"===e.role?{role:void 0,"aria-labelledby":void 0,"aria-haspopup":void 0,"aria-expanded":void 0}:{},te=Math.min(i.length,e.maxCols||1),ne={display:"flex",flexDirection:te>1?"row":"column",flexWrap:"wrap",width:e.itemWidth?te*e.itemWidth:"auto",boxSizing:"content-box"},re=null!=e.icon?e.icon:{};return o.createElement("div",(0,r.Z)({className:a()(Z&&"PSPDFKit-Input-Dropdown-open",j.root)},ee,{"data-test-id":e["data-test-id"]}),o.createElement(d.TX,{tag:"div"},o.createElement("span",Q,e.accessibilityLabel)),o.createElement("div",{ref:F,className:a()(w().wrapper,q?.className||"",{[w().disabledWrapper]:e.disabled,[w().isDisabled]:e.disabled})},J?J({btnComponentProps:Y,selectedItem:q,ref:t,caretDirection:e.caretDirection,disabled:e.disabled??!1,isOpen:Z}):o.createElement(o.Fragment,null,O({item:q,isSelectedItem:!0,state:null,ref:t}),o.createElement("button",(0,r.Z)({},Y,e.disabled?{onClick:null}:null,{className:j.button,style:{minWidth:0},type:"button"}),o.createElement(g.Z,(0,r.Z)({type:`caret-${e.caretDirection}`,style:{width:12,height:"100%"},className:a()("PSPDFKit-Toolbar-Button-Icon",w().dropdownIcon,{[w().disabledDropdownIcon]:e.disabled})},re)),o.createElement(d.TX,{tag:"div"},o.createElement("span",null,q?.label))))),o.createElement(c.m,null,o.createElement(v.Z,{referenceElement:F.current,measure:Z,offsets:z},(t=>{let{ref:s,style:l}=t;const c="down"===e.caretDirection;let u;u=(e.frameWindow?e.frameWindow.innerWidth:T?I.width:F.current.ownerDocument.defaultView.innerWidth)>=y.Fg?F.current.offsetWidth:"auto";const d=l.top,h={maxHeight:c&&"auto"!==d?I.height-F.current.offsetHeight-d+"px":void 0,overflowY:"auto"};return o.createElement("div",{ref:s,style:{minWidth:u,...l}},o.createElement("div",(0,r.Z)({},X,{className:`${j.menu} ${a()({[_().hiddenMenu]:!Z})}`,style:{...h,...ne},onMouseLeave:()=>W(null),role:"menu"===e.role?"menu":"listbox","aria-labelledby":Y["aria-label"]?void 0:X["aria-labelledby"],"aria-label":Y["aria-label"],"aria-hidden":!Z}),Z&&i.map(((t,r)=>{const s=!!q&&(q.value||t.label)===(t.value||t.label),l=function(e,t,n){return t.indexOf(e)===n}(t,i,G);let c=(0,p.l4)();t.disabled&&(c=c.add("disabled")),l&&(c=c.add("focused")),s&&(c=c.add("selected")),t.disabled||l||s||(c=c.add("default"));const u=a()("PSPDFKit-Input-Dropdown-Item",t.className||"",{"PSPDFKit-Input-Dropdown-Item-disabled":t.disabled,"PSPDFKit-Input-Dropdown-Item-focused":!t.disabled&&l,"PSPDFKit-Input-Dropdown-Item-selected":!t.disabled&&s,"PSPDFKit-Input-Dropdown-Item-default":!t.disabled&&!s&&!l,[C().focusVisible]:l&&L}),d=$({item:t,index:r,disabled:t.disabled??!1,onClick:n=>{let{nativeEvent:r}=n;t.disabled||(M.current=r,"menu"===e.role&&Z&&R({selectedItem:t}))},..."menu"===e.role?{"aria-selected":void 0,role:void 0}:m.G6?{}:{"aria-selected":void 0,"aria-label":s?A(D.selectedItem,{arg0:t.label}):void 0}});return o.createElement(o.Fragment,{key:`${P(t)}${r}`},o.createElement("div",{className:u},O({item:t,isSelectedItem:!1,state:c,itemComponentProps:d})),null!=k&&k?.index===r&&(n||(n=o.createElement(k.node,null))))})),S))}))))}const z=(0,o.memo)(o.forwardRef(k));function P(e){return e?.label?e?.label:(null!=e?.value&&"object"==typeof e.value&&"toString"in e.value&&"function"==typeof e.value.toString&&e.value.toString(),null!=e?.value&&"string"==typeof e.value?e.value:"N/A")}const D=(0,s.vU)({accessibilityLabelDropdownGroupToggle:{id:"accessibilityLabelDropdownGroupToggle",defaultMessage:"{arg0} tools, toggle menu",description:"Accessible label to announce the button to open and close a toolbar menu which contains tools like shapes or ink annotations buttons."},selectedItem:{id:"selectedItem",defaultMessage:"{arg0}, selected",description:"Label for selected item in a dropdown"}})},3324:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(22122),o=n(24021),i=n(67294),a=n(94184),s=n.n(a),l=n(17722),c=n.n(l),u=n(22690),d=n(82716);const p=i.memo(i.forwardRef((function(e,t){const{items:n,noInitialSelection:a,ItemComponent:l,ButtonComponent:p}=e,[g,v]=i.useState(null),{formatMessage:y}=(0,o.YB)(),b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Toolbar";return e.charAt(0).toUpperCase()+e.substr(1)}(n[0].item.dropdownGroup),w=i.useMemo((()=>n.find((e=>e.item.selected))||g||(a?null:n[0])),[n,a,g]),x=s()("PSPDFKit-Toolbar-DropdownGroup",b&&"PSPDFKit-Toolbar-DropdownGroup-"+b,e.className,w?"string"==typeof w.item.icon?w.item.icon:"string"==typeof w.item.type&&"custom"!==w.item.type?c().withDropdownIcon:void 0:void 0),_=e.items.map(h),S=w?h(w):null,C=i.useCallback((e=>{const{item:o,...a}=e,s=n.find((e=>null!=o?f(o,e):null));return i.createElement(l,(0,r.Z)({item:s},a,{ref:t}))}),[n,l,t]),E=i.useCallback((e=>{const{selectedItem:t,...o}=e,a=n.find((e=>null!=t?f(t,e):null));return(0,d.k)(a,"A dropdown item must be present for the button"),(0,d.k)(p,"A button must be available to render dropdown"),i.createElement(p,(0,r.Z)({selectedItem:a},o))}),[p,n]);return i.createElement(u.Z,{onSelect:(t,n)=>{const r=e.items.find((e=>f(n,e)));if(null!=r&&e.onSelect?.(t,r),g!==e.items.find((e=>f(n,e)))){const t=e.items.find((e=>f(n,e)));t&&v(t)}},items:_,value:S,ItemComponent:C,ButtonComponent:p?E:void 0,isActive:e.isActive,className:x,menuClassName:e.menuClassName,icon:e.icon,discreteDropdown:e.discreteDropdown,caretDirection:e.caretDirection,frameWindow:e.frameWindow,role:e.role,ref:t,accessibilityLabel:e.accessibilityLabel||y(m.accessibilityLabelDropdownGroupToggle,{arg0:b}),noInitialSelection:e.noInitialSelection,maxCols:e.maxCols,itemWidth:e.itemWidth,circularNavigation:e.circularNavigation,propagateEscPress:e.propagateEscPress,appendAfter:e.appendAfter,disabled:e.disabled},e.children)})));function h(e){return{value:e.item.id??e.item.title??e.item.type??"",icon:e.item.icon,label:e.item.title??"",disabled:e.item.disabled}}function f(e,t){return t.item.id===e.value||t.item.title===e.value||t.item.type===e.value}const m=(0,o.vU)({accessibilityLabelDropdownGroupToggle:{id:"accessibilityLabelDropdownGroupToggle",defaultMessage:"{arg0} tools, toggle menu",description:"Accessible label to announce the button to open and close a toolbar menu which contains tools like shapes or ink annotations buttons."},selectedItem:{id:"selectedItem",defaultMessage:"{arg0}, selected",description:"Label for selected item in a dropdown"}})},80292:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(22122),o=n(67294),i=n(94184),a=n.n(i),s=n(60101);const l=o.forwardRef((function(e,t){const{selected:n,disabled:i}=e,l=a()("string"==typeof e.className&&e.className,"PSPDFKit-Toolbar-Node",n&&"PSPDFKit-Toolbar-Node-active",i&&"PSPDFKit-Toolbar-Node-disabled");return o.createElement(s.Z,(0,r.Z)({},e,{className:l,ref:t,itemComponentProps:e.itemComponentProps}))}))},76465:(e,t,n)=>{"use strict";n.d(t,{B:()=>h,Z:()=>f});var r=n(67294),o=n(24021),i=n(26353),a=n(84013),s=n(94184),l=n.n(s),c=n(13524),u=n.n(c),d=n(17766),p=n(54130);function h(e){let{children:t,onClose:n,isPrimary:o,position:s,intl:c,accessibilityLabel:h,onEntered:f,className:m}=e;const{formatMessage:g}=c,v=r.Children.count(t)>0;return r.createElement(a.Z,null,v&&r.createElement(i.Z,{timeout:{enter:window["PSPDFKit-disable-animations"]?0:150,exit:window["PSPDFKit-disable-animations"]?0:120},classNames:{enter:u().slideRightEnter,enterActive:u().slideRightEnterActive,enterDone:u().slideRightEnterDone,exit:u().slideRightExit,exitActive:u().slideRightExitActive},onEntered:f},r.createElement("div",{className:l()({[u().responsiveGroup]:!0,[u().primary]:o,[u().secondary]:!o,[u().stickToBottom]:"bottom"===s,"PSPDFKit-Toolbar-Responsive-Group":!0},m),role:"dialog","aria-label":h},r.createElement(p.Z,{type:"custom",title:g(d.Z.close),className:u().button,onPress:n},r.createElement("div",{className:u().animatedArrow})),r.createElement("div",{style:{flex:1}}),r.createElement("div",{className:u().items},t))))}const f=(0,o.XN)(h)},80422:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(22122),o=n(67294),i=n(94184),a=n.n(i),s=n(71623),l=n(43165),c=n.n(l);const u=o.memo(o.forwardRef((function(e,t){const{type:n,selected:i,disabled:l,onPress:u,icon:d,role:p,title:h,doNotAutoFocusOnFirstItem:f=!1}=e,m=o.useRef(!1),g=o.useCallback((function(e){e.preventDefault(),!l&&u&&u(e.nativeEvent,m.current)}),[u,l]),v=o.useCallback((function(){m.current=!0}),[]),y=o.useCallback((function(){m.current=!1}),[]),b=(0,s.Z)({icon:d,type:n,className:a()(void 0!==e.children&&c().withLabel,"PSPDFKit-Tool-Button-Icon",e.iconClassName)}),w=e.children||(b?null:h),x=a()(c().root,i&&c().isActive,l&&c().isDisabled,"string"==typeof e.className&&e.className,"PSPDFKit-Tool-Button",i&&"PSPDFKit-Tool-Button-active",l&&"PSPDFKit-Tool-Button-disabled");o.useEffect((()=>{!e.presentational&&t&&t.current&&!f&&t.current.focus()}),[e.presentational,t,f]);const _=o.createElement("button",(0,r.Z)({className:x,title:h,"aria-label":h,disabled:l,onClick:u?g:void 0,onKeyDown:u?v:void 0,onPointerUp:u?y:void 0,"aria-pressed":"annotate"!==n&&"responsive-group"!==n&&void 0!==i?i:void 0},e.itemComponentProps,{role:p||(e.itemComponentProps?e.itemComponentProps.role:void 0),type:"button",ref:t}),b,null!=w&&o.createElement("span",null,w));return e.presentational?o.createElement("div",null,o.createElement("div",{className:x,title:h,"aria-hidden":"true",role:"presentation"},b)):e.disabled?o.createElement("div",{className:a()({[c().disabledWrapper]:e.disabled})},_):_})))},60101:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(22122),o=n(67294),i=n(94184),a=n.n(i),s=n(13099),l=n.n(s);const c=o.memo(o.forwardRef((function(e,t){const{node:n,title:i,selected:s,disabled:c}=e,u=o.useRef();o.useImperativeHandle(t,(()=>({focus:()=>{n instanceof n.ownerDocument.defaultView.HTMLElement&&n.focus()}}))),o.useLayoutEffect((()=>{const e=u&&u.current;e&&(e.innerHTML="",e.appendChild(n))}),[n]);const d=a()("PSPDFKit-Tool-Node",{"PSPDFKit-Tool-Node-active":s,"PSPDFKit-Tool-Node-disabled":c},e.className,l().root,{[l().disabled]:c,[l().annotationToolbar]:"annotationToolbar"===e.variant}),p=e.onPress?t=>{let{nativeEvent:n}=t;e.onPress&&e.onPress(n)}:void 0;return o.createElement("div",(0,r.Z)({onClick:p,className:d,title:i,"aria-label":i,tabIndex:c?-1:void 0,"aria-disabled":!!c||void 0},e.itemComponentProps,{ref:u}))})))},87996:(e,t,n)=>{"use strict";n.d(t,{Options:()=>h,W:()=>d,n:()=>m});var r=n(79724),o=n(97586),i=n(60379),a=n(16602),s=n(18726),l=n(17766),c=n(42370),u=n(10983);const d=a.Z.filter((e=>e.color!==i.Z.DARK_BLUE)),p={MIN_TEXT_ANNOTATION_SIZE:5,MIN_INK_ANNOTATION_SIZE:16,MIN_SHAPE_ANNOTATION_SIZE:16,MIN_IMAGE_ANNOTATION_SIZE:5,MIN_STAMP_ANNOTATION_SIZE:15,MIN_WIDGET_ANNOTATION_SIZE:3,ENABLE_INK_SMOOTH_LINES:!0,INK_EPSILON_RANGE_OPTIMIZATION:10,SIGNATURE_SAVE_MODE:o.f.USING_UI,INITIAL_DESKTOP_SIDEBAR_WIDTH:300,IGNORE_DOCUMENT_PERMISSIONS:!1,SELECTION_OUTLINE_PADDING:function(e){return e.width>u.y$?10:13},RESIZE_ANCHOR_RADIUS:function(e){return e.width>u.y$?7:10},SELECTION_STROKE_WIDTH:2,TEXT_ANNOTATION_AUTOFIT_TEXT_ON_EXPORT:!0,TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT:!0,DISABLE_KEYBOARD_SHORTCUTS:!1,DEFAULT_INK_ERASER_CURSOR_WIDTH:12.5,COLOR_PRESETS:d,LINE_CAP_PRESETS:["none"].concat(c.a),LINE_WIDTH_PRESETS:null,HIGHLIGHT_COLOR_PRESETS:[i.Z.LIGHT_YELLOW,i.Z.LIGHT_BLUE,i.Z.LIGHT_GREEN,i.Z.LIGHT_RED].map((e=>({color:e,localization:l.Z[e.toCSSValue()]}))),TEXT_MARKUP_COLOR_PRESETS:a.Z.filter((e=>[i.Z.BLACK,i.Z.BLUE,i.Z.RED,i.Z.GREEN].includes(e.color))),NOTE_COLOR_PRESETS:s.W,PDF_JAVASCRIPT:!0,BREAKPOINT_MD_TOOLBAR:1070,BREAKPOINT_SM_TOOLBAR:768},h=Object.preventExtensions({...p}),f=(0,r.Z)("Options"),m=e=>{for(const t in e)f(void 0!==p[t],`Option \`${t}\` is not available in the \`Options\` object`),f(typeof p[t]==typeof e[t],`Option \`${t}\` is of incorrect type \`${typeof e[t]}\`, should be \`${typeof p[t]}\``)}},55012:(e,t,n)=>{"use strict";n.d(t,{$8O:()=>Sr,$Jy:()=>Dt,$VE:()=>ft,$hO:()=>Tt,A8G:()=>_e,AIf:()=>et,ArU:()=>Hn,B1n:()=>nt,BS3:()=>r,BWS:()=>se,Ce5:()=>g,D1d:()=>rr,D5x:()=>$n,D_w:()=>Gt,Dj2:()=>ue,Dl4:()=>q,Dqw:()=>dr,Dzg:()=>it,Ebp:()=>Ir,EpY:()=>zn,F6q:()=>Ft,FH6:()=>Pt,FHt:()=>M,FQb:()=>Ur,FdD:()=>yt,G5w:()=>de,G6t:()=>wr,G8_:()=>Jt,GHc:()=>l,GW4:()=>pe,GXR:()=>qe,GfR:()=>G,Gkm:()=>yr,Gox:()=>qn,HS7:()=>St,HXk:()=>_o,HYy:()=>Nr,Han:()=>Br,Hbz:()=>pt,Hrp:()=>s,IFt:()=>mn,ILc:()=>_t,Ifu:()=>Mt,IyB:()=>tr,J7J:()=>Ge,JQC:()=>J,JRS:()=>Zn,JS9:()=>Je,JwD:()=>Pe,JyO:()=>We,K26:()=>dt,KA1:()=>Wn,KYU:()=>$,Kc8:()=>on,Kpf:()=>Kn,KqR:()=>ot,Kw7:()=>rn,L2A:()=>ur,L8n:()=>ct,L9g:()=>Z,Lyo:()=>S,M3C:()=>at,M85:()=>xt,ME7:()=>y,MGL:()=>pr,MOe:()=>Ie,MYU:()=>Yn,MfE:()=>ae,MuN:()=>he,NAH:()=>ge,NB4:()=>wt,NDs:()=>Ye,NfO:()=>K,Nl1:()=>U,Oh4:()=>Yt,Q2U:()=>fn,QM1:()=>fo,QU3:()=>le,QYP:()=>L,QYq:()=>vo,Qm9:()=>hr,R1i:()=>ze,R7l:()=>mr,R8P:()=>Et,RCc:()=>ie,RPc:()=>gn,RTr:()=>f,RvB:()=>Le,RxB:()=>z,S$y:()=>Qe,S0t:()=>yn,SHi:()=>wo,SdX:()=>_r,T3g:()=>ar,TG1:()=>Jr,TPT:()=>Me,TUA:()=>Ze,TYu:()=>lr,Ty$:()=>sn,U7k:()=>Or,UFK:()=>N,UFs:()=>oe,UII:()=>u,UL9:()=>er,UP4:()=>Cr,UX$:()=>Qn,UiQ:()=>ke,Ui_:()=>Bt,VK7:()=>Vt,VNM:()=>Yr,VNu:()=>lo,VOt:()=>Tr,Vje:()=>io,Vpf:()=>gr,Vu4:()=>Xe,W0l:()=>nn,WaW:()=>An,Whn:()=>Xt,WmI:()=>Kr,WsN:()=>to,WtY:()=>v,Wyx:()=>Zt,XTO:()=>ao,Xlm:()=>V,Y4:()=>Fr,YHT:()=>d,YIz:()=>ut,YS$:()=>bn,ZDQ:()=>tt,ZGb:()=>A,ZLr:()=>p,ZbY:()=>hn,ZgW:()=>jr,Zt9:()=>so,_33:()=>Ln,_AY:()=>It,_Qf:()=>On,_TO:()=>En,_Yi:()=>Oe,_fK:()=>dn,_ko:()=>I,_n_:()=>we,_uU:()=>ne,a33:()=>Ae,aWu:()=>Se,aYj:()=>O,b0l:()=>be,b4I:()=>Gr,bM3:()=>uo,bOH:()=>Lr,bP3:()=>Q,bV3:()=>Cn,bVL:()=>Mn,bui:()=>Pn,bxr:()=>T,bzW:()=>qr,c3G:()=>je,cbv:()=>Ue,ciU:()=>Mr,ckI:()=>gt,cyk:()=>H,dCo:()=>b,dEe:()=>xn,dVW:()=>en,eFQ:()=>lt,eI4:()=>X,eJ4:()=>nr,ej0:()=>ho,esN:()=>jt,f3N:()=>Te,fAF:()=>wn,fBs:()=>zo,fDl:()=>qt,fLm:()=>Rr,fQw:()=>Pr,faS:()=>Fn,fnw:()=>w,fwq:()=>br,g30:()=>$e,g4f:()=>_,gF5:()=>kt,gIV:()=>At,gbd:()=>h,guy:()=>Eo,hC8:()=>cn,heZ:()=>m,hlI:()=>xe,hpj:()=>j,ht3:()=>R,hv0:()=>Y,hw0:()=>Gn,hxO:()=>vt,iJ2:()=>Lt,iMs:()=>_n,iQZ:()=>W,iR6:()=>Co,iZ1:()=>un,ieh:()=>Tn,iwn:()=>Rn,iyZ:()=>Re,jJ7:()=>Qt,joZ:()=>zr,jzI:()=>Ct,kD6:()=>kr,kQ7:()=>yo,kRo:()=>F,kVz:()=>In,kg:()=>bt,kt4:()=>sr,l$y:()=>Er,lD1:()=>ce,lRe:()=>kn,m3$:()=>Kt,mE7:()=>k,mGH:()=>tn,mLh:()=>x,m_C:()=>oo,mbD:()=>Xn,mfU:()=>Qr,mqf:()=>Ke,mxA:()=>ko,nFn:()=>Rt,nI6:()=>Vr,nmm:()=>o,oE1:()=>Ce,oWy:()=>Ee,oZW:()=>Hr,obk:()=>vn,odo:()=>$r,oj5:()=>c,ol:()=>mo,p1u:()=>Ot,pNz:()=>Sn,pnu:()=>rt,poO:()=>ln,qKG:()=>vr,qRJ:()=>an,qV6:()=>re,qZT:()=>Nt,qh0:()=>or,rWQ:()=>ye,rm:()=>ir,rpU:()=>Un,rq0:()=>xo,rxv:()=>a,sCM:()=>zt,sYK:()=>ht,skc:()=>ee,snK:()=>eo,snh:()=>te,syg:()=>P,t$K:()=>Zr,tC1:()=>Nn,tIQ:()=>po,tLW:()=>Ve,tPZ:()=>ve,tS$:()=>He,tYC:()=>me,teI:()=>fr,tie:()=>st,tzG:()=>no,u7V:()=>$t,u9b:()=>D,uFU:()=>pn,uOP:()=>Xr,u_c:()=>Wt,uo5:()=>Ar,vBn:()=>Wr,vSH:()=>Ne,vVk:()=>Dn,vgx:()=>cr,vkF:()=>xr,wG7:()=>Bn,wHH:()=>So,wJn:()=>bo,wPI:()=>Vn,wgG:()=>co,wog:()=>Jn,wtk:()=>E,x0v:()=>De,x64:()=>jn,xYE:()=>C,xhM:()=>Dr,xk1:()=>fe,yET:()=>Ht,yPS:()=>ro,yrz:()=>mt,yyM:()=>Fe,zGM:()=>Ut,zKF:()=>B,zZV:()=>i,z_j:()=>Be,zyH:()=>go});const r="CONNECTING",o="CONNECTED",i="CONNECTION_FAILED",a="SET_ANNOTATION_MANAGER",s="SET_BOOKMARK_MANAGER",l="SET_FORM_FIELD_VALUE_MANAGER",c="SET_FORM_FIELD_MANAGER",u="SET_COMMENT_MANAGER",d="SET_MENTIONABLE_USERS",p="SET_MAX_MENTION_SUGGESTIONS",h="SET_CHANGE_MANAGER",f="SET_HAS_FETCHED_INITIAL_RECORDS_FROM_INSTANT",m="SET_GROUP",g="SET_CLIENTS_UPDATE_CALLBACK",v="SET_TRANSFORM_CLIENT_TO_PAGE",y="FETCH_DOCUMENT_SUCCESS",b="FETCH_PAGES_SUCCESS",w="SET_BACKEND_PERMISSIONS",x="SCROLLED",_="JUMP_TO_RECT",S="JUMP_AND_ZOOM_TO_RECT",C="RESIZED",E="NEXT_PAGE",k="PREVIOUS_PAGE",z="SET_PAGE",P="SET_ZOOM_LEVEL",D="SET_ZOOM_STEP",A="SET_VIEWPORT_STATE",T="SET_SPREAD_SPACING",I="SET_PAGE_SPACING",M="SET_FIRST_PAGE_ALWAYS_SINGLE",R="SET_VIEWPORT_PADDING",F="ENABLE_PANNING",N="DISABLE_PANNING",O="ENABLE_PRINTING",j="DISABLE_PRINTING",L="ENABLE_EXPORT",B="DISABLE_EXPORT",K="ENABLE_READ_ONLY",V="DISABLE_READ_ONLY",H="SHOW_ANNOTATIONS",$="HIDE_ANNOTATIONS",U="SHOW_COMMENTS",Z="HIDE_COMMENTS",q="SHOW_ANNOTATION_NOTES",G="HIDE_ANNOTATION_NOTES",W="SET_FEATURES",Y="SET_SIDEBAR_MODE",X="SET_SIDEBAR_PLACEMENT",Q="SET_SIDEBAR_OPTIONS",J="SET_SIGNATURE_FEATURE_AVAILABILITY",ee="START_PRINTING",te="END_PRINTING",ne="ABORT_PRINTING",re="UPDATE_PRINT_LOADING_INDICATOR",oe="ZOOM_IN",ie="ZOOM_OUT",ae="ZOOM_TO_AUTO",se="ZOOM_TO_FIT_TO_VIEWPORT",le="ZOOM_TO_FIT_TO_WIDTH",ce="ROTATE",ue="ENABLE_DEBUG_MODE",de="SHOW_DEBUG_CONSOLE",pe="HIDE_DEBUG_CONSOLE",he="SHOW_TOOLBAR",fe="HIDE_TOOLBAR",me="ENABLE_ANNOTATION_TOOLBAR",ge="DISABLE_ANNOTATION_TOOLBAR",ve="SET_SCROLLBAR_OFFSET",ye="SET_LAYOUT_MODE",be="SET_SCROLL_MODE",we="SET_SCROLL_ELEMENT",xe="SET_ANNOTATION_CREATOR",_e="SET_ANNOTATION_TOOLBAR_HEIGHT",Se="UPDATE_TOOLBAR_ITEMS",Ce="UPDATE_CURRENT_PRESET",Ee="SET_CURRENT_ITEM_PRESET",ke="UPDATE_ANNOTATION_PRESETS",ze="ADD_ANNOTATION_PRESET_ID",Pe="SET_CURRENT_ITEM_PRESET_FROM_ANNOTATION",De="REMOVE_ANNOTATION_PRESET_ID",Ae="DESELECT",Te="TEXT_SELECTED",Ie="TEXT_DESELECTED",Me="SET_ANNOTATION_HOVER",Re="UNSET_ANNOTATION_HOVER",Fe="SET_ANNOTATION_NOTE_HOVER",Ne="SET_ACTIVE_ANNOTATION_NOTE",Oe="SET_SELECTED_ANNOTATIONS",je="UNSET_SELECTED_ANNOTATION_SHOULD_DRAG",Le="SET_SELECTED_TEXT_ON_EDIT",Be="FETCH_CONTENT_BLOCKS_SUCCESS",Ke="ENABLE_TEXT_HIGHLIGHTER_MODE",Ve="DISABLE_TEXT_HIGHLIGHTER_MODE",He="ENABLE_REDACT_TEXT_HIGHLIGHTER_MODE",$e="DISABLE_REDACT_TEXT_HIGHLIGHTER_MODE",Ue="ENABLE_REDACT_SHAPE_RECTANGLE_MODE",Ze="DISABLE_REDACT_SHAPE_RECTANGLE_MODE",qe="ENABLE_INK_MODE",Ge="DISABLE_INK_MODE",We="ENABLE_INK_ERASER_MODE",Ye="DISABLE_INK_ERASER_MODE",Xe="ENABLE_SIGNATURE_MODE",Qe="DISABLE_SIGNATURE_MODE",Je="ENABLE_SHAPE_MODE",et="DISABLE_SHAPE_MODE",tt="ENABLE_NOTE_MODE",nt="DISABLE_NOTE_MODE",rt="ENABLE_TEXT_MODE",ot="DISABLE_TEXT_MODE",it="ENABLE_STAMP_PICKER_MODE",at="ENABLE_STAMP_CUSTOM_MODE",st="DISABLE_STAMP_MODE",lt="ENABLE_INTERACTIONS",ct="DISABLE_INTERACTIONS",ut="SHOW_DOCUMENT_EDITOR",dt="HIDE_DOCUMENT_EDITOR",pt="ENABLE_MARQUEE_ZOOM",ht="DISABLE_MARQUEE_ZOOM",ft="SET_INTERACTION_MODE",mt="RESET_INTERACTION_MODE",gt="CREATE_COMMENTS",vt="CREATE_COMMENT_DRAFT",yt="UPDATE_COMMENTS",bt="DELETE_COMMENTS",wt="COMPUTE_COMMENT_MODE",xt="CREATE_ANNOTATIONS",_t="CREATE_INK_ANNOTATION_ON_NEW_PAGE",St="CREATE_SHAPE_ANNOTATION_ON_NEW_PAGE",Ct="CREATE_REDACTION_ANNOTATION_ON_NEW_PAGE",Et="UPDATE_ANNOTATIONS",kt="DELETE_ANNOTATIONS",zt="SET_ANNOTATIONS_TO_DELETE",Pt="SEARCH_FOR_TERM",Dt="FOCUS_NEXT_SEARCH_HIGHLIGHT",At="FOCUS_PREVIOUS_SEARCH_HIGHLIGHT",Tt="SHOW_SEARCH",It="HIDE_SEARCH",Mt="FOCUS_SEARCH",Rt="BLUR_SEARCH",Ft="SET_SEARCH_IS_LOADING",Nt="SET_SEARCH_RESULTS",Ot="SET_SEARCH_STATE",jt="SET_SEARCH_PROVIDER",Lt="SET_FORM_JSON",Bt="CREATE_FORM_FIELD_VALUES",Kt="SET_FORM_FIELD_VALUES",Vt="SET_FORMATTED_FORM_FIELD_VALUES",Ht="SET_EDITING_FORM_FIELD_VALUES",$t="DELETE_FORM_FIELD_VALUES",Ut="CREATE_FORM_FIELDS",Zt="UPDATE_FORM_FIELDS",qt="REPLACE_FORM_FIELD",Gt="DELETE_FORM_FIELDS",Wt="DELETE_FORM_FIELDS_BY_IDS",Yt="SET_DOCUMENT_OUTLINE",Xt="TOGGLE_DOCUMENT_OUTLINE_ELEMENT",Qt="SET_CUSTOM_OVERLAY_ITEM",Jt="REMOVE_CUSTOM_OVERLAY_ITEM",en="I18N_SET_LOCALE",tn="CREATE_SIGNATURE",nn="STORE_SIGNATURE",rn="SET_STORED_SIGNATURES",on="DELETE_STORED_SIGNATURE",an="UPDATE_STAMP_ANNOTATION_TEMPLATES",sn="SHOW_PASSWORD_PROMPT",ln="SET_HAS_PASSWORD",cn="UNLOCKED_VIA_MODAL",un="SET_ALLOWED_TILE_SCALES",dn="UPDATE_SELECTED_MARKUP_ANNOTATIONS",pn="SET_IS_EDITABLE_ANNOTATION",hn="SET_EDITABLE_ANNOTATION_TYPES",fn="SET_IS_EDITABLE_COMMENT",mn="SET_FORM_DESIGN_MODE",gn="SET_INK_ERASER_WIDTH",vn="RESET_DOCUMENT_STATE",yn="SET_DOCUMENT_HANDLE",bn="SET_DOCUMENT_HANDLE_OUTDATED",wn="UPDATE_CUSTOM_RENDERERS",xn="ENABLE_COMMENT_MARKER",_n="DISABLE_COMMENT_MARKER",Sn="START_DIGITAL_SIGNATURE",Cn="END_DIGITAL_SIGNATURE",En="SET_SHOW_SIGNATURE_VALIDATION_STATUS_MODE",kn="SET_DIGITAL_SIGNATURES",zn="START_REDACTION",Pn="END_REDACTION",Dn="SET_PREVIEW_REDACTION_MODE",An="SET_COLLAPSE_SELECTED_NOTE_CONTENT",Tn="INVALIDATE_AP_STREAMS",In="VALIDATE_AP_STREAMS",Mn="HISTORY_UPDATE_FROM_UNDO",Rn="HISTORY_UPDATE_FROM_REDO",Fn="SET_HISTORY_CHANGE_CONTEXT",Nn="HISTORY_IDS_MAP_ADD",On="CLEAR_HISTORY",jn="REMOVE_ANNOTATION_FROM_HISTORY",Ln="ENABLE_HISTORY",Bn="DISABLE_HISTORY",Kn="UPDATE_DOCUMENT_EDITOR_FOOTER_ITEMS",Vn="UPDATE_DOCUMENT_EDITOR_TOOLBAR_ITEMS",Hn="SET_EDITABLE_ANNOTATION_STATE",$n="SET_A11Y_STATUS_MESSAGE",Un="SET_LAST_TOOLBAR_ACTION_USED_KEYBOARD",Zn="ENABLE_DOCUMENT_CROP_MODE",qn="DISABLE_DOCUMENT_CROP_MODE",Gn="SET_ON_ANNOTATION_RESIZE_START",Wn="SET_DOCUMENT_COMPARISON_STATE",Yn="ENABLE_SCROLL_WHILE_DRAWING",Xn="DISABLE_SCROLL_WHILE_DRAWING",Qn="SET_REUSE_STATE",Jn="ENABLE_KEEP_SELECTED_TOOL",er="DISABLE_KEEP_SELECTED_TOOL",tr="SET_INSTANCE",nr="SET_CUSTOM_UI_STORE",rr="SET_SIDEBAR_WIDTH",or="SET_READ_ONLY_ANNOTATION_FOCUS",ir="UNSET_READ_ONLY_ANNOTATION_FOCUS",ar="SET_ANNOTATION_TOOLBAR_ITEMS_CALLBACK",sr="TOGGLE_CLIPBOARD_ACTIONS",lr="SET_ON_WIDGET_CREATION_START_CALLBACK",cr="SET_FORM_DESIGNER_LOCAL_WIDGET_ANNOTATION",ur="SET_INLINE_TOOLBAR_ITEMS_CALLBACK",dr="ADD_ANNOTATION_VARIANTS",pr="ENABLE_CONTENT_EDITOR",hr="DISABLE_CONTENT_EDITOR",fr="CHANGE_CONTENT_EDITOR_SESSION_MODE",mr="ENABLE_LINK_MODE",gr="DISABLE_LINK_MODE",vr="DISABLE_DRAWING_LINK_ANNOTATION_MODE",yr="SET_MEASUREMENT_SNAPPING",br="SET_MEASUREMENT_PRECISION",wr="SET_MEASUREMENT_SCALE",xr="SET_MEASUREMENT_VALUE_CONFIGURATION_CALLBACK",_r="SET_MEASUREMENT_SCALES",Sr="SET_MEASUREMENT_TOOL_STATE",Cr="SET_HINT_LINES",Er="CONTENT_EDITOR/PAGE/LOADING",kr="CONTENT_EDITOR/PAGE/LOADED",zr="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/ACTIVE",Pr="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/TOGGLE",Dr="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/SELECT",Ar="CONTENT_EDITOR/TEXT_BLOCK/CREATE",Tr="CONTENT_EDITOR/TEXT_BLOCK/UPDATE_INFO",Ir="CONTENT_EDITOR/TEXT_BLOCK/SET_FORMAT",Mr="CONTENT_EDITOR_/TEXT_BLOCK/RESIZE",Rr="CONTENT_EDITOR_/TEXT_BLOCK/MOVE",Fr="CONTENT_EDITOR/SAVING",Nr="CONTENT_EDITOR/SET_DIRTY",Or="CONTENT_EDITOR/FACE_LIST/LOADING",jr="CONTENT_EDITOR/FACE_LIST/SET",Lr="CONTENT_EDITOR_SET_EXIT_DIALOG",Br="CONTENT_EDITOR_SHOW_FONT_MISMATCH_TOOLTIP",Kr="CONTENT_EDITOR_HIDE_FONT_MISMATCH_TOOLTIP",Vr="CONTENT_EDITOR_FONT_MISMATCH_TOOLTIP_ABORT_CONTROLLER",Hr="ENABLE_MULTI_ANNOTATIONS_SELECTION_MODE",$r="DISABLE_MULTI_ANNOTATIONS_SELECTION_MODE",Ur="CREATE_ANNOTATION_GROUP",Zr="SET_SELECTED_GROUP",qr="DELETE_ANNOTATION_GROUP",Gr="REMOVE_ANNOTATION_FROM_GROUP",Wr="SET_PULL_TO_REFRESH_STATE",Yr="SET_RICH_EDITOR_REF",Xr="FOCUS_WIDGET_ANNOTATION",Qr="SET_ON_COMMENT_CREATION_START_CALLBACK",Jr="INVALIDATE_PAGE_KEYS",eo="CONTENT_EDITOR_ACTIVE_TEXT_BLOCK_DELETE",to="CHANGE_SCROLL_STATE",no="SET_CUSTOM_FONTS_READABLE_NAMES",ro="ENABLE_MEASUREMENT_MODE",oo="DISABLE_MEASUREMENT_MODE",io="SHOW_MEASUREMENT_SETTINGS",ao="HIDE_MEASUREMENT_SETTINGS",so="SET_SECONDARY_MEASUREMENT_UNIT",lo="SET_ACTIVE_MEASUREMENT_SCALE",co="SET_CALIBRATION_MODE",uo="UPDATE_PAGE_KEYS",po="SET_DISABLE_POINT_SNAPPING",ho="SET_ENABLE_ALWAYS_SCROLL_TO_ZOOM",fo="SET_FORCE_RENDER_WIDGETS_IN_ANNOTATIONS_ORDER",mo="SET_EVALUATION",go="SELECT_IMPORT_ICON_IMAGE",vo="SET_OCG_LAYERS",yo="SET_OCG_VISIBILITY",bo="SET_PRERENDERED_PAGE_SPREADS",wo="SET_PAGE_TAB_ORDER",xo="SET_DOCUMENT_ASSISTANT_CONFIGURATION",_o="SET_SHOW_DOCUMENT_ASSISTANT",So="SET_DOCUMENT_ASSISTANT_ADDITIONAL_CONTEXT",Co="CONTENT_EDITOR_SET_PROMPT_DOCUMENT_DOWNLOAD",Eo="CONTENT_EDITOR_SET_PROMPT_CANNOT_SAVE_CHANGES",ko="SET_IS_SERVER_MODE_DOWNLOADING_WASM",zo="SET_IS_SERVER_MODE_DOWNLOADING_DOCUMENT"},10983:(e,t,n)=>{"use strict";n.d(t,{Bd:()=>E,Bs:()=>B,D4:()=>u,Dx:()=>P,Fg:()=>i,GI:()=>o,Hr:()=>C,J8:()=>R,Kk:()=>_,M5:()=>N,QS:()=>m,Qc:()=>W,Qq:()=>r,Qr:()=>j,RI:()=>s,SP:()=>I,Sk:()=>x,St:()=>q,Ui:()=>O,V4:()=>D,W3:()=>X,XU:()=>h,XZ:()=>v,YJ:()=>w,_2:()=>V,c1:()=>S,cY:()=>f,fV:()=>T,g3:()=>c,gZ:()=>b,h8:()=>p,i1:()=>G,mM:()=>$,mc:()=>J,nJ:()=>L,oW:()=>F,pK:()=>z,pt:()=>Y,rB:()=>U,rT:()=>Q,re:()=>A,rm:()=>l,sP:()=>Z,uq:()=>k,wK:()=>y,xD:()=>d,y$:()=>a,zA:()=>K,zT:()=>H,zh:()=>g,zk:()=>M});const r=1200,o=1070,i=768,a=480,s=32768,l=18,c=50,u=a,d=a,p=320,h=250,f=.5,m=10,g=1.25,v=5,y=30,b=2,w=20,x=0,_=20,S=5,C=1,E=1536,k=512,z=512,P=5,D=1.25,A="PSPDFKit-Root",T="PSPDFKit-Shadow-Portal",I=36,M=32,R=5,F=0,N=1,O=96/72,j=5e3,L={LOW:75/72,MEDIUM:150/72,HIGH:300/72},B=2/3,K=595,V=842,H=50,$=96,U=300,Z=1e3,q=4.25,G=2,W=10,Y=16383,X=4,Q=250,J={thumbnailMinSize:Q/2,thumbnailMaxSize:Q+1.5*Q,thumbnailDefaultSize:Q}},31442:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>l,ZP:()=>h,hD:()=>p});var r=n(35369),o=n(60379),i=n(4715),a=n(42370);const s={line:i.o9,rectangle:i.b3,"cloudy-rectangle":i.b3,"dashed-rectangle":i.b3,ellipse:i.Xs,"cloudy-ellipse":i.Xs,"dashed-ellipse":i.Xs,polygon:i.Hi,"cloudy-polygon":i.Hi,"dashed-polygon":i.Hi,polyline:i.om,ink:i.Zc,note:i.Qi,text:i.gd,stamp:i.GI,image:i.sK,widget:i.x_,strikeout:i.R9,underline:i.xu,squiggle:i.hL,highlight:i.FV,arrow:i.o9,highlighter:i.Zc,"text-highlighter":i.FV,"ink-signature":i.Zc,redaction:i.Wk,"es-signature":i.Zc,perimeter:i.om,distance:i.o9,"ellipse-area":i.Xs,"rectangle-area":i.b3,"polygon-area":i.Hi},l={line:{},rectangle:{},ellipse:{},polygon:{},polyline:{},ink:{},note:{},text:{},stamp:{},image:{},widget:{},strikeout:{},underline:{},squiggle:{},highlight:{},redaction:{}},c={arrow:{lineCaps:{end:"openArrow"}},"cloudy-rectangle":{cloudyBorderIntensity:2},"dashed-rectangle":{strokeDashArray:[3,3]},"cloudy-ellipse":{cloudyBorderIntensity:2},"dashed-ellipse":{strokeDashArray:[3,3]},"cloudy-polygon":{cloudyBorderIntensity:2},"dashed-polygon":{strokeDashArray:[3,3]},highlighter:{strokeColor:o.Z.LIGHT_YELLOW,lineWidth:30,blendMode:"multiply",opacity:1},"text-highlighter":{color:o.Z.LIGHT_YELLOW,blendMode:"multiply",opacity:1},"ink-signature":{isSignature:!0},"es-signature":{isSignature:!0,strokeColor:o.Z.BLACK},distance:{lineCaps:{start:a.u.butt,end:a.u.butt},strokeWidth:3,strokeColor:o.Z.RED},perimeter:{lineCaps:{start:a.u.butt,end:a.u.openArrow},strokeWidth:3,strokeColor:o.Z.RED},"ellipse-area":{strokeWidth:3,strokeColor:o.Z.RED},"rectangle-area":{strokeWidth:3,strokeColor:o.Z.RED},"polygon-area":{strokeWidth:3,strokeColor:o.Z.RED}},u=["lines","points","startPoint","endPoint"],d=e=>Object.keys(e).filter((t=>!u.includes(t)&&null!=e[t])).reduce(((t,n)=>(t[n]=e[n],t)),{});for(const e in l){const t=s[e];Object.getPrototypeOf(t)===i.UX?l[e]=d({...i.UX.defaultValues,...t.defaultValues}):Object.getPrototypeOf(t)===i.On?l[e]=d({...i.On.defaultValues,...t.defaultValues}):l[e]=d(t.defaultValues)}for(const e in c){const t=s[e];Object.getPrototypeOf(t)===i.UX?c[e]=d({...i.UX.defaultValues,...t.defaultValues,...c[e]}):Object.getPrototypeOf(t)===i.On?c[e]=d({...i.On.defaultValues,...t.defaultValues,...c[e]}):c[e]=d({...t.defaultValues,...c[e]})}const p=(0,r.D5)([[i.FV,"highlight"],[i.xu,"underline"],[i.hL,"squiggle"],[i.R9,"strikeout"]]),h=(0,r.D5)({...l,...c})},74750:(e,t,n)=>{"use strict";n.d(t,{J:()=>i,Z:()=>a});var r=n(35369),o=n(4715);const i=[o.Xs,o.FV,o.sK,o.Zc,o.o9,o.Qi,o.Hi,o.om,o.b3,o.hL,o.GI,o.R9,o.gd,o.xu,o.x_],a=(0,r.d0)(i)},24126:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,l:()=>o});var r=n(35369);const o=[{type:"cancel"},{type:"selected-pages"},{type:"spacer"},{type:"loading-indicator"},{type:"save-as"},{type:"save"}],i=(0,r.d0)(o)},18009:(e,t,n)=>{"use strict";n.d(t,{L:()=>o,Z:()=>i});var r=n(35369);const o=[{type:"add"},{type:"remove"},{type:"duplicate"},{type:"rotate-left"},{type:"rotate-right"},{type:"move"},{type:"move-left"},{type:"move-right"},{type:"import-document"},{type:"extract-pages"},{type:"spacer"},{type:"undo"},{type:"redo"},{type:"select-all"},{type:"select-none"},{type:"zoom-out"},{type:"zoom-in"}],i=(0,r.d0)(o)},38246:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(4715);const o=Object.freeze([r.Xs,r.FV,r.sK,r.Zc,r.o9,r.Qi,r.Hi,r.om,r.b3,r.Wk,r.hL,r.GI,r.R9,r.gd,r.x_,r.xu,r.Jn,r.R1].filter(Boolean))},66013:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(60379);const o=new r.Z({r:70,g:54,b:227}),i={color:r.Z.BLUE,localization:{id:"blue",defaultMessage:"Blue",description:"Blue color"}},a=[{color:r.Z.BLACK,localization:{id:"black",defaultMessage:"Black",description:"Black color"}},i,{color:o,localization:{id:"darkBlue",defaultMessage:"Dark blue",description:"Dark blue color"}}]},57712:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(91105);const o=Object.freeze([r.M.DRAW,r.M.IMAGE,r.M.TYPE])},58342:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(2282);const o=Object.freeze([new r.Z({name:"Caveat"}),new r.Z({name:"Pacifico"}),new r.Z({name:"Marck Script"}),new r.Z({name:"Meddon"})])},41390:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l});var r=n(4715),o=n(36691);const i=n(98179).Ni?396:240,a=new o.Z({width:i,height:i/3,left:0,top:0}),s=new o.Z({width:i,height:i,left:0,top:0}),l=Object.freeze([["Approved",a],["NotApproved",a],["Draft",a],["Final",a],["Completed",a],["Confidential",a],["ForPublicRelease",a],["NotForPublicRelease",a],["ForComment",a],["Void",a],["PreliminaryResults",a],["InformationOnly",a],["Rejected",s],["Accepted",s],["InitialHere",a],["SignHere",a],["Witness",a],["AsIs",a],["Departmental",a],["Experimental",a],["Expired",a],["Sold",a],["TopSecret",a],["Revised",a],["RejectedWithText",a]].map((e=>{let[t,n]=e;return new r.GI({stampType:t,boundingBox:n})})))},73417:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>o,_o:()=>i});const r=[{type:"sidebar-thumbnails"},{type:"sidebar-document-outline"},{type:"sidebar-annotations"},{type:"sidebar-bookmarks"},{type:"sidebar-signatures"},{type:"sidebar-layers"},{type:"pager"},{type:"multi-annotations-selection"},{type:"pan"},{type:"zoom-out"},{type:"zoom-in"},{type:"zoom-mode"},{type:"spacer"},{type:"annotate"},{type:"ink"},{type:"highlighter"},{type:"text-highlighter"},{type:"ink-eraser"},{type:"signature"},{type:"image"},{type:"stamp"},{type:"note"},{type:"text"},{type:"callout"},{type:"line"},{type:"link"},{type:"arrow"},{type:"rectangle"},{type:"ellipse"},{type:"polygon"},{type:"cloudy-polygon"},{type:"polyline"},{type:"print"},{type:"document-editor"},{type:"document-crop"},{type:"search"},{type:"export-pdf"},{type:"debug"}],o=(0,n(35369).d0)(r),i=[...r.map((e=>e.type)),"layout-config","marquee-zoom","custom","responsive-group","comment","redact-text-highlighter","redact-rectangle","cloudy-rectangle","dashed-rectangle","cloudy-ellipse","dashed-ellipse","dashed-polygon","document-comparison","measure","undo","redo","form-creator","content-editor","distance","perimeter","rectangle-area","ellipse-area","polygon-area","document-assistant"]},76596:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var r=n(3953),o=n(67294),i=n(33241);const a={[i.xr.SignaturesList]:e=>({content:o.createElement(r.$H,e.props),decorator:e=>o.createElement(r.ZF,e)}),[i.xr.CreateSignature]:e=>({content:o.createElement(r.lQ,e.props),decorator:e=>o.createElement(r.AM,e)}),[i.xr.StampsList]:e=>({content:o.createElement(r.Sq,e.props),decorator:e=>o.createElement(r.m3,e)}),[i.xr.CreateStamp]:e=>({content:o.createElement(r.t7,e.props),decorator:e=>o.createElement(r.v1,e)}),[i.xr.ChatDialog]:e=>({content:o.createElement(r.VY,e.props),decorator:e=>o.createElement(r.j$,e)}),[i.xr.CommentThread]:e=>({content:o.createElement(r.Pl,e.props),decorator:e=>o.createElement(r.HS,e)})}},72113:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(67366),o=n(20144);const i=(0,r.$j)((function(e,t){let{restoreOnClose:n=!0}=t;const r=e.frameWindow?.document;return{restoreOnCloseElement:n?r?.hasFocus()?r.activeElement&&"function"==typeof r.activeElement.focus?r.activeElement:r.body:document.activeElement:null}}))(o.u_)},46302:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(67366),o=n(96156),i=n(67294);class a extends i.Component{constructor(){super(...arguments),(0,o.Z)(this,"elRef",i.createRef()),(0,o.Z)(this,"state",{styles:this._calculatePositionStyles()})}_calculatePositionStyles(){const{referenceElement:e,horizontalAlignment:t,isRTL:n}=this.props,{containerRect:r,offsets:o}=this.props,i=o?.top??0,a=this.elRef.current,s=e?e.getBoundingClientRect():null,l=a?a.getBoundingClientRect():null,c=this.elRef.current?.getRootNode(),u=c instanceof ShadowRoot?c.host.getBoundingClientRect():{top:0,left:0};let d=s?s.top+s.height-u.top:0;if(l&&s&&s.top+s.height+l.height>r.height+r.top&&(d=s.top-u.top>0?Math.max(0,s.top-l.height-u.top):s.top-u.top+s.height),!a||!s)return{top:d+i,left:"auto",right:"auto"};if(a.offsetWidth>r.width)return{top:d+i,left:0,right:0};const p=n?"right":"left",h=n?"left":"right";let f="left"===p?s.left-u.left:s.right-u.left;switch(t){case"center":f-=(a.offsetWidth-s.width)/2;break;case"end":f-=a.offsetWidth-s.width}return f<0?{top:d+i,[p]:0,[h]:"auto"}:f+a.offsetWidth>r.width?{top:d+i,[h]:0,[p]:"auto"}:"auto"===t&&f>r.width/2?{top:d+i,[p]:f-a.offsetWidth+s.width,[h]:"auto"}:{top:d+i,[p]:f,[h]:"auto"}}componentDidUpdate(e){(e.containerRect!==this.props.containerRect||this.props.measure&&!e.measure)&&this.setState({styles:this._calculatePositionStyles()})}componentDidMount(){this.setState({styles:this._calculatePositionStyles()})}render(){const{children:e}=this.props,t={position:"absolute",...this.state.styles};return"function"==typeof e?e({ref:this.elRef,style:t}):i.createElement("div",{ref:this.elRef,style:t},e)}}(0,o.Z)(a,"defaultProps",{horizontalAlignment:"auto",measure:!0});const s=(0,r.$j)((e=>({containerRect:e.containerRect})))(a)},93767:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});const r={START:"START",END:"END"}},47120:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});const r={IMMEDIATE:"IMMEDIATE",INTELLIGENT:"INTELLIGENT",DISABLED:"DISABLED"}},3792:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r={normal:"normal",multiply:"multiply",screen:"screen",overlay:"overlay",darken:"darken",lighten:"lighten",colorDodge:"colorDodge",colorBurn:"colorBurn",hardLight:"hardLight",softLight:"softLight",difference:"difference",exclusion:"exclusion"}},3888:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r={solid:"solid",dashed:"dashed",beveled:"beveled",inset:"inset",underline:"underline"}},60679:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});const r={SIDEBAR:"SIDEBAR",PANE:"PANE"}},30874:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r={TEXT:"text"}},14178:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});const r={PASSWORD_REQUIRED:"PASSWORD_REQUIRED",CONNECTING:"CONNECTING",CONNECTED:"CONNECTED",CONNECTION_FAILED:"CONNECTION_FAILED"}},79112:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});const r={documentA:"documentA",documentB:"documentB",result:"result"}},7202:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r={USE_OPEN_DOCUMENT:"USE_OPEN_DOCUMENT",USE_FILE_DIALOG:"USE_FILE_DIALOG"}},62083:(e,t,n)=>{"use strict";n.d(t,{X:()=>o,Z:()=>a});var r=n(35369);const o={annotationsAndForms:"annotationsAndForms",assemble:"assemble",extract:"extract",extractAccessibility:"extractAccessibility",fillForms:"fillForms",modification:"modification",printHighQuality:"printHighQuality",printing:"printing"},i=Object.keys(o).reduce(((e,t)=>({...e,[t]:!0})),{});class a extends((0,r.WV)(i)){}},91105:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});const r={DRAW:"DRAW",IMAGE:"IMAGE",TYPE:"TYPE"}},76934:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});const r={DEFAULT:"DEFAULT",EXTERNAL:"EXTERNAL",HISTORY:"HISTORY"}},25673:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r={POINT:"POINT",STROKE:"STROKE"}},48625:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={TEXT_HIGHLIGHTER:"TEXT_HIGHLIGHTER",INK:"INK",INK_SIGNATURE:"INK_SIGNATURE",SIGNATURE:"SIGNATURE",STAMP_PICKER:"STAMP_PICKER",STAMP_CUSTOM:"STAMP_CUSTOM",SHAPE_LINE:"SHAPE_LINE",SHAPE_RECTANGLE:"SHAPE_RECTANGLE",SHAPE_ELLIPSE:"SHAPE_ELLIPSE",SHAPE_POLYGON:"SHAPE_POLYGON",SHAPE_POLYLINE:"SHAPE_POLYLINE",INK_ERASER:"INK_ERASER",NOTE:"NOTE",COMMENT_MARKER:"COMMENT_MARKER",TEXT:"TEXT",CALLOUT:"CALLOUT",PAN:"PAN",SEARCH:"SEARCH",DOCUMENT_EDITOR:"DOCUMENT_EDITOR",MARQUEE_ZOOM:"MARQUEE_ZOOM",REDACT_TEXT_HIGHLIGHTER:"REDACT_TEXT_HIGHLIGHTER",REDACT_SHAPE_RECTANGLE:"REDACT_SHAPE_RECTANGLE",DOCUMENT_CROP:"DOCUMENT_CROP",BUTTON_WIDGET:"BUTTON_WIDGET",TEXT_WIDGET:"TEXT_WIDGET",RADIO_BUTTON_WIDGET:"RADIO_BUTTON_WIDGET",CHECKBOX_WIDGET:"CHECKBOX_WIDGET",COMBO_BOX_WIDGET:"COMBO_BOX_WIDGET",LIST_BOX_WIDGET:"LIST_BOX_WIDGET",SIGNATURE_WIDGET:"SIGNATURE_WIDGET",DATE_WIDGET:"DATE_WIDGET",FORM_CREATOR:"FORM_CREATOR",LINK:"LINK",DISTANCE:"DISTANCE",PERIMETER:"PERIMETER",RECTANGLE_AREA:"RECTANGLE_AREA",ELLIPSE_AREA:"ELLIPSE_AREA",POLYGON_AREA:"POLYGON_AREA",CONTENT_EDITOR:"CONTENT_EDITOR",MULTI_ANNOTATIONS_SELECTION:"MULTI_ANNOTATIONS_SELECTION",MEASUREMENT:"MEASUREMENT",MEASUREMENT_SETTINGS:"MEASUREMENT_SETTINGS"}},14286:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});const r={SINGLE:"SINGLE",DOUBLE:"DOUBLE",AUTO:"AUTO"}},44550:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});const r={ANNOTATION_EDITING:"annotation_editing",FORMS:"acro_forms",DIGITAL_SIGNATURES:"digital_signatures",DOCUMENT_COMPARISON:"comparison",DOCUMENT_EDITING:"document_editing",WEB_VIEWER:"web:viewer",WEB_ANNOTATION_EDITING:"web:annotation_editing",INSTANT:"instant",SERVER_OPT_OUT_ANALYTICS:"server:disable-analytics",UI:"user_interface",TEXT_SELECTION:"text_selection",ELECTRON:"web:electron",FORM_DESIGNER:"editable_forms",COMMENTS:"comments",REDACTIONS:"redaction",ELECTRONIC_SIGNATURES:"electronic_signatures",CONTENT_EDITING:"content_editing",MEASUREMENT_TOOLS:"measurement_tools",TEXT_COMPARISON:"text_comparison",IMAGE_DOCUMENT:"image_document",OCR:"ocr",PDF_A:"pdfa",COMPRESSION:"compression",IMAGE_CINVERSION:"image_conversion",LIBREOFFICE_WORD:"libreoffice_word",LINEARIZATION:"linearization",PDF_GENERATION:"pdf_generation",DOCUMENT_ASSISTANT:"document_assistant"}},42370:(e,t,n)=>{"use strict";n.d(t,{a:()=>o,u:()=>r});const r={square:"square",circle:"circle",diamond:"diamond",openArrow:"openArrow",closedArrow:"closedArrow",butt:"butt",reverseOpenArrow:"reverseOpenArrow",reverseClosedArrow:"reverseClosedArrow",slash:"slash"},o=Object.values(r)},97281:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});const r={WHOLE:"whole",ONE:"oneDp",TWO:"twoDp",THREE:"threeDp",FOUR:"fourDp",HALVES:"1/2",QUARTERS:"1/4",EIGHTHS:"1/8",SIXTEENTHS:"1/16"}},94327:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});const r={INCHES:"in",MILLIMETERS:"mm",CENTIMETERS:"cm",POINTS:"pt"}},1385:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});const r={INCHES:"in",MILLIMETERS:"mm",CENTIMETERS:"cm",POINTS:"pt",FEET:"ft",METERS:"m",YARDS:"yd",KILOMETERS:"km",MILES:"mi"}},60790:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});const r={FORM_DESIGNER_ERROR:"FORM_DESIGNER_ERROR",MEASUREMENT_ERROR:"MEASUREMENT_ERROR"}},59062:(e,t,n)=>{"use strict";n.d(t,{V9:()=>i,Y4:()=>o,Zi:()=>r});const r={COMMENT:"COMMENT",RIGHT_POINTER:"RIGHT_POINTER",RIGHT_ARROW:"RIGHT_ARROW",CHECK:"CHECK",CIRCLE:"CIRCLE",CROSS:"CROSS",INSERT:"INSERT",NEW_PARAGRAPH:"NEW_PARAGRAPH",NOTE:"NOTE",PARAGRAPH:"PARAGRAPH",HELP:"HELP",STAR:"STAR",KEY:"KEY"},o={[r.COMMENT]:"comment",[r.RIGHT_POINTER]:"rightPointer",[r.RIGHT_ARROW]:"rightArrow",[r.CHECK]:"check",[r.CIRCLE]:"circle",[r.CROSS]:"cross",[r.INSERT]:"insert",[r.NEW_PARAGRAPH]:"newParagraph",[r.NOTE]:"note",[r.PARAGRAPH]:"paragraph",[r.HELP]:"help",[r.STAR]:"star",[r.KEY]:"key"},i=Object.keys(o).reduce(((e,t)=>(e[o[t]]=t,e)),{})},11267:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});const r={docx:"docx",xlsx:"xlsx",pptx:"pptx"}},74311:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});const r={PDFA_1A:"pdfa-1a",PDFA_1B:"pdfa-1b",PDFA_2A:"pdfa-2a",PDFA_2U:"pdfa-2u",PDFA_2B:"pdfa-2b",PDFA_3A:"pdfa-3a",PDFA_3U:"pdfa-3u",PDFA_3B:"pdfa-3b",PDFA_4:"pdfa-4",PDFA_4E:"pdfa-4e",PDFA_4F:"pdfa-4f"}},70025:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});const r={DOM:"DOM",EXPORT_PDF:"EXPORT_PDF"}},26637:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});const r={LOW:"LOW",MEDIUM:"MEDIUM",HIGH:"HIGH"}},15650:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});const r={smallerSize:"smallerSize",fasterProcessing:"fasterProcessing"}},33383:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});const r={SharePoint:"SharePoint",Salesforce:"Salesforce",Maui_Android:"Maui_Android",Maui_iOS:"Maui_iOS",Maui_MacCatalyst:"Maui_MacCatalyst",Maui_Windows:"Maui_Windows",FlutterForWeb:"FlutterForWeb",Electron:"Electron"}},28233:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});let r=function(e){return e.NO="NO",e.VIA_VIEW_STATE="VIA_VIEW_STATE",e.VIA_BACKEND_PERMISSIONS="VIA_BACKEND_PERMISSIONS",e.LICENSE_RESTRICTED="LICENSE_RESTRICTED",e}({})},33241:(e,t,n)=>{"use strict";n.d(t,{lx:()=>o,tP:()=>i,xr:()=>a});var r=n(3953);const o={SignaturesList:r.$H,CreateSignature:r.lQ,StampsList:r.Sq,CreateStamp:r.t7,ChatDialog:r.VY,CommentThread:r.Pl},i={SignaturesListDecorator:r.ZF,StampsListDecorator:r.m3,CreateStampDecorator:r.v1,CreateSignatureDecorator:r.AM,ChatDialogDecorator:r.j$,CommentThreadDecorator:r.HS},a=Object.fromEntries(Object.entries(o).map((e=>{let[t]=e;return[t,t]})))},74814:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});const r={TOP:"TOP",BOTTOM:"BOTTOM",LEFT:"LEFT",RIGHT:"RIGHT",TOP_LEFT:"TOP_LEFT",TOP_RIGHT:"TOP_RIGHT",BOTTOM_RIGHT:"BOTTOM_RIGHT",BOTTOM_LEFT:"BOTTOM_LEFT"}},2464:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});const r={CONTINUOUS:"CONTINUOUS",PER_SPREAD:"PER_SPREAD",DISABLED:"DISABLED"}},5709:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});const r={CREDIT_CARD_NUMBER:"credit_card_number",DATE:"date",TIME:"time",EMAIL_ADDRESS:"email_address",INTERNATIONAL_PHONE_NUMBER:"international_phone_number",IP_V4:"ipv4",IP_V6:"ipv6",MAC_ADDRESS:"mac_address",NORTH_AMERICAN_PHONE_NUMBER:"north_american_phone_number",SOCIAL_SECURITY_NUMBER:"social_security_number",URL:"url",US_ZIP_CODE:"us_zip_code",VIN:"vin"}},96650:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});const r={TEXT:"text",PRESET:"preset",REGEX:"regex"}},54103:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});const r={SELECTED:"SELECTED",EDITING:"EDITING"}},13349:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const r={IF_SIGNED:"IF_SIGNED",HAS_WARNINGS:"HAS_WARNINGS",HAS_ERRORS:"HAS_ERRORS",NEVER:"NEVER"}},27122:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});const r={ANNOTATIONS:"ANNOTATIONS",BOOKMARKS:"BOOKMARKS",DOCUMENT_OUTLINE:"DOCUMENT_OUTLINE",THUMBNAILS:"THUMBNAILS",SIGNATURES:"SIGNATURES",LAYERS:"LAYERS",CUSTOM:"CUSTOM"}},65369:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});const r={START:"START",END:"END"}},39684:(e,t,n)=>{"use strict";n.d(t,{H:()=>r});const r={signatureOnly:"signatureOnly",signatureAndDescription:"signatureAndDescription",descriptionOnly:"descriptionOnly"}},20063:(e,t,n)=>{"use strict";n.d(t,{H:()=>r});const r={ELECTRONIC_SIGNATURES:"electronic_signatures",LEGACY_SIGNATURES:"legacy_signatures",NONE:"none"}},97586:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});const r={ALWAYS:"ALWAYS",NEVER:"NEVER",USING_UI:"USING_UI"}},8898:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});const r={LIGHT:"LIGHT",DARK:"DARK",AUTO:"AUTO"}},13264:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});const r={TOP:"TOP",BOTTOM:"BOTTOM"}},35062:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});const r={COMMENT_THREAD:"COMMENT_THREAD",ANNOTATIONS_SIDEBAR:"ANNOTATIONS_SIDEBAR"}},81777:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r={AUTO:"AUTO",FIT_TO_WIDTH:"FIT_TO_WIDTH",FIT_TO_VIEWPORT:"FIT_TO_VIEWPORT",CUSTOM:"CUSTOM"}},21753:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>h,sS:()=>p,z5:()=>d});var r=n(79724),o=n(9792),i=n.n(o),a=n(86105),s=n(68944),l=n(94809);const c=(0,r.Z)("I18n"),u=e=>e.split("-")[0],d=e=>{let t=e;return i().includes(t)||(t=u(t),c(i().includes(t),`The "${t}" locale is not supported. Available locales are: ${i().join(", ")}. You can also add "${t}" as a custom one with PSPDFKit.I18n.locales.push('${t}')`)),t};async function p(e){await(0,a.EV)(e),await(0,a.wP)(u(e))}const h={locales:i(),messages:a.ZP,preloadLocalizationData:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t.baseUrl&&(0,l.Pn)(t.baseUrl);const r=t.baseUrl||(0,s.SV)(window.document);n.p=r;const o=d(e);await p(o)}}},9792:e=>{e.exports=["cs","cy","da","de","el","en-GB","en","es","fi","fr-CA","fr","hr","id","it","ja","ko","ms","nb-NO","nl","pl","pt-PT","pt","ru","sk","sl","sv","th","tr","uk","zh-Hans","zh-Hant"]},86105:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l,wP:()=>u,EV:()=>c});var r=n(79724),o=n(8514);const i={cs:()=>n.e(3005).then(n.t.bind(n,74531,23)),cy:()=>n.e(7050).then(n.t.bind(n,42673,23)),da:()=>n.e(752).then(n.t.bind(n,27645,23)),de:()=>n.e(8869).then(n.t.bind(n,18675,23)),el:()=>n.e(1882).then(n.t.bind(n,67657,23)),en:()=>n.e(5014).then(n.t.bind(n,39818,23)),es:()=>n.e(1252).then(n.t.bind(n,56927,23)),fi:()=>n.e(5528).then(n.t.bind(n,24521,23)),fr:()=>n.e(1145).then(n.t.bind(n,18712,23)),hr:()=>n.e(9677).then(n.t.bind(n,2471,23)),id:()=>n.e(5192).then(n.t.bind(n,73772,23)),it:()=>n.e(3424).then(n.t.bind(n,3340,23)),ja:()=>n.e(4728).then(n.t.bind(n,88245,23)),ko:()=>n.e(1089).then(n.t.bind(n,9077,23)),ms:()=>n.e(1518).then(n.t.bind(n,49939,23)),nb:()=>n.e(2279).then(n.t.bind(n,12788,23)),nl:()=>n.e(9486).then(n.t.bind(n,93550,23)),pl:()=>n.e(6523).then(n.t.bind(n,46751,23)),pt:()=>n.e(4932).then(n.t.bind(n,67822,23)),ru:()=>n.e(1385).then(n.t.bind(n,93258,23)),sk:()=>n.e(1077).then(n.t.bind(n,67726,23)),sl:()=>n.e(1277).then(n.t.bind(n,71817,23)),sv:()=>n.e(2727).then(n.t.bind(n,85361,23)),th:()=>n.e(1063).then(n.t.bind(n,74418,23)),tr:()=>n.e(9384).then(n.t.bind(n,27097,23)),uk:()=>n.e(1843).then(n.t.bind(n,98621,23)),zh:()=>n.e(4072).then(n.t.bind(n,99577,23))},a=(0,r.Z)("I18n"),s={},l=s;async function c(e){if(!(e in s))try{const t=await o.o[e]();s[e]=t.default}catch(t){a(!1,`Cannot find translations for "${e}". Please retry or add them manually to PSPDFKit.I18n.messages["${e}"]`)}return s[e]}async function u(e){if(i[e])try{await i[e]()}catch(t){a(!1,`Cannot find locale data for "${e}". Please retry or contact support for further assistance.`)}}},8514:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});const r={cs:()=>n.e(3579).then(n.t.bind(n,46984,19)),cy:()=>n.e(7578).then(n.t.bind(n,50706,19)),da:()=>n.e(1139).then(n.t.bind(n,32156,19)),de:()=>n.e(1009).then(n.t.bind(n,47875,19)),el:()=>n.e(1323).then(n.t.bind(n,87908,19)),"en-GB":()=>n.e(6045).then(n.t.bind(n,29207,19)),en:()=>n.e(1874).then(n.t.bind(n,70840,19)),es:()=>n.e(473).then(n.t.bind(n,59657,19)),fi:()=>n.e(9390).then(n.t.bind(n,5317,19)),"fr-CA":()=>n.e(2916).then(n.t.bind(n,76215,19)),fr:()=>n.e(3360).then(n.t.bind(n,28435,19)),hr:()=>n.e(157).then(n.t.bind(n,24733,19)),id:()=>n.e(9726).then(n.t.bind(n,33615,19)),it:()=>n.e(8839).then(n.t.bind(n,24068,19)),ja:()=>n.e(3463).then(n.t.bind(n,87854,19)),ko:()=>n.e(1168).then(n.t.bind(n,23980,19)),ms:()=>n.e(1391).then(n.t.bind(n,48853,19)),"nb-NO":()=>n.e(4966).then(n.t.bind(n,16844,19)),nl:()=>n.e(5677).then(n.t.bind(n,14314,19)),pl:()=>n.e(4899).then(n.t.bind(n,16365,19)),"pt-PT":()=>n.e(5431).then(n.t.bind(n,55910,19)),pt:()=>n.e(517).then(n.t.bind(n,7638,19)),ru:()=>n.e(8057).then(n.t.bind(n,21652,19)),sk:()=>n.e(9971).then(n.t.bind(n,57298,19)),sl:()=>n.e(5595).then(n.t.bind(n,33943,19)),sv:()=>n.e(6530).then(n.t.bind(n,99649,19)),th:()=>n.e(5666).then(n.t.bind(n,81446,19)),tr:()=>n.e(407).then(n.t.bind(n,18141,19)),uk:()=>n.e(3095).then(n.t.bind(n,76911,19)),"zh-Hans":()=>n.e(6678).then(n.t.bind(n,47224,19)),"zh-Hant":()=>n.e(7579).then(n.t.bind(n,58372,19))}},88221:(e,t,n)=>{e.exports=n(7409).default},79685:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});class r{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.events=e,this.listeners={}}on(e,t){if("function"!=typeof t)throw new TypeError("Listener must be a function");if(!this.supportsEvent(e))throw new TypeError(`Event '${e}' is not supported. Only supporting ${this.events.join(", ")}`);this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}off(e,t){if("function"!=typeof t)throw new TypeError("Listener must be a function");if(!this.supportsEvent(e))throw new TypeError(`Event '${e}' is not supported. Only supporting ${this.events.join(", ")}`);const n=this.listeners[e]||[];n.forEach(((e,r)=>{e===t&&n.splice(r,1)})),0===n.length&&delete this.listeners[e]}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!this.supportsEvent(e))throw new TypeError(`Event '${e}' is not supported. Only supporting ${this.events.join(", ")}`);const o=this.listeners[e];void 0!==o&&o.forEach((e=>{e.call(null,...n)}))}supportsEvent(e){return 0===this.events.length||-1!==this.events.indexOf(e)}}},28018:(e,t,n)=>{"use strict";n.d(t,{c:()=>c});var r=n(96156),o=n(35369),i=n(7654),a=n(47120),s=n(96326);class l{constructor(e,t){(0,r.Z)(this,"localFormFieldsMapping",(0,o.D5)()),(0,r.Z)(this,"onCreate",(e=>{this.localFormFieldsMapping=this.localFormFieldsMapping.set(e.id,e.name)})),(0,r.Z)(this,"onUpdate",(e=>{this.onCreate(e)})),(0,r.Z)(this,"onDelete",(e=>{this.localFormFieldsMapping=this.localFormFieldsMapping.delete(e.id)})),this.formFieldProvider=e,this.localFormFieldCallbacks=t}createBackendObject(e){return this.formFieldProvider.createFormField(e)}updateBackendObject(e){return this.formFieldProvider.updateFormField(e)}deleteBackendObject(e){return this.formFieldProvider.deleteFormField(e)}createStoreObjects(e){this.localFormFieldsMapping=this.localFormFieldsMapping.withMutations((t=>{e.forEach((e=>{t.set(e.id,e.name)}))})),this.localFormFieldCallbacks.createFormFields(e)}updateStoreObjects(e){this.localFormFieldsMapping=this.localFormFieldsMapping.withMutations((t=>{e.forEach((e=>{t.set(e.id,e.name)}))})),this.localFormFieldCallbacks.updateFormFields(e)}deleteStoreObjects(e){this.localFormFieldsMapping=this.localFormFieldsMapping.withMutations((t=>{e.forEach((e=>{t.delete(e)}))})),this.localFormFieldCallbacks.deleteFormFields(e)}validateObject(e){if(!e.name||"string"!=typeof e.name||!e.id||"string"!=typeof e.id)return!1;try{return(0,i.Gu)(e),!0}catch(e){return!1}}getObjectById(e){const t=this.localFormFieldsMapping.get(e);return t?this.localFormFieldCallbacks.getFormFieldByName(t):null}getObjectId(e){return e.id}refresh(){this.localFormFieldCallbacks.refreshSignaturesInfo()}syncChanges(){return this.formFieldProvider.syncChanges()}}class c extends s.a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.u.IMMEDIATE,o=arguments.length>3?arguments[3]:void 0;super(new l(e,t),n,o),(0,r.Z)(this,"loadFormFields",function(){let e=null;return async function(){e||(e=this.formFieldProvider.loadFormFields()),await e}}()),this.formFieldProvider=e}}},9933:(e,t,n)=>{"use strict";n.d(t,{D:()=>i,V:()=>o});var r=n(35369);function o(e){const t=e.defaultValues||{},n=e.prototype;n._defaultValues={...n._defaultValues||{},...t};const r=Object.keys(n._defaultValues);n._keys=r,n._indices={};for(let e=0;e<r.length;e++){const t=r[e];n._indices[t]=e}r.forEach((e=>{Object.defineProperty(n,e,{get(){return this.get(e)},set(t){this.set(e,t)}})}))}class i extends((0,r.WV)({})){constructor(e){super(e)}}},32249:(e,t,n)=>{"use strict";n.d(t,{mH:()=>d,ZP:()=>m,il:()=>f});var r=n(96156),o=n(35369),i=n(77017),a=n(15359);function s(e,t){const n=t.record_rev,r=e.stagedRecordsChanges;if((0,a.kG)("number"==typeof n&&n>=0,"Tried to apply changes but the server responded with no `record_rev`"),(0,a.kG)(n>=e.localRecordsRev,"The server revision number is lower than the current one."),n<=e.localRecordsRev)return e;(0,a.kG)("number"==typeof t.previous_record_rev,"The payload must have a `previous_record_rev`"),(0,a.kG)(t.previous_record_rev>=e.localRecordsRev,"The payload's `previous_record_rev` is unknown to us, this means we missed out on changes.");let i=0;const s=e.requiredAttachmentIds;let l=(0,o.l4)(),c=(0,o.aV)();const u=[],d=e.localRecordsContents.withMutations((e=>{let n;n={accepted:{created:t=>{let{id:n,permissions:o,group:s,isAnonymous:l}=t;(0,a.kG)(!e.has(n),"There's already a record with the newly created record id");const c=r.find((e=>e.id===n));if(!c)return;c.resolve(null);const{content:u}=c;e.set(n,{content:u,permissions:o,group:s,isAnonymous:l}),i++},updated:t=>{let{id:n,permissions:o,group:s,isAnonymous:l}=t;(0,a.kG)(e.has(n),"Tried to update a record that is not present");const c=r.find((e=>e.id===n));if(!c)return;c.resolve(!0);const{content:u}=c;e.set(n,{content:u,permissions:o,group:s,isAnonymous:l}),i++},deleted:t=>{(0,a.kG)(e.has(t),"Tried to delete a record that is not present");const n=r.find((e=>e.id===t));n&&(n.resolve(!0),e.delete(t),i++)}},rejected:(e,t)=>{let[n,o]=t;const d=r.find((e=>e.id===n));if(d)switch(i++,o){case"conflict":d.reject(new a.p2("The server rejected the change due to a conflict")),"created"!==e&&u.push(n);break;case"attachment_not_found":{const e=Object.keys(d.attachments),t=!s.intersect(e).isEmpty();if(d.attachments&&!t&&Object.keys(d.attachments).length>0){l=l.union(Object.keys(d.attachments)),c=c.push(d);break}}default:d.reject(new a.p2("The server rejected the change")),"created"!==e&&u.push(n)}},changes:{created:t=>{(0,a.kG)(!e.has(t.id),"The change set tried to add a record that is already present");const{content:n,permissions:r,group:o,isAnonymous:i}=t;e.set(t.id,{content:n,permissions:r,group:o,isAnonymous:i})},updated:t=>{(0,a.kG)(e.has(t.id),`The change set tried to update a record with id ${t.id} that was not present`);const{content:n,permissions:r,group:o,isAnonymous:i}=t;e.set(t.id,{content:n,permissions:r,group:o,isAnonymous:i}),u.push(t.id)},deleted:t=>{(0,a.kG)(e.has(t),`The change set you tried to delete a record with id ${t} that was not present`),e.delete(t),u.push(t)}}},t.accepted.created.forEach(n.accepted.created),t.accepted.updated.forEach(n.accepted.updated),t.accepted.deleted.forEach(n.accepted.deleted),["created","updated","deleted"].forEach((e=>{Object.entries(t.rejected[e]).forEach((t=>{let r=t[1];"conflict"!==r&&"attachment_not_found"!==r&&(r=null),n.rejected(e,[t[0],r])}))})),t.changes.created.forEach(n.changes.created),t.changes.updated.forEach(n.changes.updated),t.changes.deleted.forEach(n.changes.deleted)}));(0,a.kG)(i===r.size,"Some changes were not processed by the server");const p=function(e,t){const n=e.localRecordsChanges.filter((e=>"created"===e.type||!t.includes(e.id)||(e.reject(new a.p2("Request was cleared because a newer revision arrived.")),!1)));return e.set("localRecordsChanges",n)}(e,(0,o.aV)(u));return p.withMutations((e=>e.set("requiredAttachmentIds",l).update("localRecordsChanges",(e=>e.merge(c))).set("stagedRecordsChanges",(0,o.aV)()).set("localRecordsContents",d).set("localRecordsRev",n)))}class l{constructor(e,t){(0,r.Z)(this,"_currentDelay",0),this._initialDelay=e,this._delayGrowthCap=t,this._currentDelay=e}schedule(e){const t=this._currentDelay;this.cancel(),t<this._delayGrowthCap&&(this._currentDelay+=1e3+Math.ceil(Math.random()*t)),this._timeout=setTimeout((()=>e()),t)}cancel(){this._timeout&&(clearTimeout(this._timeout),this._timeout=null)}reset(){this._currentDelay=this._initialDelay,this.cancel()}}var c=n(96723),u=n(74496);const d=3e4;let p=0;const h=new Set;function f(){h.forEach((e=>{e._currentRequest&&!e._currentRequestHasChanges&&(e._abortCurrentRequest(),setTimeout((()=>e.nextCycle().catch(console.log)),0))}))}class m{constructor(e){let{getState:t,setState:n,onChanges:o,onAcceptedRecords:i,longPollingTimeout:a=d,backoffTimer:s=new l(1e3,6e4),RequestClass:u=c.Z}=e;(0,r.Z)(this,"onDocumentHandleConflictCallback",(()=>{})),(0,r.Z)(this,"_lastAbortedRequest",null),(0,r.Z)(this,"_handleBeforeUnload",(()=>{this._abortCurrentRequest()})),this._currentRequestHasChanges=!1,this._isDestroyed=!1,this.getState=t,this.setState=n,this.onChangesCallback=o||(()=>{}),this.onAcceptedRecordsCallback=i||(()=>{}),this.RequestClass=u,this._longPollingTimeout=a,this._backoffTimer=s,window.addEventListener("beforeunload",this._handleBeforeUnload),h.add(this)}async nextCycle(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._longPollingTimeout;if(this._isDestroyed)return;if(this._currentRequest&&this._currentRequestHasChanges)return(0,a.kG)(this._currentRequestPromise,"Expected to have request running but no one was ever made."),this._currentRequestPromise;this._currentRequest&&(this._abortCurrentRequest(),this._backoffTimer&&this._backoffTimer.cancel());const r=this.getState(),l=r.localRecordsChanges;this.setState(r.set("localRecordsChanges",(0,o.aV)()).set("stagedRecordsChanges",l));const c=this._createSyncRequest(),d=!l.isEmpty(),h=new Promise(((n,r)=>{e=n,t=r})),f=(0,i.v4)(),m={request_id:f,record_rev:r.localRecordsRev,changes:{created:l.filter((e=>"created"===e.type)).map((e=>{let{id:t,content:n,group:r,isAnonymous:o}=e;const i=n&&"isAnonymous"in n?n.isAnonymous:o;return{id:t,..."boolean"==typeof i&&{isAnonymous:i},...n&&{content:n},...r&&{group:r}}})).toJS(),updated:l.filter((e=>"updated"===e.type)).map((e=>{let{id:t,content:n,group:r,isAnonymous:o}=e;const i=n&&"isAnonymous"in n?n.isAnonymous:o;return{id:t,..."boolean"==typeof i&&{isAnonymous:i},...n&&{content:n},...r&&{group:r}}})).toJS(),deleted:l.filter((e=>"deleted"===e.type)).map((e=>e.id)).toJS()},timeout:d?0:n},g=r.requiredAttachmentIds.isEmpty()?m:function(e,t){const n=new FormData;return n.append("sync",JSON.stringify(e)),t.requiredAttachmentIds.forEach((e=>{n.append(e,t.localRecordsChanges.find((t=>t.attachments.hasOwnProperty(e)))?.attachments[e])})),n}(m,r);return c.request({method:"POST",data:g}).then((t=>{void 0!==t.request_id&&(0,a.kG)(t.request_id===f,"The response doesn't match the client request ID"),(0,a.kG)(c!==this._lastAbortedRequest,"A manually aborted request still managed to resolve."),(0,a.kG)(c===this._currentRequest,"Expected the resolved request to be the latest created request."),(0,a.kG)(!this._isDestroyed,"The instance is destroyed yet the request managed to resolve.");const n=this.getState(),r=s(n,{...t,previous_record_rev:n.localRecordsRev});this.setState(r),this._currentRequestHasChanges=!1,this._currentRequest=null,p-=1,e();try{t.record_rev>n.localRecordsRev&&(this.onAcceptedRecordsCallback(t.accepted),this.onChangesCallback(t.changes)),this._scheduleNextCycle(!1,(()=>!r.localRecordsChanges.isEmpty()))}catch(e){throw p+=1,e}})).catch((e=>{if("Outdated layer handle"===e.message&&!this._isDestroyed)return this.onDocumentHandleConflictCallback(),this.destroy(),t();c===this._lastAbortedRequest?t(new a.p2("A manually aborted request still managed to reject.")):c!==this._currentRequest?t(new a.p2("Expected the reject request to be the latest created request.")):this._isDestroyed?t(new a.p2("The instance is destroyed yet the request managed to reject.")):t(new a.p2("Pushing changes failed"+(e&&e.message?`: ${e.message}`:"")));const n=(0,u.n)({oldChanges:l,newChanges:this.getState().localRecordsChanges});this.setState(r.set("localRecordsChanges",n).set("stagedRecordsChanges",(0,o.aV)())),this._currentRequestHasChanges=!1,this._currentRequest=null,p-=1,this._scheduleNextCycle(!0)})),p+=1,p>3&&(0,a.ZK)(`PSPDFKit: detected ${p} open sync requests. This might be due to multiple PSPDFKit for Web instances running in parallel, did you forget to \`unload\` any of them? Due to the browser limit of maximum number of default simultaneous persistent connections per server, this might cause subsequent requests to be queued and processed later which might result in a slowdown for your app.`),this._currentRequest=c,this._currentRequestHasChanges=d,this._currentRequestPromise=h,h}setOnDocumentHandleConflictCallback(e){this.onDocumentHandleConflictCallback=e}destroy(){this._abortCurrentRequest(),window.removeEventListener("beforeunload",this._handleBeforeUnload),this._isDestroyed=!0,h.delete(this)}log(e){(0,a.cM)(e)}_scheduleNextCycle(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0;const n=()=>{this.nextCycle().catch(this.log)};e?this._backoffTimer.schedule(n):(this._backoffTimer.reset(),(this._longPollingTimeout>0||t())&&n())}_createSyncRequest(){const{serverURL:e,authPayload:t}=this.getState().requestInfo;return(0,a.kG)("string"==typeof e,"Cannot call request without serverURL"),(0,a.kG)(t&&"string"==typeof t.auth_token,"Cannot call request without authPayload"),new this.RequestClass(e,t.auth_token)}_abortCurrentRequest(){this._currentRequest&&(p-=1,this._lastAbortedRequest=this._currentRequest,this._currentRequest.abort(),this._currentRequest=null)}}},74496:(e,t,n)=>{"use strict";n.d(t,{n:()=>o});var r=n(15359);function o(){let{oldChanges:e,newChanges:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e;return t.forEach((e=>{n=i({oldChanges:n,newChange:e})})),n}function i(){let{oldChanges:e,newChange:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t,o=e.filter((e=>{if(e.id===t.id){switch(t.type){case"updated":if("created"===e.type){n=a(e,t.set("type","created"));break}if("updated"===e.type){n=a(e,t);break}case"deleted":if("created"===e.type){e.resolve(),t.resolve(),n=null;break}if("updated"===e.type){n=a(e,t);break}default:e.reject(new r.p2("Request was cleared because a more recent update was queued."))}return!1}return!0}));return n&&(o=o.push(n)),o}function a(e,t){const n=e.resolve,r=t.resolve,o=e.reject,i=t.reject;return t.set("resolve",(e=>{n(e),r(e)})).set("reject",(e=>{o(e),i(e)}))}},2549:(e,t,n)=>{"use strict";n.d(t,{V:()=>o,h:()=>i});var r=n(15359);function o(e,t){let n;return n=e instanceof Error?e:new Error(e),Object.setPrototypeOf(n,o.prototype),n.reason=t,n}function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new o(n?`Some changes could not be ${t?"synced":"saved"} to backend: ${n}`:`Some changes could not be ${t?"synced":"saved"} to backend.`,e)}o.prototype=Object.create(r.p2.prototype,{name:{value:"PSPDFKitSaveError",enumerable:!1}})},24382:(e,t,n)=>{"use strict";n.d(t,{y:()=>r,z:()=>o});const r=1,o=2},69867:(e,t,n)=>{"use strict";n.d(t,{f:()=>s});var r=n(96156),o=n(35369),i=n(15359),a=n(44077);class s{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4?arguments[4]:void 0;if(this.examples=t,this.customStyles=n,this.document=a?a.ownerDocument:e,this.wrapper=e.createElement("div"),this.wrapper.setAttribute("aria-hidden","true"),this.wrapper.className=r,this._setStyles(this.wrapper,{...s.defaultWrapperStyles,...n}),t instanceof o.aV)t.forEach((t=>{const n="string"==typeof t?t:"",r=e.createElement("span");r.setAttribute("aria-hidden","true"),r.style.display="inline-block",r.style.whiteSpace="pre-wrap",r.innerText=n,this.wrapper.appendChild(r)}));else{const e="string"==typeof t?t:"";this.wrapper.innerHTML=e}const l=a||this.document.documentElement;(0,i.kG)(l,"documentElement must not be null"),l.appendChild(this.wrapper)}measure(){const e=a.UL.fromClientRect(this.wrapper.getBoundingClientRect()),t=e.getLocation().scale(-1);return this.examples instanceof o.aV?this.examples.map(((e,n)=>{const r=this.wrapper.childNodes[n];return a.UL.fromClientRect(r.getBoundingClientRect()).translate(t)})):(0,o.aV)([e.translate(t)])}remove(){this.wrapper.parentNode&&this.wrapper.parentNode.removeChild(this.wrapper),this.wrapper=null,this.examples=null}_setStyles(e,t){for(const n in t)e.style[n]=t[n]}}(0,r.Z)(s,"defaultWrapperStyles",Object.freeze({maxWidth:"none",display:"inline-block",position:"absolute",height:"auto",width:"auto",margin:"0",padding:"0",whiteSpace:"nowrap",top:"-10000px",left:"-10000px",fontSize:"80px",fontWeight:"normal"}))},2891:(e,t,n)=>{"use strict";n.d(t,{GA:()=>T,Nk:()=>A,oD:()=>D});var r=n(15359),o=n(35369),i=n(67366),a=n(27856),s=n.n(a),l=n(4715),c=n(45249),u=n(94732),d=n(79724),p=n(41172),h=n(33427),f=n(4087),m=n(51065),g=n(29977),v=n(20993),y=n(5130),b=n(12705),w=n(1858),x=n(72127),_=n(27922),S=n(3888),C=n(21713),E=n(44550);const k=(0,d.Z)("Annotations"),z="The API you're trying to use requires a annotation editing license. Annotation Editing is a component of PSPDFKit for Web and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/annotations/introduction-to-annotations/",P="WidgetAnnotation can only be modified if you are using Standalone setup or with Instant turned on. If you are using server backed setup, make sure `instant` is set to `true` in configuration.",D="The API you're trying to use requires a measurement license. Measurement is a component of PSPDFKit for Web and sold separately.";class A extends v.I{constructor(e,t){super(t().annotationManager),this.dispatch=e,this.getState=t}async create(e,t){const n=this.getState(),o=e.map((e=>{I(n,e,"create");const o=e.id;if("string"==typeof o&&k(!n.annotations.has(o),`Annotation id (${o}) is already used.`),e instanceof l.x_&&t){T(n,e)||k(t.some((t=>t instanceof w.Wi&&t.name===e.formFieldName)),`Widget orphan: The widget annotation can't be created because no form field was found with the name '${e.formFieldName}'. Please ensure that you create the corresponding form field together with the widget via instance.create([widget, formField]).`)}const{annotationCreatorName:i,annotationCreatorNameReadOnly:a}=n;if(e.creatorName&&e.creatorName!==i&&a)throw new r.p2("The annotation creator name is different from the one set on the JWT.");F(e);let s=e.withMutations((t=>{t.merge((0,h.lx)(n.set("currentItemPreset",null))),["name","id","creatorName","createdAt","updatedAt"].map((n=>e[n]&&t.set(n,e[n])))}));if(e instanceof l.x_&&e.group)throw new r.p2("If you want to define the `group` of this widget annotation, pass it to the corresponding form field instead. Widget annotations inherit the `group` from their form field.");if(s instanceof l.x_&&(s=s.delete("group")),e instanceof l.x_){const n=this.getState,o=t?.some((t=>t instanceof w.Wi&&t.name===e.formFieldName));if(o&&!!T(n(),e))throw new r.p2(`The widget annotation can't be created because the form field it'll be created with has a duplicated form field name '${e.formFieldName}'. Please ensure the form field name is unique.`);setTimeout((()=>{k(s instanceof l.x_,"Expected widget annotation");null==T(n(),s)&&(this.dispatch((0,f.hQ)(s)),(0,r.ZK)(`Widget orphan: The widget annotation has been deleted because no form was field found with the name ${s.formFieldName} after 500ms. Please ensure that once instance.create() resolves, a corresponding form field is created with instance.create(). (See: https://pspdfkit.com/api/web/PSPDFKit.Instance.html#create)`))}),500)}return s=N(s),s}));return this.dispatch((0,f.WL)(o.filter((e=>!(e instanceof Error))))),this.autoSave(),(0,C.s)(o)}async update(e){const t=this.getState(),n=e.map((e=>{I(t,e,"update"),k("string"==typeof e.id,"The annotation you passed to Instance.update() has no id.\nPlease use Instance.create() first to assign an id.");const n=t.annotations.get(e.id);k(n,"An annotation that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this annotation was skipped."),k(!(e instanceof l.sK&&e.imageAttachmentId!==t.annotations.get(e.id)?.imageAttachmentId),"Changing the imageAttachmentId of an annotation is not allowed."),k(t.backend),t.backend.isCollaborationPermissionsEnabled()||e.group===n.group&&e.isEditable===n.isEditable&&e.isDeletable===n.isDeletable&&e.canSetGroup===n.canSetGroup||(e=e.set("group",n.group).set("isEditable",n.isEditable).set("isDeletable",n.isDeletable).set("canSetGroup",n.canSetGroup),(0,r.ZK)("`group`, `isEditable`, `isDeletable` and `canSetGroup` are only relevant when Collaboration Permissions are enabled in server backed setup. You do not have it enabled so these values are set to `undefined`."));if(!e.delete("group").equals(n.delete("group"))&&!(0,x.CM)(n,t))throw new r.p2("You don't have permission to update this annotation.");if(e instanceof l.x_&&e.group!==n.group)throw new r.p2("The `group` property of widget annotations is read only and can't be updated directly. If you want to do that you should update the `group` property of the connected form field and this annotation will inherit that `group`.");if(e.group!==n.group&&!(0,x.uW)(n,t))throw new r.p2("You don't have permission to update the `group` of this annotation.");if(e.isEditable!==n.isEditable||e.isDeletable!==n.isDeletable||e.canSetGroup!==n.canSetGroup)throw new r.p2("You can't update `isEditable`, `canSetGroup` or `isDeletable` since they are read only properties which depend on the `group` property.");if(e.creatorName!==n.creatorName&&t.annotationCreatorNameReadOnly)throw new r.p2("You can't change the creatorName of an annotation if it was already set on the JWT.");const o=(e=N(e)).set("updatedAt",new Date);return F(o),o}));return n.length>0&&(0,i.dC)((()=>{n.forEach((e=>{e instanceof Error||this.dispatch((0,f.FG)(e))})),this.autoSave()})),(0,C.s)(n)}async delete(e){const t=this.getState(),n=e.map((e=>{I(t,e,"delete");const n=t.annotations.get(e.id);if(k(n,`No annotation with id ${e.id} found.`),!(0,x.Kd)(n,t))throw new r.p2("You don't have permission to delete this annotation.");return e}));return n.length>0&&(0,i.dC)((()=>{n.forEach((e=>{e instanceof Error||this.dispatch((0,f.hQ)(e))})),this.autoSave()})),(0,C.s)(n)}async ensureChangesSaved(e){k("string"==typeof e.id,"The annotation you passed to Instance.ensureChangesSaved() has no id.\nPlease use Instance.create() first to assign an id.");const{annotationManager:t}=this.getState();return k(t),await t.ensureObjectSaved(e)}async getObjectById(e){k("string"==typeof e,"The supplied id is not a valid id.");const{annotations:t,features:n}=this.getState();return(0,b.Vz)(n)?t.get(e):null}}function T(e,t){const n=e.annotations.get(t.id);let r=t.formFieldName;return null!=n&&null!=n.formFieldName&&(r=n.formFieldName),null!=r?e.formFields.get(r):null}function I(e,t,n){const{features:o}=e;if(!(0,b.Vz)(o)){if(!(t instanceof c.Zc||t instanceof l.sK))throw new r.p2(`Annotations: ${z}`);if(!0===t.isSignature&&!o.includes(E.q.ELECTRONIC_SIGNATURES))throw new r.p2("Annotations: The API you're trying to use requires either an electronic signatures or annotation editing license. Electronic Signatures and Annotation Editing are components of PSPDFKit for Web and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/annotations/introduction-to-annotations/");if(!t.isSignature||!o.includes(E.q.ELECTRONIC_SIGNATURES))throw new r.p2(`Annotations: ${z}`)}let i="";t.id&&(i=` with id "${t.id}"`),t instanceof l.x_&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{features:n}=e;k(n.includes(E.q.FORM_DESIGNER),(t||"")+y.RB),k((0,b.k_)(e.backend),P)}(e,`Tried to ${n} a widget annotation${i}. Widget annotations are part of forms. `),k(!(t instanceof u.Z)||o.includes(E.q.REDACTIONS),`Tried to ${n} a redaction annotation${i}. ${p.q}`),k(!(t instanceof c.UX&&t.isMeasurement())||o.includes(E.q.MEASUREMENT_TOOLS),`Tried to ${n} a measurement annotation${i}. ${D}`)}function M(e){k(e instanceof c.UL,"`boundingBox` must be an instance of PSPDFKit.Geometry.Rect");for(const[t,n]of e)k("number"==typeof n,`invalid value \`${n}\` for \`boundingBox.${t}\``)}function R(e){k(e instanceof c.E9,"`startPoint` and `endPoint` must be instances of PSPDFKit.Geometry.Point");for(const[t,n]of e)k("number"==typeof n,`invalid value \`${n}\` for \`point.${t}\``)}function F(e){if(k(e instanceof l.q6,"Invalid annotation"),k("number"==typeof e.pageIndex,"`pageIndex` must be a number"),k("number"==typeof e.opacity,"`opacity` must be a number"),k("boolean"==typeof e.noView,"`noView` must be a boolean"),k("boolean"==typeof e.noPrint,"`noPrint` must be a boolean"),k("boolean"==typeof e.noZoom,"`noZoom` must be a boolean"),k("boolean"==typeof e.hidden,"`hidden` must be a boolean"),k(null==e.customData||(0,r.PO)(e.customData)&&(0,r.AK)(e.customData),"`customData` must be a serializable object"),M(e.boundingBox),"text"in e&&null!=e.text&&(k("object"==typeof e.text&&null!==e.text,"`text` is not an object with properties `format` and `value`"),k("plain"===e.text.format||"xhtml"===e.text.format,"Invalid text format"),k("string"==typeof e.text.value,"`text.value` must be a string")),e instanceof c.Qi&&k("plain"===e.text.format,"Invalid text format. Only `plain` format is supported"),e instanceof l.x_){if(e.additionalActions)for(const[t,n]of Object.entries(e.additionalActions))k("onBlur"===t||"onFocus"===t||"onInput"===t||"onFormat"===t||"onChange"===t,`Invalid attribute ${t} in \`additionalActions\`. Supported attributes: \`onBlur\`, \`onFocus\`, \`onInput\`, \`onFormat\`, \`onChange\``),k(n instanceof _.b,`Invalid attribute type of ${t} in \`additionalActions\`. ${t} must be of type \`PSPDFKit.Actions.JavaScriptAction\``);k("string"==typeof e.formFieldName&&e.formFieldName.length>0,"Annotation attribute `formFieldName` must be of type `string` and larger than 0 characters")}if((e instanceof l.x_||e instanceof l.gd)&&(null!=e.isItalic&&k("boolean"==typeof e.isItalic,"Annotation attribute `isItalic` must be of type `boolean`"),null!=e.isBold&&k("boolean"==typeof e.isBold,"Annotation attribute `isBold` must be of type `boolean`"),null!=e.verticalAlign&&k("string"==typeof e.verticalAlign&&("top"===e.verticalAlign||"center"===e.verticalAlign||"bottom"===e.verticalAlign),"Annotation attribute `verticalAlign` must be of type `string` and either `top`, `center`, or `bottom`"),null!=e.horizontalAlign&&k("string"==typeof e.horizontalAlign&&("left"===e.horizontalAlign||"center"===e.horizontalAlign||"right"===e.horizontalAlign),"Annotation attribute `horizontalAlign` must be of type `string` and either `left`, `center`, or `right`"),null!=e.borderWidth&&k("number"==typeof e.borderWidth,"Annotation attribute `borderWidth` must be of type `number`"),null!=e.borderStyle&&k(e.borderStyle===S.N.solid||e.borderStyle===S.N.dashed||e.borderStyle===S.N.beveled||e.borderStyle===S.N.inset||e.borderStyle===S.N.underline,"Annotation attribute `borderStyle` must be one of `solid`, `dashed`, `beveled`, `inset`, `underline`"),null!=e.font&&k("string"==typeof e.font&&e.font.length>0,"Annotation attribute `font` must be of type `string` and larger than 0 characters."),null!=e.fontSize&&k("number"==typeof e.fontSize||"auto"===e.fontSize,"Annotation attribute `fontSize` must be of type `number` or the string `auto`")),["fillColor","backgroundColor","fontColor","color","borderColor","strokeColor"].forEach((t=>{e.has(t)&&null!==e.get(t)&&k(e.get(t)instanceof c.Il,`\`${t}\` must be an instance of PSPDFKit.Color`)})),e.has("lines")&&(k("lines"in e&&e.lines instanceof o.aV,"lines must be an instance of PSPDFKit.Immutable.List"),e.lines.forEach(((e,t)=>{k(e instanceof o.aV,"line must be an instance of PSPDFKit.Immutable.List"),e.some(((e,n)=>{k(e instanceof m.Z,`found an invalid DrawingPoint at index ${n} for line ${t}`)}))}))),e instanceof l.On&&k(e.has("rects"),"Text markup annotations must have `rects`"),e instanceof l.GI&&k(g.pY[e.stampType],`Unknown stamp annotation stampType: \`${e.stampType}\``),e.has("rects")&&(k("rects"in e&&e.rects instanceof o.aV,"rects must be an instance of `PSPDFKit.Immutable.List`"),k(e.rects.size>0,"rects must be contain at least one rect"),e.rects.forEach(M)),e.has("startPoint")&&(k("startPoint"in e&&e.startPoint instanceof c.E9,"startPoint must be an instance of `PSPDFKit.Immutable.Point`"),R(e.startPoint)),e.has("endPoint")&&(k("endPoint"in e&&e.endPoint instanceof c.E9,"endPoint must be an instance of `PSPDFKit.Immutable.Point`"),R(e.endPoint)),e.has("rotation")){const t=e.rotation;e instanceof l.x_?k(0===t||90===t||180===t||270===t,"`rotation` must be of type `number` and one of 0, 90, 180, or 270."):(e instanceof l.gd||e instanceof l.GI||e instanceof l.sK)&&k(Math.abs(t)%1==0,"`rotation` must be an integer")}}function N(e){let t=e;if(e instanceof l.gd&&"xhtml"===e.text.format){let n,o,i;k(t instanceof l.gd,"Expected TextAnnotation");try{n=(new DOMParser).parseFromString(e.text.value,"text/html")}catch(e){throw new r.p2("TextAnnotation text value must be a valid xhtml string.")}if(n=n.firstChild,"parsererror"===n.nodeName)throw new r.p2("TextAnnotation text value must contain a valid xhtml string.");"#comment"===n.nodeName.toLowerCase()&&(n=n.nextSibling),"html"===n.nodeName.toLowerCase()&&(n=n.firstChild),"head"===n.nodeName.toLowerCase()&&(n=n.nextSibling),"body"===n.nodeName.toLowerCase()&&(n=n.firstChild),"div"===n.nodeName.toLowerCase()&&(n=n.firstChild,o=document.createElement("div")),"p"!==n.nodeName.toLowerCase()?((0,r.ZK)("TextAnnotation text value must be wrapped in <p> tags if the format is `xhtml`."),i=document.createElement("p"),i.appendChild(n),o?o.appendChild(i):o=i):o=n,t=t.set("text",{format:"xhtml",value:s().sanitize(o.outerHTML)}),e.fontColor&&((0,r.ZK)('TextAnnotation fontColor is not supported for xhtml formatted text. You should add inline span element to the text value instead.\n\n      Example: <p><span style="color: #ff0000;">your text</span></p>'),t=t.set("fontColor",null)),e.text.value||(t=t.set("text",{format:"xhtml",value:'<p><span style="color: #000000"></span></p>'}))}return t}},20993:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(15359);class o{constructor(e){this._objectManager=e}create(e,t){return Promise.reject(new r.p2("create() is not implemented"))}update(e,t){return Promise.reject(new r.p2("update() is not implemented"))}delete(e){return Promise.reject(new r.p2("delete() is not implemented"))}getObjectById(e){return Promise.resolve(null)}ensureChangesSaved(e){throw new r.p2("ensureChangesSaved() is not implemented")}hasUnsavedChanges(){return!!this._objectManager&&this._objectManager.hasUnsavedChanges()}manualSave(e){return this._objectManager?this._objectManager.manualSave(e):Promise.resolve()}autoSave(){this._objectManager&&this._objectManager.autoSave()}getEventEmitter(){return this._objectManager?this._objectManager.eventEmitter:null}lockSave(){return this._objectManager?this._objectManager.lockSave():()=>{}}}},5130:(e,t,n)=>{"use strict";n.d(t,{BZ:()=>_,Bl:()=>x,DR:()=>b,RB:()=>w,_1:()=>z,fu:()=>C});var r=n(34997),o=n(35369),i=n(15359),a=n(67366),s=n(79724),l=n(43069),c=n(12705),u=n(77897),d=n(48169),p=n(20993),h=n(72127),f=n(27922),m=n(21713),g=n(45249),v=n(1858),y=n(44550);const b="The API you're trying to use requires a forms license. Forms is a component of PSPDFKit for Web and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/forms/introduction-to-forms/",w="The API you're trying to use requires a license that includes the Form Creator component on standalone mode or with PSPDFKit Instant. This is a separate component of PSPDFKit for Web and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/forms/introduction-to-forms/",x="The API you're trying to use is only available when using the standalone mode or with PSPDFKit Instant.",_="The API you're trying to use is not available when `disableForms` is set to `true`.",S=(0,s.Z)("Forms");class C extends p.I{constructor(e,t){super(t().formFieldManager),this.dispatch=e,this.getState=t}async create(e,t){const n=[],i=this.getState();E(i,"Tried to create a form field. ");const s=e.map((e=>{try{const o=e.id;"string"==typeof o&&S(!(0,l.CL)(i,o),`Form field id (${o}) is already used.`),k(e,i,t);let a="string"==typeof o?e:e.set("id",(0,r.SK)());if(S(i.backend),S(i.formFieldValueManager),i.backend.isCollaborationPermissionsEnabled()&&!e.group&&i.group!==i.backend.getDefaultGroup()&&(a=a.set("group",i.group)),void 0!==e.value||void 0!==e.values){const t=new d.Z({name:e.name,value:void 0!==e.value?e.value:e.values});n.push(t)}return a}catch(e){return e}}));return(0,a.dC)((()=>{s.forEach((e=>{e instanceof Error||(this.dispatch((0,u.kW)(e)),this.autoSave())}))})),n.forEach((e=>{this.dispatch((0,u.xW)((0,o.aV)([e]))),S(i.formFieldValueManager),i.formFieldValueManager.createObject(e),i.formFieldValueManager.autoSave()})),(0,m.s)(s)}async update(e,t){const n=this.getState();S(n.formFieldValueManager);const r=e.map((e=>{try{E(n,"Tried to update a form field. "),S("string"==typeof e.id,"The form field you passed to Instance.update() has no id.\n      Please use Instance.create() first to assign an id."),k(e,n,t);const r=(0,l.CL)(n,e.id);S(r,"A form field that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this form field was skipped."),S(n.backend),n.backend.isCollaborationPermissionsEnabled()||e.group===r.group&&e.isEditable===r.isEditable&&e.isDeletable===r.isDeletable&&e.canSetGroup===r.canSetGroup&&e.isFillable===r.isFillable||(e=e.set("group",r.group).set("isEditable",r.isEditable).set("isDeletable",r.isDeletable).set("canSetGroup",r.canSetGroup).set("isFillable",r.isFillable),(0,i.ZK)("`group`, `isEditable`, `isDeletable`, `isFillable` and `canSetGroup` are only relevant when Collaboration Permissions are enabled in server backed setup. You do not have it enabled so these values are set to `undefined`."));if(!e.delete("group").equals(r.delete("group"))&&!(0,h.iR)(r,n))throw new i.p2("You don't have permission to update this form field.");if(e.group!==r.group&&!(0,h.uW)(r,n))throw new i.p2("You don't have permission to update the `group` of this form field.");if(e.isEditable!==r.isEditable||e.isDeletable!==r.isDeletable||e.canSetGroup!==r.canSetGroup||e.isFillable!==r.isFillable)throw new i.p2("You can't update `isFillable`, `isEditable`, `canSetGroup` or `isDeletable` since they are read only properties which depend on the `group` property.");return e}catch(e){return e}}));return(0,a.dC)((()=>{r.forEach((e=>{e instanceof Error||(this.dispatch((0,u.vK)(e)),this.autoSave())}))})),(0,m.s)(r)}async delete(e){const t=this.getState();E(t,"Tried to delete a form field. ");const n=e.map((e=>{try{const n=(0,l.CL)(t,e.id);if(S(n,`There is no form field with id '${e.id}'`),S(t.formFieldValueManager),!(0,h.ev)(n,t))throw new i.p2("You don't have permission to delete this form field.");return void 0===n.value&&void 0===n.values||(t.formFieldValueManager?.deleteObject(new d.Z({name:n.name,value:void 0!==n.value?n.value:n.values})),t.formFieldValueManager.autoSave()),e}catch(e){return e}}));return(0,a.dC)((()=>{n.forEach((e=>{e instanceof Error||(this.dispatch((0,u.Wh)(e)),this.autoSave())}))})),(0,m.s)(n)}async ensureChangesSaved(e){S("string"==typeof e.id,"The form field you passed to Instance.ensureSaved() has no id.\n Please use Instance.create() first to assign an id.");const{formFieldManager:t}=this.getState();return S(t),await t.ensureObjectSaved(e)}async getObjectById(e){return S("string"==typeof e,"The supplied id is not a valid id."),(0,l.CL)(this.getState(),e)}}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{features:n,formsEnabled:r}=e;S(n.includes(y.q.FORMS),(t||"")+b),S(r,(t||"")+_),S(n.includes(y.q.FORM_DESIGNER),(t||"")+w),S((0,c.k_)(e.backend),x)}function k(e,t,n){if(e.additionalActions)for(const[t,n]of Object.entries(e.additionalActions))S("onCalculate"===t||"onChange"===t||"onFormat"===t||"onInput"===t,`Invalid attribute ${t} in \`additionalActions\`. Supported attributes: \`onCalculate\`, \`onChange\`, \`onFormat\`, \`onInput\``),S(n instanceof f.b,`Invalid attribute type of ${t} in \`additionalActions\`. ${t} must be of type \`PSPDFKit.Actions.JavaScriptAction\``);e.annotationIds&&(S(e.annotationIds instanceof o.aV,"Invalid form field `annotationIds` attribute. `annotationIds` must be of type `PSPDFKit.Immutable.List`"),S(e.annotationIds.every((e=>"string"==typeof e)),"Invalid form field `annotationIds` attribute. `annotationIds` should only contain string values."),e.annotationIds.forEach((e=>{!function(e,t,n){const r=e.get("annotations");if(!((t?.find((e=>e instanceof g.q6&&e.id===n))||r.get(n)||r.find((e=>e?.pdfObjectId?.toString()===n)))instanceof g.x_))throw new i.p2("Invalid form field `annotationIds` attribute. `annotationIds` should only contain references to widget annotations.")}(t,n,e)}))),null!=e.id&&S("string"==typeof e.id&&e.id.length>0,"Invalid form field `id` attribute. `id` must be of type `string` and larger than 0 characters."),null!=e.label&&S("string"==typeof e.label,"Invalid form field `label` attribute. `label` must be of type `string`"),S("string"==typeof e.name&&e.name.length>0,"Invalid form field `name` attribute. `name` must be of type `string` and larger than 0 characters."),null!=e.noExport&&S("boolean"==typeof e.noExport,"Invalid form field `noExport` attribute. `noExport` must be of type `boolean`"),null!=e.pdfObjectId&&S("number"==typeof e.pdfObjectId,"Invalid form field `pdfObjectId` attribute. `pdfObjectId` must be of type `number`"),null!=e.readOnly&&S("boolean"==typeof e.readOnly,"Invalid form field `readOnly` attribute. `readOnly` must be of type `boolean`"),null!=e.required&&S("boolean"==typeof e.required,"Invalid form field `required` attribute. `required` must be of type `boolean`")}function z(e,t){e instanceof v.$o?S("string"==typeof(t=t||""),`The type of action value for a TextFormField ${e.name} is ${typeof t}, but has to be a string`):e instanceof v.Dz||e instanceof v.rF?S(t instanceof o.aV,`The type of action value for the ${e instanceof v.Dz?"ChoiceFormField":"CheckBoxFormField"} ${e.name} is ${typeof t}, but has to be a List of strings`):e instanceof v.XQ?S("string"==typeof t||null===t,`The type of action value for a RadioButtonFormField ${e.name} is ${typeof t}, but has to either be a string or null`):e instanceof v.R0||e instanceof v.Yo||S(!1,`Cannot set form field value for ${e.name}: unknown form field type`)}},60209:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});class r{constructor(e,t){this.element=e,this.release=t}}},96326:(e,t,n)=>{"use strict";n.d(t,{a:()=>w});var r=n(96156),o=n(35369),i=n(15359),a=n(47120);const s="CREATED",l="UPDATED",c="DELETED";var u=n(46364),d=n(79685),p=n(79724),h=n(34997);class f{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};(0,r.Z)(this,"_locks",(0,o.l4)()),this._onUnlockCallback=e}lock(){const e=(0,h.SK)();return this._locks=this._locks.add(e),()=>{this._locks=this._locks.remove(e),this._locks.isEmpty()&&this._onUnlockCallback()}}isLocked(){return!this._locks.isEmpty()}}var m=n(2549);const g=(0,p.Z)("SaveModeQueue");class v{constructor(e){let{autoSaveMode:t,flushCreateObject:n,flushUpdateObject:i,flushDeleteObject:s,validateObject:l,getObjectId:c,syncChanges:u=(async()=>{})}=e;(0,r.Z)(this,"eventEmitter",new d.Z(["willSave","didSave","saveStateChange"])),(0,r.Z)(this,"_modifications",(0,o.D5)()),(0,r.Z)(this,"_inFlightModifications",(0,o.D5)()),(0,r.Z)(this,"_savedObjects",(0,o.l4)()),(0,r.Z)(this,"_ensureSavedRequests",(0,o.D5)()),(0,r.Z)(this,"_prevHasUnsavedObjects",!1),(0,r.Z)(this,"_saveLock",new f((()=>{if(this._autoSaveMode===a.u.IMMEDIATE||!this._saveRequests.isEmpty()){const e=this._autoSaveMode===a.u.IMMEDIATE||this._saveRequests.some((e=>e.syncChanges)),t=this._saveRequests.some((e=>e.manualSave)),n=this._saveRequests;this._saveRequests=this._saveRequests.clear(),this._save(e,t).then((()=>{n.forEach((e=>{e.resolve()}))})).catch((e=>{n.forEach((t=>{t.reject(e)}))}))}}))),(0,r.Z)(this,"_saveRequests",(0,o.aV)()),this._autoSaveMode=t,this._flushCreateObject=n,this._flushUpdateObject=i,this._flushDeleteObject=s,this._validateObject=l,this._getObjectId=c,this._syncChanges=u}lockSave(){return this._saveLock.lock()}assertSaveLocked(){g(this._saveLock.isLocked(),"This method can't be used without active save lock, use saveLock() to acquire the lock.")}createObject(e){this.assertSaveLocked();const t=this._getObjectId(e);this._setModificationsAndNotifyChange(this._modifications.set(t,{object:e,type:s}))}updateObject(e){this.assertSaveLocked();const t=this._getObjectId(e),n=this._modifications.get(t),r=n&&n.type===s&&!this._inFlightModifications.has(t);this._setModificationsAndNotifyChange(this._modifications.set(t,{object:e,type:r?s:l}))}deleteObject(e){this.assertSaveLocked();const t=this._getObjectId(e),n=this._modifications.get(t);n&&n.type===s?this._setModificationsAndNotifyChange(this._modifications.delete(t)):this._setModificationsAndNotifyChange(this._modifications.set(t,{object:e,type:c}))}enqueueInFlightModification(e){const t=this._getObjectId(e.object);return this._inFlightModifications.has(t)?this._inFlightModifications=this._inFlightModifications.updateIn([t],(t=>t.push(e))):this._inFlightModifications=this._inFlightModifications.set(t,(0,o.aV)([e])),this._notifySaveStateChange(),()=>{this._inFlightModifications=this._inFlightModifications.updateIn([t],(t=>t.filter((t=>t!==e))));const n=this._inFlightModifications.get(t);n&&0===n.size&&(this._inFlightModifications=this._inFlightModifications.delete(t)),this._notifySaveStateChange()}}clearQueueForObject(e){this._setModificationsAndNotifyChange(this._modifications.delete(e))}queuedObjectType(e){const t=this._inFlightModifications.get(e);if(t&&t.size>0)return t.last().type;{const t=this._modifications.get(e);return t?t.type:null}}hasUnsavedObjects(){return this._modifications.size>0||this._inFlightModifications.size>0}autoSave(){this._autoSaveMode===a.u.INTELLIGENT&&this.manualSave(!0).catch((()=>{}))}manualSave(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._save(e,!0)}_save(e,t){return new Promise(((n,r)=>{if(this._saveLock.isLocked())this._saveRequests=this._saveRequests.push({resolve:n,reject:r,syncChanges:e,manualSave:t});else{const a=this._modifications.filter((e=>{let{type:t}=e;return t!==c})).filter((e=>{let{object:t}=e;return!this._validateObject(t)}));t&&a.forEach((e=>{(0,i.ZK)(`Can not save invalid object with ID: ${this._getObjectId(e.object)}.\n  Make sure to remove or update this object, before trying to save again.`)}));let d=(0,o.aV)();const p=this._modifications.filter(((e,t)=>!a.has(t))),h=p.map((e=>{let{object:t,type:n}=e;const r={object:t,type:n};let o;switch(d=d.push(this.enqueueInFlightModification(r)),n){case s:o=this._flushCreateObject(t);break;case l:o=this._flushUpdateObject(t);break;default:o=this._flushDeleteObject(t)}return o.then((()=>{this._markModificationAsSaved(r)})).catch((e=>{throw y(e),e}))})).valueSeq().toArray();if(this._setModificationsAndNotifyChange(a,!1),e&&h.length>0&&h.push(this._syncChanges().catch((e=>{throw y(e),e}))),this.eventEmitter.emit("willSave"),0===h.length)return this.eventEmitter.emit("didSave"),void n();let f;(0,u.jK)(h).catch((t=>{const n=p.toList(),r=e?t.pop():null,i=t.map(((e,t)=>{const r=n.get(t);if(e&&r)return{error:e,object:r.object,modificationType:r.type}})).filter(Boolean);throw f=(0,o.aV)(i),(0,m.h)(i,Boolean(r),r?r.message:null)})).finally((()=>{d.forEach((e=>{e()}));let e=p;f&&(e=e.withMutations((e=>{g(f),f.forEach((t=>{const n=this._getObjectId(t.object);e.remove(n)}))}))),this._resolveEnsureSavedRequests(e.map((e=>e.object)).valueSeq().toArray()),f&&this._rejectEnsureSavedRequests(f.toArray()),this.eventEmitter.emit("didSave")})).then((()=>{n()})).catch(r)}}))}markObjectsAsSaved(e){this._savedObjects=this._savedObjects.union(e)}isSaved(e){return this._savedObjects.has(e)&&null==this.queuedObjectType(e)}ensureObjectSaved(e){return new Promise(((t,n)=>{const r=this._getObjectId(e);this.isSaved(r)?t(e):this._ensureSavedRequests=this._ensureSavedRequests.withMutations((e=>{const i=e.get(r);i?e.set(r,i.push({resolve:t,reject:n})):e.set(r,(0,o.aV)([{resolve:t,reject:n}]))}))}))}_resolveEnsureSavedRequests(e){this._ensureSavedRequests=this._ensureSavedRequests.withMutations((t=>{e.forEach((e=>{const n=this._getObjectId(e),r=t.get(n);r&&this.isSaved(n)&&(r.forEach((t=>{let{resolve:n}=t;n(e)})),t.delete(n))}))}))}_rejectEnsureSavedRequests(e){this._ensureSavedRequests=this._ensureSavedRequests.withMutations((t=>{e.forEach((e=>{const n=this._getObjectId(e.object),r=t.get(n);r&&(r.forEach((t=>{let{reject:n}=t;n(e.error)})),t.delete(n))}))}))}_markModificationAsSaved(e){const t=this._getObjectId(e.object);switch(e.type){case"CREATED":case"UPDATED":this._savedObjects=this._savedObjects.add(t);break;case"DELETED":this._savedObjects=this._savedObjects.remove(t)}}_setModificationsAndNotifyChange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._modifications=e,t&&this._notifySaveStateChange()}_notifySaveStateChange(){const e=this.hasUnsavedObjects();this._prevHasUnsavedObjects!==e&&(this._prevHasUnsavedObjects=e,this.eventEmitter.emit("saveStateChange",e))}}function y(e){(0,i.vU)(e)}var b=n(24382);class w{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.u.IMMEDIATE,n=arguments.length>2?arguments[2]:void 0;(0,r.Z)(this,"eventEmitter",new d.Z(this._getSupportedEvents())),(0,r.Z)(this,"_createdObjects",(0,o.D5)()),(0,r.Z)(this,"_updatedObjects",(0,o.D5)()),(0,r.Z)(this,"_deletedObjects",(0,o.D5)()),(0,r.Z)(this,"_crudEventsLock",new f((()=>{(this._createdObjects.size||this._updatedObjects.size||this._deletedObjects.size)&&this.eventEmitter.emit("change"),this._createdObjects.size&&(this.eventEmitter.emit("create",(0,o.aV)(this._createdObjects.values())),this._createdObjects=this._createdObjects.clear()),this._updatedObjects.size&&(this.eventEmitter.emit("update",(0,o.aV)(this._updatedObjects.values())),this._updatedObjects=this._updatedObjects.clear()),this._deletedObjects.size&&(this.eventEmitter.emit("delete",(0,o.aV)(this._deletedObjects.values())),this._deletedObjects=this._deletedObjects.clear())}))),this._callbacks=e,this._autoSaveMode=t,null!=n&&(this.eventEmitter=n),this._saveModeQueue=new v({autoSaveMode:t,flushCreateObject:async e=>{try{await this._callbacks.createBackendObject(e.object,e.additionalFields)}catch(t){throw this._callbacks.deleteStoreObjects((0,o.l4)([e.id])),this.eventEmitter.emit("change"),this.eventEmitter.emit("delete",(0,o.aV)([e.object])),t}this._callbacks.refresh()},flushUpdateObject:async e=>{await this._callbacks.updateBackendObject(e.object,e.additionalFields),this._callbacks.refresh()},flushDeleteObject:async e=>{try{await this._callbacks.deleteBackendObject(e.object,e.additionalFields)}catch(t){throw this._callbacks.createStoreObjects((0,o.aV)([e.object])),this.eventEmitter.emit("change"),this.eventEmitter.emit("create",(0,o.aV)([e.object])),t}this._callbacks.refresh()},validateObject:e=>this._callbacks.validateObject(e.object),getObjectId:e=>e.id,syncChanges:()=>this._callbacks.syncChanges()}),this._saveModeQueue.eventEmitter.on("willSave",(()=>{this.eventEmitter.emit("change"),this.eventEmitter.emit("willSave")})),this._saveModeQueue.eventEmitter.on("didSave",(()=>{this.eventEmitter.emit("change"),this.eventEmitter.emit("didSave")})),this._saveModeQueue.eventEmitter.on("saveStateChange",(e=>this.eventEmitter.emit("saveStateChange",e)))}autoSave(){this._saveModeQueue.autoSave()}manualSave(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._saveModeQueue.manualSave(e).catch((e=>{throw(0,i.kG)(e instanceof m.V),e.reason&&(e.reason=e.reason.map((e=>({error:e.error,modificationType:e.modificationType,object:e.object.object})))),e}))}ensureObjectSaved(e){return this._saveModeQueue.ensureObjectSaved(this._createSaveQueueObject(this._callbacks.getObjectId(e),e)).then((e=>e.object))}hasUnsavedChanges(){return this._saveModeQueue.hasUnsavedObjects()}lockSave(){const e=this._crudEventsLock.lock(),t=this._saveModeQueue.lockSave();return()=>{t(),e()}}createObject(e,t){const n=this.lockSave();try{const r=this._callbacks.getObjectId(e);(0,i.kG)(r);const o=this._saveModeQueue.queuedObjectType(r),a=this._saveModeQueue.isSaved(r)||o===l,c=o===s;a||c?(this._callbacks.onUpdate&&this._callbacks.onUpdate(e,t),this._saveModeQueue.updateObject(this._createSaveQueueObject(r,e,t)),this._updatedObjects=this._updatedObjects.set(r,e)):(this._callbacks.onCreate&&this._callbacks.onCreate(e,t),this._saveModeQueue.createObject(this._createSaveQueueObject(r,e,t)),this._createdObjects=this._createdObjects.set(r,e))}finally{n()}}createObjects(e,t){const n=this.lockSave();try{e.forEach(((e,n)=>{const r=this._callbacks.getObjectId(e);(0,i.kG)(r);const o=this._saveModeQueue.queuedObjectType(r);this._saveModeQueue.isSaved(r)||o===l||o===s?(this._callbacks.onUpdate&&this._callbacks.onUpdate(e,t[n]),this._saveModeQueue.updateObject(this._createSaveQueueObject(r,e,t[n])),this._updatedObjects=this._updatedObjects.set(r,e)):(this._callbacks.onCreate&&this._callbacks.onCreate(e,t[n]),this._saveModeQueue.createObject(this._createSaveQueueObject(r,e,t[n])),this._createdObjects=this._createdObjects.set(r,e))}))}finally{n()}}updateObject(e,t){this.createObject(e,t)}deleteObject(e,t){const n=this.lockSave();try{const r=this._callbacks.getObjectId(e);(0,i.kG)(r);const o=this._saveModeQueue.queuedObjectType(r),a=this._saveModeQueue.isSaved(r)||o===l,c=o===s;this._callbacks.onDelete&&this._callbacks.onDelete(e,t),(a||c)&&this._saveModeQueue.deleteObject(this._createSaveQueueObject(r,e,t)),this._deletedObjects=this._deletedObjects.set(r,e)}finally{n()}}backendObjectsCreated(e,t,n){const r=t===b.y,o=e.map((e=>this._callbacks.getObjectId(e))).toArray();this._saveModeQueue.markObjectsAsSaved(o),this._callbacks.createStoreObjects(e,n),this.eventEmitter.emit("change"),this.eventEmitter.emit(r?"load":"create",e),o.forEach((e=>{this._saveModeQueue.clearQueueForObject(e)})),!r&&this._callbacks.refresh()}backendObjectsUpdated(e,t){this._callbacks.updateStoreObjects(e),t||(this.eventEmitter.emit("change"),this.eventEmitter.emit("update",e));e.map((e=>this._callbacks.getObjectId(e))).toArray().forEach((e=>{this._saveModeQueue.clearQueueForObject(e)})),this._callbacks.refresh()}backendObjectsDeleted(e){const t=e.map((e=>this._callbacks.getObjectById(e))).filter(Boolean).toList();this._callbacks.deleteStoreObjects(e),e.forEach((e=>{this._saveModeQueue.clearQueueForObject(e)})),this.eventEmitter.emit("change"),this.eventEmitter.emit("delete",t),this._callbacks.refresh()}_getSupportedEvents(){return["change","willSave","didSave","load","create","update","delete","saveStateChange"]}_createSaveQueueObject(e,t,n){return void 0===n?{id:e,object:t}:{id:e,object:t,additionalFields:n}}}},96723:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(94809),o=n(68944);class i{constructor(e,t){this.identifier=this.url=e,this.token=t,this.aborted=!1}request(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{method:"GET"};const{method:t,data:n=null}=e,i=new XMLHttpRequest;return i.open(t,this.url,!0),i.setRequestHeader("X-PSPDFKit-Token",this.token),i.setRequestHeader("PSPDFKit-Platform","web"),i.setRequestHeader("PSPDFKit-Version",(0,o.oM)()),new Promise(((e,t)=>{i.onreadystatechange=()=>{this.aborted||4===i.readyState&&((0,r.vu)(i.status)?e(JSON.parse(i.responseText)):t({message:i.responseText}))},this.httpRequest=i,i.send(n instanceof FormData?n:"object"==typeof n?JSON.stringify(n):void 0)}))}abort(){this.httpRequest&&(this.aborted=!0,this.httpRequest.abort(),this.httpRequest=null)}}},55696:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(96156),o=n(15359),i=n(96029),a=n(98492),s=n(24456);class l{constructor(e){this.annotation=e}toJSON(){return{id:this.annotation.id,name:this.annotation.name,subject:this.annotation.subject,v:l.VERSION,pdfObjectId:this.annotation.pdfObjectId,pageIndex:this.annotation.pageIndex,bbox:(0,a.u)(this.annotation.boundingBox),opacity:this.annotation.opacity,flags:this.serializeFlags(),action:this.annotation.action&&(0,i.vP)(this.annotation.action),note:this.annotation.note,createdAt:this.annotation.createdAt.toISOString(),updatedAt:this.annotation.updatedAt.toISOString(),creatorName:this.annotation.creatorName,customData:this.annotation.customData,isCommentThreadRoot:this.annotation.isCommentThreadRoot,isAnonymous:this.annotation.isAnonymous,...this.annotation.blendMode&&"normal"!==this.annotation.blendMode?{blendMode:this.annotation.blendMode}:null,...this.annotation.APStreamCache?.cache||this.annotation.APStreamCache?.attach?{APStreamCache:this.annotation.APStreamCache}:null,...(0,s.Ut)(this.annotation)}}static fromJSON(e,t,n){(0,o.kG)(null==t.name||"string"==typeof t.name,"`name` must be of type `string`"),(0,o.kG)(t.v<=l.VERSION,"Version Unknown"),(0,o.kG)(void 0!==e&&"number"!=typeof e,"`id` must be of type `string`"),(0,o.kG)("object"==typeof t.bbox,"Missing `bbox` field"),(0,o.kG)("number"==typeof t.opacity,"Missing `opacity` field"),(0,o.kG)("number"==typeof t.pageIndex,"Missing `pageIndex` field"),(0,o.kG)(null==t.customData||(0,o.PO)(t.customData),"`customData` must be an object"),(0,o.kG)("boolean"==typeof t.isCommentThreadRoot||void 0===t.isCommentThreadRoot,"`isCommentThreadRoot` should be a `undefined` or `boolean`"),(0,o.kG)("boolean"==typeof t.isAnonymous||void 0===t.isAnonymous,"`isAnonymous` should be a `undefined` or `boolean`"),(0,s.G)(n);const r=Array.isArray(t.flags)?t.flags:[];let c;try{c=t.action&&(0,i.lk)(t.action)}catch(e){(0,o.ZK)(`PDF Action not supported:\n\n${t.action}`)}return{id:e,name:t.name||null,subject:t.subject||null,pdfObjectId:t.pdfObjectId||null,pageIndex:t.pageIndex,opacity:t.opacity,boundingBox:(0,a.k)(t.bbox),noPrint:r.includes("noPrint"),noZoom:r.includes("noZoom"),noRotate:r.includes("noRotate"),noView:r.includes("noView"),hidden:r.includes("hidden"),locked:r.includes("locked"),lockedContents:r.includes("lockedContents"),readOnly:r.includes("readOnly"),action:c,note:t.note||null,createdAt:t.createdAt?new Date(t.createdAt):new Date(0),updatedAt:t.updatedAt?new Date(t.updatedAt):new Date(0),creatorName:t.creatorName||null,customData:t.customData||null,isCommentThreadRoot:!!t.isCommentThreadRoot,isAnonymous:!!t.isAnonymous,...l.blendModeObjectForAnnotation(t),...(0,s.a5)(n)}}static blendModeObjectForAnnotation(e){return e.blendMode?{blendMode:e.blendMode}:"pspdfkit/markup/highlight"===e.type?{blendMode:"normal"}:null}serializeFlags(){const e=[];return["noPrint","noZoom","noRotate","noView","hidden","locked","lockedContents","readOnly"].forEach((t=>{this.annotation[t]&&e.push(t)})),e.length?e:null}}(0,r.Z)(l,"VERSION",2)},40071:(e,t,n)=>{"use strict";n.d(t,{M:()=>l,Z:()=>c});var r=n(35369),o=n(55696),i=n(4715),a=n(98492),s=n(82716);const l={"pspdfkit/markup/highlight":i.FV,"pspdfkit/markup/squiggly":i.hL,"pspdfkit/markup/strikeout":i.R9,"pspdfkit/markup/underline":i.xu,"pspdfkit/markup/redaction":i.Wk};class c extends o.Z{constructor(e){super(e)}toJSON(){return{...super.toJSON(),rects:this.annotation.rects.map((e=>(0,a.u)(e))).toJS()}}static fromJSON(e,t,n){return(0,s.k)("object"==typeof t.rects,"Missing `rects` field"),{...super.fromJSON(e,t,n),rects:(0,r.aV)(t.rects).map((e=>(0,a.k)(e)))}}}},88133:(e,t,n)=>{"use strict";n.d(t,{a:()=>a,i:()=>s});var r=n(15359),o=n(96029),i=n(99745);function a(e){return{id:e.id,v:1,pdfBookmarkId:e.pdfBookmarkId,type:"pspdfkit/bookmark",name:e.name,sortKey:e.sortKey,action:e.action&&(0,o.vP)(e.action)}}function s(e,t){let n;(0,r.kG)(null==e||"string"==typeof e,"`id` must be null or of type `string`"),(0,r.kG)(null==t.name||"string"==typeof t.name,"`name` must be of type `string`"),(0,r.kG)(null==t.sortKey||"number"==typeof t.sortKey,"`sortKey` must be of type `number`"),(0,r.kG)("object"==typeof t.action,"Missing `action` field");try{n=(0,o.lk)(t.action)}catch(e){(0,r.ZK)(`PDF Action not supported:\n\n${t.action}`)}return new i.Z({id:e,pdfBookmarkId:t.pdfBookmarkId||null,name:t.name,sortKey:t.sortKey,action:n})}},92310:(e,t,n)=>{"use strict";n.d(t,{o:()=>a,z:()=>s});var r=n(15359),o=n(45249),i=n(24456);function a(e,t){return{id:e.id,type:"pspdfkit/comment",v:2,rootId:t,pageIndex:e.pageIndex,pdfObjectId:e.pdfObjectId,creatorName:e.creatorName,createdAt:e.createdAt,updatedAt:e.updatedAt,text:e.text,customData:e.customData,isAnonymous:e.isAnonymous,...(0,i.Ut)(e)}}function s(e,t,n){return(0,r.kG)(2===t.v,"Unknown comment version"),(0,r.kG)("pspdfkit/comment"===t.type,"Invalid comment type"),(0,r.kG)("string"==typeof t.rootId||"number"==typeof t.rootId,"`rootId` must be of type `string` or `number`"),(0,r.kG)("number"==typeof t.pageIndex,"`pageIndex` must be of type `number`"),(0,r.kG)(null==t.pdfObjectId||"number"==typeof t.pdfObjectId,"`pdfObjectId` must be of type `number`"),(0,r.kG)(null==t.creatorName||"string"==typeof t.creatorName,"`creatorName` must be of type `string`"),(0,r.kG)("object"==typeof t.text,"`text` must be of type `object`"),(0,r.kG)("string"==typeof t.text.value,"`text.value` must be of type `string`"),(0,r.kG)("plain"===t.text.format||"xhtml"===t.text.format,"`text.format` must be `plain` or `xhtml`"),(0,r.kG)(null==t.customData||(0,r.PO)(t.customData),"`customData` must be a JSON-serializable object"),(0,r.kG)(void 0===n?.isAnonymous||"boolean"==typeof n?.isAnonymous||null===n?.isAnonymous,"`isAnonymous` should be `undefined` or `boolean`."),(0,i.G)(n),new o.sv({id:e,rootId:t.rootId.toString(),pageIndex:t.pageIndex,pdfObjectId:t.pdfObjectId,creatorName:t.creatorName,createdAt:t.createdAt?new Date(t.createdAt):new Date(0),updatedAt:t.updatedAt?new Date(t.updatedAt):new Date(0),text:t.text,customData:t.customData,isAnonymous:n?.isAnonymous,...(0,i.a5)(n)})}},26559:(e,t,n)=>{"use strict";n.d(t,{T8:()=>i,X$:()=>r,hH:()=>a,uE:()=>o});const r=e=>e.toJS(),o=e=>e.toJS(),i=(e,t)=>{return{maxWidth:e.maxWidth,alignment:e.alignment,lineSpacingFactor:e.lineSpacingFactor,modificationsCharacterStyle:(n=t,n.toJS())};var n},a=e=>i(e.layout,e.modificationsCharacterStyle)},69847:(e,t,n)=>{"use strict";function r(e){return{type:e.type,options:{numberOfContextWords:e.options?.numberOfContextWords}}}function o(e){return{filePath:e.filePath,password:e.password,pageIndexes:e.pageIndexes,jwt:e.jwt}}n.d(t,{c:()=>o,j:()=>r})},32751:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(15359),o=n(74751),i=n(94732),a=n(82197),s=n(40071);class l extends s.Z{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/markup/redaction",fillColor:this.annotation.fillColor&&(0,o.C)(this.annotation.fillColor),outlineColor:this.annotation.outlineColor&&(0,o.C)(this.annotation.outlineColor),overlayText:this.annotation.overlayText,repeatOverlayText:this.annotation.repeatOverlayText,rotation:this.annotation.rotation,color:this.annotation.color&&(0,o.C)(this.annotation.color)}}static fromJSON(e,t,n){(0,r.kG)("pspdfkit/markup/redaction"===t.type,"Wrong `type` field");const s="number"==typeof t.rotation?(0,a.Lv)(t.rotation):0;return new i.Z({...super.fromJSON(e,t,n),fillColor:t.fillColor?(0,o.b)(t.fillColor):i.Z.defaultValues.fillColor,outlineColor:t.outlineColor?(0,o.b)(t.outlineColor):i.Z.defaultValues.outlineColor,overlayText:t.overlayText??null,repeatOverlayText:t.repeatOverlayText??null,rotation:s,color:t.color?(0,o.b)(t.color):i.Z.defaultValues.color})}}},10552:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d,q:()=>u});var r=n(35369),o=n(74751),i=n(55696),a=n(85513),s=n(82716),l=n(58163),c=n(97281);const u={1:"whole",.1:"oneDp",.01:"twoDp",.001:"threeDp",1e-4:"fourDp"};class d extends i.Z{toJSON(){return{...super.toJSON(),strokeWidth:this.annotation.strokeWidth,strokeColor:this.annotation.strokeColor&&(0,o.C)(this.annotation.strokeColor),fillColor:this.annotation.fillColor&&(0,o.C)(this.annotation.fillColor),strokeDashArray:this.annotation.strokeDashArray,measurementPrecision:this.annotation.measurementPrecision,measurementScale:this.annotation.measurementScale&&(e=this.annotation.measurementScale,{unitFrom:e.unitFrom,unitTo:e.unitTo,from:e.fromValue,to:e.toValue})};var e}static fromJSON(e,t,n){return(0,s.k)("number"==typeof t.strokeWidth||"number"==typeof t.lineWidth,"Missing `strokeWidth` or deprecated `lineWidth` field"),t.measurementPrecision&&t.measurementPrecision&&Object.keys(u).includes(t.measurementPrecision)&&(t.measurementPrecision=u[t.measurementPrecision]??c.L.TWO),{...super.fromJSON(e,t,n),strokeWidth:null!=t.strokeWidth?t.strokeWidth:null!=t.lineWidth?t.lineWidth:null,strokeColor:null!=t.strokeColor?(0,o.b)(t.strokeColor):null,fillColor:t.fillColor?(0,o.b)(t.fillColor):null,strokeDashArray:t.strokeDashArray,measurementPrecision:t.measurementPrecision,measurementScale:t.measurementScale?p(t.measurementScale):null}}_pointsToJSON(){return this.annotation.points.map((e=>(0,a.K)(e))).toJS()}static _JSONToPoints(e){return(0,r.aV)(e.map((e=>(0,a.W)(e))))}static _JSONLinesToPoints(e){return(0,r.aV)(e.points[0].map(a.W))}}function p(e){return new l.Z({unitFrom:e.unitFrom,unitTo:e.unitTo,fromValue:e.from,toValue:e.to})}},72251:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(15359),o=n(3888),i=n(74751),a=n(45249),s=n(55696),l=n(96029),c=n(11765),u=n(82197);class d extends s.Z{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/widget",formFieldName:this.annotation.formFieldName,borderColor:this.annotation.borderColor&&(0,i.C)(this.annotation.borderColor),borderStyle:this.annotation.borderStyle,borderDashArray:this.annotation.borderDashArray,borderWidth:this.annotation.borderWidth,font:this.annotation.font,fontSize:this.annotation.fontSize,fontColor:this.annotation.fontColor&&(0,i.C)(this.annotation.fontColor),backgroundColor:this.annotation.backgroundColor&&(0,i.C)(this.annotation.backgroundColor),horizontalAlign:this.annotation.horizontalAlign,verticalAlign:this.annotation.verticalAlign,fontStyle:(0,c.XH)(this.annotation),rotation:this.annotation.rotation,additionalActions:this.annotation.additionalActions&&(0,l.GI)(this.annotation.additionalActions),lineHeightFactor:this.annotation.lineHeightFactor}}static fromJSON(e,t,n){return(0,r.kG)("pspdfkit/widget"===t.type,"Wrong `type` field"),(0,r.kG)("string"==typeof t.formFieldName,"Wrong `formFieldName` field"),t.borderStyle&&((0,r.kG)("string"==typeof o.N[t.borderStyle],"Invalid value for `borderStyle`"),(0,r.kG)("number"==typeof t.borderWidth,"Missing `borderWidth` field")),t.horizontalAlign&&(0,r.kG)(["left","center","right"].includes(t.horizontalAlign),"Wrong `horizontalAlign` field"),t.verticalAlign&&(0,r.kG)(["top","center","bottom"].includes(t.verticalAlign),"Wrong `verticalAlign` field"),new a.x_({...super.fromJSON(e,t,n),formFieldName:t.formFieldName,borderColor:t.borderColor?(0,i.b)(t.borderColor):null,borderStyle:t.borderStyle&&o.N[t.borderStyle],borderDashArray:t.borderDashArray,borderWidth:t.borderWidth,fontColor:t.fontColor?(0,i.b)(t.fontColor):null,fontSize:t.fontSize,font:t.font||null,backgroundColor:t.backgroundColor?(0,i.b)(t.backgroundColor):null,horizontalAlign:t.horizontalAlign?t.horizontalAlign:null,verticalAlign:t.verticalAlign?t.verticalAlign:null,isBold:t.fontStyle&&t.fontStyle.includes("bold"),isItalic:t.fontStyle&&t.fontStyle.includes("italic"),rotation:"number"==typeof t.rotation?(0,u.n5)(t.rotation):0,additionalActions:t.additionalActions?(0,l.eb)(t.additionalActions):null,lineHeightFactor:t.lineHeightFactor})}}},96029:(e,t,n)=>{"use strict";n.d(t,{GI:()=>u,eb:()=>c,lk:()=>s,vP:()=>a});var r=n(35369),o=n(15359),i=n(96706);function a(e){return function e(t){const n={...t.subActions&&{subactions:t.subActions.map((t=>e(t))).toArray()}};if(t instanceof i.lm)return{type:"uri",uri:t.uri,...n};if(t instanceof i.Di)return{type:"goTo",pageIndex:t.pageIndex,...n};if(t instanceof i.Qr)return{type:"goToEmbedded",newWindow:t.newWindow,relativePath:t.relativePath,targetType:t.targetType,...n};if(t instanceof i._6)return{type:"goToRemote",relativePath:t.relativePath,namedDestination:t.namedDestination,...n};if(t instanceof i.ZD)return{type:"hide",hide:t.hide,annotationReferences:t.annotationReferences.toJS(),...n};if(t instanceof i.bp)return{type:"javaScript",script:t.script,...n};if(t instanceof i.b)return{type:"launch",filePath:t.filePath,...n};if(t instanceof i.oH)return{type:"named",action:t.action,...n};if(t instanceof i.BO)return{type:"resetForm",fields:t.fields?t.fields.toArray():null,flags:t.includeExclude?"includeExclude":null,...n};if(t instanceof i.pl)return{type:"submitForm",uri:t.uri,fields:t.fields?t.fields.toArray():null,flags:l(t),...n};throw new Error(`Unknown action type: ${t.constructor.name}`)}(e)}function s(e){return function e(t){let n=null;switch(t.subactions&&(n={subActions:(0,r.aV)(t.subactions.map((t=>e(t))))}),t.type){case"uri":return(0,o.kG)("string"==typeof t.uri,"URI action must have a `uri`"),new i.lm({uri:t.uri,...n});case"goTo":return(0,o.kG)("number"==typeof t.pageIndex,"Goto action must have a `pageIndex`"),new i.Di({pageIndex:t.pageIndex,...n});case"goToEmbedded":return(0,o.kG)("boolean"==typeof t.newWindow,"GoToEmbeddedAction must have `newWindow`"),(0,o.kG)("parent"===t.targetType||"child"===t.targetType,"GoToEmbeddedAction must have a valid `targetType`"),new i.Qr({newWindow:t.newWindow,relativePath:t.relativePath||"",targetType:t.targetType||"",...n});case"goToRemote":return new i._6({relativePath:t.relativePath||"",namedDestination:t.namedDestination||"",...n});case"hide":return(0,o.kG)(Array.isArray(t.annotationReferences),"HideAction must have `annotationReferences`"),new i.ZD({hide:!!t.hide,annotationReferences:(0,r.aV)(t.annotationReferences),...n});case"javaScript":return new i.bp({script:t.script||"",...n});case"launch":return new i.b({filePath:t.filePath||"",...n});case"named":return new i.oH({action:t.action||"",...n});case"resetForm":{(0,o.kG)(t.fields instanceof Array||void 0===t.fields,"The value of the `fields` field of ResetForm Action has to be an array or undefined"),(0,o.kG)("string"==typeof t.flags||void 0===t.flags,"The value of the `flags` field of ResetForm Action has to be a string or undefined");const e="includeExclude"===t.flags;return new i.BO({fields:t.fields?(0,r.aV)(t.fields):void 0,includeExclude:e,...n})}case"submitForm":return(0,o.kG)("string"==typeof t.uri,"The value of the `uri` field of SubmitForm Action has to be a string"),(0,o.kG)(t.fields instanceof Array||void 0===t.fields,"The value of the `fields` field of SubmitForm Action has to be an array or undefined"),(0,o.kG)(t.flags instanceof Array||void 0===t.flags,"The value of the `flags` field of SubmitForm Action has to be a array or undefined"),t.flags||(t.flags=[]),new i.pl({fields:t.fields?(0,r.aV)(t.fields):void 0,uri:t.uri,includeExclude:t.flags.includes("includeExclude"),includeNoValueFields:t.flags.includes("includeNoValueFields"),exportFormat:t.flags.includes("exportFormat"),getMethod:t.flags.includes("getMethod"),submitCoordinated:t.flags.includes("submitCoordinated"),xfdf:t.flags.includes("xfdf"),includeAppendSaves:t.flags.includes("includeAppendSaves"),includeAnnotations:t.flags.includes("includeAnnotations"),submitPDF:t.flags.includes("submitPDF"),canonicalFormat:t.flags.includes("canonicalFormat"),excludeNonUserAnnotations:t.flags.includes("excludeNonUserAnnotations"),excludeFKey:t.flags.includes("excludeFKey"),embedForm:t.flags.includes("embedForm"),...n});default:throw new Error(`Unknown action: ${t}`)}}(e)}function l(e){const t=[];return["includeExclude","includeNoValueFields","exportFormat","getMethod","submitCoordinated","xfdf","includeAppendSaves","includeAnnotations","submitPDF","canonicalFormat","excludeNonUserAnnotations","excludeFKey","embedForm"].forEach((n=>{e[n]&&t.push(n)})),t.length?t:null}function c(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return r&&(t[n]=s(r)),t}),{})}function u(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return r instanceof i.aU&&(t[n]=a(r)),t}),{})}},24456:(e,t,n)=>{"use strict";n.d(t,{G:()=>o,Ut:()=>a,a5:()=>i});var r=n(15359);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{group:t,permissions:n}=e;(0,r.kG)(void 0===t||"string"==typeof t||null===t,"`group` should be `undefined` or `string`."),(0,r.kG)(void 0===n||(0,r.PO)(n),"`permissions` should be `undefined` or an `object`."),(0,r.PO)(n)&&((0,r.kG)("boolean"==typeof n.edit,"`permissions.edit` should be `boolean`."),(0,r.kG)("boolean"==typeof n.delete,"`permissions.delete` should be `boolean`."),(0,r.kG)("boolean"==typeof n.setGroup,"`permissions.setGroup` should be `boolean`."),void 0!==n.fill&&(0,r.kG)("boolean"==typeof n.fill,"`permissions.fill` should be `boolean`."),void 0!==n.reply&&(0,r.kG)("boolean"==typeof n.reply,"`permissions.reply` should be `boolean`."))}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{group:t,permissions:n}=e;let o={group:t};return(0,r.PO)(n)&&(o={...o,canSetGroup:n.setGroup,isEditable:n.edit,isDeletable:n.delete},"boolean"==typeof n.fill&&(o.isFillable=n.fill),"boolean"==typeof n.reply&&(o.canReply=n.reply)),o}function a(e){const t="boolean"==typeof e.isEditable&&"boolean"==typeof e.canSetGroup&&"boolean"==typeof e.isDeletable;let n={group:e.group};return t&&((0,r.kG)("boolean"==typeof e.isEditable),(0,r.kG)("boolean"==typeof e.isDeletable),(0,r.kG)("boolean"==typeof e.canSetGroup),n={...n,permissions:{edit:e.isEditable,delete:e.isDeletable,setGroup:e.canSetGroup}},"boolean"==typeof e.isFillable&&(n.permissions={...n.permissions,fill:e.isFillable}),"boolean"==typeof e.canReply&&(n.permissions={...n.permissions,reply:e.canReply})),n}},74751:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,b:()=>a});var r=n(15359),o=n(45249);function i(e){return e.toHex()}function a(e){if((0,r.kG)(7===e.length||9===e.length,"Tried to deserialize color that does not have 7 or 9 characters"),"#00000000"===e)return o.Il.TRANSPARENT;const t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),i=parseInt(e.substring(5,7),16);return new o.Il({r:t,g:n,b:i})}},17310:(e,t,n)=>{"use strict";n.d(t,{B:()=>i,r:()=>a});var r=n(15359),o=n(45249);function i(e){return[e.left,e.top,e.right,e.bottom]}function a(e){return(0,r.kG)(4===e.length,"Tried to deserialize inset that does not have 4 entries"),new o.eB({left:e[0],top:e[1],right:e[2],bottom:e[3]})}},85513:(e,t,n)=>{"use strict";n.d(t,{K:()=>i,W:()=>a});var r=n(15359),o=n(45249);function i(e){return[e.x,e.y]}function a(e){return(0,r.kG)(2===e.length,"Tried to deserialize point that does not have 2 entries"),new o.E9({x:e[0],y:e[1]})}},98492:(e,t,n)=>{"use strict";n.d(t,{k:()=>a,u:()=>i});var r=n(15359),o=n(45249);function i(e){return[e.left,e.top,e.width,e.height]}function a(e){return(0,r.kG)(4===e.length,"Tried to deserialize rect that does not have 4 entries"),new o.UL({left:e[0],top:e[1],width:e[2],height:e[3]})}},11765:(e,t,n)=>{"use strict";n.d(t,{Lw:()=>de,vH:()=>W,Mu:()=>Q,IN:()=>Y,u9:()=>te,Vl:()=>Se,rS:()=>ne,XH:()=>be,l9:()=>me,Fd:()=>ge,_o:()=>ye,_Q:()=>ce,Qp:()=>ue,$T:()=>ve,Hs:()=>G,jA:()=>J,kg:()=>we,vD:()=>X,kr:()=>ee,xT:()=>he,sr:()=>se,_D:()=>oe,eE:()=>ie,_L:()=>le,YA:()=>_e,MR:()=>fe});var r=n(15359),o=n(35369),i=n(44276),a=n(45249),s=n(94732),l=n(96726),c=n(74751),u=n(85513),d=n(55696);class p extends d.Z{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/ink",lines:this._linesToJSON(),lineWidth:this.annotation.lineWidth,strokeColor:this.annotation.strokeColor&&(0,c.C)(this.annotation.strokeColor),backgroundColor:this.annotation.backgroundColor&&(0,c.C)(this.annotation.backgroundColor),isDrawnNaturally:this.annotation.isDrawnNaturally,isSignature:this.annotation.isSignature}}static fromJSON(e,t,n){return(0,r.kG)("pspdfkit/ink"===t.type,"Wrong `type` field"),(0,r.kG)("object"==typeof t.lines,"Missing `lines` field"),(0,r.kG)("number"==typeof t.lineWidth,"Missing `lineWidth` field"),(0,r.kG)("boolean"==typeof t.isDrawnNaturally,"Missing `isDrawnNaturally` field"),new a.Zc({...super.fromJSON(e,t,n),lines:this._JSONToLines(t.lines),lineWidth:t.lineWidth,strokeColor:t.strokeColor?(0,c.b)(t.strokeColor):null,backgroundColor:t.backgroundColor?(0,c.b)(t.backgroundColor):null,isDrawnNaturally:t.isDrawnNaturally,isSignature:t.isSignature})}_linesToJSON(){return{points:this.annotation.lines.map((e=>e.map((e=>(0,u.K)(e))))).toJS(),intensities:this.annotation.lines.map((e=>e.map((e=>e.intensity)))).toJS()}}static _JSONToLines(e){return(0,o.aV)(e.points).map(((t,n)=>{const r=e.intensities[n];return(0,o.aV)(t).map(((e,t)=>{const n=r[t],o=(0,u.W)(e);return new a.Wm({x:o.x,y:o.y,intensity:n})}))}))}}var h=n(10552),f=n(82716);class m extends h.Z{toJSON(){return{...super.toJSON(),type:"pspdfkit/shape/line",startPoint:(0,u.K)(this.annotation.startPoint),endPoint:(0,u.K)(this.annotation.endPoint),lineCaps:this.annotation.lineCaps}}static fromJSON(e,t,n){return(0,f.k)("pspdfkit/shape/line"===t.type,"Wrong `type` field"),(0,f.k)("object"==typeof t.startPoint||"object"==typeof t.lines?.points[0][0],"Missing `startPoint` or deprecated `lines.points[0][0]` field"),(0,f.k)("object"==typeof t.endPoint||"object"==typeof t.lines?.points[0][1],"Missing `endPoint` or deprecated `lines.points[0][1]` field"),new a.o9({...super.fromJSON(e,t,n),startPoint:(0,u.W)(t.startPoint||t.lines?.points[0][0]),endPoint:(0,u.W)(t.endPoint||t.lines?.points[0][1]),lineCaps:t.lineCaps})}}var g=n(17310),v=n(98492);class y extends h.Z{toJSON(){return{...super.toJSON(),type:"pspdfkit/shape/rectangle",cloudyBorderIntensity:this.annotation.cloudyBorderIntensity,cloudyBorderInset:this.annotation.cloudyBorderInset?(0,g.B)(this.annotation.cloudyBorderInset):null,measurementBBox:this.annotation.measurementBBox?(0,v.u)(this.annotation.measurementBBox):null}}static fromJSON(e,t,n){return(0,f.k)("pspdfkit/shape/rectangle"===t.type,"Wrong `type` field"),new a.b3({...super.fromJSON(e,t,n),cloudyBorderIntensity:t.cloudyBorderIntensity,cloudyBorderInset:Array.isArray(t.cloudyBorderInset)?(0,g.r)(t.cloudyBorderInset):null,measurementBBox:t.measurementBBox?(0,v.k)(t.measurementBBox):null})}}class b extends h.Z{toJSON(){return{...super.toJSON(),type:"pspdfkit/shape/ellipse",cloudyBorderIntensity:this.annotation.cloudyBorderIntensity,cloudyBorderInset:this.annotation.cloudyBorderInset?(0,g.B)(this.annotation.cloudyBorderInset):null,measurementBBox:this.annotation.measurementBBox?(0,v.u)(this.annotation.measurementBBox):null}}static fromJSON(e,t,n){return(0,r.kG)("pspdfkit/shape/ellipse"===t.type,"Wrong `type` field"),new a.Xs({...super.fromJSON(e,t,n),cloudyBorderIntensity:t.cloudyBorderIntensity,cloudyBorderInset:Array.isArray(t.cloudyBorderInset)?(0,g.r)(t.cloudyBorderInset):null,measurementBBox:t.measurementBBox?(0,v.k)(t.measurementBBox):null})}}class w extends h.Z{toJSON(){return{...super.toJSON(),type:"pspdfkit/shape/polygon",points:this._pointsToJSON(),cloudyBorderIntensity:this.annotation.cloudyBorderIntensity}}static fromJSON(e,t,n){return(0,r.kG)("pspdfkit/shape/polygon"===t.type,"Wrong `type` field"),new a.Hi({...super.fromJSON(e,t,n),points:t.points?this._JSONToPoints(t.points):this._JSONLinesToPoints(t.lines),cloudyBorderIntensity:t.cloudyBorderIntensity})}}class x extends h.Z{toJSON(){return{...super.toJSON(),type:"pspdfkit/shape/polyline",points:this._pointsToJSON(),lineCaps:this.annotation.lineCaps}}static fromJSON(e,t,n){return(0,r.kG)("pspdfkit/shape/polyline"===t.type,"Wrong `type` field"),new a.om({...super.fromJSON(e,t,n),points:t.points?this._JSONToPoints(t.points):this._JSONLinesToPoints(t.lines),lineCaps:t.lineCaps})}}class _ extends d.Z{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/link",borderColor:this.annotation.borderColor?(0,c.C)(this.annotation.borderColor):null,borderWidth:this.annotation.borderWidth,borderStyle:this.annotation.borderStyle}}static fromJSON(e,t,n){return(0,r.kG)("pspdfkit/link"===t.type,"Wrong `type` field"),(0,r.kG)("object"==typeof t.action,"Missing `action` field"),new a.R1({...super.fromJSON(e,t,n),borderColor:t.borderColor?(0,c.b)(t.borderColor):null,borderWidth:t.borderWidth,borderStyle:t.borderStyle})}}var S=n(59062);class C extends d.Z{constructor(e){super(e)}toJSON(){return(0,f.k)("object"==typeof this.annotation.text,"`text` must be an object"),(0,f.k)("plain"===this.annotation.text.format||"xhtml"===this.annotation.text.format,"Invalid `text.format` field"),(0,f.k)("string"==typeof this.annotation.text.value,"Missing `text.value` field"),"xhtml"===this.annotation.text.format&&(0,r.ZK)("NoteAnnotationSerializer: `text.format` is set to `xhtml`, but this is not supported by PSPDFKit for Web. Falling back to `plain`."),{...super.toJSON(),type:"pspdfkit/note",text:this.annotation.text,icon:S.Y4[this.annotation.icon]||this.annotation.icon,color:(0,c.C)(this.annotation.color)}}static fromJSON(e,t,n){(0,f.k)("pspdfkit/note"===t.type,"Wrong `type` field");const o={};if("string"==typeof t.icon){const e=S.V9[t.icon];o.icon=e||t.icon}return"string"==typeof t.color&&(o.color=(0,c.b)(t.color)),"object"==typeof t.text&&(o.text=t.text,"xhtml"===t.text?.format&&((0,r.ZK)("NoteAnnotationSerializer: `text.format` is set to `xhtml`, but this is not supported by PSPDFKit for Web. Falling back to `plain`."),o.text.format="plain")),new a.Qi({...super.fromJSON(e,t,n),...o})}}var E=n(3888),k=n(42370),z=n(82197);class P extends d.Z{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/text",text:this.annotation.text,fontColor:this.annotation.fontColor&&(0,c.C)(this.annotation.fontColor),backgroundColor:this.annotation.backgroundColor&&(0,c.C)(this.annotation.backgroundColor),font:this.annotation.font,borderColor:this.annotation.borderColor&&(0,c.C)(this.annotation.borderColor),rotation:"number"==typeof this.annotation.rotation?(0,z.Lv)(this.annotation.rotation):this.annotation.rotation,fontSize:this.annotation.fontSize,fontStyle:be(this.annotation)||[],horizontalAlign:this.annotation.horizontalAlign,verticalAlign:this.annotation.verticalAlign,callout:this._calloutToJSON(),borderStyle:this.annotation.borderStyle,borderWidth:this.annotation.borderWidth,isFitting:this.annotation.isFitting,lineHeightFactor:this.annotation.lineHeightFactor}}static fromJSON(e,t,n){(0,r.kG)("pspdfkit/text"===t.type,"Wrong `type` field"),(0,r.kG)("object"==typeof t.text,"Missing `text` field"),(0,r.kG)("string"==typeof t.text.format,"Missing `text.format` field"),(0,r.kG)("string"==typeof t.text.value,"Missing `text.value` field"),(0,r.kG)("string"==typeof t.font,"Missing `font` field"),t.borderStyle&&((0,r.kG)("string"==typeof E.N[t.borderStyle],"Invalid value for `borderStyle`"),(0,r.kG)("number"==typeof t.borderWidth,"Missing `borderWidth` field"));const o=t.fontStyle instanceof Array?t.fontStyle:[],i="number"==typeof t.rotation?(0,z.Lv)(t.rotation):0;return new a.gd({...super.fromJSON(e,t,n),text:t.text,fontColor:t.fontColor?(0,c.b)(t.fontColor):null,backgroundColor:t.backgroundColor?(0,c.b)(t.backgroundColor):null,font:t.font,rotation:i,fontSize:null!=t.fontSize?t.fontSize:a.gd.defaultValues.fontSize,isBold:o.includes("bold"),isItalic:o.includes("italic"),horizontalAlign:t.horizontalAlign||"left",verticalAlign:t.verticalAlign||"top",callout:this._JSONToCallout(t.callout),borderStyle:t.borderStyle&&E.N[t.borderStyle],borderWidth:t.borderWidth,borderColor:t.borderColor?(0,c.b)(t.borderColor):null,isFitting:!!t.isFitting||null==t.fontSize,lineHeightFactor:t.lineHeightFactor})}_calloutToJSON(){const{callout:e}=this.annotation;return e?((0,r.kG)(e.start instanceof a.E9),(0,r.kG)(e.end instanceof a.E9),(0,r.kG)(!e.innerRectInset||e.innerRectInset instanceof a.eB),{start:(0,u.K)(e.start),knee:e.knee&&(0,u.K)(e.knee),end:(0,u.K)(e.end),cap:e.cap,innerRectInset:e.innerRectInset&&(0,g.B)(e.innerRectInset)}):null}static _JSONToCallout(e){return e?((0,r.kG)("object"==typeof e.start,"Missing `callout.start` field"),(0,r.kG)("object"==typeof e.end,"Missing `callout.end` field"),(0,r.kG)(!e.cap||"string"==typeof k.u[e.cap],"Invalid value for `callout.cap`"),new a.UW({start:(0,u.W)(e.start),knee:e.knee&&(0,u.W)(e.knee),end:(0,u.W)(e.end),cap:e.cap&&k.u[e.cap],innerRectInset:e.innerRectInset&&(0,g.r)(e.innerRectInset)})):null}}var D=n(40071);class A extends D.Z{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:this.typeForAnnotation(),color:(0,c.C)(this.annotation.color)}}static fromJSON(e,t,n){(0,r.kG)(t.type.startsWith("pspdfkit/markup/"),"Wrong `type` field"),(0,r.kG)("string"==typeof t.color,"Missing `color` field");return new(0,D.M[t.type])({...super.fromJSON(e,t,n),color:(0,c.b)(t.color)})}typeForAnnotation(){const e=this.annotation.constructor;for(const t of Object.keys(D.M))if(e===D.M[t])return t;throw new Error("Unknown text markup annotation")}}class T extends d.Z{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/unknown"}}static fromJSON(e,t,n){return new a.Ih(super.fromJSON(e,t,n))}}class I extends d.Z{constructor(e){super(e)}toJSON(){return{...super.toJSON(),...{type:"pspdfkit/image",description:this.annotation.description,fileName:this.annotation.fileName,contentType:this.annotation.contentType,imageAttachmentId:this.annotation.imageAttachmentId,rotation:this.annotation.rotation,isSignature:this.annotation.isSignature,...this.annotation.xfdfAppearanceStream?{xfdfAppearanceStream:this.annotation.xfdfAppearanceStream}:null,...this.annotation.xfdfAppearanceStreamOriginalPageRotation?{xfdfAppearanceStreamOriginalPageRotation:this.annotation.xfdfAppearanceStreamOriginalPageRotation}:null}}}static fromJSON(e,t,n){(0,r.kG)("pspdfkit/image"===t.type,"Wrong `type` field");const o={};return"string"==typeof t.description&&(o.description=t.description),"string"==typeof t.fileName&&(o.fileName=t.fileName),"string"==typeof t.contentType&&(o.contentType=t.contentType),"string"==typeof t.imageAttachmentId&&(o.imageAttachmentId=t.imageAttachmentId),"boolean"==typeof t.isSignature&&(o.isSignature=t.isSignature),"string"==typeof t.xfdfAppearanceStream&&(o.xfdfAppearanceStream=t.xfdfAppearanceStream),"number"==typeof t.xfdfAppearanceStreamOriginalPageRotation&&(o.xfdfAppearanceStreamOriginalPageRotation=t.xfdfAppearanceStreamOriginalPageRotation),o.rotation="number"==typeof t.rotation?(0,z.Lv)(t.rotation):0,new a.sK({...super.fromJSON(e,t,n),...o})}}var M=n(29977);class R extends d.Z{constructor(e){super(e)}toJSON(){return{...super.toJSON(),...{type:"pspdfkit/stamp",stampType:this.annotation.stampType,title:this.annotation.title,color:this.annotation.color&&(0,c.C)(this.annotation.color),subtitle:this.annotation.subtitle,rotation:"number"==typeof this.annotation.rotation?(0,z.Lv)(this.annotation.rotation):this.annotation.rotation,...this.annotation.xfdfAppearanceStream?{xfdfAppearanceStream:this.annotation.xfdfAppearanceStream}:null,...this.annotation.xfdfAppearanceStreamOriginalPageRotation?{xfdfAppearanceStreamOriginalPageRotation:this.annotation.xfdfAppearanceStreamOriginalPageRotation}:null}}}static fromJSON(e,t,n){(0,r.kG)("pspdfkit/stamp"===t.type,"Wrong `type` field");const o={};return M.pY[t.kind||t.stampType]&&(o.stampType=t.stampType||t.kind),"string"==typeof t.title&&(o.title=t.title),"string"!=typeof t.subTitle&&"string"!=typeof t.subtitle||(o.subtitle=t.subtitle||t.subTitle),"string"==typeof t.color&&(o.color=(0,c.b)(t.color)),"string"==typeof t.xfdfAppearanceStream&&(o.xfdfAppearanceStream=t.xfdfAppearanceStream),"number"==typeof t.xfdfAppearanceStreamOriginalPageRotation&&(o.xfdfAppearanceStreamOriginalPageRotation=t.xfdfAppearanceStreamOriginalPageRotation),o.rotation="number"==typeof t.rotation?(0,z.Lv)(t.rotation):0,new a.GI({...super.fromJSON(e,t,n),...o})}}var F=n(72251);class N extends d.Z{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/comment-marker"}}static fromJSON(e,t,n){return(0,r.kG)("pspdfkit/comment-marker"===t.type,"Wrong `type` field"),new a.Jn(super.fromJSON(e,t,n))}}var O=n(32751);class j extends d.Z{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/media",description:this.annotation.description,fileName:this.annotation.fileName,contentType:this.annotation.contentType,mediaAttachmentId:this.annotation.mediaAttachmentId}}static fromJSON(e,t,n){(0,r.kG)("pspdfkit/media"===t.type,"Wrong `type` field");const o={};return"string"==typeof t.description&&(o.description=t.description),"string"==typeof t.fileName&&(o.fileName=t.fileName),"string"==typeof t.contentType&&(o.contentType=t.contentType),"string"==typeof t.mediaAttachmentId&&(o.mediaAttachmentId=t.mediaAttachmentId),new l.Z({...super.fromJSON(e,t,n),...o})}}var L=n(1858),B=n(29435),K=n(7654),V=n(96029),H=n(24456);var $=n(74110),U=n(69842),Z=n(92310);const q=e=>{Object.keys(e).forEach((t=>{null==e[t]||e[t]instanceof Array&&0===e[t].length?delete e[t]:"object"!=typeof e[t]||e[t]instanceof Array||q(e[t])}))};function G(e){const t=new(function(e){switch(e){case a.Zc:return p;case a.o9:return m;case a.b3:return y;case a.Xs:return b;case a.Hi:return w;case a.om:return x;case a.R1:return _;case a.FV:case a.R9:case a.xu:case a.hL:return A;case s.Z:return O.Z;case a.gd:return P;case a.Qi:return C;case a.sK:return I;case a.GI:return R;case a.x_:return F.Z;case a.Jn:return N;case a.Ih:return T;case l.Z:return j;default:throw new Error("Unsupported annotation type")}}(e.constructor))(e).toJSON();return q(t),t}function W(e,t,n){return pe(t.type).fromJSON(e,t,n)}function Y(e,t,n){return function(e,t,n){(0,f.k)(1===t.v,"Version Unknown"),(0,f.k)("string"==typeof e,"`id` must be of type `string`"),(0,f.k)(null==t.name||"string"==typeof t.name,"`name` must be of type `string`"),(0,f.k)("string"==typeof t.type&&t.type.startsWith("pspdfkit/form-field/")&&3===t.type.split("/").length,`Invalid type for form field '${t.type}'`),(0,H.G)(n);const i=t.type.split("/")[2],a=t.flags?t.flags.reduce(((e,t)=>(e[t]=!0,e)),{}):{},s={id:e,pdfObjectId:t.pdfObjectId||null,name:t.name,annotationIds:(0,o.aV)(t.annotationIds),label:t.label,readOnly:a.readOnly,required:a.required,noExport:a.noExport,additionalActions:t.additionalActions?(0,V.eb)(t.additionalActions):null,...(0,H.a5)(n)};switch(t.type){case"pspdfkit/form-field/button":return new L.R0({...s,buttonLabel:t.buttonLabel});case"pspdfkit/form-field/checkbox":return new L.rF({...s,defaultValues:(0,o.aV)(t.defaultValues),options:(0,o.aV)(t.options.map((e=>new B.Z(e))))});case"pspdfkit/form-field/combobox":return new L.fB({...s,options:(0,o.aV)(t.options.map((e=>new B.Z(e)))),multiSelect:t.multiSelect,commitOnChange:t.commitOnChange,defaultValues:(0,o.aV)(t.defaultValues),edit:t.edit,doNotSpellCheck:t.doNotSpellCheck});case"pspdfkit/form-field/listbox":return new L.Vi({...s,options:(0,o.aV)(t.options.map((e=>new B.Z(e)))),multiSelect:t.multiSelect,commitOnChange:t.commitOnChange,defaultValues:(0,o.aV)(t.defaultValues)});case"pspdfkit/form-field/radio":return new L.XQ({...s,noToggleToOff:t.noToggleToOff,radiosInUnison:t.radiosInUnison,defaultValue:t.defaultValue,options:(0,o.aV)(t.options.map((e=>new B.Z(e))))});case"pspdfkit/form-field/text":return new L.$o({...s,defaultValue:t.defaultValue,password:t.password,maxLength:t.maxLength,doNotSpellCheck:t.doNotSpellCheck,doNotScroll:t.doNotScroll,multiLine:t.multiLine,comb:t.comb});case"pspdfkit/form-field/signature":return new L.Yo(s);default:throw new r.p2(`Form field type not deserializable: ${i}`)}}(e,t,n)}function X(e){return function(e){const t=K.Mr.filter((t=>e[t])),n={id:e.id,v:1,pdfObjectId:e.pdfObjectId,name:e.name,annotationIds:e.annotationIds.toArray(),label:e.label,additionalActions:e.additionalActions&&(0,V.GI)(e.additionalActions),...(0,H.Ut)(e),...t?.length&&{flags:t}};if(e instanceof L.R0)return{...n,type:"pspdfkit/form-field/button",buttonLabel:e.buttonLabel};if(e instanceof L.rF)return{...n,type:"pspdfkit/form-field/checkbox",defaultValues:e.defaultValues.toArray(),options:e.options.toJS()};if(e instanceof L.fB)return{...n,type:"pspdfkit/form-field/combobox",options:e.options.toJS(),multiSelect:e.multiSelect,commitOnChange:e.commitOnChange,defaultValues:e.defaultValues.toArray(),edit:e.edit,doNotSpellCheck:e.doNotSpellCheck};if(e instanceof L.Vi)return{...n,type:"pspdfkit/form-field/listbox",options:e.options.toJS(),multiSelect:e.multiSelect,commitOnChange:e.commitOnChange,defaultValues:e.defaultValues.toArray()};if(e instanceof L.XQ)return{...n,type:"pspdfkit/form-field/radio",options:e.options.toJS(),noToggleToOff:e.noToggleToOff,radiosInUnison:e.radiosInUnison,defaultValue:e.defaultValue};if(e instanceof L.$o)return{...n,type:"pspdfkit/form-field/text",password:e.password,maxLength:e.maxLength,doNotSpellcheck:e.doNotSpellCheck,doNotScroll:e.doNotScroll,multiLine:e.multiLine,comb:e.comb,defaultValue:e.defaultValue};if(e instanceof L.Yo)return{...n,type:"pspdfkit/form-field/signature"};throw new r.p2("Form field type not serializable")}(e)}function Q(e,t,n){return(0,Z.z)(e,t,n)}function J(e,t){return(0,Z.o)(e,t)}function ee(e){const t=o.aV.isList(e.value)?e.value.toArray():null==e.value?void 0:e.value;return{v:1,type:"pspdfkit/form-field-value",name:e.name,value:t,...e.optionIndexes&&e.optionIndexes.size>=1?{optionIndexes:e.optionIndexes.toArray()}:null,..."boolean"==typeof e.isFitting&&{isFitting:e.isFitting}}}function te(e){(0,r.kG)("pspdfkit/form-field-value"===e.type,"Invalid `type` for form field value."),(0,r.kG)(1===e.v,"Invalid `version` for form field value."),(0,r.kG)("string"==typeof e.name,"Invalid `name` for form field value. Must be of type `string`."),(0,r.kG)(void 0===e.value||null===e.value||"string"==typeof e.value||Array.isArray(e.value),"Invalid `value` for form field value. Must be of type `undefined`, `null`, `string`, or `Array<string>`."),(0,r.kG)(void 0===e.optionIndexes||Array.isArray(e.optionIndexes)&&e.optionIndexes.every(Number.isInteger),"Invalid `optionIndexes` value for form field value. Must be an Array of integers."),(0,r.kG)(void 0===e?.isFitting||"boolean"==typeof e.isFitting,"Invalid `isFitting` value for form field value. Must be a boolean.");const t=e.value instanceof Array?(0,o.aV)(e.value):e.value,n=e.name;return new L.KD({name:n,value:t,...e.optionIndexes&&e.optionIndexes.length>=1?{optionIndexes:(0,o.aV)(e.optionIndexes)}:null,..."boolean"==typeof e.isFitting&&{isFitting:e.isFitting}})}function ne(e){if(!Object.values(U._).includes(e.status))throw new r.p2("Invalid `status` for signatures info. Must be one of the `PSPDFKit.DocumentValidationStatus` values");if("string"!=typeof e.checkedAt)throw new r.p2("Invalid `checkedAt` for signatures info. Must be of type `string`.");if(void 0!==e.signatures&&!Array.isArray(e.signatures))throw new r.p2("Invalid `signatures` for signatures info. Must be of type `undefined` or `Array`.");if(!["undefined","boolean"].includes(typeof e.documentModifiedSinceSignature))throw new r.p2("Invalid `documentModifiedSinceSignature` for signatures info. Must be of type `undefined` or `boolean`.");const{checkedAt:t,signatures:n,documentModifiedSinceSignature:o}=e;return{status:U._[e.status],checkedAt:new Date(t),...n?{signatures:re(n)}:null,..."boolean"==typeof o?{documentModifiedSinceSignature:o}:null}}function re(e){return e.map((e=>{if("pspdfkit/signature-info"!==e.type)throw new r.p2("Invalid `type` for signature info.");if(["signerName","creationDate","signatureReason","signatureLocation"].forEach((t=>{if(!["undefined","string"].includes(typeof e[t]))throw new r.p2(`Invalid \`${t}\` for signature info. Must be \`undefined\` or \`string\`.`)})),["isTrusted","isSelfSigned","isExpired","documentModifiedSinceSignature"].forEach((t=>{if(!["boolean"].includes(typeof e[t]))throw new r.p2(`Invalid \`${t}\` for signature info. Must be \`boolean\``)})),!["string"].includes(typeof e.signatureFormFQN))throw new r.p2("Invalid `signatureFormFQN` for signature info. Must be a `string`.");if(!Object.values($.QA).includes(e.documentIntegrityStatus))throw new r.p2("Invalid `documentIntegrityStatus` for signature info. Must be one of the `PSPDFKit.DocumentIntegrityStatus` values");if(e.signatureType&&!Object.values($.Xl).includes(e.signatureType))throw new r.p2(`Invalid \`signatureType\` for signature info: ${e.signatureType}. Must be 'cms' or 'cades' if present`);if(!Object.values($.wk).includes(e.certificateChainValidationStatus))throw new r.p2("Invalid `certificateChainValidationStatus` for signature info. Must be one of the `PSPDFKit.CertificateChainValidationStatus` values");if(!Object.values($.qA).includes(e.signatureValidationStatus))throw new r.p2("Invalid `signatureValidationStatus` for signature info. Must be one of the `PSPDFKit.SignatureValidationStatus` values");return{type:e.type,...e.signatureType?{signatureType:xe[e.signatureType]}:null,documentIntegrityStatus:$.QA[e.documentIntegrityStatus],certificateChainValidationStatus:$.wk[e.certificateChainValidationStatus],signatureValidationStatus:$.qA[e.signatureValidationStatus],isTrusted:e.isTrusted,isSelfSigned:e.isSelfSigned,isExpired:e.isExpired,documentModifiedSinceSignature:e.documentModifiedSinceSignature,signerName:e.signerName,signatureReason:e.signatureReason,signatureLocation:e.signatureLocation,creationDate:e.creationDate?new Date(e.creationDate):void 0,signatureFormFQN:e.signatureFormFQN,PAdESSignatureLevel:e.PAdESSignatureLevel,validFrom:e.validFrom,validUntil:e.validUntil,timestampInfo:e.timestampInfo,ltv:e.ltv}}))}function oe(e){return{type:"pspdfkit/signature-metadata",...e}}function ie(e){return e?{type:"pspdfkit/signature-position",pageIndex:e.pageIndex,rect:(0,v.u)(e.boundingBox)}:null}function ae(e){return new Promise(((t,n)=>{if("function"==typeof e.arrayBuffer)t(e.arrayBuffer());else if(e instanceof window.Blob){const r=new FileReader;r.onloadend=()=>t(r.result),r.onerror=n,r.readAsArrayBuffer(e)}else n(new Error("The input is not a Blob or File."))}))}async function se(e){if(!e)return null;const{watermarkImage:t,graphicImage:n,...r}=e;let o,a,s,l;return t&&(o=await ae(t),a=t.type),n&&(s=await ae(n),l=n.type),{type:"pspdfkit/signature-appearance",...r,...o?{watermark:i.DS.fromUint8Array(new Uint8Array(o))}:{},...a?{watermarkContentType:a}:{},...s?{graphic:i.DS.fromUint8Array(new Uint8Array(s))}:{},...l?{graphicContentType:l}:{}}}function le(e){const{signatureType:t,certificates:n,...r}=e||{};return{type:"pspdfkit/signer-data-source",certificates:n||[],signatureType:_e[t||(n&&n.length>0?$.BG.CAdES:$.BG.CMS)]||$.Xl.cms,...r}}function ce(e){return"string"==typeof e.type&&e.type.startsWith("pspdfkit/form-field/")}function ue(e){return"pspdfkit/form-field-value"===e.type}function de(e){return e.map((e=>e.data)).toJS()}const pe=e=>{switch(e){case"pspdfkit/ink":return p;case"pspdfkit/shape/line":return m;case"pspdfkit/shape/rectangle":return y;case"pspdfkit/shape/ellipse":return b;case"pspdfkit/shape/polygon":return w;case"pspdfkit/shape/polyline":return x;case"pspdfkit/link":return _;case"pspdfkit/markup/highlight":case"pspdfkit/markup/squiggly":case"pspdfkit/markup/strikeout":case"pspdfkit/markup/underline":return A;case"pspdfkit/markup/redaction":return O.Z;case"pspdfkit/text":return P;case"pspdfkit/note":return C;case"pspdfkit/image":return I;case"pspdfkit/stamp":return R;case"pspdfkit/widget":return F.Z;case"pspdfkit/comment-marker":return N;case"pspdfkit/media":return j;default:return T}};function he(e){const t=Object.entries(e).reduce(((e,t)=>{let[n,r]=t;switch(n){case"color":case"fontColor":case"strokeColor":case"backgroundColor":case"borderColor":case"fillColor":case"outlineColor":e[n]=r&&(0,c.C)(r);break;case"startPoint":case"endPoint":e[n]=r&&(0,u.K)(r);break;case"icon":e.icon=S.Y4[r];break;case"points":e.points=r&&r.map((e=>(0,u.K)(e))).toJS();break;case"lines":e.lines=r&&{points:r.map((e=>e.map((e=>(0,u.K)(e))))).toJS(),intensities:r.map((e=>e.map((e=>e.intensity)))).toJS()};break;case"isBold":e.fontStyle=Array.isArray(e.fontStyle)?e.fontStyle.concat("bold"):["bold"];break;case"isItalic":e.fontStyle=Array.isArray(e.fontStyle)?e.fontStyle.concat("italic"):["italic"];break;case"callout":e.callout=r&&{start:(0,u.K)(r.start),knee:r.knee&&(0,u.K)(r.knee),end:(0,u.K)(r.end),cap:r.cap};break;case"boundingBox":e.bbox=r&&(0,v.u)(r);break;case"cloudyBorderInset":e.cloudyBorderInset=r&&(0,g.B)(r);break;case"strokeDashArray":case"borderDashArray":e.strokeDashArray=r;break;case"action":e.action=r&&(0,V.vP)(r);break;case"createdAt":case"updatedAt":e[n]=r&&r.toISOString();break;case"noPrint":case"noZoom":case"noRotate":case"noView":case"hidden":!0===r&&(e.flags=Array.isArray(e.flags)?e.flags.concat(n):[n]);break;default:e[n]=r}return e}),{});return q(t),t}function fe(e){const t=Object.entries(e).reduce(((e,t)=>{let[n,r]=t;switch(n){case"color":case"fontColor":case"strokeColor":case"backgroundColor":case"borderColor":case"fillColor":case"outlineColor":e[n]=null!=r?(0,c.b)(r):null;break;case"startPoint":case"endPoint":e[n]=r&&(0,u.W)(r);break;case"icon":e.icon=S.V9[r];break;case"points":e.points=r&&(0,o.aV)(r.map((e=>(0,u.W)(e))));break;case"lines":e.lines=r&&(0,o.aV)(r.points).map(((e,t)=>{const n=r.intensities[t];return(0,o.aV)(e).map(((e,t)=>{const r=n[t],o=(0,u.W)(e);return new a.Wm({x:o.x,y:o.y,intensity:r})}))}));break;case"fontStyle":e.isBold=r&&r.includes("bold"),e.isItalic=r&&r.includes("italic");break;case"callout":e.callout=r&&{start:(0,u.W)(r.start),knee:r.knee&&(0,u.W)(r.knee),end:(0,u.W)(r.end),cap:r.cap};break;case"bbox":e.boundingBox=r&&(0,v.k)(r);break;case"cloudyBorderInset":e.cloudyBorderInset=r&&(0,g.r)(r);break;case"strokeDashArray":e.strokeDashArray=r;break;case"action":e.action=r&&(0,V.lk)(r);break;case"createdAt":case"updatedAt":e[n]=new Date(r);break;case"flags":r&&(e.noPrint=r.includes("noPrint"),e.noZoom=r.includes("noZoom"),e.noRotate=r.includes("noRotate"),e.noView=r.includes("noView"),e.hidden=r.includes("hidden"));break;default:e[n]=r}return e}),{});return q(t),t}function me(e){return"pspdfkit/bookmark"===e.type}function ge(e){return"pspdfkit/comment"===e.type}function ve(e){return"pspdfkit/signature-info"===e.type}function ye(e){return"pspdfkit/embedded-file"===e.type}function be(e){const t=[];return e.isBold&&t.push("bold"),e.isItalic&&t.push("italic"),t.length>0?t:null}function we(e){if("addPage"===e.type){if("afterPageIndex"in e&&"number"==typeof e.afterPageIndex)return{type:e.type,afterPageIndex:e.afterPageIndex,pageWidth:e.pageWidth,pageHeight:e.pageHeight,rotateBy:e.rotateBy,backgroundColor:e.backgroundColor.toCSSValue(),...e.insets&&{insets:(0,v.u)(e.insets)}};if("beforePageIndex"in e&&"number"==typeof e.beforePageIndex)return{type:e.type,beforePageIndex:e.beforePageIndex,pageWidth:e.pageWidth,pageHeight:e.pageHeight,rotateBy:e.rotateBy,backgroundColor:e.backgroundColor.toCSSValue(),...e.insets&&{insets:(0,v.u)(e.insets)}};throw new r.p2("The `addPage` operation is missing either the `afterPageIndex` or the `beforePageIndex` property")}return"cropPages"===e.type?{type:e.type,cropBox:(0,v.u)(e.cropBox),pageIndexes:e.pageIndexes}:"addPageMargins"===e.type?{type:e.type,margins:(0,g.B)(e.margins),pageIndexes:e.pageIndexes}:"flattenAnnotations"===e.type?{type:e.type,pageIndexes:e.pageIndexes,annotationIds:e.annotationIds,noteAnnotationOpacity:e.noteAnnotationOpacity,...e.noteAnnotationBackgroundColor?{noteAnnotationBackgroundColor:(0,c.C)(e.noteAnnotationBackgroundColor)}:null}:e}const xe={cms:"CMS",cades:"CAdES",documentTimestamp:"documentTimestamp"},_e={CMS:"cms",CAdES:"cades",documentTimestamp:"documentTimestamp"};function Se(e){return(0,o.aV)(e.map((e=>({c:e.c,rect:(0,v.k)(e.r)}))))}},33907:(e,t,n)=>{"use strict";n.d(t,{py:()=>BC,eQ:()=>LC,xE:()=>EC,Un:()=>KC,zD:()=>IC,ae:()=>gC,XV:()=>VC,n_:()=>TC,Nt:()=>kC,If:()=>mC});var r={};n.r(r),n.d(r,{Decoder:()=>lb,Encoder:()=>ab,PacketType:()=>ib,protocol:()=>ob});var o=n(20144),i=n(67665),a=n(35369),s=n(67366),l=n(15359),c=n(73935),u=n(67294),d=n(94184),p=n.n(d),h=n(82654),f=n(38252),m=n(87153),g=n.n(m),v=n(96156),y=n(98260);class b{constructor(){this.ranges=[],this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}getRangeAt(e){return this.ranges[e]}addRange(e){this.ranges.push(e)}removeAllRanges(){this.ranges=[]}setBaseAndExtent(e,t,n,r){const o=document.createRange();o.setStart(e,t),o.setEnd(n,r),this.removeAllRanges(),this.addRange(o),this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}isEmptySelection(){return 0===this.ranges.length}get isCollapsed(){return 0===this.ranges.length||1===this.ranges.length&&this.ranges[0].collapsed}collapse(e,t){const n=document.createRange();n.collapse(!0),n.setStart(e,t),n.setEnd(e,t),this.removeAllRanges(),this.addRange(n),this.anchorNode=e,this.anchorOffset=t,this.focusNode=e,this.focusOffset=t}extend(e,t){if(0===this.ranges.length)throw new Error("No ranges to extend");this.ranges[this.ranges.length-1].setEnd(e,t),this.focusNode=e,this.focusOffset=t}get rangeCount(){return this.ranges.length}toString(){return this.ranges.map((e=>e.toString())).join("")}}class w{constructor(e){(0,v.Z)(this,"selection",new b),(0,v.Z)(this,"isSelecting",!1),(0,v.Z)(this,"initialPoint",null),(0,v.Z)(this,"currentPoint",null),(0,v.Z)(this,"clickCount",0),(0,v.Z)(this,"clickTimer",null),(0,v.Z)(this,"processing",!1),this.boundHandleMouseDown=this.handleMouseDown.bind(this),this.boundHandleMouseMove=this.handleMouseMove.bind(this),this.boundHandleMouseUp=this.handleMouseUp.bind(this),this.boundSelectionChange=this.windowSelectionChange.bind(this),this.boundBeforeInput=this.handleBeforeInput.bind(this),this.setupEventListeners(e),window.ShadowRoot.prototype.getSelection=()=>{const e=x();return(0,y.W1)(e)||e===document.body?document.getSelection():this.selection}}setupEventListeners(e){e.addEventListener("mousedown",this.boundHandleMouseDown),e.addEventListener("mousemove",this.boundHandleMouseMove),document.addEventListener("mouseup",this.boundHandleMouseUp),window.addEventListener("selectionchange",this.boundSelectionChange,!0),window.addEventListener("beforeinput",this.boundBeforeInput,!0)}cleanupEventListeners(e){e.removeEventListener("mousedown",this.boundHandleMouseDown),e.removeEventListener("mousemove",this.boundHandleMouseMove),document.removeEventListener("mouseup",this.boundHandleMouseUp),window.removeEventListener("selectionchange",this.boundSelectionChange,!0),window.removeEventListener("beforeinput",this.boundBeforeInput,!0)}windowSelectionChange(){if(!this.processing){this.processing=!0;const e=x();e&&"true"===e.getAttribute("contenteditable")&&document.execCommand("indent"),this.processing=!1}}handleBeforeInput(e){const t=e;if(this.processing){const e=t.getTargetRanges()[0],n=new Range;n.setStart(e.startContainer,e.startOffset),n.setEnd(e.endContainer,e.endOffset),this.selection.removeAllRanges(),this.selection.addRange(n),t.preventDefault(),t.stopImmediatePropagation()}}handleMouseDown(e){const t=e,n=e.composedPath()[0];return this.clickCount++,2===this.clickCount?(this.handleDoubleClick(t),void this.resetClickCountAfterDelay()):3===this.clickCount?(this.handleTripleClick(t),void(this.clickCount=0)):(1!==this.clickCount||this.selection.isEmptySelection()||this.selection.removeAllRanges(),this.setupInitialSelectionPoint({e:t,target:n}),void this.resetClickCountAfterDelay())}handleMouseMove(e){const t=e;if(!this.isSelecting)return;const n=t.composedPath()[0],r=(0,y.m_)(n,t.clientX,t.clientY);let o=0;if(r&&r.nodeType===Node.TEXT_NODE&&(o=(0,y.QC)(r,t.clientX,t.clientY)),this.currentPoint={node:r,offset:o},this.initialPoint&&this.currentPoint){const{node:e,offset:t}=this.initialPoint,{node:n,offset:r}=this.currentPoint;e&&n&&this.updateSelection(e,t,n,r)}}handleMouseUp(){if(this.isSelecting=!1,setTimeout((()=>{1===this.clickCount&&(this.currentPoint||this.initialPoint&&null!==this.initialPoint.node||this.selection.removeAllRanges(),this.clickCount=0)}),400),this.initialPoint&&this.currentPoint){const e=this.initialPoint.node,t=this.currentPoint.node;if(e&&t){const e=(0,y.g)(this.initialPoint,this.currentPoint);this.updateSelection(e.startNode,e.startOffset,e.endNode,e.endOffset)}}this.initialPoint=null,this.currentPoint=null}setupInitialSelectionPoint(e){let{e:t,target:n}=e;const r=(0,y.m_)(n,t.clientX,t.clientY),o=r&&r.nodeType===Node.TEXT_NODE?(0,y.QC)(r,t.clientX,t.clientY):0;this.initialPoint={node:r,offset:o},this.isSelecting=!0}resetClickCountAfterDelay(){clearTimeout(this.clickTimer),this.clickTimer=setTimeout((()=>{this.clickCount=0}),400)}handleDoubleClick(e){const t=e.composedPath()[0],n=(0,y.m_)(t,e.clientX,e.clientY);if(n&&n.nodeType===Node.TEXT_NODE){const t=(0,y.xA)(n,e.clientX,e.clientY);t&&(this.selection.removeAllRanges(),this.selection.addRange(t))}}handleTripleClick(e){clearTimeout(this.clickTimer),this.clickCount=0;const t=e.composedPath()[0],n=(0,y.S9)(t);n&&(this.selection.removeAllRanges(),this.selection.addRange(n))}updateSelection(e,t,n,r){const o=new Range;o.setStart(e,t),o.setEnd(n,r),this.selection.removeAllRanges(),this.selection.addRange(o)}}function x(){let e=document.activeElement;for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}var _=n(72110);function S(e){return(0,l.kG)(Array.isArray(e),"fontSubstitutions must be an array of FontSubstitution objects."),e.every((e=>"string"==typeof e?.pattern&&""!==e?.pattern.trim()&&"string"==typeof e?.target&&""!==e.target.trim()))}var C=n(90093),E=n(44077),k=n(45249),z=n(47120),P=n(46364),D=n(44228),A=n(29152),T=n(1385),I=n(94327),M=n(79724),R=n(38852);const F=(0,M.Z)("MeasurementValueConfiguration");function N(e){let t=!1;e.forEach(((n,r)=>{var o;o=n,F((0,l.PO)(o)&&!!o,"Expected item to be an object"),F((0,l.PO)(o.scale)&&!!o.scale,"Expected scale to be an object"),F(void 0!==o.scale.unitFrom&&Object.values(I.s).includes(o.scale.unitFrom),`Scale ${o.name} does not have a valid 'unitFrom' value.`),F(void 0!==o.scale.unitTo&&Object.values(T.K).includes(o.scale.unitTo),`Scale ${o.name} does not have a valid 'unitTo' value.`),F(void 0!==o.scale.fromValue&&(0,R.hj)(Number(o.scale.fromValue)),`Scale ${o.name} does not have a valid 'fromValue' value.`),F(void 0!==o.scale.toValue&&(0,R.hj)(Number(o.scale.toValue)),`Scale ${o.name} does not have a valid 'toValue' value.`),F("string"==typeof o.precision||void 0===o.precision,"`measurementValueConfiguration.measurementPrecision` must be a string.");for(let t=r+1;t<e.length;t++){const o=(0,A.cd)(n,e[t]);F(!o,`Scale ${n.name||`at index ${r}`} is a duplicate of ${e[t].name||`at index ${t}`}.`)}n.selected&&(F(!t,"Only one scale can be selected at a time. Please check your configuration."),t=!0)}))}var O=n(33427),j=n(48625),L=n(54103),B=n(57943),K=n(55012);const V=new k.ZM,H={[K.M85]:(e,t)=>e.withMutations((e=>{t.annotations.forEach((t=>{(0,O.ud)(e,t)}))})),[K.ILc]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,O.lx)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,a.l4)([n.id])),e.set("interactionMode",j.A.INK),e.set("selectedAnnotationMode",L.o.EDITING),(0,O.ud)(e,n)}))},[K.RPc]:(e,t)=>e.set("inkEraserCursorWidth",t.lineWidth),[K.HS7]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,O.lx)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,a.l4)([n.id])),e.set("interactionMode",(0,B.R4)(t.annotation.constructor)),e.set("selectedAnnotationMode",L.o.EDITING),(0,O.ud)(e,n)}))},[K.jzI]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,O.lx)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,a.l4)([n.id])),e.set("interactionMode",j.A.REDACT_SHAPE_RECTANGLE),e.set("selectedAnnotationMode",L.o.EDITING),(0,O.ud)(e,n)}))},[K.oE1]:(e,t)=>{let{attributes:n}=t;const{currentItemPreset:r}=e;return r?e.hasIn(["annotationPresets"],r)?e.mergeIn(["annotationPresets",r],n):e.setIn(["annotationPresets",r],n):e},[K.oWy]:(e,t)=>{let{currentItemPreset:n}=t;return e.set("currentItemPreset",n)},[K.UiQ]:(e,t)=>{let{annotationPresets:n}=t;return e.set("annotationPresets",n)},[K.R1i]:(e,t)=>{let{annotationID:n,annotationPresetID:r}=t;return e.setIn(["annotationPresetIds",n],r)},[K.x0v]:(e,t)=>{let{annotationID:n}=t;return e.delete("annotationPresetIds",n)},[K.JwD]:(e,t)=>{let{annotationID:n}=t;const r=e.annotationPresetIds.has(n)?e.annotationPresetIds.get(n):(0,O.X5)(e,n);return e.set("currentItemPreset",r)},[K.R8P]:(e,t)=>e.withMutations((e=>{t.annotations.forEach((t=>{(0,O._E)(e,t)}))})),[K.gF5]:(e,t)=>e.withMutations((e=>{t.ids.forEach((t=>{(0,O.Dl)(e,t)}))})),[K.sCM]:(e,t)=>{let{annotationsIDs:n}=t;return e.set("annotationsIdsToDelete",n)},[K.qRJ]:(e,t)=>{let{stampAnnotationTemplates:n}=t;return e.set("stampAnnotationTemplates",n)},[K.WaW]:(e,t)=>e.set("collapseSelectedNoteContent",t.value),[K.ieh]:(e,t)=>e.withMutations((e=>{t.ids.forEach(((t,n)=>{e.invalidAPStreams.get(t)||e.set("invalidAPStreams",e.invalidAPStreams.set(t,(0,a.l4)()));const r=e.invalidAPStreams.get(t);r&&e.set("invalidAPStreams",e.invalidAPStreams.set(t,r.add(n)))}))})),[K.kVz]:(e,t)=>e.withMutations((e=>{t.ids.forEach(((t,n)=>{e.invalidAPStreams.get(t)&&e.deleteIn(["invalidAPStreams",t],n)}))})),[K.hw0]:(e,t)=>e.set("onAnnotationResizeStart",t.callback),[K.$8O]:(e,t)=>{let{measurementToolState:n}=t;return e.set("measurementToolState",n?{...e.measurementToolState,...n}:null)},[K.UP4]:(e,t)=>{let{hintLines:n}=t;return e.set("hintLines",n)},[K.vkF]:(e,t)=>{let{configurationCallback:n}=t;return e.set("measurementValueConfiguration",n)},[K.SdX]:(e,t)=>{let{scales:n}=t;const r=e.measurementValueConfiguration?.(n)??n;r&&N(r);const o=e.activeMeasurementScale||r.find((e=>e.selected))||r[0];return e.withMutations((e=>{e.set("measurementScales",r),o&&e.set("activeMeasurementScale",o)}))},[K.Zt9]:(e,t)=>e.set("secondaryMeasurementUnit",t.secondaryMeasurementUnit),[K.VNu]:(e,t)=>e.set("activeMeasurementScale",t.activeMeasurementScale),[K.wgG]:(e,t)=>e.set("isCalibratingScale",t.isCalibratingScale),[K.Dqw]:(e,t)=>e.withMutations((e=>{"down"===t.variant?e.updateIn(["APStreamVariantsDown"],(e=>e.concat(t.annotationObjectIds))):"rollover"===t.variant&&e.updateIn(["APStreamVariantsRollover"],(e=>e.concat(t.annotationObjectIds)))})),[K.uOP]:(e,t)=>e.set("widgetAnnotationToFocus",t.annotationId),[K.SHi]:(e,t)=>{const{annotations:n,formFields:r}=e,o=[],i=t.tabOrder.reduce(((e,i)=>{const a=n.find((e=>"number"==typeof e.pdfObjectId?i.pdfObjectId===e.pdfObjectId:i.id===e.id));let s;if(a instanceof k.x_){if(s=r.get(a.formFieldName),!s)return e;if(s instanceof k.XQ){if(o.includes(s.name))return e;const r=n.filter((e=>e instanceof k.x_&&e.formFieldName===s.name)),i=t.tabOrder.filter((e=>r.some((t=>"number"==typeof e.pdfObjectId?e.pdfObjectId===t.pdfObjectId:e.id===t.id)))).map((e=>e.id));return o.push(s.name),e.concat(i)}}return e.concat([a?.id])}),[]).filter(Boolean);return e.setIn(["pages",t.pageIndex,"tabOrder"],i)}};function $(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V,t=arguments.length>1?arguments[1]:void 0;const n=H[t.type];return n?n(e,t):e}var U=n(17078),Z=n(93113),q=n(94732),G=n(31442),W=n(38246),Y=n(39934),X=n(2841),Q=n(44550),J=n(28233);const ee=()=>()=>{};function te(){const e=u.createContext(ee);class t extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"state",{instances:{}}),(0,v.Z)(this,"refCreator",((e,t,n)=>r=>{this.setState((o=>{let{instances:i}=o;const a=i[e]||{node:null,portalTarget:document.createElement("div"),target:null};return n&&(a.portalTarget.className=n),a.portalTarget.parentNode!==r&&r&&r.appendChild(a.portalTarget),a.node===t&&a.target===r?null:{instances:{...i,[e]:{...a,node:t,target:r}}}}),(()=>{if(null===r){null===this.state.instances[e].target&&this.setState((t=>{let{instances:n}=t;const{[e]:r,...o}=n;return{instances:o}}))}}))}))}render(){const t=Object.entries(this.state.instances).map((e=>{let[t,{node:n,portalTarget:r}]=e;return c.createPortal(void 0===n?null:n,r,t)}));return u.createElement(e.Provider,{value:this.refCreator},this.props.children,t)}}return{Provider:t,Reparent:function(t){let{id:n,children:r,className:o}=t;return u.createElement(e.Consumer,null,(e=>u.createElement("div",{ref:e(n,r,o)})))}}}const ne=te(),re=te();te();var oe=n(22122),ie=n(4715);function ae(e){let{append:t,node:n,children:r,rendererStyles:o,onDisappear:i}=e;const[a,s]=u.useState(null),l=u.useRef(i);return u.useLayoutEffect((()=>{if(a&&n&&n!==a.firstChild){for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(n)}return()=>{const e=l.current;e&&e(n)}}),[n,a]),u.useLayoutEffect((()=>{l.current=i}),[i]),u.createElement("div",{style:{position:"relative"}},t&&r,n&&u.createElement("div",{ref:s,style:o}))}function se(e,t){return!e&&!t}const le={node:"object",append:"boolean",noZoom:"boolean",onDisappear:"function"};const ce=(0,s.$j)((e=>({customRenderers:e.customRenderers})))((function(e){const{children:t,customRenderers:n,renderer:r,zoomLevel:o,notCSSScaled:i=!1}=e;if(!n||!n[r])return t;const a=u.Children.only(t),s=a.props,c=ue[r],d=n[r];(0,l.kG)(null!=d);const p=d(c(s));if(!p)return t;!function(e){(0,l.kG)(e.node,"Custom renderers must return an object with a node property.");for(const t in e)e.hasOwnProperty(t)&&((0,l.kG)(void 0!==le[t],`Render configuration '${t}' property is not supported`),(0,l.kG)(typeof e[t]===le[t],`Render configuration ${t} property has wrong '${typeof e[t]}' type, should be '${le[t]}'`))}(p);const{node:h,append:f,noZoom:m=!1,onDisappear:g}=p,v=de[r];(0,l.kG)("boolean"==typeof m);const y={pointerEvents:f?"none":"all",...v?v(s,m,i,o):null};return u.createElement(ae,{node:h,append:f,onDisappear:g,rendererStyles:y},a)})),ue={Annotation:e=>({annotation:e.annotation}),CommentAvatar:e=>({comment:e.comment})},de={Annotation:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(e&&e.annotation&&e.annotation.boundingBox){const{left:o,top:i,width:a,height:s}=e.annotation.boundingBox;return{position:"absolute",left:o*r,top:i*r,width:n?a*r:a,height:n?s*r:s,...se(t,n)?{transform:`scale(${r})`,transformOrigin:"0 0"}:null}}return{}},CommentAvatar:null};var pe=n(83882),he=n(24021),fe=n(98179),me=n(82716);class ge extends u.PureComponent{render(){const{applyZoom:e,children:t,position:n,zoomLevel:r,noRotate:o,currentPagesRotation:i,disablePointerEvents:a,additionalStyle:s={},isMultiAnnotationsSelected:l}=this.props;(0,me.k)(!o||"number"==typeof i);const c=(e?`scale(${r}) `:"")+(o?`rotate(-${String(i)}deg)`:""),d={top:n?n.y*r:null,left:n?n.x*r:null,position:"absolute",transform:c,transformOrigin:"0 0",pointerEvents:!0===a?"none":"auto",zIndex:l?2:"unset",...s};return u.createElement("div",{style:d,className:this.props.className},t)}}var ve=n(89637),ye=n(40163),be=n(17766),we=n(71623),xe=n(97008),_e=n.n(xe);class Se extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"_onPointerDownUp",(e=>{e.isPrimary&&(!this.props.isReadOnly&&e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new k.E9({x:e.clientX,y:e.clientY}):null))})),(0,v.Z)(this,"_handlePress",((e,t)=>{const n=()=>{this.props.dispatch((0,ve.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0,ignoreReadOnly:!0}))};fe.Ni?window.setTimeout(n,5):n()})),(0,v.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)}))}render(){const{annotation:e,zoomLevel:t,rotation:n,active:r,intl:{formatMessage:o}}=this.props,{width:i,height:a}=e.boundingBox,s=this.props.isReadOnly?{onPointerUp:this._onPointerDownUp}:{onPointerDown:this._onPointerDownUp},l=p()("PSPDFKit-Annotation","PSPDFKit-Comment-Marker-Annotation",r&&!this.props.isDisabled&&"PSPDFKit-Annotation-Selected",r&&!this.props.isDisabled&&"PSPDFKit-Comment-Marker-Annotation-Selected",_e().annotation);return u.createElement(ge,{position:e.boundingBox.getLocation(),zoomLevel:t,currentPagesRotation:n,noRotate:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},u.createElement(pe.Z,(0,oe.Z)({},s,{onClick:this._handleClick,disabled:this.props.isDisabled,style:{width:i,height:a,transformOrigin:"top left",transform:`translate(${i*t/2-i/2}px, ${a*t/2-a/2}px)`},className:l,"data-annotation-id":e.id,"aria-controls":`CommentThread-${e.id}`,"aria-label":`${o(be.Z.annotation)}: ${o(be.Z.comment)}`,tabIndex:-1}),u.createElement(we.Z,{style:{width:20,height:20},className:p()(_e().icon,r&&_e().iconActive),type:"comment-indicator"})))}}const Ce=(0,he.XN)(Se,{forwardRef:!0});var Ee,ke=n(56573),ze=n(2877),Pe=n(53261),De=n(29911),Ae=n(10983),Te=n(66361),Ie=n.n(Te),Me=n(43069),Re=n(5705),Fe=n(82197),Ne=n(11471),Oe=n.n(Ne);class je extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"isAlive",!0),(0,v.Z)(this,"_shouldShowIndicators",this.props.annotation instanceof k.sK||this.props.annotation instanceof k.R1||this.props.annotation instanceof k.GI||this.props.annotation instanceof k.Ih||this.props.formField instanceof k.Yo),(0,v.Z)(this,"_imageFetcherRef",(e=>{e&&!this._fetchImageComponentInstance&&(this._fetchImageComponentInstance=e)})),(0,v.Z)(this,"_fetchImageComponentInstance",null),(0,v.Z)(this,"state",{loadingState:"LOADING",showLoadingIndicator:!1,renderedAnnotation:null}),(0,v.Z)(this,"_fetchImage",(()=>{const{backend:e,attachment:t,zoomLevel:n,isDetachedAnnotation:r}=this.props;let o=this.props.annotation;r&&(o=o.update("boundingBox",(e=>e?.set("left",0).set("top",0))));const i=this._lastZoomLevelUsed<n;return this._lastZoomLevelUsed=n,(0,ke.an)({backend:e,blob:t?.data,annotation:o,isDetachedAnnotation:Boolean(r),zoomLevel:n,variant:this.props.variant,hasZoomedIn:i})})),(0,v.Z)(this,"_renderFinished",(()=>{this.isAlive&&(this.props.annotation instanceof k.GI&&this.setState({renderedAnnotation:this.props.annotation}),this._shouldShowIndicators&&this.setState({loadingState:"LOADED"}),this.props.onRenderFinished?.())})),(0,v.Z)(this,"_showError",(()=>{this.isAlive&&(this.props.annotation instanceof k.GI||this.props.annotation instanceof k.sK||this.props.annotation instanceof k.Ih?this._shouldShowIndicators&&this.setState({loadingState:"ERROR"}):this.props.onError?.())})),(0,v.Z)(this,"_showLoadingIndicator",(()=>{this.isAlive&&this._shouldShowIndicators&&this.setState((e=>({showLoadingIndicator:"LOADING"===e.loadingState})))}))}componentDidUpdate(e){!this.props.isDragging&&this.isAlive&&Ve(e,this.props)&&(this._fetchImageComponentInstance&&this.props.annotation.rotation!==e.annotation.rotation?this._fetchImageComponentInstance.refreshSkippingThrottle():this._fetchImageComponentInstance&&this._fetchImageComponentInstance.refresh())}componentDidMount(){this._shouldShowIndicators&&setTimeout(this._showLoadingIndicator,Ae.rB)}componentWillUnmount(){this.isAlive=!1;const{annotation:e,backend:t}=this.props;"imageAttachmentId"in e&&e.imageAttachmentId&&(t.attachmentsCache=t.attachmentsCache.delete((0,ke.UW)(e)))}render(){const{annotation:e,attachment:t,formField:n,label:r,zoomLevel:i}=this.props,a=e instanceof k.GI&&this.state.renderedAnnotation?.opacity!==e.opacity,s={...Le,...Ke({annotation:this.state.renderedAnnotation||e,attachment:t,zoomLevel:i}),...a?{opacity:e.opacity}:null},l=p()(Oe().wrapper,"PSPDFKit-APStream-Wrapper",{[Oe().loading]:this._shouldShowIndicators&&"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator,[Oe().error]:this._shouldShowIndicators&&"ERROR"===this.state.loadingState}),c=p()(e instanceof k.GI&&Oe().stampAnnotation,e instanceof k.x_&&Oe().widgetAnnotation,"PSPDFKit-APStream"),d=e instanceof k.GI||e instanceof k.sK||e instanceof k.Ih||e instanceof k.x_&&n instanceof k.Yo?null:0;return u.createElement("figure",{style:s,className:l,"data-name":n?.name},u.createElement(ze.Z,{className:c,fetchImage:this._fetchImage,label:r,visible:!0,onRenderFinished:this._renderFinished,onError:this._showError,throttleTimeout:d,rectStyle:Be,ref:this._imageFetcherRef}),"description"in e&&e.description&&u.createElement(o.TX,{tag:"figcaption"},e.description),this._shouldShowIndicators&&"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator?u.createElement("div",{className:Oe().placeholder},Ee||(Ee=u.createElement(De.Z,null))):this._shouldShowIndicators&&"ERROR"===this.state.loadingState?u.createElement("div",{className:Oe().placeholder},u.createElement(Pe.Z,{src:Ie(),className:Oe().errorIcon})):null)}}const Le={position:"relative",overflow:"hidden",margin:0,pointerEvents:"none",width:"100%",height:"100%"},Be={pointerEvents:"none",width:"100%",height:"100%"};function Ke(e){let{annotation:t,attachment:n,zoomLevel:r}=e;if(t instanceof k.x_){return{position:"absolute",top:0,...90===(0,Fe.Lv)(t.rotation)||270===(0,Fe.Lv)(t.rotation)?{width:t.boundingBox.width*r,height:t.boundingBox.height*r}:null}}if(t instanceof k.R1)return{position:"absolute",top:0};if(t instanceof k.UX||t instanceof k.Zc)return{padding:fe.Ni?Ae.wK:Ae.XZ};if(t instanceof k.GI&&(0,Re.kv)(t)){const e=(0,Re.h4)(t),n=(t.boundingBox.width-e.boundingBox.width)/2*r,o=(t.boundingBox.height-e.boundingBox.height)/2*r;return{transformOrigin:"50% 50%",transform:`translate(${-n}px, ${-o}px) rotate(${String(t.rotation)}deg)`,width:t.boundingBox.width*r,height:t.boundingBox.height*r}}if(t instanceof k.gd&&(0,Re.kv)(t)){const e=(0,Re.h4)(t),n=(t.boundingBox.width-e.boundingBox.width)/2*r,o=(t.boundingBox.height-e.boundingBox.height)/2*r;return{transformOrigin:"50% 50%",transform:`translate(${-n}px, ${-o}px) rotate(${String(t.rotation)}deg)`,width:t.boundingBox.width*r,height:t.boundingBox.height*r}}return t instanceof k.sK&&n&&t.opacity<1?{opacity:t.opacity}:t instanceof k.R1||t instanceof k.gd||t instanceof k.On||t instanceof k.Qi||t instanceof k.Ih||t instanceof k.sK||t instanceof k.GI?{}:void(0,l.Rz)(t.constructor)}function Ve(e,t){return function(e,t){return!(0,O.ix)(t.annotation,t.zoomLevel)&&t.zoomLevel>e.zoomLevel}(e,t)||(0,O.AC)(e.annotation,t.annotation)||(0,O.TL)(e.formField,t.formField)||t.formField&&e.formField&&t.formField.formattedValue!==e.formField.formattedValue||!(0,Me.BT)(t.formField,e.formField)||e.variant!==t.variant||e.isDigitallySigned!==t.isDigitallySigned||"number"==typeof e.annotation.pdfObjectId&&"number"==typeof t.annotation.pdfObjectId&&e.annotation.pdfObjectId!==t.annotation.pdfObjectId}var He=n(59140),$e=n(74038),Ue=n.n($e);class Ze extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"el",null),(0,v.Z)(this,"_innerRef",(e=>{this.el=e})),(0,v.Z)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&this._handlePress(e,"touch"!==e.pointerType?new k.E9({x:e.clientX,y:e.clientY}):null)})),(0,v.Z)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,ve.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,v.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,v.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()}))}render(){const{annotation:e,attachment:t,backend:n,onRenderFinished:r,zoomLevel:o,isSelectable:i,isDisabled:a,isDragging:s,intl:{formatMessage:l}}=this.props,{boundingBox:c,id:d}=e,h={cursor:(0,O.B7)(e,{isSelectable:i}),overflow:"hidden",width:c.width*o,height:c.height*o,display:"block",outline:this.props.isFocused?O.A8:null};return u.createElement(ne.Reparent,{id:`annotation-image-${d}`},u.createElement(ge,{position:c.getLocation(),zoomLevel:o,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},u.createElement(He.Z,{onPointerUp:this._handlePointerUp,onPointerEnter:()=>{this.props.dispatch((0,ve.oX)(e.id))},onPointerLeave:()=>{this.props.dispatch((0,ve.IP)(e.id))}},u.createElement(pe.Z,{disabled:a,onPointerDown:this._handlePointerDown,onClick:this._handleClick,style:h,className:p()("PSPDFKit-Annotation PSPDFKit-Image-Annotation",{[Ue().readOnlyOutline]:e.readOnly||e.locked}),"data-annotation-id":e.id,"aria-label":`${l(be.Z.annotation)}: ${l(be.Z.imageAnnotation)}`,innerRef:this._innerRef,tabIndex:-1},u.createElement(je,{annotation:e,attachment:t,backend:n,onRenderFinished:r,zoomLevel:o,label:l(be.Z.imageAnnotation),isDragging:s,onError:this.props.onError})))))}}const qe=(0,he.XN)(Ze,{forwardRef:!0});var Ge=n(55441),We=n(87996),Ye=n(89407),Xe=n.n(Ye);class Qe extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"precision",(0,Ge.HB)(this.props.zoomLevel)),(0,v.Z)(this,"_handlePointerDown",(e=>{e.persist(),e.isPrimary&&(e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new k.E9({x:e.clientX,y:e.clientY}):null))})),(0,v.Z)(this,"_handlePress",((e,t)=>{this.precision=(0,Ge.HB)(this.props.zoomLevel),this.props.dispatch((0,ve.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,v.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()})),(0,v.Z)(this,"el",null)}render(){const{annotation:e,intl:{formatMessage:t},isSelectable:n,pathDataFromFragments:r,backend:o,zoomLevel:i,isDragging:a=!1,shouldKeepRenderingAPStream:s=!1}=this.props,{boundingBox:l,blendMode:c}=e,d=l.grow(fe.Ni?Ae.wK:Ae.XZ),h=(0,O.B7)(e,{isSelectable:n}),f={...d.toJS(),cursor:h},m=c&&"normal"!==c?{mixBlendMode:(0,O.vk)(c),...fe.G6?{transform:"translate3d(0,0,0)"}:null}:{};return u.createElement("div",{style:m},u.createElement(ge,{zoomLevel:this.props.zoomLevel,applyZoom:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},u.createElement(He.Z,{onPointerEnter:()=>{this.props.dispatch((0,ve.oX)(e.id))},onPointerLeave:()=>{this.props.dispatch((0,ve.IP)(e.id))}},u.createElement(pe.Z,{disabled:this.props.isDisabled,onPointerUp:s?this._handlePointerUp:void 0,className:p()(Xe().container,{[Xe().cursorNotAllowed]:e.readOnly||e.locked},"PSPDFKit-Ink-Annotation PSPDFKit-Annotation"),style:f,"data-annotation-id":e.id,"aria-label":`${t(be.Z.annotation)}: ${t(be.Z.inkAnnotation)}`,tabIndex:-1},u.createElement(et,{annotation:e,onPointerDown:this._handlePointerDown,isSelectable:this.props.isSelectable,viewBox:d,pathDataFromFragments:r,renderInvisibleClickPath:s,precision:this.precision}),s&&o&&u.createElement(ne.Reparent,{id:`annotation-ink-${e.id}`},u.createElement(je,{annotation:e,backend:o,zoomLevel:i,label:t(be.Z.inkAnnotation),isDragging:a,onError:this.props.onError}))))))}}const Je=(0,he.XN)(Qe,{forwardRef:!0}),et=function(e){let{annotation:t,isSelectable:n,viewBox:r,pathDataFromFragments:o=(()=>null),onPointerDown:i,renderInvisibleClickPath:s=!1,precision:l=(0,Ge.HB)(1)}=e;const{ENABLE_INK_SMOOTH_LINES:c}=We.Options,d=u.useMemo((()=>c?e=>(0,Ge.vR)(e,l):Ge.$U),[l,c]),h=u.useRef([]),f=u.useCallback(((e,n,r)=>o(t.id,n,r)||(0,Ge.IQ)(e).map(d).flat()),[o,d,t]);h.current=u.useMemo((()=>{t.lines.size!==h.current.length&&(h.current=[]);const e=[];return t.lines.forEach((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,a.aV)(),n=arguments.length>1?arguments[1]:void 0;e.push(f(t,n,h.current[n]))})),e}),[t,f]);const m=u.useMemo((()=>{const{strokeColor:e,lineWidth:r,lines:o}=t,a={stroke:e?.toCSSValue()||"transparent",strokeWidth:r,pointerEvents:"none"},l={strokeWidth:n?Math.max(fe.Ni?Ae.wK:Ae.XZ,r):0},d=p()({[Xe().path]:!0,[Xe().selectable]:!t.readOnly&&!t.locked,"PSPDFKit-Smooth-Lines":c}),f=o.map(((e,t)=>{const r=(0,Ge.u8)(h.current[t]);return u.createElement("g",{key:t},!s&&u.createElement("path",{className:d,style:a,d:r,"data-testid":"ink-path"}),n&&u.createElement("path",{onPointerDown:i,className:d,style:l,stroke:"transparent",d:r,"data-testid":"clickable-path"}))}));return u.createElement("g",null,f)}),[t,n,i,c,s]),g=u.useMemo((()=>{const{backgroundColor:e,boundingBox:n}=t,r=p()({[Xe().rect]:!0,[Xe().selectable]:!!e}),o={fill:e?.toCSSValue()||"transparent"},{width:a,height:s,top:l,left:c}=n;return u.createElement("rect",{onPointerDown:i,x:c,y:l,width:a,height:s,className:r,style:o})}),[i,t,s]),v=`${r.left} ${r.top} ${r.width} ${r.height}`,y={left:0,top:0,width:"100%",height:"100%",opacity:t.opacity,overflow:"hidden"};return u.createElement("svg",{viewBox:v,style:y,className:Xe().svg,focusable:!1,"data-testid":"ink-svg"},g,m)};var tt=n(18661),nt=n.n(tt),rt=n(96706);const ot=u.memo((function(e){const{annotation:t,isDisabled:n,annotation:{boundingBox:r},zoomLevel:o,isFocused:i,shouldKeepRenderingAPStream:a,dispatch:s,backend:c,isDragging:d=!1,isMultiAnnotationsSelected:h=!1}=e,{formatMessage:f}=(0,he.YB)(),m=(0,u.useRef)(null),g=p()(nt().annotationRect,"PSPDFKit-Link-Annotation","PSPDFKit-Annotation"),{borderColor:v,borderStyle:y,borderWidth:b,opacity:w}=t,x={width:r.width*o,height:r.height*o,outline:i?O.A8:null},_=(0,O.B7)(t),S={width:r.width*o,height:r.height*o,borderWidth:b||0,borderColor:v?v.toCSSValue():"transparent",borderStyle:y||void 0,opacity:w,cursor:_},C=u.useMemo((()=>function(e){switch(e.action?.constructor||null){case rt.lm:{const t=e.action;return(0,l.kG)("string"==typeof t.uri,"URIAction requires `uri`"),{type:"a",props:{href:t.uri,"aria-label":t.uri,title:e.note}}}case rt.Di:{const t=e.action;(0,l.kG)("number"==typeof t.pageIndex,"GoToAction requires `pageIndex`");const n=`#page=${t.pageIndex}`;return{type:"a",props:{href:n,"aria-label":n,title:e.note}}}case rt.BO:{const t=e.action;return(0,l.kG)("boolean"==typeof t.includeExclude,"ResetFormAction requires `includeExclude`"),{type:"button",props:{type:"reset","aria-label":`Reset${t.fields?t.fields.join(" "):""}`}}}case rt.pl:{const t=e.action;return(0,l.kG)("string"==typeof t.uri,"ResetFormAction requires `uri`"),(0,l.kG)("boolean"==typeof t.includeExclude,"ResetFormAction requires `includeExclude`"),{type:"button",props:{type:"submit","aria-label":`Submit to ${t.uri}`}}}default:return{type:"div",props:{}}}}(t)),[t]);return u.createElement(ge,{position:r.getLocation(),zoomLevel:o,disablePointerEvents:!0,isMultiAnnotationsSelected:h},u.createElement(pe.Z,{disabled:n,className:p()(`PSPDFKit-${t.constructor.readableName}-Annotation PSPDFKit-Annotation`),style:x,onPointerUp:a?function(e){e.stopPropagation()}:void 0,"data-annotation-id":t.id,"aria-label":f(be.Z.linkAnnotation),innerRef:m,onMouseEnter:()=>{s((0,ve.oX)(t.id))},onMouseLeave:()=>{s((0,ve.IP)(t.id))},tabIndex:-1},u.createElement(C.type,(0,oe.Z)({},C.props,{className:g,style:S,"data-annotation-id":t.id,tabIndex:n?-1:0,"aria-disabled":n?"true":"false"})),a&&c&&u.createElement(ne.Reparent,{id:`annotation-link-${t.id}`},u.createElement(je,{annotation:t,backend:c,zoomLevel:o,label:f(be.Z.linkAnnotation),isDragging:d,onError:e.onError}))))}));const it=ot;var at=n(4087),st=n(59062),lt=n(64131),ct=n.n(lt);class ut extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"el",null),(0,v.Z)(this,"_innerRef",(e=>{this.el=e})),(0,v.Z)(this,"onClick",(()=>{this.props.dispatch((0,at.i0)()),window.setTimeout((()=>{this.props.dispatch((0,ve.VR)(this.props.annotation.id))}),0)})),(0,v.Z)(this,"_onPointerDownUp",(e=>{e.isPrimary&&(this.props.isReadOnly||e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new k.E9({x:e.clientX,y:e.clientY}):null),this.props.isOpen||this.props.dispatch((0,ve.IP)(this.props.annotation.id)),e.stopPropagation())})),(0,v.Z)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,ve.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0,ignoreReadOnly:!0}))})),(0,v.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,v.Z)(this,"_onMouseEnter",(()=>{this.props.dispatch((0,ve.oX)(this.props.annotation.id))})),(0,v.Z)(this,"_onMouseLeave",(()=>{this.props.dispatch((0,ve.IP)(this.props.annotation.id))}))}render(){const{intl:{formatMessage:e},backend:t,shouldKeepRenderingAPStream:r,isFocused:i,isSelectable:a}=this.props,s=!this.props.isOpen&&!this.props.isFullscreen&&!fe.Ni,{annotation:l,zoomLevel:c,rotation:d}=this.props,{boundingBox:h,color:f,icon:m}=l,{width:g,height:v}=h,y=(0,O.B7)(l,{isSelectable:a}),b={width:g,height:v,transformOrigin:"top left",transform:`translate(${g*c/2-g/2}px, ${v*c/2-v/2}px)`,color:f.toCSSValue(),opacity:l.opacity,outline:i?O.A8:null,cursor:y},w=st.Y4[m]||st.Y4[st.Zi.COMMENT],x=(0,R.Oe)(w);let _;try{_=n(36403)(`./${w}.svg`)}catch(e){}const S=this.props.isReadOnly?{onPointerUp:this._onPointerDownUp}:{onPointerDown:this._onPointerDownUp},C=p()({"PSPDFKit-Annotation":!0,"PSPDFKit-Note-Annotation":!0,[`PSPDFKit-Note-Annotation-Icon-${x}`]:!0,[ct().annotation]:!0,[ct().noteIconInPage]:!0});return u.createElement(u.Fragment,null,u.createElement(ge,{position:h.getLocation(),zoomLevel:c,currentPagesRotation:d,noRotate:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},u.createElement(pe.Z,(0,oe.Z)({},S,{onClick:this._handleClick,disabled:this.props.isDisabled,style:b,className:C,onPointerEnter:s?this._onMouseEnter:void 0,onPointerLeave:s?this._onMouseLeave:void 0,"data-annotation-id":l.id,"aria-label":`${e(be.Z.annotation)}: ${e(be.Z.noteAnnotation)}`,"aria-controls":`NoteAnnotationContent-${l.id}`,innerRef:this._innerRef,tabIndex:-1}),r?u.createElement(ne.Reparent,{id:`annotation-note-${l.id}`},u.createElement(je,{annotation:l,zoomLevel:c,backend:t,label:e(be.Z.noteAnnotation),onError:this.props.onError})):_?u.createElement(Pe.Z,{src:_,className:ct().icon,role:"presentation"}):w)),!this.props.isOpen&&u.createElement(o.TX,{id:`NoteAnnotationContent-${l.id}`}))}}const dt=(0,he.XN)(ut,{forwardRef:!0});const pt=(0,s.$j)((function(e,t){let{annotation:n}=t;return{annotation:n,isFullscreen:e.viewportState.viewportRect.width<=Ae.D4,rotation:e.viewportState.pagesRotation,isOpen:e.selectedAnnotationIds.has(n.id)&&"number"==typeof n.pageIndex}}),null,null,{forwardRef:!0})(dt),ht=pt;var ft=n(34997),mt=n(12559);const gt=e=>{let{lineCap:t,style:n,id:r,position:o,strokeWidth:i,capAtMaxStroke:a=!1}=e;const{markerScale:s,strokeScale:l}=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=5;if(e<B.Rv)return{markerScale:25-(e-1)*n,strokeScale:1/(B.Rv-e)};if(t&&e>B.RR-2)return{markerScale:n,strokeScale:B.RR};return{markerScale:n,strokeScale:1}}(i,a);return u.createElement("marker",{id:r,style:n,markerWidth:s,markerHeight:s,refX:"start"===o?3.75:.5,refY:"2",orient:"auto",viewBox:"0 0 5 5"},mt.O[t][`${o}Element`]({...n,strokeWidth:l}))};var vt=n(99721),yt=n.n(vt);const bt=e=>{let{isSelectable:t,onPointerDown:n,annotation:{strokeDashArray:r,strokeColor:o,strokeWidth:i,startPoint:s,endPoint:l,lineCaps:c,fillColor:d,pageIndex:h,id:f=(0,ft.SK)(),locked:m,readOnly:g},renderInvisibleClickPath:v=!1}=e;if(null===h||0===i&&!v)return null;const y={stroke:o?.toCSSValue()||"transparent",strokeWidth:i,fill:"transparent"},b=p()({[yt().visible]:!0}),w=t?fe.Ni?Math.max(Ae.wK,i):Math.max(Ae.XZ,i):0,x=p()({[yt().selectable]:!g&&!m}),_={stroke:o?.toCSSValue()||"transparent",pointerEvents:"none",fill:d?.toCSSValue()||"transparent",strokeWidth:1},S=`${f}-StartLineCap`,C=`${f}-EndLineCap`,E=(0,B.CW)((0,a.aV)([s,l]),i,c||{}),k=E.first(),z=E.get(1),P={x1:void 0!==k?k.x:s.x,y1:void 0!==k?k.y:s.y,x2:void 0!==z?z.x:l.x,y2:void 0!==z?z.y:l.y},D=P.x1!==s.x||P.y1!==s.y,A=P.x2!==l.x||P.y2!==l.y,T=c&&D?`url(#${S})`:void 0,I=c&&A?`url(#${C})`:void 0;return u.createElement("g",{style:{strokeWidth:i}},(D||A)&&u.createElement("defs",null,c&&D&&c.start&&u.createElement(gt,{style:_,lineCap:c.start,id:S,strokeWidth:i,position:"start"}),c&&A&&c.end&&u.createElement(gt,{style:_,lineCap:c.end,id:C,strokeWidth:i,position:"end"})),!v&&u.createElement("line",{className:b,style:y,x1:P.x1,y1:P.y1,x2:P.x2,y2:P.y2,strokeDasharray:r?r.map((e=>e*i)).join(","):"",markerStart:T,markerEnd:I,strokeLinecap:"butt"}),t&&u.createElement("line",{onPointerDown:n,className:x,stroke:"transparent",style:{fill:"none",strokeWidth:w},x1:s.x,y1:s.y,x2:l.x,y2:l.y}))},wt=e=>{let{isSelectable:t,onPointerDown:n,annotation:r,renderInvisibleClickPath:o=!1}=e;const{strokeDashArray:i,strokeColor:a,strokeWidth:s,fillColor:l,pageIndex:c,boundingBox:d,cloudyBorderIntensity:h,cloudyBorderInset:f}=r,m=Number(h);if(null===c||0===s&&!l&&!o)return null;const{width:g,height:v,top:y,left:b}=d,w={stroke:a?.toCSSValue()||"transparent",strokeWidth:s,fill:l?.toCSSValue()||"transparent"},x=p()({[yt().visible]:!0,[yt().cloudy]:!!m,[yt().strokeDashArray]:!!i}),_=t?fe.Ni?Math.max(Ae.wK,s):Math.max(Ae.XZ,s):0,S={fill:l&&!l.equals(k.Il.TRANSPARENT)?"transparent":"none",strokeWidth:_},C=p()({[yt().selectable]:!r.readOnly&&!r.locked,[yt().cloudy]:!!m}),E=g>s?g-s:g/4,z=v>s?v-s:v/4,P=i?i.map((e=>e*s)).join(","):"",D=m>0,A=D?xt(m,f,d):"";return u.createElement(u.Fragment,null,!o&&(D?u.createElement("path",{d:A,className:x,style:w,strokeDasharray:P}):u.createElement("rect",{className:x,style:w,strokeDasharray:P,x:b+s/2,y:y+s/2,width:E,height:z})),t&&(D?u.createElement("path",{onPointerDown:n,d:A,className:C,style:S,stroke:"transparent"}):u.createElement("rect",{onPointerDown:n,className:C,stroke:"transparent",style:S,x:b+s/2,y:y+s/2,width:E,height:z})))},xt=(e,t,n)=>{const{left:r,top:o,width:i,height:a}=t instanceof k.eB?k.eB.applyToRect(t,n):n;return(0,B.rr)({points:[[r,o],[r+i,o],[r+i,o+a],[r,o+a]],intensity:e})},_t=e=>{let{isSelectable:t,onPointerDown:n,annotation:r,renderInvisibleClickPath:o=!1}=e;const{strokeDashArray:i,strokeColor:a,strokeWidth:s,fillColor:l,pageIndex:c,boundingBox:d,cloudyBorderIntensity:h,cloudyBorderInset:f}=r,m=Number(h);if(null===c||0===s&&!l&&!o)return null;const{width:g,height:v,top:y,left:b}=d,w={stroke:a?.toCSSValue()||"transparent",strokeWidth:s,fill:l?.toCSSValue()||"transparent"},x=p()({[yt().visible]:!0,[yt().cloudy]:!!m,[yt().strokeDashArray]:!!i}),_=t?fe.Ni?Math.max(Ae.wK,s):Math.max(Ae.XZ,s):0,S={fill:l&&!l.equals(k.Il.TRANSPARENT)?"transparent":"none",strokeWidth:_},C=p()({[yt().selectable]:!r.readOnly&&!r.locked,[yt().cloudy]:!!m}),E=g>2*s?(g-s)/2:g/4,z=v>2*s?(v-s)/2:v/4,P=i?i.map((e=>e*s)).join(","):"",D=m>0,A=D?(0,B.Hz)({boundingBox:d,cloudyBorderIntensity:m,cloudyBorderInset:f}):"";return u.createElement(u.Fragment,null,!o&&(D?u.createElement("path",{className:x,style:w,strokeDasharray:P,d:A}):u.createElement("ellipse",{className:x,style:w,strokeDasharray:P,cx:b+g/2,cy:y+v/2,rx:E,ry:z})),t&&(D?u.createElement("path",{onPointerDown:n,className:C,style:S,d:A,stroke:"transparent"}):u.createElement("ellipse",{onPointerDown:n,className:C,stroke:"transparent",style:S,cx:b+g/2,cy:y+v/2,rx:E,ry:z})))},St=e=>{let{isSelectable:t,onPointerDown:n,annotation:r,renderInvisibleClickPath:o=!1}=e;const{strokeDashArray:i,strokeColor:a,strokeWidth:s,fillColor:l,pageIndex:c,points:d,cloudyBorderIntensity:h}=r,f=Number(h);if(null===c||0===d.size||0===s&&(!l||l.equals(k.Il.TRANSPARENT))&&!o)return null;const m={stroke:a?a.toCSSValue():"transparent",strokeWidth:s,fill:l?.toCSSValue()||"transparent"},g=p()({[yt().visible]:!0,[yt().cloudy]:!!f,[yt().strokeDashArray]:!!i}),v=t?fe.Ni?Math.max(Ae.wK,s):Math.max(Ae.XZ,s):0,y={fill:l&&!l.equals(k.Il.TRANSPARENT)?"transparent":"none",strokeWidth:v},b=p()({[yt().selectable]:!r.readOnly&&!r.locked,[yt().cloudy]:!!f}),w=d.first();if(void 0===w)return null;const x=1===d.size||2===d.size?d.push(w):d,_=i?i.map((e=>e*s)).join(","):"",S=f>0&&x.size>2,C=S?Ct({annotation:r,intensity:f}):`${x.map((e=>`${e.x},${e.y}`)).join(" ")}`;return u.createElement(u.Fragment,null,!o&&(S?u.createElement("path",{className:g,style:m,strokeDasharray:_,d:C}):u.createElement("polygon",{className:g,style:m,strokeDasharray:_,points:C})),t&&(S?u.createElement("path",{onPointerDown:n,className:b,style:y,stroke:"transparent",d:C}):u.createElement("polygon",{onPointerDown:n,className:b,stroke:"transparent",style:y,points:C})))},Ct=e=>{let{intensity:t,annotation:n}=e;return(0,B.rr)({points:n.points.map((e=>[e.x,e.y])).toArray(),intensity:t})},Et=e=>{let{isSelectable:t,onPointerDown:n,annotation:{strokeDashArray:r,strokeColor:o,strokeWidth:i,lineCaps:a,fillColor:s,pageIndex:l,points:c,id:d=(0,ft.SK)(),locked:h,readOnly:f},renderInvisibleClickPath:m=!1}=e;if(null===l||void 0===c||0===c.size||0===i&&!m)return null;const g=c.first(),v=c.last();if(!g||!v)return null;const y={stroke:o?.toCSSValue()||"transparent",strokeWidth:i,fill:"transparent"},b=p()({[yt().visible]:!0}),w=t?fe.Ni?Math.max(Ae.wK,i):Math.max(Ae.XZ,i):0,x=p()({[yt().selectable]:!f&&!h}),_={stroke:o?.toCSSValue()||"transparent",pointerEvents:"none",fill:s?.toCSSValue()||"transparent",strokeWidth:1},S=`${d}-StartLineCap`,C=`${d}-EndLineCap`,E=1===c.size?` ${g.x},${g.y}`:"",k=(0,B.CW)(c,i,a||{}),z=k.first(),P=k.last();if(!z||!P)return null;const D=a&&(z.x!==g.x||z.y!==g.y),A=a&&(P.x!==v.x||P.y!==v.y),T=`${k.map((e=>`${e.x},${e.y}`)).join(" ")}${E}`,I=a&&D?`url(#${S})`:void 0,M=a&&A?`url(#${C})`:void 0;return u.createElement("g",{style:{strokeWidth:i}},(D||A)&&u.createElement("defs",null,a&&D&&a.start&&u.createElement(gt,{style:_,lineCap:a.start,strokeWidth:i,id:S,position:"start"}),a&&A&&a.end&&u.createElement(gt,{style:_,lineCap:a.end,strokeWidth:i,id:C,position:"end"})),!m&&u.createElement("polyline",{className:b,style:y,points:T,strokeDasharray:r?r.map((e=>e*i)).join(","):"",markerStart:I,markerEnd:M}),t&&u.createElement("polyline",{onPointerDown:n,className:x,stroke:"transparent",style:{fill:"none",strokeWidth:w},points:T}))},kt=e=>{const{annotation:t,viewBox:n,isSelectable:r,onPointerDown:o,renderInvisibleClickPath:i=!1}=e,a=`${n.left} ${n.top} ${n.width} ${n.height}`,s={left:0,top:0,width:"100%",height:"100%",opacity:t.opacity,overflow:"hidden"},l=(e=>{switch(e){case k.o9:return bt;case k.b3:return wt;case k.Xs:return _t;case k.Hi:return St;case k.om:return Et;default:throw new Error("Unexpected shape annotation type")}})(t.constructor);return u.createElement("svg",{viewBox:a,style:s,className:yt().svg,focusable:!1},u.createElement(l,{isSelectable:r,onPointerDown:o,annotation:t,renderInvisibleClickPath:i}))};var zt=n(739),Pt=n(66327);function Dt(e,t){return e.distance(t)>Ae.c1}var At=n(14935),Tt=n(24322);function It(e){const{pageIndex:t,currentAnnotation:n,onAnnotationUpdate:r,keepSelectedTool:o,interactionMode:i,defaultAutoCloseThreshold:l,backend:c,disablePointSnapping:d}=e,p=u.useRef(null),h=(0,s.v9)((e=>e.eventEmitter)),f=(0,s.I0)(),[m,g]=u.useState(!1),[v,y]=u.useState(null),b=u.useMemo((()=>(0,B.sS)(n.constructor)),[n.constructor]),w=u.useCallback((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f((0,at.FG)(e)),t&&(f((0,Pt.Ce)()),f((0,ve.Df)((0,a.l4)([e.id]),null)),f((0,at.ZE)(e.id)),f((0,At.eO)(null)))}),[f]),x=u.useCallback((()=>{(n instanceof k.om||n instanceof k.Hi)&&w(n,!0)}),[n,w]),_=u.useCallback(((e,o)=>{(0,Tt.mE)(c,n,d)&&c.configureSnapper(t);let i=n;const s={annotations:(0,a.aV)([i]),reason:X.f.DRAW_START};h.emit("annotations.willChange",s);const l=new k.E9({x:e.x,y:e.y});if(i instanceof k.o9)i=i.merge({startPoint:l,endPoint:l});else if(i instanceof k.b3||i instanceof k.Xs){p.current=l;const e=i.cloudyBorderIntensity*Ae.St+i.strokeWidth/2;i=i.merge({boundingBox:new k.UL({left:l.x,top:l.y,width:0,height:0}),cloudyBorderInset:i.cloudyBorderIntensity?i.cloudyBorderInset||k.eB.fromValue(e):null})}else if(i instanceof q.Z){p.current=l;const e=new k.UL({left:l.x,top:l.y,width:0,height:0});i=i.merge({boundingBox:e,rects:(0,a.aV)([e])})}else(i instanceof k.Hi||i instanceof k.om)&&(i=i.update("points",(e=>e.push(l))));i=i.set("boundingBox",b(i));const u=i.pageIndex;if(null===u)i=i.set("pageIndex",t);else if(u!==t){i=i.set("pageIndex",t);const e=i instanceof q.Z?at.hj:at.hX;f(e(i,t))}i instanceof k.Xs||!("isMeasurement"in i)||!i.isMeasurement?.()||f((0,At.eO)({magnifierLabel:i.getMeasurementDetails().label,drawnAnnotationID:i.id,drawnAnnotationPageIndex:i.pageIndex,magnifierCursorPosition:o})),r(i)}),[n,f,h,t,r,b]),S=u.useCallback((async(e,t)=>{let o=n,i=e[e.length-1];const s=t[t.length-1];if((0,Tt.mE)(c,o,d)){const e=await c.getClosestSnapPoint(new k.E9({x:i.x,y:i.y}));i=i.set("x",e.x).set("y",e.y)}const u=new k.E9({x:i.x,y:i.y});if(o instanceof k.o9)o=o.set("endPoint",u);else if(o instanceof k.b3||o instanceof k.Xs){(0,me.k)(null!=p.current);const e=p.current,t=new k.UL({left:Math.min(e.x,u.x),top:Math.min(e.y,u.y),width:Math.abs(u.x-e.x),height:Math.abs(u.y-e.y)});o=o.merge({boundingBox:t})}else if(o instanceof q.Z){(0,me.k)(null!=p.current);const e=p.current,t=new k.UL({left:Math.min(e.x,u.x),top:Math.min(e.y,u.y),width:Math.abs(u.x-e.x),height:Math.abs(u.y-e.y)});o=o.merge({boundingBox:t,rects:(0,a.aV)([t])})}else if(o instanceof k.Hi||o instanceof k.om){const e=o.points.size-1;if(v&&Dt(v,u))g(!1),y(null);else if(!m){const t=(0,Tt.KM)(o,e,l),n=-1!==t;o=Mt(o,u,n,t),n&&(w(o),g(!0),y(o.points.get(e)))}o.isMeasurement()&&"isMeasurement"in o&&f((0,At.eO)({magnifierLabel:o.getMeasurementDetails().label,drawnAnnotationID:o.id,drawnAnnotationPageIndex:o.pageIndex,magnifierCursorPosition:s}))}o=o.set("boundingBox",b(o)),r(o),o instanceof k.Xs||o instanceof k.om||o instanceof k.Hi||!("isMeasurement"in o)||!o.isMeasurement?.()||f((0,At.eO)({magnifierLabel:o.getMeasurementDetails().label,magnifierCursorPosition:t[t.length-1]}))}),[n,b,r,v,m,l,w,f]),C=u.useCallback((()=>{let e=n;const{left:t,top:s,width:c,height:u}=e.boundingBox,d={annotations:(0,a.aV)([e]),reason:X.f.DRAW_END};if(h.emit("annotations.willChange",d),e instanceof k.Xs||!("isMeasurement"in e)||!e.isMeasurement?.()||f((0,At.eO)(null)),e instanceof k.o9)Dt(e.startPoint,e.endPoint)?(f((0,at.FG)(e)),f((0,Pt.Ce)()),f((0,ve.Df)((0,a.l4)([e.id]),null)),f((0,at.ZE)(e.id)),o&&f((0,Pt.yg)(e.constructor,i))):(e=e.merge({startPoint:new k.E9,endPoint:new k.E9,boundingBox:new k.UL}),r(e));else if(e instanceof k.b3||e instanceof k.Xs||e instanceof q.Z)if(Dt(new k.E9({x:t,y:s}),new k.E9({x:t+c,y:s+u})))f((0,at.FG)(e)),f((0,ve.Df)((0,a.l4)([e.id]),null)),e instanceof q.Z||f((0,Pt.Ce)()),f((0,at.ZE)(e.id)),e instanceof q.Z&&o&&f((0,Pt.t)()),o&&e instanceof k.UX&&f((0,Pt.yg)(e.constructor,i));else{const t=new k.UL;e=e instanceof q.Z?e.merge({boundingBox:t,rects:(0,a.aV)([t])}):e.merge({boundingBox:t}),r(e)}else if(e instanceof k.Hi||e instanceof k.om){const t=e.points.size-1,n=(0,Tt.KM)(e,t,l),r=-1!==n,o=Mt(e,e.points.last(),r,n);r?w(o):f((0,at.FG)(o))}else f((0,at.FG)(e))}),[n,r,f,h,o,i]),E=(0,s.v9)((e=>(0,Z.zi)(e,t))),z=u.useCallback((e=>e.apply(E)),[E]);return u.createElement(zt.Z,{size:e.pageSize,onDrawStart:_,onDrawCoalesced:S,onDrawEnd:C,transformPoint:z,interactionMode:i,scrollElement:e.scrollElement,onDoubleClick:x,currentAnnotation:n,defaultAutoCloseThreshold:l,dispatch:f})}const Mt=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;if(n){const t=e.get("points")?.get(r);return e.update("points",(e=>e.set(e.size-1,t)))}return e.update("points",(e=>e.set(e.size-1,t)))};function Rt(e){return{calculateBoundingBox:(0,B.sS)(e.shapeAnnotation.constructor),currentShapeAnnotation:e.shapeAnnotation,shapeAnnotationFromCurrentProps:e.shapeAnnotation}}class Ft extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"state",{isDrawing:!1,...Rt(this.props)}),(0,v.Z)(this,"_handleAnnotationUpdate",(e=>{this.setState({currentShapeAnnotation:e,isDrawing:!0})}))}static getDerivedStateFromProps(e,t){return(0,a.is)(t.shapeAnnotationFromCurrentProps,e.shapeAnnotation)||(0,a.is)(t.currentShapeAnnotation,e.shapeAnnotation)?null:Rt(e)}componentDidMount(){this.props.dispatch((0,Pt.X2)())}componentWillUnmount(){this.props.dispatch((0,Pt.Zg)())}render(){const e=this.state.currentShapeAnnotation,{pageSize:t,viewportState:{zoomLevel:n}}=this.props,{boundingBox:r}=e,o=p()({[yt().canvas]:!0});return u.createElement("div",{className:o},u.createElement(ge,{zoomLevel:n,applyZoom:!0},e.isMeasurement()&&this.state.isDrawing?u.createElement("div",{className:"PSPDFKit-Measurement-Label",style:(0,A.KI)(e)},u.createElement(Ot,{value:e.getMeasurementDetails().label})):null,u.createElement("div",{style:{...r.toJS(),position:"absolute"}},u.createElement(kt,{isSelectable:!1,annotation:e,viewBox:r}))),u.createElement(It,{pageSize:t,pageIndex:this.props.pageIndex,currentAnnotation:e,onAnnotationUpdate:this._handleAnnotationUpdate,keepSelectedTool:this.props.keepSelectedTool,interactionMode:this.props.interactionMode,scrollElement:this.props.scrollElement,defaultAutoCloseThreshold:this.props.defaultAutoCloseThreshold,backend:this.props.backend,disablePointSnapping:this.props.disablePointSnapping}))}}const Nt=(0,s.$j)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,clientToPageTransformation:(0,Z.zi)(e,n),eventEmitter:e.eventEmitter,keepSelectedTool:e.keepSelectedTool,interactionMode:e.interactionMode,scrollElement:e.scrollElement,defaultAutoCloseThreshold:e.defaultAutoCloseThreshold}}))(Ft),Ot=e=>{let{value:t,isSecondaryMeasurement:n}=e;if(n&&t.includes("/")){const e=t.split("/");return u.createElement("span",null,"  (",u.createElement("span",null,e[0],u.createElement(u.Fragment,null,"⁄"),e[1]),")")}if(n&&!t.includes("/"))return u.createElement("span",null,"  (",u.createElement("span",null,t),")");if(!n&&t.includes("/")){const e=t.split("/");return u.createElement("span",null,e[0],u.createElement(u.Fragment,null,"⁄"),e[1],";")}return u.createElement("span",null,t)};class jt extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&(e.preventDefault(),this.handlePress(e,"touch"!==e.pointerType?new k.E9({x:e.clientX,y:e.clientY}):null))})),(0,v.Z)(this,"handlePress",((e,t)=>{this.props.dispatch((0,ve.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,v.Z)(this,"handlePointerUp",(e=>{e.stopPropagation()})),(0,v.Z)(this,"el",null),(0,v.Z)(this,"innerRef",(e=>{this.el=e}))}render(){const{annotation:e,intl:{formatMessage:t},zoomLevel:n,backend:r,isDragging:o,shouldKeepRenderingAPStream:i}=this.props,{boundingBox:a}=e;let s;s=!!((0,A.S6)(e)&&!e.measurementBBox&&(a.width<100||a.height<100)||e.isMeasurement()&&!i);const l=a.grow(fe.Ni?Ae.wK:Ae.XZ),c={...l.toJS(),cursor:(0,O.B7)(e)},d=e.constructor.readableName,h=d&&be.Z[`${d.charAt(0).toLowerCase()+d.slice(1)}Annotation`],f=(0,O.vk)(e.blendMode),m=f?{mixBlendMode:f}:{},g=e.isMeasurement()&&this.props.secondaryMeasurementUnit&&(0,A.Rw)(e,this.props.secondaryMeasurementUnit);return u.createElement(ge,{zoomLevel:n,additionalStyle:m,applyZoom:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},e.isMeasurement()&&s&&u.createElement("div",{className:"PSPDFKit-Measurement-Label",style:(0,A.KI)(e,!!g)},u.createElement(Ot,{value:e.getMeasurementDetails().label}),g?u.createElement(Ot,{value:g.label,isSecondaryMeasurement:!0}):null),u.createElement(He.Z,{onPointerEnter:()=>{this.props.dispatch((0,ve.oX)(e.id))},onPointerLeave:()=>{this.props.dispatch((0,ve.IP)(e.id))}},u.createElement(pe.Z,{disabled:this.props.isDisabled,className:p()(yt().container,`PSPDFKit-${Lt(e)}-Annotation`,"PSPDFKit-Shape-Annotation","PSPDFKit-Annotation",{[yt().cursorNotAllowed]:e.readOnly||e.locked}),style:c,onPointerUp:i?this.handlePointerUp:void 0,"data-annotation-id":e.id,"aria-label":`${t(be.Z.annotation)}${d&&h?`: ${t(h)}`:""}`,innerRef:this.innerRef,tabIndex:-1},u.createElement(kt,{annotation:e,onPointerDown:this.handlePointerDown,isSelectable:this.props.isSelectable,viewBox:l,renderInvisibleClickPath:i}),i&&u.createElement(ne.Reparent,{id:`annotation-shape-${e.id}`},u.createElement(je,{annotation:e,zoomLevel:n,backend:r,label:t(d&&h?h:be.Z.annotation),isDragging:o,onError:this.props.onError})))))}}function Lt(e){const t=e.constructor.readableName;return e.isMeasurement()?"Line"===t?"Distance":"Polyline"===t?"Perimeter":"Polygon"===t?"Polygon-Area":"Rectangle"===t?"Rectangle-Area":"Ellipse"===t?"Ellipse-Area":void 0:t}const Bt=(0,he.XN)(jt,{forwardRef:!0});class Kt extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&this._handlePress(e,"touch"!==e.pointerType?new k.E9({x:e.clientX,y:e.clientY}):null)})),(0,v.Z)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,ve.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,v.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,v.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()})),(0,v.Z)(this,"el",null),(0,v.Z)(this,"_innerRef",(e=>{this.el=e}))}render(){const{annotation:e,globalAnnotation:t,onRenderFinished:n,zoomLevel:r,backend:o,isSelectable:i,isDisabled:a,isDragging:s,isAutoSaveDisabled:l,cursor:c,intl:{formatMessage:d}}=this.props,{boundingBox:h,id:f}=e,m=(0,O.WX)(e,r),g=h.width*m,v=h.height*m,y={cursor:(0,O.B7)(e,{isSelectable:i,cursor:c}),overflow:"hidden",width:g,height:v,display:"block",...(0,Re.kv)(e)?{transformOrigin:"50% 50%",transform:`rotate(${String(-e.rotation)}deg)`}:null},b="STANDALONE"===o.type&&"number"!=typeof e.pdfObjectId&&l,w=b?t.set("id",null):t;return u.createElement(ne.Reparent,{id:`annotation-stamp-${f}`},u.createElement(ge,{position:h.getLocation(),zoomLevel:r,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},u.createElement(He.Z,{onPointerUp:this._handlePointerUp,onPointerEnter:()=>{this.props.dispatch((0,ve.oX)(e.id))},onPointerLeave:()=>{this.props.dispatch((0,ve.IP)(e.id))}},u.createElement(pe.Z,{disabled:a,onPointerDown:this._handlePointerDown,onClick:this._handleClick,style:y,className:p()("PSPDFKit-Annotation PSPDFKit-Stamp-Annotation",{[Ue().readOnlyOutline]:e.readOnly||e.locked}),"data-annotation-id":e.id,"aria-label":`${d(be.Z.annotation)}: ${d(be.Z.stampAnnotation)}`,innerRef:this._innerRef,tabIndex:-1},u.createElement(je,{annotation:w,zoomLevel:m,backend:o,onRenderFinished:n,label:d(be.Z.stampAnnotation),isDragging:s,isDetachedAnnotation:b,onError:this.props.onError})))))}}const Vt=(0,he.XN)(Kt,{forwardRef:!0});var Ht=n(27856),$t=n.n(Ht),Ut=n(30845),Zt=n(20388),qt=n(50647),Gt=n.n(qt),Wt=n(45071),Yt=n(89004);const Xt=u.forwardRef(((e,t)=>{let{annotation:{callout:n,borderWidth:r,borderStyle:o,boundingBox:i,borderColor:c,id:d,backgroundColor:p,verticalAlign:h,fontSize:f,font:m},annotation:g,children:v,isEditing:y}=e;const b=(0,s.I0)(),w=u.useRef(null),x=(0,s.v9)((e=>e.viewportState.zoomLevel));(0,l.kG)(n,"CalloutTextComponent: callout is undefined");const _=(0,u.useRef)(!0);(0,Wt.useGranularLayoutEffect)((()=>{if(_.current)_.current=!1;else{const e=w.current?.getBoundingClientRect();if(!e)return;const t=(0,Yt.Vq)({annotation:g,rect:e,zoomLevel:x,callout:g.callout,text:g.text});t&&b((0,at.FG)(g.merge(t)))}}),[f,m],[g,x]);const S=n.innerRectInset?.setScale(x),C={position:"absolute",borderWidth:r||void 0,borderStyle:o||void 0,borderColor:c?.toCSSValue()||void 0,backgroundColor:p?.toCSSValue()||void 0,left:S?.left,top:S?.top,right:S?.right,bottom:S?.bottom,padding:"4px 8px 4px 0",...y&&{right:void 0,width:"max-content",bottom:void 0,height:"auto",outline:"1px solid rgba(60, 151, 254, 0.5)",outlineOffset:2}},E=`${d}-calloutLinecapId`,z=i.scale(x),P={stroke:c?.toCSSValue()||"black",pointerEvents:"none",strokeWidth:1,fill:"transparent"},D=(0,a.aV)([n.start,n.knee,n.end].filter(Boolean).map((e=>((0,l.kG)(e,"CalloutTextComponent: point is undefined"),function(e,t,n){return new k.E9({x:(e.x-t.left)*n,y:(e.y-t.top)*n})}(e,i,x))))),A=(0,B.CW)(D,r||1,{start:n.cap,end:null}).map((e=>`${e.x},${e.y}`)).join(" ");return u.createElement(u.Fragment,null,u.createElement("svg",{style:{position:"absolute",inset:0},width:z.width,height:z.height,stroke:c?.toCSSValue(),viewBox:`0 0 ${z.width} ${z.height}`,focusable:!1},u.createElement("g",null,n.cap&&u.createElement("defs",null,u.createElement(gt,{lineCap:n.cap,style:P,strokeWidth:r||1,id:E,position:"start",capAtMaxStroke:!0})),u.createElement("polyline",{fill:"none",points:A,stroke:c?.toCSSValue()||"black",strokeWidth:r||void 0,markerStart:`url(#${E})`}))),u.createElement("div",{style:C,ref:t,className:"Callout"},u.createElement("div",{style:{verticalAlign:"center"===h?"middle":h,display:"inline-block"},ref:w},v)))}));class Qt extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"el",null),(0,v.Z)(this,"_innerRef",(e=>{this.el=e})),(0,v.Z)(this,"memoizedCalculateFittingFontSize",(0,Ut.Z)(Zt.MF)),(0,v.Z)(this,"onClick",(e=>{if("function"==typeof this.props.onClick){if(this.props.annotation.lockedContents)return;this.props.onClick(e)}window.setTimeout((()=>{this.props.dispatch((0,ve.VR)(this.props.annotation.id))}),0)})),(0,v.Z)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&(e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new k.E9({x:e.clientX,y:e.clientY}):null))})),(0,v.Z)(this,"_handlePress",((e,t)=>{"function"==typeof this.props.onClick||this.props.annotation.locked?this.onClick(e):this.props.dispatch((0,ve.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,v.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()}))}render(){const{annotation:{boundingBox:e},annotation:t,globalAnnotation:n,zoomLevel:r,isDisabled:o,isSelectable:i,intl:{formatMessage:a},backend:s,isDragging:l,cursor:c,shouldKeepRenderingAPStream:d,isMultiAnnotationsSelected:h}=this.props,f=(0,O.WX)(t,r),m=(0,O.B7)(t,{isSelectable:i,cursor:c});l||(this._lastFittingFontSizeAnnotation=this.memoizedCalculateFittingFontSize(t,f));const{backgroundColor:g,...v}={...(0,Zt.z1)(t.isFitting?this._lastFittingFontSizeAnnotation:t,f,d),cursor:m,...(0,Re.kv)(t)&&d?{transformOrigin:"50% 50%",transform:`rotate(${String(-t.rotation)}deg)`}:null},y="xhtml"===t.text.format;let b;return d||(b=y?u.createElement("div",{dangerouslySetInnerHTML:{__html:t.text?.value}}):$t().sanitize((0,Zt.hr)(t.text?.value)),y&&(v.color=void 0)),u.createElement(ge,{position:e.getLocation(),zoomLevel:r,isMultiAnnotationsSelected:h},u.createElement(He.Z,{onPointerUp:d?this._handlePointerUp:void 0,onPointerEnter:()=>{this.props.dispatch((0,ve.oX)(t.id))},onPointerLeave:()=>{this.props.dispatch((0,ve.IP)(t.id))}},u.createElement(pe.Z,{disabled:o,onPointerDown:this._handlePointerDown,style:{...v,backgroundColor:(0,O.Vc)(t)?void 0:g},className:p()(Gt().annotation,{[Gt().readOnlyOutline]:t.readOnly||t.locked},"PSPDFKit-Text-Annotation PSPDFKit-Annotation"),"data-annotation-id":t.id,"aria-label":`${a(be.Z.annotation)}: ${a(be.Z.textAnnotation)}`,innerRef:this._innerRef,tabIndex:-1},d?u.createElement(ne.Reparent,{id:`annotation-text-${t.id}`},u.createElement(je,{annotation:n,zoomLevel:f,backend:s,label:a(be.Z.textAnnotation),isDragging:l,onError:this.props.onError})):t.callout?u.createElement(Xt,{annotation:t},b):b)))}}const Jt=(0,he.XN)(Qt,{forwardRef:!0});var en=n(54670),tn=n(29211),nn=n.n(tn);function rn(e){const{annotation:t,previewRedactionMode:n,zoomLevel:r,isSelectable:o}=e,{boundingBox:i}=t,[a,s]=u.useState(0),l=10*r,c=Math.round(1.75*r),d=Math.floor(Math.floor(l)+c);u.useLayoutEffect((()=>{if(n&&t.overlayText&&t.repeatOverlayText){const e=new en.default(`${l}px Helvetica, sans-serif`),{width:n}=e.measureText(t.overlayText);s(n),e.clean()}}),[n,t.overlayText,t.repeatOverlayText,l,s]);const h=u.useMemo((()=>t.overlayText&&!t.repeatOverlayText?t.rects.sortBy({0:e=>[e.top,e.left],90:e=>[e.left,-e.top],180:e=>[-e.top,-e.left],270:e=>[-e.left,e.top]}[t.rotation||"0"],ye.b).first():null),[t.overlayText,t.repeatOverlayText,t.rects,t.rotation]),f=t.rects.map(((e,s)=>{const c=e.scale(r),{overlayText:f,textHeight:m}=function(e,t,n,r,o,i){let a=e.overlayText,s=r;if(t&&a&&e.repeatOverlayText&&n){const e=i.width/n,t=Math.max(1,Math.floor(i.height/r)),l=Math.ceil(e*t);s=r*t,s+o<=i.height&&(s+=o),a=a.repeat(l)}return{overlayText:a,textHeight:s}}(t,n,a,d,l,c),g={fontSize:l,lineHeight:`${d}px`,height:t.repeatOverlayText?m:"100%"};if((0,Re.kv)(t)){const e=90===t.rotation||270===t.rotation;g.transformOrigin="50% 50%",g.transform=(e?`translate(${Math.round(c.width/2-c.height/2)}px, ${-Math.round(c.width/2-c.height/2)}px) `:"")+`rotate(${String(-t.rotation)}deg)`,e&&(g.width=c.height,g.height=c.width)}const v=(0,O.B7)(t,{isSelectable:o}),y={top:(e.top-i.top)*r,left:(e.left-i.left)*r,width:c.width,height:c.height,cursor:v,backgroundColor:n?"white":void 0},b={width:c.width,height:c.height},w={...b,border:t.outlineColor instanceof k.Il?`2px solid ${t.outlineColor.toCSSValue()}`:void 0,opacity:t.opacity},x={...b,border:0,color:t.color instanceof k.Il?t.color.toCSSValue():void 0,backgroundColor:t.fillColor instanceof k.Il?t.fillColor.toCSSValue():"black",opacity:t.opacity},_=p()({[nn().textContainer]:!0,[nn().selectable]:!0});return u.createElement("div",{key:s,className:nn().rectContainer,style:y},u.createElement("div",{className:_,style:n?x:w},n&&(t.repeatOverlayText||e.equals(h))&&u.createElement("span",{className:nn().textSpan,style:g},f)))}));return u.createElement(u.Fragment,null,f)}const on=function(e){const{isSelectable:t,dispatch:n,annotation:r,zoomLevel:o,active:i,isMultiAnnotationsSelected:a}=e,{boundingBox:l}=r,c=u.useCallback((e=>{n((0,ve.mg)(r,e))}),[n,r]),d=u.useRef(null),h=(0,s.v9)((e=>e.previewRedactionMode)),f={width:l.width*o,height:l.height*o,cursor:t?"pointer":"auto"};return u.createElement(ge,{zoomLevel:e.zoomLevel,position:l.getLocation(),className:nn().wrapper,disablePointerEvents:!0,isMultiAnnotationsSelected:a},u.createElement(He.Z,{onPointerEnter:()=>{e.dispatch((0,ve.oX)(r.id))},onPointerLeave:()=>{e.dispatch((0,ve.IP)(r.id))}},u.createElement(pe.Z,{is:"div",disabled:Boolean(e.isDisabled),className:p()(nn().container,"PSPDFKit-Redaction-Annotation PSPDFKit-Annotation",i&&!e.isDisabled&&"PSPDFKit-Annotation-Selected",i&&!e.isDisabled&&"PSPDFKit-Redaction-Annotation-Selected"),style:f,"data-annotation-id":r.id,onClick:c,innerRef:d,tabIndex:-1},e.active?u.createElement("div",{className:nn().active}):null,u.createElement(rn,{annotation:r,previewRedactionMode:h,isSelectable:t,zoomLevel:o}))))};var an,sn=n(90255),ln=n.n(sn);class cn extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O)}render(){const{color:e,markupStyle:t,zoomLevel:n,pageRotation:r}=this.props,o=(0,ft.SK)(),i=0!==r?{transform:`rotate(${90*r}deg)`}:{};return u.createElement("svg",{className:ln().markup,style:t,focusable:!1},u.createElement("defs",null,u.createElement("pattern",{id:o,width:"8",height:"3",patternUnits:"userSpaceOnUse",fill:e instanceof k.Il?e.toCSSValue():"transparent",style:i},an||(an=u.createElement("path",{d:"M8 2.9C7.2 2.9 6.7 2.3 6.5 1.9 6.2 1.5 6.1 1.4 6 1.4 5.9 1.4 5.8 1.5 5.5 1.9 5.3 2.3 4.8 2.9 4 2.9 3.2 2.9 2.7 2.3 2.5 1.9 2.2 1.5 2.1 1.4 2 1.4 1.9 1.4 1.8 1.5 1.5 1.9 1.3 2.3 0.8 2.9 0 2.9L0 1.6C0.1 1.6 0.2 1.5 0.5 1.1 0.7 0.7 1.2 0.1 2 0.1 2.8 0.1 3.3 0.7 3.5 1.1 3.8 1.5 3.9 1.6 4 1.6 4.1 1.6 4.2 1.5 4.5 1.1 4.7 0.7 5.2 0.1 6 0.1 6.8 0.1 7.3 0.7 7.5 1.1 7.8 1.5 7.9 1.6 8 1.6L8 2.9 8 2.9Z"})))),u.createElement("rect",{fill:`url(#${o})`,width:"100%",height:"100%",transform:`scale(${n<1?`1, ${n}`:`${n}`})`}))}}class un extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"el",null),(0,v.Z)(this,"_innerRef",(e=>{this.el=e})),(0,v.Z)(this,"_handlePress",(e=>{this.props.dispatch((0,ve.mg)(this.props.annotation,e))})),(0,v.Z)(this,"_handleCommentIconPress",(e=>{this._handlePress(e),e.stopPropagation()}))}render(){const{active:e,annotation:t,zoomLevel:n,isSelectable:r,intl:{formatMessage:o},backend:i,shouldKeepRenderingAPStream:a,pageRotation:s}=this.props,c=t instanceof k.FV,d=(0,O.B7)(t,{isSelectable:r}),{boundingBox:h}=t,f=t.rects.map(((r,o)=>{const i=p()({[ln().annotationRect]:!0,[ln()[t.constructor.className]]:!0}),a={top:(r.top-h.top)*n,left:(r.left-h.left)*n,width:r.width*n,height:r.height*n,opacity:t.opacity,cursor:d},l=function(e){let{annotation:t,rect:n,zoomLevel:r,pageRotation:o}=e;const i=(0,O.B7)(t),a={width:n.width*r,height:n.height*r,backgroundColor:t.color instanceof k.Il?t.color.toCSSValue():"transparent",cursor:i};if(t instanceof k.R9)switch(o){case 0:return{...a,height:Math.max(1,Math.floor(2*r)),marginTop:Math.max(1,Math.floor(-1*r))};case 1:return{...a,width:Math.max(1,Math.floor(2*r)),left:"auto",right:"50%",top:0,marginRight:Math.max(1,Math.floor(-1*r))};case 2:return{...a,height:Math.max(1,Math.floor(2*r)),top:"auto",bottom:"50%",marginBottom:Math.max(1,Math.floor(-1*r))};case 3:return{...a,width:Math.max(1,Math.floor(2*r)),right:"auto",left:"50%",top:0,marginLeft:Math.max(1,Math.floor(-1*r))}}else if(t instanceof k.xu)switch(o){case 0:return{...a,marginTop:Math.max(1,Math.floor(2*r)),height:Math.max(1,Math.floor(2*r))};case 1:return{...a,marginRight:Math.max(1,Math.floor(2*r)),width:Math.max(1,Math.floor(2*r))};case 2:return{...a,marginBottom:Math.max(1,Math.floor(2*r)),height:Math.max(1,Math.floor(2*r)),top:0};case 3:return{...a,width:Math.max(1,Math.floor(2*r)),left:"auto",marginLeft:Math.max(1,Math.floor(2*r))}}else if(t instanceof k.hL)switch(o){case 0:return{...a,height:3*r,overflow:"hidden"};case 1:return{...a,width:3*r,overflow:"hidden"};case 2:return{...a,height:3*r,top:0,overflow:"hidden"};case 3:return{...a,width:3*r,left:"auto",overflow:"hidden"}}return a}({annotation:t,rect:r,zoomLevel:n,pageRotation:s}),f={backgroundColor:t.color instanceof k.Il?t.color.toCSSValue():"transparent"};return u.createElement("div",{key:o,className:i,style:a},e?u.createElement("div",{className:p()({[ln().active]:!c}),style:f}):null,t instanceof k.hL?u.createElement(cn,{markupStyle:l,color:t.color,zoomLevel:n,pageRotation:s}):u.createElement("div",{className:ln().markup,style:l}))})).toArray(),m=(0,O.vk)(t.blendMode),g=m?{mixBlendMode:m}:void 0,v={width:h.width*n,height:h.height*n,cursor:d,...fe.G6?null:g},y=function(e){switch(e.constructor){case k.FV:return"Highlight";case k.R9:return"StrikeOut";case k.xu:return"Underline";case k.hL:return"Squiggle";default:throw new l.p2(`Unknown text markup annotation type of annotation: ${JSON.stringify(e.toJS())}`)}}(t),b=be.Z[`${y.charAt(0).toLowerCase()+y.slice(1)}Annotation`],w=p()(ln().annotation,"PSPDFKit-Annotation","PSPDFKit-Text-Markup-Annotation",`PSPDFKit-${y}-Annotation`,{[ln().activeTextMarkup]:e&&c,[ln().highlight]:c,"PSPDFKit-Text-Markup-Annotation-selected":e,"PSPDFKit-Text-Markup-Comment-Annotation":t.isCommentThreadRoot}),x={};return e&&(x["data-testid"]="selected annotation"),u.createElement(ge,{position:h.getLocation(),zoomLevel:n,disablePointerEvents:!t.readOnly,additionalStyle:fe.G6?g:void 0},u.createElement(He.Z,{onPointerEnter:()=>{this.props.dispatch((0,ve.oX)(t.id))},onPointerLeave:()=>{this.props.dispatch((0,ve.IP)(t.id))}},u.createElement(pe.Z,(0,oe.Z)({is:"div",style:v,className:w,onClick:this._handlePress,disabled:!!this.props.isDisabled,"data-annotation-id":t.id,"aria-label":`${o(be.Z.annotation)}: ${o(b)}`,innerRef:this._innerRef},x,{tabIndex:-1}),u.createElement(u.Fragment,null,a&&u.createElement(je,{annotation:t,zoomLevel:n,backend:i,label:o(b),onError:this.props.onError}),(!a||e)&&f))))}}(0,v.Z)(un,"defaultProps",{active:!1});const dn=(0,he.XN)(un,{forwardRef:!0});var pn=n(39213),hn=n.n(pn);function fn(e){let{annotation:t,zoomLevel:n,isDisabled:r,backend:o,isFocused:i,isMultiAnnotationsSelected:a}=e;const s=u.useRef(null),{formatMessage:l}=(0,he.YB)(),{boundingBox:c}=t,d={width:c.width*n,height:c.height*n};return u.useEffect((()=>{i&&s.current&&s.current.focus()}),[i]),u.createElement(ge,{position:c.getLocation(),zoomLevel:n,applyZoom:!0,isMultiAnnotationsSelected:a},u.createElement(pe.Z,{disabled:r,className:p()(hn().annotation,"PSPDFKit-Annotation-Unknown PSPDFKit-Annotation-Unsupported PSPDFKit-Annotation"),style:d,"data-annotation-id":t.id,"aria-label":l(be.Z.annotation),innerRef:s,tabIndex:-1},o&&u.createElement(je,{annotation:t,backend:o,zoomLevel:n,label:l(be.Z.annotation)})))}var mn=n(12705),gn=n(19181),vn=n(561),yn=n.n(vn),bn=n(2928),wn=n.n(bn);class xn extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"_inputRef",u.createRef()),(0,v.Z)(this,"_handleClickAction",(e=>{this.props.dispatch((0,ve.mg)(this.props.annotation,e))})),(0,v.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,v.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:r}=this.props;r===n.id&&this.props.dispatch((0,at.vy)(null)),t&&t(n,e)}))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;n!==t&&this.props.annotation.id===t&&this._inputRef.current?.focus()}render(){const{annotation:e,formField:{name:t,readOnly:n,buttonLabel:r,label:o},zoomLevel:i,formDesignMode:a,isRenderingAPStream:s,canFillFormFieldCP:l}=this.props,c="number"==typeof e.fontSize?e.fontSize:12,d={width:Math.ceil(e.boundingBox.width*i),height:Math.ceil(e.boundingBox.height*i),...s?{opacity:0}:{...(0,Me.i2)(e,i),fontSize:Math.ceil(c*i),justifyContent:e.verticalAlign&&Sn[e.verticalAlign]||"center",alignItems:e.horizontalAlign&&Cn[e.horizontalAlign]||"center"}},h=l&&!n,f=!h||a,m=p()({[yn().widget]:!0,[yn().onFocus]:!0,[yn().readOnly]:!h,[yn().flexText]:!0,[wn().btn]:!f,[wn().btnFormDesigner]:a,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-Button":!0,"PSPDFKit-Annotation-Widget-read-only":!h});return u.createElement("button",{ref:this._inputRef,className:m,disabled:f,name:t,type:_n(e),style:d,onClick:this._handleClickAction,onFocus:this._handleFocus,onBlur:this._handleBlur},r||o||"")}}function _n(e){const{action:t}=e;if(!t)return"button";switch(t.constructor){case rt.BO:return"reset";case rt.pl:return"submit";default:return"button"}}const Sn={top:"flex-start",center:"center",bottom:"flex-end"},Cn={left:"flex-start",center:"center",right:"flex-end"};var En=n(77897),kn=n(36401),zn=n.n(kn);class Pn extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"state",{checked:(0,Me.CK)(this.props.formField,this.props.annotation)}),(0,v.Z)(this,"UNSAFE_componentWillReceiveProps",(e=>{e.formField.values.equals(this.props.formField.values)||this.setState({checked:(0,Me.CK)(e.formField,e.annotation)})})),(0,v.Z)(this,"_inputRef",u.createRef()),(0,v.Z)(this,"_onChange",(()=>{const{formField:e,annotation:t}=this.props,n=(0,Me.l_)(e,t),r=this.state.checked?(0,a.aV)(["Off"]):(0,a.aV)([n]),o=(0,Me.g6)(e,t,!this.state.checked);this.setState({checked:!this.state.checked}),this.props.dispatch((0,En.xh)([{name:e.name,value:r,optionIndexes:o}]))})),(0,v.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t?.(n,e)})),(0,v.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,at.vy)(null)),t?.(n,e)}))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;n!==t&&this.props.annotation.id===t&&this._inputRef.current?.focus()}render(){const{annotation:{id:e},annotation:t,zoomLevel:r,formField:o,formDesignMode:i,isRenderingAPStream:a,canFillFormFieldCP:s}=this.props,{readOnly:l}=o,c=(0,Me.l_)(o,t),d={width:Math.ceil(t.boundingBox.width*r),height:Math.ceil(t.boundingBox.height*r),...a?{opacity:0}:(0,Me.i2)(t,r)},h=s&&!l,f=p()({[zn().readOnly]:!h,[zn().input]:!0,[yn().widget]:!0,[yn().readOnly]:!h,"PSPDFKit-Annotation-Widget-CheckBox-Control":!0}),m=p()({[zn().checkradio]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-CheckBox":!0,"PSPDFKit-Annotation-Widget-read-only":!h});return u.createElement("label",{style:d,className:m},u.createElement("input",{ref:this._inputRef,type:"checkbox",disabled:!h||i,name:o.name,value:c,key:e,checked:this.state.checked,onChange:this._onChange,onFocus:this._handleFocus,onBlur:this._handleBlur}),u.createElement("span",{className:f,style:{borderWidth:Math.max(1,r)}}),this.state.checked&&u.createElement("span",{className:zn().check,role:"presentation"},u.createElement(Pe.Z,{src:n(22606)})))}}var Dn=n(41756),An=n(60859),Tn=n(68850),In=n.n(Tn);class Mn extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"_inputRef",u.createRef()),(0,v.Z)(this,"_memoizedCalculateFontSize",(0,Ut.Z)(An.MX)),(0,v.Z)(this,"latestKeystrokeDiff",null),(0,v.Z)(this,"_getInput",(e=>{if(e.isEmpty())return"";{const t=this.props.formField.options.find((t=>t.get("value")===e.first()));return t?t.label:e.first()||""}})),(0,v.Z)(this,"state",{initialValue:this._getInput(this.props.formField.values),value:this._getInput(this.props.formField.values),values:this.props.formField.values,isOpen:!1,isFocused:!1,textSelected:!1}),(0,v.Z)(this,"_getSelectedLabel",(()=>{const{options:e}=this.props.formField,t=this.state.values.first(),n=e.find((e=>e.value===t));return n&&n.label||t})),(0,v.Z)(this,"UNSAFE_componentWillReceiveProps",(e=>{e.formField.values!==this.props.formField.values&&this.setState({values:e.formField.values})})),(0,v.Z)(this,"_onChange",(e=>{const t=e.currentTarget,{value:n}=t,{backend:r,formField:o,annotation:i}=this.props;if(!(0,Me.sC)(r,i,o))return void this.setState({value:n,textSelected:!1});const{selectionStart:a,selectionEnd:s}=t,c=(0,R.QE)(this.state.initialValue,n,a);this.latestKeystrokeDiff=c;const u={change:c.change,value:c.prev,returnCode:!0,name:this.props.formField.name,selStart:a,selEnd:s};this.setState({value:n,textSelected:!1}),r.onKeystrokeEvent(u).then((e=>{if(c!==this.latestKeystrokeDiff||0===e.length)return;const n=e[0].object;if(!n.returnCode)return void this.setState({value:this.state.initialValue,textSelected:!1});const r=(0,R.F6)(c,n.change),o=e.slice(1);o.length&&this.props.dispatch((0,En.bt)({changes:o})),this.setState({value:r,initialValue:r,textSelected:!1},(function(){n.selStart!==t.selectionStart&&(t.selectionStart=n.selStart),n.selEnd!==t.selectionEnd&&(t.selectionEnd=n.selEnd)}))})).catch(l.vU)})),(0,v.Z)(this,"_onSelect",(e=>{if(!e){const e=this.state;return this.setState({values:e.values,isOpen:!1,value:e.value,textSelected:!1},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),this.latestKeystrokeDiff=null,void(this._button&&this._button.focus())}const t=(0,a.aV)([e.value]);this.setState({values:t,isOpen:!1,value:e.label,textSelected:!1},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),this.latestKeystrokeDiff=null,this.props.formField.commitOnChange&&(this.props.formField.values.equals(t)||this.props.dispatch((0,En.xh)([{name:this.props.formField.name,value:t}],(e=>{e.some((e=>e.name===this.props.formField.name))&&this.setState({value:this.state.initialValue,textSelected:!1})})))),this._button&&this._button.focus()})),(0,v.Z)(this,"_handleBlur",(e=>{e.persist();const{currentTarget:t}=e;this.props.dispatch((0,at.vy)(null)),this.latestKeystrokeDiff=null,setTimeout((()=>{const n=this.props.shadowRoot?this.props.shadowRoot.activeElement:this.props.frameWindow.document.activeElement;if(!t.contains(n)){const t=this._getInput(this.state.values);this.setState({isOpen:!1,isFocused:!1,value:t,initialValue:t},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),this.props.formField.values.equals(this.state.values)||this.props.dispatch((0,En.xh)([{name:this.props.formField.name,value:this.state.values}],(e=>{e.some((e=>e.name===this.props.formField.name))&&this.setState({value:this.state.initialValue,textSelected:!1})})));const{onBlur:n,annotation:r}=this.props;n&&n(r,e)}}),0)})),(0,v.Z)(this,"calculateFilteredOptions",(()=>{const e=this.state.isOpen,{formField:{options:t,edit:n}}=this.props,r=e?t.toSeq().filter((e=>this.state.textSelected||!this.state.value||e.label.toLowerCase().includes(this.state.value.toLowerCase()))).toList():(0,a.aV)();return n?r.some((e=>this.state.value.includes(e.label)))?r:r.unshift(new k.mv({label:this.state.value,value:this.state.value})):r})),(0,v.Z)(this,"_renderComboBoxTop",((e,t,r,o)=>{const{name:i,readOnly:a}=this.props.formField,s=this.props.formDesignMode,l=this.props.canFillFormFieldCP&&!a,c=p()({[In().comboBoxTop]:!0,"PSPDFKit-Annotation-Widget-ComboBox-Button":!0,"PSPDFKit-Annotation-Widget-read-only":!l}),d=this._getSelectedLabel();return u.createElement("div",{className:c,onClick:this._openDropdownClick,ref:o},u.createElement("button",{"aria-controls":`PSPDFKit-dd-${this.props.formField.name}-menu`,"aria-expanded":r,"aria-haspopup":"true",tabIndex:r?-1:0,style:e,disabled:!l||s,className:In().valueBtn,onFocus:e=>{this.setState({isFocused:!0});const{onFocus:t,annotation:n}=this.props;t&&(e.persist(),t(n,e))},ref:e=>this._button=e,name:i,value:d},d),u.createElement("div",(0,oe.Z)({"aria-hidden":!r,className:In().arrowBtn},t),u.createElement(Pe.Z,{src:n(52904)})))})),(0,v.Z)(this,"_openDropdownClick",(()=>{this.props.formField.readOnly||this.props.formField.formDesignMode||!this.props.canFillFormFieldCP||this.setState((e=>{let{isOpen:t}=e;return{isOpen:!t}}),(()=>{this._inputRef.current&&(this._inputRef.current.select(),this.setState({textSelected:!0},(()=>{this.props.onOpenStateChange(this.state.isOpen)})))}))})),(0,v.Z)(this,"_setContentElementRect",(e=>{this.props.handleComboxBoxRect(e)})),(0,v.Z)(this,"_downShiftRenderFn",(e=>{let{getInputProps:t,getItemProps:n,getToggleButtonProps:r,isOpen:o,highlightedIndex:i}=e;const{annotation:{boundingBox:{width:a,height:s}},annotation:l,formField:{doNotSpellCheck:c,readOnly:d,required:h},formDesignMode:f,isRenderingAPStream:m,canFillFormFieldCP:g,viewportState:v}=this.props,{zoomLevel:y}=v,b=this.calculateFilteredOptions(),w=b.size>5?5:b.size,x={fontSize:10*y,padding:2*y,height:Math.ceil(20*y)},_=d||f||!g,S=t({ref:this._inputRef,value:this.state.value,onFocus:()=>this.setState({isOpen:!0},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),spellCheck:!c,onChange:this._onChange}),C=r(),E=p()({[In().comboBox]:!0,[In().expanded]:o,[yn().widget]:!0,[yn().focusedWidget]:o||this.state.isFocused,[yn().readOnly]:_,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-ComboBox":!0,"PSPDFKit-Annotation-Widget-ComboBox-isOpen":o,"PSPDFKit-Annotation-Widget-Required":h}),k=Math.max(4,Math.min(.7*s,12))*y,z=90===l.rotation||270===l.rotation,P=this._memoizedCalculateFontSize(this._getSelectedLabel(),a,s,l.fontSize,!1,0,this._inputRef.current),{height:D,width:A,opacity:T,...I}={width:Math.ceil(l.boundingBox.width*y),height:Math.ceil(l.boundingBox.height*y),...m?{opacity:0}:(0,Me.i2)(l,y,!1)},M={...(0,Me.VY)(l,y),borderWidth:Math.max(1,y),fontSize:k,opacity:T,[z?"height":"width"]:A,[z?"width":"height"]:D},R={...I,cursor:_?"default":"pointer",padding:`0 ${An.DI*y}px`,fontSize:P*y,[z?"width":"height"]:D,[z?"height":"width"]:A},F=p()({[In().menu]:!0,"PSPDFKit-Annotation-Widget-ComboBox-Menu":!0}),N=Math.ceil(20*w*y),O=Math.ceil(b.size*y);return u.createElement("div",{className:E,style:{...M,...o?{position:"fixed"}:void 0},tabIndex:-1,onBlur:this._handleBlur},u.createElement(Rn,{viewportRect:v.viewportRect,isVertical:90===l.rotation||270===l.rotation,setContentElementRect:this._setContentElementRect},(e=>{let{referenceRef:t,contentRef:r,style:a}=e;return u.createElement(u.Fragment,null,this._renderComboBoxTop(R,C,o,t),o&&u.createElement("div",{className:F,ref:r,style:a},u.createElement("input",(0,oe.Z)({},S,{className:p()(In().comboBoxInput,"PSPDFKit-Annotation-Widget-ComboBox-SearchInput"),style:{textAlign:"center"},tabIndex:-1,required:h})),u.createElement("div",{className:p()(In().comboBoxList,"PSPDFKit-Annotation-Widget-ComboBox-List"),id:`PSPDFKit-dd-${this.props.formField.name}-menu`},b.isEmpty()?u.createElement("div",{className:In().comboBoxListItem,style:x},"No results found"):u.createElement("div",{className:In().listContainer,style:{height:N}},u.createElement("div",{className:In().list,style:{height:O}},b.map(((e,t)=>{const r=i===t;(0,me.k)(e);const o=this.state.values.includes(e.get("value")),a=p()({[In().comboBoxListItem]:!0,[In().comboBoxListItemActive]:r,[In().comboBoxListItemSelected]:o});let s;return s=0===t&&this.props.formField.edit&&!this.props.formField.options.includes(e)?e.label.length?`Create "${e.label}"`:u.createElement("span",{className:In().empty},"(empty)"):e.label,u.createElement("div",(0,oe.Z)({className:p()(a,"PSPDFKit-Annotation-Widget-ComboBox-ListItem",{"PSPDFKit-Annotation-Widget-ComboBox-ListItem-Active":r,"PSPDFKit-Annotation-Widget-ComboBox-ListItem-Selected":o}),title:e.label},n({key:e.value,index:t,item:e,style:x})),s)})))))))})))})),(0,v.Z)(this,"_itemToString",(e=>e?e.label:""))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;n!==t&&this.props.annotation.id===t&&this._openDropdownClick()}componentWillUnmount(){this.latestKeystrokeDiff=null}render(){const{frameWindow:e}=this.props;return u.createElement(Dn.ZP,{environment:e,onSelect:this._onSelect,itemToString:this._itemToString,isOpen:this.state.isOpen,defaultHighlightedIndex:0},this._downShiftRenderFn)}}const Rn=function(e){const{children:t,viewportRect:n,isVertical:r,setContentElementRect:o}=e,[i,a]=u.useState(null),[s,l]=u.useState(null),[c,d]=u.useState(null),p=u.useCallback((()=>{const e=s?s.getBoundingClientRect():null,t=i?i.getBoundingClientRect():null,a=r?"left":"top",l=r?"width":"height";let c=e?e[l]:0;null!==t&&null!==e&&e[a]+e[l]+t[l]>n[l]&&0!==e[a]&&(c=-t[l]),o&&o(t),d({top:c})}),[i,s,n,r]);u.useLayoutEffect((()=>{p()}),[p]);return t({referenceRef:e=>l(e),contentRef:e=>a(e),style:{position:"absolute",...c,width:"100%",...s&&i?null:{opacity:0}}})};var Fn=n(55338),Nn=n.n(Fn);class On extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"state",{values:this.props.formField.values}),(0,v.Z)(this,"UNSAFE_componentWillReceiveProps",(e=>{e.formField.values.equals(this.props.formField.values)||this.setState({values:e.formField.values})})),(0,v.Z)(this,"_inputRef",u.createRef()),(0,v.Z)(this,"_onChange",(e=>{const t=e.target.options,n=(0,a.dM)([...t]).filter((e=>e.selected)).map((e=>e.value)).toList();this.setState({values:n}),this.props.formField.commitOnChange&&(this.props.formField.values.equals(n)||this.props.dispatch((0,En.xh)([{name:this.props.formField.name,value:n}])))})),(0,v.Z)(this,"_onBlur",(e=>{this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,at.vy)(null)),this.props.formField.values.equals(this.state.values)||this.props.dispatch((0,En.xh)([{name:this.props.formField.name,value:this.state.values}]));const{onBlur:t,annotation:n}=this.props;t&&t(n,e)})),(0,v.Z)(this,"_onFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)}))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;n!==t&&this.props.annotation.id===t&&this._inputRef.current?.focus()}render(){const{annotation:e,formField:{options:t,name:n,multiSelect:r,readOnly:o,required:i},zoomLevel:a,formDesignMode:s,isRenderingAPStream:l,canFillFormFieldCP:c}=this.props,d=c&&!o,h={width:Math.ceil(e.boundingBox.width*a),height:Math.ceil(e.boundingBox.height*a),...l?{opacity:0}:{...(0,Me.i2)(e,a),fontSize:Math.ceil(12*a),textAlign:e.horizontalAlign}},f=p()({[Nn().listBox]:!0,[yn().widget]:!0,[yn().onFocus]:!0,[yn().readOnly]:!d,[Nn().listBoxRotated]:!!e.rotation,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-ListBox":!0,"PSPDFKit-Annotation-Widget-read-only":!d,"PSPDFKit-Annotation-Widget-Required":i}),m=r?this.state.values.toArray():this.state.values.size>0?this.state.values.get(0):void 0;return u.createElement("select",{ref:this._inputRef,disabled:!d||s,style:h,size:t.size,className:f,name:n,onChange:this._onChange,multiple:r,onBlur:this._onBlur,onFocus:this._onFocus,value:m,required:i},t.map((e=>u.createElement("option",{key:e.value,value:e.value},e.label))))}}var jn=n(86849);class Ln extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"state",{checked:(0,Me.CK)(this.props.formField,this.props.annotation)}),(0,v.Z)(this,"UNSAFE_componentWillReceiveProps",(e=>{const t=(0,Me.CK)(e.formField,e.annotation);this.setState({checked:t})})),(0,v.Z)(this,"_inputRef",u.createRef()),(0,v.Z)(this,"handleChange",(()=>{const{dispatch:e,formField:t,annotation:n}=this.props;if(this.state.checked&&t.noToggleToOff)return;const r=(0,Me.g6)(t,n,!this.state.checked);e((0,En.xh)([{name:t.name,value:this.state.checked?null:(0,Me.l_)(t,n),optionIndexes:r}])),this.setState((e=>{let{checked:t}=e;return{checked:!t}}))})),(0,v.Z)(this,"uncheck",(e=>{const{formField:t,dispatch:n,annotation:r}=this.props;if(t.readOnly||t.noToggleToOff||!this.state.checked||"keydown"===e.type&&e.keyCode!==jn.tW)return;"keydown"===e.type&&e.preventDefault();const o=(0,Me.g6)(t,r,!1);n((0,En.xh)([{name:t.name,value:null,optionIndexes:o}]))})),(0,v.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,v.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:r}=this.props;r===n.id&&this.props.dispatch((0,at.vy)(null)),t&&t(n,e)}))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;n!==t&&this.props.annotation.id===t&&this._inputRef.current?.focus()}render(){const{annotation:{id:e},annotation:t,zoomLevel:n,formField:r,formDesignMode:o,isRenderingAPStream:i,canFillFormFieldCP:a}=this.props,{checked:s}=this.state,{borderColor:l,borderWidth:c,borderStyle:d,height:h,width:f,opacity:m,backgroundColor:g,...v}={width:Math.ceil(t.boundingBox.width*n),height:Math.ceil(t.boundingBox.height*n),...i?{opacity:0}:(0,Me.i2)(t,n,!1)},{transform:y,transformOrigin:b}=(0,Me.i2)(t,n);let w={width:f,height:h,opacity:m};(0,Re.kv)(t)&&(w={...w,transform:y,transformOrigin:b});const x=a&&!r.readOnly,_=p()({[zn().input]:!0,[zn().inputRadio]:!0,[yn().widget]:!0,[yn().readOnly]:!x,"PSPDFKit-Annotation-Widget-RadioButton-Control":!0}),S=p()({[zn().checkradio]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-RadioButton":!0,"PSPDFKit-Annotation-Widget-read-only":!x});return u.createElement("label",{style:w,className:S},u.createElement("input",{ref:this._inputRef,type:"radio",name:r.name,disabled:!x||o,key:e,defaultChecked:s,value:(0,Me.l_)(r,t),className:s?zn().checked:null,onChange:x?this.handleChange:void 0,onClick:this.uncheck,onKeyDown:this.uncheck,onFocus:this._handleFocus,onBlur:this._handleBlur,style:v}),u.createElement("span",{className:_,style:{borderColor:l,borderWidth:null!=c?c:Math.max(1,n),borderStyle:d,backgroundColor:g}}))}}var Bn=n(70101),Kn=n.n(Bn),Vn=n(20063);class Hn extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"state",{overlappingAnnotation:null}),(0,v.Z)(this,"_focusableElement",null),(0,v.Z)(this,"_onDOMElement",(e=>{this._focusableElement=e})),(0,v.Z)(this,"_handlePress",(e=>{e.stopPropagation(),e.preventDefault();const t=this.props.features.includes(Q.q.ELECTRONIC_SIGNATURES)?"es-signature":"ink-signature",n=this.props.isAnnotationPressPrevented({annotation:this.props.annotation,nativeEvent:e.nativeEvent,selected:!1});if(!e.isPrimary||n||this.props.isDigitallySigned)return;const{overlappingAnnotation:r}=this.state;r?this.props.dispatch((0,ve.mg)(r,e,{selectedAnnotationShouldDrag:"touch"!==e.pointerType?new k.E9({x:e.clientX,y:e.clientY}):null})):(this._focusableElement&&this._focusableElement.focus(),this.props.dispatch((0,at.Ds)(t)),this.props.dispatch((0,Pt.Cc)({signatureRect:this.props.annotation.boundingBox,signaturePageIndex:this.props.annotation.pageIndex,formFieldName:this.props.formField.name})))})),(0,v.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,v.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:r}=this.props;r===n.id&&this.props.dispatch((0,at.vy)(null)),t&&t(n,e)})),(0,v.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()}))}static getDerivedStateFromProps(e){const t=e.inkAnnotations.find((t=>t.boundingBox.isRectOverlapping(e.annotation.boundingBox)))||e.imageAnnotations.find((t=>t.boundingBox.isRectOverlapping(e.annotation.boundingBox)));return{overlappingAnnotation:t||null}}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;if(n!==t&&this.props.annotation.id===t&&!this.props.isDigitallySigned){const{overlappingAnnotation:e}=this.state,t=this.props.features.includes(Q.q.ELECTRONIC_SIGNATURES)?"es-signature":"ink-signature";e?this.props.dispatch((0,ve.Df)((0,a.l4)([e.id]),null)):(this._focusableElement&&this._focusableElement.focus(),this.props.dispatch((0,at.Ds)(t)),this.props.dispatch((0,Pt.Cc)({signatureRect:this.props.annotation.boundingBox,signaturePageIndex:this.props.annotation.pageIndex,formFieldName:this.props.formField.name})))}}render(){const{formatMessage:e}=this.props.intl,{annotation:t,annotation:{boundingBox:n,id:r},formField:{readOnly:i,name:a},zoomLevel:s,formDesignMode:l,isDigitallySigned:c,hasSignatureLicenseComponent:d,backend:h,isDragging:f,canFillFormFieldCP:m,signatureFeatureAvailability:g,isRenderingAPStream:v}=this.props,y=Math.ceil(n.height*s),b={...(0,Me.i2)(t,s,!1),fontSize:(20<y?20:y)*s},w=m&&!i&&g!==Vn.H.NONE,x=p()({[yn().readOnly]:!w,[yn().widget]:!0,[yn().onFocus]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-Signature":!0,"PSPDFKit-Annotation-Widget-read-only":!w}),_=p()({[Kn().sign]:!0,[Kn().signReadOnly]:!w,"PSPDFKit-Annotation-Widget-Signature-Badge":!0}),S=(v||c)&&d&&(0,O.U7)(n),C=p()({"PSPDFKit-Annotation-Widget":!0,"PSPDFKit-Annotation-Widget-Signature":!0,"PSPDFKit-Annotation-Widget-Signature-Signed":c}),E=u.createElement(u.Fragment,null,u.createElement("span",{className:_,"aria-hidden":"true"},e(be.Z.sign)),u.createElement(o.TX,{tag:"span"},`${a}, ${e(be.Z.sign)}`));return S?u.createElement(ne.Reparent,{id:`annotation-signature-widget-${r}`},u.createElement(He.Z,{onPointerUp:this._handlePointerUp,onPointerDown:w?this._handlePress:void 0,onDOMElement:this._onDOMElement},u.createElement(pe.Z,{onFocus:this._handleFocus,onBlur:this._handleBlur,style:{...b,cursor:w||!c?"pointer":"auto"},className:C,"data-annotation-id":t.id,"aria-label":`${e(be.Z.annotation)}: ${e(be.Z.sign)}`,is:"div"},u.createElement(je,{annotation:t,backend:h,zoomLevel:s,label:`${e(be.Z.signed)}`,isDragging:f,isDigitallySigned:c,onError:this.props.onError}),c||this.state.overlappingAnnotation?null:E))):(0,O.U7)(n)?u.createElement(He.Z,{onPointerDown:w?this._handlePress:void 0,onDOMElement:this._onDOMElement},u.createElement("button",{className:x,"data-name":a,style:b,disabled:!w||l,onFocus:this._handleFocus,onBlur:this._handleBlur},this.state.overlappingAnnotation?u.createElement(o.TX,{tag:"span"},a,", ",e(be.Z.signed)):E)):null}}const $n=(0,he.XN)(Hn,{forwardRef:!0});var Un=n(67009);const Zn=(0,gn.x)((function(e,t){const{annotation:n}=t,r=n.pageIndex,o=e.pages.get(r),i=e.features,a=e.signatureFeatureAvailability;(0,me.k)(o,"Cannot find page for widgetAnnotation with id ",n.id);const s=(0,O.xp)(e.annotations,o),l=s.filter((e=>e instanceof ie.Zc)).toList(),c=s.filter((e=>e instanceof ie.sK)).toList();return{isDigitallySigned:(0,Un.Zt)(e,n),inkAnnotations:l,imageAnnotations:c,isAnnotationPressPrevented:t=>(0,O.TW)(t,e.eventEmitter),backend:e.backend,features:i,signatureFeatureAvailability:a,hasSignatureLicenseComponent:i.includes(Q.q.DIGITAL_SIGNATURES)||i.includes(Q.q.ELECTRONIC_SIGNATURES)}}))($n),qn=Zn;var Gn=n(69867),Wn=n(21853),Yn=n(18920);const Xn=["m/d","m/d/yy","mm/dd/yy","mm/yy","d-mmm","d-mmm-yy","dd-mmm-yy","yy-mm-dd","mmm-yy","mmmm-yy","mmm d, yyyy","mmmm d, yyyy","m/d/yy h:MM tt","m/d/yy HH:MM"],Qn=["HH:MM","h:MM tt","HH:MM:ss","h:MM:ss tt"];function Jn(e,t){const{value:n,readOnly:r}=e.formField;return{initialValue:n,value:n,valueFromCurrentProps:n,readOnlyFromCurrentProps:r,isFocused:!!t&&t.isFocused,initialEditingValue:e.editingValue,editingValue:t?t.editingValue:e.editingValue,shouldRecalculateWhenOverflow:!1}}class er extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"state",Jn(this.props)),(0,v.Z)(this,"_usedHeight",0),(0,v.Z)(this,"_latestKeystrokeDiff",null),(0,v.Z)(this,"_memoizedGetTextareaUsedHeight",(0,Ut.Z)(nr)),(0,v.Z)(this,"_memoizedCalculateFontSize",(0,Ut.Z)(An.MX)),(0,v.Z)(this,"_memoizedCalculateCombLetterSpacing",(0,Ut.Z)(tr)),(0,v.Z)(this,"_reusableRealmRemoveTimeout",null),(0,v.Z)(this,"_reusableRealm",null),(0,v.Z)(this,"_inputRef",u.createRef()),(0,v.Z)(this,"_onChange",(()=>{const e=this._inputRef.current;(0,l.kG)(e);const{value:t}=e,{comb:n,doNotScroll:r,multiLine:o}=this.props.formField,i=t.length<this.state.value.length,{zoomLevel:a,annotation:{fontSize:s,lineHeightFactor:c}}=this.props;if(r&&!n&&!i){const n="auto"===s||null==s?An.w5[0]:s,r=e.parentNode;(0,l.kG)(r);const i=e.cloneNode(!0),u=n*a-(o?0:parseFloat(i.style.paddingTop)+parseFloat(i.style.paddingBottom));i.style.fontSize=`${u}px`,i.style.borderWidth="0px",i.style.textAlign="left","TEXTAREA"===i.tagName?i.innerText=t:i.value=t;let d=!0;r.appendChild(i);try{if(o){const t=u*(c??1),n=parseFloat(e.style.height)/t<2,r=n?0:Math.min(.4*u*a,5*a);i.style.lineHeight=n?`${Math.min(u,t)}px`:`${Math.min(t,parseFloat(e.style.height)-r||0)}px`,i.style.paddingTop=`${r}px`,d=(0,Wn.f)(i)}else d=(0,Wn.o5)(i)}finally{r.removeChild(i)}if(d)return}const{backend:u,formField:d,annotation:p}=this.props;if(!(0,Me.sC)(u,p,d))return void this.setState({value:t});const{selectionStart:h}=e,f=(0,R.QE)("string"==typeof this.state.initialEditingValue?this.state.initialEditingValue:this.state.initialValue,t,h);this._latestKeystrokeDiff=f;const m={change:f.change,value:f.prev,returnCode:!0,name:this.props.formField.name,selStart:h,selEnd:f.endCursorPosition};this.setState({value:t,editingValue:t}),u.onKeystrokeEvent(m).then((t=>{if(f!==this._latestKeystrokeDiff||0===t.length)return;const n=t[0].object;if(!n.returnCode)return void this.setState({value:this.state.initialValue,editingValue:this.state.initialEditingValue});const r=(0,R.F6)(f,n.change),o=t.slice(1);o.length&&this.props.dispatch((0,En.bt)({changes:o})),this.setState({value:r,initialValue:r,editingValue:r,initialEditingValue:r},(function(){n.selStart!==e.selectionStart&&(e.selectionStart=n.selStart),n.selEnd!==f.endCursorPosition&&(e.selectionEnd=n.selEnd)}))})).catch(l.vU)})),(0,v.Z)(this,"_onFocus",(e=>{const t=this._inputRef.current;this.setState({isFocused:!0,shouldRecalculateWhenOverflow:!!t&&t.clientHeight<t.scrollHeight});const{onFocus:n}=this.props;n&&(e.persist(),n(this.props.annotation,e.nativeEvent))})),(0,v.Z)(this,"_onBlur",(e=>{this.setState({isFocused:!1}),this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,at.vy)(null)),this._latestKeystrokeDiff=null,this._commitChanges();const{onBlur:t}=this.props;t&&(e.persist(),t(this.props.annotation,e.nativeEvent))}))}static getDerivedStateFromProps(e,t){return t.valueFromCurrentProps!==e.formField.value||t.readOnlyFromCurrentProps!==e.formField.readOnly?Jn(e,t):null}componentWillUnmount(){this._latestKeystrokeDiff=null,this._commitChanges();const{onBlur:e,annotation:t}=this.props;e&&e(t,(0,Yn.My)("blur"))}_commitChanges(){this.props.formField.value!==this.state.value&&this.props.dispatch((0,En.xh)([{name:this.props.formField.name,value:this.state.value,...this.props.formField.multiLine&&{isFitting:(0,An.$Z)(this.props.annotation,this.state.value,this.props.zoomLevel)}}],(e=>{e.some((e=>e.name===this.props.formField.name))&&this.setState({value:this.state.initialValue,editingValue:this.state.initialEditingValue})})))}_dateFormat(){const{annotation:e}=this.props,t=e.additionalActions?.onFormat?.script||this.props.formField.additionalActions?.onFormat?.script;if(!t)return null;const n=t.match(/(?<name>AFTime|AFDate)_(?<type>[FormatEx]*)\("*(?<argument>[0-9]+|[\w\d\s:\-/]*)"*\)/);if(!n)return null;const{argument:r,type:o,name:i}=n.groups;if("FormatEx"===o){const e=r.match(/[d|y|m]/);return"AFDate"===i&&e||"AFTime"===i&&!e?r:null}switch(i){case"AFDate":return Xn[r];case"AFTime":return Qn[r]}return null}_dateInputType(e){if(e){const t=e.match(/[d|y|m]/),n=e.match(/[H|h|M|t]/);if(t&&n)return"datetime-local";if(n)return"time"}return"date"}_getReusableRealm(){return this._reusableRealm?this._reusableRealm.window.document.body.innerHTML="":this._reusableRealm=(0,Wn.Aw)(this.props.frameWindow),this._reusableRealmRemoveTimeout&&clearTimeout(this._reusableRealmRemoveTimeout),this._reusableRealmRemoveTimeout=setTimeout((()=>{this._reusableRealm&&this._reusableRealm.remove(),this._reusableRealm=null,this._reusableRealmRemoveTimeout=null}),200),(0,l.kG)(this._reusableRealm),this._reusableRealm}componentDidMount(){this.props.formField.multiLine&&!this.props.formField.password&&"number"!=typeof this.props.annotation.lineHeightFactor&&this.props.backend.getSuggestedLineHeightFactor(this.props.annotation).then((e=>{this.props.dispatch((0,at.Zr)((0,a.aV)([this.props.annotation.set("lineHeightFactor",e)])))})).catch(l.vU)}componentDidUpdate(e){e.annotationToFocus!==this.props.annotationToFocus&&this.props.annotationToFocus===this.props.annotation.id&&this._inputRef.current?.focus()}render(){const{annotation:{boundingBox:{width:e,height:t},lineHeightFactor:n},annotation:r,formField:{name:i,password:a,maxLength:s,doNotSpellCheck:l,doNotScroll:c,multiLine:d,readOnly:h,comb:f,required:m},zoomLevel:g,formDesignMode:v,formattedValue:y,frameWindow:b,isRenderingAPStream:w,canFillFormFieldCP:x}=this.props,_=function(e,t){return e.isFocused||null==t?e.isFocused&&null!=e.editingValue?e.editingValue:e.value:t}(this.state,y),S=this._memoizedCalculateFontSize(_,e,t,r.fontSize,d,r.borderWidth||0,this._inputRef.current),C={width:r.boundingBox.width*g,height:r.boundingBox.height*g,fontSize:S*g,...w?{opacity:0}:{...(0,Me.i2)(r,g),overflow:c?"hidden":"auto",paddingTop:0,paddingBottom:0,paddingLeft:d?An.DI*g:0,paddingRight:d?An.DI*g:0}};if(r.horizontalAlign&&(C.textAlign=r.horizontalAlign),r.verticalAlign&&!d&&("bottom"===r.verticalAlign?C.paddingTop=C.height-C.fontSize-2*C.borderWidth:"top"===r.verticalAlign&&(C.paddingBottom=C.height-C.fontSize-2*C.borderWidth)),f&&"number"==typeof s&&!d){const t=this._memoizedCalculateCombLetterSpacing(S,e,s,b.document,this._inputRef.current)*g;C.fontFamily="monospace",C.letterSpacing=t,C.paddingLeft=t/2,C.paddingRight=0}const E=a?"password":"text",k=x&&!h,z=p()({[yn().readOnly]:!k,[yn().widget]:!0,[yn().combNoPaddingLeftOnFocus]:f&&s,[yn().onFocus]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-Text":!0,"PSPDFKit-Annotation-Widget-read-only":!k,"PSPDFKit-Annotation-Widget-Required":m}),P=!k||v;if(!a&&d){let e=An.n*g;const t=C.height-C.fontSize;t-2*e<0&&(e=t>0?t/2:0);const o=Math.min(C.fontSize*(n??1),C.height),a=C.height/o<2?0:Math.min(.4*S*g,5*g),c={...C,resize:"none",paddingTop:a,paddingLeft:An.DI*g,paddingRight:An.DI*g,lineHeight:`${o}px`};if(r.verticalAlign&&"top"!==r.verticalAlign){this._usedHeight=this._memoizedGetTextareaUsedHeight(_||" ",r.boundingBox.width,g,S,this._getReusableRealm());const t=c.height-(this._usedHeight||c.fontSize);"bottom"===r.verticalAlign?c.paddingTop=c.height>this._usedHeight?t-e-2*c.borderWidth:0:"center"===r.verticalAlign&&(c.paddingTop=c.height>this._usedHeight?t/2-c.borderWidth:0,c.paddingBottom=c.height>this._usedHeight?t/2-e-c.borderWidth:0)}return u.createElement("textarea",{ref:this._inputRef,className:z,name:i,readOnly:P,value:_,style:c,maxLength:s,spellCheck:!l,onChange:this._onChange,onBlur:this._onBlur,onFocus:this._onFocus,required:m})}const D=this._dateFormat(),A=this._dateInputType(D);return D&&A?u.createElement(o.qe,{ref:this._inputRef,style:C,className:z,name:i,value:_,disabled:P,type:A,maxLength:s,format:D,onChange:this._onChange,onBlur:this._onBlur,onFocus:this._onFocus,required:m}):u.createElement("input",{ref:this._inputRef,className:z,type:E,disabled:P,maxLength:s,name:i,value:_,style:C,spellCheck:!l,onChange:this._onChange,onBlur:this._onBlur,onFocus:this._onFocus,required:m})}}function tr(e,t,n,r,o){let i,s=e/2;try{i=new Gn.f(r,(0,a.aV)(["_"]),{fontSize:`${e}px`,width:`${t}px`,wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace"},yn().widget,o&&o.parentNode);const n=i.measure().first();(0,l.kG)(n),s=n.width}finally{i&&i.remove()}const c=t/n-s;return Math.max(c,0)}function nr(e,t,n,r,o){let i;try{const a={width:`${Math.ceil(t*n)}px`,fontSize:r*n+"px",padding:`0 ${An.DI*n}px`,whiteSpace:"pre-wrap",overflowWrap:"break-word",maxWidth:t*n+"px",border:`${Math.max(1,n)}px solid transparent`,boxSizing:"border-box",display:"block",fontFamily:"Helvetica, sans-serif",margin:"0",outline:"0"};return i=new Gn.f(o.window.document,e,a),i.wrapper?i.wrapper.scrollHeight:0}finally{i&&i.remove()}}var rr=n(6502);class or extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"state",{isFocused:!1,isComboboxOpen:!1,isRollover:!1,isDown:!1}),(0,v.Z)(this,"_elementBoundingBox",null),(0,v.Z)(this,"_pointerRecognizerRef",(e=>{this._pointerRecognizer=e})),(0,v.Z)(this,"onFocus",((e,t)=>{const{onFocus:n,dispatch:r,annotation:{additionalActions:o,formFieldName:i}}=this.props;o&&o.onFocus&&r((0,rr.gH)(o.onFocus.script,"onFocus",i)),n&&n(e,t),this.setState({isFocused:!0})})),(0,v.Z)(this,"onBlur",((e,t)=>{const{onBlur:n,dispatch:r,annotation:{additionalActions:o,formFieldName:i}}=this.props;o&&o.onBlur&&r((0,rr.gH)(o.onBlur.script,"onBlur",i)),n&&n(e,t),this.setState({isFocused:!1})})),(0,v.Z)(this,"onPointerUp",(()=>{this.props.annotation.additionalActions?.onPointerUp&&this.props.dispatch((0,rr.TU)(this.props.annotation,"onPointerUp")),this.state.isDown&&this.setState({isDown:!1})})),(0,v.Z)(this,"onPointerEnter",(()=>{this._elementBoundingBox=this._pointerRecognizer?.getBoundingClientRect(),this.props.annotation.additionalActions?.onPointerEnter&&this.props.dispatch((0,rr.TU)(this.props.annotation,"onPointerEnter")),this.props.hasRolloverVariantAPStream&&this.setState({isRollover:!0})})),(0,v.Z)(this,"onPointerLeave",(()=>{this.props.annotation.additionalActions?.onPointerLeave&&this.props.dispatch((0,rr.TU)(this.props.annotation,"onPointerLeave")),this.state.isRollover&&this.setState({isRollover:!1,isDown:!1})})),(0,v.Z)(this,"onRootPointerMove",(e=>{this._elementBoundingBox&&this.state.isRollover&&(e.clientX<this._elementBoundingBox?.left||e.clientX>this._elementBoundingBox?.right||e.clientY<this._elementBoundingBox?.top||e.clientY>this._elementBoundingBox?.bottom)&&this.onPointerLeave()})),(0,v.Z)(this,"handlePointerUp",(e=>{e.stopPropagation()})),(0,v.Z)(this,"handleOpenStateChange",(e=>{this.setState({isComboboxOpen:e}),this.props.isComboBoxOpen&&this.props.isComboBoxOpen(e),e||this.props.handleComboBoxRect?.(null)})),(0,v.Z)(this,"handleComboBoxRect",(e=>{this.props.handleComboBoxRect?.(e)})),(0,v.Z)(this,"handlePointerDown",(e=>{if(e.isPrimary&&this.props.isSelectable&&this.props.hasDownVariantAPStream&&this.setState({isDown:!0}),!e.isPrimary||!this.props.isSelectable||this.props.formField instanceof k.R0&&!this.props.formDesignMode)return;const t={selectedAnnotationShouldDrag:"touch"!==e.pointerType?new k.E9({x:e.clientX,y:e.clientY}):null,stopPropagation:!0};this.props.dispatch((0,ve.mg)(this.props.annotation,e,t))}))}renderWidgetComponent(e){const{formField:t,canFillFormFieldCP:n,frameWindow:r,shadowRoot:o}=this.props;(0,l.kG)(t),(0,l.kG)(r);const i={dispatch:this.props.dispatch,annotation:this.props.annotation,zoomLevel:this.props.zoomLevel,frameWindow:r,onFocus:this.onFocus,onBlur:this.onBlur,onPointerUp:e?this.handlePointerUp:void 0,formDesignMode:this.props.formDesignMode,backend:this.props.backend,formattedValue:this.props.formattedValue,editingValue:this.props.editingValue,isRenderingAPStream:e,canFillFormFieldCP:n,viewportState:this.props.viewportState,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,annotationToFocus:this.props.annotationToFocus,shadowRoot:o,isFocused:this.state.isFocused};if(t instanceof k.$o)return u.createElement(er,(0,oe.Z)({},i,{formField:t}));if(t instanceof k.Vi)return u.createElement(On,(0,oe.Z)({},i,{formField:t}));if(t instanceof k.rF)return u.createElement(Pn,(0,oe.Z)({},i,{formField:t}));if(t instanceof k.fB)return u.createElement(Mn,(0,oe.Z)({},i,{handleComboxBoxRect:this.handleComboBoxRect,onOpenStateChange:this.handleOpenStateChange,formField:t}));if(t instanceof k.XQ)return u.createElement(Ln,(0,oe.Z)({},i,{formField:t}));if(t instanceof k.R0)return u.createElement(xn,(0,oe.Z)({},i,{formField:t}));if(t instanceof k.Yo)return u.createElement(qn,(0,oe.Z)({},i,{isDragging:this.props.isDragging,formField:t}));throw new Error("Unsupported type for FormField.")}renderWidgetMaybeWithAPStream(){const{annotation:e,zoomLevel:t,backend:n,formField:r,isDragging:o,shouldKeepRenderingAPStream:i,intl:{formatMessage:a}}=this.props,s=i&&!this.state.isComboboxOpen&&(!this.state.isFocused||r instanceof k.rF||r instanceof k.XQ||r instanceof k.R0),l=(0,O.vk)(e.blendMode),c=l?{mixBlendMode:l}:{};let d;return this.state.isRollover&&(d="rollover"),this.state.isDown&&(d="down"),u.createElement("div",{style:c},this.renderWidgetComponent(s),!s||r instanceof k.Yo?null:u.createElement(ne.Reparent,{id:`annotation-widget-${e.id}`,className:Oe().APStreamParent},u.createElement(je,{annotation:e,variant:d,zoomLevel:t,backend:n,formField:r,label:a(be.Z.annotation),isDragging:o})))}render(){const{annotation:{rotation:e,boundingBox:t,id:n},zoomLevel:r,formDesignMode:o,formField:i,isSelectable:a}=this.props;if(!i)return null;const s=90===(0,Fe.Lv)(e)||270===(0,Fe.Lv)(e);let l=ar,c=sr;s&&(l={...l,transformOrigin:"50% 50%",transform:(0,Me.G8)({width:Math.ceil(t.width*r),height:Math.ceil(t.height*r),rotation:(0,Fe.Lv)(e)})},c={...c,transformOrigin:"50% 50%",transform:(0,Me.G8)({width:Math.ceil(t.width*r),height:Math.ceil(t.height*r),rotation:(0,Fe.Lv)(e),reverse:!0})});const d=p()((i instanceof k.rF||i instanceof k.XQ||i instanceof k.R0||i instanceof k.Yo)&&Oe().focusWithinOutline,"PSPDFKit-Annotation");return u.createElement(ge,{position:t.getLocation(),zoomLevel:r,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},u.createElement(He.Z,{onPointerDown:this.handlePointerDown,onPointerUp:this.onPointerUp,onPointerEnter:this.onPointerEnter,onPointerLeave:this.onPointerLeave,onRootPointerMove:this.onRootPointerMove,onDOMElement:this._pointerRecognizerRef},o&&a?u.createElement("div",{style:l,className:"PSPDFKit-Annotation","data-annotation-id":n},u.createElement("div",{style:c},this.renderWidgetMaybeWithAPStream())):u.createElement("div",{className:d,"data-annotation-id":n},this.renderWidgetMaybeWithAPStream())))}}const ir=(0,he.XN)(or,{forwardRef:!0}),ar={cursor:"pointer"},sr={pointerEvents:"none"};var lr=n(72127);const cr=(0,gn.x)((function(e,t){let{annotation:n}=t;const r=e.formFields.get(n.formFieldName),o=r&&e.formattedFormFieldValues.get(r.name),i=r&&e.editingFormFieldValues.get(r.name);return{annotation:n,formField:r?.set("readOnly",(0,mn.VY)(r,n,e))||null,frameWindow:e.frameWindow,formDesignMode:e.formDesignMode,backend:e.backend,formattedValue:o,editingValue:i,canFillFormFieldCP:!!r&&(0,lr.os)(r,e),viewportState:e.viewportState,isViewStateReadOnly:J.J.VIA_VIEW_STATE,hasDownVariantAPStream:!("number"!=typeof n.pdfObjectId||!e.APStreamVariantsDown.has(n.pdfObjectId)),hasRolloverVariantAPStream:!("number"!=typeof n.pdfObjectId||!e.APStreamVariantsRollover.has(n.pdfObjectId)),annotationToFocus:e.widgetAnnotationToFocus,shadowRoot:e.shadowRoot}}),{forwardRef:!0})(ir),ur=cr;var dr=n(93408),pr=n.n(dr),hr=n(81026);const fr=hr.p1;const mr=function(e){const{annotation:t,dispatch:n,zoomLevel:r,isAnnotationSelected:o,activeAnnotationNote:i,visible:a}=e,s=i&&i.parentAnnotation?.id===t.id,l=t.isCommentThreadRoot,c=u.useMemo((()=>s&&i?i:(0,hr.Yu)(t,l?24:fr,l?24:fr)),[t,s,l,i]),d=c.position,h=(l||t.note||s)&&function(e){return!(e instanceof ie.Qi||e instanceof ie.gd||e instanceof ie.Jn||e instanceof ie.x_||e instanceof ie.R1||function(e){return e.creatorName&&/AutoCAD SHX Text/i.test(e.creatorName)}(e))}(t),f=!fe.Ni&&!l,{width:m,height:g}=c.boundingBox,v={width:m,height:g,transformOrigin:"top left",transform:`translate(${m*r/2-m/2}px, ${g*r/2-g/2}px)`,cursor:(0,O.B7)(t,{isAnnotationNote:!0})},y=t.constructor.readableName,b=(0,O.B7)(t);return u.createElement(u.Fragment,null,h&&u.createElement(ge,{position:d,zoomLevel:r},u.createElement(He.Z,{onPointerUp:e=>{l?n((0,ve.mg)(t,e)):(o||n((0,ve.mg)(c.parentAnnotation,e)),n((0,ve.mv)(c))),e&&e.stopPropagation()}},u.createElement("div",{className:p()({"PSPDFKit-Annotation-Note":!0,[pr().noteIndicator]:!0,[pr().noteIndicatorActive]:o||s,[`PSPDFKit-Annotation-Note-${y}Annotation`]:!!y}),onMouseEnter:f?e=>{n((0,ve._3)(c)),e&&e.stopPropagation()}:void 0,onMouseLeave:f?e=>{n((0,ve._3)(null)),e&&e.stopPropagation()}:void 0,style:{cursor:b}},a?u.createElement(we.Z,{style:v,className:p()(pr().icon,s&&pr().iconActive),type:l?"comment-indicator":"note-indicator"}):u.createElement("div",{style:v})))))},gr=u.memo((function(e){const{annotation:t,annotation:{boundingBox:n},zoomLevel:r,backend:o,isMultiAnnotationsSelected:i}=e,{formatMessage:a}=(0,he.YB)(),s={width:n.width*r,height:n.height*r},[c,d]=u.useState(void 0),[h,f]=u.useState(void 0);u.useEffect((()=>{o.cachedRenderAnnotation(t,void 0,s.width,s.height).promise.then((e=>{if(e?.element instanceof HTMLImageElement)return f(e.element.src)})).catch((e=>{throw new l.p2(`Could not render the media annotation: ${e.message}`)}))}),[t,o,s.width,s.height]),u.useEffect((()=>{o.getAttachment(t.mediaAttachmentId).then((e=>d(e))).catch((()=>{throw new l.p2("Could not get media attachment for "+t.id)}))}),[t.mediaAttachmentId,o,t.id]);const m=u.useMemo((()=>c?URL.createObjectURL(c):""),[c]);return u.useEffect((()=>function(){m&&URL.revokeObjectURL(m)}),[m]),m?u.createElement(ge,{position:n.getLocation(),zoomLevel:r,isMultiAnnotationsSelected:i},u.createElement("div",{className:p()("PSPDFKit-MediaAnnotation","PSPDFKit-Annotation"),"data-annotation-id":t.id},u.createElement("video",{src:m,controls:!0,width:s.width,height:s.height,poster:h,"aria-label":`${a(be.Z.annotation)}: ${a(be.Z.mediaAnnotation)} ${t.fileName}`},a(be.Z.mediaFormatNotSupported)))):null})),vr=gr;var yr=n(68540);const br=u.forwardRef((function(e,t){let{annotation:n,globalAnnotation:r,attachments:o,backend:i,dispatch:a,isAnnotationReadOnly:l,isDisabled:c,isHover:d,isFocused:p,onBlur:h,onFocus:f,pageSize:m,zoomLevel:g,rotation:v,pageRotation:y,isSelected:b,showAnnotationNotes:w,activeAnnotationNote:x,onClick:_,isResizing:S=!1,isModifying:C=!1,isDragging:E=!1,isRotating:k=!1,isAutoSaveDisabled:z,cursor:P,shouldRenderAPStream:D,isMultiAnnotationsSelected:A=!1,isComboBoxOpen:T,handleComboBoxRect:I}=e;const[M,R]=u.useState(!1),F=u.useCallback((()=>R(!0)),[]),N=(0,s.v9)((e=>"formFieldName"in n?e.formFields.get(n.formFieldName):void 0)),j=(0,s.v9)((e=>(0,Un.Zt)(e,n))),L=(0,yr.jC)({annotation:n,formField:N,zoomLevel:g,isDigitallySignedWidget:j});u.useEffect((()=>{L&&Ve({annotation:n,formField:N,zoomLevel:g,isDigitallySigned:j},L)&&R(!1)}),[n,N,g,j]);const B=l(n),K={backend:i,dispatch:a,isDisabled:c,isSelectable:!B,onBlur:h,onFocus:f,ref:t,zoomLevel:g,rotation:v,isDragging:E,isAutoSaveDisabled:z,shouldKeepRenderingAPStream:D&&!S&&!C&&!k&&!M,isFocused:p,isMultiAnnotationsSelected:A,cursor:P,isComboBoxOpen:T,handleComboBoxRect:I,onError:F},V=(0,s.v9)((e=>e.secondaryMeasurementUnit));let H=null;return n instanceof ie.Hu&&(H=u.createElement(vr,(0,oe.Z)({},K,{annotation:n}))),n instanceof ie.sK?H=u.createElement(qe,(0,oe.Z)({},K,{attachment:n.imageAttachmentId?o.get(n.imageAttachmentId):null,annotation:n})):n instanceof ie.Zc?H=u.createElement(Je,(0,oe.Z)({},K,{annotation:n})):n instanceof ie.R1?H=u.createElement(it,(0,oe.Z)({},K,{isHover:d,annotation:n})):n instanceof ie.Qi?H=u.createElement(ht,(0,oe.Z)({},K,{isReadOnly:B,annotation:n})):n instanceof ie.UX?H=u.createElement(Bt,(0,oe.Z)({},K,{annotation:n,secondaryMeasurementUnit:V})):n instanceof ie.GI?H=u.createElement(Vt,(0,oe.Z)({},K,{annotation:n,globalAnnotation:r,isAutoSaveDisabled:z})):n instanceof ie.gd?H=u.createElement(Jt,(0,oe.Z)({},K,{pageSize:m,onClick:_,annotation:n,globalAnnotation:r})):n instanceof ie.Wk?H=u.createElement(on,(0,oe.Z)({},K,{active:b,annotation:n})):n instanceof ie.On?H=u.createElement(dn,(0,oe.Z)({},K,{active:b,pageRotation:y,annotation:n})):n instanceof ie.Ih?H=u.createElement(fn,(0,oe.Z)({},K,{annotation:n})):n instanceof ie.x_?H=u.createElement(ur,(0,oe.Z)({},K,{annotation:n})):n instanceof ie.Jn&&(H=u.createElement(Ce,(0,oe.Z)({},K,{isReadOnly:B,active:b,annotation:n}))),u.createElement(ce,{key:n.id,zoomLevel:g,renderer:"Annotation",notCSSScaled:n instanceof ie.x_},u.createElement(xr,{annotation:n},H,w&&(0,O.YV)(n)&&u.createElement(mr,{dispatch:a,annotation:n,zoomLevel:g,isAnnotationSelected:b,activeAnnotationNote:x,visible:!0})))})),wr=br;function xr(e){let{children:t}=e;return u.createElement("div",null,t)}const _r=(0,s.$j)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,transformClientToPage:function(t){return e.transformClientToPage(t,n)}}})),Sr=(0,s.$j)((e=>({transformClientToPage:e.transformClientToPage})));var Cr=n(35464),Er=n(51491),kr=n.n(Er);class zr extends u.PureComponent{constructor(e){let t,n,r;if(super(e),(0,v.Z)(this,"layerRef",u.createRef()),(0,v.Z)(this,"_handlePointerUp",(e=>{if(!e.isPrimary)return;const t=this._getNormalizedMousePosition(e);if(!t)return;const n=this._fitRectInPage(new k.UL({left:t.x-this.sizes.width/2,top:t.y-this.sizes.height/2,width:this.sizes.width,height:this.sizes.height}),this.props.pageSize),r=this.props.annotation.set("pageIndex",this.props.pageIndex).set("boundingBox",n);e.stopPropagation(),r instanceof k.Qi?this.props.dispatch((0,at.FG)(r)):r instanceof k.Jn&&(this.props.dispatch((0,at.Zr)((0,a.aV)([r]))),this.props.dispatch((0,Cr.mh)(r.id)))})),e.annotation instanceof k.Qi)t=n=r=Ae.SP,this.cursor="context-menu";else{if(!(e.annotation instanceof k.Jn))throw Error("Annotation type not supported.");t=n=r=Ae.zk,this.cursor="context-menu"}this.sizes={width:t,height:n,minWidth:r}}_getNormalizedMousePosition(e){const{target:t}=e;if(this.layerRef.current){const{defaultView:n}=this.layerRef.current.ownerDocument;if(t instanceof n.HTMLDivElement)return this.props.transformClientToPage(new k.E9({x:e.clientX,y:e.clientY}),this.props.pageIndex)}}_fitRectInPage(e,t){const{width:n,height:r}=t,o=this.sizes.minWidth||this.sizes.width;return e.top+e.height>r&&(e=e.set("top",r-e.height)),e.left+o>n&&(e=e.set("left",n-o)),e}render(){return u.createElement(He.Z,{onPointerUp:this._handlePointerUp},u.createElement("div",{"data-testid":"create-annotation-layer"},u.createElement("div",{className:kr().layer,style:{cursor:this.cursor||"auto"},ref:this.layerRef})))}}const Pr=Sr(zr);var Dr=n(80054),Ar=n.n(Dr);class Tr extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"state",{currentSelectableAnnotation:null}),(0,v.Z)(this,"_handlePointerDownCapture",(e=>{this._pointerDownTime=Date.now();const t=this._transformToPagePoint(e);this._selectableAnnotation=this.findSelectableAnnotation(t);const n=(0,O.Jy)(this.props.selectedAnnotations,this.props.zoomLevel);fe.Ni&&this.props.isMultiAnnotationsSelected&&!n?.isPointInside(t)&&!this.checkAnnotationAtPoint(t)&&this.props.dispatch((0,ve.fz)());const r=this._selectableAnnotation instanceof k.R1;r&&(this._selectedAnnotationOnDown=this.findSelectedAnnotationAtPoint(t)),this._isInterestedInUpCapture=r&&!this._selectedAnnotationOnDown,e.metaKey||e.ctrlKey&&this.props.isMultiSelectionEnabled?(this.props.setMultiAnnsInitialEvent?.(e.nativeEvent),this.props.dispatch((0,Pt.YF)(!0))):this.props.setMultiAnnsInitialEvent?.(void 0)})),(0,v.Z)(this,"_handlePointerUpCapture",(e=>{if(!this._selectableAnnotation||!this._isInterestedInUpCapture||!this.getSelection().isCollapsed)return;const t=Date.now()-this._pointerDownTime>300,n=this._selectableAnnotation,r=n instanceof k.R1;if(t&&!r)return void(this._selectableAnnotation=null);const o=n instanceof k.On||r,i=!this._selectedAnnotationOnDown&&Boolean(this.findSelectedAnnotationAtPoint(this._transformToPagePoint(e)));this.props.dispatch((0,ve.mg)(n,e,{preventDefault:o,stopPropagation:o,clearSelection:i,longPress:t&&r}))})),(0,v.Z)(this,"_handlePointerUp",(e=>{if(!this.getSelection().isCollapsed||!this._selectableAnnotation||this._selectedAnnotationOnDown)return;const t=this._selectableAnnotation,n=t instanceof k.On;this.props.dispatch((0,ve.mg)(t,e,{preventDefault:n,stopPropagation:n}))})),(0,v.Z)(this,"_handlePointerMove",(e=>{if("mouse"!==e.pointerType)return;const{currentSelectableAnnotation:t}=this.state,n=this._transformToPagePoint(e),r=this.findSelectableAnnotation(n);!(0,a.is)(r,t)&&(t&&this.props.hoverAnnotationIds.has(t.id)&&this.props.dispatch((0,ve.IP)(t.id)),!r||this.props.hoverAnnotationIds.has(r.id)||this.checkifHoverPointIsDefferedRegion(new k.E9({x:e.clientX,y:e.clientY}))||this.props.dispatch((0,ve.oX)(r.id)),this.setState({currentSelectableAnnotation:r}))}))}checkifHoverPointIsDefferedRegion(e){if(this.props.hitCaptureDeferredRect&&this.props.hitCaptureDeferredRect.length>0)for(const t of this.props.hitCaptureDeferredRect){if(e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom)return!0}return!1}_transformToPagePoint(e){return this.props.transformClientToPage(new k.E9({x:e.clientX,y:e.clientY}),this.props.pageIndex)}_boundingBoxHitTest(e){const t=fe.Ni?Ae.wK:Ae.XZ;return n=>n instanceof k.R1?n.boundingBox.isPointInside(e):n.boundingBox.grow(t).isPointInside(e)}_findSelectableLinkAnnotation(e){return this.props.selectableLinkAnnotations.filter(O.Fp).findLast(this._boundingBoxHitTest(e))}_findSelectableTextMarkupAnnotation(e){return this.props.selectableTextMarkupAnnotations.filter(O.Fp).findLast((t=>t.rects.find((t=>t.grow(fe.Ni?Ae.wK:Ae.XZ).isPointInside(e)))))}findSelectableAnnotation(e){const t=this._findSelectableLinkAnnotation(e),n=this._findSelectableTextMarkupAnnotation(e);return t||n}findSelectedAnnotationAtPoint(e){return this.props.selectedAnnotations.findLast(this._boundingBoxHitTest(e))}checkAnnotationAtPoint(e){return this.props.currentPageAnnotations?.some((t=>t.boundingBox?.isPointInside(e)))??!1}getSelection(){return this.props.window.getSelection()}render(){const e=!!this.state.currentSelectableAnnotation,t=p()({[Ar().layer]:!0,[Ar().cursorText]:this.props.keepSelectedTool&&"TEXT"===this.props.interactionMode,[Ar().cursorPointer]:e,"PSPDFKit-CursorPointer":e});return u.createElement(He.Z,{onPointerMove:this._handlePointerMove,onPointerUp:this._handlePointerUp,onPointerDownCapture:this.props.isHitCaptureDeferred?void 0:this._handlePointerDownCapture,onPointerDown:this.props.isHitCaptureDeferred?this._handlePointerDownCapture:void 0,onPointerUpCapture:this._handlePointerUpCapture},u.createElement("div",{className:t},this.props.children))}}const Ir=Sr(Tr);var Mr=n(92537);class Rr extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"precision",(0,Ge.HB)(this.props.zoomLevel)),(0,v.Z)(this,"pointsToPathArray",We.Options.ENABLE_INK_SMOOTH_LINES?e=>(0,Ge.vR)(e,this.precision):Ge.$U),(0,v.Z)(this,"_pathDataFromFragments",((e,t,n)=>{if(!n||n.length<3)return null;const r=this.props.annotation.lines.get(t);return!r||r.size<n.length||r.size<4?null:r.size===n.length?n:[...n.slice(0,n.length-2),...this.pointsToPathArray(r.slice(n.length-2)).slice(1)]})),(0,v.Z)(this,"_onDrawStart",(e=>{let{annotation:t,onDrawStart:n}=this.props;this.precision=(0,Ge.HB)(this.props.zoomLevel),t=t.update("lines",(t=>t.push((0,a.aV)([e,new k.Wm({x:e.x,y:e.y,intensity:e.intensity})])))),t=t.set("boundingBox",(0,Ge.gz)(t)),n(t)})),(0,v.Z)(this,"_onDraw",(e=>{let{annotation:t,onDraw:n}=this.props,r=t.lines.last();(0,l.kG)(r),r=e.reduce(((e,t)=>(0,Ge.H9)(e,t,this.props.distanceBetweenPoints)?e.push(t):e),r.pop()).push(e[e.length-1]),t=t.setIn(["lines",this.props.annotation.lines.size-1],r),t=t.set("boundingBox",function(e,t){const{boundingBox:n,lineWidth:r}=e;let{left:o,top:i,width:a,height:s}=n,l=Math.floor(o),c=Math.floor(i),u=Math.ceil(o+a),d=Math.ceil(i+s);return t.forEach((e=>{l=Math.floor(Math.min(o,e.x-r/2)),c=Math.floor(Math.min(i,e.y-r/2)),u=Math.ceil(Math.max(o+a,e.x+r/2)),d=Math.ceil(Math.max(i+s,e.y+r/2)),o=l,i=c,a=u-l,s=d-c})),new k.UL({left:o,top:i,width:a,height:s})}(t,r)),n(t)})),(0,v.Z)(this,"_onDrawEnd",(()=>{let{annotation:e,onDrawEnd:t}=this.props;const n=e.lines.last();if((0,l.kG)(n),n.size>1){const t=n.get(n.size-2);t&&0===n.last().distance(t)&&(e=e.updateIn(["lines",e.lines.size-1],(e=>e.pop())))}t(e)}))}render(){const{annotation:e,canvasSize:t,zoomLevel:n}=this.props,{boundingBox:r}=e;return u.createElement("div",{className:Xe().canvas,style:{cursor:this.props.cursor,mixBlendMode:(0,O.vk)(e.blendMode)},"data-testid":"ink-canvas-outer-div"},u.createElement(ge,{zoomLevel:n,applyZoom:!0},u.createElement("div",{style:{position:"absolute",top:r.top,left:r.left,width:r.width,height:r.height}},u.createElement(et,{isSelectable:!1,annotation:e,viewBox:r,pathDataFromFragments:this._pathDataFromFragments,precision:this.precision}))),u.createElement(zt.Z,{scrollElement:this.props.scrollElement,size:t,onDrawStart:this._onDrawStart,onDrawCoalesced:this._onDraw,onDrawEnd:this._onDrawEnd,transformPoint:this.props.transformPoint,interactionMode:this.props.interactionMode,canScrollWhileDrawing:this.props.canScrollWhileDrawing}))}}(0,v.Z)(Rr,"defaultProps",{canvasSize:new k.$u({width:300,height:200}),distanceBetweenPoints:0,cursor:"default",zoomLevel:1});const Fr=(0,Ut.Z)(Ge.Vv);function Nr(e){const t=e.inkAnnotation.lineWidth/2*e.viewportState.zoomLevel;return{currentInkAnnotation:e.inkAnnotation,cursor:Fr(t),zoomLevel:e.viewportState.zoomLevel,inkAnnotationFromCurrentProps:e.inkAnnotation}}class Or extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"state",Nr(this.props)),(0,v.Z)(this,"lastEndDrawingTime",Date.now()),(0,v.Z)(this,"_transformClientToPage",(e=>e.apply(this.props.clientToPageTransformation))),(0,v.Z)(this,"_onDrawStart",(e=>{const t=e.pageIndex,n={annotations:(0,a.aV)([e]),reason:X.f.DRAW_START};this.props.eventEmitter.emit("annotations.willChange",n),null===t?e=e.set("pageIndex",this.props.pageIndex):t!==this.props.pageIndex?(e=e.set("pageIndex",this.props.pageIndex),this.props.dispatch((0,at.vc)(e,this.props.pageIndex))):(0,Ge.Ip)(e,this.props.pageSize,this.lastEndDrawingTime)||(e=(e=e.update("lines",(e=>(0,a.aV)([e.last()])))).set("boundingBox",(0,Ge.gz)(e)),this.props.dispatch((0,at.vc)(e,this.props.pageIndex))),this.setState({currentInkAnnotation:e})})),(0,v.Z)(this,"_onDraw",(e=>{this.setState({currentInkAnnotation:e})})),(0,v.Z)(this,"_onDrawEnd",(e=>{const t={annotations:(0,a.aV)([e]),reason:X.f.DRAW_END};this.props.eventEmitter.emit("annotations.willChange",t),this.lastEndDrawingTime=Date.now(),this.setState({currentInkAnnotation:e},(()=>{this.state.currentInkAnnotation.lines.size&&this.props.dispatch((0,at.FG)(this.state.currentInkAnnotation))}))}))}static getDerivedStateFromProps(e,t){return(0,a.is)(t.inkAnnotationFromCurrentProps,e.inkAnnotation)||(0,a.is)(t.currentInkAnnotation,e.inkAnnotation)&&e.viewportState.zoomLevel===t.zoomLevel?null:Nr(e)}componentDidMount(){this.props.dispatch((0,Pt.X2)())}componentWillUnmount(){this.props.dispatch((0,Pt.Zg)())}render(){const e=this.state.currentInkAnnotation,{pageSize:t}=this.props,{INK_EPSILON_RANGE_OPTIMIZATION:n}=We.Options;return u.createElement(Rr,{scrollElement:this.props.scrollElement,annotation:e,canvasSize:t,onDrawStart:this._onDrawStart,onDrawEnd:this._onDrawEnd,onDraw:this._onDraw,transformPoint:this._transformClientToPage,distanceBetweenPoints:n/(this.props.viewportState.zoomLevel*(0,Mr.L)()),cursor:this.state.cursor,zoomLevel:this.props.viewportState.zoomLevel,interactionMode:this.props.interactionMode,canScrollWhileDrawing:this.props.canScrollWhileDrawing})}}const jr=(0,s.$j)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,clientToPageTransformation:(0,Z.zi)(e,n),eventEmitter:e.eventEmitter,interactionMode:e.interactionMode,canScrollWhileDrawing:e.canScrollWhileDrawing}}))(Or);var Lr=n(13205);const Br=100;function Kr(e,t){const n=Math.floor(e.x/Br);return Math.floor(e.y/Br)*t+n}function Vr(e,t,n,r){const{lineWidth:o,id:i}=e,a=Math.ceil(r.width/Br),s=t/2;return e.lines.forEach(((e,t)=>{e.forEach(((e,r)=>{if(null==e)return;const l=Math.floor(e.x/Br),c=Math.floor(e.y/Br),u={point:e,annotationId:i,lineIndex:t,pointIndex:r,strokeRadius:o/2},d=Math.ceil((s+u.strokeRadius)/Br);for(let t=c-d;t<=c+d;t++)for(let r=l-d;r<=l+d;r++)if(r>-1&&t>-1){if(new Lr.Z({x:r<l?(r+1)*Br:r===l?e.x:r*Br,y:t<c?(t+1)*Br:t===c?e.y:t*Br}).distance(e)<s+u.strokeRadius){const e=t*a+r;n[e]?n[e].push(u):n[e]=[u]}}}))})),n}function Hr(e,t,n,r){return!(e.x+r<t.x-n||e.x-r>t.x+n||e.y+r<t.y-n||e.y-r>t.y+n)&&e.distance(t)<n+r}const $r=(0,s.$j)(((e,t)=>{let{pageIndex:n}=t;return{inkEraserCursorWidth:e.inkEraserCursorWidth,zoomLevel:e.viewportState.zoomLevel,clientToPageTransformation:(0,Z.zi)(e,n),scrollElement:e.scrollElement,interactionMode:e.interactionMode}}))((function(e){const{canvasSize:t=new k.$u({width:300,height:200}),inkEraserCursorWidth:n,zoomLevel:r,dispatch:o,inkAnnotations:i,clientToPageTransformation:s}=e,l=u.useMemo((function(){return(0,Ge.Vv)(n/2*r)}),[n,r]),[c,d]=u.useState({localAnnotations:i,lastErasedPointsPaths:[]}),p=u.useRef(null),h=u.useCallback((e=>e.apply(s)),[s]);u.useEffect((()=>{p.current=i.reduce(((e,r)=>Vr(r,n,e,t)),[]),d({localAnnotations:i,lastErasedPointsPaths:[]})}),[i,n,t]);const f=u.useCallback((e=>{d(function(e,t,n,r,o,i){const a=Math.ceil(i.width/Br),s={};return t.forEach((e=>{const t=Kr(e,a);r[t]&&r[t].forEach((t=>{t&&t.point&&Hr(t.point,e,n/2,t.strokeRadius)&&(t.point=null,o.push([t.annotationId,t.lineIndex,t.pointIndex]),s[t.annotationId]=!0)}))})),{localAnnotations:e.map((e=>s[e.id]?e.withMutations((t=>{o.filter((t=>t[0]===e.id)).forEach((e=>{t.setIn(["lines",e[1],e[2]],null)}))})):e)),lastErasedPointsPaths:o}}(c.localAnnotations,Array.isArray(e)?e:[e],n,p.current,[],t))}),[c.localAnnotations,n,t]),m=u.useCallback((()=>{const e=function(e,t){return e.map(((e,n)=>e===t.get(n)?e:(e=e.withMutations((e=>{e.update("lines",(e=>e.reduce(((e,t)=>e.concat(t.reduce(((e,t)=>null==t?e.push((0,a.aV)()):e.update(-1,(e=>e.push(t)))),(0,a.aV)([(0,a.aV)()])).filter((e=>e.size>0)))),(0,a.aV)()).filter((e=>e.size>0))))}))).set("boundingBox",(0,Ge.gz)(e))))}(c.localAnnotations,i);o((0,at.GZ)(e.filter((e=>e.lines&&e.lines.size>0)),e.filter((e=>!e.lines||0===e.lines.size)).map((e=>e.id))))}),[c.localAnnotations,o,i]);u.useEffect((()=>(o((0,Pt.X2)()),()=>{o((0,Pt.Zg)())})),[o]);const g=u.useCallback(((e,t,n)=>{if(!n)return null;const{lastErasedPointsPaths:r,localAnnotations:o}=c;if(0===r.length)return n;const i=o?.find((t=>t.id===e))?.lines.get(t);return i&&i.size===n.length?r.reduce(((n,r)=>{if(function(e,t,n,r){return e[0]===n&&e[1]===r&&"M 0,0"!==t[e[2]]}(r,n,e,t)){n[r[2]]="M 0,0";const e=n[r[2]+1],t=i.get(r[2]+1);if(t&&Ur(e)){const e=n[r[2]+2];n[r[2]+1]=`${Ur(e)?"M":"L"} ${t.x},${t.y}`}const o=n[r[2]-1],a=i.get(r[2]-1),s=a?`L ${a.x},${a.y}`:"";if(Ur(o)){const e=n[r[2]-2];a&&Zr(e)&&(n[r[2]-1]=s)}else a&&Zr(o)&&(n[r[2]-1]=s);return n}return n}),n):null}),[c]);return u.createElement("div",{className:Xe().canvas,style:{cursor:l}},c.localAnnotations.map((e=>u.createElement(Je,{dispatch:o,annotation:e,isSelectable:!1,isDisabled:!0,zoomLevel:r,key:e.id,pathDataFromFragments:g}))),u.createElement(zt.Z,{size:t,onDrawStart:f,onDrawCoalesced:f,onDrawEnd:m,transformPoint:h,interactionMode:e.interactionMode,scrollElement:e.scrollElement}))}));function Ur(e){return"string"==typeof e&&e.startsWith("C")}function Zr(e){return"string"==typeof e&&e.startsWith("M")}const qr=(0,s.$j)(((e,t)=>{let{pageIndex:n}=t;return{inkEraserCursorWidth:e.inkEraserCursorWidth,zoomLevel:e.viewportState.zoomLevel,clientToPageTransformation:(0,Z.zi)(e,n),scrollElement:e.scrollElement,interactionMode:e.interactionMode}}))((function(e){const{canvasSize:t=new k.$u({width:300,height:200}),inkEraserCursorWidth:n,zoomLevel:r,dispatch:o,inkAnnotations:i,clientToPageTransformation:s}=e,l=u.useMemo((function(){return(0,Ge.Vv)(n/2*r)}),[n,r]),[c,d]=u.useState({localAnnotations:i,lastErasedLinesPaths:[]}),p=u.useRef(null),h=u.useCallback((e=>e.apply(s)),[s]);u.useEffect((()=>{p.current=i.reduce(((e,r)=>Vr(r,n,e,t)),[]),d({localAnnotations:i,lastErasedLinesPaths:[]})}),[i,n,t]);const f=u.useCallback((e=>{d(function(e,t,n,r,o,i){const s=Math.ceil(i.width/Br),l={};return t.forEach((e=>{const t=Kr(e,s);r[t]&&r[t].forEach((t=>{t&&t.point&&Hr(t.point,e,n/2,t.strokeRadius)&&(t.point=null,o.push([t.annotationId,t.lineIndex]),l[t.annotationId]=!0)}))})),{localAnnotations:e.map((e=>l[e.id]?e.withMutations((t=>{o.filter((t=>t[0]===e.id)).forEach((e=>{t.setIn(["lines",e[1]],(0,a.aV)([]))}))})):e)),lastErasedLinesPaths:o}}(c.localAnnotations,Array.isArray(e)?e:[e],n,p.current,[],t))}),[c.localAnnotations,n,t]),m=u.useCallback((()=>{const e=function(e,t){return e.map(((e,n)=>e===t.get(n)?e:(e=e.update("lines",(e=>e.filter(Boolean).filter((e=>e.size>0))))).set("boundingBox",(0,Ge.gz)(e))))}(c.localAnnotations,i);o((0,at.GZ)(e.filter((e=>e.lines?.size>0)),e.filter((e=>!e.lines||0===e.lines.size)).map((e=>e.id))))}),[c.localAnnotations,o,i]);return u.useEffect((()=>(o((0,Pt.X2)()),()=>{o((0,Pt.Zg)())})),[o]),u.createElement("div",{className:Xe().canvas,style:{cursor:l}},c.localAnnotations.map((e=>u.createElement(Je,{dispatch:o,annotation:e,isSelectable:!1,isDisabled:!0,zoomLevel:r,key:e.id}))),u.createElement(zt.Z,{size:t,onDrawStart:f,onDrawCoalesced:f,onDrawEnd:m,transformPoint:h,interactionMode:e.interactionMode,scrollElement:e.scrollElement}))}));class Gr extends u.Component{constructor(e){super(e),(0,v.Z)(this,"_handledBlur",!1),(0,v.Z)(this,"editor",u.createRef()),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"clearText",(()=>{const{current:e}=this.editor;if(!e)return"";e.innerText="",setTimeout((()=>{this.props.valueDidUpdate&&this.props.valueDidUpdate()}),0),this.focus()})),(0,v.Z)(this,"focus",(()=>{const{current:e}=this.editor;e&&(e.focus(),setTimeout((()=>{const{current:e}=this.editor;e&&(this._handledBlur=!0,e.blur(),e.focus(),"webkit"===fe.SR&&this.setInitialSelection())}),0),this.setInitialSelection())})),(0,v.Z)(this,"_createRangeAndSelect",(e=>{const{current:t}=this.editor;if(!t)return;const{ownerDocument:n,childNodes:r}=t,o=r[r.length-1];if(!o)return;if(void 0===n.createRange)return;const i=n.createRange();let a;a="gecko"===fe.SR?o.length-1:o.length,i.setStart(o,e?0:a),i.setEnd(o,a),this.setSelection(i)})),(0,v.Z)(this,"_preventDeselect",(e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),(0,v.Z)(this,"_handleKeyDown",(e=>{if(e.keyCode!==jn.zz){if(e.keyCode===jn.E$&&e.shiftKey)return this.props.onStopEditing(),void e.preventDefault();if(this.getPlainText().length>=this.props.maxLength)e.preventDefault();else if("blink"===fe.SR&&e.keyCode===jn.E$){const{current:t}=this.editor;if(!t)return;const{defaultView:n}=t.ownerDocument;(0,l.kG)(n,"defaultView is null");const r=n.getSelection();if(r?.anchorNode&&"#text"===r?.anchorNode.nodeName){const t=Wr(r);if(r.anchorNode.parentNode?.normalize(),r.anchorNode&&"#text"===r.anchorNode.nodeName){const n=r.anchorOffset;"Range"===r.type&&r.deleteFromDocument();const o=r.anchorNode.nodeValue;(0,l.kG)(o,"currentText is null");const i=t&&o.replace(/\n/,"").length>0;r.anchorNode.nodeValue=o.substr(0,r.anchorOffset)+"\n"+(i?"\n":"")+o.substr(r.anchorOffset),r.collapse(r.anchorNode,n+1),e.preventDefault(),setTimeout((()=>{this.props.valueDidUpdate&&this.props.valueDidUpdate()}),0)}}}else if("gecko"===fe.SR&&e.keyCode===jn.E$){const{current:t}=this.editor;if(!t)return;const{defaultView:n}=t.ownerDocument;(0,l.kG)(n,"defaultView is null");const r=n.getSelection();if(r?.anchorNode&&"#text"===r?.anchorNode.nodeName&&(function(e){let{anchorNode:t,anchorOffset:n}=e;return null!=t&&("#text"===t.nodeName&&(0===n||t.nodeValue.length>n&&"\n"===t.nodeValue.charAt(n-1))||"DIV"===t.nodeName&&t.hasChildNodes()&&t.childNodes.length>0&&"BR"===t.childNodes[0].nodeName)}(r)||Wr(r))){const t=Wr(r);if(r.anchorNode.parentNode?.normalize(),r.anchorNode&&"#text"===r.anchorNode.nodeName){const n=r.anchorOffset;"Range"===r.type&&r.deleteFromDocument();const o=r.anchorNode.nodeValue;(0,l.kG)(o,"currentText is null");const i=t&&o.replace(/\n/,"").length>0;r.anchorNode.nodeValue=o.substr(0,r.anchorOffset)+"\n"+(i?"\n":"")+o.substr(r.anchorOffset),r.collapse(r.anchorNode,n+1+(i?1:0)),e.preventDefault(),setTimeout((()=>{this.props.valueDidUpdate&&this.props.valueDidUpdate()}),0)}}}}else this.props.onEscape(e)})),(0,v.Z)(this,"_handleInput",(()=>{const{current:e}=this.editor;if(e){if("gecko"===fe.SR){const{innerText:t}=e,n=t.charAt(t.length-1);if(" "===n){const t=e.childNodes[e.childNodes.length-1];t.nodeValue===n&&(t.nodeValue="\n")}}this.props.valueDidUpdate&&this.props.valueDidUpdate()}})),(0,v.Z)(this,"_handlePaste",(e=>{if(!this.editor.current)return;const t=this.editor.current.ownerDocument;e.preventDefault();const n=e.clipboardData?.getData("text/plain");this.getPlainText().length+n.length>=this.props.maxLength||t.execCommand("insertText",!1,$t().sanitize(e.clipboardData?.getData("text/plain")))})),(0,v.Z)(this,"_handleDrop",(e=>{if(!this.editor.current)return;const t=this.editor.current.ownerDocument;if(e.preventDefault(),e.dataTransfer){const n=e.dataTransfer.getData("text/plain");if(this.getPlainText.length+n.length>=this.props.maxLength)return;t.execCommand("insertText",!1,n),this.props.valueDidUpdate&&this.props.valueDidUpdate()}})),(0,v.Z)(this,"_handleScroll",(e=>{const{current:t}=this.editor;t&&(t.scrollTop=0,t.scrollLeft=0,e.stopPropagation(),e.preventDefault())})),(0,v.Z)(this,"_handlePointerDown",(e=>{this.editor.current&&((0,Yn.pr)({event:e,element:this.editor.current})||this._handleBlur())})),(0,v.Z)(this,"_handleBlur",(()=>{this._handledBlur||(this._handledBlur=!0,this.props.onBlur())})),(0,v.Z)(this,"_handleFocus",(()=>{this._handledBlur=!1,this.props.onFocus&&this.props.onFocus()})),this.innerText=this.props.defaultValue+"\n"}componentDidMount(){this.editor.current&&(this.props.autoFocus||this.props.autoSelect)&&this.focus()}getElement(){return this.editor.current}getEditorBoundingClientRect(){const{current:e}=this.editor;return(0,l.kG)(e),k.UL.fromClientRect(e.getBoundingClientRect())}getPlainText(){const{current:e}=this.editor;return e?void 0===e.innerText?"":e.innerText.replace(/\n$/,""):""}setSelection(e){const{current:t}=this.editor;if(!t)return;const n=fe.G6?t.getRootNode().getSelection?.():t.ownerDocument.getSelection();n?.removeAllRanges(),n?.addRange(e)}blur(){this.editor.current&&this.editor.current.blur()}setInitialSelection(){if(this.props.autoSelect)return void this.autoSelectText();const{lastMousePoint:e}=this.props;let t,n=!1;if(e){if(!this.editor.current)return;const{ownerDocument:r}=this.editor.current;t=(0,l.Qo)(e,r),n=!!t&&(t.commonAncestorContainer===this.editor.current||t.commonAncestorContainer.parentElement===this.editor.current)}t&&n?this.setSelection(t):this.moveFocusToEnd()}moveFocusToEnd(){this._createRangeAndSelect(!1)}autoSelectText(){this._createRangeAndSelect(!0)}render(){return u.createElement(u.Fragment,null,u.createElement("div",{style:this.props.style,className:Gt().editor,onInput:this._handleInput,onBlur:this._handleBlur,onFocus:this._handleFocus,onMouseUp:this._preventDeselect,onPointerUp:this._preventDeselect,onKeyDown:this._handleKeyDown,onKeyUp:this._preventDeselect,onTouchStart:this._preventDeselect,onTouchEnd:this._preventDeselect,onPaste:this._handlePaste,onDrop:this._handleDrop,onScroll:this._handleScroll,ref:this.editor,contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:"false","data-testid":"content-editable-component"},$t().sanitize(this.innerText)),u.createElement(He.Z,{onRootPointerDownCapture:this._handlePointerDown}))}}function Wr(e){return null!=e.anchorNode&&null==e.anchorNode.nextSibling&&("#text"===e.anchorNode.nodeName&&e.anchorOffset===e.anchorNode.nodeValue.length||"DIV"===e.anchorNode.nodeName&&e.anchorNode.hasChildNodes()&&e.anchorNode.childNodes.length>0&&"BR"===e.anchorNode.childNodes[0].nodeName)}(0,v.Z)(Gr,"defaultProps",{autoFocus:!0,autoSelect:!1});var Yr=n(74814),Xr=n(89939),Qr=n.n(Xr),Jr=n(23301);function eo(e){let{x:t,y:n,direction:r,startResizing:o,endResizing:i,onFitToSide:a,viewportSize:s,title:l,cursor:c}=e;const d=(0,Jr.cL)(Yr.V[r]),h=p()({[Qr().resizeAnchor]:!0,[Qr().nwseCursor]:r===Yr.V.TOP_LEFT||r===Yr.V.BOTTOM_RIGHT,[Qr().neswCursor]:r===Yr.V.TOP_RIGHT||r===Yr.V.BOTTOM_LEFT,[Qr().ewCursor]:r===Yr.V.LEFT||r===Yr.V.RIGHT,[Qr().nsCursor]:r===Yr.V.TOP||r===Yr.V.BOTTOM,"PSPDFKit-Resize-Anchor":!0,[`PSPDFKit-Resize-Anchor-${d}`]:!0}),{RESIZE_ANCHOR_RADIUS:f}=We.Options,m=f(s),g=c?{cursor:c}:void 0;return u.createElement(He.Z,{onPointerDown:o,onPointerUp:i},u.createElement("circle",{cx:t,cy:n,r:m-Ae.Hr/2,strokeWidth:Ae.Hr,className:h,onDoubleClick:a,style:g},l?u.createElement("title",null,l):null))}function to(e){let{x:t,y:n,startModifying:r,endModifying:o,pointIndex:i,viewportSize:a,title:s,cursor:l}=e;const c=p()({[Qr().resizeAnchor]:!0}),{RESIZE_ANCHOR_RADIUS:d}=We.Options,h=d(a),f=l?{cursor:l}:void 0;return u.createElement(He.Z,{onPointerDown:r,onPointerUp:o},u.createElement("circle",(0,oe.Z)({cx:t,cy:n,r:h-Ae.Hr/2,strokeWidth:Ae.Hr,className:c,id:`pointIndex${i}`,style:f},{title:s})))}function no(e){let{width:t,startRotating:n,endRotating:r,viewportSize:o,rotationHandleLength:i,rotation:a=0,title:s}=e;const{RESIZE_ANCHOR_RADIUS:l,SELECTION_STROKE_WIDTH:c}=We.Options,d=p()({"PSPDFKit-Annotations-Rotation-Anchor":!0,[Qr().rotateAnchor]:!0}),h=l(o);return u.createElement("svg",{"data-testid":"rotation-handle-ui",className:p()(Qr().rotationHandleSvg,"PSPDFKit-Annotations-Rotation-Handle")},u.createElement("line",{className:p()(Qr().rotationLine,"PSPDFKit-Annotations-Rotation-Line"),x1:t/2,y1:0,x2:t/2,y2:i,style:{strokeWidth:c}}),u.createElement(He.Z,{onPointerDown:n,onPointerUp:r},u.createElement("circle",{cx:t/2,cy:i,r:h-Ae.Hr/2,strokeWidth:Ae.Hr,className:d,style:{cursor:(0,Re.Mg)(a,"grab")}},s?u.createElement("title",null,s):null)))}var ro=n(4325);function oo(e){const{formatMessage:t}=(0,he.YB)(),n=(0,s.v9)((e=>e.selectedAnnotationIds)),r=(0,s.v9)((e=>e.isMultiSelectionEnabled));function o(n,r,o){const i=io(o),a=io(o+e.pagesRotation),s=`${t(be.Z.resize)}, ${ao[a].split(",").map((e=>t(be.Z[`resizeHandle${e.trim()}`]))).join(", ")}`;return u.createElement(eo,{key:o,x:n,y:r,direction:a,title:s,startResizing:t=>{e.startResizing&&e.startResizing(t,i)},endResizing:so,onFitToSide:()=>{e.onFitToSide&&e.onFitToSide(a)},viewportSize:e.viewportSize,cursor:e.cursor})}const{zoomLevel:i,annotation:a,annotationBoundingBox:l,viewportSize:c,customZIndex:d,cursor:h}=e,{RESIZE_ANCHOR_RADIUS:f,SELECTION_STROKE_WIDTH:m}=We.Options,g=(0,ro.q)(l.scale(i),c),{SELECTION_OUTLINE_PADDING:v}=We.Options,y=v(c),b=f(c),w=a?(0,Jr.G8)(a)+2*(0,ro.K)(c):0,x=Math.min(2*b,w),_=Math.max(g.width,x),S=Math.max(g.height,x),C=Math.max(b+m/2,m),E=2*C,z=Math.max(b,m/2),P=(0,O.fk)(a,l,i,c,C),D=p()({[Qr().selectionRect]:!0,[Qr().isDragging]:e.isDragging,"PSPDFKit-Selection-Outline-Rect":!0}),A=!a||(0,O.vj)(a)?{strokeWidth:m,...h?{cursor:h}:null}:{stroke:"transparent",cursor:(0,O.B7)(a,{cursor:h,isSelected:!0})},T=p()({[Qr().draggingRect]:!0,[Qr().isDragging]:e.isDragging,"PSPDFKit-Selection-Outline-Border":!0}),I=a?a.rotation:e.annotationRotation,M=35*(a?(0,O.WX)(a,i):i),R=u.useRef(g),F=a?(0,O.B7)(a,{cursor:h,isSelected:!0}):void 0,N={left:g.left-C,top:g.top-C,width:_+E,height:S+E,overflow:"visible",...a||"number"!=typeof I||0===I?null:{transformOrigin:`${y+R.current.width/2}px ${y+R.current.height/2}px`},transform:"number"!=typeof I||0===I||a instanceof k.x_||a instanceof k.sK?void 0:`rotate(${-I}deg)`,zIndex:d??0,cursor:F},j=i*(f(c)-Ae.Hr/2),L={left:N.left+N.width/2-j,top:N.top+N.height,width:2*j,height:M+j,overflow:"visible",transformOrigin:`center -${N.height/2}px`,transform:"number"==typeof I&&0!==I?`rotate(${-I}deg)`:void 0};return u.createElement(u.Fragment,null,u.createElement("svg",{style:N,className:Qr().svg,focusable:!1},a instanceof k.o9?u.createElement("line",{className:D,x1:P[0].x,y1:P[0].y,x2:P[1].x,y2:P[1].y,style:{...A,strokeWidth:fe.Ni?Math.max(Ae.wK,a.strokeWidth)*i:Math.max(Ae.XZ,a.strokeWidth)*i,pointerEvents:"all"}}):u.createElement("rect",{className:D,style:A,x:C-m/2,y:C-m/2,width:_+m,height:S+m})),e.children||null,u.createElement("svg",{style:N,className:Qr().svg,focusable:!1},u.createElement(He.Z,{onPointerDown:function(t){const o=r&&n.size>1&&fe.Ni,i=e.deselectAnnotation&&(t.shiftKey||o);e.isEditableCP&&2!==t.buttons&&(i&&e.deselectAnnotation?e.deselectAnnotation(t):(t.stopPropagation(),null!=e.startDragging&&e.startDragging(t)))}},a instanceof k.o9?u.createElement("line",{className:T,x1:P[0].x,y1:P[0].y,x2:P[1].x,y2:P[1].y,style:{...A,strokeWidth:fe.Ni?Math.max(Ae.wK,a.strokeWidth)*i:Math.max(Ae.XZ,a.strokeWidth)*i,pointerEvents:"all"}}):u.createElement("rect",{x:C-m/2,y:C-m/2,width:_+m,height:S+m,className:T,style:A})),e.startResizing&&e.isResizable?[o(N.width/2,z,0),o(N.width-z,z,45),o(N.width-z,N.height/2,90),o(N.width-z,N.height-z,135),o(N.width/2,N.height-z,180),o(z,N.height-z,225),o(z,N.height/2,270),o(z,z,315)]:null,e.startModifying&&e.isModifiable?P.map(((t,n)=>function(t,n,r,o){return u.createElement(to,{key:`modifyAnchor${r}`,x:t,y:n,pointIndex:r,title:o,startModifying:t=>{e.startModifying&&e.startModifying(t,r)},endModifying:so,viewportSize:e.viewportSize,cursor:e.cursor})}(t.x,t.y,n,"Modify point"))):null),e.startRotating&&e.isRotatable?u.createElement("svg",{style:L,className:Qr().svg,focusable:!1},u.createElement(no,{key:"rotateAnchor",width:L.width,startRotating:t=>e.startRotating?.(t),endRotating:so,viewportSize:e.viewportSize,rotationHandleLength:M,rotation:I,title:t(be.Z.rotation)})):null)}function io(e){switch((0,l.kG)(e%45==0,"Only multiples of 45° allowed."),e%360){case 0:return Yr.V.TOP;case 45:return Yr.V.TOP_RIGHT;case 90:return Yr.V.RIGHT;case 135:return Yr.V.BOTTOM_RIGHT;case 180:return Yr.V.BOTTOM;case 225:return Yr.V.BOTTOM_LEFT;case 270:return Yr.V.LEFT;case 315:return Yr.V.TOP_LEFT;default:throw new Error("Unsupported resize degrees")}}const ao={[Yr.V.TOP]:"Top",[Yr.V.TOP_RIGHT]:"Top, Right",[Yr.V.RIGHT]:"Right",[Yr.V.BOTTOM_RIGHT]:"Bottom, Right",[Yr.V.BOTTOM]:"Bottom",[Yr.V.BOTTOM_LEFT]:"Bottom, Left",[Yr.V.LEFT]:"Left",[Yr.V.TOP_LEFT]:"Top, Left"};function so(e){e.stopPropagation()}var lo=n(49876);class co extends u.PureComponent{constructor(e){super(e),(0,v.Z)(this,"editorRef",u.createRef()),(0,v.Z)(this,"richTextEditorRef",u.createRef()),(0,v.Z)(this,"updateSelectionBoundingBox",(()=>{const e=this._getNormalizedEditorBoundingBox(),t=We.Options.TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT?e:this.state.selectionBoundingBox.set("left",e.left).set("top",e.top),n=this.props.annotation.set("boundingBox",t),r=(0,O.WX)(n,this.props.viewportState.zoomLevel);k.UL.areRectsCloserThan((0,Re.h4)(n).boundingBox,(0,Re.h4)(n.set("boundingBox",this.state.selectionBoundingBox)).boundingBox,r)||(this.setState({selectionBoundingBox:n.boundingBox}),this.props.onChange?.(n.boundingBox,this.getText()))})),(0,v.Z)(this,"shouldCleanupAnnotation",(()=>!((0,O.Vc)(this.props.annotation)||!(0,O.Ie)(this.props.annotation))&&("xhtml"===this.props.annotation.text.format?""===(0,Yt.KY)(this.state.richTextContent):""===this.getText().value))),(0,v.Z)(this,"handleEscape",(()=>{this.props.dispatch((0,ve.fz)()),this.props.onEditingDone()})),(0,v.Z)(this,"handleBlur",(e=>{e?.isNativeBlurEvent&&this._triggerOnEditingDone(void 0,e?.isTextToolbarClicked,this.shouldCleanupAnnotation())})),(0,v.Z)(this,"onStopEditing",(()=>{this._triggerOnEditingDone(!0)})),(0,v.Z)(this,"onRichEditorInit",(e=>{this.props.dispatch((0,Pt.$Q)(e))}));const{annotation:t}=e;this.lastSavedAnnotation=t,this.initialOutlineBoundingBox=this.getInitialBoundingBox(t);let n=!1,r=(0,Zt.hr)(e.annotation.text?.value)||"";if(e.enableRichText(e.annotation)){if(n=!0,"plain"===e.annotation.text?.format){const t=e.annotation.fontColor?.toHex()||"",n=o.ri.prepareHTML(e.annotation.text.value);r=o.ri.setStyleOrToggleFormat(o.ri.serialize(o.ri.deserialize(n)),"fontColor",t)}}else"xhtml"===e.annotation.text?.format&&(r=o.ri.getText(e.annotation.text?.value||""));this.state={selectionBoundingBox:this.initialOutlineBoundingBox,annotation:t,richTextContent:e.annotation.text?.value,useRichText:n,text:r}}getInitialBoundingBox(e){let t=e.boundingBox;return(0,O.U7)(t)||(t=t.set("width",We.Options.MIN_TEXT_ANNOTATION_SIZE).set("height",e.fontSize)),t}componentDidUpdate(e){this.updateSelectionBoundingBox(),e&&!e.annotation.equals(this.props.annotation)&&(this.initialOutlineBoundingBox=this.getInitialBoundingBox(this.props.annotation),this.setState((t=>({...t,annotation:this.props.annotation,...t.useRichText&&this.props.annotation.text.value!==t.richTextContent&&this.props.annotation.text.value!==e.annotation.text.value?{richTextContent:this.props.annotation.text.value}:null}))))}_getNormalizedEditorBoundingBox(){const{current:e}=this.editorRef,{current:t}=this.richTextEditorRef;return t?this.props.transformClientToPage(k.UL.fromClientRect(po(t))):e?this.props.transformClientToPage(k.UL.fromClientRect(po(e.getElement()))):new k.UL}getText(){const{current:e}=this.editorRef;return e||this.state.useRichText?e?{value:e.getPlainText(),format:"plain"}:{value:this.state.richTextContent,format:"xhtml"}:{value:"",format:"plain"}}_triggerOnEditingDone(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{current:r}=this.editorRef,o=this.getText(),{annotation:i,onChange:a}=this.props,s=(0,O.WX)(i,this.props.viewportState.zoomLevel);if((0,O.Vc)(i))return void a?.(this.state.selectionBoundingBox,o);if(!r&&!this.state.useRichText)return;let l=this.props.annotation.text?.value!==o.value?this.props.annotation.set("text",o).set("boundingBox",this.state.selectionBoundingBox):this.props.annotation;if("xhtml"===o.format&&this.props.annotation.fontColor?l=l.set("fontColor",null):"plain"!==o.format||this.props.annotation.fontColor||(l=l.set("fontColor",k.Il.BLACK)),We.Options.TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT){const e=this._getNormalizedEditorBoundingBox(),t=l.boundingBox;!e.getSize().equals(t.getSize())&&(l=l.set("boundingBox",e)),(0,O.ix)(l,this.props.viewportState.zoomLevel)&&(l=l.setIn(["boundingBox","width"],l.boundingBox.width*this.props.viewportState.zoomLevel).setIn(["boundingBox","height"],l.boundingBox.height*this.props.viewportState.zoomLevel)),l=(0,Zt.XA)(l,s)}this.lastSavedAnnotation.equals(l)||(this.lastSavedAnnotation=l,this.props.onEditingDone((0,Jr.er)(l,this.props.annotation.boundingBox),e,t,n))}componentWillUnmount(){this.shouldCleanupAnnotation()&&(this.props.dispatch((0,at.aF)((0,a.l4)([this.props.annotation.id]))),this.props.dispatch((0,lo.zM)(this.props.annotation.id)))}render(){const e=this.props.annotation,{zoomLevel:t}=this.props.viewportState,n=e.boundingBox,r=this.props.pageSize.width,i=this.props.pageSize.height,a=(0,O.WX)(e,t),s=(0,Zt.z1)(e.set("rotation",0),a,!1);let l,c;const d=Math.floor(n.left*t),p=Math.floor(n.top*t);switch(e.rotation){case 0:l=r*t-d,c=i*t-p;break;case 90:l=n.bottom*t,c=r*t-d;break;case 180:l=n.right*t,c=n.bottom*t;break;case 270:l=i*t-p,c=n.right*t}const h=(0,O.Vc)(e),f={...!h&&{left:d,top:p},minWidth:We.Options.MIN_TEXT_ANNOTATION_SIZE*a,minHeight:e.fontSize*a,maxWidth:l,maxHeight:c},m=We.Options.TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT?f:{...s,...f};delete s.width,delete s.height,delete s.overflow;const g=Math.ceil(e.boundingBox.width*a),v=Math.ceil(e.boundingBox.height*a);switch(m.transformOrigin="0 0",e.rotation){case 90:m.transform=`translate(0, ${v}px) rotate(${-e.rotation}deg)`;break;case 180:m.transform=`translate(${g}px, ${v}px) rotate(${-e.rotation}deg)`;break;case 270:m.transform=`translate(${g}px, 0) rotate(${-e.rotation}deg)`;break;default:(0,Re.kv)(e)&&(m.transformOrigin=`${t*this.initialOutlineBoundingBox.width/2}px ${t*this.initialOutlineBoundingBox.height/2}px`,m.transform=`rotate(${String(-e.rotation)}deg)`)}return this.state.useRichText||"xhtml"!==this.props.annotation.text?.format||(m.color=k.Il.BLACK.toHex()),u.createElement(u.Fragment,null,!h&&u.createElement(oo,{zoomLevel:t,pagesRotation:this.props.viewportState.pagesRotation,annotationBoundingBox:this.state.selectionBoundingBox,annotationRotation:e.rotation,isResizable:!0,isModifiable:!1,isRotatable:!0,isEditableCP:!0,viewportSize:this.props.viewportState.viewportRect.getSize()}),u.createElement("div",{style:{...s,...!this.state.useRichText&&{wordBreak:h?void 0:s.wordBreak,overflowWrap:h?"break-word":s.overflowWrap}},className:Gt().editorWrapper},this.state.useRichText?u.createElement(o.D,{text:this.state.text,style:{...m,color:k.Il.BLACK.toHex()},updateBoundingBox:this.updateSelectionBoundingBox,ref:this.richTextEditorRef,onValueChange:e=>{this.setState((t=>({...t,richTextContent:e})))},onBlurSave:this.handleBlur,onStopEditing:this.onStopEditing,onEscape:this.handleEscape,maxLength:Ae.RI,lastMousePoint:this.props.lastMousePoint,onEditorInit:this.onRichEditorInit,className:!h&&Gt().richEditor,autoFocus:!0,keepSelectedTool:this.props.keepSelectedTool,shadowRoot:this.props.shadowRoot}):u.createElement(Gr,{style:{...m,position:h?"static":m.position},valueDidUpdate:this.updateSelectionBoundingBox,onBlur:()=>this.handleBlur({isNativeBlurEvent:!0}),onStopEditing:this.onStopEditing,onEscape:this.handleEscape,ref:this.editorRef,maxLength:Ae.RI,defaultValue:this.state.text,lastMousePoint:this.props.lastMousePoint,autoSelect:this.props.autoSelect})))}}(0,v.Z)(co,"defaultProps",{autoSelect:!1});const uo=_r(co);function po(e){const t=e.cloneNode(!0);t.style.transform="none",t.style.visibility="hidden",t.style.pointerEvents="none",e.parentElement?.append(t);const n=t.getBoundingClientRect();return t.remove(),n}const ho=e=>{let{annotation:t,children:n}=e;const r=(0,s.v9)((e=>e.viewportState.zoomLevel)),o=(0,u.useRef)(null),i=(0,s.I0)(),a=t.boundingBox.scale(r),l=(0,u.useCallback)(((e,n)=>{const a=o.current?.getBoundingClientRect();if(!a)return;const{callout:s}=t,l=(0,Yt.Vq)({rect:a,annotation:t,zoomLevel:r,text:n,callout:s});l&&i((0,at.FG)(t.merge(l)))}),[t,r,i]),c=(0,u.useRef)(t);return c.current=t,(0,u.useEffect)((()=>()=>{("xhtml"===c.current.text.format?(0,Yt.KY)(c.current.text.value):c.current.text.value)||"xhtml"!==c.current.text.format||i((0,at.hQ)(c.current))}),[i]),u.createElement("div",{style:{position:"absolute",left:a.left,top:a.top,minHeight:a.height,width:a.width}},u.createElement(Xt,{annotation:t,isEditing:!0,ref:o},n(l)))};class fo extends u.PureComponent{constructor(){var e;super(...arguments),e=this,(0,v.Z)(this,"_onEditingDone",(function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=t&&(0,Re.az)(t),s=i?(0,a.aV)([i]):(0,a.aV)([]),l={annotations:s,reason:X.f.TEXT_EDIT_END};e.props.eventEmitter.emit("annotations.willChange",l),i&&(o||e.props.dispatch((0,at.FG)(i)),n&&e.props.dispatch((0,ve.Df)((0,a.l4)([e.props.annotation.id]),null)),e.props.keepSelectedTool&&!r&&e.props.dispatch((0,Pt.DU)()))}))}componentDidMount(){const e={annotations:(0,a.aV)([this.props.annotation]),reason:X.f.TEXT_EDIT_START};this.props.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,Pt.X2)())}componentWillUnmount(){this.props.dispatch((0,Pt.Zg)())}render(){const{annotation:e,autoSelect:t,dispatch:n,pageSize:r,lastMousePoint:o,pageIndex:i,enableRichText:a}=this.props,s=s=>u.createElement(uo,{dispatch:n,annotation:(0,Re.h4)(e),lastMousePoint:o,pageSize:r,pageIndex:i,onEditingDone:this._onEditingDone,autoSelect:t,enableRichText:a,onChange:s,keepSelectedTool:this.props.keepSelectedTool,shadowRoot:this.props.shadowRoot});return(0,O.Vc)(e)?u.createElement(ho,{annotation:e},(e=>s(e))):s()}}(0,v.Z)(fo,"defaultProps",{autoSelect:!1});class mo extends u.Component{constructor(e){super(e),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"_handlePointerUp",(e=>{if(!e.isPrimary)return;const t=this._getNormalizedMousePosition(e);if(!t)return;const{pagesRotation:n}=this.props.viewportState,r=(0,O.ix)(this.props.annotation,this.props.zoomLevel)?this.props.annotation.fontSize/this.props.zoomLevel:this.props.annotation.fontSize,o=new k.E9({x:t.x,y:Math.max(t.y-r/2,0)}),i=(0,Zt.gB)(o,n),s=this._fitRectInPage(i,this.props.pageSize);this.setState({bindPointerUpEvent:!1});let l=this.props.annotation.set("pageIndex",this.props.pageIndex).set("boundingBox",s).set("rotation",n);this.props.interactionMode===j.A.CALLOUT&&(l=function(e,t,n){const r=function(e,t){let n="top-right";const{width:r}=t;e.x+100>r&&(n=n.replace("right","left"));e.y-120<0&&(n=n.replace("top","bottom"));return n}(e,t),o=new k.E9({x:e.x,y:e.y}),i=new k.E9({x:r.includes("right")?e.x+50:e.x-50,y:r.includes("top")?e.y-50:e.y+50}),a=new k.E9({x:r.includes("right")?e.x+50:e.x-50,y:r.includes("top")?e.y-go:e.y+go}),s=new k.eB({top:r.includes("top")?0:go,right:r.includes("right")?0:42,bottom:r.includes("top")?go:0,left:r.includes("right")?42:0}),l=new k.UW({start:o,knee:i,end:a,innerRectInset:s,cap:"openArrow"}),c=new k.UL({top:r.includes("top")?e.y-100:e.y,left:r.includes("right")?e.x:e.x-85,width:85,height:100});return n.set("callout",l).set("boundingBox",c).set("borderWidth",n.borderWidth||2).set("borderStyle",n.borderStyle||"solid").set("borderColor",n.borderColor||k.Il.BLACK)}(t,this.props.pageSize,l)),this.props.dispatch((0,at.Zr)((0,a.aV)([l]))),e.stopPropagation()})),this.state={bindPointerUpEvent:!0}}_getNormalizedMousePosition(e){const{target:t}=e;if("DIV"==t.tagName)return this.props.transformClientToPage(new k.E9({x:e.clientX,y:e.clientY}))}_fitRectInPage(e,t){const{width:n,height:r}=t,{MIN_TEXT_ANNOTATION_SIZE:o}=We.Options;return e.top+e.height>r&&(e=e.set("top",r-e.height)),e.left+o>n&&(e=e.set("left",n-o)),e}render(){const e=p()({[Gt().layer]:!0,"PSPDFKit-Text-Canvas":!0});return u.createElement(He.Z,{onPointerUpCapture:this.state.bindPointerUpEvent?this._handlePointerUp:void 0},u.createElement("div",{className:e,style:{cursor:"text"}}))}}(0,v.Z)(mo,"defaultProps",{autoSelect:!1});const go=80;const vo=_r(mo);var yo=n(54662);const bo={ArrowUp:0,ArrowRight:90,ArrowDown:180,ArrowLeft:270};function wo(e){switch(e){case 0:return new E.E9({x:0,y:-1});case 90:return new E.E9({x:1,y:0});case 180:return new E.E9({x:0,y:1});case 270:return new E.E9({x:-1,y:0});default:throw Error()}}var xo=n(11192);function _o(e){e.getSelection()?.isCollapsed||(0,xo.a7)(e)}const So={isListening:!1,isDragging:!1,previousMousePosition:null,initialClickWithinAnnotation:null,translation:new k.E9,initialDragCompleted:!1};function Co(e,t){const n=t;switch(n.type){case"start":{const{mousePosition:t,initialClickWithinAnnotation:r}=n;return{...e,isListening:!0,previousMousePosition:t,initialClickWithinAnnotation:r}}case"drag":{const{mousePosition:t,translation:r}=n;return{...e,isDragging:!0,previousMousePosition:t,translation:r}}case"scroll":return{...e,translation:n.translation};case"stop":return{...So,initialDragCompleted:!0};default:throw(0,l.Rz)(n.type)}}function Eo(e){return e.target?.classList.contains(Qr().selectionRect)}var ko=n(58846);const zo={pointIndex:null,startingMousePosition:null,isListening:!1};function Po(e,t,n){let r;return e instanceof k.o9?r=e[["startPoint","endPoint"][t]].apply(n):e instanceof k.om&&(r=e.points.get(t).apply(n)),r}const Do={startingMousePosition:null,startingResizeAnchor:null,isListening:!1};function Ao(e,t,n){const r=e.boundingBox.apply(t);let o;return n===Yr.V.TOP_LEFT?o=new k.E9({x:r.left,y:r.top}):n===Yr.V.TOP_RIGHT?o=new k.E9({x:r.left+r.width,y:r.top}):n===Yr.V.BOTTOM_LEFT?o=new k.E9({x:r.left,y:r.top+r.height}):n===Yr.V.BOTTOM_RIGHT&&(o=new k.E9({x:r.left+r.width,y:r.top+r.height})),o}const To=_r((function(e){const{annotation:t,globalAnnotation:n,viewportState:{zoomLevel:r,viewportRect:o,pagesRotation:i},children:c,isResizable:d,isModifiable:h,isRotatable:f,onFocus:m,onBlur:g,getScrollElement:v,transformClientToPage:y,window:b,interactionsDisabled:w,dispatch:x,selectedAnnotationShouldDrag:_,pageSize:S,isAnnotationPressPrevented:C,eventEmitter:z,restrictAnnotationToPageBounds:P,isEditableCP:D,shouldConstrainAspectRatio:T,setGlobalCursor:I,annotationDimensions:M,backend:R,disablePointSnapping:F}=e,N=(0,u.useRef)(!1),{formatMessage:j}=(0,he.YB)(),L=u.useMemo((()=>{let e;return(0,A.S6)(t)&&t.measurementBBox?(e=t.set("boundingBox",t.measurementBBox),e):t}),[t]),[B,K]=(0,yr.Ah)(L),V=(0,s.v9)((e=>e.shadowRoot)),[H,$]=u.useState(null),[U,q]=function(e,t,n){const r=u.useRef(null);return[u.useCallback((function(e){const{current:t}=r;if(!t)return;const o="function"==typeof t.getWrappedInstance?t.getWrappedInstance():t;o&&"function"==typeof o.onClick&&!n&&o.onClick(e)}),[n]),r]}(0,0,N.current);(0,u.useEffect)((()=>{B&&z.emit("annotations.transform",{annotation:B})}),[B,z]);const G=u.useMemo((()=>(0,Z.cr)(e.viewportState,t.pageIndex)),[e.viewportState,t.pageIndex]),W=u.useMemo((()=>(0,O.SY)(B,r,i)),[B,r,i]),Y=u.useCallback((function(e){return e.scale(1/r).rotate(i)}),[r,i]),Q=u.useCallback((e=>{$(e),I(e)}),[I]),J=u.useCallback((function(e){const t=(0,Re.az)(e),n=(0,O.SY)(t,r,i);if(S&&P){if(!new k.UL({left:0,top:0,width:S.width,height:S.height}).isRectInside(n))return}x((0,at.FG)(t))}),[x,S,P,r,i]),{isDragging:ee,cancelDrag:te,startDraggingWithEvent:ne,startDraggingAtPoint:re,dragListener:oe}=function(e){let{getScrollElement:t,transformClientToPage:n,transformedAnnotation:r,setTransformedAnnotation:o,setGlobalAnnotation:i,annotation:s,interactionsDisabled:c,dispatch:d,frameWindow:p,pageSize:h,onClick:f,transformDeltaFromClientToPage:m,eventEmitter:g,restrictAnnotationToPageBounds:v,isEditableCP:y,zoomLevel:b}=e;const[w,x]=u.useReducer(Co,So),{isListening:_,isDragging:S}=w,C=u.useCallback((function(){return new k.E9({x:t().scrollLeft,y:t().scrollTop})}),[t]);u.useEffect((()=>()=>{S&&c&&d((0,Pt.Zg)())}),[d,c,S]);const E=u.useRef(null),z=u.useCallback((function(e){E.current=C();const t=n(e).translate(s.boundingBox.getLocation().scale(-1)),r=m(e);x({type:"start",mousePosition:r,initialClickWithinAnnotation:t})}),[C,n,m,s.boundingBox]),P=u.useCallback((function(e){e.isPrimary&&z(new k.E9({x:e.clientX,y:e.clientY}))}),[z]),D=u.useCallback((function(){x({type:"stop"}),_o(p),d((0,Pt.Zg)())}),[p,d]),T=u.useCallback((function(e){if((S||Eo(e))&&e.stopPropagation(),r.equals(s)?w.initialDragCompleted&&f(e):i(r),x({type:"stop"}),S){const e={annotations:(0,a.aV)([r]),reason:X.f.MOVE_END};g.emit("annotations.willChange",e)}_o(p),d((0,Pt.Zg)())}),[s,p,d,S,f,w.initialDragCompleted,r,g,i]),I=u.useCallback((function(e){if(e.stopPropagation(),e.preventDefault(),S&&0===e.buttons)return void T(e);const{previousMousePosition:t,initialClickWithinAnnotation:n,translation:r}=w;(0,l.kG)(t),(0,l.kG)(n);const i=m(new k.E9({x:e.clientX,y:e.clientY})),u=Dt(n,t);!c&&u&&d((0,Pt.X2)());const f=i.translate(t.scale(-1)),y=r.translate(f),_=(0,yo.c)(s,y,h,n,v,b),C=(0,A.S6)(_)?_.set("measurementBBox",_.boundingBox):_;if(o(C),x({type:"drag",mousePosition:i,translation:y}),_o(p),!S){const e={annotations:(0,a.aV)([s]),reason:X.f.MOVE_START};g.emit("annotations.willChange",e)}}),[s,p,d,c,h,o,w,S,m,g,T,v,b]),M=u.useCallback((function(){const e=t();if(void 0===e.scrollTop||void 0===e.scrollLeft)return;const n=C(),r=E.current;(0,l.kG)(r);const i=m(n.translate(r.scale(-1))),a=w.translation.translate(i);let c=w.initialClickWithinAnnotation;c||(c=new k.E9);const u=(0,yo.c)(s,a,h,c,!1,b);o(u),x({type:"scroll",translation:a}),E.current=n,_o(p)}),[s,p,t,C,h,o,w.initialClickWithinAnnotation,w.translation,m,b]);(0,yr.wA)(_,t,M);const R=_&&u.createElement(He.Z,{onRootPointerDownCapture:T,onRootPointerMoveCapture:y&&!s.locked?I:void 0,onRootPointerUpCapture:T});return{isDragging:S,cancelDrag:D,startDraggingWithEvent:P,startDraggingAtPoint:z,dragListener:R}}({getScrollElement:v,transformClientToPage:y,transformedAnnotation:B,setTransformedAnnotation:K,setGlobalAnnotation:J,annotation:t,interactionsDisabled:w,dispatch:x,frameWindow:b,pageSize:S,onClick:U,transformDeltaFromClientToPage:Y,eventEmitter:z,restrictAnnotationToPageBounds:P,isEditableCP:D,zoomLevel:r}),{startResizing:ie,resizeListener:ae,isResizing:se}=function(e){let{transformedAnnotation:t,setTransformedAnnotation:n,setGlobalAnnotation:r,annotation:o,dispatch:i,frameWindow:s,transformDeltaFromClientToPage:c,eventEmitter:d,pageSize:p,restrictAnnotationToPageBounds:h,shouldConstrainAspectRatio:f,annotationDimensions:m,clientTransformationMatrix:g,interactionsDisabled:v,backend:y,disablePointSnapping:b}=e;const[w,x]=u.useState(Do),[_,S]=u.useState(!1),C=u.useRef(void 0),E=u.useRef(null),z=u.useRef(!1);u.useEffect((()=>()=>{_&&v&&i((0,Pt.Zg)())}),[i,v,_]);const P=u.useCallback((function(e,n){if(!e.isPrimary)return;(0,Tt.mE)(y,o,b)&&y.configureSnapper(o.pageIndex);const r=new k.E9({x:e.clientX,y:e.clientY}),s=c(r);x({startingMousePosition:s,startingResizeAnchor:n,isListening:!0}),S(!0);const u={annotations:(0,a.aV)([o]),reason:X.f.RESIZE_START};d.emit("annotations.willChange",u),o instanceof k.b3&&![Yr.V.TOP,Yr.V.RIGHT,Yr.V.BOTTOM,Yr.V.LEFT].includes(n)&&o.isMeasurement?.()&&((0,l.kG)(t instanceof k.b3),i((0,At.eO)({magnifierLabel:t.getMeasurementDetails().label,drawnAnnotationID:t.id,drawnAnnotationPageIndex:t.pageIndex,magnifierCursorPosition:Ao(o,g,n)}))),i((0,Pt.X2)())}),[t,i,c,o,d,g]),D=u.useCallback((async function(e){e.preventDefault();const t=new k.E9({x:e.clientX,y:e.clientY});let r=c(t);if((0,Tt.mE)(y,o,b)){const e=await y.getClosestSnapPoint(new k.E9({x:r.x,y:r.y}));r=r.set("x",e.x).set("y",e.y)}const{startingMousePosition:a,startingResizeAnchor:u}=w;(0,l.kG)(a),(0,l.kG)(u);const d={annotation:o,resizeAnchor:u,isShiftPressed:e.shiftKey},v=E.current;null!==v&&v.annotation.id===d.annotation.id&&v.isShiftPressed===d.isShiftPressed&&v.resizeAnchor===d.resizeAnchor||(z.current=f(d),C.current=m(d)),E.current=d;const x=r.translate(a.scale(-1)),_=(0,Jr.D7)(o,x,u,z.current,void 0,p,h,C.current),S=(0,A.S6)(_)?_.set("measurementBBox",_.boundingBox):_;n(S),_o(s),o instanceof k.b3&&![Yr.V.TOP,Yr.V.RIGHT,Yr.V.BOTTOM,Yr.V.LEFT].includes(u)&&o.isMeasurement?.()&&((0,l.kG)(_ instanceof k.b3),i((0,At.eO)({magnifierLabel:_.getMeasurementDetails().label,magnifierCursorPosition:Ao(_,g,u)})))}),[i,o,s,n,g,f,w,c,p,h]),T=u.useCallback((function(e){e.stopPropagation(),S(!1),x(Do),r(t),i((0,Pt.Zg)()),_o(s);const n={annotations:(0,a.aV)([t]),reason:X.f.RESIZE_END};d.emit("annotations.willChange",n),o instanceof k.b3&&o.isMeasurement?.()&&i((0,At.eO)(null))}),[o,s,i,r,t,d]);return{startResizing:P,resizeListener:w.isListening&&u.createElement(He.Z,{onRootPointerMoveCapture:D,onRootPointerUpCapture:T}),isResizing:_}}({transformedAnnotation:B,setTransformedAnnotation:K,setGlobalAnnotation:J,annotation:t,dispatch:x,frameWindow:b,transformDeltaFromClientToPage:Y,eventEmitter:z,pageSize:S,restrictAnnotationToPageBounds:P,shouldConstrainAspectRatio:T,annotationDimensions:M,clientTransformationMatrix:G,interactionsDisabled:w,backend:R,disablePointSnapping:F}),{startRotating:le,rotateListener:ce,isRotating:ue}=function(e){let{transformedAnnotation:t,setTransformedAnnotation:n,setGlobalAnnotation:r,annotation:o,dispatch:i,frameWindow:s,transformClientToPage:l,eventEmitter:c,pageSize:d,restrictAnnotationToPageBounds:p,centerPoint:h,interactionsDisabled:f,setLocalAndGlobalCursor:m,zoomLevel:g}=e;const[v,y]=u.useState(!1),[b,w]=u.useState(!1);u.useEffect((()=>()=>{b&&f&&i((0,Pt.Zg)())}),[i,f,b]);const x=u.useCallback((e=>{const t=new k.E9({x:e.clientX,y:e.clientY}),n=l(t),r=h.x-n.x,o=n.y-h.y,i=-Math.atan2(r,o);return Math.round(i*(180/Math.PI))}),[h,l]),_=u.useCallback((function(e){if(!e.isPrimary)return;y(!0),w(!0);const t={annotations:(0,a.aV)([o]),reason:X.f.ROTATE_START};c.emit("annotations.willChange",t),i((0,Pt.X2)()),m((0,Re.Mg)(x(e),"grabbing"))}),[i,o,c,x,m]),S=u.useCallback((function(e){const r=x(e),o=(0,Re.sw)(t,r,d,p,g);n(o),_o(s),m((0,Re.Mg)(r,"grabbing"))}),[t,s,n,x,m,d,p,g]),C=u.useCallback((function(e){e.stopPropagation(),w(!1),y(!1);const t=x(e),n=(0,Re.sw)(o,t,d,p,g);r(n),i((0,Pt.Zg)()),_o(s),m("");const l={annotations:(0,a.aV)([n]),reason:X.f.ROTATE_END};c.emit("annotations.willChange",l)}),[s,i,r,o,x,c,d,p,m,g]);return{startRotating:_,rotateListener:v&&u.createElement(He.Z,{onRootPointerMoveCapture:S,onRootPointerUpCapture:C}),isRotating:b}}({transformedAnnotation:B,setTransformedAnnotation:K,setGlobalAnnotation:J,annotation:t,dispatch:x,frameWindow:b,transformClientToPage:y,eventEmitter:z,pageSize:S,restrictAnnotationToPageBounds:P,centerPoint:W.getCenter(),interactionsDisabled:w,setLocalAndGlobalCursor:Q,zoomLevel:r}),de=(0,yr.lB)(t,S,r,x),{startModifying:pe,modifyListener:fe,isModifying:me}=function(e){let{transformedAnnotation:t,setTransformedAnnotation:n,setGlobalAnnotation:r,annotation:o,dispatch:i,frameWindow:c,transformDeltaFromClientToPage:d,eventEmitter:p,clientTransformationMatrix:h,pageSize:f,restrictAnnotationToPageBounds:m,backend:g,disablePointSnapping:v,zoomLevel:y}=e;const[b,w]=u.useState(zo),[x,_]=u.useState(!1),S=(0,s.v9)((e=>e.defaultAutoCloseThreshold)),C=u.useCallback((async function(e,t){if(!e.isPrimary)return;const n=new k.E9({x:e.clientX,y:e.clientY}),r=d(n);(0,Tt.mE)(g,o,v)&&await g.configureSnapper(o.pageIndex),w({pointIndex:t,startingMousePosition:r,isListening:!0}),_(!0);const s={annotations:(0,a.aV)([o]),reason:X.f.RESIZE_START};p.emit("annotations.willChange",s),o instanceof k.UX&&o.isMeasurement?.()&&i((0,At.eO)({magnifierLabel:o.getMeasurementDetails().label,drawnAnnotationID:o.id,drawnAnnotationPageIndex:o.pageIndex,magnifierCursorPosition:Po(o,t,h)})),i((0,Pt.X2)())}),[i,d,o,p,h]),z=u.useCallback((async function(e){e.preventDefault();const t=new k.E9({x:e.clientX,y:e.clientY}),r=d(t),{startingMousePosition:a,pointIndex:s}=b;(0,l.kG)(a),(0,l.kG)(null!==s);const u=r.translate(a.scale(-1));let p=(0,ko.Sy)(o,u,s);if((0,l.kG)(p),(0,Tt.mE)(g,o,v)){let e=new k.E9({x:0,y:0});p instanceof k.o9?e=p.get(["startPoint","endPoint"][s]):(p instanceof k.om||p instanceof k.Hi)&&(e=p.points.get(s));const t=await g.getClosestSnapPoint(new k.E9({x:e.x,y:e.y}));e=e.set("x",t.x).set("y",t.y),p instanceof k.o9?p=p.set(["startPoint","endPoint"][s],e):(p instanceof k.om||p instanceof k.Hi)&&(p=p.set("points",p.points.set(s,e)))}if(p instanceof k.om||p instanceof k.Hi){const e=(0,Tt.KM)(p,s,S);-1!==e&&(p=(0,Tt.dg)(p,s,e))}n(p),_o(c),"isMeasurement"in p&&p.isMeasurement?.()&&i((0,At.eO)({magnifierLabel:p.getMeasurementDetails().label,magnifierCursorPosition:Po(p,s,h)}))}),[i,o,c,n,b,d,h]),P=u.useCallback((function(e){if(e.stopPropagation(),_(!1),w(zo),f&&m){const e=new E.UL({left:0,top:0,width:f.width,height:f.height}),t=(0,O.SY)(o,y);if(!e.isRectInside(t))return}r(t),i((0,Pt.Zg)()),_o(c);const n={annotations:(0,a.aV)([t]),reason:X.f.RESIZE_END};p.emit("annotations.willChange",n),"isMeasurement"in o&&o.isMeasurement?.()&&i((0,At.eO)(null))}),[o,c,i,t,p,r,f,m,y]);return{startModifying:C,modifyListener:b.isListening&&u.createElement(He.Z,{onRootPointerMoveCapture:z,onRootPointerUpCapture:P}),isModifying:x}}({transformedAnnotation:B,setTransformedAnnotation:K,setGlobalAnnotation:J,annotation:t,dispatch:x,frameWindow:b,transformDeltaFromClientToPage:Y,eventEmitter:z,clientTransformationMatrix:G,pageSize:S,restrictAnnotationToPageBounds:P,backend:R,disablePointSnapping:F,zoomLevel:r});(0,yr.Sv)(_,x,re);const ge=function(e,t){return u.Children.map(e,(e=>u.cloneElement(e,{...t,isDisabled:!0})))}(c,{annotation:B,globalAnnotation:n,ref:q,isResizing:se,isModifying:me,isDragging:ee,isRotating:ue,...H?{cursor:H}:null}),ye=u.useRef(null);ye.current=function(e){g&&g(t,e)};const we=(0,yr.wL)(v);u.useEffect((function(){const{current:e}=we;return function(){if(e&&e===e?.ownerDocument.activeElement){const e=ye.current;e&&e((0,Yn.My)("blur"))}}}),[]),u.useLayoutEffect((function(){ee&&te()}),[r,te]),function(e,t,n,r,o,i,s,c,d){let p=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,h=arguments.length>10?arguments[10]:void 0;const[f,m]=u.useState(!1),g=u.useRef(!1),v=u.useCallback((function(t){const o=t.composedPath()[0];if((0,l.kG)(o),!(0,Wn.eR)(o))switch(t.key){case"Enter":case" ":case"Spacebar":if((0,Wn.gC)(o)||(0,Wn.N1)(o))return;e(t),t.preventDefault();break;case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":{if((0,Wn.N1)(o))return;t.preventDefault();const e=t.shiftKey?10:1,l=(0,Fe.n5)(bo[t.key]-s),u=wo(l),p=0===l||270===l?new E.E9:new E.E9({x:n.boundingBox.width,y:n.boundingBox.height}),f=(0,yo.c)(n,u.scale(e),i,p,d,h);if(r(f),!g.current){const e={annotations:(0,a.aV)([n]),reason:X.f.MOVE_START};c.emit("annotations.willChange",e),g.current=!0}m(!0)}}}),[e,s,n,i,d,r,c,h]),y=u.useCallback((function(e){const t=e.composedPath()[0];if((0,l.kG)(t),!(0,Wn.eR)(t)&&(("Spacebar"!==e.key&&" "!==e.key||!(0,Wn.gC)(t))&&e.preventDefault(),f&&o(n),g.current)){const e={annotations:(0,a.aV)([n]),reason:X.f.MOVE_END};c.emit("annotations.willChange",e),g.current=!1}}),[f,o,n,c]);u.useLayoutEffect((function(){const e=p?p.ownerDocument:t.document;return e.addEventListener("keydown",v),e.addEventListener("keyup",y),function(){e.removeEventListener("keydown",v),e.removeEventListener("keyup",y)}}),[t.document,v,y,p])}(U,b,B,K,J,S,i,z,P,V,r);const xe=(0,O._k)(B,j);return u.createElement(He.Z,{onPointerDownCapture:function(e){e.isPrimary&&(N.current=C({annotation:t,nativeEvent:e.nativeEvent,selected:!0},z),N.current||x((0,ve.mg)(B,e,{selectedAnnotationShouldDrag:"touch"!==e.pointerType?new k.E9({x:e.clientX,y:e.clientY}):null,stopPropagation:!1,isAnnotationPressPrevented:!1})))},onPointerUp:Io},u.createElement("div",{style:{touchAction:"none"},role:"application"},u.createElement(oo,{zoomLevel:r,viewportSize:o.getSize(),startModifying:pe,startResizing:ie,startDragging:ne,startRotating:le,onFitToSide:de,isDragging:ee,pagesRotation:i,annotation:B,isResizable:d&&D,isModifiable:h&&D,isRotatable:f&&D,isEditableCP:D,annotationBoundingBox:W,window:b,cursor:H},u.createElement("div",{tabIndex:0,ref:we,role:"button","aria-label":B instanceof k.x_?j(be.Z.selectedAnnotation,{arg0:xe}):B instanceof k.gd||B instanceof k.Qi?j(be.Z.selectedAnnotationWithText,{arg0:xe,arg1:B.text.value}):j(be.Z.selectedAnnotation,{arg0:xe}),"data-testid":"selected annotation",onFocus:function(e){m&&m(t,e)},onBlur:ye.current,className:p()("PSPDFKit-Annotation-Selected",B.constructor.readableName&&`PSPDFKit-${B.constructor.readableName}-Annotation-Selected`)},ge)),oe,ae,fe,ce))}));function Io(e){e.stopPropagation()}const Mo=(0,s.$j)((function(e,t){let{annotation:n}=t;return{interactionsDisabled:e.interactionsDisabled,selectedAnnotationShouldDrag:e.selectedAnnotationShouldDrag,isAnnotationPressPrevented:t=>(0,O.TW)(t,e.eventEmitter),eventEmitter:e.eventEmitter,restrictAnnotationToPageBounds:e.restrictAnnotationToPageBounds,isEditableCP:(0,lr.CM)(n,e),shouldConstrainAspectRatio:t=>(0,O.xU)(t,e),annotationDimensions:t=>(0,O.aI)(t,e)}}))(To),Ro={isListening:!1,isDragging:!1,previousMousePosition:null,initialClickWithinAnnotation:null,translation:new k.E9,initialDragCompleted:!1};const Fo=_r((function(e){const{children:t,selectedAnnotations:n,selectedGlobalAnnotations:r,dispatch:o,viewportState:{zoomLevel:i,viewportRect:s,pagesRotation:c},isEditableCP:d,getScrollElement:h,transformClientToPage:f,window:m,interactionsDisabled:g,pageSize:v,eventEmitter:y,restrictAnnotationToPageBounds:b,selectedAnnotationShouldDrag:w,onFocus:x,onBlur:_}=e,{formatMessage:S}=(0,he.YB)(),[C,E]=(0,yr.Ah)(n),z=(0,yr.wL)(h),P=(0,O.Jy)(C,i),D=u.useCallback((function(e){return e.scale(1/i).rotate(c)}),[i,c]),A=u.useCallback((function(e){const t=e.map((e=>{const t=(0,Re.az)(e),n=(0,O.SY)(t,i,c);if(v&&b){if(!new k.UL({left:0,top:0,width:v.width,height:v.height}).isRectInside(n))return null}return t})).filter(Boolean);o((0,at.GZ)(t,(0,a.aV)()))}),[o,v,b,i,c]),{isDragging:T,cancelDrag:I,startDraggingWithEvent:M,startDraggingAtPoint:R,dragListener:F}=function(e){let{getScrollElement:t,transformClientToPage:n,transformedAnnotations:r,setTransformedAnnotations:o,setGlobalAnnotations:i,interactionsDisabled:a,dispatch:s,frameWindow:c,pageSize:d,transformDeltaFromClientToPage:p,eventEmitter:h,restrictAnnotationToPageBounds:f,isEditableCP:m,selectedAnnotationsBoundingBox:g,selectedAnnotations:v,zoomLevel:y}=e;const[b,w]=u.useReducer(Co,Ro),{isListening:x,isDragging:_}=b,S=u.useCallback((function(){return new k.E9({x:t().scrollLeft,y:t().scrollTop})}),[t]);u.useEffect((()=>()=>{_&&a&&s((0,Pt.Zg)())}),[s,a,_]);const C=u.useRef(null),E=u.useCallback((function(e){C.current=S();const t=n(e).translate(g.getLocation().scale(-1)),r=p(e);w({type:"start",mousePosition:r,initialClickWithinAnnotation:t})}),[S,n,p,g]),z=u.useCallback((function(e){e.isPrimary&&E(new k.E9({x:e.clientX,y:e.clientY}))}),[E]),P=u.useCallback((function(){w({type:"stop"}),_o(c),s((0,Pt.Zg)())}),[c,s]),D=u.useCallback((function(e){if((_||Eo(e))&&e.stopPropagation(),r&&_&&i(r),w({type:"stop"}),_){const e={annotations:r,reason:X.f.MOVE_END};h.emit("annotations.willChange",e)}_o(c),s((0,Pt.Zg)())}),[c,s,_,r,h,i]),A=u.useCallback((function(e){if(e.stopPropagation(),e.preventDefault(),_&&0===e.buttons)return void D(e);const{previousMousePosition:t,initialClickWithinAnnotation:n,translation:r}=b;(0,l.kG)(t),(0,l.kG)(n);const i=p(new k.E9({x:e.clientX,y:e.clientY})),u=Dt(n,t);!a&&u&&s((0,Pt.X2)());const m=i.translate(t.scale(-1)),g=r.translate(m),x=v.map((e=>(0,yo.c)(e,g,d,n,f,y)));if(function(e,t){return e.left<=0||e.top<=0||e.left+e.width>=t.width||e.top+e.height>=t.height}((0,O.Jy)(x,y),d)||(o(x),w({type:"drag",mousePosition:i,translation:g})),_o(c),!_){const e={annotations:x,reason:X.f.MOVE_START};h.emit("annotations.willChange",e)}}),[c,s,a,d,o,b,_,p,h,D,f,v,y]),T=u.useCallback((function(){const e=t();if(void 0===e.scrollTop||void 0===e.scrollLeft)return;const n=S(),r=C.current;(0,l.kG)(r);const i=p(n.translate(r.scale(-1))),a=b.translation.translate(i),s=b.initialClickWithinAnnotation||new k.E9,u=v.map((e=>(0,yo.c)(e,a,d,s,!1,y)));o(u),w({type:"scroll",translation:a}),C.current=n,_o(c)}),[c,t,S,d,o,b.initialClickWithinAnnotation,b.translation,p,v,y]);(0,yr.wA)(x,t,T);const I=x&&u.createElement(He.Z,{onRootPointerDownCapture:D,onRootPointerMoveCapture:m?A:void 0,onRootPointerUpCapture:D});return{isDragging:_,cancelDrag:P,startDraggingWithEvent:z,startDraggingAtPoint:E,dragListener:I}}({getScrollElement:h,transformClientToPage:f,transformedAnnotations:C,setTransformedAnnotations:E,setGlobalAnnotations:A,interactionsDisabled:g,dispatch:o,frameWindow:m,pageSize:v,transformDeltaFromClientToPage:D,eventEmitter:y,restrictAnnotationToPageBounds:b,isEditableCP:d,selectedAnnotationsBoundingBox:P,selectedAnnotations:n,zoomLevel:i}),N=u.Children.toArray(t).map((e=>u.isValidElement(e)?function(e,t){return u.cloneElement(e,{...t,isDisabled:!0})}(e,{annotation:C.find((t=>t.id===e.props?.annotation.id)),globalAnnotation:r.find((t=>t.id===e.props?.annotation.id)),isDragging:T}):e));(0,yr.Sv)(w,o,R),u.useLayoutEffect((function(){T&&I()}),[i,I]);const j=u.useRef(null);j.current=function(e,t){_&&_(e,t)};const L=N.filter((e=>Boolean(e.props.annotation))).length>1;return u.createElement(He.Z,{onPointerDownCapture:function(e){e.isPrimary},onPointerUp:No},u.createElement("div",{style:{touchAction:"none",zIndex:1}},u.createElement(oo,{zoomLevel:i,viewportSize:s.getSize(),startDragging:M,isDragging:T,pagesRotation:c,isResizable:!1,isModifiable:!1,isEditableCP:d,annotationBoundingBox:P,isRotatable:!1},N.filter((e=>Boolean(e.props.annotation))).map(((e,t)=>{const n=e.props.annotation,r=(0,O._k)(n,S);return u.createElement(oo,{key:n.id,zoomLevel:i,viewportSize:s.getSize(),startDragging:M,isDragging:T,pagesRotation:c,isResizable:!1,isModifiable:!1,isRotatable:!1,isEditableCP:d,annotationBoundingBox:(0,O.SY)(n,i,c),deselectAnnotation:e=>{o((0,ve.mg)(n,e))},annotationRotation:n.rotation,customZIndex:2},u.createElement("div",{tabIndex:t,"aria-label":n instanceof ie.x_?S(be.Z.selectedAnnotation,{arg0:r}):n instanceof ie.gd||n instanceof ie.Qi?S(be.Z.selectedAnnotationWithText,{arg0:r,arg1:n.text.value}):S(be.Z.selectedAnnotation,{arg0:r}),ref:L?void 0:z,role:"button","data-testid":`selected annotation ${t}`,onFocus:e=>{return t=n,r=e,void(x&&x(t,r));var t,r},onBlur:e=>j.current?.(n,e),className:p()(`PSPDFKit-Annotation-Selected-${t}`,"PSPDFKit-Annotation-Selected",n.constructor.readableName&&`PSPDFKit-${n.constructor.readableName}-Annotation-Selected`)},e))}))),F))}));function No(e){e.stopPropagation()}const Oo=(0,s.$j)((function(e,t){let{annotation:n}=t;return{interactionsDisabled:e.interactionsDisabled,selectedAnnotationShouldDrag:e.selectedAnnotationShouldDrag,eventEmitter:e.eventEmitter,restrictAnnotationToPageBounds:e.restrictAnnotationToPageBounds,isEditableCP:(0,lr.CM)(n,e),shouldConstrainAspectRatio:t=>(0,O.xU)(t,e)}}))(Fo);function jo(e){const[t,n]=u.useState(new q.Z),[r,o]=u.useState(new q.Z);(0,a.is)(t,e.redactionAnnotation)||(0,a.is)(r,e.redactionAnnotation)||(o(e.redactionAnnotation),n(e.redactionAnnotation));const{dispatch:i,pageSize:l,keepSelectedTool:c}=e;u.useEffect((()=>(i((0,Pt.X2)()),()=>{i((0,Pt.Zg)())})),[i]);const{pageIndex:d}=e,h=(0,s.v9)((e=>e.viewportState.zoomLevel)),f=p()([nn().canvas],"PSPDFKit-Redaction-Canvas"),{boundingBox:m}=r,g=(0,s.v9)((e=>e.scrollElement));return u.createElement("div",{className:f},u.createElement(ge,{zoomLevel:h,applyZoom:!0},u.createElement("div",{style:{...m.toJS(),position:"absolute"}},u.createElement(rn,{annotation:r,zoomLevel:1,previewRedactionMode:!1,isSelectable:!1}))),u.createElement(It,{pageSize:l,pageIndex:d,currentAnnotation:r,onAnnotationUpdate:o,keepSelectedTool:c,scrollElement:g}))}var Lo,Bo=n(25673),Ko=n(61193),Vo=n.n(Ko),Ho=(Lo=function(e,t){return Lo=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])},Lo(e,t)},function(e,t){function n(){this.constructor=e}Lo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),$o=function(){return $o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$o.apply(this,arguments)},Uo={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},Zo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return Ho(t,e),t.prototype.render=function(){return u.createElement("div",{className:this.props.className||"",style:$o($o({position:"absolute",userSelect:"none"},Uo[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(u.PureComponent),qo=n(53316),Go=n.n(qo),Wo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yo=function(){return Yo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yo.apply(this,arguments)},Xo={width:"auto",height:"auto"},Qo=Go()((function(e,t,n){return Math.max(Math.min(e,n),t)})),Jo=Go()((function(e,t){return Math.round(e/t)*t})),ei=Go()((function(e,t){return new RegExp(e,"i").test(t)})),ti=function(e){return Boolean(e.touches&&e.touches.length)},ni=Go()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e})),ri=Go()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),oi=Go()((function(e){return"auto"===(e=e.toString())||ri(e,"px")||ri(e,"%")||ri(e,"vh")||ri(e,"vw")||ri(e,"vmax")||ri(e,"vmin")?e:e+"px"})),ii=function(e,t,n,r){if(e&&"string"==typeof e){if(ri(e,"px"))return Number(e.replace("px",""));if(ri(e,"%"))return t*(Number(e.replace("%",""))/100);if(ri(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(ri(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},ai=Go()((function(e,t,n,r,o,i,a){return r=ii(r,e.width,t,n),o=ii(o,e.height,t,n),i=ii(i,e.width,t,n),a=ii(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}})),si=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],li="__resizable_base__",ci=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add(li):t.className+=li,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Wo(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Xo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&ri(e.propsSize[t].toString(),"%")){if(ri(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return oi(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?oi(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?oi(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,a=o&&ei("left",i),s=o&&ei("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=a?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,s=this.props,l=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,d=a.width,p=a.height,h=c||0,f=u||0;return ei("right",i)&&(d=a.width+(e-a.x)*r/n,l&&(p=(d-f)/this.ratio+h)),ei("left",i)&&(d=a.width-(e-a.x)*r/n,l&&(p=(d-f)/this.ratio+h)),ei("bottom",i)&&(p=a.height+(t-a.y)*r/n,l&&(d=(p-h)*this.ratio+f)),ei("top",i)&&(p=a.height-(t-a.y)*r/n,l&&(d=(p-h)*this.ratio+f)),{newWidth:d,newHeight:p}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,p=a||0,h=s||0;if(i){var f=(u-p)*this.ratio+h,m=(d-p)*this.ratio+h,g=(l-h)/this.ratio+p,v=(c-h)/this.ratio+p,y=Math.max(l,f),b=Math.min(c,m),w=Math.max(u,g),x=Math.min(d,v);e=Qo(e,y,b),t=Qo(t,w,x)}else e=Qo(e,l,c),t=Qo(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,a=r.right,s=r.bottom;this.resizableLeft=o,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)){if(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent&&ti(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY);if(this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Yo(Yo({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&ti(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,n=t.maxWidth,r=t.maxHeight,o=t.minWidth,i=t.minHeight,a=ti(e)?e.touches[0].clientX:e.clientX,s=ti(e)?e.touches[0].clientY:e.clientY,l=this.state,c=l.direction,u=l.original,d=l.width,p=l.height,h=this.getParentSize(),f=ai(h,this.window.innerWidth,this.window.innerHeight,n,r,o,i);n=f.maxWidth,r=f.maxHeight,o=f.minWidth,i=f.minHeight;var m=this.calculateNewSizeFromDirection(a,s),g=m.newHeight,v=m.newWidth,y=this.calculateNewMaxFromBoundary(n,r),b=this.calculateNewSizeFromAspectRatio(v,g,{width:y.maxWidth,height:y.maxHeight},{width:o,height:i});if(v=b.newWidth,g=b.newHeight,this.props.grid){var w=Jo(v,this.props.grid[0]),x=Jo(g,this.props.grid[1]),_=this.props.snapGap||0;v=0===_||Math.abs(w-v)<=_?w:v,g=0===_||Math.abs(x-g)<=_?x:g}this.props.snap&&this.props.snap.x&&(v=ni(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=ni(g,this.props.snap.y,this.props.snapGap));var S={width:v-u.width,height:g-u.height};if(d&&"string"==typeof d)if(ri(d,"%"))v=v/h.width*100+"%";else if(ri(d,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(ri(d,"vh")){v=v/this.window.innerHeight*100+"vh"}if(p&&"string"==typeof p)if(ri(p,"%"))g=g/h.height*100+"%";else if(ri(p,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(ri(p,"vh")){g=g/this.window.innerHeight*100+"vh"}var C={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?C.flexBasis=C.width:"column"===this.flexDir&&(C.flexBasis=C.height),this.setState(C),this.props.onResize&&this.props.onResize(e,c,this.resizable,S)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Yo(Yo({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?u.createElement(Zo,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},s&&s[t]?s[t]:null):null}));return u.createElement("div",{className:a,style:i},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==si.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=Yo(Yo(Yo({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return u.createElement(r,Yo({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&u.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(u.PureComponent),ui=n(66780),di=n.n(ui);const pi={top:p()(di().handles,di().handleTop,"PSPDFKit-Document-Crop-Resize-Anchor-Top"),right:p()(di().handles,di().handleRight,"PSPDFKit-Document-Crop-Resize-Anchor-Right"),bottom:p()(di().handles,di().handleBottom,"PSPDFKit-Document-Crop-Resize-Anchor-Bottom"),left:p()(di().handles,di().handleLeft,"PSPDFKit-Document-Crop-Resize-Anchor-Left"),topRight:p()(di().handles,di().handleTopRight,"PSPDFKit-Document-Crop-Resize-Anchor-Top-Right"),bottomRight:p()(di().handles,di().handleBottomRight,"PSPDFKit-Document-Crop-Resize-Anchor-Bottom-Right"),bottomLeft:p()(di().handles,di().handleBottomLeft,"PSPDFKit-Document-Crop-Resize-Anchor-Bottom-Left"),topLeft:p()(di().handles,di().handleTopLeft,"PSPDFKit-Document-Crop-Resize-Anchor-Top-Left")};function hi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.scale(1/t)}function fi(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}let mi=function(e){return e[e.NOT_CREATED=0]="NOT_CREATED",e[e.CREATING=1]="CREATING",e[e.CREATED=2]="CREATED",e}({});const gi=e=>{let{page:t,viewportState:n,onAreaChangeComplete:r,frameWindow:o,onAreaChangeStart:i,initialDraggingEvent:a}=e;const{zoomLevel:c}=n,d=(0,s.v9)((e=>e.shadowRoot)),[h,f]=(0,u.useState)(c),m=(0,u.useRef)(null),[g,v]=(0,u.useState)({left:0,top:0,height:0,width:0}),[y,b]=(0,u.useState)(!1),[w,x]=(0,u.useState)(null),[_,S]=(0,u.useState)(mi.NOT_CREATED),[C,E]=(0,u.useState)(!1),[z,P]=(0,u.useState)(void 0),[D,A]=(0,u.useState)(!1),T=(0,u.useRef)(null),I=(0,s.v9)((e=>e.scrollElement));(0,u.useEffect)((()=>{(0,Wn.Re)(I)&&(I.style.overflow=C?"hidden":"auto",d?d.host.ownerDocument.body.style.overscrollBehavior=C?"contain":"auto":o.document.body.style.overscrollBehavior=C?"contain":"auto")}),[o.document,C,d,I]),(0,u.useEffect)((()=>{function e(e){"Shift"===e.key&&A(!0)}function t(e){"Shift"===e.key&&A(!1)}const n=d||o.document;return n.addEventListener("keydown",e),n.addEventListener("keyup",t),()=>{n.removeEventListener("keydown",e),n.removeEventListener("keyup",t)}}),[o.document,d]),(0,u.useEffect)((()=>{if(z&&c!==h){const e=z.scale(c/h);P(e),f(c),_===mi.CREATING&&(S(mi.CREATED),r?.(hi(e,c)))}}),[h,c,z]);const M=(0,u.useCallback)(((e,t,n,r)=>{P((e=>{(0,l.kG)(e);let n=new k.UL({left:e.left,top:e.top,width:T.current?.width+r.width,height:T.current?.height+r.height});return e&&t.toLowerCase().includes("top")&&(n=n.set("top",e.top-(n.height-e.height))),e&&t.toLowerCase().includes("left")&&(n=n.set("left",e.left-(n.width-e.width))),n}))}),[P,t.pageSize,c,g]);function R(e){const t=e.composedPath().find((e=>e.classList?.contains("PSPDFKit-Page")));return t?parseInt(t.getAttribute("data-page-index"),10):null}const F=(0,yr.R9)((e=>{"touches"in e&&2===e.touches.length&&b(!0);const n=R(e);if(t.pageIndex!==n)return;e.stopImmediatePropagation(),(0,l.kG)(m.current);const r=m.current.getBoundingClientRect(),{clientY:o,clientX:i}=fi(e);v(r),x(new k.E9({x:i-r.left,y:o-r.top}))}));(0,u.useEffect)((()=>{a&&F(a)}),[a,F]);const N=(0,yr.R9)((e=>{if(!w||_===mi.CREATED)return;const{clientX:t,clientY:n}=fi(e);if(w.x!==t||w.y!==t){e.stopImmediatePropagation(),E(!0);const r=t-g.left,o=n-g.top,a=new k.UL({left:Math.max(0,Math.min(r,w.x)),top:Math.max(0,Math.min(o,w.y)),width:r<w.x?Math.min(w.x,w.x-r):Math.min(r-w.x,g.width-w.x),height:o<w.y?Math.min(w.y,w.y-o):Math.min(o-w.y,g.height-w.y)});P(a),S(mi.CREATING),_===mi.NOT_CREATED&&i?.(hi(a,c))}})),O=(0,yr.R9)((e=>{if(_===mi.CREATED)return;b(!1);const n=R(e);t.pageIndex===n&&e.stopImmediatePropagation(),E(!1),x(null),z?(r?.(hi(z,c)),S(mi.CREATED)):S(mi.NOT_CREATED)}));(0,u.useEffect)((()=>{const e=d||o.document;return e.addEventListener("pointerdown",F),e.addEventListener("pointermove",N),e.addEventListener("pointerup",O,{capture:!0}),e.addEventListener("touchstart",F),e.addEventListener("touchmove",N),e.addEventListener("touchend",O),()=>{e.removeEventListener("pointerdown",F),e.removeEventListener("pointermove",N),e.removeEventListener("pointerup",O,{capture:!0}),e.removeEventListener("touchstart",F),e.removeEventListener("touchmove",N),e.removeEventListener("touchend",O)}}),[F,N,O]);const j=z&&{x:z.left,y:z.top,width:z.width,height:z.height};return u.createElement("div",{ref:m,className:di().wrapper,onPointerUp:e=>e.stopPropagation(),role:"application"},_!==mi.NOT_CREATED&&u.createElement(u.Fragment,null,_===mi.CREATED&&function(e){const t={position:"absolute",backgroundColor:"rgba(0,0,0,0.2)"};return e?u.createElement(u.Fragment,null,u.createElement("div",{style:{...t,left:0,top:0,bottom:0,width:e.left}}),u.createElement("div",{style:{...t,left:e.left,top:0,right:0,height:e.top}}),u.createElement("div",{style:{...t,left:e.left+e.width,top:e.top,right:0,bottom:0}}),u.createElement("div",{style:{...t,left:e.left,top:e.top+e.height,bottom:0,width:e.width}})):null}(z),u.createElement(Vo(),{position:j,onStart:()=>{(0,l.kG)(z),i?.(hi(z,c))},onDrag:(e,t)=>{if(y)return!1;P((e=>((0,l.kG)(e),e.merge({left:t.x,top:t.y}))))},onStop:()=>{(0,l.kG)(z),r?.(hi(z,c))},defaultPosition:j,cancel:`.${di().handles}`,bounds:"parent"},u.createElement(ci,{size:z?{width:z.width,height:z.height}:void 0,onResizeStart:()=>{E(!0),(0,l.kG)(m.current&&z),i?.(hi(z,c)),v(m.current.getBoundingClientRect()),T.current=z},onResize:M,onResizeStop:()=>{E(!1),(0,l.kG)(z),r?.(hi(z,c)),T.current=null},handleClasses:pi,bounds:"parent",boundsByDirection:!0,lockAspectRatio:D},u.createElement("div",{style:z?{width:z.width,height:z.height}:void 0,className:p()(di().cropBox,"PSPDFKit-Document-Crop-Box")})))))};function vi(e){const{dispatch:t,linkAnnotation:n,pageIndex:r}=e;u.useEffect((()=>()=>{t((0,Pt.lL)())}),[]);const o=p()({[nn().canvas]:!0});return u.createElement("div",{className:o},u.createElement(gi,{viewportState:e.viewportState,page:e.page,onAreaChangeComplete:function(e){const o=n.set("pageIndex",r).set("boundingBox",e);window.setTimeout((()=>{(0,s.dC)((()=>{t((0,at.FG)(o)),t((0,Pt.UU)()),t((0,ve.Df)((0,a.l4)([o.id]),null)),t((0,at.ZE)(o.id)),t((0,Pt.lL)())}))}),10)},frameWindow:e.window}))}var yi=n(98891),bi=n.n(yi);const wi=e=>{let{viewportState:t,onAreaChangeComplete:n,frameWindow:r,onAreaChangeStart:o,initialDraggingEvent:i}=e;const a=(0,s.I0)(),{zoomLevel:c}=t,d=(0,u.useRef)(null),[h,f]=(0,u.useState)({left:0,top:0,height:0,width:0}),[m,g]=(0,u.useState)(!1),[v,y]=(0,u.useState)(null),[b,w]=(0,u.useState)(mi.NOT_CREATED),[x,_]=(0,u.useState)(void 0),S=(0,yr.R9)((e=>{"touches"in e&&2===e.touches.length&&g(!0),a((0,ve._)(!0)),e.stopImmediatePropagation(),(0,l.kG)(d.current);const t=d.current.getBoundingClientRect(),{clientY:n,clientX:r}=fi(e);f(t),y(new k.E9({x:r-t.left,y:n-t.top}))}));(0,u.useEffect)((()=>{i&&S(i)}),[i,S]);const C=(0,yr.R9)((e=>{if(!v||b===mi.CREATED)return;const{clientX:t,clientY:n}=fi(e);if(v.x!==t||v.y!==t){e.stopImmediatePropagation();const r=t-h.left,i=n-h.top,a=new k.UL({left:Math.max(0,Math.min(r,v.x)),top:Math.max(0,Math.min(i,v.y)),width:r<v.x?Math.min(v.x,v.x-r):Math.min(r-v.x,h.width-v.x),height:i<v.y?Math.min(v.y,v.y-i):Math.min(i-v.y,h.height-v.y)});_(a),w(mi.CREATING),b===mi.NOT_CREATED&&o?.(hi(a,c))}})),E=(0,yr.tm)(),z=(0,yr.R9)((()=>{b!==mi.CREATED&&(g(!1),a((0,ve._)(!1)),y(null),x&&E()?(n?.(hi(x,c)),w(mi.CREATED)):w(mi.NOT_CREATED))}));(0,u.useEffect)((()=>(r.document.addEventListener("pointerdown",S),r.document.addEventListener("pointermove",C),r.document.addEventListener("pointerup",z,{capture:!0}),r.document.addEventListener("touchstart",S),r.document.addEventListener("touchmove",C),r.document.addEventListener("touchend",z,{capture:!0}),()=>{r.document.removeEventListener("pointerdown",S),r.document.removeEventListener("pointermove",C),r.document.removeEventListener("pointerup",z,{capture:!0}),r.document.removeEventListener("touchstart",S),r.document.removeEventListener("touchmove",C),r.document.removeEventListener("touchend",z,{capture:!0})})),[S,C,z]);const P=x&&{x:x.left,y:x.top,width:x.width,height:x.height};return u.createElement("div",{ref:d,className:bi().wrapper,onPointerUp:e=>e.stopPropagation(),role:"application"},b!==mi.NOT_CREATED&&u.createElement(u.Fragment,null,u.createElement(Vo(),{position:P,onStart:()=>{(0,l.kG)(x),o?.(hi(x,c))},onDrag:(e,t)=>{if(m)return!1;_((e=>((0,l.kG)(e),e.merge({left:t.x,top:t.y}))))},onStop:()=>{(0,l.kG)(x),n?.(hi(x,c))},defaultPosition:P,bounds:"parent"},u.createElement("div",{style:x?{width:x.width,height:x.height}:void 0,className:p()(bi().selectionBox,"PSPDFKit-Multiple-Selection-Box")}))))};function xi(e){const t=(0,s.I0)(),n=(0,s.v9)((e=>e.annotations)),r=(0,s.v9)((e=>e.selectedAnnotationIds)),{pageIndex:o,viewportState:i,window:l,initialDraggingEvent:c,multiAnnotationsUsingShortcut:d}=e;return fe.Ni&&r.size>0?null:u.createElement("div",{className:nn().canvas},u.createElement(wi,{viewportState:i,onAreaChangeComplete:function(e){const r=n.filter((e=>e.pageIndex===o)).toArray(),i=[];r.forEach((t=>{let[n,r]=t;const o=r.boundingBox;e.isRectOverlapping(o)&&i.push(n)})),i.length?l.setTimeout((()=>{(0,s.dC)((()=>{fe.Ni||t((0,ve.fz)()),t((0,ve.Df)((0,a.l4)(i),null))}))}),5):t((0,Pt.FA)())},frameWindow:l,initialDraggingEvent:d?c:void 0}))}var _i=n(30006);const Si=function(e){const{annotation:t,zoomLevel:n,isDisabled:r,isFocused:o,isSelected:i,onFocus:a,onBlur:l}=e,c=(0,he.YB)(),{formatMessage:d}=c,p=(0,s.I0)(),h=u.useCallback((e=>{if(t instanceof ie.gd&&t.locked){if(t.lockedContents)return;setTimeout((()=>{p((0,ve.VR)(t.id))}),0)}else t instanceof ie.Qi||t instanceof ie.Jn?p((0,ve.mg)(t,e,{selectedAnnotationShouldDrag:null,stopPropagation:!0,ignoreReadOnly:!0})):t instanceof ie.On&&t.isCommentThreadRoot?p((0,ve.mg)(t,e)):p((0,ve.mg)(t,e,{selectedAnnotationShouldDrag:null,stopPropagation:!0}))}),[p,t]),f=u.useCallback((e=>{(0,O.So)(t)&&(a?.(t,e),(0,O.yj)(t,e)&&p((0,ve.Q2)(t.id)))}),[p,a,t]),m=u.useCallback((e=>{l?.(t,e),(0,O.yj)(t,e)&&p((0,ve.Oc)(t.id))}),[p,l,t]);let g="";t instanceof ie.Jn&&(g=`CommentThread-${t.id}`);const v=u.useRef(null),y=function(e,t){return t&&(e instanceof ie.GI||e instanceof ie.Zc||e instanceof ie.UX||e instanceof ie.gd||e instanceof ie.On)}(t,o);u.useEffect((()=>{y&&v.current?.focus()}),[y]);const b=(0,yr.jC)(e),w=b?.isSelected,x=b?.isDisabled;u.useEffect((()=>{v.current&&v.current.ownerDocument.activeElement!==v.current&&void 0!==w&&void 0!==x&&(t instanceof ie.On&&!w&&i?v.current?.focus():w&&!i&&r&&m((0,Yn.My)("blur")))}),[t,m,i,r,w,x]);const _=(0,O.WX)(t,n),S={position:"absolute",top:t.boundingBox.top*n,left:t.boundingBox.left*n,width:t.boundingBox.width*_,height:t.boundingBox.height*_,pointerEvents:"none",...Ci(t,o)},C=function(e,t){if(e instanceof ie.gd){if("plain"===e.text.format)return e.text.value;if("xhtml"===e.text.format)return(new DOMParser).parseFromString(e.text.value,"text/html").body.textContent??void 0}if(e instanceof ie.Qi)return e.text.value??void 0;if(e instanceof ie.GI)return(0,_i.vW)({annotation:e,intl:t})??void 0;return}(t,c);return u.createElement(pe.Z,{disabled:r,onClick:h,onFocus:f,onBlur:m,"data-annotation-id":t.id,"aria-controls":g?`CommentThread-${t.id}`:void 0,"aria-label":`${d(be.Z.annotation)}: ${d((0,O.Xr)(t))}. ${C??""}`,tabIndex:0,className:"PSPDFKit-Annotation-Keyboard-Navigable",style:S,innerRef:v})};function Ci(e,t){return e instanceof ie.GI||e instanceof ie.gd?t?{outline:O.A8,outlineOffset:"10px"}:{}:(e instanceof ie.UX||e instanceof ie.On)&&t?{outline:O.A8}:{}}const Ei=[j.A.SHAPE_LINE,j.A.SHAPE_RECTANGLE,j.A.SHAPE_ELLIPSE,j.A.SHAPE_POLYLINE,j.A.SHAPE_POLYGON],ki=[j.A.DISTANCE,j.A.PERIMETER,j.A.RECTANGLE_AREA,j.A.ELLIPSE_AREA,j.A.POLYGON_AREA];var zi=n(34923),Pi=n(58163);const Di=new Y.Z,Ai={[K.Dj2]:e=>e.set("debugMode",!0),[K.RTr]:e=>e.set("hasFetchedInitialRecordsFromInstant",!0),[K.kt4]:(e,t)=>{let{enabled:n}=t;return e.set("areClipboardActionsEnabled",n)},[K.heZ]:(e,t)=>{let{group:n}=t;return e.set("group",n)},[K.G5w]:e=>e.set("isDebugConsoleVisible",!0),[K.GW4]:e=>e.set("isDebugConsoleVisible",!1),[K.mqf]:(e,t)=>{let{preset:n="text-highlighter"}=t;const r=new k.FV((0,O.lx)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",j.A.TEXT_HIGHLIGHTER),e.set("selectedAnnotationIds",(0,a.l4)([r.id])),e.set("selectedAnnotationMode",L.o.EDITING),n&&!(n in G.AQ)&&e.setIn(["annotationPresetIds",r.id],n),e.setIn(["annotations",r.id],r)}))},[K.tLW]:e=>e.withMutations((t=>{t.set("currentItemPreset",null),t.set("interactionMode",null),e.interactionMode===j.A.TEXT_HIGHLIGHTER&&(0,O.Xu)(t),t.set("selectedAnnotationIds",(0,a.l4)())})),[K.tS$]:(e,t)=>{let{preset:n="redaction"}=t;const r=new q.Z((0,O.lx)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",j.A.REDACT_TEXT_HIGHLIGHTER),e.set("selectedAnnotationIds",(0,a.l4)([r.id])),e.set("selectedAnnotationMode",L.o.EDITING),n&&!(n in G.AQ)&&e.setIn(["annotationPresetIds",r.id],n),e.setIn(["annotations",r.id],r)}))},[K.g30]:e=>e.withMutations((t=>{t.set("currentItemPreset",null),t.set("interactionMode",null),e.interactionMode===j.A.REDACT_TEXT_HIGHLIGHTER&&(0,O.Xu)(t),t.set("selectedAnnotationIds",(0,a.l4)())})),[K.VNM]:(e,t)=>{let{editor:n}=t;return e.set("richTextEditorRef",n)},[K.yPS]:(e,t)=>{let{preset:n}=t;return e.withMutations((e=>{e.set("interactionMode",j.A.MEASUREMENT),void 0!==n&&e.set("currentItemPreset",n)}))},[K.m_C]:e=>e.set("interactionMode",null),[K.GXR]:(e,t)=>{let{preset:n}=t;const r=new k.Zc((0,O.lx)(e));return e.withMutations((t=>{t.set("interactionMode",j.A.INK),t.set("interactionsDisabled",!0),t.set("selectedAnnotationIds",(0,a.l4)([r.id])),t.set("selectedAnnotationMode",L.o.EDITING),void 0!==n&&t.set("currentItemPreset",n);const o=void 0!==n?n:e.currentItemPreset;o&&!G.AQ[o]&&t.setIn(["annotationPresetIds",r.id],o),t.setIn(["annotations",r.id],r)}))},[K.J7J]:e=>e.set("interactionMode",null),[K.JyO]:e=>e.withMutations((e=>{e.set("interactionMode",j.A.INK_ERASER),e.set("selectedAnnotationIds",(0,a.l4)()),e.set("interactionsDisabled",!0)})),[K.NDs]:e=>e.withMutations((e=>{e.set("interactionMode",null),e.set("interactionsDisabled",!1)})),[K.Vu4]:(e,t)=>{let{signatureRect:n,signaturePageIndex:r,formFieldName:o}=t;null!==r&&(0,l.kG)("number"==typeof r&&r>=0&&r<e.totalPages,"pageIndex must be a number between 0 and "+(e.totalPages-1)),null!==o&&(0,l.kG)("string"==typeof o,"formFieldName must be a string");const i={annotations:(0,a.aV)([new k.Zc({isSignature:!0,pageIndex:r})]),reason:X.f.SELECT_START};return e.eventEmitter.emit("annotations.willChange",i),e.withMutations((e=>{e.set("interactionMode",j.A.SIGNATURE),e.setIn(["signatureState","signatureRect"],n),e.setIn(["signatureState","signaturePageIndex"],r),e.setIn(["signatureState","formFieldName"],o)}))},[K.S$y]:e=>e.withMutations((e=>{e.set("widgetAnnotationToFocus",null),e.set("interactionMode",null),e.set("currentItemPreset",null),e.setIn(["signatureState","formFieldName"],null),e.setIn(["signatureState","signatureRect"],null),e.setIn(["signatureState","signaturePageIndex"],null)})),[K.Dzg]:e=>{const t={annotations:(0,a.aV)([new k.GI({pageIndex:e.viewportState.currentPageIndex})]),reason:X.f.SELECT_START};return e.eventEmitter.emit("annotations.willChange",t),e.withMutations((e=>{e.set("interactionMode",j.A.STAMP_PICKER),e.set("currentItemPreset",null)}))},[K.M3C]:e=>e.withMutations((e=>{e.set("interactionMode",j.A.STAMP_CUSTOM),e.set("currentItemPreset",null)})),[K.tie]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[K.JS9]:(e,t)=>{const n=ki.includes(t.shapeInteractionMode),r=(0,O.lx)(e),{activeMeasurementScale:o,isCalibratingScale:i}=e;n&&(r.measurementScale=o?.scale?new Pi.Z({fromValue:Number(o.scale.fromValue),toValue:Number(o.scale.toValue),unitFrom:o.scale.unitFrom,unitTo:o.scale.unitTo}):e.measurementScale,r.measurementPrecision=o?.precision?o.precision:e.measurementPrecision,i&&(r.strokeColor=k.Il.BLUE));const s=new t.shapeClass(r);return e.withMutations((n=>{n.set("interactionMode",t.shapeInteractionMode),n.set("interactionsDisabled",!0),n.set("selectedAnnotationIds",(0,a.l4)([s.id])),n.set("selectedAnnotationMode",L.o.EDITING),void 0!==t.preset&&n.set("currentItemPreset",t.preset);const r=void 0!==t.preset?t.preset:e.currentItemPreset;r&&!G.AQ[r]&&n.setIn(["annotationPresetIds",s.id],r),n.setIn(["annotations",s.id],s)}))},[K.AIf]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[K.cbv]:(e,t)=>{let{preset:n="redaction"}=t;const r=new q.Z((0,O.lx)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",j.A.REDACT_SHAPE_RECTANGLE),e.set("interactionsDisabled",!0),e.set("selectedAnnotationIds",(0,a.l4)([r.id])),e.set("selectedAnnotationMode",L.o.EDITING),n&&!(n in G.AQ)&&e.setIn(["annotationPresetIds",r.id],n),e.setIn(["annotations",r.id],r)}))},[K.TUA]:e=>e.withMutations((t=>{t.set("interactionMode",null),t.set("currentItemPreset",null),e.interactionMode===j.A.REDACT_SHAPE_RECTANGLE&&(0,O.Xu)(t),t.set("selectedAnnotationIds",(0,a.l4)())})),[K.ZDQ]:(e,t)=>{const{annotation:n,preset:r}=t,o=n||new k.Qi((0,O.lx)(e));return e.withMutations((t=>{t.set("interactionMode",j.A.NOTE),t.set("selectedAnnotationIds",(0,a.l4)([o.id])),t.set("selectedAnnotationMode",L.o.EDITING),void 0!==r&&t.set("currentItemPreset",r);const n=void 0!==r?r:e.currentItemPreset;n&&!G.AQ[n]&&t.setIn(["annotationPresetIds",o.id],n),t.setIn(["annotations",o.id],o)}))},[K.B1n]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[K.dEe]:(e,t)=>{const n=t.annotation?t.annotation:new k.Jn((0,O.lx)(e));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,a.l4)([n.id])),e.set("selectedAnnotationMode",L.o.EDITING),e.setIn(["annotations",n.id],n),e.set("interactionMode",j.A.COMMENT_MARKER),e.set("currentItemPreset",null)}))},[K.iMs]:e=>e.set("interactionMode",null),[K.pnu]:(e,t)=>{const{annotation:n,preset:r}=t;let i=n;if(!i&&(i=new k.gd((0,O.lx)(e)),e.enableRichText(i))){const e=o.ri.setStyleOrToggleFormat(i.text.value||"","fontColor",i.fontColor?.toHex()||"");i=i.set("fontColor",null).set("text",{format:"xhtml",value:e})}const s=i.id;return e.withMutations((n=>{n.set("interactionMode",t.isCallout?j.A.CALLOUT:j.A.TEXT),void 0!==r&&n.set("currentItemPreset",r);const o=void 0!==r?r:e.currentItemPreset;o&&!G.AQ[o]&&n.setIn(["annotationPresetIds",s],o),n.setIn(["annotations",s],i),n.set("selectedAnnotationIds",(0,a.l4)([s])),n.set("selectedAnnotationMode",L.o.EDITING)}))},[K.KqR]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[K.JRS]:e=>e.withMutations((e=>{e.set("interactionMode",j.A.DOCUMENT_CROP),e.set("interactionsDisabled",!0),e.set("currentItemPreset",null)})),[K.Gox]:e=>e.withMutations((e=>{e.set("interactionMode",null),e.set("interactionsDisabled",!1)})),[K.eFQ]:e=>e.set("interactionsDisabled",!1),[K.L8n]:e=>e.set("interactionsDisabled",!0),[K.MuN]:e=>e.set("showToolbar",!0),[K.xk1]:e=>e.set("showToolbar",!1),[K.tYC]:e=>e.set("enableAnnotationToolbar",!0),[K.NAH]:e=>e.set("enableAnnotationToolbar",!1),[K.Ce5]:(e,t)=>e.set("clientsChangeCallback",t.callback),[K.WtY]:(e,t)=>e.set("transformClientToPage",t.transformClientToPage),[K.tPZ]:(e,t)=>{const n=t.width>0?Math.abs(t.width-e.scrollbarOffset):-1*e.scrollbarOffset,r=(0,Z.a$)(e.viewportState,e.viewportState.viewportRect,!1,n);return e.merge({viewportState:r,scrollbarOffset:t.width})},[K.rWQ]:(e,t)=>{let{layoutMode:n}=t;return e.update("viewportState",(e=>(0,Z.YA)(e,n)))},[K.b0l]:(e,t)=>{let{scrollMode:n}=t;return e.update("viewportState",(e=>(0,Z._U)(e,n)))},[K._n_]:(e,t)=>{let{scrollElement:n}=t;return e.set("scrollElement",n)},[K.bxr]:(e,t)=>{let{spreadSpacing:n}=t;return e.set("viewportState",(0,Z.JN)(e.viewportState,n))},[K._ko]:(e,t)=>{let{pageSpacing:n}=t;return e.set("viewportState",(0,Z.vY)(e.viewportState,n))},[K.FHt]:(e,t)=>{let{keepFirstSpreadAsSinglePage:n}=t;return e.set("viewportState",(0,Z.EY)(e.viewportState,n))},[K.ht3]:(e,t)=>{let{viewportPadding:n}=t;return e.set("viewportState",(0,Z._P)(e.viewportState,n))},[K.aYj]:e=>e.set("printingEnabled",!0),[K.hpj]:e=>e.set("printingEnabled",!1),[K.QYP]:e=>e.set("exportEnabled",!0),[K.zKF]:e=>e.set("exportEnabled",!1),[K.NfO]:(e,t)=>{let{readOnlyEnabled:n}=t;return e.set("readOnlyEnabled",n)},[K.cyk]:e=>e.set("showAnnotations",!0),[K.KYU]:e=>e.set("showAnnotations",!1),[K.Nl1]:e=>e.set("showComments",!0),[K.L9g]:e=>e.set("showComments",!1),[K.Dl4]:e=>e.set("showAnnotationNotes",!0),[K.GfR]:e=>e.set("showAnnotationNotes",!1),[K.Xlm]:e=>((0,l.kG)(!e.backendPermissions.readOnly,"Can not disable read only mode."),e.set("readOnlyEnabled",J.J.NO)),[K.iQZ]:(e,t)=>{let{features:n}=t;return(0,l.kG)(0===e.features.size,"Cannot alterate the supported features list after initialization."),n.includes(Q.q.FORMS)||(e=e.set("formsEnabled",!1)),(0,mn.Vz)(n)||n.includes(Q.q.ELECTRONIC_SIGNATURES)||(e=(e=e.set("readOnlyEnabled",J.J.LICENSE_RESTRICTED)).setIn(["backendPermissions","readOnly"],!0)),e.set("features",n)},[K.JQC]:(e,t)=>{let{signatureFeatureAvailability:n}=t;return(0,l.kG)(!e.signatureFeatureAvailability,"Cannot alterate the signature feature availability after initialization."),e.set("signatureFeatureAvailability",n)},[K.hv0]:(e,t)=>{let{mode:n}=t;return e.set("sidebarMode",n)},[K.eI4]:(e,t)=>{let{placement:n}=t;return e.set("sidebarPlacement",n)},[K.bP3]:(e,t)=>{let{sidebarOptions:n}=t;return e.set("sidebarOptions",n)},[K._TO]:(e,t)=>{let{showSignatureValidationStatus:n}=t;return e.set("showSignatureValidationStatus",n)},[K.dVW]:(e,t)=>{let{locale:n}=t;return e.set("locale",n)},[K.hlI]:(e,t)=>{let{annotationCreatorName:n,immutable:r}=t;return e.set("annotationCreatorName",n).set("annotationCreatorNameReadOnly",r)},[K.ZbY]:(e,t)=>{let{editableAnnotationTypes:n}=t;return e.set("editableAnnotationTypes",n).set("isEditableAnnotation",null)},[K.uFU]:(e,t)=>{let{isEditableAnnotation:n}=t;return e.set("isEditableAnnotation",n).set("editableAnnotationTypes",(0,a.l4)(W.Z))},[K.ArU]:(e,t)=>{let{editableAnnotationTypes:n,isEditableAnnotation:r}=t;return e.set("isEditableAnnotation",r).set("editableAnnotationTypes",n)},[K.Q2U]:(e,t)=>{let{isEditableComment:n}=t;return e.set("isEditableComment",n)},[K.IFt]:(e,t)=>{let{formDesignMode:n}=t;return e.withMutations((t=>{t.set("formDesignMode",n),!1===n&&t.set("selectedAnnotationIds",e.selectedAnnotationIds.filter((t=>e.annotations.get(t)&&!(e.annotations.get(t)instanceof k.x_))))}))},[K.YIz]:e=>e.set("interactionMode",j.A.DOCUMENT_EDITOR),[K.Gkm]:(e,t)=>{let{measurementSnapping:n}=t;return e.set("measurementSnapping",n)},[K.fwq]:(e,t)=>{let{measurementPrecision:n}=t;return e.set("measurementPrecision",n)},[K.G6t]:(e,t)=>{let{scale:n}=t;return e.set("measurementScale",n)},[K.K26]:e=>e.set("interactionMode",null),[K.Hbz]:e=>e.set("interactionMode",j.A.MARQUEE_ZOOM),[K.$VE]:(e,t)=>{let{interactionMode:n}=t;return e.set("interactionMode",n)},[K.yrz]:e=>e.set("interactionMode",null),[K.sYK]:e=>e.set("interactionMode",null),[K.fAF]:(e,t)=>e.set("customRenderers",t.customRenderers),[K.pNz]:e=>e.withMutations((e=>{e.set("isSigning",!0),e.set("interactionsDisabled",!0)})),[K.bV3]:e=>e.withMutations((e=>{e.set("isSigning",!1),e.set("interactionsDisabled",!1)})),[K.EpY]:e=>e.withMutations((e=>{e.set("isApplyingRedactions",!0),e.set("interactionsDisabled",!0)})),[K.bui]:e=>e.withMutations((e=>{e.set("isApplyingRedactions",!1),e.set("interactionsDisabled",!1)})),[K.vVk]:(e,t)=>{let{previewRedactionMode:n}=t;return e.set("previewRedactionMode",n)},[K.D5x]:(e,t)=>e.set("a11yStatusMessage",t.a11yStatusMessage),[K.rpU]:(e,t)=>{let{lastToolbarActionUsedKeyboard:n}=t;return e.set("lastToolbarActionUsedKeyboard",n)},[K.KA1]:(e,t)=>{let{documentComparisonState:n}=t;return e.set("documentComparisonState",n?{...e.documentComparisonState,...n}:null)},[K.MYU]:e=>e.set("canScrollWhileDrawing",!0),[K.mbD]:e=>e.set("canScrollWhileDrawing",!1),[K.wog]:e=>e.set("keepSelectedTool",!0),[K.UL9]:e=>e.set("keepSelectedTool",!1),[K.tIQ]:(e,t)=>{const n=e.viewportState.set("disablePointSnapping",t.disablePointSnapping);return e.set("viewportState",n)},[K.IyB]:(e,t)=>{let{instance:n}=t;return e.set("instance",n)},[K.eJ4]:(e,t)=>{let{customUIStore:n}=t;return e.set("customUIStore",n)},[K.R7l]:e=>{const t=new k.R1((0,O.lx)(e)),n="link";return e.withMutations((e=>{e.set("linkAnnotationMode",!0),e.set("interactionMode",j.A.LINK),e.set("selectedAnnotationIds",(0,a.l4)([t.id])),e.set("selectedAnnotationMode",L.o.EDITING),e.setIn(["annotations",t.id],t),e.set("currentItemPreset",n);const r=n;!G.AQ.link&&e.setIn(["annotationPresetIds",t.id],r)}))},[K.qKG]:e=>e.withMutations((e=>{e.set("linkAnnotationMode",!1)})),[K.oZW]:(e,t)=>{let{multiAnnotationsUsingShortcut:n}=t;return e.withMutations((t=>{e.isMultiSelectionEnabled&&(t.set("interactionMode",j.A.MULTI_ANNOTATIONS_SELECTION),t.set("selectedAnnotationIds",(0,a.l4)()),t.set("selectedAnnotationMode",L.o.SELECTED),t.set("multiAnnotationsUsingShortcut",n))}))},[K.odo]:e=>e.withMutations((e=>{e.set("interactionMode",null),e.set("multiAnnotationsUsingShortcut",null)})),[K.Vje]:e=>e.set("interactionMode",j.A.MEASUREMENT_SETTINGS),[K.XTO]:e=>e.set("interactionMode",null),[K.FQb]:(e,t)=>{let{annotationsIds:n}=t;return e.withMutations((e=>{const{annotationsGroups:t,annotations:r}=e,o=r.find((e=>e.get("id")===n.first()))?.get("pageIndex");n.forEach((e=>{const t=r.find((t=>t.id===e));(0,l.kG)(t,`Annotation with id ${e} couldn't be found.`),(0,l.kG)(o===t.get("pageIndex"),"Annotations can't be grouped if they are not on the same page")}));const i=t.map((e=>{const t=e.annotationsIds;return e.annotationsIds=t.filter((e=>!n.includes(e))),e})).filter((e=>e.annotationsIds.size>0)),s=(0,zi.C)();e.set("annotationsGroups",i.set(s,{groupKey:s,annotationsIds:(0,a.l4)(n)})),e.set("selectedGroupId",s)}))},[K.t$K]:(e,t)=>{let{groupId:n}=t;return e.set("selectedGroupId",n)},[K.vBn]:(e,t)=>{let{pullToRefreshNewState:n}=t;return e.set("disablePullToRefresh",n)},[K.bzW]:(e,t)=>{let{groupId:n}=t;return e.withMutations((e=>{const{annotationsGroups:t}=e;e.set("annotationsGroups",t.delete(n)),e.set("selectedGroupId",null)}))},[K.b4I]:(e,t)=>{let{annotationId:n,groupId:r}=t;return e.withMutations((e=>{const{annotationsGroups:t}=e,o=t.get(r);o&&(e.set("annotationsGroups",t.set(r,{groupKey:r,annotationsIds:o.annotationsIds.delete(n)})),e.set("selectedGroupId",null))}))},[K.tzG]:(e,t)=>{let{customFontsReadableNames:n}=t;return e.set("customFontsReadableNames",n)},[K.ej0]:(e,t)=>{const n=e.viewportState.set("enableAlwaysScrollToZoom",t.enableAlwaysScrollToZoom);return e.set("viewportState",n)},[K.QM1]:(e,t)=>{const n=e.viewportState.set("forceRenderWidgetsInAnnotationsOrder",t.forceRenderWidgetsInAnnotationsOrder);return e.set("viewportState",n)},[K.ol]:(e,t)=>e.set("evaluation",t.evaluation),[K.wJn]:(e,t)=>{const n=e.viewportState.set("prerenderedPageSpreads",t.prerenderedPageSpreads);return e.set("viewportState",n)},[K.rq0]:(e,t)=>e.setIn(["documentAssistant","configuration"],t.configuration),[K.HXk]:(e,t)=>e.setIn(["documentAssistant","show"],t.showDocumentAssistant),[K.wHH]:(e,t)=>t.currentTextSelection&&t.currentTextSelection.textRange?e.setIn(["documentAssistant","additionalContext"],{text:(0,xo.Q)(e,t.currentTextSelection),pageIndex:t.currentTextSelection.startPageIndex,boundingBox:(0,xo.U2)(e,t.currentTextSelection.textRange,!0)}):e.setIn(["documentAssistant","additionalContext"],null),[K.mxA]:(e,t)=>e.set("isServerModeDownloadingWASM",t.isServerModeDownloadingWASM),[K.fBs]:(e,t)=>e.set("isServerModeDownloadingDocument",t.isServerModeDownloadingDocument)};function Ti(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Di,t=arguments.length>1?arguments[1]:void 0;const n=Ai[t.type];return n?n(e,t):e}var Ii=n(14178);const Mi=new k.ZM,Ri={[K.BS3]:(e,t)=>e.set("connectionState",new k.em({name:Ii.F.CONNECTING,reason:t.reason,progress:t.progress})),[K.nmm]:e=>e.set("connectionState",new k.em({name:Ii.F.CONNECTED})),[K.zZV]:(e,t)=>e.set("connectionState",new k.em({name:Ii.F.CONNECTION_FAILED,reason:t.reason})),[K.rxv]:(e,t)=>e.set("annotationManager",t.annotationManager),[K.Hrp]:(e,t)=>e.set("bookmarkManager",t.bookmarkManager),[K.GHc]:(e,t)=>e.set("formFieldValueManager",t.formFieldValueManager),[K.oj5]:(e,t)=>e.set("formFieldManager",t.formFieldManager),[K.UII]:(e,t)=>e.set("commentManager",t.commentManager),[K.gbd]:(e,t)=>e.set("changeManager",t.changeManager),[K.Ty$]:(e,t)=>e.set("connectionState",new k.em({name:Ii.F.PASSWORD_REQUIRED})).set("resolvePassword",t.resolvePassword),[K.hC8]:e=>e.set("isUnlockedViaModal",!0).set("resolvePassword",null),[K.poO]:(e,t)=>e.set("hasPassword",t.hasPassword),[K.iZ1]:(e,t)=>e.set("allowedTileScales",t.allowedTileScales)};function Fi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mi,t=arguments.length>1?arguments[1]:void 0;const n=Ri[t.type];return n?n(e,t):e}const Ni=new k.ZM,Oi={[K.jJ7]:(e,t)=>{const{item:n}=t;return(0,me.k)(e.pages.get(n.pageIndex),`Trying to insert a CustomOverlayItem at pageIndex ${n.pageIndex}. But such a page does not exist.`),e.withMutations((e=>{e.updateIn(["pages",n.pageIndex,"customOverlayItemIds"],(e=>e.add(n.id))).setIn(["customOverlayItems",n.id],n)}))},[K.G8_]:(e,t)=>{const n=e.customOverlayItems.get(t.id);return(0,me.k)(n,"CustomOverlayItem not found"),e.withMutations((e=>{e.deleteIn(["pages",n.pageIndex,"customOverlayItemIds",n.id]).deleteIn(["customOverlayItems",n.id])}))}};function ji(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ni,t=arguments.length>1?arguments[1]:void 0;const n=Oi[t.type];return n?n(e,t):e}const Li=new k.ZM,Bi={[K.lRe]:(e,t)=>e.set("digitalSignatures",t.digitalSignatures)};function Ki(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Li,t=arguments.length>1?arguments[1]:void 0;const n=Bi[t.type];return n?n(e,t):e}const Vi=new Y.Z,Hi={[K.Oh4]:(e,t)=>{let{outline:n}=t;return e.withMutations((e=>{e.setIn(["documentOutlineState","elements"],n),e.setIn(["documentOutlineState","expanded"],Ui((0,a.D5)(),n,"0"))}))},[K.Whn]:(e,t)=>{let{level:n}=t;return e.updateIn(["documentOutlineState","expanded",n],(e=>!e))}};function $i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vi,t=arguments.length>1?arguments[1]:void 0;const n=Hi[t.type];return n?n(e,t):e}function Ui(e,t,n){return t.reduce(((e,t,r)=>{if(0===t.size)return e;const o=`${n}-${r}`;return Ui(e.set(o,t.isExpanded),t.children,o)}),e)}var Zi=n(21683),qi=n(23248),Gi=n(84293),Wi=n(81777);const Yi=new k.ZM,Xi={[K.wtk]:e=>{const{viewportState:t}=e,n=(0,Zi.dF)(t,t.currentPageIndex),r=(0,Zi.kd)(t),o=n>=r-1?r-1:n+1,i=(0,Zi.P1)(t,o)[0];return(0,l.kG)("number"==typeof i,"Can not find the next pageIndex."),e.withMutations((t=>{t.set("viewportState",(0,qi.eb)(e.viewportState,i)),t.set("hoverAnnotationIds",(0,a.l4)())}))},[K.mE7]:e=>{const{viewportState:t}=e,n=(0,Zi.dF)(t,t.currentPageIndex),r=n<=0?0:n-1,o=(0,Zi.P1)(t,r)[0];return(0,l.kG)("number"==typeof o,"Can not find the next pageIndex."),e.withMutations((n=>{n.set("viewportState",(0,qi.eb)(e.viewportState,o)),o!==t.currentPageIndex&&n.set("hoverAnnotationIds",(0,a.l4)())}))},[K.RxB]:(e,t)=>{const{pageIndex:n}=t;return(0,l.kG)(n>=0&&n<e.totalPages,"pageIndex out of bounds"),e.withMutations((t=>{t.set("viewportState",(0,qi.eb)(e.viewportState,n)),n!==e.viewportState.currentPageIndex&&t.set("hoverAnnotationIds",(0,a.l4)())}))},[K.mLh]:(e,t)=>{const{scrollPosition:n,lastScrollUsingKeyboard:r=!1}=t;return e.set("viewportState",(0,qi.hu)(e.viewportState,n).set("lastScrollUsingKeyboard",r))},[K.g4f]:(e,t)=>{let{pageIndex:n,rect:r}=t;return e.set("viewportState",(0,qi.kN)(e.viewportState,n,r))},[K.Lyo]:(e,t)=>{let{pageIndex:n,rect:r}=t;return e.set("viewportState",(0,qi.vP)(e.viewportState,n,r))},[K.xYE]:(e,t)=>{let{viewportRect:n,isTriggeredByOrientationChange:r}=t;const o=k.UL.fromClientRect(e.rootElement?.getBoundingClientRect()),i=(0,Z.a$)(e.viewportState,n,r,e.scrollbarOffset);return e.withMutations((e=>{e.set("containerRect",o),e.set("viewportState",i)}))},[K.syg]:(e,t)=>{let n=(0,Gi.cq)(e.viewportState,t.zoomLevel);return t.scrollPosition&&(n=n.set("scrollPosition",t.scrollPosition)),e.set("viewportState",n)},[K.u9b]:(e,t)=>{const n=e.viewportState.set("zoomStep",t.zoomStep);return e.set("viewportState",n)},[K.ZGb]:(e,t)=>e.set("viewportState",t.viewportState),[K.UFs]:e=>e.set("viewportState",(0,Gi.cq)(e.viewportState,e.viewportState.zoomLevel*e.viewportState.zoomStep)),[K.RCc]:e=>e.set("viewportState",(0,Gi.cq)(e.viewportState,e.viewportState.zoomLevel/e.viewportState.zoomStep)),[K.MfE]:e=>e.set("viewportState",(0,Gi.cq)(e.viewportState,Wi.c.AUTO)),[K.BWS]:e=>e.set("viewportState",(0,Gi.cq)(e.viewportState,Wi.c.FIT_TO_VIEWPORT)),[K.QU3]:e=>e.set("viewportState",(0,Gi.cq)(e.viewportState,Wi.c.FIT_TO_WIDTH)),[K.lD1]:(e,t)=>{let{degCW:n}=t;return e.update("viewportState",(e=>(0,Fe.U1)(e,n)))},[K.kRo]:e=>e.set("interactionMode",j.A.PAN),[K.UFK]:e=>e.set("interactionMode",null),[K.D1d]:(e,t)=>{let{width:n}=t;return e.set("sidebarWidth",n)},[K.WsN]:(e,t)=>{let{shouldDisable:n}=t;return e.set("scrollDisabled",n)}};function Qi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yi,t=arguments.length>1?arguments[1]:void 0;const n=Xi[t.type];return n?n(e,t):e}var Ji=n(62083),ea=n(2464),ta=n(65160),na=n(13422),ra=n(85944);function oa(e){return(0,l.kG)(6===e.length,"Tried to deserialize matrix that does not have 6 entries"),new E.sl({a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]})}var ia=n(98492),aa=n(26564),sa=n.n(aa),la=n(80567);const ca=new k.ZM,ua={[K.dCo]:(e,t)=>{const n=e.pages.map((e=>e.pageKey)),r=(0,a.aV)(t.payload).map((t=>{const r=new k.$u({width:t.width,height:t.height}),o=n.get(t.pageIndex)||(0,zi.C)(),i=e.pages.get(t.pageIndex)?.annotationIds||(0,a.hU)();return new k.T3({...t,matrix:oa(t.matrix),reverseMatrix:oa(t.reverseMatrix),untransformedRect:(0,ia.k)(t.untransformedBBox),transformedRect:(0,ia.k)(t.transformedBBox),rawPdfBoxes:t.rawPdfBoxes,pageKey:o,pageSize:r,annotationIds:i})})),o=r.map((e=>e.pageSize));return e.withMutations((e=>{const t=e.viewportState.set("pageSizes",o);e.set("pages",r),e.set("viewportState",t),e.set("arePageSizesLoaded",!0)}))},[K.ME7]:(e,t)=>{const n=(0,a.aV)(t.payload.pages).map((e=>{const n=new k.$u({width:e.width,height:e.height}),r=t.pageKeys?.get(e.pageIndex)||(0,zi.C)();return new k.T3({...e,matrix:oa(e.matrix),reverseMatrix:oa(e.reverseMatrix),untransformedRect:(0,ia.k)(e.untransformedBBox),transformedRect:(0,ia.k)(e.transformedBBox),rawPdfBoxes:e.rawPdfBoxes,pageKey:r,pageSize:n})})),r=n.map((e=>e.pageSize));return e.withMutations((o=>{let i=o.viewportState.set("pageSizes",r);if(o.set("pages",n),o.set("totalPages",n.size),o.set("documentPermissions",new Ji.Z(We.Options.IGNORE_DOCUMENT_PERMISSIONS?void 0:t.payload.permissions)),i.currentPageIndex>=n.size&&(i=i.set("currentPageIndex",0)),i.zoomMode===Wi.c.CUSTOM){const e=(0,Gi.Yo)(i),t=(0,Gi.Sm)(i);(i.zoomLevel<e||i.zoomLevel>t)&&(i=i.set("zoomMode",Wi.c.AUTO))}if(i=i.zoomMode===Wi.c.CUSTOM?i.merge({zoomLevel:(0,Gi.X9)(i,i.zoomLevel)}):i.merge({zoomLevel:(0,Gi.X9)(i,i.zoomMode)}),i.scrollMode===ea.G.PER_SPREAD&&(i=(0,Z._U)(i.set("scrollMode",ea.G.CONTINUOUS),ea.G.PER_SPREAD)),i.scrollMode===ea.G.DISABLED&&(i=(0,Z._U)(i.set("scrollMode",ea.G.CONTINUOUS),ea.G.DISABLED)),i.currentPageIndex>0){if(0===i.viewportRect.width||0===i.viewportRect.height){let t=e.containerRect;e.showToolbar&&(t=t.set("top",ra.k3).set("height",t.height-ra.k3)),i=i.set("viewportRect",t)}i=(0,qi.eb)(i.set("currentPageIndex",0),i.currentPageIndex)}o.set("viewportState",i)}))},[K.z_j]:(e,t)=>{const n={},r=(0,a.D5)().withMutations((r=>{const o={};function i(t){t.textLines.forEach((t=>{if(!t.id)return;let r={};const i=(0,la.wn)((0,la.f3)(t.hints));i&&(r={fontFamily:i},n[t.id]=i),o[t.id]={measurement:new Gn.f(e.frameWindow?.document,(0,a.aV)([(0,ta.LD)((0,mn.HI)(e),t)]),r,sa().line,e.shadowRoot),textLine:t}})),t.contentBlocks.forEach((e=>{i(e)}))}t.contentBlocks.forEach((e=>{i(e)}));for(const e in o){const{measurement:t,textLine:n}=o[e],i=t.measure().get(0);(0,me.k)(i),r.set(parseInt(e),{scaleX:n.boundingBox.width/i.width,scaleY:n.boundingBox.height/i.height})}for(const e in o){const{measurement:t}=o[e];t.remove()}}));return e.setIn(["pages",t.pageIndex,"contentBlocks"],t.contentBlocks).setIn(["pages",t.pageIndex,"textLineScales"],r).setIn(["pages",t.pageIndex,"textElementFonts"],n)},[K.fnw]:(e,t)=>{let{backendPermissions:n}=t;return e.withMutations((e=>{n.readOnly&&e.set("readOnlyEnabled",J.J.VIA_BACKEND_PERMISSIONS),n.downloadingAllowed||(e.set("exportEnabled",!1),e.set("printingEnabled",!1)),e.set("backendPermissions",n)}))},[K.obk]:e=>e.withMutations((e=>{e.set("annotations",(0,a.D5)()),e.set("attachments",(0,a.D5)()),e.set("formFields",(0,a.D5)()),e.set("currentTextSelection",null),e.set("interactionMode",null),e.set("selectedAnnotationIds",(0,a.l4)()),e.set("selectedAnnotationShouldDrag",null),e.set("selectedAnnotationMode",null),e.set("activeAnnotationNote",null),e.set("interactionsDisabled",!1),e.set("annotationPresetIds",(0,a.D5)()),e.set("documentOutlineState",new k.S),e.set("comments",(0,a.D5)()),e.set("commentThreads",(0,a.D5)()),e.set("invalidAPStreams",(0,a.D5)()),e.set("searchState",new na.Z)})),[K.S0t]:(e,t)=>e.set("documentHandle",t.documentHandle).set("isDocumentHandleOutdated",!1),[K.YS$]:(e,t)=>e.set("isDocumentHandleOutdated",t.isDocumentHandleOutdated),[K.UX$]:(e,t)=>e.set("reuseState",t.state?new Y.w(t.state):null),[K.TG1]:(e,t)=>e.withMutations((e=>{t.pageIndexes.forEach((t=>{e.setIn(["pages",t,"pageKey"],(0,zi.C)())}))})),[K.bM3]:(e,t)=>e.withMutations((e=>{t.pageKeysForPages.forEach((t=>{e.setIn(["pages",t.pageIndex,"pageKey"],t.pageKey)}))})),[K.QYq]:(e,t)=>e.set("OCGLayers",t.OCGLayers),[K.kQ7]:(e,t)=>e.set("visibleOCGLayers",t.visibleLayerIds)};function da(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ca,t=arguments.length>1?arguments[1]:void 0;const n=ua[t.type];return n?n(e,t):e}const pa=new Y.Z,ha={[K.skc]:e=>e.set("isPrinting",!0),[K.snh]:e=>e.set("isPrinting",!1),[K._uU]:e=>e.set("isPrinting",!1),[K.qV6]:(e,t)=>{let{currentPage:n}=t;return e.set("printLoadingIndicatorProgress",n)}};function fa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pa,t=arguments.length>1?arguments[1]:void 0;const n=ha[t.type];return n?n(e,t):e}function ma(e,t){const{focusedResultIndex:n}=e.searchState,r=e.searchState.results.size;if(r<=0)return e;let o=n+t;o<0&&(o+=r);const i=Math.abs(o%r),a=e.searchState.results.get(i);(0,me.k)(a);const s=(0,qi.kN)(e.viewportState,a.pageIndex,k.UL.union(a?.rectsOnPage));return e.setIn(["searchState","focusedResultIndex"],i).set("viewportState",s)}const ga={[K.FH6]:(e,t)=>t.term.length>=e.searchState.minSearchQueryLength?e.setIn(["searchState","term"],t.term):e.setIn(["searchState","term"],t.term).setIn(["searchState","focusedResultIndex"],-1).setIn(["searchState","results"],(0,a.aV)()).setIn(["searchState","isLoading"],!1),[K.$Jy]:e=>ma(e,1),[K.gIV]:e=>ma(e,-1),[K.$hO]:e=>e.set("interactionMode",j.A.SEARCH).setIn(["searchState","isFocused"],!0),[K._AY]:e=>e.set("interactionMode",null).mergeIn(["searchState"],{isFocused:!1,term:"",results:(0,a.aV)(),focusedResultIndex:-1}),[K.Ifu]:e=>e.setIn(["searchState","isFocused"],!0),[K.nFn]:e=>e.setIn(["searchState","isFocused"],!1),[K.F6q]:(e,t)=>{let{isLoading:n}=t;return e.setIn(["searchState","isLoading"],n)},[K.qZT]:(e,t)=>{let{results:n}=t,r=e.viewportState,o=-1;if(-1!==e.searchState.focusedResultIndex){const t=e.searchState.results.get(e.searchState.focusedResultIndex);(0,me.k)(t);const{pageIndex:r}=t,i=t.rectsOnPage.first();(0,me.k)(i);const{top:a,left:s}=i;o=n.findIndex((e=>{const t=e.rectsOnPage.first();return(0,me.k)(t),e.pageIndex===r&&t.top===a&&t.left===s}))}if(-1===o&&n.size>0){o=n.findIndex((t=>t.pageIndex>=e.viewportState.currentPageIndex)),-1===o&&(o=0);const t=n.get(o);(0,me.k)(t),r=(0,qi.kN)(e.viewportState,t.pageIndex,k.UL.union(t.rectsOnPage))}return e.setIn(["searchState","results"],n).setIn(["searchState","focusedResultIndex"],o).set("viewportState",r)},[K.p1u]:(e,t)=>{let{state:n}=t;return e.set("searchState",n)},[K.esN]:(e,t)=>{let{provider:n}=t;return e.set("searchProvider",n)}};function va(e,t){const n=ga[t.type];return n?n(e,t):e}const ya=new k.ZM,ba={[K.f3N]:(e,t)=>{const n=t.textRange.startAndEndIds();if(!n)return e;const{startTextLineId:r,endTextLineId:o,startNestedContentBlockId:i,endNestedContentBlockId:s,startPageIndex:l,endPageIndex:c}=n,u=new k.Bs({textRange:t.textRange,startTextLineId:r,endTextLineId:o,startNestedContentBlockId:i,endNestedContentBlockId:s,startPageIndex:l,endPageIndex:c}),d=e.withMutations((t=>{t.set("currentTextSelection",u),e.interactionMode!==j.A.TEXT_HIGHLIGHTER&&e.interactionMode!==j.A.REDACT_TEXT_HIGHLIGHTER&&t.set("selectedAnnotationIds",(0,a.l4)())}));return(0,mn.j$)(k.On,e)?d:d.withMutations((e=>{e.set("inlineTextMarkupToolbar",t.inlineTextMarkupToolbar)}))},[K.MOe]:e=>e.delete("currentTextSelection"),[K.a33]:e=>e.withMutations((t=>{t.delete("selectedAnnotationMode"),t.set("currentItemPreset",null),e.interactionMode===j.A.TEXT_HIGHLIGHTER&&(0,O.Xu)(t),t.set("selectedAnnotationIds",(0,a.l4)()),t.set("widgetAnnotationToFocus",null),t.set("interactionMode",e.interactionMode===j.A.PAN||e.interactionMode===j.A.FORM_CREATOR?e.interactionMode:null),t.set("selectedTextOnEdit",!1),t.set("activeAnnotationNote",null),e.interactionMode===j.A.DISTANCE&&e.isCalibratingScale&&t.set("isCalibratingScale",!1)})),[K._Yi]:(e,t)=>{let n=null;const r=t.annotations.filter((t=>{const r=e.annotations.get(t);return n=e.annotationPresetIds.get(t)||null,r&&(r instanceof k.Qi||r.isCommentThreadRoot||!(0,mn.lV)(r,e))}));return 0===r.size?e:e.withMutations((o=>{o.set("selectedAnnotationIds",r),o.set("currentItemPreset",n),o.set("selectedAnnotationMode",t.mode),o.set("selectedAnnotationShouldDrag",t.selectedAnnotationShouldDrag),o.delete("currentTextSelection"),fe.Ni&&1===r.size&&e.interactionMode===j.A.MULTI_ANNOTATIONS_SELECTION&&o.set("interactionMode",null)}))},[K.c3G]:e=>e.set("selectedAnnotationShouldDrag",null),[K.RvB]:e=>e.set("selectedTextOnEdit",!0),[K.qh0]:(e,t)=>((0,l.kG)(e.annotations.has(t.id),"Annotation not found"),e.readOnlyEnabled?e.update("focusedAnnotationIds",(e=>e.add(t.id))):e),[K.rm]:(e,t)=>((0,l.kG)(e.annotations.has(t.id),"Annotation not found"),e.readOnlyEnabled?e.update("focusedAnnotationIds",(e=>e.delete(t.id))):e),[K.TPT]:(e,t)=>{(0,l.kG)(e.annotations.has(t.id),"Annotation not found");const n=e.annotations.get(t.id);return e.readOnlyEnabled===J.J.NO||n instanceof k.Qi?e.updateIn(["hoverAnnotationIds"],(e=>e.has(t.id)?e:e.add(t.id))):e},[K.iyZ]:(e,t)=>{(0,l.kG)(e.annotations.has(t.id),"Annotation not found");const n=e.annotations.get(t.id);return e.readOnlyEnabled===J.J.NO||n instanceof k.Qi?e.updateIn(["hoverAnnotationIds"],(e=>e.has(t.id)?e.delete(t.id):e)):e},[K.yyM]:(e,t)=>{const n=t.annotationNote;return e.set("hoverAnnotationNote",n)},[K.vSH]:(e,t)=>e.set("activeAnnotationNote",t.annotationNote),[K._fK]:(e,t)=>e.withMutations((n=>{if(t.newSelectedAnnotationsIds.size>0)n.set("selectedAnnotationIds",t.newSelectedAnnotationsIds);else{const r=1===e.selectedAnnotationIds.size&&e.annotations.get(e.selectedAnnotationIds.first());if(!r||null!=r.pageIndex){const r=new t.annotationClass((0,O.lx)(e));n.setIn(["annotations",r.id],r),n.set("selectedAnnotationIds",(0,a.l4)([r.id])),null!=e.currentItemPreset&&n.setIn(["annotationPresetIds",r.id],e.currentItemPreset)}}})),[K.L2A]:(e,t)=>e.set("inlineTextSelectionToolbarItems",t.inlineTextSelectionToolbarItemsCallback)};function wa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ya,t=arguments.length>1?arguments[1]:void 0;const n=ba[t.type];return n?n(e,t):e}const xa=new k.ZM,_a={[K.mGH]:(e,t)=>{let{signature:n}=t;return e.withMutations((e=>{(0,O.ud)(e,n)}))},[K.W0l]:(e,t)=>{let{annotation:n}=t;return e.signatureState.formFieldName&&(0,l.kG)(!e.signatureState.formFieldsNotSavingSignatures.includes(e.signatureState.formFieldName),`Cannot save signature for the form field \`${e.signatureState.formFieldName}\` because this field is in formFieldsNotSavingSignatures`),e.updateIn(["signatureState","storedSignatures"],(e=>e.push(n)))},[K.Kw7]:(e,t)=>{let{annotations:n}=t;return e.setIn(["signatureState","storedSignatures"],n)},[K.Kc8]:(e,t)=>{let{annotation:n}=t;return e.updateIn(["signatureState","storedSignatures"],(e=>e.filter((e=>!e.equals(n)))))}};function Sa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xa,t=arguments.length>1?arguments[1]:void 0;const n=_a[t.type];return n?n(e,t):e}const Ca=new k.ZM,Ea={[K.aWu]:(e,t)=>e.set("toolbarItems",t.toolbarItems),[K.T3g]:(e,t)=>e.set("annotationToolbarItems",t.annotationToolbarItemsCallback),[K.A8G]:(e,t)=>e.set("annotationToolbarHeight",t.height)};function ka(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ca,t=arguments.length>1?arguments[1]:void 0;const n=Ea[t.type];return n?n(e,t):e}const za=new k.ZM,Pa={[K.iJ2]:(e,t)=>{let{formJSON:n}=t;(0,l.kG)("pspdfkit/form"==n.type,"Invalid type for form JSON."),(0,l.kG)(1==n.v,"Invalid version for form JSON."),(0,l.kG)(n.fields instanceof Array,"Invalid type for `fields` in form JSON.");const r=(0,Me.U_)(n.fields),o=(0,Me.hT)(n.annotations);return e.withMutations((e=>{e.set("formFields",r),o.forEach((t=>{const{id:n}=t;e.setIn(["annotations",n],t),(0,l.kG)(e.pages.has(t.pageIndex),"Invalid `pageIndex` of widget annotation: "+t.pageIndex),e.updateIn(["pages",t.pageIndex,"annotationIds"],(e=>e.add(n)))}))}))},[K.zGM]:(e,t)=>e.withMutations((e=>{t.formFields.forEach((t=>{e.setIn(["formFields",t.name],t)}))})),[K.Wyx]:(e,t)=>e.withMutations((n=>{t.formFields.forEach((t=>{const r=e.formFields.valueSeq().find((e=>e.id===t.id));(0,l.kG)(r,"Invalid form field ID: "+t.id);const o=r.name!==t.name;if(t instanceof k.XQ){const n=e.formFields.find((e=>e.name===t.name)),r=n?.annotationIds;if(r&&n.id!==t.id){let e=r,o=n.options;[...t.annotationIds].forEach(((n,r)=>{e.includes(n)||(e=e.push(n),o=o.push(t.options.get(r)))})),t=t.set("annotationIds",e).set("options",o)}}if(o){t.annotationIds.forEach((e=>{n.annotations.get(e)&&n.setIn(["annotations",e,"formFieldName"],t.name)})),n.deleteIn(["formFields",r.name])}n.setIn(["formFields",t.name],t),(0,Me.r_)(r,e,n)}))})),[K.fDl]:(e,t)=>{const n=e.formFields.find((e=>e.id===t.formField.id));return e.withMutations((r=>{r.deleteIn(["formFields",n?.name]),r.setIn(["formFields",t.formField.name],t.formField),(0,Me.r_)(e.formFields.get(t.formField.name),e,r)}))},[K.D_w]:(e,t)=>e.withMutations((e=>{t.formFieldNames.forEach((t=>{e.formFields.get(t)&&e.deleteIn(["formFields",t])}))})),[K.u_c]:(e,t)=>e.withMutations((n=>{t.formFieldsIds.forEach((t=>{const r=(0,Me.CL)(e,t);r&&n.deleteIn(["formFields",r.name])}))})),[K.Ui_]:(e,t)=>e.withMutations((n=>{(0,Me.AM)({state:e,mutableState:n,formFieldValues:t.formFieldValues,areFormFieldValuesNew:!0})})),[K.m3$]:(e,t)=>e.withMutations((n=>{(0,Me.AM)({state:e,mutableState:n,formFieldValues:t.formFieldValues,areFormFieldValuesNew:!1})})),[K.VK7]:(e,t)=>{let{formattedFormFieldValues:n}=t;return e.set("formattedFormFieldValues",e.formattedFormFieldValues.merge(n))},[K.yET]:(e,t)=>{let{editingFormFieldValues:n}=t;return e.set("editingFormFieldValues",e.editingFormFieldValues.merge(n))},[K.u7V]:(e,t)=>e.withMutations((n=>{t.formFieldValuesIds.forEach((t=>{const r=t.split("/")[1],o=e.formFields.get(r);o&&(o instanceof k.$o?n.setIn(["formFields",r,"value"],""):o instanceof k.XQ?n.setIn(["formFields",r,"value"],null):o instanceof k.Dz||o instanceof k.rF?n.setIn(["formFields",r,"values"],(0,a.aV)()):o instanceof k.R0||o instanceof k.Yo||(0,l.kG)(!1,`DELETE_FORM_FIELD_VALUE not implemented for ${r}`))}))})),[K.TYu]:(e,t)=>{let{onWidgetCreationStartCallback:n}=t;return e.set("onWidgetAnnotationCreationStart",n)},[K.vgx]:(e,t)=>{let{annotationId:n}=t;return e.set("formDesignerUnsavedWidgetAnnotation",n)},[K.zyH]:(e,t)=>{let{annotation:n}=t;return e.set("buttonToImportIconFor",n)}};function Da(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:za,t=arguments.length>1?arguments[1]:void 0;const n=Pa[t.type];return n?n(e,t):e}var Aa=n(35727);const Ta=new k.ZM,Ia={[K.ckI]:(e,t)=>e.withMutations((e=>{t.comments.forEach((t=>{if((0,me.k)(t.id&&!e.comments.has(t.id),`Comment with ID ${t.id} already exists.`),t.pageIndex<0||t.pageIndex>=e.pages.size)(0,l.ZK)(`Tried to add a comment with ID ${t.id} with an out of bounds page index (${t.pageIndex}). This comment was skipped.`);else if(e.setIn(["comments",t.id],t),(0,me.k)(t.rootId&&t.id),e.commentThreads.has(t.rootId)){const n=e.commentThreads.get(t.rootId);(0,me.k)(n),e.setIn(["commentThreads",t.rootId],n.add(t.id).sortBy((t=>{const n=e.comments.get(t);(0,me.k)(n);const r=n.createdAt.getTime();return[(0,Aa.kT)(n)?1:0,r]}),ye.b))}else e.setIn(["commentThreads",t.rootId],(0,a.hU)([t.id]))}))})),[K.hxO]:(e,t)=>{const n=t.rootId,r=e.annotations.get(n),o=new Date;let i=new k.sv({id:(0,zi.C)(),rootId:n,creatorName:e.annotationCreatorName||null,createdAt:o,updatedAt:o,text:{format:"plain",value:""}});if(e.onCommentCreationStart){const t=e.onCommentCreationStart(i);(0,me.k)(t instanceof k.sv,"`onCommentCreationStart` should return an instance of `Comment`"),i=t}(0,me.k)(e.backend),e.backend.isCollaborationPermissionsEnabled()&&e.group!==e.backend.getDefaultGroup()&&(i=i.set("group",e.group));return!(0,mn.Ez)(i,e)&&r&&(0,lr.mi)(r,e)?e.withMutations((e=>{e.setIn(["comments",i.id],i),e.commentThreads.has(n)?e.updateIn(["commentThreads",n],(e=>e.add(i.id))):e.setIn(["commentThreads",n],(0,a.hU)([i.id]))})):e.set("interactionMode",null)},[K.FdD]:(e,t)=>e.withMutations((e=>{t.comments.forEach((t=>{(0,me.k)(t.id&&e.comments.has(t.id),`Comment with missing ID ${t.id} not found and thus cannot be updated.`),e.setIn(["comments",t.id],t)}))})),[K.kg]:(e,t)=>e.withMutations((e=>{t.ids.forEach((t=>{(0,me.k)(e.comments.has(t),`Comment with ID ${t} not found, so it cannot be deleted.`);const n=e.comments.get(t);(0,me.k)(null!=n,`Attempted to delete non-existent comment with ID ${t}`),(0,me.k)(n.rootId);const r=e.commentThreads.get(n.rootId);if((0,me.k)(null!=r,`Comment with ID ${t} has no corresponding thread with matching root ID ${n.rootId}`),(0,me.k)(n.id&&r.has(n.id),`Comment with ID ${n.id} is missing from its thread.`),1===r.size)e.removeIn(["commentThreads",n.rootId]);else{const t=r.remove(n.id);if(e.setIn(["commentThreads",n.rootId],t),1===t.size){const r=e.comments.get(t.first());(0,me.k)(null!=r),(0,Aa.kT)(r)&&(e.removeIn(["commentThreads",n.rootId]),e.removeIn(["comments",r.id]))}}e.removeIn(["comments",t])}))})),[K.NB4]:e=>e.setIn(["viewportState","commentMode"],(0,Aa.dq)(e)),[K.YHT]:(e,t)=>e.set("mentionableUsers",t.users),[K.ZLr]:(e,t)=>e.set("maxMentionSuggestions",t.maxSuggestions),[K.mfU]:(e,t)=>{let{onCommentCreationStartCallback:n}=t;return e.set("onCommentCreationStart",n)}};function Ma(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ta,t=arguments.length>1?arguments[1]:void 0;const n=Ia[t.type];return n?n(e,t):e}const Ra=new k.ZM,Fa={[K.Kpf]:(e,t)=>e.set("documentEditorFooterItems",t.documentEditorFooterItems),[K.wPI]:(e,t)=>e.set("documentEditorToolbarItems",t.documentEditorToolbarItems)};function Na(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ra,t=arguments.length>1?arguments[1]:void 0;const n=Fa[t.type];return n?n(e,t):e}const Oa=new Y.Z,ja={[K.bVL]:(e,t)=>e.withMutations((n=>{n.set("redoActions",e.redoActions.push(t.nextRedoAction));const r=t.oldId;if(r){n.update("redoActions",(e=>e.map((e=>e.payload.id===t.oldId?{...e,payload:{...e.payload,id:t.nextRedoAction.payload.id}}:e))));const o=t.nextRedoAction.payload.pageIndex,i="number"==typeof o&&e.invalidAPStreams.has(o)?e.invalidAPStreams.get(o):null;i&&i.has(r)&&n.setIn(["invalidAPStreams",o],i.add(t.nextRedoAction.payload.id).delete(r))}n.set("undoActions",e.undoActions.pop())})),[K.iwn]:(e,t)=>e.withMutations((n=>{n.set("undoActions",e.undoActions.push(t.nextUndoAction));const r=t.oldId;if(r){n.update("undoActions",(e=>e.map((e=>e.payload.id===t.oldId?{...e,payload:{...e.payload,id:t.nextUndoAction.payload.id}}:e))));const o=t.nextUndoAction.payload.pageIndex,i="number"==typeof o&&e.invalidAPStreams.has(o)?e.invalidAPStreams.get(o):null;i&&i.has(r)&&n.setIn(["invalidAPStreams",o],i.add(t.nextUndoAction.payload.id).delete(r))}n.set("redoActions",e.redoActions.pop())})),[K.faS]:(e,t)=>e.set("historyChangeContext",t.historyChangeContext),[K.tC1]:(e,t)=>e.set("historyIdsMap",e.historyIdsMap.set(t.newId,t.oldId)),[K.x64]:(e,t)=>{let{annotationId:n}=t;const r=e.historyIdsMap.findKey((e=>e===n));return e.withMutations((t=>{t.set("undoActions",e.undoActions.filter((e=>e.payload.id!==r))),t.set("redoActions",e.redoActions.filter((e=>e.payload.id!==r)))}))},[K._Qf]:e=>e.withMutations((t=>{t.set("undoActions",e.undoActions.clear()),t.set("redoActions",e.redoActions.clear()),t.set("historyIdsMap",e.historyIdsMap.clear())})),[K._33]:e=>e.set("isHistoryEnabled",!0),[K.wG7]:e=>e.set("isHistoryEnabled",!1)};function La(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oa,t=arguments.length>1?arguments[1]:void 0;const n=ja[t.type];return n?n(e,t):e}var Ba=n(96988);const Ka=e=>new Ba.Sg(e),Va=e=>new Ba.UL({offset:Ka(e.offset),size:Ka(e.size)}),Ha=e=>new Ba.W4(e),$a=e=>{let t=a.l4.of();for(const n of e)t=t.add(Ha(n));return t},Ua=e=>new Ba.I5({family:e.family,variants:$a(e.variants)}),Za=e=>new Ba.yO({family:e.family,variant:Ha(e.variant)}),qa=e=>new Ba.IA({faceRef:Za(e.faceRef),size:e.size}),Ga=e=>new Ba.mZ(e),Wa=e=>new Ba.vz({fontRef:qa(e.fontRef),color:e.color,effects:Ga(e.effects)}),Ya=e=>new Ba.JR(e),Xa=e=>new Ba.yJ({family:e.family,faceMismatch:e.faceMismatch?Ya(e.faceMismatch):null,bold:e.bold,italic:e.italic,xScale:e.xScale,skew:e.skew,color:e.color,size:e.size}),Qa=e=>new Ba.a2(e),Ja=e=>new Ba.DN(e),es=e=>new Ba.FQ({cluster:e.cluster,offset:Ka(e.offset),advance:Ka(e.advance),text:e.text,control:e.control,lastOfSegment:e.lastOfSegment,beginOfWord:e.beginOfWord,endOfWord:e.endOfWord}),ts=e=>new Ba.tW({offset:Ka(e.offset),lineSpacing:Qa(e.lineSpacing),elements:a.aV.of(...e.elements.map(es))});var ns=n(36904);const rs=new Y.Z,os=(e,t)=>{let n=!1;const r=Va(t.contentRect);(0,a.is)(r,e.contentRect)||(e=e.set("contentRect",r)),(0,a.is)(t.version,e.version)||(e=e.set("version",t.version),n=!0);const o=(i=t.cursor,new Ba.CF({offset:Ka(i.offset),lineSpacing:Qa(i.lineSpacing)}));var i;(0,a.is)(o,e.cursor)||(e=e.set("cursor",o),n=!0);const s=t.selection?(e=>new Ba.Y1(e))(t.selection):null;(0,a.is)(s,e.selection)||(e=e.set("selection",s),n=!0);const l=(e=>new Ba.Ts({lines:a.aV.of(...e.lines.map(ts))}))(t.layoutView);(0,a.is)(l,e.layoutView)||(e=e.set("layoutView",l));const c=(e=>new Ba.tk({selectionStyleInfo:e.selectionStyleInfo?Xa(e.selectionStyleInfo):null,modificationsCharacterStyle:e.modificationsCharacterStyle?Wa(e.modificationsCharacterStyle):null,modificationsCharacterStyleFaceMismatch:e.modificationsCharacterStyleFaceMismatch?Ya(e.modificationsCharacterStyleFaceMismatch):null}))(t.detectedStyle);if((0,a.is)(c,e.detectedStyle)||(e=e.set("detectedStyle",c)),c.modificationsCharacterStyle){let t=c.modificationsCharacterStyle;t=t.setIn(["effects"],new Ba.mZ({})),n&&!(0,a.is)(t,e.modificationsCharacterStyle)&&(e=e.set("modificationsCharacterStyle",t))}return e},is={[K.MGL]:(e,t)=>e.withMutations((e=>{const n=e.contentEditorSession.sessionId+1;e.set("contentEditorSession",new Ba.aN({sessionId:n,active:!0,contentEditor:t.contentEditor})).set("interactionMode",j.A.CONTENT_EDITOR)})),[K.Qm9]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","active"],!1).setIn(["contentEditorSession","contentEditor"],null).set("interactionMode",null)})),[K.l$y]:(e,t)=>e.withMutations((e=>{(0,me.k)(!e.contentEditorSession.pageStates.has(t.pageIndex)),e.setIn(["contentEditorSession","pageStates",t.pageIndex],new Ba.nv({loading:!0}))})),[K.kD6]:(e,t)=>e.withMutations((e=>{(0,me.k)(e.contentEditorSession.pageStates.get(t.pageIndex)?.loading);let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,me.k)(n);const r=t.initialTextBlocks.map((e=>{const t=e.textBlock,n=Ka(t.anchor),r=Ja(t.globalEffects),o=new Ba.Ar({maxWidth:t.maxWidth,alignment:t.alignment,lineSpacingFactor:t.lineSpacingFactor}),i=new Ba.Q7({id:e.id,initialAnchor:n,initialGlobalEffects:r,initialLayout:o,anchor:n,globalEffects:r,layout:o,modificationsCharacterStyle:Wa(t.modificationsCharacterStyle)});return os(i,e.updateInfo)})),o=a.aV.of(...r);n=n.set("textBlocks",o),n=n.set("initialTextBlocks",o),n=n.set("loading",!1),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[K.joZ]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Ba._h({pageIndex:t.pageIndex,textBlockId:t.textBlockId,state:Ba.FP.Active}))})),[K.fQw]:e=>e.withMutations((e=>{const t=e.contentEditorSession.textBlockInteractionState;if(t.state===Ba.FP.Active){let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,me.k)(n),n=n.set("textBlocks",n.textBlocks.filter((e=>!(e.justCreated&&0===e.contentRect.size.x))).map((e=>e.id===t.textBlockId&&e.justCreated?e=e.set("justCreated",!1).set("layout",e.layout.set("maxWidth",Math.max(e.contentRect.size.x,10))):e))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)}e.setIn(["contentEditorSession","textBlockInteractionState"],e.contentEditorSession.textBlockInteractionState.state===Ba.FP.Active?e.contentEditorSession.textBlockInteractionState.set("state",Ba.FP.Selected):new Ba._h)})),[K.VOt]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,me.k)(n),n=((e,t,n)=>{const r=e.textBlocks.map((e=>e.id!=t?e:os(e,n)));return e.set("textBlocks",r)})(n,t.textBlockId,t.updateInfo),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[K.U7k]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","availableFaces","loading"],!0)})),[K.ZgW]:(e,t)=>e.withMutations((e=>{const n=(r=t.faceList,a.aV.of(...r.map(Ua)));var r;e.setIn(["contentEditorSession","availableFaces"],new Ba.t9({faceList:n,loading:!1}))})),[K.Y4]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","saving"],t.isSaving)})),[K.HYy]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","dirty"],!0)})),[K.bOH]:(e,t)=>e.set("showExitContentEditorDialog",t.isVisible),[K.Han]:(e,t)=>e.set("contentEditorSession",e.contentEditorSession.set("fontMismatchTooltip",new Ba.xb({fontFace:t.fontFace,rect:t.tooltipRect}))),[K.WmI]:e=>e.set("contentEditorSession",e.contentEditorSession.set("fontMismatchTooltip",null)),[K.nI6]:(e,t)=>e.contentEditorSession.fontMismatchTooltip?e.setIn(["contentEditorSession","fontMismatchTooltip","dismissAbortController"],t.abortController):e,[K.Ebp]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,me.k)(n),n=n.set("textBlocks",n.textBlocks.map((e=>{if(e.id!=t.textBlockId)return e;let n=e.modificationsCharacterStyle;return t.faceRef&&!(0,a.is)(t.faceRef,n.fontRef.faceRef)&&(n=n.setIn(["fontRef","faceRef"],t.faceRef)),t.size&&!(0,a.is)(t.size,n.fontRef.size)&&(n=n.setIn(["fontRef","size"],t.size)),t.color&&!(0,a.is)(t.color,n.color)&&(n=n.set("color",t.color)),e=e.set("modificationsCharacterStyle",n)}))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[K.ciU]:(e,t)=>e.withMutations((e=>{e.contentEditorSession.dirty||e.setIn(["contentEditorSession","dirty"],!0);let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,me.k)(n),n=n.set("textBlocks",n.textBlocks.map((e=>{if(e.id!=t.textBlockId)return e;const{fixpointValue:n,newWidth:r}=t,{layout:o,globalEffects:i,anchor:a}=e;(0,me.k)(o.maxWidth);const s=(0,ns.uB)(o.alignment,i,n,r-o.maxWidth);return e=(e=e.set("anchor",new Ba.Sg({x:a.x+s.x,y:a.y+s.y}))).setIn(["layout","maxWidth"],r)}))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[K.fLm]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,me.k)(n),e.contentEditorSession.dirty||e.setIn(["contentEditorSession","dirty"],!0),t.isKeyboardMove||e.contentEditorSession.textBlockInteractionState.state===Ba.FP.Moving||e.setIn(["contentEditorSession","textBlockInteractionState"],new Ba._h({state:Ba.FP.Moving,pageIndex:t.pageIndex,textBlockId:t.textBlockId})),n=n.set("textBlocks",n.textBlocks.map((e=>e.id!=t.textBlockId?e:e=e.set("anchor",new Ba.Sg({x:t.anchor.x,y:t.anchor.y}))))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[K.xhM]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Ba._h({pageIndex:t.pageIndex,textBlockId:t.textBlockId,state:Ba.FP.Selected}))})),[K.snK]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Ba._h);let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,me.k)(n),n=n.set("textBlocks",n.textBlocks.filter((e=>e.id!==t.textBlockId))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n),e.setIn(["contentEditorSession","mode"],Ba.wR.Edit)})),[K.teI]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","mode"],t.mode)})),[K.uo5]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);const r=e.pages.get(t.pageIndex)?.pageSize?.width;(0,me.k)(n),(0,me.k)(r);const{pageIndex:o,initialTextBlock:i}=t,a=i.textBlock,s=Ja(a.globalEffects),l=new Ba.Ar({maxWidth:r-t.anchor.x,alignment:a.alignment,lineSpacingFactor:a.lineSpacingFactor});let c=new Ba.Q7({id:i.id,initialAnchor:t.anchor,initialGlobalEffects:s,initialLayout:l,anchor:t.anchor,globalEffects:s,layout:l,justCreated:!0,modificationsCharacterStyle:Wa(a.modificationsCharacterStyle)});return c=os(c,i.updateInfo),n=n.set("textBlocks",n.textBlocks.push(c)),e.setIn(["contentEditorSession","pageStates",o],n).setIn(["contentEditorSession","mode"],Ba.wR.Edit).setIn(["contentEditorSession","textBlockInteractionState"],new Ba._h({pageIndex:o,textBlockId:i.id,state:Ba.FP.Active}))})),[K.iR6]:(e,t)=>e.set("promptContentEditorDocumentDownload",t.promptContentEditorDocumentDownload),[K.guy]:(e,t)=>e.set("promptContentEditorCannotSaveChanges",t.promptContentEditorCannotSaveChanges)};function as(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rs,t=arguments.length>1?arguments[1]:void 0;const n=is[t.type];return n?n(e,t):e}function ss(e,t){return[$,U.Z,Ti,Fi,ji,Ki,$i,Qi,da,fa,va,wa,Sa,ka,Da,Ma,Na,La,as].reduce(((e,n)=>n(e,t)),e)}function ls(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,D.xC)({reducer:ss,preloadedState:new Y.Z(e),middleware:e=>e({serializableCheck:!1,immutableCheck:!1})})}var cs=n(52741),us=n(11765),ds=n(95431),ps=n(44156);async function hs(e){let t,{backend:n,dispatch:r,getState:o,maxPasswordRetries:i,password:s,formFieldValuesJSON:c,customFonts:u,stylesheetPromise:d}=e;await d;try{let e=!1;const{features:d,signatureFeatureAvailability:p,hasPassword:h,minSearchQueryLength:f,allowedTileScales:m,creatorName:g,defaultGroup:v,evaluation:y}=await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=null,i=0;for(;!o;){try{o=await n(e)}catch(n){const o=i<t;if("INVALID_PASSWORD"!==n.message||!o)throw n;e=await r()}i++}if(!o)throw new l.p2("Exceeded the maximum amount of password retries.");return o}(s,i,(t=>n.load({password:t,progressCallback:(t,n)=>{e||r((0,cs.qZ)(t,n))},isPDFJavaScriptEnabled:We.Options.PDF_JAVASCRIPT})),(()=>(e=!0,new Promise((e=>r((0,cs.uT)(e))))))),{frameWindow:b}=o();let w=(0,a.l4)();if(u&&b){const e=await n.getAvailableFontFaces(u);for(const t of u){const n=e.find((e=>e.name===t.name))?.readableName||t.name;b.document.fonts.add(new FontFace((0,Zt.hm)(n),await t.data.arrayBuffer())),w=w.add(n)}w.size>0&&r((0,Pt.p2)(w))}await(0,ds.jX)(r,o,{attemptedUnlockViaModal:e,features:d,signatureFeatureAvailability:p,hasPassword:h,minSearchQueryLength:f,allowedTileScales:m,evaluation:y});const{annotations:x,isAPStreamRendered:_,formFields:S}=o();n.isUsingInstantProvider()&&r((0,Pt.Ie)()),n.isCollaborationPermissionsEnabled()&&r((0,Pt.YK)(v));const C=await n.runPDFFormattingScriptsFromWidgets(x,S,_);if(C.length){const{formFieldManager:e}=o();let n,i;null!==e&&await e.loadFormFields(),t=new Promise(((e,t)=>{n=e,i=t})),r((0,En.bt)({changes:C,resolve:n,reject:i}))}if("STANDALONE"===n.type&&We.Options.PDF_JAVASCRIPT&&c&&r((0,En.ul)((0,a.aV)(c.map(us.u9)))),"STANDALONE"===n.type){const e=await n.getOCGs(),t=await n.getOCGVisibilityState();r((0,ps.h1)(e)),r((0,ps.kQ)(t.visibleLayerIds))}r((0,cs.Bm)()),g&&r((0,Pt.X8)(g,!0))}catch(e){(0,l.vU)("An error occurred while initializing PSPDFKit for Web.\n\n    Please contact our customer support, if you're having troubles setting up PSPDFKit for Web or the PSPDFKit Document Engine: https://pspdfkit.com/guides/web/current/pspdfkit-for-web/troubleshooting/");const t=e instanceof l.p2?e:new l.p2(e);throw-1!==t.message.indexOf("File not in PDF format or corrupted")?r((0,cs.sr)(t.message)):r((0,cs.sr)()),t}return t}var fs=n(68944),ms=n(21753);function gs(e){try{e.querySelector(":focus-visible");const t=e.documentElement||e;return void(t&&t.setAttribute("data-focusvisible-supported","true"))}catch(e){}const t="data-focusvisible-polyfill";let n=!0,r=!1,o=null;const i={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function a(t){return!!(t&&t!==e&&"HTML"!==t.nodeName&&"BODY"!==t.nodeName&&"classList"in t&&"contains"in t.classList)}function s(e){e.hasAttribute(t)||e.setAttribute(t,!0)}function l(e){e.removeAttribute(t)}function c(){!0===n&&function(){const t=e.querySelectorAll("[data-focusvisible-polyfill]");for(let e=0;e<t.length;e+=1)l(t[e])}(),n=!1}function u(){e.addEventListener("mousemove",d),e.addEventListener("mousedown",d),e.addEventListener("mouseup",d),e.addEventListener("pointermove",d),e.addEventListener("pointerdown",d),e.addEventListener("pointerup",d),e.addEventListener("touchmove",d),e.addEventListener("touchstart",d),e.addEventListener("touchend",d)}function d(t){"HTML"!==t.target?.nodeName&&(n=!1,e.removeEventListener("mousemove",d),e.removeEventListener("mousedown",d),e.removeEventListener("mouseup",d),e.removeEventListener("pointermove",d),e.removeEventListener("pointerdown",d),e.removeEventListener("pointerup",d),e.removeEventListener("touchmove",d),e.removeEventListener("touchstart",d),e.removeEventListener("touchend",d))}e.addEventListener("keydown",(function(t){"Tab"!==t.key&&(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||(a(e.activeElement)&&s(e.activeElement),n=!0)}),!0),e.addEventListener("mousedown",c,!0),e.addEventListener("pointerdown",c,!0),e.addEventListener("touchstart",c,!0),e.addEventListener("focus",(function(e){const t=e.target;a(t)&&(n||function(e){const t=e.type,n=e.tagName,r=e.readOnly;return!("INPUT"!==n||!i[t]||r)||"TEXTAREA"===n&&!r||!!e.isContentEditable}(t))&&s(t)}),!0),e.addEventListener("blur",(function(e){const n=e.target;a(n)&&n?.hasAttribute(t)&&(r=!0,window.clearTimeout(o),o=window.setTimeout((function(){r=!1,window.clearTimeout(o)}),100),l(n))}),!0),e.addEventListener("visibilitychange",(function(){"hidden"===function(e){return e instanceof ShadowRoot?e.host.ownerDocument:e}(e).visibilityState&&(r&&(n=!0),u())}),!0),u()}var vs=n(87849),ys=n(15650),bs=n(70025),ws=n(26637),xs=n(18287),_s=n(5619);const Ss=[10,20,50,100,200,500];class Cs{constructor(e,t){(0,v.Z)(this,"_activeSearches",[]),this.getState=e,this.dispatch=t,this.term="",this._debouncedSearchRequest=(0,_s.Z)(this._searchRequest,Ae.XU)}cancelSearch(){this._cancelSearchRequests(),this.searchTerm(""),this.dispatch((0,xs.ct)())}searchTerm(e){if("pspdfkit:info"===e.toLowerCase()||"pspdf:info"===e.toLowerCase()){const e="PSPDFKit for Web 2024.5.1 (https://pspdfkit.com/web)";return(0,l.wp)(e),void this._cancelSearchRequests()}if("pspdfkit:debug"===e.toLowerCase()||"pspdf:debug"===e.toLowerCase())return this.dispatch((0,Pt.R)()),void this._cancelSearchRequests();const t=this.getState();if(e.length<t.searchState.minSearchQueryLength)return this.term="",void this._cancelSearchRequests();this.dispatch((0,xs.M0)(!0)),this.term=e,this._debouncedSearchRequest()}async _searchRequest(){if(""===this.term)return;this._cancelSearchRequests();const e=this.getState();(0,l.kG)(e.backend);let t=e.totalPages,n=0;t="STANDALONE"===e.backend.type?5:Ss[n];const r=e.viewportState.currentPageIndex;this._activeSearches.push(!0);const o=this._activeSearches.length-1;let i=(0,a.aV)();for(const a of[0,1]){let s,l;for(0===a?(s=r,l=e.totalPages-s):(s=0,l=r);l>0;){"SERVER"===e.backend.type&&(t=Ss[n],n+=n>=Ss.length-1?0:1);let r=t;l<1.5*t&&(r=l);const a=await e.backend.search(this.term,s,r,!1);if(i=i.concat(a),!this._activeSearches[o])return;this.dispatch((0,xs.Sc)(i)),l-=r,s+=r}}this.dispatch((0,xs.M0)(!1))}_cancelSearchRequests(e){for(const t of this._activeSearches.keys())null!=e&&t===e||(this._activeSearches[t]=!1)}}var Es=n(53416),ks=n(6197),zs=n(50898),Ps=n(65652),Ds=n(713),As=n(38705),Ts=n(38478),Is=n(23951),Ms=n(2282),Rs=n(26353),Fs=n(84013),Ns=n(67185),Os=n(92879);const js=(0,u.createContext)((()=>{throw new Error}));var Ls=n(40084),Bs=n(27122),Ks=n(65369),Vs=n(97586),Hs=n(13264),$s=n(35062),Us=n(59003),Zs=n.n(Us);const qs=function(e){const{formatMessage:t}=(0,he.YB)(),r=u.useCallback((e=>e.stopPropagation()),[]),o=p()("PSPDFKit-Sidebar-Annotations-Item",e.layoutClassName,Zs().layout,{[Zs().selected]:e.isSelectedItem,[Zs().layoutNavigationDisabled]:e.navigationDisabled,"PSPDFKit-Sidebar-Annotations-Item-Selected":e.isSelectedItem});return u.createElement("div",{ref:e.itemRef},u.createElement(He.Z,{onPointerUpCapture:r},u.createElement(u.Fragment,null,u.createElement("div",(0,oe.Z)({className:o,onClick:e.onPress},e.itemWrapperProps),e.icon,u.createElement("div",{className:Zs().layoutContent},e.children,(e.showFooter??!0)&&(e.author||e.formattedDate)&&u.createElement("footer",{className:p()(Zs().footer,"PSPDFKit-Sidebar-Annotations-Footer")},u.createElement("p",null,e.author&&u.createElement("span",null,e.author,e.formattedDate?", ":""),e.formattedDate&&u.createElement("time",{dateTime:e.date?.toISOString()},e.formattedDate)),e.additionalFooter)),e.isDeletable&&u.createElement("button",{className:p()(Zs().delete,"PSPDFKit-Sidebar-Annotations-Delete"),onClick:e.onDelete,"aria-label":t(be.Z.delete)},u.createElement(Pe.Z,{src:n(63949),role:"presentation"}))),u.createElement("div",{className:Zs().flagsContainer},e.isReadOnly&&u.createElement("div",{className:Zs().flagWrapper},u.createElement("div",{className:p()(Zs().lock,"PSPDFKit-Sidebar-Annotations-ReadOnly")},u.createElement(Pe.Z,{src:n(50308),role:"presentation"})),u.createElement("div",{className:Zs().label,"aria-label":t(be.Z.readOnlyAnnotationFlag)},t(be.Z.readOnlyAnnotationFlag))),e.isLocked&&u.createElement("div",{className:Zs().flagWrapper},u.createElement("span",{className:p()(Zs().lock,"PSPDFKit-Sidebar-Annotations-Locked")},u.createElement(Pe.Z,{src:n(50308),role:"presentation"})),u.createElement("span",{className:Zs().label,"aria-label":t(be.Z.locked)},t(be.Z.locked))),e.hasLockedContents&&u.createElement("div",{className:Zs().flagWrapper},u.createElement("span",{className:p()(Zs().lock,"PSPDFKit-Sidebar-Annotations-LockedContents")},u.createElement(Pe.Z,{src:n(50308),role:"presentation"})),u.createElement("span",{className:Zs().label,"aria-label":t(be.Z.lockedContents)},t(be.Z.lockedContents)))))))},Gs={highlighter:"highlighter",arrow:"arrow",callout:"textAnnotation","cloudy-rectangle":"cloudyRectangleAnnotation","dashed-rectangle":"dashedRectangleAnnotation","cloudy-ellipse":"cloudyEllipseAnnotation","dashed-ellipse":"dashedEllipseAnnotation","cloudy-polygon":"cloudyPolygonAnnotation","dashed-polygon":"dashedPolygonAnnotation","ellipse-area":"ellipseAreaMeasurement","rectangle-area":"rectangularAreaMeasurement","polygon-area":"polygonAreaMeasurement",distance:"distanceMeasurement",perimeter:"perimeterMeasurement"},Ws=e=>{const{formatMessage:t}=e.intl,n=Gs[e.type]||`${e.type}Annotation`;return u.createElement(u.Fragment,null,u.createElement("button",{autoFocus:e.autoFocus},t(be.Z[n])),","," ",t(be.Z.linesCount,{arg0:e.annotation.lines.size}))},Ys=e=>{const t=e.annotation.text.value||"";let n=(0,R.aF)("xhtml"===e.annotation.text.format?(0,Yt.KY)(t):t);const r=Gs[e.type]||"textAnnotation";return 0===n.length&&(n=e.intl.formatMessage(be.Z[r])),u.createElement("button",{autoFocus:e.autoFocus},n)},Xs=e=>u.createElement("button",{autoFocus:e.autoFocus},e.intl.formatMessage(be.Z[`${e.type}Annotation`])),Qs=e=>{const t=Gs[e.type]||`${e.type}Annotation`;return u.createElement("button",{autoFocus:e.autoFocus},e.intl.formatMessage(be.Z[t]))},Js=e=>u.createElement("button",{autoFocus:e.autoFocus},e.annotation.formFieldName),el={text:Ys,callout:Ys,ink:Ws,highlighter:Ws,note:e=>{let t=(0,R.aF)(e.annotation.text.value||"");return 0===t.length&&(t=e.intl.formatMessage(be.Z.noteAnnotation)),u.createElement("button",{autoFocus:e.autoFocus},t)},highlight:Xs,underline:Xs,strikeOut:Xs,squiggle:Xs,link:e=>u.createElement("button",{autoFocus:e.autoFocus},e.annotation.action?.uri||e.intl.formatMessage(be.Z.linkAnnotation)),rectangle:Qs,"cloudy-rectangle":Qs,"dashed-rectangle":Qs,ellipse:Qs,"cloudy-ellipse":Qs,"dashed-ellipse":Qs,polygon:Qs,"cloudy-polygon":Qs,"dashed-polygon":Qs,polyline:Qs,line:Qs,arrow:Qs,image:e=>{const{formatMessage:t}=e.intl,{fileName:n}=e.annotation,r=(0,R.aF)(e.annotation.description||"");return u.createElement(u.Fragment,null,u.createElement("button",{autoFocus:e.autoFocus},t(be.Z[`${e.type}Annotation`])),n&&!r&&u.createElement("div",{title:t(be.Z.filePath)+`: ${n}`},n),r&&u.createElement("div",null,r))},stamp:e=>{const{formatMessage:t}=e.intl,{fileName:n}=e.annotation,r=(0,R.aF)((0,_i.vW)({annotation:e.annotation,intl:e.intl})||"");return u.createElement(u.Fragment,null,u.createElement("button",{autoFocus:e.autoFocus},t(be.Z[`${e.type}Annotation`])),n&&!r&&u.createElement("div",{title:`${t(be.Z.stampText)}: ${t(be.Z[e.annotation.stampType])}`},`${t(be.Z.stampText)}: ${t(be.Z[e.annotation.stampType])}`),r&&u.createElement("div",null,r))},"form-text":Js,"form-checkbox":Js,"form-button":Js,"form-signature":Js,redaction:e=>u.createElement("button",{autoFocus:e.autoFocus},e.intl.formatMessage(be.Z[`${e.type}Annotation`])),media:e=>{const{formatMessage:t}=e.intl,{fileName:n}=e.annotation,r=(0,R.aF)(e.annotation.description||"");return u.createElement(u.Fragment,null,u.createElement("button",{autoFocus:e.autoFocus},t(be.Z[`${e.type}Annotation`])),n&&!r&&u.createElement("div",{title:t(be.Z.filePath)+`: ${n}`},n),r&&u.createElement("div",null,r))},perimeter:Qs,distance:Qs,"ellipse-area":Qs,"rectangle-area":Qs,"polygon-area":Qs};class tl extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"_itemRef",(e=>{e&&(this._el=e,this.props.onRenderItemCallback?.(e,this.props.annotation))})),(0,v.Z)(this,"onPress",(()=>{const{annotation:e,dispatch:t,onPress:n}=this.props;if(!this.props.navigationDisabled){if(t((0,Ls.kN)(e.pageIndex,e.boundingBox)),this.props.isAnnotationReadOnly(e)||!(this.props.annotation instanceof ie.x_)&&(this.props.annotation.readOnly||this.props.annotation.lockedContents||this.props.annotation.locked))return this.props.focusedAnnotationIds&&this.props.focusedAnnotationIds.size>0&&t((0,ve.Oc)(this.props.focusedAnnotationIds?.first())),setTimeout((()=>{t((0,ve.Q2)(e.id))}),100);e instanceof ie.x_?t((0,ve.fz)()):fe.Ni&&e instanceof ie.Qi?t((0,ve.VR)(e.id)):t((0,ve.Df)((0,a.l4)([e.id]),null)),n&&n()}})),(0,v.Z)(this,"onDelete",(()=>{const{annotation:e,dispatch:t,navigationDisabled:n}=this.props;n||t((0,Ls.kN)(e.pageIndex,e.boundingBox)),t((0,at.d8)((0,a.l4)([e.id])))})),(0,v.Z)(this,"preventDeselect",(e=>e.stopPropagation()))}componentDidUpdate(e){this._el&&e.onRenderItemCallback!==this.props.onRenderItemCallback&&this.props.onRenderItemCallback?.(this._el,this.props.annotation)}render(){const{annotation:e,intl:t,isSelectedAnnotation:n,annotationType:r,isAnnotationReadOnly:o,autoFocus:i,canDeleteAnnotationCP:a,dateTimeStringCallback:s}=this.props,{formatDate:l}=t,c=e.creatorName;let d=null;e.updatedAt.getTime()&&(s&&(d=s({dateTime:e.updatedAt,element:$s.Y.ANNOTATIONS_SIDEBAR,object:e})),null==d&&(d=l(e.updatedAt)));const h=el[r],f=p()("PSPDFKit-Sidebar-Annotations-Annotation",`PSPDFKit-Sidebar-Annotations-Annotation-${(0,Yt.in)(r)}`,{"PSPDFKit-Sidebar-Annotations-Annotation-Selected":n}),m=!(e instanceof ie.x_)&&!(e instanceof ie.Hu)&&!e.locked&&!o(e)&&!fe.Ni&&a(e),g=(0,we.Z)({type:r.toLowerCase(),className:p()(Zs().icon,"PSPDFKit-Sidebar-Annotations-Icon")});return u.createElement(qs,{itemRef:this._itemRef,layoutClassName:f,isSelectedItem:n,navigationDisabled:this.props.navigationDisabled,onPress:this.onPress,onDelete:this.onDelete,isDeletable:m,itemWrapperProps:{"data-annotation-id":e.id},icon:g,showFooter:!(e instanceof ie.x_),author:c,formattedDate:d,date:e.updatedAt,isReadOnly:e.readOnly,isLocked:e.locked,hasLockedContents:e.lockedContents},u.createElement(h,{intl:t,annotation:e,type:r,autoFocus:i}))}}const nl=(0,he.XN)(tl);var rl=n(1858),ol=n(67260);const il=(0,he.vU)({commentOptions:{id:"commentOptions",defaultMessage:"Comment Options",description:"Comment Options"},editContent:{id:"editContent",defaultMessage:"Edit Content",description:"Edit Content"},deleteCommentConfirmMessage:{id:"deleteCommentConfirmMessage",defaultMessage:"Are you sure you want to delete this comment?",description:'Message displayed in the "Delete Comment" confirm dialog'},deleteCommentConfirmAccessibilityLabel:{id:"deleteCommentConfirmAccessibilityLabel",defaultMessage:"Confirm comment deletion",description:'Accessibility label (title) for the "Delete Comment" confirm dialog'},deleteCommentConfirmAccessibilityDescription:{id:"deleteCommentConfirmAccessibilityDescription",defaultMessage:"Dialog allowing the user to confirm or cancel deleting the comment",description:'Accessibility description for the "Delete Comment" confirm dialog'},moreComments:{id:"moreComments",defaultMessage:"More comments",description:"More comments indicator in comments popover"}});const al=function(e){const t=u.useRef(),{rootComment:n,commentsCount:r,onRenderItemCallback:o,annotation:i,onPress:l,navigationDisabled:c,isCommentReadOnly:d,dateTimeStringCallback:h,isSelectedAnnotation:f,canDeleteCommentCP:m}=e,g=(0,s.I0)(),{formatMessage:v,formatDate:y}=(0,he.YB)(),[b,w]=u.useState(!1),x=u.useCallback((e=>{e&&(t.current=e,o?.(e,i))}),[i,o]),_=(0,yr.R9)((()=>{if(!c){if(g((0,Ls.kN)(i.pageIndex,i.boundingBox)),d(n))return setTimeout((()=>{g((0,ve.Q2)(i.id))}),100);g((0,ve.Df)((0,a.l4)([i.id]),null)),l&&l()}})),S=(0,yr.R9)((()=>{c||g((0,Ls.kN)(i.pageIndex,i.boundingBox)),w(!0)})),C=u.useCallback((()=>{g((0,Cr.UM)(n)),w(!1)}),[n,g]),E=n.isAnonymous?v(be.Z.anonymous):n.creatorName??v(be.Z.anonymous);let k=null;n.createdAt.getTime()&&(h&&(k=h({dateTime:n.createdAt,element:$s.Y.ANNOTATIONS_SIDEBAR,object:n})),null==k&&(k=y(n.createdAt,i.isCommentThreadRoot&&n?{hour12:!0,hour:"numeric",minute:"numeric",month:"numeric",day:"numeric",year:"numeric"}:void 0)));let z=null;r&&r>1&&(z=v(be.Z.nMoreComments,{arg0:r-1}));const P=p()("PSPDFKit-Sidebar-Annotations-Comment",{"PSPDFKit-Sidebar-Annotations-Comment-Selected":f}),D=!d(n)&&!fe.Ni&&m(n),A=(0,we.Z)({type:"comment",className:p()(Zs().icon,"PSPDFKit-Sidebar-Annotations-Icon")});return u.createElement(u.Fragment,null,u.createElement(qs,{itemRef:x,layoutClassName:P,isSelectedItem:f,navigationDisabled:c,onPress:_,onDelete:S,isDeletable:D,itemWrapperProps:{"data-annotation-id":i.id},icon:A,showFooter:!0,author:E,formattedDate:k,date:i.updatedAt,additionalFooter:i.isCommentThreadRoot&&z?u.createElement("span",null,z):null,isReadOnly:i.readOnly,isLocked:i.locked,hasLockedContents:i.lockedContents},u.createElement("button",{autoFocus:e.autoFocus},(0,R.aF)((0,Yt.KY)(n?.text.value||"")))),b&&u.createElement(ol.Z,{onConfirm:C,onCancel:()=>{w(!1)},accessibilityLabel:v(il.deleteCommentConfirmAccessibilityLabel),accessibilityDescription:v(il.deleteCommentConfirmAccessibilityDescription)},u.createElement("p",null,v(il.deleteCommentConfirmMessage))))},sl=u.memo((function(e){let{closeOnPress:t=!1,navigationDisabled:n,annotations:r,comments:o,commentThreads:i,formFields:l,pages:c,isAnnotationReadOnly:d,isCommentReadOnly:h,selectedAnnotationIds:f,canDeleteAnnotationCP:m,canDeleteCommentCP:g,sidebarOptions:v,focusedAnnotationIds:y}=e;const[b,w]=u.useState(null),{includeContent:x}=v;u.useEffect((()=>{b?.focus()}),[b]);const{formatMessage:_}=(0,he.YB)(),S=(0,s.I0)(),C=(0,s.v9)((e=>e.dateTimeString)),E=(0,yr.R9)((()=>{n||t&&S((0,Pt.mu)())})),z=x.some((e=>e===k.sv)),P=p()(Zs().container,"PSPDFKit-Sidebar-Annotations"),D=u.useMemo((()=>r.filter((e=>null!==e.pageIndex&&(z&&e.isCommentThreadRoot||!e.isCommentThreadRoot&&null!==ll(e,l)&&x.some((t=>e instanceof t)))))),[r,l,x,z]),A=u.useMemo((()=>c.reduce(((e,t)=>{const n=function(e){let t=e.filter((e=>e.isCommentThreadRoot)).sortBy((e=>e.boundingBox.top));return e.map((e=>{if(!e.isCommentThreadRoot)return e;const n=t.first();return t=t.shift(),n}))}((0,O.xp)(D,t));return 0===n.size?e:e.push(n)}),(0,a.aV)())),[c,D]),T=(0,yr.Bo)(b,A),I=A?.reduce(((e,t)=>e+t.size),0)||0,M=(0,yr.mP)(T,(e=>e.id),(e=>D.get(e)));return u.createElement("div",{className:P,role:"region","aria-label":_(be.Z.annotations),ref:w},u.createElement("div",{className:"PSPDFKit-Sidebar-Header"},I>0?u.createElement("div",{className:p()(Zs().annotationCounter,"PSPDFKit-Sidebar-Annotations-Annotation-Counter")},_(be.Z.annotationsCount,{arg0:I})):null),I>0&&A?u.createElement(u.Fragment,null,A.map(((e,t)=>{const r=e.first().pageIndex,a=c.get(r);(0,me.k)(a);const s=a.get("pageLabel");return u.createElement("section",{key:`Annotations-Sidebar-Page-${r}`},u.createElement("h1",{className:p()(Zs().pageNumber,"PSPDFKit-Sidebar-Annotations-Page-Number")},_(be.Z.pageX,{arg0:s||r+1})),u.createElement("div",{className:p()(Zs().content,Zs().annotations,"PSPDFKit-Sidebar-Annotations-Container")},e.map(((e,r)=>{if(e.isCommentThreadRoot&&z){const a=i.get(e.id),s=a?.first(),l=a?.last();if(a&&l&&s){const i=o.get(l);if(i){const l=!(0,Aa.kT)(i)&&i?.text.value.length>0?a?.size:a?.size-1,c=o.get(s);return u.createElement(al,{annotation:e,rootComment:c,commentsCount:l,onPress:E,isCommentReadOnly:h,isSelectedAnnotation:f.has(e.id),navigationDisabled:n,autoFocus:0===r&&0===t,canDeleteCommentCP:g,key:`Annotation-Info-${e.id}`,onRenderItemCallback:M,dateTimeStringCallback:C})}}}const a=ll(e,l);return null!=a?u.createElement(nl,{dispatch:S,annotation:e,annotationType:a,onPress:E,isAnnotationReadOnly:d,isSelectedAnnotation:f.has(e.id),navigationDisabled:n,autoFocus:0===r&&0===t,canDeleteAnnotationCP:m,key:`Annotation-Info-${e.id}`,onRenderItemCallback:M,dateTimeStringCallback:C,focusedAnnotationIds:y}):null}))))}))):u.createElement("div",{className:p()(Zs().container,Zs().empty,"PSPDFKit-Sidebar-Empty"),role:"region","aria-label":_(be.Z.annotations)},_(cl.noAnnotations)))}));function ll(e,t){let n;const r=Number(e.cloudyBorderIntensity)>0,o=e.strokeDashArray?.length;return e instanceof ie.Zc?function(e){return"normal"===e.blendMode?0===e.opacity||e.lineWidth/e.opacity>40?"highlighter":"ink":e.lineWidth>15?"highlighter":"ink"}(e):e instanceof ie.gd?e.callout?"callout":"text":e instanceof ie.Qi?"note":e instanceof ie.sK?"image":e instanceof ie.GI?"stamp":e instanceof ie.FV?"highlight":e instanceof ie.xu?"underline":e instanceof ie.R9?"strikeOut":e instanceof ie.hL?"squiggle":e instanceof ie.R1?"link":e instanceof ie.b3?e.isMeasurement()?"rectangle-area":r?"cloudy-rectangle":o?"dashed-rectangle":"rectangle":e instanceof ie.Xs?e.isMeasurement()?"ellipse-area":r?"cloudy-ellipse":o?"dashed-ellipse":"ellipse":e instanceof ie.Hi?e.isMeasurement()?"polygon-area":r?"cloudy-polygon":o?"dashed-polygon":"polygon":e instanceof ie.om?e.isMeasurement()?"perimeter":"polyline":e instanceof ie.o9?function(e){if(e.isMeasurement())return"distance";if(!e.lineCaps)return"line";const t="openArrow"===e.lineCaps.start||"closedArrow"===e.lineCaps.start||"reverseOpenArrow"===e.lineCaps.start||"reverseClosedArrow"===e.lineCaps.start,n="openArrow"===e.lineCaps.end||"closedArrow"===e.lineCaps.end||"reverseOpenArrow"===e.lineCaps.end||"reverseClosedArrow"===e.lineCaps.end;return t||n?"arrow":"line"}(e):e instanceof ie.x_?((0,me.k)(t),n=t.get(e.formFieldName),n instanceof rl.$o||n instanceof rl.Vi||n instanceof rl.fB?"form-text":n instanceof rl.rF?"form-checkbox":n instanceof rl.XQ||n instanceof rl.R0?"form-button":n instanceof rl.Yo?"form-signature":null):e instanceof q.Z?"redaction":e instanceof ie.Hu?"media":null}const cl=(0,he.vU)({noAnnotations:{id:"noAnnotations",defaultMessage:"No Annotations",description:"Message shown when there is no annotations"}});var ul,dl=n(42370),pl=n(9470),hl=n(22690),fl=n(17722),ml=n.n(fl),gl=n(43165),vl=n.n(gl),yl=n(84691),bl=n.n(yl);function wl(e){return El[e]||be.Z[e]}function xl(e){let{itemId:t,label:n,isEnd:r}=e;return u.createElement(u.Fragment,null,u.createElement(o.TX,{tag:"div"},n),u.createElement("svg",{viewBox:"0 0 8 4",style:{height:16,width:32}},u.createElement("g",{transform:r?"rotate(180 4,2)":void 0},mt.O[t].startElement({fill:"transparent"}),ul||(ul=u.createElement("line",{x1:"3.5",y1:"2",x2:"8",y2:"2"})))))}function _l(e){let{itemId:t,label:n}=e;const r=pl.x.find((e=>e.id===t));return u.createElement(u.Fragment,null,u.createElement(o.TX,{tag:"div"},n),u.createElement("svg",{viewBox:"0 0 16 4",style:{width:54,height:16}},u.createElement("line",{x1:"0",y1:"2",x2:"16",y2:"2",strokeDasharray:r?r.dashArray:void 0,fill:"transparent"})))}class Sl extends u.PureComponent{constructor(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];super(...n),e=this,(0,v.Z)(this,"calculateBoundingBox",(0,Ut.Z)((0,B.sS)(this.props.annotation.constructor))),(0,v.Z)(this,"_onChangeStartLineCap",(e=>{const{annotation:t}=this.props,n={};return"none"!==e&&(n.start=e),"lineCaps"in t&&t.lineCaps&&null!=t.lineCaps.end&&(n.end=t.lineCaps.end),this.props.updateAnnotation({lineCaps:n,boundingBox:this.calculateBoundingBox(t.set("lineCaps",n))})})),(0,v.Z)(this,"_onChangeDashArray",(e=>{const t=pl.x.find((t=>t.id===e));return this.props.updateAnnotation({strokeDashArray:void 0!==t?t.dashArray:null})})),(0,v.Z)(this,"_onChangeEndLineCap",(e=>{const{annotation:t}=this.props,n={};return"lineCaps"in t&&t.lineCaps&&null!=t.lineCaps.start&&(n.start=t.lineCaps.start),"none"!==e&&(n.end=e),this.props.updateAnnotation({lineCaps:n,boundingBox:this.calculateBoundingBox(t.set("lineCaps",n))})})),(0,v.Z)(this,"LineCapSelectButton",(function(t,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3?arguments[3]:void 0;return i=>{let{btnComponentProps:a,selectedItem:s}=i;const l=s?.label??"",c=t(wl(l));return u.createElement(pe.Z,(0,oe.Z)({is:"div"},a,{className:p()("PSPDFKit-Input-Dropdown-Button",bl().selectBox,e.props.styles.startLineCapSelect),name:"clickableBox",ref:e=>{a.ref(e),"function"==typeof o?o(e):o&&(o.current=e)}}),u.createElement(xl,{itemId:l,isEnd:r,label:c}),u.createElement("div",null,(0,we.Z)({type:"caret-"+n,style:{width:12,height:12,flexBasis:12,marginLeft:3,strokeWidth:0},className:p()(bl().dropdownIcon)})))}})),(0,v.Z)(this,"LineCapItem",(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{let{item:r,state:o,itemComponentProps:i,ref:a}=n;const s=r?.label??"",l=e(wl(s));return u.createElement(pe.Z,(0,oe.Z)({is:"div",className:p()(vl().root,ml().root,o?.includes("selected")&&bl().isSelected,o?.includes("focused")&&bl().isSelected)},i,{ref:a}),u.createElement(xl,{label:l,isEnd:t,itemId:s}))}})),(0,v.Z)(this,"DashArrayButton",((e,t)=>n=>{let{btnComponentProps:r,selectedItem:o}=n;const i=o?.label??"",a=e(wl(i));return u.createElement(pe.Z,(0,oe.Z)({is:"div"},r,{ref:r.ref,className:p()("PSPDFKit-Input-Dropdown-Button",bl().selectBox,this.props.styles.strokeDashArraySelect),name:"clickableBox"}),u.createElement(_l,{label:a,itemId:i}),u.createElement("div",null,(0,we.Z)({type:"caret-"+t,style:{width:12,height:12,flexBasis:12,marginLeft:3,strokeWidth:0},className:p()(bl().dropdownIcon)})))})),(0,v.Z)(this,"DashArrayItem",(e=>t=>{let{item:n,state:r,itemComponentProps:o,ref:i}=t;const a=n?.label??"",s=e(wl(a));return u.createElement(pe.Z,(0,oe.Z)({is:"div",className:p()(vl().root,ml().root,r?.includes("selected")&&bl().isSelected,r?.includes("focused")&&bl().isSelected),ref:i},o),u.createElement(_l,{label:s,itemId:a}))})),(0,v.Z)(this,"_startButton",this.LineCapSelectButton(this.props.intl.formatMessage,this.props.caretDirection,!1,this.props.innerRef)),(0,v.Z)(this,"_endButton",this.LineCapSelectButton(this.props.intl.formatMessage,this.props.caretDirection,!0)),(0,v.Z)(this,"_startItem",this.LineCapItem(this.props.intl.formatMessage)),(0,v.Z)(this,"_endItem",this.LineCapItem(this.props.intl.formatMessage,!0)),(0,v.Z)(this,"_dashArrayButton",this.DashArrayButton(this.props.intl.formatMessage,this.props.caretDirection)),(0,v.Z)(this,"_dashArrayItem",this.DashArrayItem(this.props.intl.formatMessage))}render(){const{intl:{formatMessage:e},styles:t,annotation:n,caretDirection:r}=this.props,{strokeDashArray:o}=n,i=We.Options.LINE_CAP_PRESETS,a={start:"none",end:"none"};"lineCaps"in n&&n.lineCaps&&(dl.a.includes(n.lineCaps.start)&&(a.start=n.lineCaps.start),dl.a.includes(n.lineCaps.end)&&(a.end=n.lineCaps.end)),i.includes(a.start)||(a.start="N/A"),i.includes(a.end)||(a.end="N/A");const s=i.map((e=>({value:e,label:e,className:`PSPDFKit-LineCap-${e.replace(" ","")}`}))),l=o instanceof Array&&2===o.length?pl.x.find((e=>2===e.dashArray.length&&e.dashArray[0]===o[0]&&e.dashArray[1]===o[1])):pl.x[0],c=pl.x.map((e=>({value:e.id,label:e.id,className:`PSPDFKit-DashArray-${e.id.replace(" ","")}`})));return u.createElement("div",{className:t.controlWrapper},u.createElement("div",{className:t.control},u.createElement(hl.Z,{items:s,value:{value:a.start,label:a.start},discreteDropdown:!1,isActive:!1,caretDirection:r,accessibilityLabel:e(be.Z.startLineCap),className:p()("PSPDFKit-Annotation-Toolbar-StartLineCap",t.startLineCapSelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:p()(t.dropdownMenu,t.lineCapsDashArrayMenu),maxCols:5,itemWidth:54,ButtonComponent:this._startButton,ItemComponent:this._startItem,onSelect:(e,t)=>{t.value&&this._onChangeStartLineCap(t.value)},frameWindow:this.props.frameWindow}),u.createElement(hl.Z,{items:c,value:l?{label:l.id,value:l.id}:{label:"solid",value:"solid"},discreteDropdown:!1,isActive:!1,caretDirection:r,accessibilityLabel:e(be.Z.strokeDashArray),className:p()("PSPDFKit-Annotation-Toolbar-DashArray",t.strokeDashArraySelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:p()(t.dropdownMenu,t.lineCapsDashArrayMenu),itemWidth:76,ButtonComponent:this._dashArrayButton,ItemComponent:this._dashArrayItem,onSelect:(e,t)=>{t.value&&this._onChangeDashArray(t.value)},frameWindow:this.props.frameWindow}),u.createElement(hl.Z,{items:s,value:{label:a.end,value:a.end},discreteDropdown:!1,isActive:!1,caretDirection:r,accessibilityLabel:e(be.Z.endLineCap),className:p()("PSPDFKit-Annotation-Toolbar-EndLineCap",t.endLineCapSelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:p()(t.dropdownMenu,t.lineCapsDashArrayMenu),maxCols:5,itemWidth:54,ButtonComponent:this._endButton,ItemComponent:this._endItem,onSelect:(e,t)=>{t.value&&this._onChangeEndLineCap(t.value)},frameWindow:this.props.frameWindow})))}}const Cl=Sl,El=(0,he.vU)({square:{id:"square",defaultMessage:"Square",description:"Square line cap"},circle:{id:"circle",defaultMessage:"Circle",description:"Circle line cap"},diamond:{id:"diamond",defaultMessage:"Diamond",description:"Diamond line cap"},openArrow:{id:"openArrow",defaultMessage:"Open Arrow",description:"Open arrow line cap"},closedArrow:{id:"closedArrow",defaultMessage:"Closed Arrow",description:"Closed arrow line cap"},butt:{id:"butt",defaultMessage:"Butt",description:"Butt line cap"},reverseOpenArrow:{id:"reverseOpenArrow",defaultMessage:"Reverse Open Arrow",description:"Reverse open arrow line cap"},reverseClosedArrow:{id:"reverseClosedArrow",defaultMessage:"Reverse Closed Arrow",description:"Reverse closed arrow line cap"},slash:{id:"slash",defaultMessage:"Slash",description:"Slash line cap"},solid:{id:"solid",defaultMessage:"Solid",description:"Solid line"},narrowDots:{id:"narrowDots",defaultMessage:"Narrow Dots",description:"Narrow dotted line"},wideDots:{id:"wideDots",defaultMessage:"Wide Dots",description:"Wide dotted line"},narrowDashes:{id:"narrowDashes",defaultMessage:"Narrow Dashes",description:"Narrow dashed line"},wideDashes:{id:"wideDashes",defaultMessage:"Wide Dashes",description:"Wide dashed line"}});var kl;const zl=74,Pl={width:54,height:13.5,fill:"transparent"};const Dl=Ae.i1*Ae.St;function Al(e){let{label:t,element:n}=e;return u.createElement(u.Fragment,null,u.createElement(o.TX,{tag:"div"},t),n)}class Tl extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"state",{calculateShapeBoundingBox:(0,B.sS)(this.props.annotation.constructor)}),(0,v.Z)(this,"DashArrayButton",(e=>{let{btnComponentProps:t,selectedItem:n}=e;const r=n?.label??"solid",o=this.props.intl.formatMessage(Ml[r]),i=this._lineStyleOptions.get(r);return u.createElement(pe.Z,(0,oe.Z)({is:"div"},t,{className:p()("PSPDFKit-Input-Dropdown-Button",bl().selectBox,this.props.styles.strokeDashArraySelect),name:"clickableBox",ref:e=>{t.ref(e),"function"==typeof this.props.innerRef?this.props.innerRef(e):this.props.innerRef&&(this.props.innerRef.current=e)}}),u.createElement(Al,{label:o,element:i}),u.createElement("div",null,(0,we.Z)({type:"caret-"+this.props.caretDirection,style:{width:12,height:12,flexBasis:12,marginLeft:3,strokeWidth:0},className:p()(bl().dropdownIcon)})))})),(0,v.Z)(this,"DashArrayItem",(e=>{let{item:t,state:n,itemComponentProps:r,ref:o}=e;const i=t?.label??"solid",a=this.props.intl.formatMessage(Ml[i]),s=this._lineStyleOptions.get(i);return u.createElement(pe.Z,(0,oe.Z)({is:"div",className:p()(vl().root,ml().root,n?.includes("selected")&&bl().isSelected,n?.includes("focused")&&bl().isSelected)},r,{ref:o}),u.createElement(Al,{label:a,element:s}))})),(0,v.Z)(this,"_onChange",((e,t)=>{const{value:n}=t,{annotation:r}=this.props,o="cloudy"===n?Ae.i1:0,i=pl.x.find((e=>e.id===n)),a=((e,t,n)=>{if(e.constructor===ie.Xs||e.constructor===ie.b3){if(t>0&&!e.cloudyBorderIntensity)return e.boundingBox.grow(Dl+e.strokeWidth/2);if(!t&&e.cloudyBorderIntensity>0)return e.boundingBox.grow(-(Dl+e.strokeWidth/2))}return e.constructor===ie.Hi?n(e.set("cloudyBorderIntensity",t)):n(e)})(r,o,this.state.calculateShapeBoundingBox);return this.props.updateAnnotation({strokeDashArray:void 0!==i&&Array.isArray(i.dashArray)&&2===i.dashArray.length?i.dashArray:null,cloudyBorderIntensity:o,cloudyBorderInset:o?k.eB.fromValue(Dl+r.strokeWidth/2):r.cloudyBorderInset,boundingBox:a})})),(0,v.Z)(this,"_lineStyleOptions",function(){const e=new Map;return pl.x.forEach((t=>{e.set(t.id,u.createElement("svg",{viewBox:"0 0 16 4",style:Pl,key:t.id},u.createElement("line",{x1:"0",y1:"2",x2:"16",y2:"2",strokeDasharray:t.dashArray})))})),e.set("cloudy",kl||(kl=u.createElement("svg",{viewBox:"0 0 16 4",style:Pl,key:"cloudy"},u.createElement("path",{d:"M 1 2.23 A 2.125 2.125 0 0 1 4.67 1.68 A 2.125 2.125 0 0 0 4.35 2.23 A 2.125 2.125 0 0 1 8 1.68 A 2.125 2.125 0 0 0 7.68 2.23 A 2.125 2.125 0 0 1 11.33 1.68 A 2.125 2.125 0 0 0 11.02 2.23 A 2.125 2.125 0 1 1 14.14 4.80 A 2.125 2.125 0 0 0 13.55 4.54"})))),e}(this.props.intl.formatMessage))}static getDerivedStateFromProps(e){return{calculateShapeBoundingBox:(0,B.sS)(e.annotation.constructor)}}render(){const{intl:{formatMessage:e},styles:t,annotation:n,frameWindow:r}=this.props,{strokeDashArray:o,cloudyBorderIntensity:i}=n,a=Array.isArray(o)&&2===o.length&&pl.x.find((e=>2===e.dashArray.length&&e.dashArray[0]===o[0]&&e.dashArray[1]===o[1])),s=i>0?a||i!==Ae.i1?"":"cloudy":a?a.id:o?"":"solid",l=Array.from(this._lineStyleOptions.keys()).map((e=>({label:e,value:e,className:`PSPDFKit-LineStyle-${Ml[e??"solid"].id}`})));return u.createElement("div",{className:t.controlWrapper},u.createElement("div",{className:t.control},u.createElement(hl.Z,{items:l,value:{label:s||"solid",value:s||"solid"},discreteDropdown:!1,isActive:!1,caretDirection:this.props.caretDirection,accessibilityLabel:e(be.Z.strokeDashArray),className:p()("PSPDFKit-Annotation-Toolbar-LineStyle",t.strokeDashArraySelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:p()(t.dropdownMenu,t.strokeDashArrayMenu),maxCols:1,itemWidth:zl,ButtonComponent:this.DashArrayButton,ItemComponent:this.DashArrayItem,onSelect:this._onChange,frameWindow:r})))}}const Il=Tl,Ml=(0,he.vU)({solid:{id:"solid",defaultMessage:"Solid",description:"Solid line"},narrowDots:{id:"narrowDots",defaultMessage:"Narrow Dots",description:"Narrow dotted line"},wideDots:{id:"wideDots",defaultMessage:"Wide Dots",description:"Wide dotted line"},narrowDashes:{id:"narrowDashes",defaultMessage:"Narrow Dashes",description:"Narrow dashed line"},wideDashes:{id:"wideDashes",defaultMessage:"Wide Dashes",description:"Wide dashed line"},cloudy:{id:"cloudy",defaultMessage:"Cloudy border",description:"Cloudy border effect"}});var Rl=n(54707);const Fl=u.forwardRef(((e,t)=>{const n=(0,s.v9)((e=>e.shadowRoot));let r=[],o=!1;Array.isArray(We.Options.LINE_WIDTH_PRESETS)&&(r=We.Options.LINE_WIDTH_PRESETS,o=!0);let i=!1,a=!1;e.annotation instanceof k.Zc&&(i=!0),e.annotation instanceof k.R1&&(a=!0);const{intl:{formatMessage:l},styles:c,annotation:d,type:h,caretDirection:f}=e,m=h?`PSPDFKit-${h}-Annotation-Toolbar-StrokeWidth`:"",g=p()("PSPDFKit-Annotation-Toolbar-StrokeWidth",h&&m);let v=1,y=40,b=i?d.lineWidth:a?d.borderWidth:d.strokeWidth;return o&&(v=0,y=r.length-1,b=r.indexOf(b)),u.createElement("div",{className:c.controlWrapper},u.createElement("div",{className:c.control},u.createElement(Rl.Z,{name:"lineWidth",accessibilityLabel:e.accessibilityLabel||l(be.Z.size),className:g,value:b,valueLabel:t=>{let n=t;if(o){if(-1===t)return"N/A";n=r[t]}return e.intl.formatMessage(be.Z.numberInPt,{arg0:n.toFixed(0)})},min:v,max:y,step:1,onChange:t=>{let n=t;if(o&&(n=r[t]),i)return e.updateAnnotation({lineWidth:n});if(a)return e.updateAnnotation({borderWidth:n});if(e.annotation instanceof k.b3||e.annotation instanceof k.Xs){const t=n/2-e.annotation.strokeWidth/2,r=e.annotation.cloudyBorderInset?new k.eB({left:e.annotation.cloudyBorderInset.left+t,top:e.annotation.cloudyBorderInset.top+t,right:e.annotation.cloudyBorderInset.right+t,bottom:e.annotation.cloudyBorderInset.bottom+t}):null;return e.updateAnnotation({strokeWidth:n,boundingBox:(0,B.sS)(e.annotation.constructor)(e.annotation.set("strokeWidth",n)),...r?{cloudyBorderInset:r}:null})}return e.updateAnnotation({strokeWidth:n,boundingBox:(0,B.sS)(e.annotation.constructor)(e.annotation.set("strokeWidth",n))})},caretDirection:f,innerRef:t,shadowRoot:n})))})),Nl=Fl;class Ol extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"updateAnnotation",(e=>this.props.updateAnnotation({opacity:e/100}))),(0,v.Z)(this,"valueLabel",(e=>`${Math.round(e)}%`))}render(){const{intl:{formatMessage:e},styles:t,annotation:n,type:r,caretDirection:o}=this.props,i=r?`PSPDFKit-${r}-Annotation-Toolbar-Opacity`:"",a=p()("PSPDFKit-Annotation-Toolbar-Opacity",r&&i);return u.createElement("div",{className:t.controlWrapper},u.createElement("div",{className:t.control},u.createElement(Rl.Z,{name:"opacity",accessibilityLabel:e(be.Z.opacity),className:a,value:100*n.opacity,valueLabel:this.valueLabel,min:10,max:100,step:1,onChange:this.updateAnnotation,caretDirection:o,innerRef:this.props.innerRef,shadowRoot:this.props.shadowRoot})))}}const jl={LineCapsDashArrayComponent:Cl,LineStyleComponent:Il,StrokeWidthComponent:Nl,OpacityComponent:Ol};var Ll=n(54130),Bl=n(35012),Kl=n(16165),Vl=n.n(Kl);let Hl=0;const $l=u.forwardRef((function(e,t){const n=u.useRef(Hl++),{label:r,accessibilityLabel:i,onUpdate:a,onBlur:s,onFocus:l,onKeyDown:c,textStyles:d,disabled:h=!1,autoFocus:f=!0,name:m="name"}=e,g=u.useCallback((e=>{a&&a(e.target.value)}),[a]);return u.createElement("div",{className:e.styles.controlWrapper},u.createElement("div",{className:e.styles.control},u.createElement("div",{className:`PSPDFKit-Text-Input ${e.className||""} ${Vl().root}`},e.label?u.createElement("label",{htmlFor:`${Vl().root}-${n.current}`,className:Vl().label},r):i?u.createElement(o.TX,{tag:"label",htmlFor:`${Vl().root}-${n.current}`},i):null,u.createElement(o.oi,{className:p()(Vl().input,e.styles.input),value:e.value,onChange:g,onBlur:s,onFocus:l,onKeyDown:c,autoFocus:f,selectTextOnFocus:!0,name:m,placeholder:e.placeholder,autoComplete:"off",id:`${Vl().root}-${n.current}`,ref:t,style:d,disabled:h}))))}));var Ul=n(44170),Zl=n.n(Ul);const ql=u.forwardRef((function(e,t){const{intl:n,isEditing:r,showAnnotationNotes:o,isAnnotationNoteActive:i,hasAnnotationNote:a,onAnnotationNotePress:s,disabled:l}=e,{formatMessage:c}=n;return u.createElement(u.Fragment,null,o&&!r?u.createElement(Ll.Z,{type:a||i?"note":"note-add",title:c(be.Z.noteAnnotation),className:p()(Zl().button,Zl().annotationNoteButton,{[Zl().disableEditing]:l}),onPress:l?void 0:s,selected:i,ref:t}):null)}));var Gl=n(31647),Wl=n(80292),Yl=n(76465);function Xl(e){return"custom"===e.type}function Ql(e){return Xl(e)?`custom-${e.id}`:e.group}const Jl=e=>{let{annotationToolbarItems:t,builtInItems:n,btnFocusRefIfFocusedItem:r,onGroupExpansion:o,builtInToolbarProps:i={},expandedGroup:a,hasDesktopLayout:s,onGroupTransitionEnded:l,position:c,typeMap:d}=e;const h=(0,u.useMemo)((()=>t.every((e=>{if(Xl(e))return!1;if("spacer"===e.type)return!0;return!!n.find((t=>t.type===e.type))?.hidden}))),[n,t]),f=a?n.find((e=>Ql(e)===a))||t.filter(Xl).find((e=>Ql(e)===a)):void 0,m=(0,u.useMemo)((()=>((e,t,n)=>{if(n)return e.map((e=>{const n=!Xl(e)&&t.find((t=>t.type===e.type));return{...e,...n&&{group:n.group,node:n.node,title:e.title||n.title,onPress:(t,r)=>{n.onPress?.(t.nativeEvent,e.id),e.onPress?.(t.nativeEvent,r)},disabled:n.disabled&&e.disabled,className:p()(n.className,e.className)}}})).find((e=>n===Ql(e)))})(t,n,a)),[t,a,n]);if(m)return u.createElement("div",{className:Zl().right},u.createElement(Yl.Z,{onClose:()=>o(null),isPrimary:!1,position:c,onEntered:l,accessibilityLabel:m?m.title:void 0,className:Zl().expanded},(0,Wn.Re)(m.node)?u.createElement(Wl.Z,{node:m.node,className:m.className,onPress:m.onPress,title:m.title,disabled:m.disabled}):u.createElement("div",{className:m.className,onClick:e=>m.onPress?.(e.nativeEvent,m.id),title:m.title},m.node)));if(h)return null;const g=t.find((e=>"spacer"!==e.type&&!n.find((t=>t.type===e.type))?.hidden));return u.createElement("form",{className:Zl().form,onSubmit:Wn.PF},t.map(((e,t)=>{if("spacer"===e.type)return u.createElement("div",{key:e.type,className:p()("PSPDFKit-Annotation-Toolbar-Spacer",e.className),style:{display:"flex",flex:1},onClick:t=>e.onPress?.(t.nativeEvent,e.id)});const l=n.find((t=>t.type===e.type)),c=g?.id===e.id&&g?.type===e.type;if(Xl(e)){const n="node"in e&&!!e.node&&u.createElement("div",{role:"button",ref:r(Ql(e),f,0===t&&!a),key:e.id},u.createElement(Wl.Z,{node:e.node,className:e.className,onPress:t=>e.onPress?.(t,e.id),title:e.title,disabled:e.disabled,variant:"annotationToolbar"})),i="icon"in e&&!!e.icon&&u.createElement("div",{role:"button",key:e.id,className:p()(Zl().button,ml().root,vl().root,`${e.className}-Icon`),onClick:t=>{"custom"===e.type&&e.node&&o(`custom-${e.id}`),e.onPress?.(t,e.id)},ref:r(Ql(e),f,c&&!a),title:e.title},(e=>"icon"in e?"string"==typeof e.icon?/<svg/i.test(e.icon)?u.createElement(Pe.Z,{className:Zl().customIconSvg,src:e.icon,role:"presentation"}):u.createElement("img",{alt:e.title,src:e.icon,role:"presentation"}):e.icon instanceof Node?u.createElement(Wl.Z,{key:e.id,node:e.icon,className:e.iconClassName,onPress:t=>e.onIconPress?.(t,e.id),title:e.title,disabled:e.disabled}):void 0:null)(e));return s?n||i:i||n}if(!l||l.hidden)return null;const h=d?.[e.type]||e.type,m="function"==typeof i?i(l):i;return l.group?u.createElement(u.Fragment,{key:l.type},u.createElement("div",{className:p()(l.className,{[Zl().disableEditing]:l.disabled})},u.createElement(Ll.Z,(0,oe.Z)({type:h,icon:e.icon,title:e.title||l.title,onPress:t=>{o(l.group||null),s?e.onPress?.(t,e.id):e.onIconPress?.(t,e.id)}},m,{className:p()(m.className,e.className),ref:r(Ql(l),f,c&&!a)})),l.node),!l.hideSeparator&&u.createElement("div",{className:Zl().separator})):u.createElement("div",{className:p()(l.className,{[Zl().disableEditing]:l.disabled},e.className),key:l.type,onClick:t=>{e.onPress?.(t.nativeEvent,e.id)},title:e.title||l.title},l.node)})))};var ec=n(5283);const tc=u.memo((function(e){const{annotation:t,isEditing:n,dispatch:r,canEditAnnotationCP:i,canDeleteSelectedAnnotationCP:a,expandedGroup:l,btnFocusRefIfFocusedGroup:c,btnFocusRefIfFocusedItem:d,lastToolbarActionUsedKeyboard:h,annotationToolbarItems:f,keepSelectedTool:m}=e,g=(0,s.v9)((e=>e.shadowRoot)),v=(0,yr.R9)((o=>{i&&(t.rects.size>0&&n?(r((0,at.gX)(o)),r((0,Pt.aw)()),r((0,ve.vR)())):e.updateAnnotation(o,"redaction"))})),y=(0,yr.R9)((()=>(r((0,Pt.fq)()),new Promise(((e,t)=>(r((0,Gl.g)((()=>{r((0,Pt.Di)()),e()}),(e=>{r((0,Pt.Di)()),t(e)}))),e)))))),{position:b,intl:w}=e,{formatMessage:x}=w,_={updateAnnotation:v,annotation:t,styles:Zl(),intl:w,caretDirection:"bottom"===b?"up":"down"},S=[{node:u.createElement(Bl.Z,(0,oe.Z)({},_,{record:t,colorProperty:"fillColor",onChange:v,className:"PSPDFKit-Redaction-Annotation-Toolbar-Fill-Color",accessibilityLabel:x(be.Z.fillColor),removeTransparent:!0,keepOpacity:!0,frameWindow:e.frameWindow,innerRef:c("fillColor",!l),lastToolbarActionUsedKeyboard:h,annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:x(be.Z.fillColor),type:"fill-color",className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Fill-Color"),group:"fillColor",disabled:!i,hideSeparator:!0},{node:u.createElement("div",{style:{display:"flex"}},u.createElement($l,{accessibilityLabel:x(be.Z.overlayText),placeholder:x(be.Z.insertOverlayText),className:Zl().overlayTextInput,value:t.overlayText||"",onUpdate:e=>{v({overlayText:e})},styles:{...Zl(),controlWrapper:Zl().controlWrapperAutoWidth,input:Zl().overlayInput},ref:c("overlayText")}),u.createElement(Bl.Z,(0,oe.Z)({},_,{record:t,colorProperty:"color",onChange:v,className:"PSPDFKit-Redaction-Annotation-Toolbar-Color",removeTransparent:!0,accessibilityLabel:x(be.Z.color),keepOpacity:!0,styles:{...Zl(),controlWrapper:Zl().controlWrapperAutoWidth},frameWindow:e.frameWindow,annotationToolbarColorPresets:e.annotationToolbarColorPresets})),u.createElement(o.bK,{label:x(be.Z.repeatText),value:Boolean(t.repeatOverlayText),onUpdate:e=>{v({repeatOverlayText:e})},styles:{...Zl(),controlWrapper:Zl().controlWrapperAutoWidth}})),title:x(be.Z.overlayText),group:"overlayText",className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Overlay-Text",Zl().overlayTextMargin),disabled:!e.canEditAnnotationCP,type:"overlay-text"},{node:u.createElement(Bl.Z,(0,oe.Z)({},_,{record:t,colorProperty:"outlineColor",onChange:v,className:"PSPDFKit-Redaction-Annotation-Toolbar-Outline-Color",accessibilityLabel:x(be.Z.outlineColor),frameWindow:e.frameWindow,innerRef:c("outlineColor"),annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:x(be.Z.outlineColor),group:"outlineColor",className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Outline-Color"),disabled:!e.canEditAnnotationCP,type:"outline-color"},{node:u.createElement(jl.OpacityComponent,(0,oe.Z)({},_,{innerRef:c("opacity"),shadowRoot:g})),title:x(be.Z.opacity),group:"opacity",className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity"),disabled:!e.canEditAnnotationCP,type:"opacity"},{node:u.createElement(Ll.Z,{type:"delete",icon:(0,ec.KT)(f),title:x(be.Z.delete),className:p()("PSPDFKit-Redaction-Annotation-Toolbar-Button-Delete",Zl().button,Zl().deleteButton,{[Zl().disabledButton]:!a}),onPress:a?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===t.pageIndex||!!l||m},{node:u.createElement("div",{className:p()(Zl().applyRedactionsWrapper)},u.createElement(Ll.Z,{type:"applyRedaction",title:x(be.Z.applyRedactions),className:p()("PSPDFKit-Redaction-Annotation-Toolbar-Button-Apply-Redactions",Zl().button,Zl().buttonNoBorder,Zl().applyRedactionsButton),onPress:y})),type:"apply-redactions",hidden:null===t.pageIndex||!!l||m},{node:u.createElement(ql,{intl:w,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),disabled:!e.canEditAnnotationCP,hidden:!e.showAnnotationNotes||n,type:"annotation-note"}],C={"overlay-text":t.repeatOverlayText?"redaction-text-repeating":"redaction-text-single","outline-color":"border-color"},E={presentational:e.viewportWidth>Ae.GI,disabled:Boolean(l),className:p()(Zl().button,Zl().buttonNoBorder)};return u.createElement("div",{className:p()("PSPDFKit-Redaction-Annotation-Toolbar",Zl().content)},u.createElement(Jl,{annotationToolbarItems:f,builtInItems:S,btnFocusRefIfFocusedItem:d,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:E,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:l,onGroupTransitionEnded:e.onGroupTransitionEnded,position:b,typeMap:C}))}));const nc=tc,rc=u.memo((function(e){const{annotation:t,intl:n,position:r,expandedGroup:o,btnFocusRefIfFocusedGroup:i,btnFocusRefIfFocusedItem:a,canDeleteSelectedAnnotationCP:l,annotationToolbarItems:c}=e,d=(0,s.v9)((e=>e.shadowRoot)),h=(0,yr.R9)((t=>e.updateAnnotation(t,"stamp"))),{formatMessage:f}=n,m=[{node:u.createElement(jl.OpacityComponent,{intl:n,type:"Image",styles:Zl(),annotation:t,updateAnnotation:h,caretDirection:"bottom"===r?"up":"down",innerRef:i("opacity",!o),shadowRoot:d}),title:f(be.Z.opacity),type:"opacity",disabled:!e.canEditAnnotationCP,group:"opacity",className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:u.createElement(Ll.Z,{type:"delete",icon:(0,ec.KT)(c),title:f(be.Z.delete),className:p()("PSPDFKit-Stamp-Annotation-Toolbar-Button-Delete",Zl().button,Zl().deleteButton,{[Zl().disabledButton]:!l}),onPress:l?()=>e.deleteAnnotation():()=>{}}),type:"delete",disabled:null===e.annotation.pageIndex},{node:u.createElement(ql,{intl:e.intl,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",disabled:!e.showAnnotationNotes}];return u.createElement("div",{className:p()("PSPDFKit-Stamp-Annotation-Toolbar",Zl().content)},u.createElement(Jl,{annotationToolbarItems:c,builtInItems:m,btnFocusRefIfFocusedItem:a,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:{className:Zl().button},hasDesktopLayout:e.hasDesktopLayout,expandedGroup:o,onGroupTransitionEnded:e.onGroupTransitionEnded,position:r}))}));const oc=rc,ic=u.memo((function(e){const{annotation:t,intl:n,position:r,expandedGroup:o,btnFocusRefIfFocusedGroup:i,btnFocusRefIfFocusedItem:a,canDeleteSelectedAnnotationCP:l,annotationToolbarItems:c}=e,d=(0,s.v9)((e=>e.shadowRoot)),h=(0,yr.R9)((t=>e.updateAnnotation(t,"image"))),{formatMessage:f}=n,m=[{node:u.createElement(jl.OpacityComponent,{intl:n,type:"Image",styles:Zl(),annotation:t,updateAnnotation:h,caretDirection:"bottom"===r?"up":"down",innerRef:i("opacity",!o),shadowRoot:d}),title:f(be.Z.opacity),type:"opacity",group:"opacity",disabled:!e.canEditAnnotationCP,hidden:e.areOnlyElectronicSignaturesEnabled,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:u.createElement(Ll.Z,{type:"counterclockwise",title:f(be.Z.rotateCounterclockwise),className:`PSPDFKit-Image-Annotation-Toolbar-Button-Rotate PSPDFKit-Image-Annotation-Toolbar-Button-Rotate-Counterclockwise ${Zl().button} ${Zl().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,O.eJ)(e.annotation,e.selectedAnnotationPageSize,O.z1.COUNTERCLOCKWISE))}}),type:"counterclockwise-rotation",disabled:!e.canEditAnnotationCP,hidden:e.areOnlyElectronicSignaturesEnabled},{node:u.createElement(Ll.Z,{type:"clockwise",title:f(be.Z.rotateClockwise),className:`PSPDFKit-Image-Annotation-Toolbar-Button-Rotate PSPDFKit-Image-Annotation-Toolbar-Button-Rotate-Clockwise ${Zl().button} ${Zl().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,O.eJ)(e.annotation,e.selectedAnnotationPageSize,O.z1.CLOCKWISE))}}),type:"clockwise-rotation",disabled:!e.canEditAnnotationCP,hidden:e.areOnlyElectronicSignaturesEnabled},{node:u.createElement(Ll.Z,{type:"delete",icon:(0,ec.KT)(c),title:f(be.Z.delete),className:p()("PSPDFKit-Image-Annotation-Toolbar-Button-Delete",Zl().button,Zl().deleteButton,{[Zl().disabledButton]:!l}),onPress:l?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!o},{node:u.createElement(ql,{intl:e.intl,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.areOnlyElectronicSignaturesEnabled}];return u.createElement("div",{className:p()("PSPDFKit-Image-Annotation-Toolbar",Zl().content)},u.createElement(Jl,{annotationToolbarItems:c,builtInItems:m,btnFocusRefIfFocusedItem:a,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:{className:Zl().button},hasDesktopLayout:e.hasDesktopLayout,expandedGroup:o,onGroupTransitionEnded:e.onGroupTransitionEnded,position:r}))}));const ac=ic;var sc=n(68938),lc=n.n(sc);const cc=["Tab","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"];class uc extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"state",{keyboardFocus:!!this.props.lastToolbarActionUsedKeyboard}),(0,v.Z)(this,"_handleKeyUp",(e=>{cc.includes(e.key)&&this.setState({keyboardFocus:!0})})),(0,v.Z)(this,"_handlePointerUp",(()=>{this.setState({keyboardFocus:!1})})),(0,v.Z)(this,"shouldComponentUpdate",ye.O)}componentDidMount(){const e=this.props.innerRef?.current?.parentNode;e&&e.focus()}render(){const{colorPresets:e,activeColor:t,innerRef:n}=this.props,{formatMessage:r}=this.props.intl;return this.props.colorPresets.length<2?null:u.createElement("div",{className:p()("PSPDFKit-Input-ColorPicker",this.props.className,lc().root),role:"radiogroup","aria-label":this.props.accessibilityLabel,onKeyUp:this._handleKeyUp,onPointerUp:this._handlePointerUp,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||this.setState({keyboardFocus:!1})}},e.map(((e,i)=>{const a=e.color===t||e.color&&t&&e.color.equals(t),s=p()({[lc().input]:!0,[lc().inputIsActive]:a,"PSPDFKit-Input-ColorPicker-Label":!0,"PSPDFKit-Input-ColorPicker-Label-active":a,[lc().focusRing]:this.state.keyboardFocus&&a}),l=p()({[lc().swatch]:!0,[lc().swatchIsTransparent]:!e.color,[lc().swatchIsWhite]:!e.color||e.color.equals(k.Il.WHITE),"PSPDFKit-Input-ColorPicker-Swatch":!0}),c=e.color?e.color.toCSSValue():null;let d=e.localization.defaultMessage;null!=c&&(e.localization.id?d=r(e.localization):null!=be.Z[c]&&(d=r(be.Z[c])));const h=e.color&&e.color.toCSSValue();return u.createElement("label",{className:s,key:i,title:d,"aria-label":d},u.createElement("span",{className:l,style:{backgroundColor:h||"transparent"}}),u.createElement(o.TX,null," ",d," "),u.createElement(o.TX,{tag:"input",type:"radio",name:lc().root,value:i,checked:!!a,onChange:t=>{t.target.checked&&this.props.onClick(e.color)},ref:a&&n?n:void 0}))})))}}(0,v.Z)(uc,"defaultProps",{className:""});const dc=(0,he.XN)(uc);var pc=n(3792);const hc=u.forwardRef((function(e,t){let{value:n="normal",onChange:r,className:o,caretDirection:i,frameWindow:a}=e;const{formatMessage:s}=(0,he.YB)(),l=Object.keys(pc.b).map((e=>({value:e,label:e}))),c=u.useCallback(fc(s,i),[s,i]),d=u.useCallback(mc(s),[s]);return u.createElement(u.Fragment,null,u.createElement(hl.Z,{items:l,value:{label:n,value:n},discreteDropdown:!1,isActive:!1,caretDirection:i,accessibilityLabel:s(be.Z.blendMode),className:p()(Zl().blendModeSelect,o,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:Zl().dropdownMenu,ButtonComponent:c,ItemComponent:d,onSelect:(e,t)=>{if(t.value){const e=pc.b[t.value];r(e)}},frameWindow:a,ref:t}),u.createElement("div",{className:p()(Zl().fontSizeNativeFlexbox)},u.createElement("div",{className:Zl().nativeDropdown},u.createElement("select",{"aria-label":s(be.Z.blendMode),className:"PSPDFKit-Input-Dropdown-Select",value:n,onChange:e=>{if(void 0!==e.target.value){const t=pc.b[e.target.value];r(t)}},ref:t},l.map((e=>u.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},s(gc[e.label]))))))))})),fc=(e,t)=>n=>{let{btnComponentProps:r,selectedItem:o}=n;return u.createElement(pe.Z,(0,oe.Z)({is:"div"},r,{ref:r.ref,className:p()("PSPDFKit-Input-Dropdown-Button ",bl().selectBox,Zl().selectBox),style:{minWidth:"100px"}}),u.createElement("span",null,o?.label?e(gc[o.label]):null),u.createElement("div",null,(0,we.Z)({type:"caret-"+t,style:{width:12,height:12,flexBasis:12},className:p()(bl().dropdownIcon)})))},mc=e=>t=>{let{item:n,state:r,itemComponentProps:o,ref:i}=t;return u.createElement(pe.Z,(0,oe.Z)({is:"div",ref:i,className:p()(bl().item,{[bl().isSelected]:r?.includes("selected")||r?.includes("focused")}),name:n?.label},o),n?.label?e(gc[n.label]):null)},gc=(0,he.vU)({normal:{id:"normal",defaultMessage:"Normal",description:"Blend Mode Normal"},multiply:{id:"multiply",defaultMessage:"Multiply",description:"Blend Mode Multiply"},screen:{id:"screenBlend",defaultMessage:"Screen",description:"Blend Mode Screen"},overlay:{id:"overlay",defaultMessage:"Overlay",description:"Blend Mode Overlay"},darken:{id:"darken",defaultMessage:"Darken",description:"Blend Mode Darken"},lighten:{id:"lighten",defaultMessage:"Lighten",description:"Blend Mode Lighten"},colorDodge:{id:"colorDodge",defaultMessage:"Color Dodge",description:"Blend Mode Color Dodge"},colorBurn:{id:"colorBurn",defaultMessage:"Color Burn",description:"Blend Mode Color Burn"},hardLight:{id:"hardLight",defaultMessage:"Hard Light",description:"Blend Mode Hard Light"},softLight:{id:"softLight",defaultMessage:"Soft Light",description:"Blend Mode Soft Light"},difference:{id:"difference",defaultMessage:"Difference",description:"Blend Mode Difference"},exclusion:{id:"exclusion",defaultMessage:"Exclusion",description:"Blend Mode Exclusion"},hue:{id:"hue",defaultMessage:"Hue",description:"Blend Mode Hue"},saturation:{id:"saturation",defaultMessage:"Saturation",description:"Blend Mode Saturation"},color:{id:"color",defaultMessage:"Color",description:"Blend Mode Color"},luminosity:{id:"luminosity",defaultMessage:"Luminosity",description:"Blend Mode Luminosity"}}),vc=u.memo((function(e){const t=(0,yr.R9)((t=>{const{annotation:n,isEditing:r,dispatch:o,variantAnnotationPresetID:i,canEditAnnotationCP:a}=e;if(a)if(n.rects.size>0&&r)o((0,at.gX)(t)),o((0,Pt.d5)()),o((0,ve.vR)());else{const r=i||G.hD.get(n.constructor);e.updateAnnotation(t,r)}})),{position:n,annotation:r,expandedGroup:o,btnFocusRefIfFocusedGroup:i,btnFocusRefIfFocusedItem:a,canDeleteSelectedAnnotationCP:l,lastToolbarActionUsedKeyboard:c,annotationToolbarItems:d}=e,h=(0,s.v9)((e=>e.shadowRoot)),{formatMessage:f}=e.intl,m=We.Options.TEXT_MARKUP_COLOR_PRESETS,g=We.Options.HIGHLIGHT_COLOR_PRESETS,v=r instanceof k.FV?g:m,y=[{node:u.createElement("div",{className:Zl().controlWrapper},u.createElement("div",{className:Zl().control},u.createElement(dc,{className:"PSPDFKit-Text-Markup-Annotation-Toolbar-Color",accessibilityLabel:f(be.Z.color),colorPresets:v,activeColor:r.color,onClick:e=>t({color:e}),innerRef:i("color",!o),lastToolbarActionUsedKeyboard:c}))),title:f(be.Z.color),group:"color",type:"color",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Color")},{node:u.createElement(jl.OpacityComponent,{intl:e.intl,type:"Text-Markup",styles:Zl(),annotation:r,updateAnnotation:e=>t(e),caretDirection:"bottom"===n?"up":"down",innerRef:i("opacity"),shadowRoot:h}),title:f(be.Z.opacity),group:"opacity",type:"opacity",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:u.createElement("div",{className:Zl().controlWrapper},u.createElement("div",{className:Zl().control},u.createElement(hc,{value:r.blendMode,className:"PSPDFKit-Text-Markup-Annotation-Toolbar-Blend-Mode",onChange:e=>t({blendMode:e}),caretDirection:"bottom"===n?"up":"down",frameWindow:e.frameWindow,ref:i("blendMode")}))),title:f(be.Z.blendMode),group:"blendMode",type:"blend-mode",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-BlendMode")},{node:u.createElement(Ll.Z,{type:"delete",icon:(0,ec.KT)(d),title:f(be.Z.delete),className:p()("PSPDFKit-Text-Markup-Annotation-Toolbar-Button-Delete",Zl().button,Zl().deleteButton,{[Zl().disabledButton]:!l}),onPress:l?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!o||e.isEditing},{node:u.createElement(ql,{intl:e.intl,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.isEditing}],b={className:Zl().button,presentational:e.viewportWidth>=Ae.GI,disabled:!!o};return u.createElement("div",{className:p()("PSPDFKit-Text-Markup-Annotation-Toolbar",Zl().content)},u.createElement(Jl,{annotationToolbarItems:d,builtInItems:y,btnFocusRefIfFocusedItem:a,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:b,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:o,onGroupTransitionEnded:e.onGroupTransitionEnded,position:n,typeMap:{color:"border-color"}}))}));const yc=vc;var bc=n(4345),wc=n(13538),xc=n(8087),_c=n.n(xc),Sc=n(79579),Cc=n.n(Sc);const Ec=e=>{let{item:t,state:n,itemComponentProps:r,ref:o}=e;return u.createElement(kc,{item:t,state:n,fontFamily:void 0,itemComponentProps:r,ref:o})},kc=u.forwardRef(((e,t)=>{let{item:n,state:r,fontFamily:o,itemComponentProps:i,width:a}=e;return u.createElement(pe.Z,(0,oe.Z)({is:"div",className:p()(bl().item,_c().item,{[bl().isSelected]:r?.includes("selected")||r?.includes("focused")}),name:n?.value??n?.label,style:{fontFamily:o,width:a},ref:t},i),r?.includes("selected")?u.createElement(Pe.Z,{src:Cc(),className:_c().icon}):u.createElement("span",{className:_c().icon}),n?.label)})),zc=e=>function(t){let{btnComponentProps:n,selectedItem:r,caretDirection:i,disabled:a,isOpen:s}=t;const l=u.useRef(),{formatMessage:c}=(0,he.YB)();u.useLayoutEffect((()=>{l.current&&(l.current.value=r?.label||"")}),[r]);const d=u.useCallback((()=>{const t=l.current?.value;if(t&&l.current&&t!==r?.label){const n=parseFloat(t);Number.isNaN(n)?l.current.value=r?.label??"":e({selectedItem:{label:n.toString()??"",value:n.toString()??""},preventFocusShift:!1})}}),[r?.label]);return u.createElement("div",{className:p()(_c().wrapper)},u.createElement($l,{accessibilityLabel:c(be.Z.fontSize),className:_c().textInput,onBlur:d,onKeyDown:t=>{const n=l.current?.value??"0";if("ArrowUp"===t.key){const t=parseFloat(n)+1;e({selectedItem:{label:t.toString()??"",value:t.toString()??""},preventFocusShift:!0})}else if("ArrowDown"===t.key){const t=Math.max(0,parseFloat(n)-1);e({selectedItem:{label:t.toString()??"",value:t.toString()??""},preventFocusShift:!0})}else"Enter"===t.key&&(t.preventDefault(),d())},onFocus:()=>{fe.G6&&setTimeout((()=>{l.current&&l.current.setSelectionRange(0,l.current.value.length)}),100)},name:"fontSize",styles:{input:p()({[_c().inputDisabled]:a},_c().textInputField)},disabled:a,ref:l,autoFocus:!1}),u.createElement("button",(0,oe.Z)({},n,{ref:n.ref,key:r?.value??r?.label,className:p()("PSPDFKit-Input-Dropdown-Button",bl().selectBox,_c().arrowDropdownBtn,_c().fontSizeDropdownBtn,{[_c().inputDisabled]:a,[bl().disabled]:a}),disabled:a}),u.createElement(o.TX,null,c(be.Z.fontSize)),u.createElement("div",null,(0,we.Z)({type:`caret-${i}`,style:{width:12,height:12,flexBasis:12},className:p()(bl().dropdownIcon,{[bl().isOpen]:s})}))))},Pc=function(e){const{disabled:t=!1}=e;return u.createElement(hl.Z,{frameWindow:e.frameWindow,items:e.items,value:e.value,className:e.className,maxCols:1,isActive:!1,caretDirection:e.caretDirection,disabled:t,menuClassName:p()(e.menuClass,_c().dropdownMenu),ButtonComponent:zc(e.onSelect),ItemComponent:Ec,onSelect:(t,n)=>{e.onSelect({selectedItem:n,preventFocusShift:!1})},menuPositionOffsets:{top:-1}})},Dc=u.forwardRef((function(e,t){const{caretDirection:r,onChange:i,frameWindow:a,intl:s,styles:l,fontSizes:c,fontFamilyItems:d,isBold:h=!1,isItalic:f=!1,isUnderline:m=!1,currentFontFamily:g,currentFontSize:v,currentHorizontalAlign:y,currentVerticalAlign:b,showAlignmentOptions:w,showFontStyleOptions:x,disabled:_=!1,showUnderline:S=!1}=e,{formatMessage:C}=s,E=u.useCallback(Ic(150,r,l,_,l.fontFamily),[r,l,_]),k=c.map((e=>({label:e.toString(),value:e.toString(),disabled:!1}))),z=d.map((e=>u.createElement("option",{key:e.value??e.label,value:e.value??e.label,disabled:e.disabled},e.label)));return u.createElement("div",{className:l.controlWrapper},u.createElement("div",{className:p()(l.control,l.textFormatControls)},u.createElement("div",{className:p()(l.fontFamilyNativeFlexbox)},u.createElement("div",{className:l.nativeDropdown},u.createElement("select",{"aria-label":C(be.Z.font),className:"PSPDFKit-Input-Dropdown-Select",value:g??"",onChange:e=>{void 0!==e.target.value&&i({modification:{font:e.target.value}})},ref:t,disabled:_},z,d.some((e=>e.value===g))?null:u.createElement("option",{style:{display:"none"}},g)))),u.createElement(hl.Z,{items:d,value:g?{label:g,value:g}:null,accessibilityLabel:C(be.Z.font),discreteDropdown:!1,isActive:!1,caretDirection:r,className:p()(e.fontFamilyClasses,l.fontFamilySelect),menuClassName:p()(l.dropdownMenu,e.fontFamilyMenuClasses),ButtonComponent:E,ItemComponent:Tc,onSelect:(e,t)=>{null!=t.value&&i({modification:{font:t.value}})},frameWindow:a,disabled:_}),u.createElement(Pc,{items:k,value:{label:v?v.toString():"",value:(v??"").toString()||""},frameWindow:a,className:p()(l.fontSizeSelect,e.fontSizeClasses),menuClass:p()(e.fontSizeMenuClasses),caretDirection:r,disabled:_,onSelect:e=>{let{selectedItem:t,preventFocusShift:n}=e;null!=t.value&&i({modification:{fontSize:Number(t.value)},preventFocusShift:n})}}),x?u.createElement(u.Fragment,null,u.createElement(o.zx,{className:p()(l.fontStyleBtn,l.fontStyleBtnBorderless,{[l.activeFontStyleBtn]:h}),style:{marginRight:8},title:C(be.Z.bold),onClick:()=>{i({modification:{bold:!h}})},disabled:_,"aria-pressed":h},u.createElement(Pe.Z,{src:n(6274)}),u.createElement(o.TX,null,C(be.Z.bold))),u.createElement(o.zx,{className:p()(l.fontStyleBtn,l.fontStyleBtnBorderless,{[l.activeFontStyleBtn]:f}),onClick:()=>{i({modification:{italic:!f}})},disabled:_,title:C(be.Z.italic),"aria-pressed":f},u.createElement(Pe.Z,{src:n(66311)}),u.createElement(o.TX,null,C(be.Z.italic))),S&&u.createElement(o.zx,{className:p()(l.fontStyleBtn,l.fontStyleBtnBorderless,{[l.activeFontStyleBtn]:m}),style:{marginLeft:8},onClick:()=>{i({modification:{underline:!m}})},disabled:_,title:C(be.Z.underline),"aria-pressed":m},u.createElement(Pe.Z,{src:n(1438)}),u.createElement(o.TX,null,C(be.Z.underline)))):null,w?u.createElement(u.Fragment,null,u.createElement("span",{className:l.radioGroupWrapper},u.createElement(o.Ee,{inputName:"horizontalAlign",label:C(be.Z.horizontalAlignment),selectedOption:y??"",labelClassNamePrefix:e.horizontalAlignClasses??"",options:["left","center","right"].map((e=>({value:e,label:C(be.Z[`alignment${(0,Yt.kC)(e)}`]),iconPath:n(58758)(`./text-align-horizontal-${e}.svg`)}))),onChange:e=>i({modification:{horizontalAlign:e}}),disabled:_})),u.createElement(o.Ee,{inputName:"verticalAlign",label:C(be.Z.verticalAlignment),selectedOption:b??"",labelClassNamePrefix:e.verticalAlignClasses??"",options:["top","center","bottom"].map((e=>({value:e,label:C(be.Z["center"===e?"alignmentCenter":e]),iconPath:n(29712)(`./text-align-vertical-${e}.svg`)}))),onChange:e=>i({modification:{verticalAlign:e}}),disabled:_})):null))})),Ac=u.forwardRef(((e,t)=>{let{item:n,state:r,fontFamily:o,itemComponentProps:i,width:a}=e;return u.createElement(pe.Z,(0,oe.Z)({is:"div",className:p()(bl().item,{[bl().isSelected]:r?.includes("selected")||r?.includes("focused")}),name:n?.value??n?.label,style:{fontFamily:o,width:a},ref:t},i),n?.label)})),Tc=e=>{let{item:t,state:n,itemComponentProps:r}=e;return u.createElement(Ac,{item:t,state:n,fontFamily:t?.label,itemComponentProps:r})},Ic=(e,t,n,r,o)=>i=>{let{btnComponentProps:a,selectedItem:s}=i;return u.createElement("button",(0,oe.Z)({},a,{ref:a.ref,key:s?.value??s?.label,className:p()("PSPDFKit-Input-Dropdown-Button",bl().selectBox,n.selectBox,{[ml().isDisabled]:r,[n.controlIsDisabled]:r,[bl().disabled]:r}),style:{width:e},disabled:r}),u.createElement("span",{className:o},s?.label),u.createElement("div",null,(0,we.Z)({type:`caret-${t}`,style:{width:12,height:12,flexBasis:12},className:p()(bl().dropdownIcon)})))};var Mc=n(17448),Rc=n.n(Mc);const Fc=u.forwardRef((function(e,t){const{annotation:n,caretDirection:r,onChange:o,frameWindow:i,intl:a,styles:s,showInlineFontStyles:l=!0,customFontsReadableNames:c}=e,{formatMessage:d}=a,{fontSizePresets:p}=wc.default,h=Math.round(n.fontSize),f=-1===p.indexOf(h)?p.concat(h).sort(((e,t)=>e-t)):p,m=la.vt.toArray().map((e=>({label:e,value:e}))),g=m.concat(c.toArray().map((e=>({label:e,value:e}))).filter((e=>!m.some((t=>t.value===e.value)))));if(!la.vt.has(n.font)&&!c.has(n.font)&&""!==n.font.trim()){const e=d(be.Z.fontFamilyUnsupported,{arg0:n.font});g.push({label:e,value:e,disabled:!0})}return u.createElement(Dc,{onChange:e=>{let{modification:t}=e;return o(t)},caretDirection:r,frameWindow:i,ref:t,intl:a,styles:{...s,fontStyleBtn:Rc().fontStyleBtn,fontStyleBtnBorderless:Rc().fontStyleBtnBorderless,activeFontStyleBtn:Rc().activeFontStyleBtn},fontSizes:f,fontFamilyItems:g,showAlignmentOptions:!0,showFontStyleOptions:l,showUnderline:l,isBold:e.selectedIsBold,isItalic:e.selectedIsItalic,isUnderline:e.selectedIsUnderline,currentFontFamily:n.font,currentFontSize:h,currentHorizontalAlign:n.horizontalAlign,currentVerticalAlign:n.verticalAlign,fontFamilyClasses:"PSPDFKit-Text-Annotation-Toolbar-Font-Family",fontSizeClasses:"PSPDFKit-Text-Annotation-Toolbar-Font-Size",horizontalAlignClasses:"PSPDFKit-Text-Annotation-Toolbar-Alignment",verticalAlignClasses:"PSPDFKit-Text-Annotation-Toolbar-Vertical-Alignment",inlineStyleClasses:"PSPDFKit-Text-Annotation-Toolbar-Inline-Style"})})),Nc=new k.Il({r:.5,g:.5,b:.5});const Oc=u.memo((function(e){const t=u.useRef(null),n=(0,s.v9)((e=>e.shadowRoot)),r="xhtml"===e.annotation.text.format,i=(0,yr.R9)((t=>{if(!e.canEditAnnotationCP)return;let r=e.annotation.merge(t);if((0,O.Vc)(r))e.updateAnnotation(t);else if(e.selectedAnnotationPageSize&&(t.fontSize||t.font||t.text&&"xhtml"===t.text.format)){const{rotation:o}=r;let i=(0,Re.h4)(r);const a=i.boundingBox.getCenter();i=(0,Zt.Zv)(i.set("rotation",0),e.selectedAnnotationPageSize,e.zoomLevel,n),i=(0,Zt.XA)(i,e.zoomLevel);const s=new k.E9({x:i.boundingBox.getCenter().x-a.x,y:i.boundingBox.getCenter().y-a.y}),l=s.rotate(o),c=new k.E9({x:l.x-s.x,y:l.y-s.y});i=i.update("boundingBox",(e=>e?.translate(c))),r=(0,Re.az)(i.set("rotation",o)),e.updateAnnotation({...t,isFitting:r.isFitting,boundingBox:r.boundingBox})}else{const{isFitting:n}=(0,Zt.XA)((0,Re.h4)(r).set("rotation",0),e.zoomLevel);e.updateAnnotation({...t,isFitting:n})}e.richTextEditorRef&&bc.F3.focus(e.richTextEditorRef)})),{activeTextStyle:a,updateAnnotationOrEditorText:l,selectedIsUnderline:c,selectedIsBold:d,selectedIsItalic:h}=function(e){let{editor:t,frameWindow:n,updateAnnotation:r,text:i,isRichText:a}=e;const[s,l]=(0,u.useState)(null),[c,d]=(0,u.useState)(!1),[p,h]=(0,u.useState)(!1),[f,m]=(0,u.useState)(!1),g=(0,u.useCallback)((()=>{t&&(d(o.ri.isMarkActive(t,"bold")),h(o.ri.isMarkActive(t,"italic")),m(o.ri.isMarkActive(t,"underline")))}),[t]),v=(0,u.useCallback)((()=>{if(!t||!a)return;const e=(0,Yt.BK)(o.ri.getSelectedNodesColor(t,"fontColor")),n=(0,Yt.BK)(o.ri.getSelectedNodesColor(t,"backgroundColor"));l({fontColor:e?k.Il.fromHex(e):Nc,backgroundColor:n?k.Il.fromHex(n):null}),g()}),[t,g,a]);t&&(t.onSelectionChange=v,t.onValueChange=()=>{g(),v()}),(0,u.useEffect)((()=>{if(a&&t)return n.document?.addEventListener("keydown",e),()=>{n.document?.removeEventListener("keydown",e)};function e(e){t&&(!e.ctrlKey&&!e.metaKey||"u"!==e.key&&"i"!==e.key&&"b"!==e.key||g())}}),[t,n,a,g]);const y=(0,u.useCallback)((e=>{const a=new Map(Object.entries(e)),s=a.has("fontColor")||a.has("backgroundColor"),c=a.has("bold")||a.has("italic")||a.has("underline");if(s){const a=e.fontColor?"fontColor":"backgroundColor";if(o.ri.isRangeSelected(t))o.ri.applyStyle(t,a,e[a]&&!e[a]?.equals(k.Il.TRANSPARENT)?e[a].toHex():null),r({text:{format:"xhtml",value:o.ri.serialize(t?.children[0])}}),l((t=>({...t,[a]:e[a]}))),n.getSelection()?.removeAllRanges();else if("fontColor"===a){const t=o.ri.setStyleOrToggleFormat(i,a,e[a].toHex());r({text:{format:"xhtml",value:t},fontColor:e.fontColor})}else l({backgroundColor:e.backgroundColor}),r(e)}else if(c){const n=Object.keys(e)[0];if(t&&o.ri.isRangeSelected(t)){switch(o.ri.toggleMark(t,n),n){case"bold":d(e.bold);break;case"italic":h(e.italic);break;case"underline":m(e.underline)}r({text:{format:"xhtml",value:o.ri.serialize(t?.children[0])}})}else{const e=o.ri.setStyleOrToggleFormat(i,n);r({text:{format:"xhtml",value:e}})}}else r(e)}),[r,i,t,n]);if(a){if(t)return{activeTextStyle:s,updateAnnotationOrEditorText:y,selectedIsBold:c,selectedIsItalic:p,selectedIsUnderline:f};{const{fontColor:e,isUnderlined:t,isItalic:n,isBold:r}=o.ri.getComputedStyleAll(i);return{activeTextStyle:{fontColor:e?k.Il.fromHex(e):void 0,backgroundColor:s?.backgroundColor},updateAnnotationOrEditorText:y,selectedIsBold:r,selectedIsItalic:n,selectedIsUnderline:t}}}return{updateAnnotationOrEditorText:r}}({editor:e.richTextEditorRef,frameWindow:e.frameWindow,updateAnnotation:i,text:e.annotation.text?.value||"",isRichText:r}),{annotation:f,position:m,intl:g,expandedGroup:v,btnFocusRefIfFocusedGroup:y,canDeleteSelectedAnnotationCP:b,keepSelectedTool:w,interactionMode:x,annotationToolbarColorPresets:_}=e,{formatMessage:S}=g,C="bottom"===m?"up":"down",E={onChange:l,annotation:f,styles:Zl(),intl:g,caretDirection:C},z=w&&x===j.A.TEXT,P=[{node:u.createElement("div",{className:Zl().controlWrapper},u.createElement("div",{className:Zl().control},u.createElement(Bl.Z,(0,oe.Z)({},E,{record:r?{...a,opacity:f.opacity}:f,colorProperty:"fontColor",className:"PSPDFKit-Text-Annotation-Toolbar-Font-Color",removeTransparent:!0,frameWindow:e.frameWindow,accessibilityLabel:S(be.Z.color),innerRef:y("color"),annotationToolbarColorPresets:_})))),title:S(be.Z.color),type:"color",group:"color",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-TextColor")},{node:u.createElement("div",{className:Zl().controlWrapper},u.createElement("div",{className:Zl().control},u.createElement(Bl.Z,(0,oe.Z)({},E,{record:r?{...a,opacity:f.opacity,...!e.richTextEditorRef&&{backgroundColor:f.backgroundColor}}:f,colorProperty:"backgroundColor",className:"PSPDFKit-Text-Annotation-Toolbar-Background-Color",frameWindow:e.frameWindow,accessibilityLabel:S(be.Z.fillColor),innerRef:y("backgroundColor"),annotationToolbarColorPresets:_})))),title:S(be.Z.fillColor),type:"background-color",group:"backgroundColor",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor")},x===j.A.CALLOUT||(0,O.Vc)(f)?{node:u.createElement("div",{className:Zl().controlWrapper},u.createElement("div",{className:Zl().control},u.createElement(Bl.Z,(0,oe.Z)({},E,{record:f,colorProperty:"borderColor",className:"PSPDFKit-Text-Annotation-Toolbar-Border-Color",frameWindow:e.frameWindow,accessibilityLabel:S(be.Z.borderColor),innerRef:y("borderColor"),annotationToolbarColorPresets:_})))),title:S(be.Z.borderColor),type:"border-color",group:"borderColor",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-BorderColor")}:null,{node:u.createElement(jl.OpacityComponent,{intl:e.intl,type:"Text",styles:Zl(),annotation:f,updateAnnotation:i,caretDirection:C,innerRef:y("opacity"),shadowRoot:n}),title:S(be.Z.opacity),type:"opacity",group:"opacity",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:u.createElement(Fc,(0,oe.Z)({},E,{frameWindow:e.frameWindow,ref:y("font"),selectedIsBold:d,selectedIsItalic:h,selectedIsUnderline:c,showInlineFontStyles:r,customFontsReadableNames:e.customFontsReadableNames})),title:S(be.Z.font),type:"font",group:"font",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Font")},{node:u.createElement(Ll.Z,{type:"delete",icon:(0,ec.KT)(e.annotationToolbarItems),title:S(be.Z.delete),className:p()("PSPDFKit-Text-Annotation-Toolbar-Button-Delete",Zl().button,Zl().deleteButton,{[Zl().disabledButton]:!b}),onPress:b?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:z||null===e.annotation.pageIndex||!!v,disabled:!e.canDeleteSelectedAnnotationCP}].filter(Boolean),D={className:Zl().button,presentational:e.viewportWidth>Ae.GI,disabled:!!v};return u.createElement("div",{ref:t,className:p()("PSPDFKit-Text-Annotation-Toolbar",Zl().content)},u.createElement(Jl,{annotationToolbarItems:e.annotationToolbarItems,builtInItems:P,btnFocusRefIfFocusedItem:e.btnFocusRefIfFocusedItem,onGroupExpansion:e.onGroupExpansion,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:e.expandedGroup,builtInToolbarProps:D,onGroupTransitionEnded:e.onGroupTransitionEnded,position:e.position,typeMap:{color:"text-color","background-color":"fill-color","border-color":"stroke-color"}}))}));const jc=Oc,Lc=u.forwardRef((function(e,t){const{annotation:n,updateAnnotation:r,intl:i}=e,{formatMessage:a}=i,[s,l]=u.useState(!1),c=u.useCallback((e=>{"Tab"===e.key&&l(!0)}),[l]),d=u.useCallback((()=>{l(!1)}),[l]);return u.createElement("div",{className:Zl().controlWrapper},u.createElement("div",{className:`${Zl().control} PSPDFKit-Note-Annotation-Toolbar-Icons`,role:"radiogroup","aria-label":a(be.Z.icon),onKeyUp:c,onPointerUp:d,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||l(!1)}},Object.keys(st.Zi).map(((e,i)=>{const l=st.Y4[e],c=(0,R.Oe)(l),d=n.icon===e,h=p()(vl().root,Zl().noteIconLabel,Zl().button,Zl().icon,"PSPDFKit-Tool-Button",d&&"PSPDFKit-Tool-Button-active",`PSPDFKit-Note-Annotation-Icon-${c}`,{[Zl().isActive]:d,[Zl().focusRing]:d&&s});return u.createElement("label",{"aria-label":a(Bc[`icon${(0,Yt.kC)(l)}`]),className:h,key:`NoteAnnotationToolbarIcon-${e}`},u.createElement(we.Z,{type:`note/${l}`}),u.createElement(o.TX,{tag:"input",type:"radio",name:Zl().radioInput,value:i,checked:d,onChange:t=>{t.target.checked&&r({icon:e})},ref:d&&t?t:void 0}))}))))})),Bc=(0,he.vU)({iconRightPointer:{id:"iconRightPointer",defaultMessage:"Right Pointer",description:"Icon Right Pointer"},iconRightArrow:{id:"iconRightArrow",defaultMessage:"Right Arrow",description:"Icon Right Arrow"},iconCheck:{id:"iconCheck",defaultMessage:"Checkmark",description:"Icon Checkmark"},iconCircle:{id:"iconCircle",defaultMessage:"Circle",description:"Icon Circle"},iconCross:{id:"iconCross",defaultMessage:"Cross",description:"Icon Cross"},iconInsert:{id:"iconInsert",defaultMessage:"Insert Text",description:"Icon Insert Text"},iconNewParagraph:{id:"iconNewParagraph",defaultMessage:"New Paragraph",description:"Icon New Paragraph"},iconNote:{id:"iconNote",defaultMessage:"Text Note",description:"Icon Text Note"},iconComment:{id:"iconComment",defaultMessage:"Comment",description:"Icon Comment"},iconParagraph:{id:"iconParagraph",defaultMessage:"Paragraph",description:"Icon Paragraph"},iconHelp:{id:"iconHelp",defaultMessage:"Help",description:"Icon Help"},iconStar:{id:"iconStar",defaultMessage:"Star",description:"Icon Star"},iconKey:{id:"iconKey",defaultMessage:"Key",description:"Icon Key"}}),Kc=u.memo((function(e){let{annotation:t,intl:n,updateAnnotation:r,isAnnotationReadOnly:o,deleteAnnotation:i,position:a,viewportWidth:s,expandedGroup:l,btnFocusRefIfFocusedGroup:c,btnFocusRefIfFocusedItem:d,canEditAnnotationCP:h,canDeleteSelectedAnnotationCP:f,keepSelectedTool:m,interactionMode:g,annotationToolbarItems:v,onGroupExpansion:y,hasDesktopLayout:b,onGroupTransitionEnded:w}=e;const{formatMessage:x}=n,_=We.Options.NOTE_COLOR_PRESETS,S=o(t)||t.locked,C=S||t instanceof hr.FN,E=null!==t.pageIndex&&!S,k=m&&g===j.A.NOTE,z=[{node:u.createElement("div",{className:Zl().controlWrapper},u.createElement("div",{className:Zl().control},u.createElement(dc,{className:"PSPDFKit-Note-Annotation-Toolbar-Color",accessibilityLabel:x(be.Z.color),colorPresets:_,activeColor:t.color,onClick:e=>r({color:e}),innerRef:c("color")}))),title:x(be.Z.color),className:`${Zl().formGroup} PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor`,hidden:C,disabled:!h,onPress:()=>{},type:"color",group:"color",hideSeparator:!0},{node:u.createElement(Lc,{annotation:t,updateAnnotation:r,intl:n,ref:c("note")}),title:x(be.Z.icon),hidden:C,onPress:()=>{},disabled:!h,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-NoteIcon"),type:"note-icon",group:"note"},{node:u.createElement(Ll.Z,{type:"delete",icon:(0,ec.KT)(v),title:x(be.Z.delete),className:p()("PSPDFKit-Note-Annotation-Toolbar-Button-Delete",Zl().button,Zl().deleteButton,{[Zl().disabledButton]:!f}),onPress:f?()=>i():()=>{}}),disabled:!f,hidden:k||!(E&&"note"!==l&&"color"!==l),type:"delete",onPress:()=>{},className:""}],P={className:Zl().button,presentational:s>Ae.GI,disabled:!!l};return u.createElement("div",{className:p()("PSPDFKit-Note-Annotation-Toolbar",Zl().content)},u.createElement(Jl,{annotationToolbarItems:v,builtInItems:z,btnFocusRefIfFocusedItem:d,onGroupExpansion:y,builtInToolbarProps:()=>P,hasDesktopLayout:b,expandedGroup:l,onGroupTransitionEnded:w,position:a,typeMap:{"note-icon":"note",color:"fill-color"}}))}));const Vc=Kc,Hc=u.memo((function(e){const t=(0,yr.R9)((t=>{const{annotation:n,isEditing:r,dispatch:o,canEditAnnotationCP:i}=e;if(i)if(n.lines.size>0&&r){const{boundingBox:e,...n}=t;o((0,at.gX)(n)),o((0,Pt.P4)())}else t.lineWidth&&n.lines.size>0&&(t.boundingBox=n.boundingBox.grow((t.lineWidth-n.lineWidth)/2)),e.updateAnnotation(t)})),{annotation:n,intl:r,position:o,isEditing:i,expandedGroup:a,canDeleteSelectedAnnotationCP:l,btnFocusRefIfFocusedGroup:c,lastToolbarActionUsedKeyboard:d,annotationToolbarItems:h,btnFocusRefIfFocusedItem:f}=e,m=(0,s.v9)((e=>e.shadowRoot)),{formatMessage:g}=r,v={onChange:t,record:n,styles:Zl(),intl:r,caretDirection:"bottom"===o?"up":"down",frameWindow:e.frameWindow},y=e.areOnlyElectronicSignaturesEnabled&&e.annotation.isSignature,b=[{node:u.createElement("div",{className:Zl().controlWrapper},u.createElement("div",{className:Zl().control},u.createElement(Bl.Z,(0,oe.Z)({},v,{className:"PSPDFKit-Ink-Annotation-Toolbar-Stroke-Color",colorProperty:"strokeColor",removeTransparent:!0,accessibilityLabel:g(be.Z.color),innerRef:c("color",!a),lastToolbarActionUsedKeyboard:d,annotationToolbarColorPresets:e.annotationToolbarColorPresets})))),title:g(be.Z.color),className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-StrokeColor"),hidden:y,disabled:!e.canEditAnnotationCP,type:"stroke-color",group:"color"},{node:u.createElement("div",{className:Zl().controlWrapper},u.createElement("div",{className:Zl().control},u.createElement(Bl.Z,(0,oe.Z)({},v,{accessibilityLabel:g(be.Z.fillColor),className:"PSPDFKit-Ink-Annotation-Toolbar-Background-Color",colorProperty:"backgroundColor",innerRef:c("backgroundColor"),annotationToolbarColorPresets:e.annotationToolbarColorPresets})))),title:g(be.Z.fillColor),className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor"),hidden:y,disabled:!e.canEditAnnotationCP,type:"fill-color",group:"backgroundColor"},{node:u.createElement(jl.OpacityComponent,{intl:e.intl,type:"Ink",styles:Zl(),annotation:n,updateAnnotation:t,caretDirection:"bottom"===o?"up":"down",innerRef:c("opacity"),shadowRoot:m}),title:g(be.Z.opacity),className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity"),hidden:y,disabled:!e.canEditAnnotationCP,type:"opacity",group:"opacity"},{node:u.createElement(jl.StrokeWidthComponent,{intl:e.intl,type:"Ink",styles:Zl(),annotation:n,updateAnnotation:t,caretDirection:"bottom"===o?"up":"down",accessibilityLabel:g(be.Z.thickness),ref:c("lineWidth")}),title:g(be.Z.thickness),className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth"),hidden:y,disabled:!e.canEditAnnotationCP,type:"line-width",group:"lineWidth"},{node:u.createElement("div",{className:Zl().controlWrapper},u.createElement("div",{className:Zl().control},u.createElement(hc,{value:n.blendMode,className:"PSPDFKit-Ink-Annotation-Toolbar-Blend-Mode",onChange:e=>t({blendMode:e}),caretDirection:"bottom"===o?"up":"down",frameWindow:e.frameWindow,ref:c("blendMode")}))),title:g(be.Z.blendMode),className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-BlendMode"),hidden:y,disabled:!e.canEditAnnotationCP,type:"blend-mode",group:"blendMode"},{node:u.createElement(Ll.Z,{type:"delete",icon:(0,ec.KT)(h),title:g(be.Z.delete),className:p()("PSPDFKit-Ink-Annotation-Toolbar-Button-Delete",Zl().button,Zl().deleteButton,{[Zl().disabledButton]:!l}),onPress:l?()=>e.deleteAnnotation():()=>{}}),disabled:!l,hidden:!(null!=e.annotation.pageIndex&&!i),type:"delete"},{node:u.createElement(ql,{intl:r,isEditing:i,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),hidden:e.areOnlyElectronicSignaturesEnabled||!e.showAnnotationNotes||i,disabled:!e.canEditAnnotationCP,type:"annotation-note"}],w={className:Zl().button,presentational:e.viewportWidth>Ae.GI,disabled:!!a};return u.createElement("div",{className:p()("PSPDFKit-Ink-Annotation-Toolbar",Zl().content)},u.createElement(Jl,{annotationToolbarItems:h,builtInItems:b,btnFocusRefIfFocusedItem:f,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:w,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:a,onGroupTransitionEnded:e.onGroupTransitionEnded,position:o}))}));const $c=Hc;var Uc=n(20253),Zc=n(67057);function qc(e){return{desktop:["stroke-color","fill-color","opacity","line-width",e?"linecaps-dasharray":"line-style","spacer","annotation-note","delete"],mobile:["delete","annotation-note","spacer","stroke-color","fill-color","opacity","line-width",e?"linecaps-dasharray":"line-style"]}}const Gc=a.d0({[ie.Zc.readableName]:{desktop:["stroke-color","fill-color","opacity","line-width","blend-mode","spacer","annotation-note","delete"],mobile:["delete","annotation-note","spacer","stroke-color","fill-color","opacity","line-width","blend-mode"]},[ie.b3.readableName]:qc(!1),[ie.Xs.readableName]:qc(!1),[ie.o9.readableName]:qc(!0),[ie.om.readableName]:qc(!0),[ie.Hi.readableName]:qc(!1),[ie.On.readableName]:{desktop:["color","opacity","blend-mode","spacer","annotation-note","delete"],mobile:["delete","annotation-note","spacer","color","opacity","blend-mode"]},[ie.sK.readableName]:{desktop:["opacity","counterclockwise-rotation","clockwise-rotation","spacer","annotation-note","delete"],mobile:["delete","annotation-note","spacer","opacity","counterclockwise-rotation","clockwise-rotation"]},[ie.GI.readableName]:{desktop:["opacity","spacer","annotation-note","delete"],mobile:["delete","annotation-note","spacer","opacity"]},[ie.x_.readableName]:{desktop:["opacity","counterclockwise-rotation","clockwise-rotation","spacer","annotation-note","delete"],mobile:["delete","counterclockwise-rotation","clockwise-rotation","annotation-note","spacer","opacity"]},[ie.gd.readableName]:{desktop:["color","background-color","border-color","opacity","font","spacer","delete"],mobile:["delete","spacer","color","background-color","border-color","opacity","font"]},[q.Z.readableName]:{desktop:["fill-color","overlay-text","outline-color","opacity","spacer","annotation-note","delete","apply-redactions"],mobile:["delete","apply-redactions","annotation-note","spacer","fill-color","overlay-text","outline-color","opacity"]},[ie.Qi.readableName]:{desktop:["color","note-icon","spacer","delete"],mobile:["delete","spacer","color","note-icon"]},[ie.R1.readableName]:{desktop:["stroke-color","opacity","line-width","spacer","annotation-note","delete","line-style"],mobile:["delete","annotation-note","spacer","stroke-color","opacity","line-width","line-style"]},Measurement:{desktop:["back","measurementType","measurementScale","stroke-color","opacity","line-width","snapping","spacer","annotation-note","delete"],mobile:["back","measurementType","measurementScale","delete","annotation-note","spacer","stroke-color","opacity","line-width","snapping"]}}),Wc=(0,M.Z)("AnnotationToolbarItem");const Yc=function(e){const{intl:t,position:n,annotation:r,expandedGroup:o,btnFocusRefIfFocusedItem:i,annotationToolbarItems:a,hasDesktopLayout:l,btnFocusRefIfFocusedGroup:c,lastToolbarActionUsedKeyboard:d,name:h,canDeleteSelectedAnnotationCP:f}=e,m=(0,s.v9)((e=>e.shadowRoot)),g=(0,yr.R9)((t=>{const{annotation:n,canEditAnnotationCP:r}=e;r&&(t.strokeWidth&&(t.boundingBox=n.boundingBox.grow((t.strokeWidth-n.strokeWidth)/2)),e.updateAnnotation(t))})),v=r instanceof k.b3||r instanceof k.Xs?e.updateAnnotation:g,y=r instanceof k.o9||r instanceof k.om,{formatMessage:b}=t,w={updateAnnotation:v,annotation:r,styles:Zl(),intl:t,caretDirection:"bottom"===n?"up":"down"},x=[{node:u.createElement(Bl.Z,(0,oe.Z)({},w,{record:e.annotation,colorProperty:"strokeColor",onChange:e.updateAnnotation,className:`PSPDFKit-${h}-Annotation-Toolbar-Stroke-Color`,removeTransparent:!0,frameWindow:e.frameWindow,accessibilityLabel:b(be.Z.color),innerRef:c("color",!o),lastToolbarActionUsedKeyboard:d,annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:b(be.Z.color),group:"color",type:"stroke-color",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox",{"PSPDFKit-Toolbox-BorderColor":!y,"PSPDFKit-Toolbox-StrokeColor":y})},{node:u.createElement(Bl.Z,(0,oe.Z)({},w,{record:r,colorProperty:"fillColor",onChange:e.updateAnnotation,className:`PSPDFKit-${h}-Annotation-Toolbar-Fill-Color`,frameWindow:e.frameWindow,accessibilityLabel:b(be.Z.fillColor),innerRef:c("fillColor"),annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:b(be.Z.fillColor),group:"fillColor",type:"fill-color",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor")},{node:u.createElement(jl.OpacityComponent,(0,oe.Z)({},w,{type:h,innerRef:c("opacity"),shadowRoot:m})),title:b(be.Z.opacity),group:"opacity",type:"opacity",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:u.createElement(jl.StrokeWidthComponent,(0,oe.Z)({},w,{type:h,accessibilityLabel:b(be.Z.thickness),ref:c("line-width")})),title:b(be.Z.thickness),group:"line-width",type:"line-width",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth")},...r instanceof k.o9||r instanceof k.om?[{node:u.createElement(jl.LineCapsDashArrayComponent,(0,oe.Z)({},w,{frameWindow:e.frameWindow,innerRef:c("linecaps-dasharray")})),title:b(be.Z["linecaps-dasharray"]),group:"linecaps-dasharray",type:"linecaps-dasharray",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineCaps-DashArray")}]:[{node:u.createElement(jl.LineStyleComponent,(0,oe.Z)({},w,{frameWindow:e.frameWindow,innerRef:c("linestyle")})),title:b(be.Z.linestyle),group:"linestyle",type:"line-style",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineStyle")}],{node:u.createElement(Ll.Z,{type:"delete",icon:(0,ec.KT)(a),title:b(be.Z.delete),className:p()(`PSPDFKit-${h}-Annotation-Toolbar-Button-Delete`,Zl().button,Zl().deleteButton,{[Zl().disabledButton]:!f}),onPress:f?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!o},{node:u.createElement(ql,{intl:e.intl,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.isEditing}],_={className:Zl().button,presentational:e.viewportWidth>Ae.GI,disabled:!!o},S={"line-style":"linestyle"};return r instanceof k.o9||r instanceof k.om||(S["stroke-color"]="border-color"),u.createElement("div",{className:p()(`PSPDFKit-${h}-Annotation-Toolbar`,Zl().content)},u.createElement(Jl,{annotationToolbarItems:a,builtInItems:x,btnFocusRefIfFocusedItem:i,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:_,hasDesktopLayout:l,expandedGroup:o,onGroupTransitionEnded:e.onGroupTransitionEnded,position:n,typeMap:S}))},Xc=u.memo((function(e){const{formatMessage:t}=e.intl,n=[{node:u.createElement(Ll.Z,{type:"widget_ccw",title:t(be.Z.rotateCounterclockwise),className:`PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate-Counterclockwise ${Zl().button} ${Zl().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,O.eJ)(e.annotation,e.selectedAnnotationPageSize,O.z1.COUNTERCLOCKWISE))}}),type:"counterclockwise-rotation",disabled:!e.canEditAnnotationCP},{node:u.createElement(Ll.Z,{type:"widget_cw",title:t(be.Z.rotateClockwise),className:`PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate PSPDFKit-Widget-Toolbar-Button-Rotate-Clockwise ${Zl().button} ${Zl().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,O.eJ)(e.annotation,e.selectedAnnotationPageSize,O.z1.CLOCKWISE))}}),type:"clockwise-rotation",disabled:!e.canEditAnnotationCP},{node:u.createElement(Ll.Z,{type:"delete",icon:(0,ec.KT)(e.annotationToolbarItems),title:t(be.Z.delete),className:p()("PSPDFKit-Widget-Annotation-Toolbar-Button-Delete",Zl().button,Zl().deleteButton,{[Zl().disabledButton]:!e.canDeleteSelectedAnnotationCP}),onPress:e.canDeleteSelectedAnnotationCP?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex}];return u.createElement("div",{className:`PSPDFKit-Widget-Annotation-Toolbar ${Zl().content}`},u.createElement(Jl,{annotationToolbarItems:e.annotationToolbarItems,builtInItems:n,btnFocusRefIfFocusedItem:e.btnFocusRefIfFocusedItem,onGroupExpansion:e.onGroupExpansion,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:e.expandedGroup,onGroupTransitionEnded:e.onGroupTransitionEnded,position:e.position}))}));var Qc=n(3888);const Jc=u.memo((function(e){const t=(0,he.YB)(),n=(0,s.v9)((e=>e.shadowRoot)),r=(0,yr.R9)((t=>{const{canEditAnnotationCP:n}=e;if(!n)return;const r=function(e,t){if(!t.borderStyle&&("number"==typeof e.borderWidth||e.borderColor instanceof k.Il))return{...e,borderStyle:Qc.N.solid};return e}(t,e.annotation);e.updateAnnotation(r)})),{annotation:o,position:i,expandedGroup:a,canDeleteSelectedAnnotationCP:l,btnFocusRefIfFocusedGroup:c,annotationToolbarItems:d,btnFocusRefIfFocusedItem:h,lastToolbarActionUsedKeyboard:f}=e,m={onChange:r,record:o,styles:Zl(),intl:t,caretDirection:"bottom"===i?"up":"down",frameWindow:e.frameWindow},g=e.annotation.isSignature,v=[{node:u.createElement("div",{className:Zl().controlWrapper},u.createElement("div",{className:Zl().control},u.createElement(Bl.Z,(0,oe.Z)({},m,{className:"PSPDFKit-Link-Annotation-Toolbar-Border-Color",colorProperty:"borderColor",accessibilityLabel:t.formatMessage(be.Z.color),innerRef:c("color",!a),lastToolbarActionUsedKeyboard:f,annotationToolbarColorPresets:e.annotationToolbarColorPresets})))),title:t.formatMessage(be.Z.borderColor),className:p()(Zl().formGroup,"PSPDFKit-Toolbox","PSPDFKit-Toolbox-BorderColor"),hidden:g,disabled:!e.canEditAnnotationCP,type:"stroke-color",group:"color"},{node:u.createElement(jl.OpacityComponent,{intl:e.intl,type:"Link",styles:Zl(),annotation:o,updateAnnotation:r,caretDirection:"bottom"===i?"up":"down",innerRef:c("opacity"),shadowRoot:n}),title:t.formatMessage(be.Z.opacity),className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity"),hidden:g,disabled:!e.canEditAnnotationCP,type:"opacity",group:"opacity"},{node:u.createElement(jl.StrokeWidthComponent,{intl:e.intl,type:"Link",styles:Zl(),annotation:o,updateAnnotation:r,caretDirection:"bottom"===i?"up":"down",accessibilityLabel:t.formatMessage(be.Z.thickness),ref:c("lineWidth")}),title:t.formatMessage(be.Z.thickness),className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth"),hidden:g,disabled:!e.canEditAnnotationCP,type:"line-width",group:"lineWidth"},{node:u.createElement(Ll.Z,{type:"delete",icon:(0,ec.KT)(d),title:t.formatMessage(be.Z.delete),className:p()("PSPDFKit-Link-Annotation-Toolbar-Button-Delete",Zl().button,Zl().deleteButton,{[Zl().disabledButton]:!l}),onPress:l?()=>e.deleteAnnotation():()=>{}}),disabled:!l,hidden:null===e.annotation.pageIndex||!!a,type:"delete"}],y={className:Zl().button,presentational:e.viewportWidth>Ae.GI,disabled:!!a};return u.createElement("div",{className:p()("PSPDFKit-Link-Annotation-Toolbar",Zl().content)},u.createElement(Jl,{annotationToolbarItems:d,builtInItems:v,btnFocusRefIfFocusedItem:h,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:y,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:a,onGroupTransitionEnded:e.onGroupTransitionEnded,position:i}))}));const eu=Jc;var tu=n(70964),nu=n(85151),ru=n(40775),ou=n.n(ru),iu=n(80422);const au=function(e){const{intl:t,position:n,annotation:r,expandedGroup:o,btnFocusRefIfFocusedItem:i,annotationToolbarItems:a,hasDesktopLayout:l,btnFocusRefIfFocusedGroup:c,lastToolbarActionUsedKeyboard:d,canDeleteSelectedAnnotationCP:h,selectedAnnotations:f}=e,m=(0,s.I0)(),g=(0,s.v9)((e=>e.shadowRoot)),v=(0,s.v9)((e=>e.secondaryMeasurementUnit)),y=u.useMemo((()=>e.selectedAnnotations&&e.selectedAnnotations.size>1),[e.selectedAnnotations]),b=u.useMemo((()=>!!f&&(0,A.xA)(f)),[f]),w=u.useMemo((()=>(0,A.bs)(r)),[r]),x=(0,yr.R9)((t=>{const{annotation:n,canEditAnnotationCP:r}=e;if(r){if(t.strokeWidth){if(y&&f){const r=[];return f.forEach((e=>{r.push({boundingBox:e.boundingBox.grow((t.strokeWidth-n.strokeWidth)/2),strokeWidth:t.strokeWidth})})),void e.updateAnnotation(r)}t.boundingBox=n.boundingBox.grow((t.strokeWidth-n.strokeWidth)/2)}e.updateAnnotation(t)}})),_=r instanceof k.b3||r instanceof k.Xs?e.updateAnnotation:x,S=r instanceof k.o9||r instanceof k.om,{formatMessage:C}=t,E={updateAnnotation:_,annotation:r,styles:Zl(),intl:t,caretDirection:"bottom"===n?"up":"down"},z=A.Di.find((e=>e.title===w)),P=u.useMemo((()=>(0,A.Rw)(r,v)),[r,v]),D=[{node:u.createElement(Ll.Z,{type:"back",title:C(be.Z.back),className:p()(`PSPDFKit-${w}-Annotation-Toolbar-Button-Back`,Zl().button,Zl().measurementBackButton),onPress:()=>{(0,s.dC)((()=>{m((0,ve.fz)()),m((0,at.Ds)("measurement")),m((0,Pt.BR)())}))}}),type:"back"},{node:b?u.createElement(iu.Z,{key:C(be.Z.mixedMeasurements),type:"measure",title:C(be.Z.mixedMeasurements),className:p()(z.className,ou().measurementValue,Zl().measurementToolbarButton,"PSPDFKit-Annotation-Toolbar-Measurement")},r&&r?.note?u.createElement(u.Fragment,null,C(be.Z.mixedMeasurements)):null):u.createElement(iu.Z,{key:z.interactionMode,type:z.icon,title:C(be.Z[z.localeKey]),className:p()(z.className,ou().measurementValue,Zl().measurementToolbarButton,"PSPDFKit-Annotation-Toolbar-Measurement")},r&&r?.note?y?u.createElement(u.Fragment,null,z.title):u.createElement(u.Fragment,null,z.title,":"," ",u.createElement("b",null,r.note,P?` (${P.label})`:"")):null),title:C(be.Z[z.localeKey]),type:"measurementType",className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-MeasurementType")},{node:u.createElement(u.Fragment,null,u.createElement(iu.Z,{key:"scale",type:"scale",title:C(Os.sY.measurementScale),className:p()(Zl().measurementToolbarButton)}),u.createElement(nu.ZP,{frameWindow:e.frameWindow,selectedAnnotation:r,onAnnotationScaleUpdate:e.updateAnnotation,selectedAnnotations:e.selectedAnnotations})),title:C(Os.sY.measurementScale),type:"measurementScale",className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-MeasurementScale")},{node:u.createElement(Bl.Z,(0,oe.Z)({},E,{record:e.annotation,colorProperty:"strokeColor",onChange:e.updateAnnotation,className:`PSPDFKit-${w}-Annotation-Toolbar-Stroke-Color`,frameWindow:e.frameWindow,accessibilityLabel:C(be.Z.color),innerRef:c("color",!o),lastToolbarActionUsedKeyboard:d,annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:C(be.Z.color),group:"color",type:"stroke-color",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox",{"PSPDFKit-Toolbox-BorderColor":!S,"PSPDFKit-Toolbox-StrokeColor":S})},{node:u.createElement(jl.OpacityComponent,(0,oe.Z)({},E,{type:w,innerRef:c("opacity"),shadowRoot:g})),title:C(be.Z.opacity),group:"opacity",type:"opacity",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:u.createElement(jl.StrokeWidthComponent,(0,oe.Z)({},E,{type:w,accessibilityLabel:C(be.Z.thickness),ref:c("line-width")})),title:C(be.Z.thickness),group:"line-width",type:"line-width",disabled:!e.canEditAnnotationCP,className:p()(Zl().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth")},{node:u.createElement(Ll.Z,{type:"delete",icon:(0,ec.KT)(a),title:C(be.Z.delete),className:p()(`PSPDFKit-${w}-Annotation-Toolbar-Button-Delete`,Zl().button,Zl().deleteButton,{[Zl().disabledButton]:!h}),onPress:h?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!o},{node:u.createElement(ql,{intl:e.intl,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP||y}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.isEditing}],T={className:Zl().button,presentational:e.viewportWidth>Ae.GI,disabled:!!o},I={"line-style":"linestyle"};return r instanceof k.o9||r instanceof k.om||(I["stroke-color"]="border-color"),u.createElement("div",{className:p()(`PSPDFKit-${w}-Annotation-Toolbar`,Zl().content,Zl().measurementToolbar)},u.createElement(Jl,{annotationToolbarItems:a,builtInItems:D,btnFocusRefIfFocusedItem:i,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:T,hasDesktopLayout:l,expandedGroup:o,onGroupTransitionEnded:e.onGroupTransitionEnded,position:n,typeMap:I}))};class su extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"state",{showConfirmDelete:!1,expandedGroup:null,transitionFinished:!1,prevActiveGroup:null}),(0,v.Z)(this,"focusRef",u.createRef()),(0,v.Z)(this,"deleteAnnotation",(()=>{const e=this.props.annotation,t=this.props.selectedAnnotations&&this.props.selectedAnnotations?.size>1;e&&!t?this.props.dispatch((0,at.d8)((0,a.l4)([e.id]))):t&&this.props.selectedAnnotations&&this.props.dispatch((0,at.d8)(this.props.selectedAnnotations.map((e=>e.id))))})),(0,v.Z)(this,"handleEntered",(()=>{this.setState({transitionFinished:!0})})),(0,v.Z)(this,"handleGroupExpansion",(e=>{e?this.setState({prevActiveGroup:e,expandedGroup:e}):this.setState({expandedGroup:e,transitionFinished:!1})})),(0,v.Z)(this,"_handleKeyPress",(e=>{e.keyCode===jn.zz&&this.state.expandedGroup&&this.handleGroupExpansion()})),(0,v.Z)(this,"updateAnnotation",((e,t,n)=>{if(!e||!this.props.canEditAnnotationCP)return;e=e.merge(t);const r={annotations:(0,a.aV)([e]),reason:X.f.PROPERTY_CHANGE};this.props.eventEmitter.emit("annotations.willChange",r),n&&this.props.dispatch((0,at.Ds)(n));const{text:o,...i}=t;this.props.dispatch((0,at.gX)(i)),this.props.dispatch((0,at.FG)(e))})),(0,v.Z)(this,"updateSingleAnnotation",((e,t)=>{const n=this.props.annotation;this.updateAnnotation(n,e,t)})),(0,v.Z)(this,"updateAnnotations",((e,t)=>{const{selectedAnnotations:n}=this.props;n&&n?.size>1&&(0,s.dC)((()=>{this.props.selectedAnnotations?.toList().forEach(((n,r)=>{Array.isArray(e)?this.updateAnnotation(n,e[r],t):this.updateAnnotation(n,e,t)}))}))})),(0,v.Z)(this,"onAnnotationNotePress",(()=>{const e=this.props.annotation;if(this.isActiveAnnotationNote())this.closeAnnotationNote();else if(e){const t=(0,hr.Yu)(e);this.props.dispatch((0,ve.mv)(t))}})),(0,v.Z)(this,"deleteAnnotationNote",(()=>{const e=this.props.annotation;e&&(this.props.dispatch((0,at.FG)(e.delete("note"))),this.closeAnnotationNote())})),(0,v.Z)(this,"closeAnnotationNote",(()=>{this.props.dispatch((0,ve.mv)(null))})),(0,v.Z)(this,"_handleResize",(e=>{this.props.dispatch((0,Uc.LT)(e.height))}))}isActiveAnnotationNote(){const{activeAnnotationNote:e,annotation:t}=this.props;return Boolean(e&&t&&e.parentAnnotation?.id===t.id)}defaultToolbarItems(){const{annotation:e,annotationToolbarItems:t,viewportWidth:n}=this.props;if((0,l.kG)(e),!Gc.get(cu(e)))return(0,a.aV)();const r=n>Ae.GI,o=Gc.get(cu(e))?.get(r?"desktop":"mobile")?.map((e=>({type:e})));if((0,l.kG)(o,`No default toolbar items found for annotation type: ${cu(e)}`),t){const n=t(e,{hasDesktopLayout:r,defaultAnnotationToolbarItems:o.toJS()});if(n)return n.forEach((t=>{!function(e,t){const n=Gc.get(t);Wc(n,"There are no built-in annotation toolbar items for this annotation type");const r=new Set([...n.get("mobile")?.toJS()??[],...n.get("desktop")?.toJS()??[]]);Wc((0,l.PO)(e)&&!!e,"Expected item to be an object"),e.icon&&"custom"!==e.type?Wc((0,R.HD)(e.icon),"Expected icon to be a string"):e.icon&&Wc((0,R.HD)(e.icon)||e.icon instanceof Node,"Expected icon to be a string or a Node");const{icon:o,...i}=e;(0,zs.G)({...i,type:"custom"}),Wc("type"in e&&(0,R.HD)(e.type)&&[...r,"spacer","custom"].includes(e.type),`Expected item.type to one of ${[...r,"spacer","custom"].join(", ")}`),"custom"===e.type&&(Wc("id"in e&&(0,R.HD)(e.id),"Expected item.id to be a string"),Wc("node"in e||"icon"in e,"Expected item to have either a `node` or `icon` property for custom element"))}(t,cu(e))})),(0,a.aV)(n)}return o}renderContent(){var e=this;const{annotation:t,variantAnnotationPresetID:n,position:r,viewportWidth:o,frameWindow:i,intl:a,showAnnotationNotes:s,canEditAnnotationCP:c,canDeleteSelectedAnnotationCP:d,lastToolbarActionUsedKeyboard:p,interactionMode:h,keepSelectedTool:f,annotationToolbarColorPresets:m,richTextEditorRef:g,customFontsReadableNames:v,isCalibratingScale:y}=this.props;if(!t)return null;const b={deleteAnnotation:this.deleteAnnotation,updateAnnotation:this.props.selectedAnnotations&&this.props.selectedAnnotations?.size>1?this.updateAnnotations:this.updateSingleAnnotation,intl:a,position:r,viewportWidth:o,onGroupTransitionEnded:this.handleEntered,onGroupExpansion:this.handleGroupExpansion,expandedGroup:this.state.expandedGroup,btnFocusRefIfFocusedGroup:function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,ec.CN)(t,e.state.expandedGroup)||n&&null!==h&&o>Ae.GI?e.focusRef:void 0},btnFocusRefIfFocusedItem:function(t,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,ec.Kt)(t,n,e.state.prevActiveGroup)||r&&null!==h&&o<Ae.GI?e.focusRef:void 0},frameWindow:i,canEditAnnotationCP:c,canDeleteSelectedAnnotationCP:d,annotation:t,lastToolbarActionUsedKeyboard:p,annotationToolbarColorPresets:m,annotationToolbarItems:this.defaultToolbarItems(),hasDesktopLayout:o>Ae.GI,customFontsReadableNames:this.props.customFontsReadableNames},w={onAnnotationNotePress:this.onAnnotationNotePress,showAnnotationNotes:s&&!t.isCommentThreadRoot,hasAnnotationNote:Boolean(t.note),isAnnotationNoteActive:this.isActiveAnnotationNote()};return t instanceof q.Z?u.createElement(nc,(0,oe.Z)({},b,w,{annotation:t,isEditing:this.props.selectedAnnotationMode===L.o.EDITING,dispatch:this.props.dispatch,keepSelectedTool:f})):t instanceof k.R1?u.createElement(eu,(0,oe.Z)({},b,w,{annotation:t})):t instanceof k.On?u.createElement(yc,(0,oe.Z)({},b,w,{annotation:t,isEditing:this.props.selectedAnnotationMode===L.o.EDITING,dispatch:this.props.dispatch,variantAnnotationPresetID:n})):t instanceof k.Zc?u.createElement($c,(0,oe.Z)({},b,w,{annotation:t,isEditing:this.props.selectedAnnotationMode===L.o.EDITING,dispatch:this.props.dispatch,areOnlyElectronicSignaturesEnabled:this.props.areOnlyElectronicSignaturesEnabled})):t instanceof tu.Z&&t.isMeasurement()?y?null:u.createElement(au,(0,oe.Z)({},b,w,{annotation:t,dispatch:this.props.dispatch,isEditing:this.props.selectedAnnotationMode===L.o.EDITING,selectedAnnotations:this.props.selectedAnnotations})):t instanceof k.o9?u.createElement(Yc,(0,oe.Z)({},b,w,{annotation:t,isEditing:this.props.selectedAnnotationMode===L.o.EDITING,name:"Line"})):t instanceof k.b3?u.createElement(Yc,(0,oe.Z)({},b,w,{annotation:t,isEditing:this.props.selectedAnnotationMode===L.o.EDITING,name:"Rectangle"})):t instanceof k.Xs?u.createElement(Yc,(0,oe.Z)({},b,w,{annotation:t,isEditing:this.props.selectedAnnotationMode===L.o.EDITING,name:"Ellipse"})):t instanceof k.Hi?u.createElement(Yc,(0,oe.Z)({},b,w,{annotation:t,isEditing:this.props.selectedAnnotationMode===L.o.EDITING,name:"Polygon"})):t instanceof k.om?u.createElement(Yc,(0,oe.Z)({},b,w,{annotation:t,isEditing:this.props.selectedAnnotationMode===L.o.EDITING,name:"Polyline"})):t instanceof k.gd?u.createElement(jc,(0,oe.Z)({},b,{annotation:t,richTextEditorRef:g,selectedAnnotationPageSize:this.props.selectedAnnotationPageSize,zoomLevel:this.props.zoomLevel||1,keepSelectedTool:f,interactionMode:h,customFontsReadableNames:v})):t instanceof k.Qi?u.createElement(Vc,(0,oe.Z)({},b,{annotation:t,dispatch:this.props.dispatch,isAnnotationReadOnly:this.props.isAnnotationReadOnly,keepSelectedTool:f,interactionMode:h})):t instanceof k.sK?u.createElement(ac,(0,oe.Z)({},b,w,{annotation:t,areOnlyElectronicSignaturesEnabled:this.props.areOnlyElectronicSignaturesEnabled,selectedAnnotationPageSize:this.props.selectedAnnotationPageSize})):t instanceof k.GI?u.createElement(oc,(0,oe.Z)({},b,w,{annotation:t})):t instanceof k.x_?u.createElement(Xc,(0,oe.Z)({},b,{annotation:t,selectedAnnotationPageSize:this.props.selectedAnnotationPageSize})):t instanceof k.Jn?null:void(0,l.kG)(!1,"Annotation type not handled")}componentDidUpdate(e,t){const n=this.state.expandedGroup&&this.state.transitionFinished&&!t.transitionFinished,r=!this.state.expandedGroup&&t.expandedGroup&&this.state.prevActiveGroup;(n||r)&&this.focusRef.current&&this.focusRef.current.focus()}render(){return u.createElement("div",{className:p()("PSPDFKit-Annotation-Toolbar",Zl().root,{[Zl().stickToBottom]:"bottom"===this.props.position}),onKeyDown:this._handleKeyPress},u.createElement(Zc.Z,{onResize:this._handleResize}),this.renderContent())}}const lu=(0,he.XN)(su);function cu(e){return"isMeasurement"in e&&e.isMeasurement?.()?"Measurement":Gc.get(e.constructor.readableName)?e.constructor.readableName:e instanceof k.On?k.On.readableName:e instanceof k.x_?k.x_.readableName:void new l.p2("AnnotationToolbarComponent: getReadableName: Annotation type not handled")}function uu(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}const du=u.memo((function(e){let{intl:t,dispatch:n,inkEraserCursorWidth:r,position:o,viewportWidth:i}=e;const a=(0,s.v9)((e=>e.shadowRoot)),{handleGroupExpansion:l,handleEntered:c,expandedGroup:d,prevActiveGroup:h,btnFocusRef:f}=(0,yr.Tp)(),[m,g]=u.useState(r);u.useEffect((()=>{n((0,at.GT)(m))}),[m,n]),u.useEffect((()=>{g(r)}),[r]);const v=u.useCallback((e=>{n((0,at.gX)({inkEraserWidth:e})),g(e)}),[n]),y=u.useCallback((e=>{e.keyCode===jn.zz&&d&&l()}),[d,l]),{formatMessage:b}=t,w={lineWidth:{node:u.createElement("div",{className:Zl().controlWrapper},u.createElement("div",{className:Zl().control},u.createElement(Rl.Z,{name:"lineWidth",accessibilityLabel:b(be.Z.size),className:"PSPDFKit-Ink-Eraser-Toolbar-Line-Width",value:m,valueLabel:e=>b(be.Z.numberInPt,{arg0:e.toFixed(0)}),min:1,max:40,step:1,onChange:v,caretDirection:"bottom"===o?"up":"down",innerRef:(0,ec.CN)("lineWidth",d)?f:void 0,shadowRoot:a}))),title:b(be.Z.thickness)}};return u.createElement("div",{className:p()("PSPDFKit-Annotation-Toolbar",Zl().root,{[Zl().stickToBottom]:"bottom"===o}),onMouseUp:uu,onTouchEnd:uu,onPointerUp:uu,onKeyDown:y},u.createElement("div",{className:`\n        PSPDFKit-Ink-Eraser-Toolbar\n        ${Zl().content}\n\n      `},u.createElement("div",{className:Zl().left},u.createElement("form",{className:Zl().form,onSubmit:Wn.PF},u.createElement("div",{className:`${Zl().formGroup} PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth`},u.createElement(Ll.Z,{type:"line-width",title:w.lineWidth.title,className:Zl().button,onPress:()=>l("lineWidth"),disabled:Boolean(d),presentational:i>Ae.GI,ref:(0,ec.Kt)("lineWidth",d,h)?f:void 0}),w.lineWidth.node))),u.createElement("div",{className:Zl().right},u.createElement(Yl.Z,{position:o,onClose:()=>l(null),isPrimary:!1,onEntered:c,accessibilityLabel:d?w[d].title:void 0},d?w[d].node:void 0))))})),pu=(0,he.XN)(du);var hu=n(46632),fu=n.n(hu);const mu=(0,s.$j)((e=>({connectionFailureReason:e.connectionFailureReason})),(()=>({})))((e=>u.createElement("div",{className:`PSPDFKit-Error ${fu().root}`},u.createElement("div",{className:`PSPDFKit-Error-Box ${fu().box}`},u.createElement("div",{className:fu().error},u.createElement(Pe.Z,{src:n(66361),className:fu().icon})),u.createElement("div",{className:`PSPDFKit-Error-Message ${fu().errorMessage}`},u.createElement("p",null,null!=e.connectionFailureReason?e.connectionFailureReason:u.createElement(u.Fragment,null,"An error occurred while loading the document. Try"," ",u.createElement("a",{href:"#",onClick:()=>window.location.reload()},"reloading the page"),".")))))));var gu,vu=n(72113),yu=n(83181),bu=n.n(yu);const wu={timeout:300,classNames:{enter:bu().unlockEnter,enterActive:bu().unlockEnterActive,exit:bu().unlockExit,exitActive:bu().unlockExitActive}};class xu extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"_modalRef",u.createRef()),(0,v.Z)(this,"_inputRef",u.createRef()),(0,v.Z)(this,"state",{value:"",isIncorrectPassword:!1,inputShowError:!1}),(0,v.Z)(this,"_onConfirm",(()=>{this.props.resolvePassword&&this.props.resolvePassword(this.state.value)})),(0,v.Z)(this,"_onChange",(e=>{const{value:t}=e.currentTarget;this.setState({value:t,inputShowError:!1})}))}componentDidUpdate(e){e.resolvePassword===this.props.resolvePassword||this.props.unlocked||(this._modalRef.current&&this._modalRef.current.shake(),this._inputRef.current&&this._inputRef.current.focus(),this.setState({isIncorrectPassword:!0,inputShowError:!0}))}render(){const{unlocked:e}=this.props,{isIncorrectPassword:t,inputShowError:r}=this.state,{formatMessage:i}=this.props.intl;return u.createElement(vu.Z,{role:"dialog",onEnter:this._onConfirm,background:"rgba(0,0,0,.1)",className:p()("PSPDFKit-Password-Dialog",bu().container),accessibilityLabel:i(_u.password),accessibilityDescription:i(_u.passwordAccessibilityDescription),innerRef:this._modalRef},u.createElement("div",{className:"PSPDFKit-Password-Dialog-Content"},u.createElement(vu.Z.Section,null,u.createElement(o.M5,null,u.createElement("div",{className:bu().iconBox},u.createElement(Fs.Z,null,e?u.createElement(Rs.Z,(0,oe.Z)({},wu,{key:"unlock"}),u.createElement(Pe.Z,{src:n(80790),className:p()(bu().icon,bu()["icon-success"])})):u.createElement(Rs.Z,(0,oe.Z)({},wu,{key:"lock"}),u.createElement(Pe.Z,{src:n(50308),className:p()({[bu().icon]:!0,[bu()["icon-regular"]]:!t,[bu()["icon-error"]]:t})})))))),u.createElement(o.z,null,i(_u.passwordRequired)),u.createElement(vu.Z.Section,null,u.createElement(o.xv,null,i(_u.unlockDocumentDescription))),u.createElement(o.oi,{name:"password",value:this.state.value,onChange:this._onChange,"aria-label":i(_u.password),autoFocus:!0,selectTextOnFocus:!0,disabled:e,secureTextEntry:!0,error:r,success:e,ref:this._inputRef})),t&&!e?u.createElement(vu.Z.Section,{className:bu().alert,spaced:!0},i(_u.incorrectPassword)):gu||(gu=u.createElement(vu.Z.Divider,null)),u.createElement("div",{className:p()("PSPDFKit-Password-Dialog-Buttons",bu().dialogButtons)},u.createElement(o.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons"},u.createElement(o.zx,{onClick:this._onConfirm,primary:!0,className:"PSPDFKit-Confirm-Dialog-Button PSPDFKit-Confirm-Dialog-Button-Confirm"},i(_u.unlock)))))}}const _u=(0,he.vU)({password:{id:"password",defaultMessage:"Password",description:"Text on a label"},passwordAccessibilityDescription:{id:"passwordAccessibilityDescription",defaultMessage:"Dialog prompting for a password to unlock the document",description:"Accessibility description for password modal"},passwordRequired:{id:"passwordRequired",defaultMessage:"Password Required",description:"Title of the modal to indicate a password is required"},unlockDocumentDescription:{id:"unlockDocumentDescription",defaultMessage:"You have to unlock this document to view it. Please enter the password in the field below.",description:"Label of the password prompt"},incorrectPassword:{id:"incorrectPassword",defaultMessage:"The password you entered isn't correct. Please try again.",description:"Error message when an incorrect password was entered"},unlock:{id:"unlock",defaultMessage:"Unlock",description:"Button to unlock a password protected PDF"}}),Su=(0,he.XN)(xu);var Cu,Eu=n(69462),ku=n.n(Eu);class zu extends u.Component{render(){const{resolvePassword:e,children:t,intl:n}=this.props,{formatMessage:r}=n,{name:i,progress:a,reason:s}=this.props.connectionState;switch(i){case Ii.F.CONNECTING:{const e=s?Pu[s]??s:null,t=e?r(e):"";return u.createElement("div",{className:ku().loader},u.createElement(o.Ex,{message:t,progress:a??0}))}case Ii.F.CONNECTION_FAILED:return Cu||(Cu=u.createElement(mu,null));case Ii.F.PASSWORD_REQUIRED:return u.createElement(Su,{resolvePassword:e,unlocked:this.props.isUnlockedViaModal});default:return void 0===t?null:t}}}const Pu=(0,he.vU)({loading:{id:"loading",defaultMessage:"Loading...",description:"Shown while the document is being fetched"}}),Du=(0,he.XN)(zu),Au=(0,Ut.Z)(((e,t,n)=>{const r=(0,O.xp)(e,t);return n?r.sort(Nu):r.sort(Fu)}));const Tu=(0,gn.x)((function(e,t){let{page:n}=t;const r=!!e.reuseState,o=Au(e.annotations,n,e.viewportState.forceRenderWidgetsInAnnotationsOrder);let i=(0,a.aV)(),s=null;switch(e.selectedAnnotationMode){case L.o.SELECTED:i=o.filter((t=>e.selectedAnnotationIds.has(t.id)));break;case L.o.EDITING:s=e.selectedAnnotationIds.map((t=>{const n=e.annotations.get(t);return(0,l.kG)(n),n})).first(),(s instanceof k.Qi||s instanceof k.Jn)&&s.pageIndex===n.pageIndex&&(i=(0,a.aV)([s]))}return{backend:e.backend,hoverAnnotationIds:e.hoverAnnotationIds,interactionMode:e.interactionMode,isAnnotationReadOnly:t=>(0,mn.lV)(t,e),selectedAnnotationIds:e.selectedAnnotationIds,activeAnnotationNote:e.activeAnnotationNote,selectedTextOnEdit:e.selectedTextOnEdit,showAnnotations:e.showAnnotations,window:e.frameWindow,zoomLevel:e.viewportState.zoomLevel,rotation:e.viewportState.pagesRotation,onFocusAnnotation:Mu(e.eventEmitter),onBlurAnnotation:Ru(e.eventEmitter),formDesignMode:e.formDesignMode,annotations:o,isReloadingDocument:r,attachments:e.attachments,selectedAnnotations:i,editingAnnotation:s,showComments:(0,Aa.Y7)(e),showAnnotationNotes:e.showAnnotationNotes,eventEmitter:e.eventEmitter,isAPStreamRendered:e.isAPStreamRendered,pageInvalidAPStreams:e.invalidAPStreams.get(n.pageIndex),canEditAnnotationCP:t=>(0,lr.CM)(t,e),canDeleteAnnotationCP:t=>(0,lr.Kd)(t,e),keepSelectedTool:e.keepSelectedTool,scrollElement:e.scrollElement,focusedAnnotationIds:e.focusedAnnotationIds,inkEraserMode:e.inkEraserMode,viewportState:e.viewportState,page:n,enableRichText:e.enableRichText,multiAnnotationsUsingShortcut:e.multiAnnotationsUsingShortcut,isMultiSelectionEnabled:e.isMultiSelectionEnabled,comments:e.comments,isAutoSaveDisabled:e.autoSaveMode===z.u.DISABLED}}))((function(e){const{annotations:t,isReloadingDocument:n,showAnnotations:r,zoomLevel:o,rotation:i,attachments:c,backend:d,dispatch:p,hoverAnnotationIds:h,page:f,isAnnotationReadOnly:m,canEditAnnotationCP:g,canDeleteAnnotationCP:v,getScrollElement:y,onFocusAnnotation:b,onBlurAnnotation:w,formDesignMode:x,selectedTextOnEdit:_,selectedAnnotationIds:S,selectedAnnotations:C,activeAnnotationNote:E,interactionMode:z,editingAnnotation:P,window:D,children:A,showComments:T,showAnnotationNotes:I,eventEmitter:M,isAPStreamRendered:R,pageInvalidAPStreams:F=(0,a.l4)(),keepSelectedTool:N,focusedAnnotationIds:L,inkEraserMode:K,enableRichText:V,multiAnnotationsUsingShortcut:H,setGlobalCursor:$,isMultiSelectionEnabled:U,comments:Z,isAutoSaveDisabled:G}=e;(0,l.kG)(F);const{pageSize:W,pageIndex:Y}=f,X=u.useCallback((e=>e instanceof k.Jn?!!Z.some((t=>t.rootId===e.id))&&T:!(e instanceof k.On&&e.isCommentThreadRoot)||T),[T,Z]),[Q,J]=u.useState(null),[ee,te]=u.useState(void 0),[re,oe]=u.useState(!1),[ie,ae]=u.useState(Array()),se=(0,s.v9)((e=>e.shadowRoot)),le=u.useCallback((function(e){"number"==typeof e.clientX&&"number"==typeof e.clientY&&J(new k.E9({x:e.clientX,y:e.clientY}))}),[]),ce=S.size>0,ue=t.filter((e=>e instanceof k.On&&(e.isCommentThreadRoot||!m(e)))),de=u.useMemo((()=>t.filter((e=>e instanceof k.R1))),[t]),pe=u.useMemo((()=>t.filter((e=>e instanceof k.Zc))),[t]),he=(0,yr.R9)((e=>e instanceof k.Zc&&(0,O.Fp)(e)&&!m(e)&&g(e)&&v(e))),fe=u.useMemo((()=>pe.filter(he)),[pe,he]);function me(e){const t=S.has(e.id);return e instanceof q.Z?t&&z!==j.A.REDACT_TEXT_HIGHLIGHTER:t}function ge(e){ae(e?[...ie,e]:[])}const ve=P instanceof k.Zc?P:null,ye=P instanceof k.UX?P:null,be=P instanceof k.gd&&null===P.pageIndex?P:null,we=P instanceof k.gd&&P.pageIndex===Y?P:null,xe=P instanceof k.Qi&&null===P.pageIndex?P:null,_e=P instanceof k.Jn&&null===P.pageIndex?P:null,Se=P instanceof q.Z&&null===P.pageIndex?P:null,Ce=P instanceof k.R1&&null===P.pageIndex?P:null,[Ee,ke]=u.useState(!1),ze=u.useRef(!1),Pe=e=>(Ee&&(0,O.eD)(e)||"number"==typeof e.buttonIconUpdatedAt)&&!F?.has(e.id)&&(0,O.U7)(e.boundingBox)&&R(e),De=u.useRef(o),Ae=u.useRef(Y),Te=(0,yr.tm)();u.useEffect((()=>{if(n)return void(ze.current=!1);(o>De.current||Ae.current!==Y)&&(ze.current=!1,Ae.current=Y),De.current=o;const e=t.filter((e=>!F?.has(e.id)&&(0,O.eD)(e)&&(0,O.U7)(e.boundingBox)&&R(e)));e.size>0&&!ze.current&&(ze.current=!0,d.renderPageAnnotations(Y,e,o*(0,Mr.L)()).then((()=>{Te()&&ke(!0)})))}),[Y,o,R,d,F,t,ke,Ee,n,Te]),u.useEffect((()=>{Ee&&d.clearPageAPStreams(Y,F)}),[Ee,d,Y,F]),u.useEffect((()=>{if(Ee)return()=>{d.clearAllPageAPStreams(Y)}}),[d,Y,Ee]);const Ie=(0,yr.jC)({zoomLevel:o}),Me=!!Ie?.zoomLevel&&Ie.zoomLevel<o;u.useEffect((()=>{Me&&d.clearAllPageAPStreams(Y)}));const Fe=K===Bo.b.POINT?$r:qr,Ne=C.filter((e=>X(e)&&(0,O.Fp)(e)&&(0,O.yU)(e)&&(!m(e)||e instanceof k.Qi)&&(!(e instanceof k.Jn)||null==P))),Oe=Ne.size>1,je=t.filter((e=>X(e)&&(0,O.Fp)(e)&&function(e){return!(z===j.A.INK_ERASER&&he(e))}(e)&&(!me(e)||!(0,O.yU)(e)||m(e)||e instanceof k.Jn&&P&&P.equals(e))&&!function(e){return e instanceof k.x_&&me(e)&&x}(e))),Le=je.filter((e=>(0,O.OR)(e))),Be=je.filter((e=>!(0,O.OR)(e)));return u.createElement(ne.Provider,null,u.createElement(Ir,{dispatch:p,selectableTextMarkupAnnotations:ue,selectableLinkAnnotations:de,hoverAnnotationIds:h,zoomLevel:o,window:D,pageIndex:Y,selectedAnnotations:C,keepSelectedTool:N,interactionMode:z,setMultiAnnsInitialEvent:te,isMultiSelectionEnabled:U,isHitCaptureDeferred:re,hitCaptureDeferredRect:ie,currentPageAnnotations:t,isMultiAnnotationsSelected:Oe},A,r?u.createElement("div",null,Be.map((e=>e instanceof k.x_?null:u.createElement(wr,{key:e.id,annotation:(0,Re.h4)(e),globalAnnotation:e,attachments:c,backend:d,dispatch:p,isAnnotationReadOnly:m,isDisabled:ce&&!me(e),isHover:h.has(e.id),isSelected:me(e),activeAnnotationNote:E,showAnnotationNotes:I,onBlur:w,onFocus:b,pageSize:W,zoomLevel:o,rotation:i,pageRotation:f.rotation,shouldRenderAPStream:Pe(e),isFocused:L.has(e.id),isMultiAnnotationsSelected:Oe,isComboBoxOpen:oe,handleComboBoxRect:ge,isAutoSaveDisabled:G}))),Be.sort(((e,t)=>{if(!f.tabOrder||"string"!=typeof e.id||"string"!=typeof t.id)return 0;const n=f.tabOrder.indexOf(e.id),r=f.tabOrder.indexOf(t.id);return-1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r})).map((e=>e instanceof k.x_?u.createElement(wr,{key:e.id,annotation:(0,Re.h4)(e),globalAnnotation:e,attachments:c,backend:d,dispatch:p,isAnnotationReadOnly:m,isDisabled:ce&&!me(e),isHover:h.has(e.id),isSelected:me(e),activeAnnotationNote:E,showAnnotationNotes:I,onBlur:w,onFocus:b,pageSize:W,zoomLevel:o,rotation:i,pageRotation:f.rotation,shouldRenderAPStream:Pe(e),isFocused:L.has(e.id),isMultiAnnotationsSelected:Oe,isComboBoxOpen:oe,handleComboBoxRect:ge,isAutoSaveDisabled:G}):u.createElement(Si,{annotation:e,isDisabled:ce&&!me(e),zoomLevel:o,key:e.id,onBlur:w,onFocus:b,isFocused:L.has(e.id),isSelected:me(e)}))),Le.map((e=>u.createElement(wr,{key:e.id,annotation:(0,Re.h4)(e),globalAnnotation:e,attachments:c,backend:d,dispatch:p,isAnnotationReadOnly:m,isDisabled:ce&&!me(e),isHover:h.has(e.id),isSelected:me(e),activeAnnotationNote:E,showAnnotationNotes:I,onBlur:w,onFocus:b,pageSize:W,zoomLevel:o,rotation:i,pageRotation:f.rotation,shouldRenderAPStream:Pe(e),isFocused:L.has(e.id),isMultiAnnotationsSelected:Oe,isComboBoxOpen:oe,handleComboBoxRect:ge,isAutoSaveDisabled:G}))),Oe&&u.createElement(u.Fragment,{key:"multi-annotations-selection"},u.createElement(Oo,{dispatch:p,pageIndex:Y,pageSize:W,window:D,getScrollElement:y,selectedAnnotations:Ne.map((e=>(0,Re.h4)(e))),selectedGlobalAnnotations:Ne},Ne.map((e=>u.createElement(wr,{key:e.id,annotation:(0,Re.h4)(e),globalAnnotation:e,attachments:c,backend:d,dispatch:p,isAnnotationReadOnly:m,isDisabled:!1,isHover:h.has(e.id),isSelected:!0,activeAnnotationNote:E,showAnnotationNotes:I,onBlur:w,onFocus:b,pageSize:W,zoomLevel:o,rotation:i,pageRotation:f.rotation,onClick:e instanceof k.gd?le:void 0,shouldRenderAPStream:Pe(e),isFocused:!1,isComboBoxOpen:oe,handleComboBoxRect:ge,isAutoSaveDisabled:G}))))),!Oe&&Ne.map((t=>u.createElement(u.Fragment,{key:t.id},u.createElement(Mo,{pageIndex:Y,pageSize:W,annotation:(0,Re.h4)(t),globalAnnotation:t,window:D,getScrollElement:y,onFocus:b,onBlur:w,isResizable:(0,O.IO)(t),isModifiable:(0,O.Km)(t),isRotatable:(0,O.a$)(t),setGlobalCursor:$,backend:d,disablePointSnapping:e.viewportState.disablePointSnapping,isAnnotationLocked:t.locked},u.createElement(wr,{annotation:(0,Re.h4)(t),globalAnnotation:t,attachments:c,backend:d,dispatch:p,isAnnotationReadOnly:m,isDisabled:!1,isHover:h.has(t.id),isSelected:!0,isFocused:!1,activeAnnotationNote:E,showAnnotationNotes:I,onBlur:w,onFocus:b,pageSize:W,zoomLevel:o,rotation:i,pageRotation:f.rotation,onClick:t instanceof k.gd?le:void 0,shouldRenderAPStream:Pe(t),isComboBoxOpen:oe,handleComboBoxRect:ge,isAutoSaveDisabled:G})),I&&(0,O.YV)(t)&&u.createElement(mr,{dispatch:p,annotation:t,zoomLevel:o,isAnnotationSelected:!0,activeAnnotationNote:E,visible:!1}))))):null),z===j.A.INK&&null!==ve&&(0,O.Fp)(ve)?u.createElement(jr,{dispatch:p,pageSize:W,pageIndex:Y,inkAnnotation:ve.pageIndex===Y?ve:ve.delete("lines").delete("boundingBox"),scrollElement:e.scrollElement}):null,z===j.A.INK_ERASER&&pe.size>0?u.createElement(Fe,{inkAnnotations:fe,canvasSize:W,pageIndex:Y}):null,ye&&[...Ei,...ki].includes(z)&&(0,O.Fp)(ye)?u.createElement(Nt,{dispatch:p,pageSize:W,pageIndex:Y,shapeAnnotation:ye.pageIndex===Y?ye:(0,B.Hx)(ye),isAnnotationMeasurement:[...ki].includes(z),backend:d,disablePointSnapping:e.viewportState.disablePointSnapping}):null,z!==j.A.TEXT&&z!==j.A.CALLOUT||!be?null:u.createElement(vo,{annotation:be,interactionMode:z,dispatch:p,pageSize:W,pageIndex:Y,autoSelect:_,eventEmitter:M,zoomLevel:o}),we&&(0,O.Fp)(we)?u.createElement(fo,{dispatch:p,annotation:we,pageIndex:Y,pageSize:W,autoSelect:_,lastMousePoint:null===Q?void 0:Q,eventEmitter:M,keepSelectedTool:N,enableRichText:V,shadowRoot:se}):null,(xe||_e)&&u.createElement(Pr,{dispatch:p,annotation:xe||_e,pageSize:W,pageIndex:Y,zoomLevel:o}),Se&&z===j.A.REDACT_SHAPE_RECTANGLE&&(0,O.Fp)(Se)?u.createElement(jo,{dispatch:p,pageSize:W,pageIndex:Y,redactionAnnotation:Se.pageIndex===Y?Se:Se.delete("boundingBox"),keepSelectedTool:N}):null,z===j.A.LINK&&Ce?u.createElement(vi,{dispatch:p,linkAnnotation:Ce,viewportState:e.viewportState,page:e.page,window:e.window,pageIndex:Y,keepSelectedTool:N}):null,z===j.A.MULTI_ANNOTATIONS_SELECTION?u.createElement(xi,{viewportState:e.viewportState,window:e.window,pageIndex:Y,initialDraggingEvent:ee,multiAnnotationsUsingShortcut:H}):null)})),Iu=Tu,Mu=(0,Ut.Z)((e=>(t,n)=>{e.emit("annotations.focus",{annotation:t,nativeEvent:void 0!==n.nativeEvent?n.nativeEvent:n})})),Ru=(0,Ut.Z)((e=>(t,n)=>{e.emit("annotations.blur",{annotation:t,nativeEvent:void 0!==n.nativeEvent?n.nativeEvent:n})}));function Fu(e,t){const n=Ou(e),r=Ou(t);return n>r?1:n<r?-1:0}function Nu(e,t){const n=ju(e),r=ju(t);return n>r?1:n<r?-1:0}function Ou(e){return e instanceof k.x_?3:e instanceof k.FV||e instanceof k.R9||e instanceof k.xu||e instanceof k.hL?2:e instanceof k.R1?1:0}function ju(e){return e.isSignature?3:e instanceof k.FV||e instanceof k.R9||e instanceof k.xu||e instanceof k.hL?2:e instanceof k.R1?1:0}var Lu=n(47460),Bu=n.n(Lu);const Ku=["keyup","selectionchange","touchend","mouseup","pointerup"];class Vu extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"_hostElement",u.createRef()),(0,v.Z)(this,"_onAppearInvoked",!1),(0,v.Z)(this,"_preventTextSelection",(e=>{const t=this._hostElement.current;if(!t)return;const n=t.ownerDocument.defaultView.getSelection()||{},{anchorNode:r,extentNode:o,focusNode:i,isCollapsed:a}=n;if(r&&t.contains(r)||o&&t.contains(o)||i&&t.contains(i)){if(a)return;e.stopPropagation(),e.stopImmediatePropagation()}}))}_appendNode(){const e=this._hostElement.current;if(!e)return;const{node:t,onAppear:n}=this.props.item;e.innerHTML="",e.appendChild(t),"function"!=typeof n||this._onAppearInvoked||(this._onAppearInvoked=!0,n())}componentDidMount(){const e=this._hostElement.current;if(e){const t=e.ownerDocument;Ku.forEach((e=>{t.addEventListener(e,this._preventTextSelection,!0)}))}this._appendNode()}componentDidUpdate(e){this.props.item.node!==e.item.node&&this._appendNode()}componentWillUnmount(){const e=this._hostElement.current;if(!e)return;const t=e.ownerDocument;Ku.forEach((e=>{t.removeEventListener(e,this._preventTextSelection,!0)})),this._onAppearInvoked=!1;const{onDisappear:n}=this.props.item;"function"==typeof n&&n()}render(){return u.createElement(ge,{applyZoom:!this.props.item.disableAutoZoom,position:this.props.item.position,noRotate:this.props.item.noRotate,currentPagesRotation:this.props.rotation,zoomLevel:this.props.zoomLevel},u.createElement("div",{className:Bu().selectable,ref:this._hostElement}))}}var Hu=n(15164);class $u extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"_handlePointerUp",(e=>{const{transformClientToPage:t,onEmit:n,pageIndex:r}=this.props;n(e,t(new E.E9({x:e.clientX,y:e.clientY}),r))}))}render(){return u.createElement(He.Z,{onPointerUp:this._handlePointerUp},u.createElement(this.props.element,{className:this.props.className},this.props.children))}}const Uu=Sr($u);var Zu=n(63124),qu=n.n(Zu);function Gu(e){let{focused:t,searchResult:n,zoomLevel:r}=e;const i=p()({[qu().highlight]:!0,[qu().focused]:t,"PSPDFKit-Search-Highlight":!0,"PSPDFKit-Search-Highlight-focused":t});return u.createElement("div",{"data-testid":"SearchHighlight","aria-live":"polite"},t?u.createElement(o.TX,{announce:"polite"},"Search Result: ",n.previewText):null,n.rectsOnPage.map(((e,t)=>u.createElement("div",{key:t,style:{top:Math.floor(e.top*r),left:Math.floor(e.left*r),width:Math.ceil(e.width*r),height:Math.ceil(e.height*r)},className:i}))).toArray())}const Wu=(0,s.$j)((function(e,t){const{searchState:n}=e;return{searchResults:n.results.filter((e=>e.pageIndex===t.pageIndex)),focusedResult:n.results.get(n.focusedResultIndex)}}))((function(e){let{searchResults:t,focusedResult:n,zoomLevel:r}=e;return u.createElement("div",{className:qu().layer,"data-testid":"SearchHighlightLayer"},t.map(((e,t)=>u.createElement(Gu,{focused:e===n,key:t,searchResult:e,zoomLevel:r}))))})),Yu=e=>{let{textLine:t,eventEmitter:n,enableTextSelection:r,scaling:o,vertical:i,isTextCopyingAllowed:a,isPanModeEnabled:l,contentBlockId:c,pageIndex:d,parentBoundingBoxes:h,fontFamily:f}=e;const m=(0,yr.R9)((0,Ut.Z)(O.a5)),g=u.useCallback(((e,r)=>{const o={textLine:t,point:r,nativeEvent:e.nativeEvent};n.emit("textLine.press",o)}),[n,t]),v=(0,s.I0)(),y=u.useCallback((()=>{v((0,ve.vR)())}),[]),b=p()({[sa().line]:!0,[sa().lineTextCursor]:!l,[sa().debug]:!1,[sa().enableTextSelection]:r,"PSPDFKit-Text":!0,[sa().vertical]:!!i,[sa().selectableText]:!0}),{left:w,top:x}=h.reduce(((e,t)=>({left:e.left-t.left,top:e.top-t.top})),{left:t.boundingBox.left,top:t.boundingBox.top}),_={left:w,top:x,transform:o&&o.scaleX>0&&o.scaleY>0?`scale(${o.scaleX}, ${o.scaleY})`:"",fontFamily:f},S=(0,ta.LD)(a,t),C=(0,s.v9)((e=>m(e.annotations,t.pageIndex))),E=C.find((e=>e.boundingBox.isRectInside(t.boundingBox)));return u.createElement(Uu,{pageIndex:d,className:p()({[sa().lineSelection]:!0}),onEmit:g,element:"span"},!fe.vU&&u.createElement("span",{className:p()({[sa().linePadding]:!0,[sa().preventUserSelect]:fe.G6||fe.b5}),style:{top:x,left:w-20,transform:"none"},onClick:fe.G6||fe.b5?y:void 0}),u.createElement("span",(0,oe.Z)({className:b,style:_,key:t.id||void 0,"data-contentblock-id":c,"data-textline-id":t.id,"data-page-index":d},E&&E.note?{title:E.note}:void 0),S))},Xu=u.memo(Yu);var Qu=n(65739),Ju=n(40573),ed=n.n(Ju);function td(e){const{contentElement:t,pageIndex:n,contentBlockId:r,alt:o,parentBoundingBoxes:i}=e,{boundingBox:a}=t,{left:s,top:l}=i.reduce(((e,t)=>({left:e.left-t.left,top:e.top-t.top})),{left:a.left,top:a.top}),c={top:l,left:s,width:a.width,height:a.height};return"image"===t.elementType?u.createElement("img",{src:ke.wc,alt:o,title:o,style:c,"data-contentblock-id":r,"data-contentelement-id":t.id,"data-page-index":n,className:ed().element,onDragStart:()=>!1}):u.createElement("span",{style:c,"data-contentblock-id":r,"data-contentelement-id":t.id,"data-page-index":n,title:o})}var nd=n(1079),rd=n.n(nd);const od=function e(t){const{vertical:n,contentBlock:r,textLineScales:o,textElementFonts:i,areBlockTypeChildrenAllowed:a,parentBoundingBoxes:s,nestedContentBlockId:l}=t;let c="span";const d=r.contentTreeElementMetadata?.pdfua_type,p={role:void 0,style:void 0,title:void 0};let h=t.parentBoundingBoxes;if(p.style=fe.vU?{}:{...l?null:{zIndex:-1}},r.boundingBox&&(0,ta.cJ)(d)){const e=s.reduce(((e,t)=>({left:e.left-t.left,top:e.top-t.top})),{left:r.boundingBox.left,top:r.boundingBox.top}),t={left:e.left,top:e.top,width:r.boundingBox.width,height:r.boundingBox.height};p.style={...t,position:"absolute"},h=h.push(new k.UL(t))}return d&&d in Qu.m&&(c=a?Qu.m[d]:"span",0===r.contentElements.size&&0===r.textLines.size&&r.contentTreeElementMetadata?.alt&&(p.title=r.contentTreeElementMetadata?.alt),"span"===c&&Qu.j[d]&&(p.role=Qu.j[d]),p.style={...p.style,...(0,ta.wj)(c)}),u.createElement(c,(0,oe.Z)({className:r.boundingBox&&"Figure"===d?rd().blockContainer:void 0},p),r.contentBlocks.map((s=>u.createElement(e,{dispatch:t.dispatch,enableTextSelection:t.enableTextSelection,key:s.id,pageIndex:t.pageIndex,textLineScales:o,textElementFonts:i,contentBlock:s,nestedContentBlockId:(l??"")+r.id+".",vertical:n,eventEmitter:t.eventEmitter,isTextCopyingAllowed:t.isTextCopyingAllowed,isPanModeEnabled:t.isPanModeEnabled,areBlockTypeChildrenAllowed:a&&r.allowsBlockTypeChildren,parentBoundingBoxes:h}))),r.textLines.map((e=>u.createElement(Xu,{enableTextSelection:t.enableTextSelection,key:e.id,pageIndex:t.pageIndex,scaling:o&&o.get(e.id),textLine:e,fontFamily:i&&e.id?i[e.id]:void 0,contentBlockId:(l??"")+r.id,vertical:n,eventEmitter:t.eventEmitter,isTextCopyingAllowed:t.isTextCopyingAllowed,isPanModeEnabled:t.isPanModeEnabled,parentBoundingBoxes:h}))),r.contentElements.map((e=>u.createElement(td,{key:e.id,pageIndex:t.pageIndex,contentBlockId:(l??"")+r.id,contentElement:e,alt:r.contentTreeElementMetadata?.alt,parentBoundingBoxes:h}))))};var id;class ad extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"layerRef",u.createRef()),(0,v.Z)(this,"state",{needsTextSelectionOverlay:"gecko"===fe.SR,overlayHeight:0}),(0,v.Z)(this,"handleMouseDown",(e=>{if(this.state.needsTextSelectionOverlay&&this.layerRef.current){const t=this.layerRef.current.getBoundingClientRect();if(e.clientY){const n=Math.max(0,e.clientY-t.top);this.setState({overlayHeight:n/this.props.zoomLevel})}}})),(0,v.Z)(this,"handleMouseUp",(()=>{this.state.needsTextSelectionOverlay&&this.setState({overlayHeight:0})}))}render(){const{enableTextSelection:e,zoomLevel:t,rotation:n,eventEmitter:r,contentBlocks:o,pageIndex:i,textLineScales:s,textElementFonts:l,pageSize:c}=this.props;return u.createElement("div",{className:p()(sa().layer,"PSPDFKit-Content-Layer"),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,style:{transform:`scale(${t})`,transformOrigin:"0 0"},ref:this.layerRef,role:"webkit"===fe.SR?"text":void 0},id||(id=u.createElement("div",null)),o?.map((t=>u.createElement(od,{dispatch:this.props.dispatch,enableTextSelection:e,key:t.id,pageIndex:i,textLineScales:s,textElementFonts:l,contentBlock:t,vertical:90===n||270===n,eventEmitter:r,isTextCopyingAllowed:this.props.isTextCopyingAllowed,isPanModeEnabled:this.props.isPanModeEnabled,nestedContentBlockId:"",areBlockTypeChildrenAllowed:!0,parentBoundingBoxes:(0,a.aV)([new E.UL(c)])}))),this.state.needsTextSelectionOverlay&&this.state.overlayHeight>0?u.createElement("div",{className:sa().overlay,style:{top:this.state.overlayHeight}}):null)}}var sd=n(2998),ld=n.n(sd);const cd={rect:null,startingPoint:null};const ud=(0,s.$j)((function(e,t){let{pageIndex:n}=t;return{clientToPageTransformation:(0,Z.zi)(e,n),zoomLevel:e.viewportState.zoomLevel,interactionMode:e.interactionMode}}))((function(e){const{dispatch:t,pageSize:n,clientToPageTransformation:r,pageIndex:o,zoomLevel:i}=e,[a,s]=u.useState(cd),l=u.useCallback((e=>e.apply(r)),[r]);u.useEffect((function(){return t((0,Pt.X2)()),function(){t((0,Pt.Zg)())}}),[t]);const{rect:c}=a;return u.createElement("div",{className:ld().canvas},null!==c?u.createElement("svg",{className:ld().svg,style:{left:c.left*i,top:c.top*i,width:c.width*i,height:c.height*i},focusable:!1},u.createElement("rect",{className:ld().rect,height:c.height*i,width:c.width*i,x:0,y:0}),u.createElement("rect",{className:ld().rectStrokeBetween,height:c.height*i,width:c.width*i,x:0,y:0})):null,u.createElement(zt.Z,{size:n,onDrawStart:function(e){s((t=>({...t,startingPoint:e})))},onDrawCoalesced:function(e){const{startingPoint:t}=a;(0,me.k)(t);const n=e[e.length-1];s((e=>({...e,rect:dd(t,n)})))},onDrawEnd:function(){const{rect:e}=a,n=5/i;null===e||e.width<n&&e.height<n||t((0,Ls.vP)(o,e)),s(cd)},transformPoint:l,interactionMode:e.interactionMode,scrollElement:e.scrollElement}))}));function dd(e,t){const n=Math.min(e.x,t.x),r=Math.min(e.y,t.y),o=Math.max(e.x,t.x),i=Math.max(e.y,t.y);return new k.UL({left:n,top:r,width:o-n,height:i-r})}var pd=n(96213),hd=n.n(pd);function fd(e){let{frameWindow:t,pageRef:r,interactionMode:o,onCreate:i,pageIndex:a,intl:c}=e;const[d,h]=(0,u.useState)([0,0]),[f,m]=(0,u.useState)((0,fe.b1)()),g=(0,s.v9)((e=>e.shadowRoot));return(0,u.useEffect)((()=>{if((0,fe.b1)())return;function e(e){const{pageX:t,pageY:n}=e,o=e.target.closest(".PSPDFKit-Page");if(!o)return void m(!1);const i=o.getAttribute("data-page-index");if((0,l.kG)("string"==typeof i,"Page number is not a string"),+i===a){m(!0),(0,l.kG)(r.current);const{left:e,top:o}=r.current.getBoundingClientRect();h([t-e,n-o])}else m(!1)}const n=g||t;return n.addEventListener("mousemove",e),()=>{(0,fe.b1)()||n.removeEventListener("mousemove",e)}}),[r,t,a,g]),f?u.createElement("div",{className:p()({[hd().wrapper]:(0,fe.b1)()},"PSPDFKit-Form-Creator-Guides"),onPointerUp:i,role:"application"},!(0,fe.b1)()&&u.createElement(u.Fragment,null,u.createElement("div",{className:hd().hGuide,style:{transform:`translate(0, ${d[1]}px)`}}),u.createElement("div",{className:hd().vGuide,style:{transform:`translate(${d[0]}px,0)`}}),u.createElement("div",{className:p()({[hd().buttonWidget]:o===j.A.BUTTON_WIDGET,[hd().textWidget]:o===j.A.TEXT_WIDGET,[hd().radioWidget]:o===j.A.RADIO_BUTTON_WIDGET,[hd().checkboxWidget]:o===j.A.CHECKBOX_WIDGET,[hd().signWidget]:o===j.A.SIGNATURE_WIDGET,[hd().listBoxWidget]:o===j.A.LIST_BOX_WIDGET,[hd().comboBoxWidget]:o===j.A.COMBO_BOX_WIDGET,[hd().dateWidget]:o===j.A.DATE_WIDGET}),style:{transform:`translate(${d[0]}px,${d[1]}px)`}},u.createElement("div",null,c.formatMessage(be.Z.sign)),u.createElement(Pe.Z,{src:n(52904)})))):null}var md=n(26559);const gd=e=>{const{page:t,textBlockId:n,anchor:r,zoomLevel:o,textBlockState:i,isActive:a,contentEditor:s}=e,c=u.useRef(null),d=u.useRef({offset:{x:0,y:0},size:{x:-1,y:-1}}),p=u.useCallback((0,_s.k)(((e,t)=>((0,l.kG)(s),s.renderTextBlock(n,e,t))),20),[]),h=i.layout,f=i.globalEffects,m=i.modificationsCharacterStyle;u.useEffect((()=>{!async function(){const e=(0,md.T8)(h,m),n=(0,Mr.L)(),i=await p({pixelAnchor:{x:r.x*o*n,y:r.y*o*n},globalEffects:(0,md.uE)(f),pixelPageSize:{x:t.pageSize.width*o*n,y:t.pageSize.height*o*n},pixelViewport:{offset:{x:0,y:0},size:{x:t.pageSize.width*o*n,y:t.pageSize.height*o*n}},cursor:null,selection:a?{color:"#b5d7ff"}:null},e),s=i.displayRect,l=c.current;if(!l)return;const u=d.current;u.offset.x!=s.offset.x&&(l.style.left=s.offset.x/n+"px"),u.offset.y!=s.offset.y&&(l.style.top=s.offset.y/n+"px"),u.size.x!=s.size.x&&(l.style.width=s.size.x/(fe.G6?1:n)+"px",l.width=s.size.x),u.size.y!=s.size.y&&(l.style.height=s.size.y/(fe.G6?1:n)+"px",l.height=s.size.y);const g=l.getContext("2d");if(g){if(g.clearRect(0,0,s.size.x,s.size.y),s.size.x&&s.size.y){const e=new ImageData(new Uint8ClampedArray(i.imageBuffer),s.size.x,s.size.y);g.putImageData(e,0,0)}d.current=s}}()}));const g=fe.G6?{transformOrigin:"top left",transform:`scale(${1/devicePixelRatio})`}:{};return u.createElement("canvas",{ref:c,style:{position:"absolute",left:0,top:0,...g}})},vd=u.memo(gd);var yd=n(2927);const bd={on(e,t){document.addEventListener(e,(e=>t(e.detail)))},dispatch(e,t){document.dispatchEvent(new CustomEvent(e,{detail:t}))},remove(e,t){document.removeEventListener(e,t)}};var wd=n(89306),xd=n.n(wd),_d=n(72322);const Sd=(0,he.vU)({fontMismatch:{id:"ceFontMismatch",defaultMessage:"The {arg0} font isn’t available or can’t be used to edit content in this document. Added or changed content will revert to a default font.",description:"Message to show when there is a mismatch"},toggleFontMismatchTooltip:{id:"ceToggleFontMismatchTooltip",defaultMessage:"Toggle font mismatch tooltip",description:"Message to show for the button that displays the font mismatch tooltip"},deleteTextBlockConfirmMessage:{id:"deleteTextBlockConfirmMessage",defaultMessage:"Are you sure you want to delete this text box?",description:"Message for the delete text block confirm dialog"},deleteTextBlockConfirmAccessibilityLabel:{id:"deleteTextBlockConfirmAccessibilityLabel",defaultMessage:"Confirm text box deletion",description:"Accessibility label for the delete text block confirm dialog"},deleteTextBlockConfirmAccessibilityDescription:{id:"deleteTextBlockConfirmAccessibilityDescription",defaultMessage:"Dialog allowing the user to confirm or cancel deleting the text box",description:"Accessibility description for the delete annotation confirm dialog"},ceDownloadRequiredTitle:{id:"ceDownloadRequiredTitle",defaultMessage:"Download Required",description:"Title for the Download Required dialog"},ceDownloadRequiredMessage:{id:"ceDownloadRequiredMessage",defaultMessage:"To enable content editing directly in your browser, your document needs to be downloaded.",description:"Text content for the Download Required dialog"},ceDownloadRequiredButton:{id:"ceDownloadRequiredButton",defaultMessage:"Download Document",description:"Button text for the Download Required dialog"},ceCannotSaveChangesTitle:{id:"ceCannotSaveChangesTitle",defaultMessage:"Cannot Save Changes",description:"Title for the Cannot Save Changes dialog"},ceCannotSaveChangesMessage:{id:"ceCannotSaveChangesMessage",defaultMessage:"This file was edited by another user at the same time and their changes have already been uploaded. Your edits cannot be saved. Review your edits and try again if necessary, or exit without saving any changes.",description:"Text content for the Cannot Save Changes dialog"},ceCannotSaveChangesButton:{id:"ceCannotSaveChangesButton",defaultMessage:"Discard",description:"Button text for the Cannot Save Changes primary button"},ceCannotSaveChangesReviewButton:{id:"ceCannotSaveChangesReviewButton",defaultMessage:"Review",description:"Button text for the Cannot Save Changes primary cancel button"},ceDownloadingDocument:{id:"ceDownloadingDocument",defaultMessage:"Preparing document for editing...",description:"Message displayed when the document is being downloaded for Server-backed content editing."},ceSaving:{id:"ceSaving",defaultMessage:"Saving the document...",description:"Message displayed when the content edited document is being saved."}});function Cd(e){let{faceMismatch:t,relativePixelContentRect:r,textBlockState:i,zoomLevel:a,anchor:l,geometricStyleAttributes:c,positionAttributes:d}=e;const{formatMessage:p}=(0,he.YB)(),h=(0,s.I0)(),{contentRect:f,globalEffects:m,layout:g}=i,v=u.useMemo((()=>{const e=E.sl.IDENTITY.rotateRad(m.rotation).scale(1,m.flipY?-1:1),t=r.offset.x+c.width,n=new k.E9({x:t+5*a,y:r.offset.y}).apply(e),o=n.x+l.x*a+(m.rotation<0?r.offset.x:0),i=n.y+l.y*a+(m.rotation<0?r.offset.y:0);return new k.E9({x:o,y:i})}),[c.width,a,m.flipY,m.rotation,l.x,l.y,r.offset.x,r.offset.y]),y={...d,position:"fixed",left:v.x,top:v.y,width:Math.max(12,Math.round(16*a)),height:Math.max(12,Math.round(16*a)),zIndex:3};return u.createElement("button",{style:y,className:xd().tooltipButton,onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault()},onPointerDown:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault()},onPointerOver:()=>{const e=r.offset.x+f.size.x,n=r.offset.y,o=new k.E9({x:e,y:n}),i=E.sl.IDENTITY.rotateRad(m.rotation).scale(1,m.flipY?-1:1),s=o.apply(i);h((0,yd.lx)(new k.UL({left:l.x+(g.maxWidth??s.x),top:v.y/a,width:16,height:16}),t))},onPointerLeave:()=>{if(!fe.Ni){const e=new AbortController;h((0,yd.Hv)(e)),h((0,yd.uy)(e.signal))}}},u.createElement(Pe.Z,{src:n(69241),className:xd().tooltipSVG}),u.createElement(o.TX,null,p(Sd.toggleFontMismatchTooltip)))}const Ed=e=>{const{page:{pageSize:t,pageIndex:n},textBlockId:r,anchor:o,zoomLevel:i,textBlockState:a,isActive:l,frameWindow:c}=e,d=(0,s.I0)(),h=a.contentRect,f=a.globalEffects,m=a.detectedStyle,g=a.cursor,v=u.useRef(!1),[y,b]=u.useState(!1),w=u.useRef(!1),x=(0,s.v9)((e=>(0,Ba.G_)(n,r)(e))),_=(0,s.v9)((e=>(0,Ba.QC)(n,r)(e)));u.useEffect((()=>{if(!l){const e=new AbortController;d((0,yd.Hv)(e)),d((0,yd.uy)(e.signal))}}),[l,d]);const S=u.useRef(null),C=u.useMemo((()=>l?null!=m.selectionStyleInfo?.faceMismatch?m.selectionStyleInfo.faceMismatch.unavailableFaceName:m.modificationsCharacterStyleFaceMismatch?.unavailableFaceName??null:null),[m.selectionStyleInfo?.faceMismatch,m.modificationsCharacterStyleFaceMismatch?.unavailableFaceName,l]),E=u.useRef(null),z=u.useRef(null),P=e=>{(0,me.k)(e.currentTarget);return new k.E9({x:(e.nativeEvent.offsetX??0)/i+h.offset.x,y:(e.nativeEvent.offsetY??0)/i+h.offset.y})},D=()=>(0,md.T8)(a.layout,a.modificationsCharacterStyle),A=function(e){let{textAreaRef:t,textBlockId:n,pageIndex:r,makeExternalState:o}=e;const i=u.useRef(!1),a=(0,s.I0)(),l=e=>{t.current&&e?.length&&a((0,yd.qt)(r,n,null,e,o()))},c=fe.Dt||fe.TL;return{onChange:e=>{i.current||l("insertLineBreak"===e.nativeEvent.inputType?"\n":e.nativeEvent.data)},onCompositionStart:()=>{c||(i.current=!0)},onCompositionEnd:e=>{c||(i.current=!1,l(e.data))}}}({textAreaRef:S,textBlockId:r,pageIndex:n,makeExternalState:D}),T=function(e){let{textBlockState:t,textBlockId:n,pageIndex:r,makeExternalState:o}=e;const i=(0,s.I0)();return{onCopy:e=>{e.preventDefault(),t.selection&&e.clipboardData.setData("text/plain",t.selection.text)},onCut:e=>{e.preventDefault(),t.selection&&(e.clipboardData.setData("text/plain",t.selection.text),i((0,yd.qt)(r,n,null,"",o())))},onPaste:e=>{e.preventDefault();const t=e.clipboardData.getData("text/plain");i((0,yd.qt)(r,n,null,t,o()))}}}({textBlockId:r,pageIndex:n,textBlockState:a,makeExternalState:D}),I=function(e){let{textBlockId:t,makeExternalState:n,textBlockState:r,pageSize:o,pageIndex:i,isSelected:a,isActive:l}=e;const c=(0,s.I0)();return e=>{const s=fe.V5&&e.altKey||!fe.V5&&e.ctrlKey;if(l)switch(e.key){case"ArrowRight":c((0,yd.FD)(i,t,s?"forwardWord":"forward",e.shiftKey,n()));break;case"ArrowLeft":c((0,yd.FD)(i,t,s?"backwardWord":"backward",e.shiftKey,n()));break;case"ArrowDown":c((0,yd.FD)(i,t,"nextLine",e.shiftKey,n()));break;case"ArrowUp":c((0,yd.FD)(i,t,"previousLine",e.shiftKey,n()));break;case"Home":c((0,yd.FD)(i,t,"first",e.shiftKey,n()));break;case"End":c((0,yd.FD)(i,t,"last",e.shiftKey,n()));break;case"Backspace":c((0,yd.RL)(i,t,"backward",n()));break;case"Delete":c((0,yd.RL)(i,t,"forward",n()));break;case"a":case"A":if(!(fe.V5&&e.metaKey||!fe.V5&&e.ctrlKey))break;c((0,yd.Ow)(i,t,"everything",n()));break;case"z":case"Z":if(!(fe.V5&&e.metaKey||!fe.V5&&e.ctrlKey))break;e.shiftKey?c((0,yd.yy)(i,t,n())):c((0,yd.Zv)(i,t,n()));break;case"y":case"Y":if(!(fe.V5&&e.metaKey||!fe.V5&&e.ctrlKey))break;c((0,yd.yy)(i,t,n()));break;case"Escape":c(yd.Pq),e.preventDefault()}else if(a){let n=1;switch(e.shiftKey&&(n=10),e.key){case"ArrowRight":{e.preventDefault();const t=new k.E9({x:r.anchor.x+n,y:r.anchor.y});if(t.x+r.contentRect.offset.x+r.contentRect.size.x>=o.width)break;c((0,yd.$t)({anchor:t,isKeyboardMove:!0}));break}case"ArrowLeft":{e.preventDefault();const t=new k.E9({x:r.anchor.x-n,y:r.anchor.y});if(t.x+r.contentRect.offset.x<=0)break;c((0,yd.$t)({anchor:t,isKeyboardMove:!0}));break}case"ArrowDown":{e.preventDefault();const t=new k.E9({x:r.anchor.x,y:r.anchor.y+n});if(t.y+r.contentRect.offset.y+r.contentRect.size.y>=o.height)break;c((0,yd.$t)({anchor:t,isKeyboardMove:!0}));break}case"ArrowUp":{e.preventDefault();const t=new k.E9({x:r.anchor.x,y:r.anchor.y-n});if(t.y+r.contentRect.offset.y<=0)break;c((0,yd.$t)({anchor:t,isKeyboardMove:!0}));break}case"Enter":c((0,yd.SF)(i,t)),e.preventDefault();break;case"Escape":c(yd.Pq),e.preventDefault();break;case"Backspace":case"Delete":case"Del":c((0,yd.u)(Ba.wR.Delete)),e.preventDefault(),e.stopPropagation();break;default:e.preventDefault()}}else switch(e.key){case"Enter":c((0,yd.C0)(i,t)),e.preventDefault();break;case"Escape":c(yd.Pq),e.preventDefault()}}}({textBlockId:r,textBlockState:a,makeExternalState:D,pageSize:t,pageIndex:n,isActive:l,isSelected:x});function M(e){const t=P(e),o={x:t.x,y:t.y};S.current?.focus(),d((0,yd.v2)(n,r,o,e.shiftKey,D())),E.current={mode:"characters",begin:o}}function R(e){e.stopPropagation(),e.stopImmediatePropagation();const n={x:e.clientX,y:e.clientY};if(!z.current)return[null,null];const r=new k.UL({width:t.width,height:t.height});let o=new k.E9(n);const i=z.current;if(o=o.apply(i.transformation),!r.isPointInside(o))return[null,null];return[(n.x-i.start.x)*i.scale/i.zoomLevel,(n.y-i.start.y)*i.scale/i.zoomLevel]}u.useEffect((()=>{w.current&&x&&(w.current=!1)}),[x]);const F=u.useCallback((0,_d.Z)((e=>{const[t,o]=R(e);if(null===t||null===o||!z.current)return;const i=new k.E9({x:z.current.anchor.x+t,y:z.current.anchor.y+o});z.current.changed=!0,d((0,yd.$t)({anchor:i,pageIndex:n,textBlockId:r}))}),20),[]),N=u.useCallback((()=>{c.document.removeEventListener("pointermove",F,{capture:!0}),c.document.removeEventListener("pointerup",N,{capture:!0}),d((0,Ls.ac)(!1)),z.current?.changed&&(z.current.previousInteractionState===Ba.FP.Selected?d((0,yd.C0)(n,r)):d(yd.Pq)),z.current=null}),[]);u.useEffect((()=>{l&&a.justCreated&&S.current?.focus()}),[l,a.justCreated]);const O=()=>l&&S.current?.focus();u.useEffect((()=>(bd.on("content-editing:re-focus",O),()=>bd.remove("content-editing:re-focus",O))));const j=a.layout;(0,me.k)(null!==j.maxWidth);const L={offset:{x:(0,ns._v)(j.alignment,ns.Im,j.maxWidth),y:h.offset.y},size:{x:j.maxWidth,y:h.size.y}},B=(0,ns.sz)(Va(L),i),K=(0,ns.yK)(B,o,i),V={position:"absolute",left:K.offset.x,top:K.offset.y},H={...V,width:K.size.x,height:K.size.y,transformOrigin:`${-B.offset.x}px ${-B.offset.y}px`,transform:`rotate(${f.rotation}rad) scaleY(${f.flipY?-1:1})`};a.justCreated&&(H.width=Math.max(h.size.x,10)*i);const $=(0,s.v9)((e=>(0,Z.zi)(e,n))),U=(e,t)=>o=>{o.stopPropagation(),o.isPrimary&&0===o.button&&(o.nativeEvent.stopImmediatePropagation(),o.preventDefault(),c.document.addEventListener("pointermove",q,{passive:!0,capture:!0}),c.document.addEventListener("pointerup",G,{passive:!0,capture:!0}),d((0,Ls.ac)(!0)),x||l||d((0,yd.SF)(n,r)),(0,me.k)(null!==j.maxWidth),z.current={fixpoint:e,scale:t,zoomLevel:i,start:{x:o.clientX,y:o.clientY},anchor:a.anchor,maxWidth:j.maxWidth,transformation:$,previousInteractionState:x?Ba.FP.Selected:Ba.FP.None})},q=u.useCallback((0,_d.Z)((e=>{const[t]=R(e);null!==t&&z.current&&d((0,yd.PZ)({fixpointValue:z.current.fixpoint,newWidth:z.current.maxWidth+t}))}),20),[]),G=u.useCallback((()=>{z.current=null,c.document.removeEventListener("pointermove",q,{capture:!0}),c.document.removeEventListener("pointerup",G,{capture:!0}),d((0,Ls.ac)(!1))}),[]);return u.createElement(u.Fragment,null,C?u.createElement(Cd,{faceMismatch:C,relativePixelContentRect:B,textBlockState:a,zoomLevel:i,anchor:o,geometricStyleAttributes:H,positionAttributes:V}):null,u.createElement("div",{style:{...H,position:"fixed",zIndex:2},className:p()(xd().textBlock,{[xd().selectedTextBlock]:x,[xd().movingTextBlock]:_,[xd().activeTextBlock]:l,[xd().focusIn]:y}),onFocus:()=>{v.current=!0},onBlur:()=>{v.current=!1,b(!1)},onKeyUp:e=>{const t=e.target.ownerDocument.defaultView&&e.target instanceof e.target.ownerDocument.defaultView.HTMLTextAreaElement;v.current&&"Tab"===e.key&&t&&(b(!0),d((0,yd.FD)(n,r,"first",!1,D())))}},u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`${h.offset.x*i} ${B.offset.y} ${B.size.x} ${B.size.y}`,style:{...H,width:K.size.x,position:"absolute",left:0,top:0,transform:void 0,transformOrigin:void 0,display:l?"block":"none"},className:xd().blinkingCaret},u.createElement("line",{stroke:"currentColor",x1:g.offset.x*i,y1:(g.offset.y+g.lineSpacing.bottom)*i,x2:g.offset.x*i,y2:(g.offset.y-g.lineSpacing.top)*i})),u.createElement("textarea",(0,oe.Z)({ref:S,onPointerDown:e=>{e.stopPropagation(),l?M(e):(e.preventDefault(),e.isPrimary&&(c.document.addEventListener("pointermove",F,{passive:!0,capture:!0}),c.document.addEventListener("pointerup",N,{passive:!0,capture:!0}),d((0,Ls.ac)(!0)),(0,me.k)(null!==j.maxWidth),z.current={fixpoint:0,scale:1,zoomLevel:i,start:{x:e.clientX,y:e.clientY},anchor:a.anchor,maxWidth:j.maxWidth,transformation:$,previousInteractionState:x?Ba.FP.Selected:Ba.FP.None}))},onPointerMove:e=>{if(z.current)return;if(e.preventDefault(),!(l&&1&e.buttons))return;e.stopPropagation();const t=P(e),o={x:t.x,y:t.y},i=E.current;(0,me.k)(i),d((0,yd.sC)(n,r,i.begin,o,i.mode,D()))},onPointerUp:e=>{z.current?.changed||(e.preventDefault(),e.stopPropagation(),x||l?l||(d((0,yd.SF)(n,r)),M(e)):(d((0,yd.C0)(n,r)),w.current=!0))},onMouseUp:e=>{if(e.detail>=2){e.preventDefault(),e.stopPropagation();const t=P(e),o={x:t.x,y:t.y};E.current={mode:"words",begin:o},d((0,yd.sC)(n,r,o,o,"words",D())),e.detail>=3&&d((0,yd.Ow)(n,r,"everything",D()))}},onClick:e=>{e.preventDefault(),e.stopPropagation()},onKeyDown:I},A,T,{onContextMenu:Wn.PF,style:{...H,resize:"none",opacity:0,touchAction:"none",left:0,top:0,transform:void 0,transformOrigin:void 0},defaultValue:a.layoutView.lines.map((e=>(0,ns.z8)(e.elements))).join(" ")})),x?u.createElement(u.Fragment,null,u.createElement("div",{draggable:!0,onPointerDown:U(ns.Tl,-1),className:p()(xd().resizeHandle,xd().resizeHandleLeft)},u.createElement("div",{className:xd().resizeHandleCircle})),u.createElement("div",{draggable:!0,onPointerDown:U(ns.Im,1),className:p()(xd().resizeHandle,xd().resizeHandleRight)},u.createElement("div",{className:xd().resizeHandleCircle}))):null))},kd=u.memo(Ed),zd=e=>{const{page:t,textBlockId:n,zoomLevel:r,frameWindow:o}=e,i=(0,s.v9)((e=>{const r=(0,Ba.aT)(t.pageIndex,n)(e);return(0,me.k)(r),r.anchor})),a=(0,s.v9)((e=>(0,Ba.aT)(t.pageIndex,n)(e)));(0,me.k)(a);const l=(0,s.v9)((e=>(0,Ba.Dn)(t.pageIndex,n)(e))),c=(0,s.v9)((e=>e.contentEditorSession.contentEditor));return u.createElement("div",{className:"PSPDFKit-Content-Editing-Text-Block"},u.createElement(vd,{page:t,textBlockId:n,anchor:i,zoomLevel:r,textBlockState:a,isActive:l,contentEditor:c}),u.createElement(kd,{page:t,textBlockId:n,anchor:i,zoomLevel:r,isActive:l,textBlockState:a,frameWindow:o}))},Pd=u.memo(zd),Dd=e=>{const t=(0,s.I0)(),{formatMessage:n}=(0,he.YB)(),{page:r,zoomLevel:o,backend:i,frameWindow:a}=e;u.useEffect((()=>{var e;t((e=r.pageIndex,async(t,n)=>{if((0,Ba.Cd)(e)(n())!=Ba.R1.Uninitialized)return;t({type:K.l$y,pageIndex:e});const r=n().contentEditorSession;(0,l.kG)(r.contentEditor);const o=await r.contentEditor.detectParagraphs(e);t({type:K.kD6,pageIndex:e,initialTextBlocks:o})}))}),[t,r.pageIndex]);const c=r.pageSize.height*o,d=r.pageSize.width*o,p=(0,s.v9)((0,Ba.jI)(r.pageIndex),s.wU),h=(0,s.v9)((e=>e.contentEditorSession.mode)),f=h===Ba.wR.Create,m=h===Ba.wR.Delete,g=(0,s.v9)((e=>(0,Z.zi)(e,r.pageIndex))),v=(0,s.v9)((e=>e.contentEditorSession.textBlockInteractionState.state)),y=v===Ba.FP.Active,b=v===Ba.FP.Moving;return u.createElement("div",{tabIndex:0,onPointerDown:e=>{if(f){const n=new k.E9({x:e.clientX,y:e.clientY}).apply(g),o=new Ba.Sg({x:n.x,y:n.y});t((0,yd.rO)(r.pageIndex,o))}else m||(y&&(e.preventDefault(),e.stopPropagation()),t(yd.Pq))},className:"content-editing-overlay",style:{position:"absolute",top:0,left:0,touchAction:b?"none":"auto",height:c,width:d,zIndex:1,...f?{cursor:"text"}:{}}},m&&u.createElement(ol.Z,{onConfirm:()=>t(yd.um),onCancel:()=>t((0,yd.u)(Ba.wR.Edit)),accessibilityLabel:n(Sd.deleteTextBlockConfirmAccessibilityLabel),accessibilityDescription:n(Sd.deleteTextBlockConfirmAccessibilityDescription),"aria-atomic":!0,restoreOnClose:!1},u.createElement("p",null,n(Sd.deleteTextBlockConfirmMessage))),p.map((e=>u.createElement(Pd,{key:e,backend:i,textBlockId:e,page:r,zoomLevel:o,frameWindow:a}))))},Ad=u.memo(Dd),Td={[j.A.BUTTON_WIDGET]:[120,40],[j.A.CHECKBOX_WIDGET]:[32,32],[j.A.COMBO_BOX_WIDGET]:[220,40],[j.A.LIST_BOX_WIDGET]:[220,150],[j.A.RADIO_BUTTON_WIDGET]:[32,32],[j.A.SIGNATURE_WIDGET]:[220,150],[j.A.TEXT_WIDGET]:[220,40],[j.A.DATE_WIDGET]:[220,40]};let Id=0;var Md=n(40193),Rd=n.n(Md),Fd=n(11568),Nd=n.n(Fd);const Od=e=>{let{pageSize:t}=e;const n=(0,s.v9)((e=>e.hintLines));return n?u.createElement("svg",{id:"hint-lines",viewBox:`0 0 ${t.width} ${t.height}`,className:Nd().hintLineSvg},n.lines.map(((e,t)=>u.createElement("line",{key:t,x1:e.start.x,y1:e.start.y,x2:e.end.x,y2:e.end.y,className:Nd().line})))):null};class jd extends u.Component{constructor(e){super(e),(0,v.Z)(this,"pageRef",u.createRef()),(0,v.Z)(this,"_handleOverviewRenderFinished",(()=>{this.setState({isOverviewRendered:!0}),this.props.onInitialOverviewRenderFinished&&this.props.onInitialOverviewRenderFinished(this.props.page.pageIndex)})),(0,v.Z)(this,"_handleScroll",(e=>{this.pageRef.current&&(this.pageRef.current.scrollTop=0,this.pageRef.current.scrollLeft=0),e.stopPropagation(),e.preventDefault()})),(0,v.Z)(this,"_handleOnPressEmit",((e,t)=>{const n={pageIndex:this.props.page.pageIndex,point:t,nativeEvent:e.nativeEvent};this.props.eventEmitter.emit("page.press",n)})),(0,v.Z)(this,"onCropAreaChangeComplete",(e=>{const t=(0,Fe.kI)(e,this.props.page.pageSize,this.props.viewportState.pagesRotation),n={cropBox:t,pageIndex:this.props.page.pageIndex};this.props.eventEmitter.emit("cropArea.changeStop",n),this.props.onCropChange(t,this.props.page.pageIndex)})),(0,v.Z)(this,"onCropAreaChangeStart",(e=>{const t=(0,Fe.kI)(e,this.props.page.pageSize,this.props.viewportState.pagesRotation),n={cropBox:t,pageIndex:this.props.page.pageIndex};this.props.eventEmitter.emit("cropArea.changeStart",n),this.props.onCropChange(t,this.props.page.pageIndex)})),(0,v.Z)(this,"createWidgetAnnotation",(e=>{var t,n,r;e.stopPropagation(),this.props.dispatch((t=this.props.page.pageIndex,n=[e.pageX,e.pageY],r=this.props.intl,async(e,o)=>{const{interactionMode:i,viewportState:s,onWidgetAnnotationCreationStart:c,changeManager:u}=o();Id++;const d=(0,Z.Ek)(s,t),p=(0,O.xc)();(0,l.kG)(i,"interactionMode is not defined");const h=Td[i],f=new Date;let m,g=new k.x_({id:p,formFieldName:`${i}_${(0,zi.C)()}`,boundingBox:new k.UL({left:n[0],top:n[1],width:h[0],height:h[1]}).apply(d),pageIndex:t,createdAt:f,updatedAt:f,fontSize:12,...i===j.A.BUTTON_WIDGET?{backgroundColor:k.Il.BLUE,fontColor:k.Il.WHITE}:{},...i===j.A.DATE_WIDGET?{additionalActions:{onFormat:new k.bp({script:'AFDate_FormatEx("yyyy-mm-dd")'})}}:{}});switch(i){case j.A.BUTTON_WIDGET:m=new k.R0({annotationIds:(0,a.aV)([g.id]),name:g.formFieldName,buttonLabel:"Button"});break;case j.A.TEXT_WIDGET:case j.A.DATE_WIDGET:m=new k.$o({annotationIds:(0,a.aV)([g.id]),name:g.formFieldName});break;case j.A.RADIO_BUTTON_WIDGET:m=new k.XQ({annotationIds:(0,a.aV)([g.id]),name:g.formFieldName,options:(0,a.aV)([new k.mv({label:r.formatMessage(Bd.labelX,{arg0:1}),value:`Value ${Id}`})])});break;case j.A.CHECKBOX_WIDGET:m=new k.rF({annotationIds:(0,a.aV)([g.id]),name:g.formFieldName,options:(0,a.aV)([new k.mv({label:r.formatMessage(Bd.labelX,{arg0:1}),value:`Value ${Id}`})])});break;case j.A.SIGNATURE_WIDGET:m=new k.Yo({annotationIds:(0,a.aV)([g.id]),name:g.formFieldName});break;case j.A.LIST_BOX_WIDGET:m=new k.Vi({annotationIds:(0,a.aV)([g.id]),name:g.formFieldName,options:(0,a.aV)([new k.mv({label:"Option 1",value:`Value ${Id}`})])});break;case j.A.COMBO_BOX_WIDGET:m=new k.fB({annotationIds:(0,a.aV)([g.id]),name:g.formFieldName,options:(0,a.aV)([new k.mv({label:"Option 1",value:"Option 1"}),new k.mv({label:"Option 2",value:"Option 2"})])});break;default:throw new Error(`Unknown interaction mode: ${i}`)}if(m=m.set("id",(0,zi.C)()),c){const e=c(g,m);g=e.annotation||g,m=e.formField||m,(0,l.kG)(g instanceof k.x_,"widgetAnnotation must be an instance of WidgetAnnotation"),(0,l.kG)(m instanceof k.Wi,"formField must be an instance of FormField"),(0,l.kG)(g.formFieldName===m.name,"widgetAnnotation.formFieldName must be equal to formField.name"),(0,l.kG)(t===g.pageIndex,"You are not allowed to change the pageIndex")}e({type:K.vgx,annotationId:g.id}),u?.create([g,m]),e((0,En.el)()),e((0,ve.J4)((0,a.l4)([g.id]),L.o.SELECTED))}))})),this._contentBlocksPromise=null,this._cancelTextPromise=null,this.state={hasBeenInViewport:e.inViewport,isOverviewRendered:!e.renderPagePreview}}shouldComponentUpdate(e,t){return!!e.page&&(this.props.isReused!==e.isReused||(this.props.page.pageIndex!==e.page.pageIndex||(!(!e.inViewport||this.props.inViewport)||(!(e.inViewport||!this.props.inViewport)||(e.shouldPrerender!==this.props.shouldPrerender||(e.inViewport?ye.O.call(this,e,t):this.props.interactionMode===j.A.CONTENT_EDITOR&&e.interactionMode!==j.A.CONTENT_EDITOR||this.props.viewportState.zoomLevel!==e.viewportState.zoomLevel))))))}UNSAFE_componentWillReceiveProps(e){e.inViewport&&!this.state.hasBeenInViewport&&this.setState({hasBeenInViewport:!0})}UNSAFE_componentWillMount(){(this.props.inViewport||this.props.shouldPrerender)&&this.componentWillEnterViewport(this.props),this.props.inViewport&&this.setState({hasBeenInViewport:!0})}UNSAFE_componentWillUpdate(e){this.props.isReused?(this._resetTextLines(),this._fetchPageContent(e)):!this.props.inViewport&&e.inViewport||e.shouldPrerender?this.componentWillEnterViewport(e):this.props.inViewport&&!e.inViewport&&this.componentWillExitViewport()}componentDidUpdate(e){this.state.isOverviewRendered&&this.props.onInitialOverviewRenderFinished&&this.props.parent!==e.parent&&this.props.onInitialOverviewRenderFinished(this.props.page.pageIndex),e.page.pageKey!==this.props.page.pageKey&&(this._resetTextLines(),this.fetchTextLinesForProps(this.props))}componentWillEnterViewport(e){this._fetchPageContent(e)}_fetchPageContent(e){e.annotationManager.loadAnnotationsForPageIndex(e.page.pageIndex),null==e.page.contentBlocks&&null==this._contentBlocksPromise&&this.fetchTextLinesForProps(e)}componentWillExitViewport(){this._resetTextLines()}_resetTextLines(){this._contentBlocksPromise&&this._cancelTextPromise&&(this._cancelTextPromise(),this._contentBlocksPromise=null)}async fetchTextLinesForProps(e){if(!this.props.enableTextLoading||this.props.interactionMode===j.A.CONTENT_EDITOR)return void e.dispatch((0,ps.wY)(e.page.pageIndex,(0,a.aV)()));const{promise:t,cancel:n}=e.backend.getContentTreeForPageIndex(e.page.pageIndex);this._contentBlocksPromise=t,this._cancelTextPromise=n;try{const t=await this._contentBlocksPromise;e.dispatch((0,ps.wY)(e.page.pageIndex,t))}catch(e){if(e&&!e.aborted)throw e}}isWithinRange(){const{page:{pageIndex:e},viewportState:{currentPageIndex:t}}=this.props;return e>=Math.min(0,t-2)&&e<=t+2}render(){const{props:e}=this,{page:t,intl:n,innerRef:r,viewportState:i,frameWindow:a,cropInfo:s}=e,{formatMessage:l}=n,c={width:t.pageSize.width*i.zoomLevel,height:t.pageSize.height*i.zoomLevel};let d={height:c.height,width:c.width,transform:E.sl.IDENTITY.rotate(-i.pagesRotation).toCssValue()};if(90===i.pagesRotation||270===i.pagesRotation){const e=(c.height-c.width)/2;d={height:c.width,width:c.height,transform:E.sl.IDENTITY.rotate(i.pagesRotation).translate({x:-e,y:e}).toCssValue()}}const h=p()({"PSPDFKit-Page":!0,[`PSPDFKit-Page-Rotation-${i.pagesRotation}-degree`]:!0,[Rd().root]:!0,[Rd()["deg-"+i.pagesRotation]]:!0,[Rd().textHighlighterMode]:e.interactionMode===j.A.TEXT_HIGHLIGHTER||e.interactionMode===j.A.REDACT_TEXT_HIGHLIGHTER,[Rd().hideCursor]:(0,Me.o6)(e.interactionMode)});return t?u.createElement("section",{className:h,style:c,ref:this.pageRef,"data-page-index":t.pageIndex,"data-page-is-loaded":null!==t.contentBlocks&&this.state.isOverviewRendered,onScroll:this._handleScroll,key:t.pageKey,"aria-label":l(Bd.pageX,{arg0:t.pageLabel||t.pageIndex+1}),tabIndex:e.documentHasActiveAnnotation?-1:0},u.createElement("div",{className:Rd().focusPage,ref:r}),this.state.hasBeenInViewport&&this.state.isOverviewRendered&&t.contentBlocks?null:u.createElement(o.TX,null,l(be.Z.loading)),u.createElement(Uu,{pageIndex:t.pageIndex,onEmit:this._handleOnPressEmit,element:"div"},(this.state.hasBeenInViewport||this.state.isOverviewRendered||e.shouldPrerender)&&u.createElement(Hu.Z,{inViewport:e.inViewport,shouldPrerender:!e.inViewport&&e.shouldPrerender,page:t,backend:e.backend,zoomLevel:i.zoomLevel,rotation:i.pagesRotation,renderPageCallback:e.renderPageCallback,onInitialOverviewRenderFinished:this._handleOverviewRenderFinished,allowedTileScales:e.allowedTileScales,viewportRect:i.viewportRect,forceDetailView:!1,renderPagePreview:e.renderPagePreview,isPageSizeReal:e.isPageSizeReal,inContentEditorMode:e.interactionMode===j.A.CONTENT_EDITOR}),e.interactionMode===j.A.CONTENT_EDITOR&&e.inViewport&&!!e.contentEditor&&u.createElement(Ad,{backend:e.backend,zoomLevel:i.zoomLevel,page:t,frameWindow:a}),this.props.hintLinesPageIndex===t.pageIndex?u.createElement(Od,{pageSize:t.pageSize}):null,this.state.hasBeenInViewport&&this.state.isOverviewRendered&&u.createElement(u.Fragment,null,u.createElement(Wu,{pageIndex:t.pageIndex,zoomLevel:i.zoomLevel}),u.createElement(js.Consumer,null,(n=>u.createElement(Iu,{page:t,getScrollElement:n,setGlobalCursor:this.props.setGlobalCursor},t.contentBlocks?u.createElement(ad,{dispatch:e.dispatch,enableTextSelection:e.enableTextSelection,zoomLevel:i.zoomLevel,rotation:i.pagesRotation,eventEmitter:e.eventEmitter,isTextCopyingAllowed:e.isTextCopyingAllowed,isPanModeEnabled:e.isPanModeEnabled,pageIndex:t.pageIndex,contentBlocks:t.contentBlocks,textLineScales:t.textLineScales,pageSize:t.pageSize,textElementFonts:t.textElementFonts}):null))),e.interactionMode===j.A.MARQUEE_ZOOM?u.createElement(ud,{pageIndex:t.pageIndex,pageSize:t.pageSize,scrollElement:e.scrollElement}):null,e.customOverlayItems.size>0&&u.createElement("div",null,e.customOverlayItems.map((e=>u.createElement(Vu,{key:e.id,item:e,rotation:i.pagesRotation,zoomLevel:i.zoomLevel})))))),e.interactionMode===j.A.DOCUMENT_CROP&&(null===s&&this.isWithinRange()||s?.pageIndex===t.pageIndex)&&u.createElement("div",{style:d},u.createElement(gi,{viewportState:i,page:this.props.page,onAreaChangeComplete:this.onCropAreaChangeComplete,frameWindow:a,onAreaChangeStart:this.onCropAreaChangeStart})),(0,Me.o6)(e.interactionMode)&&u.createElement("div",{style:d},u.createElement(fd,{frameWindow:a,pageRef:this.pageRef,interactionMode:e.interactionMode,pageIndex:t.pageIndex,onCreate:this.createWidgetAnnotation,intl:e.intl}))):null}}const Ld=(0,he.XN)(jd),Bd=(0,he.vU)({pageX:{id:"pageX",defaultMessage:"Page {arg0}",description:"Current page"},labelX:{id:"labelX",defaultMessage:"Label {arg0}",description:"Label"}});const Kd=(0,gn.x)((function(e,t){const n=e.pages.get(t.pageIndex),r=n?.customOverlayItemIds.map((t=>e.customOverlayItems.get(t))).toList()||null;return{frameWindow:e.frameWindow,enableTextLoading:(0,mn.$Q)(e),enableTextSelection:e.interactionMode!==j.A.PAN,annotationManager:e.annotationManager,backend:e.backend,customOverlayItems:r,eventEmitter:e.eventEmitter,page:n,isTextCopyingAllowed:(0,mn.HI)(e),renderPageCallback:e.renderPageCallback,interactionMode:e.interactionMode,documentHasActiveAnnotation:e.selectedAnnotationIds.size>0,allowedTileScales:e.allowedTileScales,isPanModeEnabled:e.interactionMode===j.A.PAN&&!fe.Ni,viewportState:e.viewportState,scrollElement:e.scrollElement,isReused:!!e.reuseState,renderPagePreview:e.renderPagePreview,isPageSizeReal:e.firstCurrentPageIndex===t.pageIndex||e.arePageSizesLoaded,hintLinesPageIndex:e.hintLines?.pageIndex,contentEditor:e.contentEditorSession.contentEditor}}))(Ld);class Vd extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"spreadRef",u.createRef()),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"pageIndexesWaitingForRender",(0,Zi.P1)(this.props.viewportState,this.props.spreadIndex)),(0,v.Z)(this,"_handleOverviewRenderFinished",(e=>{if(this.props.onOverviewRenderFinished){const t=this.pageIndexesWaitingForRender.indexOf(e);t>-1&&this.pageIndexesWaitingForRender.splice(t,1),0===this.pageIndexesWaitingForRender.length&&this.props.onOverviewRenderFinished&&this.props.onOverviewRenderFinished(this.props.spreadIndex)}}))}render(){const{spreadIndex:e,viewportState:t,inViewport:n,shouldPrerender:r,onCropChange:o,cropInfo:i}=this.props,a=(0,Zi.Xk)(t,e);return u.createElement("div",{style:{width:a.width*t.zoomLevel,height:a.height*t.zoomLevel},hidden:this.props.hidden},(0,Zi.P1)(t,e).map((a=>{const s=(0,Z.DB)(E.sl.IDENTITY,t,a,e,t.zoomLevel),l=this.props.pageKeys.get(a);return u.createElement("div",{key:l,style:{transform:s.toCssValue(!0),transformOrigin:"0 0",position:"absolute"}},u.createElement(re.Reparent,{id:`page-${l}`},u.createElement(Kd,{pageIndex:a,inViewport:n,shouldPrerender:r,viewportRect:t.viewportRect,onInitialOverviewRenderFinished:this._handleOverviewRenderFinished,innerRef:this.props.innerRef,parent:this.spreadRef,onCropChange:o,cropInfo:i,setGlobalCursor:this.props.setGlobalCursor})))})))}}var Hd=n(80444),$d=n(14286);const Ud=u.memo((function(e){const{viewportState:t}=e,{lastScrollUsingKeyboard:n}=t,r=u.useRef(null),o=(0,Zi.dF)(t,t.currentPageIndex),[i,a]=(0,Zi.wU)(t,o);return u.useEffect((()=>{const e=(0,Zi.kd)(t),i=t.prerenderedPageSpreads??e;o-i>0&&r.current&&n&&r.current.focus({preventScroll:!0})}),[o,n,t]),0===t.viewportRect.width||0===t.viewportRect.height?null:u.createElement(Hd.Z,{dispatch:e.dispatch,viewportState:t},u.createElement("div",null,function(){const{viewportState:t,viewportState:{viewportRect:n,scrollPosition:s,zoomLevel:l},onCropChange:c,cropInfo:d}=e,p=(0,Zi.kd)(t),h=s.y,f=s.y+n.height/l,m=(0,Zi.Ad)(t);let g=0,v=0;const y=[];for(let n=0;n<p;n++){const s=(0,Zi.Xk)(t,n);v=g+s.height;const b=g<f&&v>h,w=(m-s.width)/2,x=new E.UL({left:w,top:g,width:s.width,height:s.height}).scale(l),_={left:x.left,top:x.top,width:x.width,height:x.height,position:"absolute"};v+=t.spreadSpacing,g=v;const S=t.prerenderedPageSpreads??p;if((0,Zi.wX)(n,o,S)){const s=n===o,l=(0,Zi.nw)(t)===$d.X.DOUBLE?n.toString():e.pageKeys.get(n);y.push(u.createElement("div",{key:l,className:"PSPDFKit-Spread",style:_,"data-spread-index":n},u.createElement(Vd,{spreadIndex:n,viewportState:t,inViewport:b,shouldPrerender:!s&&"number"==typeof i&&o===i,onOverviewRenderFinished:a,innerRef:s?r:void 0,onCropChange:c,cropInfo:d,pageKeys:e.pageKeys,setGlobalCursor:e.setGlobalCursor})))}}return y}()))}));var Zd,qd,Gd=n(93162),Wd=n.n(Gd),Yd=n(87161),Xd=n.n(Yd);class Qd extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"rootRef",u.createRef()),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"_handleOnClose",(()=>{this.props.dispatch((0,Pt.Sn)())})),(0,v.Z)(this,"_download",(()=>{Wd().saveAs(this._getBlob(),`PSPDFKit-for-Web-Debug-Output-${Date.now()}.txt`)}))}_getDebugOutput(){const e=document.documentElement;if((0,l.kG)(e,"externalDocumentElement must not be null"),this.rootRef.current){const t=this.rootRef.current.ownerDocument.documentElement;return(0,l.kG)(t,"internalDocumentElement must not be null"),`-----BEGIN VERSION-----\n  PSPDFKit for Web Version: 2024.5.1 (0e2bcd120f)\n  PSPDFKit Document Engine Version: 2024.5.1\n  -----END VERSION-----\n\n  -----BEGIN CLIENT INFO-----\n  User Agent: ${navigator.userAgent}\n  Language: ${navigator.language}\n  Engine: ${fe.SR}\n  System: ${fe.By}\n  Pixel ratio: ${(0,Mr.L)()}\n  -----END CLIENT INFO-----\n\n  -----BEGIN EXTERNAL HTML-----\n  ${e.innerHTML}\n  -----END EXTERNAL HTML-----\n\n  -----BEGIN INTERNAL HTML-----\n  ${t.innerHTML}\n  -----END INTERNAL HTML-----\n  `}}_getBlob(){return new Blob([this._getDebugOutput()],{type:"text/plain;charset=utf-8"})}render(){return u.createElement(vu.Z,{onDismiss:this._handleOnClose},u.createElement("div",{className:Xd().root,ref:this.rootRef},u.createElement("div",{className:Xd().header},Zd||(Zd=u.createElement("h2",null,"Debug Output")),qd||(qd=u.createElement("p",null,"When reporting an issue to support, please provide the debug output. The output contains the PSPDFKit for Web version, information about your device, a snapshot of the current DOM. Please submit new support requests via our"," ",u.createElement("a",{target:"_blank",href:"https://pspdfkit.com/support/request"},"support form"),".")),u.createElement(o.zx,{onClick:this._download},"Download Debug Output"))))}}class Jd extends u.Component{constructor(){var e;super(...arguments),e=this,(0,v.Z)(this,"onConfirm",(()=>{if(this.props.setA11yStatusMessage){const{formatMessage:e}=this.props.intl;this.props.setA11yStatusMessage(e(tp.annotationDeleted))}const e={annotations:(0,a.aV)(this.props.annotations),reason:X.f.DELETE_END};this.props.eventEmitter.emit("annotations.willChange",e),this.props.annotations.forEach((e=>{this.props.dispatch((0,at.hQ)(e))})),this.onCancel(!1),this.props.dispatch((0,ve.fz)())})),(0,v.Z)(this,"onCancel",(function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(e.props.dispatch((0,at.d8)(null)),t){const t={annotations:(0,a.aV)(),reason:X.f.DELETE_END};e.props.eventEmitter.emit("annotations.willChange",t)}}))}render(){const{formatMessage:e}=this.props.intl;return u.createElement(ol.Z,{onConfirm:this.onConfirm,onCancel:this.onCancel,accessibilityLabel:e(tp.deleteAnnotationConfirmAccessibilityLabel),accessibilityDescription:e(tp.deleteAnnotationConfirmAccessibilityDescription),"aria-atomic":!0,restoreOnClose:!1},u.createElement("p",null,e(tp.deleteAnnotationConfirmMessage)))}}const ep=(0,he.XN)(Jd),tp=(0,he.vU)({deleteAnnotationConfirmMessage:{id:"deleteAnnotationConfirmMessage",defaultMessage:"Are you sure you want to delete this annotation?",description:'Message displayed in the "Delete Annotation" confirm dialog'},deleteAnnotationConfirmAccessibilityLabel:{id:"deleteAnnotationConfirmAccessibilityLabel",defaultMessage:"Confirm annotation deletion",description:'Accessibility label (title) for the "Delete Annotation" confirm dialog'},deleteAnnotationConfirmAccessibilityDescription:{id:"deleteAnnotationConfirmAccessibilityDescription",defaultMessage:"Dialog allowing the user to confirm or cancel deleting the annotation",description:'Accessibility description for the "Delete Annotation" confirm dialog'},annotationDeleted:{id:"annotationDeleted",defaultMessage:"Annotation deleted.",description:"An annotation has been deleted."}});function np(e){let{locale:t}=e;const n=(0,u.useRef)(null);return(0,u.useEffect)((function(){const e=n.current;if(!e)return;const r=e.ownerDocument.documentElement;r&&(r.lang=t)}),[t]),u.createElement("div",{ref:n})}var rp=n(33056),op=n(93952),ip=n.n(op);class ap extends u.PureComponent{render(){const{outlineElements:e,expanded:t,navigationDisabled:n,onRenderItemCallback:r}=this.props;return e.map(((e,i)=>{const{isBold:a,isItalic:s,children:l,action:c,color:d}=e,h=`${this.props.parentLevel}-${i}`;let f=t.get(h);"boolean"!=typeof f&&(f=e.isExpanded);const m=l.size>0,g=u.createElement("span",{className:p()(ip().controlContainer,{[ip().controlContainerNoIcon]:!m,[ip().controlContainerNavigationDisabled]:!m&&n})},m&&u.createElement("span",{onClick:e=>{e.stopPropagation(),this.props.onPress(h,null,m)}},u.createElement(we.Z,{type:"caret",className:p()(ip().icon,f&&ip().iconExpanded),style:{width:24,height:24}})),u.createElement("span",{className:ip().control,style:{fontWeight:a?"bold":void 0,fontStyle:s?"italic":void 0,...d?{color:d.toCSSValue()}:null}},e.title)),v=()=>{this.props.onPress(h,c,m)},y=r?t=>r(t,e):void 0;if(!m||!f)return u.createElement(o.w6,{key:h,onPress:v,expanded:!1,autoFocus:0===i&&"0"===this.props.parentLevel,headingRef:y},g);const b=`outline-control-${h}`;return u.createElement("div",{key:h,ref:y},u.createElement(o.w6,{onPress:v,expanded:f,ariaControls:b,autoFocus:0===i&&"0"===this.props.parentLevel},g),u.createElement(o.F0,{expanded:f,id:b},u.createElement("div",{className:ip().content},u.createElement(ap,{parentLevel:h,onPress:this.props.onPress,outlineElements:l,expanded:t,navigationDisabled:n,onRenderItemCallback:r}))))}))}}(0,v.Z)(ap,"defaultProps",{parentLevel:"0"});var sp,lp=n(25217),cp=n.n(lp),up=n(78055),dp=n.n(up);const pp=u.memo((function(e){const{outlineElements:t,expanded:n,backend:r,documentHandle:o,navigationDisabled:i,closeOnPress:a=!1}=e,[c,d]=u.useState(null);u.useEffect((()=>{c?.focus()}),[c]);const h=(0,s.I0)();u.useEffect((()=>{t||((0,l.kG)(r),r.getDocumentOutline().then((e=>{h((0,rp.o)(e))})))}),[]);const f=(0,yr.jC)(e);u.useEffect((()=>{o===f?.documentHandle||t||((0,l.kG)(r),r.getDocumentOutline().then((e=>{h((0,rp.o)(e))})))}));const m=(0,yr.R9)(((e,t,n)=>{n&&h((0,rp.Q)(e)),i||(setTimeout((()=>{t&&h((0,rr.aG)(t))})),a&&!n&&h((0,Pt.mu)()))})),g=t||null,v=(0,yr.Bo)(c,g),y=(0,yr.mP)(v,(e=>e.title),(e=>g?.find((t=>t.title===e)))),b=p()(ip().container,!t&&ip().empty+" PSPDFKit-Sidebar-Loading",t&&0===t.size&&ip().empty+" PSPDFKit-Sidebar-Empty","PSPDFKit-Sidebar-Document-Outline"),{formatMessage:w}=(0,he.YB)();return g?0===g.size?u.createElement("div",{className:b,ref:d},w(hp.noOutline)):u.createElement("div",{className:b,role:"region","aria-label":w(hp.outline),ref:d},u.createElement("div",{className:dp().sidebarHeader},u.createElement("h2",{"aria-hidden":"true",className:p()(cp().heading,"PSPDFKit-Sidebar-Document-Outline-Heading")},u.createElement("span",null,w(hp.outline)))),u.createElement(ap,{outlineElements:g,expanded:n,onPress:m,navigationDisabled:i,onRenderItemCallback:y})):u.createElement("div",{className:b,ref:d},sp||(sp=u.createElement(De.Z,null)))})),hp=(0,he.vU)({noOutline:{id:"noOutline",defaultMessage:"No Outline",description:"Message shown when there is no document outline / table of contents"},outline:{id:"outline",defaultMessage:"Outline",description:"Outline"}});class fp extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"_handleKeydown",(e=>{const t=this.props.shadowRoot?.activeElement||this.props.document.activeElement;this.props.hasSelectedAnnotations||t&&"BODY"!==t.tagName&&(0,Wn.Qu)(t)||e.shiftKey||e.metaKey||e.ctrlKey||e.alt||(e.keyCode===jn.P9&&this._handleKeyLeft(),e.keyCode===jn.gs&&this._handleKeyRight())})),(0,v.Z)(this,"_handleKeyRight",(()=>{const e=(0,qi.TW)(this.props.viewportState);Math.ceil(this.props.viewportState.scrollPosition.x)>=Math.floor(e.x)&&this.props.dispatch((0,Ls.fz)())})),(0,v.Z)(this,"_handleKeyLeft",(()=>{Math.floor(this.props.viewportState.scrollPosition.x)<=0&&this.props.dispatch((0,Ls.IT)())}))}componentDidMount(){(this.props.shadowRoot?.ownerDocument||this.props.document).addEventListener("keydown",this._handleKeydown)}componentWillUnmount(){(this.props.shadowRoot?.ownerDocument||this.props.document).removeEventListener("keydown",this._handleKeydown)}render(){const{children:e}=this.props;return void 0===e?null:e}}var mp=n(51722),gp=n(73900);function vp(e,t,n){return async(r,o)=>{const{viewportState:{currentPageIndex:i},formFields:s}=o(),c=[],u=[];for(const t of e){const{annotation:e,formField:o,attachmentBlobPromise:d}=t,p="COPY"===n&&t.annotation.pageIndex===i?new k.E9({x:20,y:20}):t.offset;if(e instanceof k.x_){const t=s.get(e.formFieldName)||o;(0,l.kG)(t,`Form field with name "${e.formFieldName}" not found`);const d=(0,O.xc)(),h="CUT"===n?e.formFieldName:`${t?.name} copy`,f=e.id===e.name;let m=e.set("id",d).set("formFieldName",h).set("boundingBox",p?e.boundingBox.translate(p):e.boundingBox).delete("group").delete("pdfObjectId");n&&(m=m.set("pageIndex",i)),f&&(m=m.set("name",d));let g=t.set("name",h).set("annotationIds",(0,a.aV)([d])).set("id",(0,zi.C)()).delete("group").delete("pdfObjectId");t.options&&"CUT"!==n&&(g=g.set("options",(0,a.aV)([t.options.get(0).set("value",`${t.options.get(0).value}_1`)])).set("annotationIds",(0,a.aV)([d]))),c.push(m),r((0,at.$d)(m)),r((0,En.kW)(g)),u.push(g)}else{const t=(0,O.xc)(),o=e.id===e.name;let a=e.set("id",t).delete("pdfObjectId");if(p&&(a=(0,yo.n)(a,p)),n&&(a=a.set("pageIndex",i)),o&&(a=a.set("name",t)),"imageAttachmentId"in e&&e.imageAttachmentId&&d){let e;try{e=await d}catch(e){throw new l.p2(`Could not retrieve attachment data: ${e.message}`)}(0,l.kG)(e,"Attachment not found");const{hash:t}=await(0,ke.uq)(e),n=new k.Pg({data:e});r((0,U.O)({hash:t,attachment:n})),a=a.set("imageAttachmentId",t)}c.push(a),r((0,at.$d)(a))}}const d={annotations:c,formFields:u,previousAction:n,originalAnnotations:e.map((e=>e.annotation)),originalFormFields:s};t(d)}}class yp extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"state",{copiedOrCutAnnotations:null}),(0,v.Z)(this,"getSelectedAnnotations",(()=>{const{annotations:e,selectedAnnotationsIds:t,backend:n}=this.props,r=e?.filter((e=>t?.has(e.id))).valueSeq().toArray();return r?.map((e=>{let t;return e instanceof k.sK&&e.imageAttachmentId&&(t=n?.getAttachment(e.imageAttachmentId)),{annotation:e,attachmentBlobPromise:t}}))})),(0,v.Z)(this,"handleKeyDown",(async e=>{const{dispatch:t,selectedAnnotationsIds:n,commentThreads:r,isPrinting:o,printingEnabled:i,canDeleteSelectedAnnotationCP:c,selectedAnnotation:u,eventEmitter:d,backend:p,formFields:h,areClipboardActionsEnabled:f,modalClosurePreventionError:m,setModalClosurePreventionError:g,annotations:v,isMultiSelectionEnabled:y,contentEditorSession:b,interactionMode:w}=this.props;(0,l.kG)(p,"backend is required");const x=e.composedPath()[0];if(e.metaKey&&e.ctrlKey)return;if(this.props.canUndo&&(e.metaKey||e.ctrlKey)&&!e.shiftKey&&e.keyCode===jn.gx&&!(0,Wn.eR)(x))return t((0,lo.Yw)()),void e.preventDefault();if(this.props.canRedo&&!(0,Wn.eR)(x)&&(e.metaKey||e.ctrlKey)&&e.shiftKey&&e.keyCode===jn.gx)return t((0,lo.KX)()),void e.preventDefault();if(f&&(e.metaKey||e.ctrlKey)&&e.keyCode===jn.b8&&e.shiftKey&&n&&n.size>0&&(e.preventDefault(),this.props.selectedGroupId?t((0,Pt.UZ)(this.props.selectedGroupId)):(0,s.dC)((()=>{n.forEach((e=>{const n=this.props.annotationsGroups?.find((t=>{let{annotationsIds:n}=t;return n.has(e)}));n&&t((0,Pt.of)(e,n.groupKey))}))}))),e.shiftKey)return;f&&(e.metaKey||e.ctrlKey)&&e.keyCode===jn.b8&&n&&n.size>0&&(e.preventDefault(),t((0,Pt._R)(n))),(e.ctrlKey&&e.keyCode===jn.j4||e.metaKey&&e.keyCode===jn.j4)&&(t((0,ve.fz)()),t((0,xs.Xe)()),e.preventDefault()),(e.metaKey||e.ctrlKey)&&e.keyCode===jn.iT&&(!o&&i&&t((0,gp.S0)()),e.preventDefault(),e.stopImmediatePropagation()),(e.metaKey||e.ctrlKey)&&e.keyCode===jn.AV&&(t((0,Ls.kr)()),e.preventDefault()),(e.metaKey||e.ctrlKey)&&e.keyCode===jn.d2&&(t((0,Ls.vG)()),e.preventDefault()),(e.metaKey||e.ctrlKey)&&e.keyCode===jn.Cp&&(t((0,Ls._R)()),e.preventDefault());const{copiedOrCutAnnotations:_}=this.state;var S,C;if(f&&(e.ctrlKey||e.metaKey)&&_&&"v"===e.key&&(e.preventDefault(),e.stopPropagation(),t((S=_,(e,t)=>{const{eventEmitter:n}=t();e(vp(S,(e=>{n.emit("annotations.paste",e)}),S?.[0]?.previousAction?.toUpperCase()))})),this.setState({copiedOrCutAnnotations:null})),f&&y&&(e.ctrlKey||e.metaKey)&&"a"===e.key){const n=x&&(0,Wn.eR)(x),r=window.top?.document.activeElement,o=r&&(0,Wn.eR)(r);if(n||o)return;e.preventDefault(),e.stopPropagation();const i=v?.filter((e=>e.pageIndex===this.props.currentPageIndex)).map((e=>e.id));i&&(0,s.dC)((()=>{t((0,ve.fz)()),t((0,ve.Df)(i.toSet(),null))}))}if(b.active&&b.textBlockInteractionState.state===Ba.FP.Selected&&["Del","Delete","Backspace"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),t((0,yd.u)(Ba.wR.Delete))),n&&n.size>0&&!(0,Wn.eR)(x))if(!["Del","Delete","Backspace"].includes(e.key)||r&&n.some((e=>r.has(e)))||!c){if(f&&(e.ctrlKey||e.metaKey)&&u&&"c"===e.key){e.preventDefault(),e.stopPropagation();const t=this.getSelectedAnnotations()?.map((e=>({...e,previousAction:"copy"})));this.setState({copiedOrCutAnnotations:t}),d.emit("annotations.copy",{annotation:u})}else if(f&&(e.ctrlKey||e.metaKey)&&u&&"x"===e.key){if(!t((C=u,(e,t)=>(0,lr.Kd)(C,t()))))return;e.preventDefault(),e.stopPropagation();const n=this.getSelectedAnnotations()?.map((e=>{const t=e.annotation;return{...e,formField:t instanceof k.x_?h?.get(t.formFieldName):void 0,previousAction:"cut"}}));this.setState({copiedOrCutAnnotations:n}),d.emit("annotations.cut",{annotation:u}),(0,s.dC)((()=>{n.forEach((e=>{t((0,at.hQ)(e.annotation))}))}))}else if(f&&(e.ctrlKey||e.metaKey)&&u&&"d"===e.key){e.preventDefault(),e.stopPropagation();const n=this.getSelectedAnnotations();t(function(e){return(t,n)=>{const{eventEmitter:r}=n();t(vp(e,(e=>{r.emit("annotations.duplicate",e)}))),t((0,ve.J4)((0,a.l4)(e.map((e=>e.annotation.id))),L.o.SELECTED))}}(n)),this.setState({copiedOrCutAnnotations:null})}else if(!("Esc"!==e.key&&"Escape"!==e.key||(0,Wn.N1)(x)||(0,Wn.fp)(x)||m&&m.annotationId===u?.id)){e.preventDefault(),e.stopPropagation(),t((0,ve.fz)());const r=n.first(),o=this.props.getScrollElement();if(o&&r){const e=o.querySelector(`[data-annotation-id="${r}"]`);e&&(0,Wn._s)(o,e)}}}else m?.annotationId===u?.id&&g(null),e.preventDefault(),e.stopPropagation(),t((0,at.d8)(n));"Esc"!==e.key&&"Escape"!==e.key||w!==j.A.MEASUREMENT||(0,s.dC)((()=>{t((0,at.Ds)(null)),t((0,Pt.hS)())})),e.keyCode!==jn.bs||(0,Wn.eR)(x)||(e.preventDefault(),e.stopPropagation())})),(0,v.Z)(this,"_handleRef",(e=>{this.props.shadowRoot?this._document=this.props.shadowRoot.ownerDocument:e&&!this.props.shadowRoot&&(this._document=e.ownerDocument)}))}componentDidMount(){this._document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleKeyDown),this.props.isTextCopyingAllowed||this._document.addEventListener("copy",bp)}componentWillUnmount(){this._document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keydown",this.handleKeyDown),this.props.isTextCopyingAllowed||this._document.removeEventListener("copy",bp)}render(){return u.createElement("div",{ref:this._handleRef})}}function bp(e){const{target:t}=e;(0,mp.c)(t)||e.preventDefault()}const wp=["highlight","strikeout","underline","squiggle","redact-text-highlighter","comment","document-assistant"],xp=(0,M.Z)("InlineTextSelectionToolbarItem ");var _p=n(23514),Sp=n.n(_p);const Cp=new Map([["highlight",k.FV],["strikeout",k.R9],["underline",k.xu],["squiggle",k.hL],["redact-text-highlighter",q.Z],["comment",k.Jn]]);function Ep(e){return e.node?u.createElement(Wl.Z,{node:e.node,title:e.title,className:e.className,icon:e.icon,onPress:e.onPress,selected:e.selected,disabled:e.disabled}):u.createElement(Ll.Z,{type:e.type,title:e.title,className:e.className,icon:e.icon,onPress:e.onPress,selected:e.selected,disabled:e.disabled})}function kp(e){const t=(0,he.YB)(),{dispatch:n,isAnnotationTypeReadOnly:r,showComments:o,showRedactions:i,showDocumentAssistant:a,hasMobileLayout:s,inlineTextSelectionToolbarItems:c,currentTextSelection:d}=e,h=t.formatMessage,f=u.useCallback(((e,t)=>{n((0,at.VX)(e,t)),n((0,ve.fz)())}),[n]),m=u.useCallback((()=>{n((0,Cr.cQ)())}),[n]),g=u.useCallback((()=>{d&&(n((0,Pt.Z_)(!0)),n((0,Pt.vM)(d)))}),[n,d]),v=p()({[Sp().button]:!s},{[Zl().button]:s}),y=u.useMemo((()=>{const e=[{type:"highlight",title:h(be.Z.highlightAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Highlight",v),onPress:()=>{f(k.FV,"highlight")}},{type:"strikeout",title:h(be.Z.strikeOutAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Strike-Out",v),onPress:()=>{f(k.R9,"strikeout")}},{type:"underline",title:h(be.Z.underlineAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Underline",v),onPress:()=>{f(k.xu,"underline")}},{type:"squiggle",title:h(be.Z.squiggleAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Squiggle",v),onPress:()=>{f(k.hL,"squiggle")}}];return o&&e.push({type:"comment",title:h(be.Z.comment),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Comment",v),onPress:()=>{m()}}),i&&e.push({type:"redact-text-highlighter",title:h(be.Z.redactionAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Redaction",v),onPress:()=>{f(q.Z,"redaction")}}),a&&e.unshift({type:"document-assistant",title:h(be.Z.documentAI),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Document-Assistant",v),onPress:()=>{g()}}),e}),[f,v,h,m,o,i,a,g]),b=u.useMemo((()=>{if(c){if(!d)return[];const e=c({defaultItems:y,hasDesktopLayout:!s},d);e.forEach((e=>{!function(e){xp((0,l.PO)(e)&&!!e,"Expected item to be an object");const{type:t,id:n,title:r,icon:o,className:i,onPress:a,disabled:s}=e;xp("type"in e&&(0,R.HD)(t)&&[...wp,"custom"].includes(t),`Expected item.type to be one of ${[...wp,"custom"].join(", ")}`),r&&xp((0,R.HD)(r),"Expected `title` to be a string"),o&&xp((0,R.HD)(o),"Expected `icon` to be a string"),n&&xp((0,R.HD)(n),"Expected `id` to be a string"),i&&xp((0,R.HD)(i),"Expected `className` to be a string"),a&&xp("function"==typeof a,"`onPress` must be a `function`"),"disabled"in e&&xp("boolean"==typeof s,"`disabled` must be a `boolean`"),e.node&&xp(zs.a.includes(e.node.nodeType),"`node.nodeType` is invalid. Expected one of "+zs.a.join(", "))}(e)}));return e.map((e=>"custom"===e.type&&null!==e.onPress?{...e,onPress:()=>{e.onPress(),n((0,ve.fz)())}}:e)).map((e=>({node:Ep(e),type:e.type})))}return y.map((e=>({node:Ep(e),type:e.type})))}),[y,d,s,c,Ep,n]),w=p()({[Zl().content]:s,[Zl().mobileTextMarkup]:s,[Sp().inner]:!s});return u.createElement("div",{className:p()("PSPDFKit-Text-Markup-Inline-Toolbar",{[Sp().root]:!s}),role:"dialog","aria-label":h(be.Z.markupToolbar)},u.createElement("div",{className:w},b.map(((e,t)=>"custom"!==e.type&&"document-assistant"!==e.type&&r(Cp.get(e.type))?null:"custom"===e.type?u.createElement("div",{key:`custom-${t}`},e.node):u.createElement("div",{key:e.type},e.node)))))}class zp extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O)}render(){const{position:e,dispatch:t,showComments:n,showRedactions:r,currentTextSelection:o,isAnnotationTypeReadOnly:i,inlineTextSelectionToolbarItems:a,showDocumentAssistant:s}=this.props;return u.createElement("div",{className:p()("PSPDFKit-Annotation-Toolbar",Zl().root,{[Zl().stickToBottom]:"bottom"===e})},u.createElement(kp,{dispatch:t,isAnnotationTypeReadOnly:i,showComments:n,showRedactions:r,hasMobileLayout:!0,inlineTextSelectionToolbarItems:a,currentTextSelection:o,showDocumentAssistant:s}))}}var Pp=n(67040),Dp=n(18726),Ap=n(60101),Tp=n(39270),Ip=n.n(Tp);const Mp=u.memo((function(e){const t=e.items.map(((t,n)=>{const{className:r,disabled:o,selected:i,icon:a,title:s,onPress:l}=t;return t.node?u.createElement(Ap.Z,{node:t.node,className:p()("PSPDFKit-Annotation-Tool-Node",e.itemClassName,r,Ip().node),onPress:l,title:s,disabled:o,selected:i,key:`AnnotationTools-tool-${n}`}):u.createElement(iu.Z,{type:"custom",className:p()("PSPDFKit-Annotation-Tool-Button",e.itemClassName,r,Ip().button),disabled:o,selected:i,icon:a,title:s,onPress:l,key:`AnnotationTools-tool-${n}`})}));return u.createElement("div",{role:"toolbar",className:p()(Ip().root,e.rootClassName)},t)}));function Rp(e){e.stopPropagation()}const Fp=(0,he.XN)((e=>{const{children:t,fullScreen:n,hover:r,tools:o,intl:i,closeNote:a,clearNote:s,isLocked:l,isReadOnly:c,hasLockedContents:d,...h}=e,{formatMessage:f}=i,m=u.useRef(null);u.useEffect((function(){const e=m.current;if(e)return e.addEventListener("wheel",Rp,!0),()=>e.removeEventListener("wheel",Rp,!0)}),[]);const g=(0,we.Z)({type:"close"}),v=(0,we.Z)({type:"delete"}),y=(0,we.Z)({type:"lock",style:{width:12,height:12,flexBasis:12},className:ct().icon}),b=[c?f(be.Z.readOnlyAnnotationFlag):"",l?f(be.Z.locked):"",d?f(be.Z.lockedContents):""].filter((e=>""!==e)).join(", ");return u.createElement("div",(0,oe.Z)({className:`PSPDFKit-Note-Annotation-Content ${ct().wrapper}${n?" "+ct().fullScreen:""}`},h,{ref:m}),u.createElement("div",{className:ct().header},u.createElement("h3",{className:ct().title},f(be.Z.noteAnnotation)),u.createElement("button",{className:p()(ct().button,r?ct().hidden:null),title:f(be.Z.close),"aria-label":f(be.Z.close),onClick:a||void 0,role:"button",type:"button"},g)),u.createElement("div",{className:ct().content},t),s&&u.createElement("button",{className:p()(ct().button,r?ct().hidden:null),title:f(be.Z.clear),"aria-label":f(be.Z.clear),onClick:s,role:"button",type:"button"},v),o&&!n&&u.createElement("div",{className:ct().tools},u.createElement(Mp,{items:o,rootClassName:ct().tools,itemClassName:ct().tool})),u.createElement("div",{className:ct().footer},(l||c||d)&&u.createElement(u.Fragment,null,y,u.createElement("div",{className:ct().label,"aria-label":b},b))))})),Np={left:0,top:0,maxWidth:"100%",maxHeight:"auto",minWidth:"100%",minHeight:"100%"};class Op extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"_didUpdate",!1),(0,v.Z)(this,"_didEditorFocus",!1),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"state",{value:this.props.annotation.text.value}),(0,v.Z)(this,"focus",(()=>{this._isFocused||(this._isFocused=!0,this._editor&&this._editor.focus())})),(0,v.Z)(this,"clearText",(()=>{this._editor&&this._editor.clearText()})),(0,v.Z)(this,"_isFocused",!1),(0,v.Z)(this,"_lastSavedAnnotation",this.props.annotation),(0,v.Z)(this,"_onRef",(e=>{this._editor=e})),(0,v.Z)(this,"_valueDidUpdate",(()=>{this._didUpdate=!0})),(0,v.Z)(this,"_updateAnnotation",(()=>{if(this._didUpdate){const e=this.props.annotation.set("text",{format:"plain",value:this._editor?.getPlainText()});if(this._lastSavedAnnotation.text.value!==e.text.value||this._lastSavedAnnotation.text.format!==e.text.format)if(this._lastSavedAnnotation=e,e instanceof hr.FN){const t=e.parentAnnotation?.set("note",e.text.value);(0,l.kG)(t),this.props.dispatch((0,at.FG)(t))}else this.props.dispatch((0,at.FG)(e)),this.props.keepSelectedTool&&this.props.dispatch((0,Pt.i9)())}else this.props.keepSelectedTool&&this.props.dispatch((0,Pt.i9)())})),(0,v.Z)(this,"_onBlur",(()=>{this._updateAnnotation()})),(0,v.Z)(this,"_onStopEditing",(()=>{this._updateAnnotation(),this.props.dispatch((0,at.i0)(!0))})),(0,v.Z)(this,"_onEscape",(()=>{this.props.dispatch((0,ve.fz)()),this._updateAnnotation()})),(0,v.Z)(this,"_handleEditorFocus",(()=>{if(!this._didEditorFocus){const e={annotations:(0,a.aV)([this.props.annotation]),reason:X.f.TEXT_EDIT_START};this.props.eventEmitter.emit("annotations.willChange",e)}this._didEditorFocus=!0}))}UNSAFE_componentWillReceiveProps(e){e.annotation.text.value!==this.props.annotation.text.value&&(this._editor&&(this._editor.innerText=e.annotation.text.value),this.setState({value:e.annotation.text.value}))}componentWillUnmount(){if(this._didEditorFocus){const e={annotations:(0,a.aV)([this.props.annotation]),reason:X.f.TEXT_EDIT_END};this.props.eventEmitter.emit("annotations.willChange",e)}this._updateAnnotation()}render(){return u.createElement(Gr,{autoFocus:!1,autoSelect:this.props.autoSelect,onBlur:this._onBlur,onStopEditing:this._onStopEditing,onEscape:this._onEscape,ref:this._onRef,maxLength:Ae.RI,defaultValue:this.state.value,lastMousePoint:this.props.lastMousePoint,style:{...Np,cursor:this.props.uneditableContentCursor||"inherit"},valueDidUpdate:this._valueDidUpdate,onFocus:this._handleEditorFocus})}}(0,v.Z)(Op,"defaultProps",{autoSelect:!1});var jp=n(84337);class Lp extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"state",{}),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"_closeNote",(()=>{this.props.noteAnnotation instanceof hr.FN?this.props.dispatch((0,ve.mv)(null)):this.props.dispatch((0,ve.fz)())})),(0,v.Z)(this,"_clearNote",(()=>{this._editor&&this._editor.clearText()})),(0,v.Z)(this,"_preventDeselect",(e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),(0,v.Z)(this,"_makeHandleMouseUpAndTouchEnd",(e=>(0,Pp.S)((t=>{this.setState({lastMousePoint:new k.E9({x:t.clientX,y:t.clientY})},(()=>{this.props.dispatch((0,ve.VR)(e))}))})))),(0,v.Z)(this,"_onRef",(e=>{this._editor=e,this.props.isFullscreen&&this._editor&&this._editor.focus()})),(0,v.Z)(this,"_getGradient",(0,Ut.Z)((e=>{let t=e.lighter(30);const n=Math.min(t.r,t.g,t.b);for(let e=0;e<10&&t.contrastRatio(k.Il.BLACK)<4.5;e++)t=t.lighter((255-n)/25.5);return{top:t.lighter(30),bottom:t}}))),(0,v.Z)(this,"isPopoverPositioned",!1),(0,v.Z)(this,"onPopoverPositioned",(()=>{!this.isPopoverPositioned&&this._editor&&(this.isPopoverPositioned=!0,this._editor.focus())}))}render(){const{dispatch:e,noteAnnotation:t,noteAnnotationToModify:n,viewportState:r,isFullscreen:o,collapseSelectedNoteContent:i}=this.props;if(null==t.pageIndex||i)return null;const a=n&&t.id===n.id,s=t instanceof hr.FN,{color:c}=t,d=Kp[c.toCSSValue()]||this._getGradient(c.saturate(60)),p=this.props.isAnnotationReadOnly(t),h=p||t.lockedContents;if(o){if(!a&&!p)return null;const n=c.toCSSValue(),o=`linear-gradient(to bottom, ${d.top.toCSSValue()} 0%, ${d.bottom.toCSSValue()} 100%)`,i=r.viewportRect.height-(this.props.annotationToolbarHeight<r.viewportRect.height?this.props.annotationToolbarHeight:0),l=(0,O.B7)(t);return u.createElement(Fp,{fullScreen:!0,hover:this.props.isHover,key:`NoteAnnotationContent-${t.id}`,style:{backgroundColor:n,backgroundImage:o,width:"100%",height:i,top:i<r.viewportRect.height?this.props.annotationToolbarHeight:"auto"},onMouseUp:this._preventDeselect,onPointerUp:this._preventDeselect,onTouchEnd:this._preventDeselect,closeNote:this._closeNote,clearNote:a&&!h&&s?this._clearNote:void 0,id:`NoteAnnotationContent-${t.id}`,isLocked:t.locked,isReadOnly:t.readOnly,hasLockedContents:t.lockedContents},h?t.text.value:u.createElement(Op,{annotation:t,dispatch:e,ref:this._onRef,autoSelect:this.props.autoSelect,eventEmitter:this.props.eventEmitter,keepSelectedTool:this.props.keepSelectedTool,uneditableContentCursor:l}))}let f,m;a||h||(f=m=this._makeHandleMouseUpAndTouchEnd(t.id));const g=(0,Z.cr)(r,t.pageIndex).translate(r.scrollPosition.scale(r.zoomLevel)),v=t.update("boundingBox",(e=>((0,l.kG)(e),e.merge({left:e.left+(e.width-e.width/r.zoomLevel)/2,top:e.top+(e.height-e.height/r.zoomLevel)/2,width:e.width/r.zoomLevel,height:e.height/r.zoomLevel})))),y=(0,O.B7)(t,{isExpandedNote:!0});return u.createElement(jp.Z,{referenceRect:(0,O.SY)(v,r.zoomLevel,r.pagesRotation).apply(g),viewportState:r,onPositionInfoChange:this.onPopoverPositioned,baseColor:c,color:[d.top,d.bottom],className:"PSPDFKit-Popover-Note-Annotation",customZIndex:1001},u.createElement(Fp,{onMouseUp:f,onTouchEnd:m,tools:this.props.tools,closeNote:this._closeNote,clearNote:a&&!h&&s?this._clearNote:void 0,hover:this.props.isHover,id:`NoteAnnotationContent-${t.id}`,style:{cursor:y},isLocked:t.locked,isReadOnly:t.readOnly,hasLockedContents:t.lockedContents},h?t.text.value:u.createElement(Op,{annotation:t,dispatch:e,ref:a?this._onRef:void 0,lastMousePoint:this.state.lastMousePoint,autoSelect:this.props.autoSelect,eventEmitter:this.props.eventEmitter,keepSelectedTool:this.props.keepSelectedTool,uneditableContentCursor:y})))}}(0,v.Z)(Lp,"defaultProps",{autoSelect:!1});const Bp={yellow:{top:new k.Il({r:245,g:240,b:158}),bottom:new k.Il({r:250,g:247,b:106})},orange:{top:new k.Il({r:250,g:213,b:161}),bottom:new k.Il({r:255,g:184,b:112})},red:{top:new k.Il({r:255,g:181,b:178}),bottom:new k.Il({r:255,g:134,b:126})},fuchsia:{top:new k.Il({r:255,g:186,b:255}),bottom:new k.Il({r:240,g:139,b:233})},blue:{top:new k.Il({r:164,g:211,b:255}),bottom:new k.Il({r:113,g:166,b:244})},green:{top:new k.Il({r:190,g:255,b:161}),bottom:new k.Il({r:130,g:227,b:111})}},Kp={};for(const e of Dp.W)null!=e.color&&null!=e.localization.id&&(Kp[e.color.toCSSValue()]=Bp[e.localization.id]);var Vp=n(1175),Hp=n(98861),$p=n.n(Hp);class Up extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"elementRef",u.createRef()),(0,v.Z)(this,"state",{isPanning:!1}),(0,v.Z)(this,"initialPosition",null),(0,v.Z)(this,"previousPosition",null),(0,v.Z)(this,"_handleDragStart",(e=>{this.props.enabled&&(0,Vp.I)(e)&&(this.initialPosition=this.previousPosition=new E.E9({x:e.clientX,y:e.clientY}),this.setState({isPanning:!0}),this._addEventListeners())})),(0,v.Z)(this,"_handleDragMove",(e=>{if(!(0,Vp.W)(e))return void this._handleDragEnd(e);if(!this.props.enabled||!this.previousPosition)return;const t=new E.E9({x:e.clientX,y:e.clientY}),n=this.previousPosition.translate(t.scale(-1)),r=this._getScrollElement(),{scrollLeft:o,scrollTop:i}=r;r.scrollLeft=o+n.x,r.scrollTop=i+n.y,this.previousPosition=t,e.stopPropagation()})),(0,v.Z)(this,"_handleDragEnd",(e=>{this.initialPosition&&this.previousPosition&&(Dt(this.initialPosition,this.previousPosition)&&(e.stopPropagation(),e.stopImmediatePropagation()),this.previousPosition=null,this.setState({isPanning:!1}),this._removeEventListeners())}))}componentDidMount(){this.elementRef.current&&this.elementRef.current.addEventListener("mousedown",this._handleDragStart)}componentWillUnmount(){this.elementRef.current&&this.elementRef.current.removeEventListener("mousedown",this._handleDragStart),this._removeEventListeners()}render(){const{enabled:e}=this.props,{isPanning:t}=this.state,n=p()({[$p().layer]:e,[$p().isPanning]:t});return u.createElement("div",{className:n,ref:this.elementRef},this.props.children)}_addEventListeners(){const{defaultView:e}=this._getScrollElement().ownerDocument;e?.addEventListener("mouseup",this._handleDragEnd,!0),e?.addEventListener("mousemove",this._handleDragMove)}_removeEventListeners(){const e=this._getScrollElement();if(!e)return;const{defaultView:t}=e.ownerDocument;t&&(t.removeEventListener("mouseup",this._handleDragEnd,!0),t.removeEventListener("mousemove",this._handleDragMove))}_getScrollElement(){return this.context()}}(0,v.Z)(Up,"contextType",js);const Zp=u.memo((function(e){const{dispatch:t,viewportState:n,interactionMode:r,spreadIndex:o,onCropChange:i,cropInfo:a}=e,s=u.useRef(null);u.useEffect((()=>{null!==s.current&&s.current!==o&&(r===j.A.SEARCH?t((0,ve.vR)()):t((0,ve.fz)())),s.current=o}),[t,o,r]);const[l,c]=(0,Zi.wU)(n,o);if(0===n.viewportRect.width||0===n.viewportRect.height)return null;function d(t,r,o){const s={transform:(0,Z.vs)(E.sl.IDENTITY,n,t).toCssValue(),transformOrigin:"0 0"},l=(0,Zi.nw)(n)===$d.X.DOUBLE?t.toString():e.pageKeys.get(t);return u.createElement("div",{key:l,className:"PSPDFKit-Spread",style:s,"data-spread-index":t},u.createElement(Vd,{key:l,spreadIndex:t,viewportState:n,inViewport:r,shouldPrerender:o,hidden:!r,onOverviewRenderFinished:c,onCropChange:i,cropInfo:a,pageKeys:e.pageKeys,setGlobalCursor:e.setGlobalCursor}))}return u.createElement(Hd.Z,{dispatch:e.dispatch,viewportState:n},u.createElement("div",null,function(e){const t=[];if(t.push(d(e,!0,!1)),n.scrollMode===ea.G.DISABLED)return t;const r=(0,Zi.kd)(n),o=n.prerenderedPageSpreads??r,i=Math.max(e-o,0),a=Math.min(e+o,r-1);for(let n=i;n<=a;n++)n!==e&&t.push(d(n,!1,"number"==typeof l&&e===l));return t}(o)))}));var qp=n(87856),Gp=n(14883),Wp=n.n(Gp),Yp=n(60679);const Xp=!(!qp.Gn||"edge"==fe.SR)&&{passive:!0};class Qp extends u.Component{constructor(){super(),(0,v.Z)(this,"_elementRef",u.createRef()),(0,v.Z)(this,"_handleWheel",(e=>{const{viewportState:t,scrollElement:n}=this.props,r=t.zoomLevel<=(0,Gi.Mq)(t);let o=!0;if(n){const{clientHeight:e,scrollHeight:r}=n;o=t.commentMode!==Yp._.SIDEBAR||t.scrollMode!==ea.G.PER_SPREAD||t.scrollPosition.y+e>=r}if(!(r&&o))return;const i=(0,Z.G4)(t);e.clientX>Math.ceil(i.left)+i.width+t.viewportPadding.x||(e.deltaY<0?this.props.dispatch((0,Ls.IT)()):e.deltaY>0&&this.props.dispatch((0,Ls.fz)()))})),(0,v.Z)(this,"_handleSwipeLeft",(()=>{const e=(0,qi.TW)(this.props.viewportState);Math.ceil(this.props.viewportState.scrollPosition.x)>=Math.floor(e.x)&&this.props.dispatch((0,Ls.fz)())})),(0,v.Z)(this,"_handleSwipeRight",(()=>{Math.floor(this.props.viewportState.scrollPosition.x)<=0&&this.props.dispatch((0,Ls.IT)())})),(0,v.Z)(this,"_handleTouchStart",(e=>{const t=this._elementRef.current;t&&null===this._touchStart&&(0,vs.sX)(e)&&(this._touchStart=th(e),t.ownerDocument.addEventListener("touchend",this._handleTouchEnd,!0))})),(0,v.Z)(this,"_handleTouchEnd",(e=>{const t=this._elementRef.current;if(!t)return;const n=this._touchStart;if(!n)return;const r=th(e),o=r.x-n.x,i=r.y-n.y,a=function(e,t,n){const r=t/e||0,o=n/e||0;return Math.abs(r)>Math.abs(o)?r:o}(r.timestamp-n.timestamp,o,i),s=function(e,t){const n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}(n,r),l=function(e,t){if(e===t)return 0;if(Math.abs(e)>=Math.abs(t))return e<0?Jp:eh;return t<0?3:4}(o,i);if(s>10&&Math.abs(a)>.3&&!this.props.interactionsDisabled)switch(l){case Jp:this._handleSwipeLeft();break;case eh:this._handleSwipeRight()}t.ownerDocument.removeEventListener("touchend",this._handleTouchEnd,!0),this._touchStart=null})),(0,v.Z)(this,"_handleClick",(e=>{const t=this._elementRef.current;if(!t||this.props.hasSelection||t.ownerDocument.defaultView&&e.target instanceof t.ownerDocument.defaultView.HTMLElement&&(0,mp.c)(e.target))return;const n=t.getBoundingClientRect(),r=(e.clientX-n.left)/n.width;r<.3?this._handleSwipeRight():r>.7&&this._handleSwipeLeft()})),this._handleWheel=(0,_d.Z)(this._handleWheel,250),this._touchStart=null}componentDidMount(){const e=this._elementRef.current;e&&(e.addEventListener("touchstart",this._handleTouchStart),e.addEventListener("wheel",this._handleWheel,Xp))}componentWillUnmount(){const e=this._elementRef.current;e&&(e.removeEventListener("touchstart",this._handleTouchStart),e.removeEventListener("wheel",this._handleWheel,Xp),e.ownerDocument.removeEventListener("touchend",this._handleTouchEnd,!0))}render(){return u.createElement("div",{className:Wp().root,onClick:this._handleClick,ref:this._elementRef},this.props.children)}}const Jp=1,eh=2;function th(e){const t=e.touches[0]||e.changedTouches[0];return{x:t.clientX,y:t.clientY,timestamp:Date.now()}}var nh=n(16085),rh=n.n(nh);const oh=function(e){let{progress:t,totalPages:n}=e;const{formatMessage:r}=(0,he.YB)(),i=(0,s.I0)(),a=u.useCallback((()=>{(0,s.dC)((()=>{i((0,Pt.Zg)()),i((0,gp.WQ)())}))}),[i]);return u.createElement(vu.Z,{onEscape:a,accessibilityLabel:r(ih.printProgressModal),accessibilityDescription:r(ih.printProgressModalDesc)},u.createElement("div",{className:rh().root},u.createElement("div",null,r(ih.printPrepare)),"number"==typeof t&&u.createElement(u.Fragment,null,u.createElement("div",{className:rh().progressWrapper},u.createElement("div",{className:rh().progress,"aria-label":`${t}% complete`,role:"progressbar","aria-valuenow":t},u.createElement("div",{className:rh().progressBar,style:{width:`${Math.floor(100*t/n)}%`}})),u.createElement("div",{className:rh().progressText},r(ih.pageXofY,{arg0:t,arg1:n}))),u.createElement(o.zx,{title:r(be.Z.cancel),onClick:a},r(be.Z.cancel)))))},ih=(0,he.vU)({pageXofY:{id:"pageXofY",defaultMessage:"Page {arg0} of {arg1}",description:"Printing processing progress"},printPrepare:{id:"printPrepare",defaultMessage:"Preparing document for printing…",description:"Shown while the printing process is preparing the pages for printing"},printProgressModal:{id:"printProgressModal",defaultMessage:"Printing in progress",description:"Printing in progress modal"},printProgressModalDesc:{id:"printProgressModalDesc",defaultMessage:"Indicates that a document is being prepared for printing",description:"Description for the Printing in progress modal"}});var ah,sh=n(22945),lh=n.n(sh);const ch=function(){const{formatMessage:e}=(0,he.YB)();return u.createElement(vu.Z,{accessibilityLabel:e(uh.signingModal),accessibilityDescription:e(uh.signingModalDescription)},u.createElement("div",{className:lh().root},u.createElement(Pe.Z,{src:n(65936),className:lh().icon,role:"presentation"}),u.createElement("div",{className:lh().message},e(uh.signing),ah||(ah=u.createElement(De.Z,null)))))},uh=(0,he.vU)({signing:{id:"signing",defaultMessage:"Signing...",description:"Shown while the digital signature flow is in progress"},signingModal:{id:"signingInProgress",defaultMessage:"Signing in progress",description:"Signing in progress modal"},signingModalDescription:{id:"signingModalDesc",defaultMessage:"Indicates that the current document is being signed",description:"Description of the Signing in progress modal"}});var dh,ph=n(57193),hh=n.n(ph);function fh(){const{formatMessage:e}=(0,he.YB)();return u.createElement(vu.Z,{accessibilityLabel:e(mh.redactionsModal),accessibilityDescription:e(mh.redactionModalDescription)},u.createElement("div",{className:hh().root},u.createElement(Pe.Z,{src:n(20377),className:hh().icon,role:"presentation"}),u.createElement("div",{className:hh().message},e(mh.applyingRedactions),dh||(dh=u.createElement(De.Z,null)))))}const mh=(0,he.vU)({applyingRedactions:{id:"applyingRedactions",defaultMessage:"Applying redactions...",description:"Shown while the redactions flow is in progress"},redactionsModal:{id:"redactionInProgress",defaultMessage:"Redaction in progress",description:"Redaction in progress modal"},redactionModalDescription:{id:"redactionModalDesc",defaultMessage:"Indicates that the current document is being redacted",description:"Description of the Redacted in progress modal"}});var gh=n(58288),vh=n.n(gh);const yh={WebkitOverflowScrolling:"touch",overflow:"auto"},bh=[jn.cS,jn.rw,jn.wG,jn.MS];class wh extends u.PureComponent{constructor(e){super(e),(0,v.Z)(this,"usingNavigationKeys",!1),(0,v.Z)(this,"handleScroll",(0,_d.Z)(this.handleScroll.bind(this),100,!0)),(0,v.Z)(this,"handleKeyDown",(e=>{bh.indexOf(e.keyCode)>=0&&!this.usingNavigationKeys&&(this.usingNavigationKeys=!0)})),(0,v.Z)(this,"handleKeyUp",(e=>{bh.indexOf(e.keyCode)>=0&&this.usingNavigationKeys&&(this.usingNavigationKeys=!1)})),(0,v.Z)(this,"_handleRef",(e=>{e&&(this.element=e,this.props.onScrollElementChange(e))})),this.previousKnownScrollPosition=new k.E9,this.previousKnownZoomLevel=1}updateScrollbarOffset(e){const t=this.element.offsetWidth-this.element.clientWidth,n="hidden"!==this.element.style.overflow;"number"==typeof t&&e!=t&&n&&this.props.dispatch((0,Pt.IU)(t))}componentDidUpdate(e){requestAnimationFrame((()=>this.updateScrollbarOffset(e.scrollbarOffset))),this.updateScrollPosition()}componentDidMount(){this.updateScrollbarOffset(),this.updateScrollPosition(),this.props.dispatch((0,Pt.K_)(this.element)),this.element.ownerDocument.addEventListener("keydown",this.handleKeyDown),this.element.ownerDocument.addEventListener("keyup",this.handleKeyUp)}componentWillUnmount(){this.props.dispatch((0,Pt.K_)(null)),this.element.ownerDocument.removeEventListener("keydown",this.handleKeyDown),this.element.ownerDocument.removeEventListener("keyup",this.handleKeyUp)}updateScrollPosition(){const{viewportState:e}=this.props;if(0===e.viewportRect.width)return;if(this.previousKnownScrollPosition.equals(e.scrollPosition)&&this.previousKnownZoomLevel===e.zoomLevel)return;const t=this.element,n=Math.round(e.scrollPosition.x*e.zoomLevel),r=Math.round(e.scrollPosition.y*e.zoomLevel);t.scrollTop!==r&&(t.scrollTop=r),t.scrollLeft!==n&&(t.scrollLeft=n),this.previousKnownScrollPosition=e.scrollPosition,this.previousKnownZoomLevel=e.zoomLevel}handleScroll(){const{dispatch:e,viewportState:t}=this.props,{scrollPosition:n,zoomLevel:r}=t;if(0===t.viewportRect.width)return;const o=this.element;if(void 0===o.scrollTop||void 0===o.scrollLeft)return;const i=new k.E9({x:o.scrollLeft/r,y:o.scrollTop/r}),a=function(e,t,n){const r=1/n;return Math.abs(e.x-t.x)>r||Math.abs(e.y-t.y)>r}(n,i,r);a&&(this.previousKnownScrollPosition=i,this.previousKnownZoomLevel=r,e((0,Ls.lt)(i,this.usingNavigationKeys)))}render(){const{children:e,scrollDisabled:t}=this.props;return u.createElement("div",{ref:this._handleRef,className:`PSPDFKit-Scroll ${vh().root}`,style:{...yh,overflow:t?"hidden":"auto"},onScroll:this.handleScroll},e)}}var xh,_h=n(76438),Sh=n(99135),Ch=n.n(Sh);const Eh=(0,he.XN)((function(e){const{formatMessage:t}=e.intl,n=t(kh.searchResultOf,{arg0:e.searchResultsSize>0?e.focusedResultIndex+1:0,arg1:e.searchResultsSize}),r=u.createElement("div",{role:"status",className:Ch().searchPosition,"aria-live":"polite","aria-label":fe.vU?n:void 0},n);return u.createElement(u.Fragment,null,e.isLoading&&u.createElement("div",{className:Ch().loader},xh||(xh=u.createElement(De.Z,null))),r)})),kh=(0,he.vU)({searchResultOf:{id:"searchResultOf",defaultMessage:"{arg0} of {arg1}",description:"Shows the current search result number. E.g. 1 of 10"}});var zh=n(48731),Ph=n.n(zh);const Dh=(0,he.vU)({searchPreviousMatch:{id:"searchPreviousMatch",defaultMessage:"Previous",description:"Go to the previous search result"},searchNextMatch:{id:"searchNextMatch",defaultMessage:"Next",description:"Go to the next search result"}}),Ah=(0,he.XN)((e=>{const t=u.useRef(null);u.useEffect((()=>{(()=>{const n=t.current;(0,me.k)(null!=n),n.ownerDocument.activeElement!==n&&e.isFocused?n.focus():n.ownerDocument.activeElement!==n||e.isFocused||n.blur()})()}));const{formatMessage:r}=e.intl,o=p()({[Ph().previous]:!0,"PSPDFKit-Search-Control-Prev":!0,"PSPDFKit-Search-Control-Prev-disabled":e.searchResultsSize<=0}),i=p()({[Ph().next]:!0,"PSPDFKit-Search-Control-Next":!0,"PSPDFKit-Search-Control-Next-disabled":e.searchResultsSize<=0}),a=0===e.term.length,s=p()({[Ph().results]:!0,[Ph().resultsDisabled]:a,"PSPDFKit-Search-Form-Result":!0}),l=r(be.Z.searchDocument);return u.createElement("div",{className:p()("PSPDFKit-Search",Ph().root,{[Ph().noToolbar]:!e.showToolbar||e.toolbarPlacement!==Hs.p.TOP}),"data-testid":"pspdfkit-search-form-component-root"},u.createElement("div",{className:`PSPDFKit-Search-Form ${Ph().searchBox}`},u.createElement("input",{type:"text",name:"search",ref:t,autoComplete:"off",placeholder:l,"aria-label":l,value:e.term,onChange:()=>{const n=t.current;(0,me.k)(null!=n);const r=n.value;let o=!1;e.eventEmitter.emit("search.termChange",{term:r,preventDefault:()=>{o=!0}}),o||(e.searchForTerm(n.value),e.searchProvider.searchTerm(n.value))},onKeyDown:t=>{t.shiftKey&&(t.keyCode===jn.E$||t.metaKey&&t.keyCode===jn.b8)?(t.preventDefault(),e.focusPreviousSearchHighlight()):t.keyCode===jn.E$||t.metaKey&&t.keyCode===jn.b8?(t.preventDefault(),e.focusNextSearchHighlight()):t.keyCode===jn.zz&&(t.preventDefault(),e.searchProvider.cancelSearch())},onFocus:()=>{e.focusSearch()},onBlur:()=>{e.blurSearch()},className:`PSPDFKit-Search-Form-Input ${Ph().input}`}),u.createElement("div",{className:s},!a&&u.createElement(Eh,{isLoading:e.isLoading,searchResultsSize:e.searchResultsSize,focusedResultIndex:e.focusedResultIndex})),u.createElement("div",{className:`PSPDFKit-Search-Control ${Ph().control}`},u.createElement("button",{className:o,title:r(Dh.searchPreviousMatch),disabled:e.searchResultsSize<=1,onClick:e.focusPreviousSearchHighlight},u.createElement(Pe.Z,{src:n(10190),className:`${Ph().icon} ${Ph().iconLeft}`})),u.createElement("button",{className:i,title:r(Dh.searchNextMatch),disabled:e.searchResultsSize<=1,onClick:e.focusNextSearchHighlight},u.createElement(Pe.Z,{src:n(92122),className:`${Ph().icon} ${Ph().iconRight}`})))),u.createElement("button",{className:`PSPDFKit-Search-Button-Close ${Ph().button}`,onClick:()=>e.searchProvider.cancelSearch()},r(be.Z.close)))}));const Th=(0,s.$j)((function(e){return{isFocused:e.searchState.isFocused,isLoading:e.searchState.isLoading,term:e.searchState.term,searchResultsSize:e.searchState.results.size,focusedResultIndex:e.searchState.focusedResultIndex,searchProvider:e.searchProvider,eventEmitter:e.eventEmitter,locale:e.locale,showToolbar:e.showToolbar,toolbarPlacement:e.toolbarPlacement}}),(function(e){return(0,_h.DE)({searchForTerm:xs._8,focusNextSearchHighlight:xs.jL,focusPreviousSearchHighlight:xs.dZ,focusSearch:xs.tB,blurSearch:xs.nJ},e)}))(Ah);class Ih{constructor(e,t,n){const r=e.getRangeAt(0);let o=new k.SV;if(this.selection=e,this.className=n,this.rootElement=t,this.isShadowRoot=t instanceof ShadowRoot,this.window=this.isShadowRoot?window:t.ownerDocument.defaultView,this.commonAncestorContainer=r.commonAncestorContainer,e.rangeCount>1){const t=e.getRangeAt(e.rangeCount-1);r.setEnd(t.endContainer,t.endOffset)}const i=!t?.contains(r.startContainer),a=!t?.contains(r.endContainer);(0,l.kG)(t);const s=!this.commonAncestorContainer?.contains(t);if(i&&a&&s)this.textRange=null;else{if(r.startContainer instanceof this.window.Text&&t?.contains(r.startContainer)&&this._parentsMatchClass(r.startContainer))o=o.set("startNode",r.startContainer).set("startOffset",r.startOffset);else if(r.startContainer instanceof this.window.Element||r.startContainer instanceof this.window.Text){let e;if(e=r.startContainer.hasChildNodes()?this._nextTextNode(r.startContainer.childNodes[r.startOffset]):this._nextTextNode(r.startContainer),null==e)return void(this.textRange=null);o=o.set("startNode",e).set("startOffset",0)}else(0,l.kG)(!1,"Selected start container is neither DOM Element nor Text");if(r.endContainer instanceof this.window.Text&&t?.contains(r.endContainer)&&this._parentsMatchClass(r.endContainer))o=o.set("endNode",r.endContainer).set("endOffset",r.endOffset);else if(r.endContainer instanceof this.window.Element||r.endContainer instanceof this.window.Text){let e;if(r.endContainer.hasChildNodes())if(r.endOffset>=r.endContainer.childNodes.length){let t=this._nextCrossSibling(r.endContainer);t||(t=r.endContainer.childNodes[r.endContainer.childNodes.length-1]),e=this._previousTextNode(t)}else e=this._previousTextNode(r.endContainer.childNodes[r.endOffset]);else e=this._previousTextNode(r.endContainer);if(null==e)return void(this.textRange=null);o=o.set("endNode",e).set("endOffset",e.length)}else(0,l.kG)(!1,"Selected start container is neither DOM Element nor Text");if(o.startNode==o.endNode&&o.startOffset>=o.endOffset)return void(this.textRange=null);if(!this._isBeforeOrSame(o.startNode,o.endNode))return void(this.textRange=null);this.textRange=o}}getTextRange(){return this.textRange}_nextTextNode(e){let t=this._findNextSpanNodeInTree(e);if(e===this.commonAncestorContainer)return null;let n=e;for(;!t;){if(n=this._nextCrossSibling(n),null==n)return null;t=this._findNextSpanNodeInTree(n)}return t.firstChild}_previousTextNode(e){let t=null;if(e===this.commonAncestorContainer)return null;let n=e;for(;!t;){if(n=this._previousCrossSibling(n),null==n)return null;t=this._findLastSpanNodeInTree(n)}return t.firstChild}_nextCrossSibling(e){if(!e)return null;if(null!=e.nextSibling)return e.nextSibling;const t=e.parentNode;return null==t||t===this.commonAncestorContainer?null:null!=t.nextSibling?t.nextSibling:this._nextCrossSibling(t)}_previousCrossSibling(e){if(null!==e.previousSibling)return e.previousSibling;const t=e.parentNode;return null==t||t===this.commonAncestorContainer?null:null!==t.previousSibling?t.previousSibling:this._previousCrossSibling(t)}_findNextSpanNodeInTree(e){if(e instanceof this.window.HTMLElement&&e.classList.contains(this.className))return e;if(e instanceof this.window.HTMLElement)for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t],r=this._findNextSpanNodeInTree(n);if(null!==r)return r}return null}_findLastSpanNodeInTree(e){if(e instanceof this.window.HTMLElement&&e.classList.contains(this.className))return e;if(e instanceof this.window.HTMLElement)for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t],r=this._findLastSpanNodeInTree(n);if(null!==r)return r}return null}_parentsMatchClass(e){let t=e.parentNode;for(;t;){if(t instanceof this.window.HTMLElement&&t.classList.contains(this.className))return!0;if(t instanceof this.window.ShadowRoot)break;t=t.parentNode}return!1}_isBeforeOrSame(e,t){const n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=0==e.compareDocumentPosition(t);return n||r}}var Mh=n(66645),Rh=n.n(Mh);let Fh=null,Nh=null;const Oh=(e,t)=>e.container===t.container&&e.offset===t.offset,jh={Left:!0,ArrowLeft:!0,Top:!0,ArrowTop:!0,Right:!0,ArrowRight:!0,Bottom:!0,ArrowBottom:!0,Home:!0,End:!0,PageDown:!0,PageUp:!0,Esc:!0,Escape:!0};class Lh extends u.PureComponent{constructor(){super(...arguments),(0,v.Z)(this,"isMouseSelection",!1),(0,v.Z)(this,"pointerMadeSelection",!1),(0,v.Z)(this,"isShiftPressed",!1),(0,v.Z)(this,"isPrimaryPointerGesture",!1),(0,v.Z)(this,"isSelecting",!1),(0,v.Z)(this,"selectionRange",document.createRange()),(0,v.Z)(this,"preventDefaultPointerUpAction",!1),(0,v.Z)(this,"_handleSelectStart",(()=>{this.props.interactionMode!==j.A.TEXT_HIGHLIGHTER&&this.props.interactionMode!==j.A.REDACT_TEXT_HIGHLIGHTER||(this.isShiftPressed?this._processTextSelection(fe.Ni?"touch":"mouse"):this.props.dispatch((0,ve.d5)((0,a.l4)(),this.props.interactionMode===j.A.TEXT_HIGHLIGHTER?k.FV:q.Z)))})),(0,v.Z)(this,"_handleSelectionChange",(()=>{const{interactionMode:e,shadowRoot:t,rootElement:n}=this.props,{defaultView:r}=n.ownerDocument;let o,i;if(fe.G6&&t)o=t?.getSelection();else{const{selection:e,isFalseCollapse:n}=t?(0,y.HY)(t):(0,y.sD)(r);o=e,i=n}!this.pointerMadeSelection&&(e=>{if(e.rangeCount<=0)return!1;if(e.rangeCount>1){const t=e.getRangeAt(e.rangeCount-1);t.setEnd(t.endContainer,t.endOffset)}const t=e.getRangeAt(0),{startContainer:n,endContainer:r,startOffset:o,endOffset:i}=t,a={container:n,offset:o},s={container:r,offset:i};let l;return l=null===Fh||null===Nh||!(Oh(Fh,a)||Oh(Nh,s)||Oh(Fh,s)||Oh(Nh,a)),Fh=a,Nh=s,l})(o)&&(this._handleSelectStart(),this.pointerMadeSelection=!0),this.isMouseSelection&&e!==j.A.TEXT_HIGHLIGHTER&&e!==j.A.REDACT_TEXT_HIGHLIGHTER||(o&&!o.isCollapsed||i)&&this._processTextSelection(fe.Ni?"touch":"mouse")})),(0,v.Z)(this,"_handlePointerUp",(e=>{let{pointerType:t,shiftKey:n,target:r}=e;if(r.closest(".BaselineUI-Dialog")||r.closest(".BaselineUI-Popover-Content")||r.closest(".BaselineUI-Popover-Underlay")||r.closest('.BaselineUI-ThemeProvider[data-testid="underlay"]')||r.closest(".PSPDFKit-Comment-Thread"))return;if(this.preventDefaultPointerUpAction)return void(this.preventDefaultPointerUpAction=!1);if(this.preventDefaultPointerUpAction=!1,!this.isPrimaryPointerGesture)return;"mouse"===t&&(this.isMouseSelection=!1);const o=r;if(o?.classList&&o.classList.contains("PSPDFKit-Scroll"))return;this.pointerMadeSelection=!1,this.isShiftPressed=n;const i=this.props.selectedAnnotationIds.size>1;this.isShiftPressed||fe.Ni&&i||window.setTimeout((()=>{this._checkForTextSelection(t)}),0)})),(0,v.Z)(this,"_handlePointerDown",(e=>{let{pointerType:t,shiftKey:n,isPrimary:r}=e;this.isPrimaryPointerGesture=r,"mouse"===t&&(this.isMouseSelection=!0,this.isShiftPressed=n)})),(0,v.Z)(this,"_handleKeyUp",(e=>{const{rootElement:t,shadowRoot:n}=this.props;if(t){const r=n?n.ownerDocument.defaultView:t.ownerDocument.defaultView;this.isShiftPressed=e.shiftKey;const o=e.composedPath()[0];if(!jh.hasOwnProperty(e.key)||r&&o instanceof r.HTMLElement&&((0,Wn.eR)(o,r)||(0,Wn.N1)(o)||(0,Wn.gC)(o)))return;window.setTimeout((()=>{e.defaultPrevented||this._checkForTextSelection("mouse")}),0)}}))}componentDidMount(){const{rootElement:e,shadowRoot:t}=this.props,n=t?.ownerDocument||e.ownerDocument,r=t||e.ownerDocument;n&&(r.addEventListener("keyup",this._handleKeyUp),n.addEventListener("selectionchange",this._handleSelectionChange))}componentWillUnmount(){const{rootElement:e,shadowRoot:t}=this.props,n=t?.ownerDocument||e.ownerDocument,r=t||e.ownerDocument;n&&(r.removeEventListener("keyup",this._handleKeyUp),n.removeEventListener("selectionchange",this._handleSelectionChange)),Fh=null,Nh=null}_checkForTextSelection(e){const{dispatch:t,currentTextSelection:n,selectedAnnotationIds:r,activeAnnotationNote:o,rootElement:i,interactionMode:a,shadowRoot:s}=this.props,{defaultView:l}=i.ownerDocument,c=s||i.ownerDocument;if(this.props.modalClosurePreventionError&&r.includes(this.props.modalClosurePreventionError.annotationId)){const e=c.querySelector(".PSPDFKit-Form-Creator-Popover > .PSPDFKit-Popover");return e?.classList.add(Rh().shakeEffect),void setTimeout((()=>{e?.classList.remove(Rh().shakeEffect)}),200)}if(!l)return;const{selection:u,isFalseCollapse:d}=s?(0,y.HY)(s):(0,y.sD)(l);u&&(!u.isCollapsed||d?this._processTextSelection(e):(n||r.size>0||o)&&(a===j.A.TEXT_HIGHLIGHTER||a===j.A.REDACT_TEXT_HIGHLIGHTER||a===j.A.CONTENT_EDITOR?(this.isShiftPressed&&t((0,ve.td)(a===j.A.TEXT_HIGHLIGHTER?k.FV:q.Z)),t((0,ve.vR)())):t((0,ve.fz)())))}_processTextSelection(e){const{dispatch:t,rootElement:n,interactionMode:r,shadowRoot:o}=this.props,{defaultView:i}=n.ownerDocument;if(!i&&!o)return;let a;if(fe.G6&&o)a=o.getSelection();else{const{selection:e}=o?(0,y.HY)(o):(0,y.sD)(i);a=e}if(!a)return;const l=a.rangeCount>0?((e,t,n)=>new Ih(e,t,n).getTextRange())(a,o||n,sa().selectableText):null;null!=l&&(0,s.dC)((()=>{t((0,ve.FP)(l,"mouse"===e&&r!==j.A.TEXT_HIGHLIGHTER&&r!==j.A.REDACT_TEXT_HIGHLIGHTER)),r===j.A.TEXT_HIGHLIGHTER?t((0,ve.BO)(k.FV)):r===j.A.REDACT_TEXT_HIGHLIGHTER&&t((0,ve.BO)(q.Z))}))}render(){return u.createElement(He.Z,{onPointerUp:this._handlePointerUp,onPointerDown:this._handlePointerDown,onPointerDownCapture:e=>{e.target.closest(".BaselineUI-Dialog")&&(this.preventDefaultPointerUpAction=!0)}},u.createElement("div",null,this.props.children))}}const Bh=(0,u.createContext)(null),Kh={didCatch:!1,error:null};class Vh extends u.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Kh}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(Kh)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(Kh))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=(0,u.createElement)(n,e);else{if(null!==r&&!(0,u.isValidElement)(r))throw i;a=r}}return(0,u.createElement)(Bh.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function Hh(e,t){return e>t?t/1.5:e}class $h extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"sidebarRef",u.createRef()),(0,v.Z)(this,"state",{size:Math.min(this.props.initialSize,this.props.maxWidth),prevSize:Math.min(this.props.initialSize,this.props.maxWidth)}),(0,v.Z)(this,"onResize",(e=>{const{size:t}=this.state,{onResize:n}=this.props,r=this.sidebarRef.current&&this.sidebarRef.current.getBoundingClientRect();r&&n?.({sidebarRect:r,isDragging:e,size:t})})),(0,v.Z)(this,"onResizeFinish",(e=>{e!==this.props.initialSize&&this.props.dispatch((0,Ls.Pt)(e))})),(0,v.Z)(this,"onDrag",((e,t)=>{const{minWidth:n,maxWidth:r}=this.props;this.setState((t=>{let{size:o}=t;return e<n?{size:n,prevSize:n}:e>r||r-e<10?{size:r,prevSize:o}:{size:e,prevSize:o}}),(()=>{this.onResize(t)}))})),(0,v.Z)(this,"onDoubleClick",(()=>{const{maxWidth:e}=this.props;this.setState((t=>{let{size:n,prevSize:r}=t;return n===e?{size:Hh(r,e)}:{size:e,prevSize:n}}),(()=>this.onResize(!1)))}))}componentDidMount(){this.onResize(!1)}componentDidUpdate(e){const{size:t,prevSize:n}=this.state,{maxWidth:r}=this.props;r!==e.maxWidth&&(t===e.maxWidth||t>r)?this.setState({size:r,prevSize:Hh(n,r)}):this.props.initialSize!==e.initialSize&&this.setState({size:this.props.initialSize})}componentWillUnmount(){this.onResize(!1)}render(){const{size:e}=this.state,{draggerSize:t,isRTL:n,maxWidth:r,minWidth:o}=this.props;return u.createElement("div",{ref:this.sidebarRef},u.createElement(Uh,{size:e,onDrag:this.onDrag,onDoubleClick:this.onDoubleClick,onResizeFinish:this.onResizeFinish,draggerSize:t,isRTL:n,currentValue:Math.round((e-o)/(r-o)*100),shadowRoot:this.props.shadowRoot},u.createElement(Vh,{fallbackRender:e=>{let{error:t}=e;return t(t.message)}},this.props.children(e-t,t))))}}class Uh extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"state",{isDragging:!1,previousPosition:null}),(0,v.Z)(this,"_handlePointerDown",(e=>{const{isPrimary:t}=e;if(!t)return;const n=new E.E9({x:e.clientX,y:e.clientY});this.setState({isDragging:!0,previousPosition:n})})),(0,v.Z)(this,"_handlePointerMove",(e=>{if(!this.state.isDragging)return;const t=new E.E9({x:e.clientX,y:e.clientY});this._handleDrag(t)})),(0,v.Z)(this,"_handlePointerUp",(e=>{if(!this.state.isDragging)return;this.setState({isDragging:!1});const{previousPosition:t}=this.state;if(!t)return;const n=new E.E9({x:e.clientX,y:e.clientY}),r=this.props.size+(this.props.isRTL?t.x-n.x:n.x-t.x);this.props.onResizeFinish(r)})),(0,v.Z)(this,"_handleDoubleClick",(()=>{this.props.onDoubleClick()})),(0,v.Z)(this,"_handleKeyDown",(e=>{const{size:t,isRTL:n,onDrag:r,onDoubleClick:o}=this.props;"ArrowRight"===e.key?r(n?t-2:t+2,!1):"ArrowLeft"===e.key?r(n?t+2:t-2,!1):"Enter"===e.key&&o()})),(0,v.Z)(this,"_handleDrag",(e=>{const{previousPosition:t}=this.state;if(!t)return;const n=this.props.size+(this.props.isRTL?t.x-e.x:e.x-t.x);this.props.onDrag(n,!1),this.setState({previousPosition:e})}))}render(){const{isRTL:e,draggerSize:t,currentValue:n}=this.props;return u.createElement("div",{className:`${dp().sidebar} PSPDFKit-Sidebar`,style:{width:this.props.size,position:"relative",overflow:"hidden",[e?"paddingLeft":"paddingRight"]:t}},this.props.children,u.createElement("div",{onDoubleClick:this._handleDoubleClick},u.createElement(He.Z,{onPointerDown:this._handlePointerDown,onRootPointerMoveCapture:this._handlePointerMove,onRootPointerUpCapture:this._handlePointerUp},u.createElement("div",{style:{[e?"left":"right"]:0,width:t},className:`${dp().dragger} PSPDFKit-Sidebar-Dragger`},u.createElement("div",{tabIndex:0,role:"separator","aria-label":"Resizer handle","aria-orientation":"vertical","aria-valuenow":n,onKeyDown:this._handleKeyDown,style:this.props.shadowRoot?{}:{[e?"right":"left"]:this.props.size-t},className:`${dp().draggerHandle} PSPDFKit-Sidebar-DraggerHandle`})))))}}class Zh extends u.PureComponent{render(){const{formatMessage:e}=this.props.intl;return u.createElement(vu.Z,{role:"dialog",onEscape:this.props.onEscape,background:"rgba(0,0,0,.1)",className:Kn().modal,accessibilityLabel:e(qh.signatureDialog),accessibilityDescription:e(qh.signatureDialogDescription)},this.props.children)}}const qh={signatureDialog:{id:"signatureDialog",defaultMessage:"Signature",description:"Signature Dialog"},signatureDialogDescription:{id:"signatureDialogDesc",defaultMessage:"This dialog lets you select an ink signature to insert into the document. If you do not have stored signatures, you can create one using the canvas view.",description:"Signature Dialog description"}},Gh=(0,he.XN)(Zh);var Wh=n(60379),Yh=n(16602),Xh=n(55752);const Qh=Yh.Z.filter((e=>[Wh.Z.BLACK,Wh.Z.BLUE,Wh.Z.RED].includes(e.color)));class Jh extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O),(0,v.Z)(this,"state",{annotation:new Xh.Z({...this.props.preset,isSignature:!0}),zoomLevel:1}),(0,v.Z)(this,"_onAnnotationColorChange",(e=>{const t=this.state.annotation.withMutations((t=>{t.set("strokeColor",e)}));this._onChange(t)})),(0,v.Z)(this,"_clear",(()=>{this.setState({annotation:new Xh.Z({...this.props.preset,isSignature:!0})},this._callOnChange)})),(0,v.Z)(this,"_onChange",(e=>{this.setState({annotation:e},this._callOnChange)})),(0,v.Z)(this,"_callOnChange",(()=>{const{onChange:e}=this.props;if(!e)return;e((0,yo.c)(this.state.annotation,this.state.annotation.boundingBox.getLocation().scale(-1),this.props.canvasSize,new E.E9))})),(0,v.Z)(this,"_onResize",(e=>{this.setState({zoomLevel:e.width/this.props.canvasSize.width})}))}render(){const{annotation:e}=this.state,{canvasSize:t}=this.props,{formatMessage:n}=this.props.intl,r=e.lines.isEmpty();return u.createElement(u.Fragment,null,u.createElement("div",{className:Kn().header},u.createElement(dc,{colorPresets:Qh,activeColor:e.strokeColor,onClick:this._onAnnotationColorChange,className:p()(Kn().colorPicker,"PSPDFKit-Signature-Dialog-Color-Picker")}),u.createElement(o.zx,{onClick:this._clear,inverted:!0,disabled:r,className:p()(Kn().button,"PSPDFKit-Signature-Dialog-Clear-Signature-Button")},n(be.Z.clearSignature))),u.createElement("div",{className:Kn().editorCanvasContainer},u.createElement("div",{className:p()(Kn().editorCanvas,"PSPDFKit-Signature-Dialog-Canvas","PSPDFKit-Signature-Canvas","interactions-disabled")},u.createElement(Zc.Z,{onResize:this._onResize}),u.createElement("div",{className:p()(Kn().signHere,"PSPDFKit-Signature-Dialog-Sign-Here-Label",{[Kn().signHereHidden]:!e.lines.isEmpty()})},n(ef.pleaseSignHere)),u.createElement(Rr,{annotation:e,canvasSize:t,onDrawStart:this._onChange,onDraw:this._onChange,onDrawEnd:this._onChange,zoomLevel:this.state.zoomLevel,cursor:"crosshair"}))))}}(0,v.Z)(Jh,"defaultProps",{canvasSize:new E.$u({width:600,height:260}),preset:{}});const ef=(0,he.vU)({pleaseSignHere:{id:"pleaseSignHere",defaultMessage:"Please sign here",description:"Message on the signature canvas"}}),tf=(0,he.XN)(Jh);var nf,rf=n(16522),of=n.n(rf);class af extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"imageFetcherRef",u.createRef()),(0,v.Z)(this,"loadingIndicatorTimeout",null),(0,v.Z)(this,"unmounted",!1),(0,v.Z)(this,"state",{loadingState:"LOADING",showLoadingIndicator:!1}),(0,v.Z)(this,"_fetchImage",(()=>{const{backend:e,attachment:t,templateWidth:n}=this.props;let r=this.props.annotation.update("boundingBox",(e=>e?.set("left",0).set("top",0))),{boundingBox:o}=r;const i=Math.max(o.width,o.height);return i<n&&(o=o.scale(n/i),r=r.set("boundingBox",o)),(0,ke.an)({backend:e,blob:t?.data,annotation:r,isDetachedAnnotation:!0,zoomLevel:1})})),(0,v.Z)(this,"_renderFinished",(e=>{this.unmounted||(this.setState({loadingState:"LOADED"}),this.props.onRenderFinished&&this.props.onRenderFinished(e))})),(0,v.Z)(this,"_showError",(()=>{this.setState({loadingState:"ERROR"})})),(0,v.Z)(this,"_showLoadingIndicator",(()=>{this.setState((e=>({showLoadingIndicator:"LOADING"===e.loadingState})))}))}componentDidUpdate(e){if(!(0,a.is)((0,O.ip)(this.props.annotation),(0,O.ip)(e.annotation))||e.annotation.imageAttachmentId!==this.props.annotation.imageAttachmentId||e.templateWidth<this.props.templateWidth){if(!this.imageFetcherRef.current)return;this.imageFetcherRef.current.refresh()}}componentDidMount(){this.loadingIndicatorTimeout=setTimeout(this._showLoadingIndicator,Ae.rB)}componentWillUnmount(){this.unmounted=!0,window.clearTimeout(this.loadingIndicatorTimeout)}render(){const{annotation:e,templateWidth:t,label:n,contain:r}=this.props,{opacity:o}=e,{width:i,height:a}=e.boundingBox,s=i>0&&a>0?i/a:1,l=s>1?of().wideImg:of().highImg,c=p()(e instanceof k.sK?of().imageAnnotation:of().stampAnnotation,r?of().containedImg:of().notContainedImg,l),d=p()(of().wrapper,{[of()["imageAnnotation-loading"]]:"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator,[of()["imageAnnotation-error"]]:"ERROR"===this.state.loadingState}),h={opacity:o,position:"relative",width:r?0===t||s>=1?"100%":t:"auto"},f={...h,height:0===t?"100%":s>1?t:t*s};return u.createElement("div",{style:h,className:d},u.createElement(ze.Z,{className:c,fetchImage:this._fetchImage,label:n,visible:!0,onRenderFinished:this._renderFinished,onError:this._showError,rectStyle:f,ref:this.imageFetcherRef}),"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator?u.createElement("div",{className:of().placeHolder},nf||(nf=u.createElement(De.Z,null))):"ERROR"===this.state.loadingState?u.createElement("div",{className:of().placeHolder},u.createElement(Pe.Z,{src:Ie(),className:of().errorIcon})):null)}}class sf extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"shouldComponentUpdate",ye.O)}render(){const{formatMessage:e}=this.props.intl,t=null==this.props.showDeleteBtn||this.props.showDeleteBtn;return u.createElement("ul",{className:p()(Kn().signaturePickerList,"PSPDFKit-Signature-Dialog-Picker","PSPDFKit-Signature-Picker")},this.props.signatures.map(((r,i)=>u.createElement("li",{key:i,className:p()(Kn().signaturePickerListItem,"PSPDFKit-Signature-Dialog-Picker-Item"),"data-signature":i},u.createElement(o.zx,{className:p()(Kn().selectSignatureButton,"PSPDFKit-Signature-Dialog-Picker-Item-Button",{[Kn().imageAnnotation]:r instanceof k.sK}),onClick:()=>{this.props.onSelect(r)},autoFocus:0===i},r instanceof k.Zc?u.createElement(et,{isSelectable:!1,annotation:r,viewBox:r.boundingBox}):u.createElement(af,{annotation:r,backend:this.props.backend,label:r.description||e(be.Z.imageAnnotation),attachment:r.imageAttachmentId?this.props.attachments.get(r.imageAttachmentId):null,templateWidth:153.5})),t?u.createElement("button",{className:p()(Kn().deleteSignatureButton,"PSPDFKit-Signature-Dialog-Picker-Item-Delete-Button"),onClick:()=>{this.props.onDelete(r)},"aria-label":e(be.Z.delete)},u.createElement(Pe.Z,{src:n(63949)})):null))))}}const lf=(0,he.XN)(sf);var cf;function uf(e){let{children:t,hasDivider:n}=e;return n?u.createElement(u.Fragment,null,cf||(cf=u.createElement(o.u_.Divider,{spaced:!1})),u.createElement(o.u_.Section,null,t)):u.createElement("div",{className:Kn().footer},t)}class df extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"state",{annotation:null,hideSignaturePicker:!1,storeSignature:!!this.props.canStoreSignature}),(0,v.Z)(this,"_hideSignaturePicker",(()=>{this.setState({hideSignaturePicker:!0,annotation:null})})),(0,v.Z)(this,"_onSignatureChange",(e=>{this.setState({annotation:e})})),(0,v.Z)(this,"_onDone",(()=>{const{onCreate:e,onCancel:t}=this.props,{annotation:n,storeSignature:r}=this.state;n?e?.(n,r,!0):t?.()})),(0,v.Z)(this,"_toggleStoreSignature",(()=>{this.setState((e=>({storeSignature:!e.storeSignature})))}))}render(){const{onCreate:e,onDelete:t,storedSignatures:n,preset:r}=this.props,i=!!this.props.canStoreSignature,s=!this.state.hideSignaturePicker&&i&&Boolean(n&&n.size>0),{formatMessage:l}=this.props.intl,{annotation:c,storeSignature:d}=this.state,h=null!==c&&c.lines instanceof a.aV&&!c.lines.isEmpty(),{SIGNATURE_SAVE_MODE:f}=We.Options,m=f===Vs.f.USING_UI;return u.createElement("div",{className:p()(Kn().viewRoot,"PSPDFKit-Signature-Dialog",{[Kn().viewSignaturePicker]:s})},s&&n?u.createElement(u.Fragment,null,u.createElement("div",{className:Kn().header},u.createElement("div",{className:p()(Kn().title,"PSPDFKit-Signature-Dialog-Signature-Heading"),role:"heading","aria-level":"1"},l(be.Z.signatures)),u.createElement(o.zx,{className:"PSPDFKit-Signature-Dialog-Add-Signature-Button",onClick:this._hideSignaturePicker,inverted:!0},l(be.Z.addSignature))),u.createElement("div",{className:Kn().signaturePickerContainer},u.createElement(lf,{signatures:n,onSelect:t=>{e(t,!1,!0)},onDelete:e=>{t(e,!0)},backend:this.props.backend,attachments:this.props.attachments,viewportWidth:this.props.viewportWidth}))):u.createElement(tf,{onChange:this._onSignatureChange,preset:r}),u.createElement(uf,{hasDivider:s&&i},!s&&i&&m&&u.createElement("label",{className:p()(Kn().checkbox,"PSPDFKit-Signature-Dialog-Store-Signature-Checkbox")},u.createElement("input",{type:"checkbox",name:"store",checked:d,onChange:this._toggleStoreSignature}),u.createElement("span",{className:Kn().checkboxLabel},l(be.Z.storeSignature))),u.createElement(o.hE,{className:Kn().group,align:"end"},u.createElement(o.zx,{onClick:this.props.onCancel,className:p()(Kn().button,"PSPDFKit-Signature-Dialog-Cancel-Button"),autoFocus:!s},l(be.Z.cancel)),!s&&u.createElement(o.zx,{primary:!0,disabled:!h,onClick:h?this._onDone:null,className:p()(Kn().button,"PSPDFKit-Signature-Dialog-Done-Button")},l(be.Z.done)))))}}(0,v.Z)(df,"defaultProps",{canStoreSignature:!0});const pf=(0,he.XN)(df);var hf=n(21655),ff=n(46455),mf=n(36828);const gf=(0,he.vU)({thumbnails:{id:"thumbnails",defaultMessage:"Thumbnails",description:"Thumbnails"}});const vf=(0,gn.x)((function(e){const{pages:t,backend:n,viewportState:{viewportRect:r},annotations:o,attachments:i,showAnnotations:s,formFields:l,renderPageCallback:c}=e,u=(0,Me.Qg)(l);let d={left:0,top:0,x:0,y:0};return e.shadowRoot instanceof ShadowRoot&&(d=e.shadowRoot.host.getBoundingClientRect()),{annotations:s?o:(0,a.D5)(),attachments:i,backend:n,formFields:l,formFieldValues:u,height:r.height,pages:t,renderPageCallback:c,containerOffset:d}}))((function(e){const{pages:t,closeOnPress:n,selectedPageIndex:r,navigationDisabled:o,containerOffset:i}=e,[l,c]=u.useState(null);u.useEffect((()=>{l?.focus()}),[l]);const d=u.useMemo((()=>t.map(mf.J)),[t]),{formatMessage:p}=(0,he.YB)(),h=(0,yr.Bo)(l,d),f=(0,yr.mP)(h,(e=>String(e.index)),(e=>d?.find((t=>String(t.index)===String(e))))),m=(0,s.I0)(),g=u.useCallback((function(e){o||(n?(m((0,Ls.YA)(e)),m((0,Pt.mu)())):e!==r&&m((0,Ls.YA)(e)))}),[n,m,r,o]),v=u.useCallback((function(e,n,r){const o=t.find((t=>t.pageIndex===e));if(!o)return{item:null,label:e+1+""};const i=f?e=>{f(e,(0,mf.J)(o))}:void 0;return{item:u.createElement(ff.Z,{key:o.pageKey,page:o,size:n,maxSize:r,pageRef:i}),label:o.pageLabel||e+1+""}}),[t,f]),y=u.useCallback((function(e){return t.find((t=>t.pageIndex===e))?.pageKey||`${e}`}),[t]);return u.createElement("div",{role:"region","aria-label":p(gf.thumbnails),tabIndex:-1,ref:c,className:"PSPDFKit-Sidebar-Thumbnails"},d?u.createElement(hf.Z,{width:e.width,height:e.height,totalItems:d.size,renderItemCallback:v,itemKeyCallback:y,itemScale:e.scale,onItemPress:g,selectedItemIndexes:(0,a.l4)([r]),cssPrefix:"PSPDFKit-Sidebar",clickDisabled:o,thumbnailHeight:Ae.rT,containerOffset:i}):null)}));var yf=n(27895),bf=n.n(yf);function wf(e){let{position:t,children:n}=e;return u.createElement("div",null,u.createElement("div",{className:p()("PSPDFKit-Toolbars",bf().root,{[bf().stickToBottom]:"bottom"===t})},n))}var xf=n(69842),_f=n(5017),Sf=n.n(_f);function Cf(e){const[t,r]=u.useState(!1),[i,a]=u.useState(!1),s=u.useRef(e.digitalSignatures);u.useEffect((()=>{e.digitalSignatures!==s.current&&r(!1),s.current=e.digitalSignatures}),[e.digitalSignatures]),u.useEffect((()=>{!async function(){const t=(0,Un.jI)(e.digitalSignatures,e.showSignatureValidationStatus);a(t)}()}),[e.showSignatureValidationStatus,e.digitalSignatures]);const{formatMessage:l}=(0,he.YB)(),{status:c,messageId:d,iconPath:h}=e.digitalSignatures?function(e){let{documentModifiedSinceSignature:t,status:n}=e;if(n===xf._.valid)return t?{status:"warning",messageId:"digitalSignaturesDocModified",iconPath:"warning-2.svg"}:{status:"valid",messageId:"digitalSignaturesAllValid",iconPath:"digital-signatures/signature-valid.svg"};if(n===xf._.warning)return{status:"warning",messageId:t?"digitalSignaturesSignatureWarningDocModified":"digitalSignaturesSignatureWarning",iconPath:"warning-2.svg"};if(n===xf._.error)return{status:"error",messageId:t?"digitalSignaturesSignatureErrorDocModified":"digitalSignaturesSignatureError",iconPath:"digital-signatures/signature-error.svg"};return{status:null,messageId:null,iconPath:null}}(e.digitalSignatures):{status:null,messageId:null,iconPath:null};if(null==c||null==d||t)return null;const f=p()(Sf().root,Sf()[`status-${c}`],"PSPDFKit-Digital-Signatures-Status",`PSPDFKit-Digital-Signatures-Status-${(0,Yt.kC)(c)}`),m=p()(Sf().signatureValidationStatusIcon,Sf()[`status-${c}-icon`],"PSPDFKit-Digital-Signatures-Status-Icon");return i?u.createElement("div",{className:f},u.createElement("div",{className:Sf().signatureInfoContainer},u.createElement("div",{className:Sf().signatureValidationStatusIconContainer},u.createElement(Pe.Z,{className:m,src:n(79230)(`./${h}`)})),u.createElement("span",{className:p()(Sf().signatureValidationStatusText,"PSPDFKit-Digital-Signatures-Status-Text")},l(Ef[d]))),u.createElement(o.zx,{className:p()(Sf().signatureValidationCloseButton,"PSPDFKit-Digital-Signatures-Status-Close-Button"),onClick:()=>{r(!0)},"aria-label":"Close digital signatures status bar"},u.createElement(Pe.Z,{className:Sf().signatureValidationCloseIcon,src:n(2256)}))):null}const Ef=(0,he.vU)({digitalSignaturesDocModified:{id:"digitalSignaturesDocModified",defaultMessage:"The document has been digitally signed, but it has been modified since it was signed.",description:"Message when document is valid but has been modified since it was signed."},digitalSignaturesAllValid:{id:"digitalSignaturesAllValid",defaultMessage:"The document has been digitally signed and all signatures are valid.",description:"Message when document is valid."},digitalSignaturesSignatureWarningDocModified:{id:"digitalSignaturesSignatureWarningDocModified",defaultMessage:"The document has been digitally signed, but it has been modified since it was signed and at least one signature has problems.",description:'Message when the document is in a "warning" status and the document has been modified since signing.'},digitalSignaturesSignatureWarning:{id:"digitalSignaturesSignatureWarning",defaultMessage:"The document has been digitally signed, but at least one signature has problems.",description:'Message when the document is in a "warning" status.'},digitalSignaturesSignatureErrorDocModified:{id:"digitalSignaturesSignatureErrorDocModified",defaultMessage:"The document has been digitally signed, but it has been modified since it was signed and at least one signature is invalid.",description:'Message when the document is in a "error" status and the document has been modified since signing.'},digitalSignaturesSignatureError:{id:"digitalSignaturesSignatureError",defaultMessage:"The document has been digitally signed, but at least one signature is invalid.",description:'Message when the document is in a "error" status.'}});var kf=n(99879),zf=n.n(kf);const Pf=u.memo((function(e){return u.createElement(Mp,{itemClassName:zf().item,rootClassName:p()("PSPDFKit-Annotation-Tooltip",zf().root),items:e.items})}));var Df=n(98416),Af=n.n(Df);function Tf(e){let{viewportState:{viewportRect:t},children:n,scrollbarOffset:r}=e;const o={width:t.width+r,height:t.height};return u.createElement("div",{className:`PSPDFKit-Viewport ${Af().root}`,style:o},n)}var If=n(91414),Mf=n.n(If);const Rf=(0,he.XN)((function(e){const{formatMessage:t}=e.intl;return u.createElement(vu.Z,{role:"alertdialog",onEscape:e.onCancel,background:"rgba(0,0,0,.1)",className:"PSPDFKit-Confirm-Dialog PSPDFKit-Reload-Document-Confirm-Dialog",accessibilityLabel:t(Ff.reloadDocumentDialog),accessibilityDescription:t(Ff.reloadDocumentDialogDesc)},u.createElement(vu.Z.Section,{style:{paddingBottom:0}},u.createElement("div",{className:`${Mf().content} PSPDFKit-Confirm-Dialog-Content`},u.createElement("div",null,t(Ff.instantModifiedWarning)))),u.createElement(vu.Z.Section,null,u.createElement(o.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end"},u.createElement(o.zx,{autoFocus:!0,onClick:e.onCancel,className:"PSPDFKit-Confirm-Dialog-Button PSPDFKit-Confirm-Dialog-Button-Cancel"},t(be.Z.cancel)),u.createElement(o.zx,{onClick:e.onConfirm,primary:!0,className:"PSPDFKit-Confirm-Dialog-Button PSPDFKit-Confirm-Dialog-Button-Confirm"},t(Ff.reloadDocument)))))})),Ff=(0,he.vU)({instantModifiedWarning:{id:"instantModifiedWarning",defaultMessage:"Reload document confirm dialog message",description:"The document was modified and is now in read-only mode. Reload the page to fix this."},reloadDocument:{id:"reloadDocument",defaultMessage:"Reload Document",description:"Reload"},reloadDocumentDialog:{id:"reloadDocumentDialog",defaultMessage:"Confirm document reload",description:"Reload Document Confirm Dialog"},reloadDocumentDialogDesc:{id:"reloadDocumentDialogDesc",defaultMessage:"Dialog prompting the user to confirm reloading the document.",description:"Description for the Reload Document Dialog"}});var Nf=n(56554),Of=n(13349),jf=n(36572),Lf=n.n(jf),Bf=n(3324),Kf=n(13608),Vf=n(65575),Hf=n.n(Vf);const $f={components:{ToolbarDropdownGroupComponent:Bf.Z,ToolbarButtonComponent:Ll.Z},styles:{...Lf(),toolbar:Kf}},Uf=(0,u.lazy)((()=>n.e(4572).then(n.bind(n,29332)))),Zf=u.createElement("div",{className:Hf().fallback,"data-testid":"fallback"},u.createElement("div",{className:Hf().fallbackToolbar}),u.createElement("div",{className:Hf().fallbackPagesView},u.createElement(De.Z,{scale:2})),u.createElement("div",{className:Hf().fallbackToolbar})),qf={documentEditor:{id:"documentEditor",defaultMessage:"Document Editor",description:"Document Editor"},documentEditorDesc:{id:"documentEditorDesc",defaultMessage:"Make changes to the current document",description:"Description of the Document Editor modal"}},Gf=e=>{const{formatMessage:t}=(0,he.YB)(),[n,r]=(0,u.useState)(!0),o=(0,u.useCallback)((e=>{r(!e)}),[]),i=(0,u.useCallback)((()=>{n&&e.onCancel()}),[n,e]);return u.createElement(vu.Z,{onEscape:i,useBorderRadius:!1,className:Hf().modal,accessibilityLabel:t(qf.documentEditor),accessibilityDescription:t(qf.documentEditorDesc)},u.createElement(u.Suspense,{fallback:Zf},u.createElement(Uf,{onCancel:e.onCancel,scale:e.scale,CSS_HACK:$f,onDialog:o,usesShadowDOM:e.usesShadowDOM})))};function Wf(){const[e,t]=u.useState(null),n=(0,s.v9)((e=>e.instance)),[r,o]=u.useState(!1);u.useEffect((()=>{o(!!n)}),[n]),u.useEffect((()=>{e?.focus()}),[e]),(0,yr.Bo)(e,null);const i=p()(dp().container,"PSPDFKit-Sidebar-Custom");return r?u.createElement("div",{role:"region",tabIndex:-1,ref:t,className:i}):null}var Yf,Xf=n(74792),Qf=n(22284);function Jf(e){const{formatMessage:t}=(0,he.YB)();return u.createElement("form",{onSubmit:e.onSave,className:p()(cp().editor,"PSPDFKit-Sidebar-Bookmarks-Editor"),onKeyUp:t=>{t.which===jn.zz&&e.onCancel()}},e.title&&u.createElement("h2",{className:p()(cp().heading,"PSPDFKit-Sidebar-Bookmarks-Heading")},e.title),u.createElement("label",null,u.createElement(o.oi,{value:e.value,onChange:e.onChange,autoFocus:!0,selectTextOnFocus:!0,name:"name",placeholder:t(be.Z.name),autoComplete:"off",style:{fontSize:"inherit",fontWeight:"normal",padding:"calc(0.8125em/ 2) 0.8125em"}})),u.createElement("div",{className:p()(cp().buttonContainer,"PSPDFKit-Sidebar-Bookmarks-Button-Container")},e.onDelete&&u.createElement(o.zx,{onClick:e.onDelete,inverted:!0,danger:!0,className:p()("PSPDFKit-Sidebar-Bookmarks-Button-Delete",cp().bookmarkDeleteButton)},t(be.Z.delete)),u.createElement("div",{className:cp().bookmarkSaveCancelButtonsContainer},u.createElement(o.zx,{onClick:e.onCancel,className:"PSPDFKit-Sidebar-Bookmarks-Button-Cancel"},t(be.Z.cancel)),u.createElement(o.zx,{primary:!0,type:"submit",className:"PSPDFKit-Sidebar-Bookmarks-Button-Save"},t(be.Z.save)))))}function em(e){var t;const{bookmarks:r,pages:i,currentPageIndex:l,bookmarkManager:c}=e,[d,h]=u.useState(null);u.useEffect((()=>{d?.focus()}),[d]);const[f,m]=u.useState(null),[g,v]=u.useState(null),[y,b]=u.useState(!1),[w,x]=u.useState(null),_=(0,s.I0)(),S=u.useRef(),C=u.useRef(null),E=u.useRef(!1),[z,P]=u.useState(new Set),{formatMessage:D}=(0,he.YB)(),A=(0,yr.R9)((()=>{m(null),v(null),b(!1)})),T=(0,yr.R9)((e=>{v(e.currentTarget.value)})),I=(0,yr.R9)((()=>{f&&f.id&&(E.current=!0),A(),x(D(rm.cancelledEditingBookmark))})),M=(0,yr.R9)((e=>{if(e.persist(),e.preventDefault(),f&&g!==f.name){let e=f.set("name",g).setIn(["action","pageIndex"],l);e.id?c.updateObject(e):(e=e.set("id",(0,Qf.A)()),C.current=e.id,c.createObject(e)),c.autoSave(),x(D(rm.bookmarkEdited))}else x(D(rm.bookmarkCreated));A()})),R=(0,yr.R9)((()=>{f&&(c.deleteObject(f),c.autoSave()),A(),x(D(rm.bookmarkDeleted))})),F=(0,yr.R9)((()=>{b(!1)})),N=(0,yr.R9)((()=>{b(!0)})),O=(0,yr.R9)((e=>{m(e),v(e.name||"")})),j=(0,yr.R9)((()=>{m(new k.rp({action:new k.Di({pageIndex:e.currentPageIndex})})),v("")}));u.useEffect((()=>{d?.hasAttribute("aria-label")&&d.focus()}),[d]);const L=(0,yr.jC)(e);u.useEffect((()=>{if(S.current&&L?.bookmarks&&r&&(L.bookmarks!==r||E.current)){const e=nm(r).findIndex((e=>e.id===C.current))??-1;e>-1&&S.current.setActiveItem(e),E.current=!1}}));const B=r?(0,a.aV)(nm(r)):r,K=(0,yr.Bo)(d,B),V={className:p()(cp().container,!B&&cp().loading+" PSPDFKit-Sidebar-Loading",B&&0===B.size&&" PSPDFKit-Sidebar-Empty","PSPDFKit-Sidebar-Bookmarks"),ref:h,style:{width:e.width},role:"region","aria-label":D(be.Z.bookmarks)},H=(0,yr.mP)(K,(e=>e.id),(e=>B?.find((t=>t.id===e))));if(!B)return u.createElement("div",(0,oe.Z)({},V,{tabIndex:0}),u.createElement(o.TX,{"aria-live":"polite"},D(rm.loadingBookmarks)),Yf||(Yf=u.createElement(De.Z,null)));const $=i.get(l),U=$&&$.get("pageLabel");return u.createElement("div",V,u.createElement(o.TX,{"aria-live":"polite"},D(be.Z.bookmarks)),f&&!f.id?u.createElement(Jf,{onChange:T,onSave:M,onCancel:I,value:g,title:D(be.Z.pageX,{arg0:U||e.currentPageIndex+1})+": "+D(rm.newBookmark)}):u.createElement("div",{style:{width:"100%"}},u.createElement("div",{className:dp().sidebarHeader},u.createElement("h2",{"aria-hidden":"true",className:p()(cp().heading,"PSPDFKit-Sidebar-Bookmarks-Heading")}," ",u.createElement("span",null,D(be.Z.bookmarks))),u.createElement(o.zx,{primary:!0,onClick:j,className:p()("PSPDFKit-Sidebar-Bookmarks-Button-Add"),autoFocus:!0},D(rm.newBookmark)))),B&&B.size>0&&u.createElement(o.HJ,{onActiveItemIndexChange:e=>{const t=B.get(e);t&&t.id&&(C.current=t.id)},ref:S,items:B.toArray().map(((r,o)=>{const a=r.action,s=a.pageIndex===l,c=p()({[cp().layout]:!0,[cp().layoutWidth]:!0,[cp().layoutEditing]:r===f,[cp().layoutNarrow]:e.closeOnPress,[cp().selected]:s,"PSPDFKit-Sidebar-Bookmarks-Bookmark":!0,"PSPDFKit-Sidebar-Bookmarks-Bookmark-Selected":s,"PSPDFKit-Sidebar-Bookmarks-Bookmark-Editing":r===f}),d=p()([cp().name],{[cp().nameEllipsis]:!z.has(o)},"PSPDFKit-Sidebar-Bookmarks-Name"),h=i.get(a.pageIndex),m=h&&h.pageLabel,v=r.action instanceof k.Di?D(be.Z.pageX,{arg0:m||a.pageIndex+1}):null,y=r.action instanceof k.Di?m||a.pageIndex+1:null,b=v||D(be.Z.bookmark),w=u.createElement(u.Fragment,null,u.createElement("div",{onClick:()=>(e=>{P((t=>(t.has(e)?t.delete(e):t.add(e),new Set(t))))})(o),className:d},r.name||D(be.Z.bookmark)),!!y&&u.createElement("span",{className:p()(cp().pageNumber)},y));r.name;const x=H?e=>{H(e,r)}:void 0;return u.createElement("div",{key:"bookmark-item-"+r.id,ref:x,className:p()(cp().wrapper,cp().container)},r===f?t||(t=u.createElement(Jf,{onChange:T,onSave:M,onCancel:I,onDelete:N,value:g})):u.createElement("div",{className:p()(cp().wrapper,cp().fullWidth)},u.createElement("div",{className:c,"aria-label":b,onClick:t=>{t.preventDefault(),_((0,rr.aG)(r.action)),e.closeOnPress&&_((0,Pt.mu)())}},u.createElement("button",{type:"button",className:cp().layoutSmallWidth,"aria-label":r.action instanceof k.Di?D(be.Z.gotoPageX,{arg0:m||r.action.pageIndex+1}):r.name||void 0},u.createElement("span",{className:cp().wrapper},w)),u.createElement("button",{title:b+": "+D(be.Z.edit),className:p()(cp().edit,e.closeOnPress&&cp().editVisible,"PSPDFKit-Sidebar-Bookmarks-Button-Edit"),onClick:e=>{e.stopPropagation(),O(r)}},u.createElement(Pe.Z,{src:n(61802),role:"presentation"})))))}))}),u.createElement(o.TX,{announce:"polite"},w),B&&B.size>0&&y&&u.createElement(ol.Z,{onCancel:F,onConfirm:R,accessibilityLabel:D(rm.deleteBookmarkConfirmAccessibilityLabel),accessibilityDescription:D(rm.deleteBookmarkConfirmAccessibilityDescription)},D(rm.deleteBookmarkConfirmMessage)))}const tm=(0,Xf.createSubscription)({getCurrentValue:()=>{},subscribe:(e,t)=>{let n=function(){};const r=()=>{const n=e.getBookmarks();return n.then(t),n};return r().then((()=>{e.eventEmitter.on("change",r),n=()=>{e.eventEmitter.off("change",r)}})),()=>n()}}),nm=(0,Ut.Z)((e=>e.valueSeq().toArray().sort(((e,t)=>{const n=e.action.pageIndex,r=t.action.pageIndex,o=!isNaN(n),i=!isNaN(r);return o&&i?n===r?0:n<r?-1:1:o?-1:i?1:e.name&&t.name?e.name<t.name?-1:1:0})))),rm=(0,he.vU)({bookmarkCreated:{id:"bookmarkCreated",defaultMessage:"Created Bookmark",description:"A11Y announces when a bookmark is created"},bookmarkEdited:{id:"bookmarkEdited",defaultMessage:"Edited Bookmark",description:"A11Y announces when a bookmark is edited"},bookmarkDeleted:{id:"bookmarkDeleted",defaultMessage:"Deleted Bookmark",description:"A11Y announces when a bookmark is deleted"},cancelledEditingBookmark:{id:"cancelledEditingBookmark",defaultMessage:"Cancelled Editing Bookmark",description:"A11Y announces when editing of a bookmark is cancelled"},newBookmark:{id:"newBookmark",defaultMessage:"New Bookmark",description:"Button to create a bookmark"},removeBookmark:{id:"removeBookmark",defaultMessage:"Remove Bookmark",description:"Button to remove a bookmark"},noBookmarks:{id:"noBookmarsk",defaultMessage:"No Bookmarks",description:"When there are not bookmarks"},loadingBookmarks:{id:"loadingBookmarks",defaultMessage:"Loading Bookmarks",description:"When bookmarks are loading"},deleteBookmarkConfirmMessage:{id:"deleteBookmarkConfirmMessage",defaultMessage:"Are you sure you want to delete this bookmark?",description:'Message displayed in the "Delete Bookmark" confirm dialog'},deleteBookmarkConfirmAccessibilityLabel:{id:"deleteBookmarkConfirmAccessibilityLabel",defaultMessage:"Confirm bookmark deletion",description:'Accessibility label (title) for the "Delete Bookmark" confirm dialog'},deleteBookmarkConfirmAccessibilityDescription:{id:"deleteBookmarkConfirmAccessibilityDescription",defaultMessage:"Dialog allowing the user to confirm or cancel deleting the bookmark",description:'Accessibility description for the "Delete Bookmark" confirm dialog'}});var om=n(70982),im=n(21693),am=n(17223),sm=n.n(am);const lm=(0,he.XN)((e=>{let{position:t,onCropApply:r,onCropCancel:o,isCropAreaSelected:i,frameWindow:a,intl:{formatMessage:s}}=e;return u.useEffect((()=>{function e(e){"Enter"===e.key?i&&r(!1):"Escape"===e.key&&o()}return a.document.addEventListener("keydown",e),()=>{a.document.removeEventListener("keydown",e)}}),[i]),u.createElement("div",{className:p()("PSPDFKit-Annotation-Toolbar","PSPDFKit-Document-Crop-Toolbar",Zl().root,sm().container,{[Zl().stickToBottom]:"bottom"===t}),onMouseUp:cm,onTouchEnd:cm,onPointerUp:cm},u.createElement("div",{className:sm().buttonContainer},u.createElement("div",{role:"button",className:p()(sm().cropButton,{[sm().cropButtonDisabled]:!i}),onClick:i?()=>r(!1):void 0,title:s(be.Z.cropCurrentPage),"aria-disabled":!i},u.createElement(Pe.Z,{src:n(23717)})," ",u.createElement("span",{className:sm().desktopButtonText},s(be.Z.cropCurrentPage)),u.createElement("span",{className:sm().mobileButtonText},s(be.Z.cropCurrent))),u.createElement("div",{role:"button",className:p()(sm().cropButton,{[sm().cropButtonDisabled]:!i}),onClick:i?()=>r(!0):void 0,title:s(be.Z.cropAllPages),"aria-disabled":!i},u.createElement(Pe.Z,{src:n(41725)}),u.createElement("span",{className:sm().desktopButtonText},s(be.Z.cropAllPages)),u.createElement("span",{className:sm().mobileButtonText},s(be.Z.cropAll)))),u.createElement("div",{role:"button",className:`${sm().cancelButton} ${sm().cancelDesktop}`,onClick:()=>o(),title:s(be.Z.cancel)},u.createElement("span",null,s(be.Z.cancel))),u.createElement("div",{role:"button",className:`${sm().cropButton} ${sm().cancelMobile}`,onClick:()=>o(),title:s(be.Z.cancel)},u.createElement(Pe.Z,{src:n(66361)})))}));function cm(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}var um=n(22939);const dm=ns.AK,pm=e=>{const t=(0,he.YB)(),{formatMessage:r}=t,o=(0,s.I0)(),{frameWindow:i,position:a,viewportWidth:l,creationMode:c}=e,d=(0,s.v9)(Ba.YG),{handleGroupExpansion:h,handleEntered:f,expandedGroup:m,prevActiveGroup:g,btnFocusRef:v}=(0,yr.Tp)(),y=(0,s.v9)(Ba.lK),b=(0,s.v9)((e=>e.contentEditorSession.textBlockInteractionState.state)),w=(0,s.v9)((e=>e.contentEditorSession.dirty)),x=null===y||b!==Ba.FP.Active;u.useEffect((()=>{d.faceList||d.loading||o(yd.O2)}),[d.faceList,d.loading,o]);const _=[...(d.faceList||[new Ba.I5({family:""})]).map((e=>({label:e.family,value:e.family})))],S=u.useCallback((e=>{let{modification:t,preventFocusShift:n=!1}=e;const[[r,i]]=Object.entries(t);switch(r){case"fontSize":o((0,yd.Mq)({size:i})),n||bd.dispatch("content-editing:re-focus",null);break;case"font":o((0,yd.Mq)({family:i})),n||bd.dispatch("content-editing:re-focus",null);break;case"bold":o((0,yd.Mq)({bold:i})),n||bd.dispatch("content-editing:re-focus",null);break;case"italic":o((0,yd.Mq)({italic:i})),n||bd.dispatch("content-editing:re-focus",null)}}),[o]),C=u.useCallback((()=>o((0,yd.u)(c?Ba.wR.Edit:Ba.wR.Create))),[o,c]),E=u.useCallback((()=>{o((0,yd.u)(Ba.wR.Delete))}),[o]),z=y?(e=>{if(e.detectedStyle.selectionStyleInfo){const{family:t,bold:n,italic:r,color:o,size:i}=e.detectedStyle.selectionStyleInfo;return{family:t,bold:n,italic:r,color:o?k.Il.fromHex(o):null,size:i}}const{family:t,variant:{bold:n,italic:r}}=e.modificationsCharacterStyle.fontRef.faceRef,{color:o,fontRef:{size:i}}=e.modificationsCharacterStyle;return{family:t,bold:n,italic:r,color:k.Il.fromHex(o),size:i}})(y):null,P=z?.family??void 0,D=z?.size??void 0,A=z?.bold,T=z?.italic;let I=null;if(null!=z?.color){const e=z.color;I=We.Options.COLOR_PRESETS.find((t=>t.color?.equals(e)))??{color:e,localization:be.Z.color}}const M=Boolean(y?.detectedStyle.selectionStyleInfo&&null==I),R={"text-color":{node:u.createElement(um.Z,{onChange:e=>{e&&o((0,yd.Mq)({color:e.color?.toHex()})),bd.dispatch("content-editing:re-focus",null)},styles:Rc(),value:I??(M?null:We.Options.COLOR_PRESETS.find((e=>e.color===k.Il.BLACK))??null),caretDirection:"down",className:"PSPDFKit-Content-Editing-Toolbar-Font-Color",menuClassName:"PSPDFKit-Content-Editing-Toolbar-Font-Color-Menu",removeTransparent:!0,frameWindow:i,colors:We.Options.COLOR_PRESETS,innerRef:(0,ec.CN)("text-color",m)?v:void 0,unavailableItemFallback:M?{type:"label",label:""}:{type:"swatch"},disabled:x,accessibilityLabel:r(be.Z.color)}),title:r(be.Z.color)},font:{node:u.createElement(Dc,{onChange:S,caretDirection:"down",frameWindow:i,intl:t,styles:Rc(),fontSizes:dm,fontFamilyItems:_,showAlignmentOptions:!1,showFontStyleOptions:!0,currentFontFamily:P,currentFontSize:D,isBold:A,isItalic:T,fontFamilyClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Family",fontFamilyMenuClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Family-Menu",fontSizeClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Size",fontSizeMenuClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Size-Menu",horizontalAlignClasses:"PSPDFKit-Content-Editing-Toolbar-Alignment",verticalAlignClasses:"PSPDFKit-Content-Editing-Toolbar-Vertical-Alignment",disabled:x,ref:(0,ec.CN)("font",m)?v:void 0}),title:r(be.Z.font)}};return u.createElement("div",{className:p()("PSPDFKit-Content-Editing-Toolbar",Rc().root,{[Rc().stickToBottom]:"bottom"===a})},u.createElement("div",{className:Rc().content},m?u.createElement("div",{className:Rc().right},u.createElement(Yl.B,{position:a,onClose:()=>h(null),isPrimary:!1,onEntered:f,intl:t,className:Rc().expanded},m?R[m].node:void 0)):u.createElement("form",{className:Rc().form,onSubmit:Wn.PF},u.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"}},u.createElement("div",{className:p()(Rc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Add-Text")},u.createElement(Ll.Z,{type:"add-text-box",icon:n(33150),title:r(hm.addTextBox),className:p()("PSPDFKit-Content-Editing-Toolbar-Add-Text-Box",Rc().iconButton,{[Rc().iconButtonActive]:c}),onPress:C,selected:c})),u.createElement("div",{className:p()(Rc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-TextColor")},u.createElement(Ll.Z,{type:"text-color",title:R["text-color"].title,className:Rc().button,onPress:()=>h("text-color"),disabled:Boolean(m)||x,presentational:l>Ae.GI,ref:(0,ec.Kt)("text-color",m,g)?v:void 0}),R["text-color"].node),u.createElement("div",{className:p()(Rc().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Font")},u.createElement(Ll.Z,{type:"font",title:R.font.title,className:Rc().button,onPress:()=>h("font"),disabled:x,presentational:l>Ae.GI,ref:(0,ec.Kt)("font",m,g)?v:void 0}),R.font.node)),u.createElement("div",{className:"PSPDFKit-Toolbar-Spacer",style:{display:"flex",flex:1}}),l>=Ae.GI?u.createElement("div",{className:Rc().buttonContainer},u.createElement(Ll.Z,{type:"delete",title:t.formatMessage(be.Z.delete),className:p()("PSPDFKit-Content-Editor-Toolbar-Button-Delete",Rc().iconButton),onPress:E,disabled:!y}),u.createElement("button",{className:Rc().contentEditorButton,type:"button",onClick:()=>o(yd.u8),title:t.formatMessage(be.Z.cancel)},u.createElement("span",null,t.formatMessage(be.Z.cancel))),u.createElement("button",{className:p()(Rc().contentEditorButton,Rc().saveButton,{[Rc().disabledButton]:!w}),type:"button",onClick:()=>o(yd.Ij),title:t.formatMessage(be.Z.saveAndClose),disabled:!w},u.createElement("span",null,t.formatMessage(be.Z.saveAndClose)))):u.createElement(u.Fragment,null,u.createElement(Ll.Z,{type:"delete",title:t.formatMessage(be.Z.delete),className:p()("PSPDFKit-Content-Editor-Toolbar-Button-Delete",Rc().iconButton),onPress:E,disabled:!y}),u.createElement(Ll.Z,{type:"close",title:t.formatMessage(be.Z.close),className:Rc().button,onPress:()=>{o(w?(0,yd.Yg)(!0):yd.u8)}})))))},hm=(0,he.vU)({addTextBox:{id:"addTextBox",defaultMessage:"Add Text Box",description:"Label for the add text box button"}});var fm,mm,gm,vm=n(52163),ym=n(2058),bm=n(3962),wm=n(79112),xm=n(92294),_m=n.n(xm);function Sm(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}const Cm={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Em=(0,fe.b1)(),km=u.memo((function(e){let{position:t}=e;const{formatMessage:n}=(0,he.YB)(),[r,o]=(0,yr.$)(),[i,a]=(0,yr.nG)(),s=(0,yr.R9)((()=>{(0,c.unstable_batchedUpdates)((()=>{a([]),h===wm.Q.result&&f(wm.Q.documentA)}))})),[l,d]=(0,yr.jw)(),h=(0,vm.SH)(l),f=(0,yr.R9)((e=>{e!==h&&d(e||wm.Q.result)})),m=()=>{(0,c.unstable_batchedUpdates)((()=>{a([]),o(!1),f(wm.Q.documentA)}))},[,g]=(0,yr.dX)(),v=(0,yr.R9)((()=>{s(),f(wm.Q.documentA),g(!1)}));return u.createElement("div",{className:p()(_m().root,{"PSPDFKit-DocumentComparison-Toolbar":!0,[_m().stickToBottom]:"bottom"===t}),onMouseUp:Sm,onTouchEnd:Sm,onPointerUp:Sm},u.createElement("div",{className:_m().content},u.createElement("div",{className:_m().left},u.createElement("form",{className:_m().form,onSubmit:Wn.PF},u.createElement("div",{className:_m().tabsContainer},u.createElement("div",{className:p()(_m().documentTab,{[_m().documentTabActive]:h===wm.Q.documentA,[_m().autoCompareTab]:r,[_m().mobileTab]:Em}),onPointerUp:()=>f(wm.Q.documentA),onTouchEnd:()=>f(wm.Q.documentA)},u.createElement("span",{className:p()(_m().documentText,{[_m().mobileText]:!!Em,[_m().documentTabActiveText]:h===wm.Q.documentA})},n(Em?bm.messages.Comparison_documentOldTouch:bm.messages.Comparison_documentOld)),!r&&i.length<3&&u.createElement(zm,{referencePoints:i,startIndex:0,styles:_m(),touchDevice:Em}),!r&&i.length>=3&&u.createElement("span",{className:p()([_m().toolbarReferencePoints,_m().toolbarReferencePointsSet])},u.createElement("div",{className:_m().toolbarReferencePoint},u.createElement("svg",(0,oe.Z)({},Cm,{className:_m().documentCheckMark}),fm||(fm=u.createElement("circle",{cx:"10",cy:"10",r:"10"})),Dm)))),u.createElement("div",{className:p()(_m().documentTab,{[_m().documentTabActive]:h===wm.Q.documentB,[_m().autoCompareTab]:r,[_m().mobileTab]:Em}),onPointerUp:()=>f(wm.Q.documentB),onTouchEnd:()=>f(wm.Q.documentB)},u.createElement("span",{className:p()(_m().documentText,{[_m().mobileText]:!!Em,[_m().documentTabActiveText]:h===wm.Q.documentB})},n(Em?bm.messages.Comparison_documentNewTouch:bm.messages.Comparison_documentNew)),!r&&i.length<6&&u.createElement(zm,{referencePoints:i,startIndex:3,styles:_m(),touchDevice:Em}),!r&&6===i.length&&u.createElement("span",{className:p()([_m().toolbarReferencePoints,_m().toolbarReferencePointsSet])},u.createElement("div",{className:_m().toolbarReferencePoint},u.createElement("svg",(0,oe.Z)({},Cm,{className:_m().documentCheckMark}),mm||(mm=u.createElement("circle",{cx:"10",cy:"10",r:"10"})),Dm)))),(r||6===i.length)&&u.createElement("div",{className:p()(_m().documentTab,_m().resultTab,{[_m().documentTabActive]:h===wm.Q.result,[_m().autoCompareTab]:r}),onPointerUp:()=>f(null),onTouchEnd:()=>f(null)},u.createElement("span",{className:p()(_m().documentText,{[_m().mobileText]:!!Em,[_m().documentTabActiveText]:h===wm.Q.result})},n(bm.messages.Comparison_result)))),u.createElement("div",{className:_m().controlButtonContainer},!r&&i.length>0&&u.createElement("div",{className:p()(_m().buttonReset,_m().buttonResetActive,{[_m().mobileButton]:Em}),onPointerUp:v,onTouchEnd:v},n(bm.messages.Comparison_resetButton)),r&&u.createElement("div",{className:p()({[_m().buttonAlignDocuments]:!0,[_m().mobileButton]:Em}),onPointerUp:m,onTouchEnd:m},n(Em?bm.messages.Comparison_alignButtonTouch:bm.messages.Comparison_alignButton)))))))}));const zm=e=>{const{styles:t,referencePoints:n,startIndex:r,touchDevice:o}=e,i=n.slice(r,r+3),a=Array.from({length:3-i.length});return u.createElement("span",{className:p()(t.toolbarReferencePoints,{[t.toolbarReferencePointMobile]:!!o,[t.second]:3===r})},i.concat(a).map(((e,o,i)=>{const a=e?"set":0===o&&n.length===r||i[o-1]?"current":"empty";return u.createElement("div",{className:p()(t.referencePointParent,"PSPDFKit-DocumentComparison-ReferencePoint-State",`PSPDFKit-DocumentComparison-ReferencePoint-State-${(0,Yt.kC)(a)}`),key:`point_${o+r}`},o>0?u.createElement("div",{className:t.separator}):null,u.createElement("div",{className:t.toolbarReferencePoint},u.createElement("svg",(0,oe.Z)({},Cm,{className:t[Pm[a]]}),gm||(gm=u.createElement("circle",{cx:"10",cy:"10",r:"10"})),e?Dm:u.createElement(Am,null,o+1))))})))},Pm={set:"checkMark",current:"referencePointSet",empty:"referencePoint"},Dm=u.createElement("path",{d:"M5.45508 10.1125L8.53758 12.94L14.5451 6.25",strokeWidth:"1.875",strokeMiterlimit:"10",strokeLinecap:"round"}),Am=e=>{let{children:t}=e;return u.createElement("text",{x:"10",y:"11",textAnchor:"middle",dominantBaseline:"middle",dy:""},t)};var Tm=n(72313),Im=n.n(Tm),Mm=n(53328),Rm=n.n(Mm),Fm=n(24987);const Nm=[{interactionMode:j.A.BUTTON_WIDGET,icon:"form-button",title:"Create Button Widget",className:"PSPDFKit-Form-Creator-Toolbar-ButtonWidget"},{interactionMode:j.A.TEXT_WIDGET,icon:"form-text",title:"Create Text Widget",className:"PSPDFKit-Form-Creator-Toolbar-TextWidget"},{interactionMode:j.A.RADIO_BUTTON_WIDGET,icon:"form-radio",title:"Create Radio Widget",className:"PSPDFKit-Form-Creator-Toolbar-RadioWidget"},{interactionMode:j.A.CHECKBOX_WIDGET,icon:"form-checkbox",title:"Create Checkbox Widget",className:"PSPDFKit-Form-Creator-Toolbar-CheckboxWidget"},{interactionMode:j.A.COMBO_BOX_WIDGET,icon:"form-combobox",title:"Create Combobox widget",className:"PSPDFKit-Form-Creator-Toolbar-ComboboxWidget"},{interactionMode:j.A.LIST_BOX_WIDGET,icon:"form-listbox",title:"Create List Box Widget",className:"PSPDFKit-Form-Creator-Toolbar-ListBoxWidget"},{interactionMode:j.A.SIGNATURE_WIDGET,icon:"form-signature",title:"Create Signature Widget",className:"PSPDFKit-Form-Creator-Toolbar-SignatureWidget"},{interactionMode:j.A.DATE_WIDGET,icon:"form-date",title:"Create Date Widget",className:"PSPDFKit-Form-Creator-Toolbar-DateWidget"}];var Om=n(60790);const jm=e=>{let{position:t,dispatch:n,interactionMode:r,frameWindow:o,modalClosurePreventionError:i,selectedAnnotation:a}=e;return u.useEffect((()=>{function e(e){"Escape"!==e.key||i&&i?.error===Om.x.FORM_DESIGNER_ERROR||a||n((0,Pt.XX)())}return o.document.addEventListener("keydown",e),()=>{o.document.removeEventListener("keydown",e)}}),[n,i,a]),u.createElement("div",{className:p()("PSPDFKit-Form-Creator-Toolbar",Zl().root,ou().formDesignerContainer,{[Zl().stickToBottom]:"bottom"===t}),onMouseUp:cm,onTouchEnd:cm,onPointerUp:cm},u.createElement("div",null,Nm.map((e=>u.createElement(iu.Z,{key:e.interactionMode,type:e.icon,title:e.title,className:p()(ou().formDesignerButton,{[ou().formDesignerButtonActive]:r===e.interactionMode},e.className),onPress:()=>{r===e.interactionMode?n((0,En.el)()):(n((0,En.h4)()),n((0,Pt.UF)(e.interactionMode)))},selected:r===e.interactionMode})))),u.createElement("div",{className:ou().spacer}))};var Lm=n(11236),Bm=n(62102),Km=n(62477),Vm=n(30549),Hm=n.n(Vm);function $m(e){let{btnComponentProps:t,selectedItem:n}=e;return u.createElement(pe.Z,(0,oe.Z)({is:"div"},t,{className:p()("PSPDFKit-Input-Dropdown-Button ",bl().selectBox,Hm().selectBox),style:{minWidth:"100px"}}),u.createElement("span",null,n?.label),u.createElement("div",null,(0,we.Z)({type:"caret-down",style:{width:12,height:12,flexBasis:12},className:p()(bl().dropdownIcon)})))}function Um(e){let{item:t,state:n,itemComponentProps:r}=e;return u.createElement(pe.Z,(0,oe.Z)({is:"div",className:p()(bl().item,{[bl().isSelected]:n?.includes("selected")||n?.includes("focused")}),name:t?.value},r),t?.label)}function Zm(e,t){return e.horizontalAlign?e.horizontalAlign:t instanceof k.R0?"center":"left"}function qm(e,t){return e.verticalAlign?e.verticalAlign:t instanceof k.R0?"center":t instanceof k.$o&&t.multiLine?"top":"center"}const Gm=(0,he.vU)({textStyle:{id:"textStyle",defaultMessage:"Text style",description:"Form Creator popover text section title"},fontSize:{id:"fontSize",defaultMessage:"Font size",description:"Form Creator popover text section font size label"},fontColor:{id:"fontColor",defaultMessage:"Font color",description:"Form Creator popover text section font color label"}}),Wm=function(e){let{annotation:t,updateAnnotation:r,intl:i,frameWindow:a,formField:s,customFontsReadableNames:l}=e;const c=la.vt.toArray().map((e=>({label:e,value:e}))),d=c.concat(l.toArray().map((e=>({label:e,value:e}))).filter((e=>!c.some((t=>t.value===e.value)))));if(t.font&&!la.vt.has(t.font||"")&&!l.some((e=>e===t.font))&&""!==t.font.trim()){const e=i.formatMessage(be.Z.fontFamilyUnsupported,{arg0:t.font});d.push({label:e,value:e,disabled:!0})}const p=["auto",4,6,8,10,12,14,18,24,36,48,64,72,96,144,192,200].map((e=>({value:e,label:e.toString()}))),h=u.useCallback((e=>r({horizontalAlign:e})),[r]),f=u.useCallback((e=>r({verticalAlign:e})),[r]);return u.createElement(Km.U,{title:i.formatMessage(Gm.textStyle)},u.createElement("div",{className:Hm().item},u.createElement(Pe.Z,{src:n(81741),className:Hm().itemIcon,role:"presentation"}),u.createElement("div",{className:Hm().itemLabel},i.formatMessage(be.Z.font)),u.createElement("div",{className:Hm().nativeDropdown},u.createElement("select",{"aria-label":i.formatMessage(be.Z.font),className:"PSPDFKit-Input-Dropdown-Select",value:t.font||"",onChange:e=>{void 0!==e.target.value&&r({font:e.target.value})}},d.map((e=>u.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},e.label))))),u.createElement(hl.Z,{items:d,value:{label:t.font??d[0].label,value:t.font??d[0].value},accessibilityLabel:i.formatMessage(be.Z.font),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:Hm().dropdownGroupComponent,menuClassName:Hm().dropdownGroupMenu,ButtonComponent:$m,ItemComponent:Um,onSelect:(e,t)=>{void 0!==t.value&&r({font:t.value})},frameWindow:a})),u.createElement("div",{className:Hm().item},u.createElement(Pe.Z,{src:n(14379),className:Hm().itemIcon,role:"presentation"}),u.createElement("div",{className:Hm().itemLabel},i.formatMessage(Gm.fontSize)),u.createElement("div",{className:Hm().nativeDropdown},u.createElement("select",{"aria-label":i.formatMessage(Gm.fontSize),className:"PSPDFKit-Input-Dropdown-Select",value:t.fontSize||"",onChange:e=>{r({fontSize:"auto"===e.target.value?"auto":parseFloat(e.target.value)})}},p.map((e=>u.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},e.label))))),u.createElement(hl.Z,{items:p,value:p.find((e=>e.value===Math.round(t.fontSize||0)))??null!=t.fontSize?{value:t.fontSize,label:t.fontSize?.toString()??""}:null,accessibilityLabel:i.formatMessage(Gm.fontSize),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:Hm().dropdownGroupComponent,menuClassName:Hm().dropdownGroupMenu,ButtonComponent:$m,ItemComponent:Um,onSelect:(e,t)=>{null==t.value||"auto"!==t.value&&isNaN(t.value)||r({fontSize:t.value})},frameWindow:a})),u.createElement("div",{className:Hm().item},u.createElement(Pe.Z,{src:n(92742),className:Hm().itemIcon,role:"presentation"}),u.createElement("div",{className:Hm().itemLabel},i.formatMessage(be.Z.color)),u.createElement(Bl.Z,{record:t,onChange:r,styles:{...Zl(),colorSvg:Hm().colorSvg,colorItem:Hm().colorItem,dropdownMenu:Hm().colorDropdownMenu,controlWrapper:{...Zl().controlWrapper,width:"auto"}},accessibilityLabel:i.formatMessage(be.Z.fillColor),caretDirection:"down",colorProperty:"fontColor",frameWindow:a,className:Hm().colorDropdown})),u.createElement("div",{className:Hm().item},u.createElement(Pe.Z,{src:n(9984),className:Hm().itemIcon,role:"presentation"}),u.createElement("div",{className:Hm().itemLabel},i.formatMessage(be.Z.horizontalAlignment)),u.createElement(o.Ee,{inputName:"horizontalAlign",label:i.formatMessage(be.Z.horizontalAlignment),selectedOption:Zm(t,s),labelClassNamePrefix:"PSPDFKit-Form-Creator-Editor-Horizontal-Alignment",options:["left","center","right"].map((e=>({value:e,label:i.formatMessage(be.Z[`alignment${(0,Yt.kC)(e)}`]),iconPath:n(58758)(`./text-align-horizontal-${e}.svg`)}))),onChange:h})),!(s instanceof k.Vi)&&u.createElement("div",{className:Hm().item},u.createElement(Pe.Z,{src:n(68715),className:Hm().itemIcon,role:"presentation"}),u.createElement("div",{className:Hm().itemLabel},i.formatMessage(be.Z.verticalAlignment)),u.createElement(o.Ee,{inputName:"verticalAlign",label:i.formatMessage(be.Z.verticalAlignment),selectedOption:qm(t,s),labelClassNamePrefix:"PSPDFKit-Form-Creator-Editor-Vertical-Alignment",options:["top","center","bottom"].map((e=>({value:e,label:i.formatMessage(be.Z["center"===e?"alignmentCenter":e]),iconPath:n(29712)(`./text-align-vertical-${e}.svg`)}))),onChange:f})))};var Ym=n(8643),Xm=n.n(Ym);function Qm(e){let{label:t,errorMessage:n,inputClassName:r,className:i,disablePadding:a,...s}=e;return u.createElement("div",{className:p()(!a&&Xm().wrapper,i)},u.createElement("label",{className:p()(Xm().label,"PSPDFKit-Form-Creator-Editor-Text-Input-Label")},t,s.required&&"*",u.createElement(o.oi,(0,oe.Z)({},s,{className:p()(Xm().input,{[Xm().inputError]:!!n},r)}))),n&&u.createElement("span",{className:Xm().errorLabel},n))}var Jm=n(46945);const eg=(0,he.vU)({advanced:{id:"advanced",defaultMessage:"Advanced",description:"Form Creator popover advanced section title"},creatorName:{id:"creatorName",defaultMessage:"Creator Name",description:"Form Creator popover advanced section creator name label"},note:{id:"note",defaultMessage:"Note",description:"Form Creator popover advanced section note label"},customData:{id:"customData",defaultMessage:"Custom data",description:"Form Creator popover advanced section custom data label"},required:{id:"required",defaultMessage:"Required",description:"Form Creator popover advanced section required label"},readOnly:{id:"readOnly",defaultMessage:"Read Only",description:"Form Creator popover advanced section read only label"},multiSelect:{id:"multiSelect",defaultMessage:"Multi Select",description:"Form Creator popover advanced section multi select label"},createdAt:{id:"createdAt",defaultMessage:"Created at",description:"Form Creator popover advanced section created at label"},updatedAt:{id:"updatedAt",defaultMessage:"Updated at",description:"Form Creator popover advanced section updated at label"},customDataErrorMessage:{id:"customDataErrorMessage",defaultMessage:"Must be a plain JSON-serializable object",description:"Form Creator popover advanced section custom data error"},multiLine:{id:"multiLine",defaultMessage:"Multi Line",description:"Form Creator popover multiline input label"}}),tg=function(e){let{intl:t,annotation:n,updateAnnotation:r,formField:o,updateFormField:i,locale:a,onCustomDataError:s}=e;const[l,c]=u.useState({value:JSON.stringify(n.customData),error:""}),d=u.useRef(l),p=u.useCallback((e=>r({creatorName:e.target.value})),[r]),h=u.useCallback((e=>r({note:e.target.value})),[r]),f=u.useCallback((e=>{let n="";try{JSON.parse(e.target.value),s(!1)}catch(e){n=t.formatMessage(eg.customDataErrorMessage),s(!0)}c({value:e.target.value,error:n})}),[t,s]),m=u.useCallback((()=>{if(!l.error&&l.value!==d.current.value)try{const e=JSON.parse(l.value);r({customData:e})}catch(e){}}),[r,l]);(0,yr.L8)((()=>{if(!l.error&&l.value!==d.current.value)try{const e=JSON.parse(l.value);r({customData:e})}catch(e){}}),[r,l]);const g=u.useCallback((e=>i({required:e})),[i]),v=u.useCallback((e=>i({readOnly:e})),[i]),y=u.useCallback((e=>i({multiSelect:e})),[i]),b=u.useCallback((e=>i({multiLine:e})),[i]);return u.createElement("div",{className:"PSPDFKit-Form-Creator-Editor-Advanved-Section"},u.createElement(Km.U,{title:t.formatMessage(eg.advanced)},u.createElement(Qm,{label:t.formatMessage(eg.creatorName),value:n.creatorName||"",onChange:p}),u.createElement(Qm,{label:t.formatMessage(eg.note),value:n.note||"",onChange:h}),u.createElement(Qm,{label:t.formatMessage(eg.customData),value:l.value,onChange:f,onBlur:m,errorMessage:l.error,className:Hm().lastInputField}),u.createElement("div",{className:Hm().advancedItem},u.createElement("div",{className:Hm().advancedItemLabel},t.formatMessage(eg.required)),u.createElement(Jm.n,{value:!!o?.required,onUpdate:g,accessibilityLabel:t.formatMessage(eg.required)})),u.createElement("div",{className:Hm().advancedItem},u.createElement("div",{className:Hm().advancedItemLabel},t.formatMessage(eg.readOnly)),u.createElement(Jm.n,{value:!!o?.readOnly,onUpdate:v,accessibilityLabel:t.formatMessage(eg.readOnly)})),o instanceof k.Dz&&u.createElement("div",{className:Hm().advancedItem},u.createElement("div",{className:Hm().advancedItemLabel},t.formatMessage(eg.multiSelect)),u.createElement(Jm.n,{value:!!o?.multiSelect,onUpdate:y,accessibilityLabel:t.formatMessage(eg.multiSelect)})),o instanceof k.$o&&u.createElement("div",{className:Hm().advancedItem},u.createElement("div",{className:Hm().advancedItemLabel},t.formatMessage(eg.multiLine)),u.createElement(Jm.n,{value:!!o?.multiLine,onUpdate:b,accessibilityLabel:t.formatMessage(eg.multiLine)})),u.createElement("div",{className:Hm().advancedItem},u.createElement("div",{className:Hm().advancedItemLabel},"ID"),u.createElement("div",{className:Hm().advancedItemValue},n.id)),u.createElement("div",{className:Hm().advancedItem},u.createElement("div",{className:Hm().advancedItemLabel},t.formatMessage(eg.createdAt)),u.createElement("div",{className:Hm().advancedItemValue},n.createdAt.toLocaleDateString(a))),u.createElement("div",{className:Hm().advancedItem},u.createElement("div",{className:Hm().advancedItemLabel},t.formatMessage(eg.updatedAt)),u.createElement("div",{className:Hm().advancedItemValue},n.updatedAt.toLocaleDateString(a)))))};var ng=n(2245),rg=n(36623),og=n(17777),ig=n.n(og);const ag=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),sg=(e,t)=>{const n=e.getClientOffset();if(null===n)return null;if(!t.current||!t.current.getBoundingClientRect)return ag(n,(e=>{const t=e.getInitialClientOffset(),n=e.getInitialSourceClientOffset();return null===t||null===n?{x:0,y:0}:ag(t,n)})(e));const r=t.current.getBoundingClientRect(),o={x:r.width/2,y:r.height/2};return ag(n,o)},lg=e=>{const t="translate(".concat(e.x.toFixed(1),"px, ").concat(e.y.toFixed(1),"px)");return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},cg=e=>{let{id:t,index:r,moveCard:o,option:i,onDelete:a}=e;const s=(0,u.useRef)(null),l=(0,u.useRef)(null),[{handlerId:c},d]=(0,ng.LW)({accept:"CARD",collect:e=>({handlerId:e.getHandlerId()}),hover(e,t){if(!l.current)return;const n=e.index,i=r;if(n===i)return;const a=l.current?.getBoundingClientRect(),s=(a.bottom-a.top)/2,c=t.getClientOffset().y-a.top;n<i&&c<s||n>i&&c>s||(o(n,i),e.index=i)}}),{display:h,style:f}=(()=>{const e=(0,u.useRef)(null),t=(0,ng.f$)((t=>({currentOffset:sg(t,e),isDragging:t.isDragging(),itemType:t.getItemType(),item:t.getItem(),monitor:t})));return t.isDragging&&null!==t.currentOffset?{display:!0,itemType:t.itemType,item:t.item,style:lg(t.currentOffset),monitor:t.monitor,ref:e}:{display:!1}})(),[{isDragging:m,id:g},v]=(0,ng.c0)({type:"CARD",item:()=>({id:t,index:r}),collect:e=>({isDragging:e.isDragging(),id:e.getItem()?.id})}),y=m?.5:1;v(d(s));const b=e=>u.createElement("div",{style:e?{...f,width:332}:{opacity:y},className:p()(ig().option,{[ig().preview]:e}),ref:e?void 0:l},u.createElement("button",(0,oe.Z)({type:"button",className:ig().hamburger},e?void 0:{ref:s,"data-handler-id":c}),u.createElement(Pe.Z,{src:n(60967),role:"presentation"})),u.createElement("div",{className:ig().optionContent},i.label),u.createElement("button",{className:p()(ig().button,ig().deleteButton),type:"button",onClick:()=>a(r)},u.createElement(Pe.Z,{src:n(2256),className:p()(ig().icon,ig().deleteIcon),role:"presentation"})));return u.createElement(u.Fragment,null,b(!1),h&&g===t&&b(!0))};const ug=(0,he.vU)({options:{id:"options",defaultMessage:"Options",description:"Options control label"},enterDescriptionHere:{id:"enterDescriptionHere",defaultMessage:"Enter description here",description:"New option input placeholder"},addOption:{id:"addOption",defaultMessage:"Add option",description:"New option button text"},emptyInput:{id:"emptyInput",defaultMessage:"Please fill in this field",description:"New option empty input label"}}),dg=(0,he.XN)((function(e){let{intl:t,options:n,onChange:r,ownerDocument:o}=e;const{formatMessage:i}=t,[a,s]=u.useState(!0);return u.createElement(ng.WG,{backend:rg.TouchBackend,options:{enableMouseEvents:!0,delayTouchStart:500,touchSlop:10,ignoreContextMenu:!0,ownerDocument:o}},u.createElement("form",{className:ig().wrapper,onSubmit:e=>{e.preventDefault();const t=e.target,{value:o}=t.newOption;o?(t.reset(),r(n.push(new k.mv({value:o,label:o})))):s(!1)}},u.createElement("div",{className:ig().title},i(ug.options)),u.createElement("div",null,n.map(((e,t)=>u.createElement(cg,{key:e.value,index:t,moveCard:(e,t)=>{const o=n.get(t);(0,l.kG)(o,"Item not found"),r(n.delete(t).insert(e,o))},option:e,id:e.value,onDelete:e=>r(n.delete(e))}))),u.createElement("div",{className:p()(ig().option,ig().addOptionInputWrapper,{[ig().addOptionInputWrapperInvalid]:!a})},u.createElement("input",{autoFocus:!0,className:p()(ig().optionContent,ig().addOptionInput),name:"newOption",type:"text",placeholder:i(ug.enterDescriptionHere),onBlur:()=>s(!0),onChange:e=>{!a&&e.target.value.trim()&&s(!0)}}))),!a&&u.createElement("div",{className:ig().invalidOptionInput},t.formatMessage(ug.emptyInput)),u.createElement("button",{className:p()(ig().button,ig().addOptionButton),type:"submit"},i(ug.addOption))))}));var pg,hg,fg,mg,gg;function vg(e,t){return t?be.Z.dateField:e instanceof k.R0?be.Z.button:e instanceof k.$o?be.Z.textField:e instanceof k.XQ?be.Z.radioField:e instanceof k.rF?be.Z.checkboxField:e instanceof k.fB?be.Z.comboBoxField:e instanceof k.Vi?be.Z.listBoxField:be.Z.signatureField}const yg=(0,he.vU)({formDesignerPopoverTitle:{id:"formDesignerPopoverTitle",defaultMessage:"{formFieldType} properties",description:"Form Creator popover title"},styleSectionLabel:{id:"styleSectionLabel",defaultMessage:"{formFieldType} style",description:"Form Creator style section"},formFieldName:{id:"formFieldName",defaultMessage:"Form field name",description:"Form Creator popover form field name input label"},format:{id:"format",defaultMessage:"Format",description:"Format"},buttonText:{id:"buttonText",defaultMessage:"Button Text",description:"Form Creator popover button text input label"},defaultValue:{id:"defaultValue",defaultMessage:"Default Value",description:"Form Creator popover default value input label"},multiline:{id:"multiline",defaultMessage:"Multiline",description:"Form Creator popover multiline input label"},radioButtonFormFieldNameWarning:{id:"radioButtonFormFieldNameWarning",defaultMessage:"To group the radio buttons, make sure they have the same form field names.",description:"Form Creator popover radio button form field name warning message"},formFieldNameExists:{id:"formFieldNameExists",defaultMessage:"A form field named {formFieldName} already exists. Please choose a different name.",description:"Change form field name if it already exists."},formFieldNameNotEmpty:{id:"formFieldNameNotEmpty",defaultMessage:"Form Field Name cannot be left empty.",description:"Form Field Name cannot be left empty."},label:{id:"label",defaultMessage:"Label",description:"Label"},value:{id:"value",defaultMessage:"Value",description:"Value"}}),bg=function(e){let{referenceRect:t,viewportState:r,isHidden:o,getExistingFormFieldByName:i,dispatch:s,annotation:c,formField:d,frameWindow:h,eventEmitter:f,locale:m,isUnsavedAnnotation:g,setModalClosurePreventionError:v,modalClosurePreventionError:y,pageSize:b,customFontsReadableNames:w}=e;const x=(0,he.YB)(),_=(0,u.useMemo)((()=>{if(d instanceof k.XQ||d instanceof k.rF)return d.annotationIds.findIndex((0,O.oF)(c))}),[d,c]),[S,C]=(0,u.useState)(d.name),[E,z]=(0,u.useState)(),[P,D]=u.useState(!1),A=u.useCallback((e=>{let t=c;if(!t)return;t=t.merge(e);const n={annotations:(0,a.aV)([t]),reason:X.f.PROPERTY_CHANGE};f.emit("annotations.willChange",n),s((0,at.FG)(t))}),[f,s,c]),T=u.useCallback((e=>{if(!d)return;let t=d;t=t.merge(e);if(!(S!==d.name))return void s((0,En.vK)(t));const n=i(S);if(!n){const e=d.annotationIds.map((()=>(0,O.xc)()));s((0,En.Vp)(t.set("name",d.name),S,e));const n=d.annotationIds.findIndex((0,O.oF)(c)),r=e.get(n);return(0,l.kG)(r),s((0,ve.J4)((0,a.l4)([r]))),void s((0,En.Wh)(d))}t=t.set("name",S);const r=c.merge({id:(0,O.xc)(),formFieldName:S});t=t.merge({annotationIds:n.annotationIds.push(r.id),options:n.options.push(-1!==_?d.options.get(_):d.options.first()),id:n.id,pdfObjectId:n.pdfObjectId}),s((0,at.$d)(r)),s((0,En.vK)(t)),s((0,ve.J4)((0,a.l4)([r.id]))),s((0,En.Wh)(d))}),[d,s,S,c,i,_]);(0,Wt.useGranularEffect)((()=>{C(d.name),z(void 0)}),[c.id],[d.name]);const I=u.useCallback((e=>{const t=e.target.value;C(t),t?.trim()?!i(t)||c.formFieldName===t||d instanceof k.XQ?(z(void 0),P||v(null)):(z(x.formatMessage(yg.formFieldNameExists,{formFieldName:t})),v({annotationId:c.id,error:Om.x.FORM_DESIGNER_ERROR})):(z(x.formatMessage(yg.formFieldNameNotEmpty)),v({annotationId:c.id,error:Om.x.FORM_DESIGNER_ERROR}))}),[x,c,d,i,v,P]),M=u.useCallback((e=>T({buttonLabel:e.target.value})),[T]),R=u.useCallback((e=>T({options:e})),[T]),F=(0,u.useCallback)((e=>{const t=e.target.value;(0,l.kG)(void 0!==_);const n=d.options.get(_),r=d.options.set(_,n.set("label",t));T({options:r})}),[T,d,_]),N=u.useCallback((e=>{D(e),e?v({annotationId:c.id,error:Om.x.FORM_DESIGNER_ERROR}):y&&!E&&v(null)}),[v,y,E,c]),j=(0,u.useCallback)((e=>{const t=e.target.value;(0,l.kG)(void 0!==_);const n=d.options.get(_),r=d.options.set(_,n.set("value",t));T({options:r})}),[T,d,_]),L=u.useMemo((()=>d instanceof k.R0?u.createElement(Qm,{label:x.formatMessage(yg.buttonText),value:d?.buttonLabel||"",onChange:M,className:Hm().lastInputField}):d instanceof k.XQ?((0,l.kG)(void 0!==_),u.createElement(u.Fragment,null,u.createElement("div",{className:Hm().radioButtonWarning},u.createElement(Pe.Z,{src:n(21619),role:"presentation",className:Hm().radioButtonWarningIcon,style:{color:"#EB7F00"}}),u.createElement("span",{className:Hm().radioButtonWarningLabel},x.formatMessage(yg.radioButtonFormFieldNameWarning))),u.createElement(Qm,{label:x.formatMessage(yg.label),value:d?.options.get(_)?.label||"",onChange:F,required:!0}),u.createElement(Qm,{label:x.formatMessage(yg.value),value:d?.options.get(_)?.value||"",onChange:j,required:!0,className:Hm().lastInputField}))):d instanceof k.rF?((0,l.kG)(void 0!==_),u.createElement(u.Fragment,null,u.createElement(Qm,{label:x.formatMessage(yg.label),value:d?.options.get(_)?.label||"",onChange:F,required:!0}),u.createElement(Qm,{label:x.formatMessage(yg.value),value:d?.options.get(_)?.value||"",onChange:j,required:!0,className:Hm().lastInputField}))):d instanceof k.Vi||d instanceof k.fB?u.createElement(dg,{options:d.options,onChange:R,ownerDocument:h.document}):null),[h.document,d,x,M,R,F,j,_]),B=d instanceof k.$o&&!!c.additionalActions?.onFormat;return u.createElement(Lm.Z,{referenceRect:t,viewportState:r,isHidden:o||!d,className:"PSPDFKit-Form-Creator-Popover",wrapperClassName:"PSPDFKit-Form-Creator-Editor",title:x.formatMessage(yg.formDesignerPopoverTitle,{formFieldType:d?x.formatMessage(vg(d,B)):""}),footer:u.createElement(u.Fragment,null,u.createElement(Lm.j,{className:p()(Hm().footerButton,Hm().deleteButton,"PSPDFKit-Form-Creator-Editor-Delete"),onClick:()=>{v(null),s((0,at.d8)((0,a.l4)([c.id])))}},x.formatMessage(be.Z.delete)),u.createElement(Lm.j,{className:p()(Hm().footerButton,Hm().doneButton,"PSPDFKit-Form-Creator-Editor-Done"),onClick:()=>{y||s((0,ve.fz)())}},x.formatMessage(be.Z.done)))},u.createElement(u.Fragment,null,u.createElement("div",{className:g?void 0:Hm().formFieldNameReadOnly},u.createElement("div",null,u.createElement(Qm,{label:x.formatMessage(yg.formFieldName),value:S,onChange:I,onKeyDown:e=>e.stopPropagation(),required:!0,errorMessage:E,className:p()({[Hm().lastInputField]:!L&&!B}),inputClassName:"PSPDFKit-Form-Creator-Editor-Form-Field-Name",onBlur:()=>{E||T({name:S})}})),L),B&&u.createElement("div",{className:p()(Xm().wrapper,Hm().lastInputField)},u.createElement("label",{className:Xm().label,htmlFor:"dateTimeFormat"},"Format",u.createElement("div",{className:Xm().formatSelectWrapper,role:"button"},u.createElement("select",{className:Xm().dateSelect,name:"dateTimeFormat",id:"dateTimeFormat",onChange:e=>{const t=e.target.value;A({additionalActions:{onFormat:new k.bp({script:`AFDate_FormatEx("${t}")`})}})}},pg||(pg=u.createElement("option",{value:"yyyy-mm-dd"},"yyyy-mm-dd")),hg||(hg=u.createElement("option",{value:"mm/dd/yyyy"},"mm/dd/yyyy")),fg||(fg=u.createElement("option",{value:"dd/mm/yyyy"},"dd/mm/yyyy")),mg||(mg=u.createElement("option",{value:"m/d/yyyy HH:MM"},"m/d/yyyy HH:MM")),gg||(gg=u.createElement("option",{value:"d/m/yyyy HH:MM"},"d/m/yyyy HH:MM")))))),u.createElement(Bm.ZP,{intl:x,annotation:c,label:x.formatMessage(yg.styleSectionLabel,{formFieldType:d?x.formatMessage(vg(d,B)):""}),updateAnnotation:A,frameWindow:h,pageSize:b}),!(d instanceof k.Yo)&&!(d instanceof k.XQ)&&!(d instanceof k.rF)&&u.createElement(Wm,{intl:x,annotation:c,updateAnnotation:A,frameWindow:h,formField:d,customFontsReadableNames:w}),u.createElement(tg,{key:c.id,intl:x,annotation:c,updateAnnotation:A,formField:d,updateFormField:T,locale:m,onCustomDataError:N})))};var wg,xg,_g=n(29538),Sg=n.n(_g);const Cg=fe.Ni?()=>{const e=(0,s.I0)();return u.createElement(o.QO,{wrapperClass:p()(Sg().mobileWrapper,"PSPDFKit-ContentEditor-Exit-Dialog"),formClass:Sg().formWrapper,onDismiss:()=>{e((0,yd.Yg)(!1))}},xg||(xg=u.createElement(Eg,null)))}:()=>{const{formatMessage:e}=(0,he.YB)(),t=(0,s.I0)();return u.createElement(vu.Z,{role:"alertdialog",background:"rgba(0,0,0,.1)",className:p()(Sg().modalRoot,"PSPDFKit-ContentEditor-Exit-Dialog"),accessibilityLabel:e(kg.contentEditorSavePromptAccessibilityLabel),accessibilityDescription:e(kg.contentEditorSavePromptAccessibilityDescription),restoreOnClose:!0,onEscape:()=>{t((0,yd.Yg)(!1))}},wg||(wg=u.createElement(Eg,null)))},Eg=()=>{const{formatMessage:e}=(0,he.YB)(),t=(0,s.I0)();return u.createElement(u.Fragment,null,u.createElement(vu.Z.Section,{className:p()(Sg().dropdownSection,Sg().mainSection)},u.createElement(o.zx,{className:p()(Sg().closeButton,"PSPDFKit-ContentEditor-Exit-Dialog-Close-Button"),onClick:()=>{t((0,yd.Yg)(!1))},"aria-label":e(be.Z.close)},u.createElement(Pe.Z,{className:Sg().closeIcon,src:n(2256)})),u.createElement("div",{className:p()(Sg().container,"PSPDFKit-ContentEditor-Exit-Dialog-Content")},u.createElement(Pe.Z,{className:Sg().warningIcon,src:n(94072)}),u.createElement("h2",{className:Sg().heading},e(kg.contentEditorSavePromptHeading)),u.createElement("p",{className:Sg().description},e(kg.contentEditorSavePromptMessage)))),u.createElement(vu.Z.Section,{className:p()(Sg().buttonsGroupSection,Sg().dropdownSection)},u.createElement(o.hE,{className:p()(Sg().buttonsGroup,"PSPDFKit-ContentEditor-Exit-Dialog-Buttons"),align:"end"},u.createElement(o.zx,{autoFocus:!0,onClick:()=>{t(yd.u8)},className:p()("PSPDFKit-ContentEditor-Exit-Dialog-Button","PSPDFKit-ContentEditor-Exit-Dialog-Button-Discard-Changes",Sg().button)},"Don't Save"),u.createElement(o.zx,{onClick:()=>{t(yd.Ij)},primary:!0,className:p()("PSPDFKit-ContentEditor-Exit-Dialog-Button","PSPDFKit-ContentEditor-Exit-Dialog-Button-Save-Changes",Sg().button)},"Save"))))},kg=(0,he.vU)({contentEditorSavePromptHeading:{id:"contentEditorSavePromptHeading",defaultMessage:"Save changes before exiting?",description:'Heading displayed in the "Exit Content Editing Mode" confirm dialog'},contentEditorSavePromptMessage:{id:"contentEditorSavePromptMessage",defaultMessage:"If you don’t save your changes to the document, your changes will be lost.",description:'Message displayed in the "Exit Content Editing Mode" confirm dialog'},contentEditorSavePromptAccessibilityLabel:{id:"contentEditorSavePromptAccessibilityLabel",defaultMessage:"Confirm content editing exit dialog",description:'Accessibility description for the "Delete Annotation" confirm dialog'},contentEditorSavePromptAccessibilityDescription:{id:"contentEditorSavePromptAccessibilityDescription",defaultMessage:"A content editing session is about to be dismissed and data could be loss. This dialog serves as a confirmation to whether continue with this action or not.",description:'Accessibility description for the "Exit Content Editing Mode" confirm dialog'}});var zg=n(11147),Pg=n.n(zg);const Dg={uri:"uri",page:"page"},Ag="edit",Tg="hover",Ig="open";function Mg(e){if(!e.action)return null;const t=e.action;return t instanceof k.lm?t.uri:t.pageIndex+1}function Rg(e){return u.createElement("div",{className:p()(Pg().container)},u.createElement("div",{className:Pg().innerContainer},u.createElement("div",{className:Pg().content},u.createElement(Fg,e))))}function Fg(e){let{pages:t,dispatch:r,annotation:i}=e;const a=(0,he.YB)(),s=i.action instanceof k.Di,l=i.action instanceof k.lm;let c;s&&(c=i.action),l&&(c=i.action);const d=(0,u.useMemo)((()=>!l&&!s||l?Dg.uri:Dg.page),[s,l]),[p,h]=(0,u.useState)(d),[f,m]=(0,u.useState)(c?.uri||""),[g,v]=(0,u.useState)(c?.pageIndex+1||""),[y,b]=(0,u.useState)(""),w=p===Dg.uri,x=(0,u.useCallback)((e=>t.get(e-1)),[t]),_=(0,u.useCallback)((()=>{const e=Number(g);if(e)if(x(e)){const t=new k.Di({pageIndex:e-1}),n=i.set("action",t);r((0,at.FG)(n))}else b(a.formatMessage(Og.invalidPageNumber));else b(a.formatMessage(Og.invalidPageNumber))}),[i,r,g,x]),S=(0,u.useCallback)((()=>{if(!f)return void b(a.formatMessage(Og.invalidPageLink));const e=new k.lm({uri:f}),t=i.set("action",e);r((0,at.FG)(t))}),[i,r,f]),C=(0,u.useCallback)((()=>{if(w)return u.createElement(Qm,{label:a.formatMessage(be.Z.linkAnnotation),value:f,onChange:e=>{m(e.target.value),b("")},onBlur:S,errorMessage:y,placeholder:"www.example.com",disablePadding:!0})}),[y,a,w,f,S]),E=(0,u.useCallback)((()=>{if(!w)return u.createElement(Qm,{disablePadding:!0,label:a.formatMessage(Og.targetPageLink),value:g,onChange:e=>{v(e.target.value),y&&b("")},onBlur:_,placeholder:"1",errorMessage:y})}),[y,a,w,g,_]);return u.createElement(u.Fragment,null,u.createElement("label",{className:Pg().label},a.formatMessage(Og.linkTo),u.createElement(o.Ee,{inputName:"LinkTo",label:a.formatMessage(be.Z.horizontalAlignment),selectedOption:p,labelClassNamePrefix:"PSPDFKit-Link-Popover-Editor-LinkTo",wrapperClasses:Pg().radioGroupWrapper,options:Object.keys(Dg).map((e=>({value:e,label:a.formatMessage(Og[`${e}Link`]),iconPath:n(46154)}))),onChange:e=>{h(Dg[e]),y&&b("")},isButton:!0,showLabel:!0})),C(),E())}function Ng(e){const{viewportState:t,isHidden:n,annotation:r,isHover:i,dispatch:a}=e,s=(0,he.YB)(),[l,c]=(0,u.useState)(!1),d=(0,u.useMemo)((()=>(0,ro.q)((0,O.Wj)(r,t.pagesRotation,t.viewportRect.getSize(),t.zoomLevel).apply((0,Z.cr)(t,r.pageIndex).translate(t.scrollPosition.scale(t.zoomLevel))),t.viewportRect.getSize())),[r,t]),h=(0,u.useMemo)((()=>r&&i?Tg:r&&!r.action||l?Ag:Ig),[r,i,l]),f=r?.action instanceof k.lm,m=(0,u.useMemo)((()=>h===Ag?s.formatMessage(Og.linkSettingsPopoverTitle):f?Mg(r):`${s.formatMessage(Og.linkToPage,{arg0:Mg(r)})}: ${Mg(r)}`),[r,h,s]),g=(0,u.useCallback)((t=>{if(t){const e=r.action instanceof k.lm;return u.createElement("div",{className:p()(Pg().container)},u.createElement("div",{className:Pg().contentRow},u.createElement(o.zx,{className:p()("PSPDFKit-Link-Popover-Editor-Edit-Button"),onClick:()=>c(!0)},s.formatMessage(be.Z.edit)),u.createElement(o.zx,{className:p()("PSPDFKit-Link-Popover-Editor-Open-Button"),onClick:()=>{a((0,ve.fz)()),a((0,rr.oo)(r))},primary:!0},s.formatMessage(e?Og.openLink:Og.goToPageLink))))}return u.createElement(Rg,e)}),[r,a,s,e]),v=(0,u.useCallback)((()=>{switch(h){case Ag:return g();case Ig:return g(!0);default:return null}}),[h,g]);return u.createElement(Lm.Z,{referenceRect:d,viewportState:t,isHidden:n,className:"PSPDFKit-Link-Editor-Popover",wrapperClassName:"PSPDFKit-Link-Editor",title:m,centeredTitle:h!==Ag},v())}const Og=(0,he.vU)({linkSettingsPopoverTitle:{id:"linkSettingsPopoverTitle",defaultMessage:"Link Settings",description:"Link settings popover title"},linkTo:{id:"linkTo",defaultMessage:"Link To",description:"Link to popover option"},linkToPage:{id:"linkToPage",defaultMessage:"Link to Page",description:"Link to page action"},targetPageLink:{id:"targetPageLink",defaultMessage:"Page Number",description:"Link settings popover target link"},linkSettings:{id:"linkSettings",defaultMessage:"Link Settings",description:"Link Settings"},uriLink:{id:"uriLink",defaultMessage:"Website",description:"Link to uri"},pageLink:{id:"pageLink",defaultMessage:"Page",description:"Link to a page"},openLink:{id:"openLink",defaultMessage:"Open Link",description:"Open link to a page"},goToPageLink:{id:"goToPageLink",defaultMessage:"Go to Page",description:"Go to a page link"},invalidPageNumber:{id:"invalidPageNumber",defaultMessage:"Enter a valid page number.",description:"Invalid page number"},invalidPageLink:{id:"invalidPageLink",defaultMessage:"Enter a valid page link.",description:"Invalid page link"}});var jg=n(92744),Lg=n(74268),Bg=n.n(Lg);const Kg=function(e){const{referenceRect:t,viewportState:n,activeTextBlock:r,fontFace:o}=e,i=(0,s.I0)(),{formatMessage:a}=(0,he.YB)(),l=(0,s.v9)((e=>e.contentEditorSession.fontMismatchTooltip?.dismissAbortController??null));return u.createElement(jp.Z,{referenceRect:t.apply((0,Z.cr)(n,r.pageIndex)).translate(n.scrollPosition.scale(n.zoomLevel)),viewportState:n,className:p()(Bg().container,"PSPDFKit-Font-Mismatch-Notification-Container"),color:[new k.Il({r:255,g:199,b:143})],arrowSize:0,arrowClassName:Bg().arrow},u.createElement("div",{className:p()(Bg().wrapper,"PSPDFKit-Font-Mismatch-Notification"),onPointerOver:()=>{l&&l.abort()},onPointerLeave:()=>{const e=new AbortController;i((0,yd.Hv)(e)),i((0,yd.uy)(e.signal))}},u.createElement("span",{className:Bg().tooltipFont},a(Sd.fontMismatch,{arg0:o}))))},Vg=u.memo((function(e){const t=(0,he.YB)(),n=(0,s.I0)(),r=(0,s.v9)((e=>e.selectedGroupId)),{selectedAnnotationIds:o}=e;return u.createElement("div",{className:p()("PSPDFKit-Multi-Annotations-Selection-Toolbar",Zl().root,Zl().content,Zl().reverseRow)},u.createElement(Ll.Z,{type:"delete",title:t.formatMessage(be.Z.delete),className:Zl().button,onPress:()=>{n((0,at.d8)(o))}}),r?null:u.createElement(Ll.Z,{type:"group",title:t.formatMessage(be.Z.group),className:Zl().button,onPress:()=>{n((0,Pt._R)(o))}}),r?u.createElement(Ll.Z,{type:"ungroup",title:t.formatMessage(be.Z.ungroup),className:Zl().button,onPress:()=>{n((0,Pt.UZ)(r))}}):null)}));const Hg=Vg,$g=e=>{const t=(0,s.I0)(),{formatMessage:n}=(0,he.YB)(),{interactionMode:r,currentItemPreset:o,frameWindow:i,backend:a}=e;function l(e,n,i){t((0,ve.fz)()),r===n&&i===o?(0,s.dC)((()=>{t((0,at.Ds)(null)),t((0,Pt.Ce)())})):(0,s.dC)((()=>{t((0,at.Ds)(i)),t((0,Pt.yg)(e,n))}))}return u.createElement("div",{className:p()("PSPDFKit-Measurement-Toolbar",Zl().root,Zl().content,Zl().measurementToolbar),onMouseUp:cm,onTouchEnd:cm,onPointerUp:cm},A.Di.map((e=>u.createElement(iu.Z,{key:e.interactionMode,type:e.icon,title:n(be.Z[e.localeKey]),className:p()(ou().formDesignerButton,{[ou().formDesignerButtonActive]:r===e.interactionMode},e.className),onPress:()=>{l(e.class,e.interactionMode,e.preset)},selected:r===e.interactionMode}))),u.createElement("div",{className:ou().spacer}),u.createElement("div",{className:Zl().right},u.createElement(nu.ZP,{frameWindow:i}),u.createElement(iu.Z,{key:"scale",type:"scale",title:n(Os.sY.measurementScale),className:p()(Zl().measurementToolbarButton)}),u.createElement(iu.Z,{key:"calibrate",type:"calibrate",title:n(Os.sY.calibrate),className:p()(ou().formDesignerButton,"PSPDFKit-Scale-Calibration"),onPress:()=>{const e=A.Di.find((e=>e.interactionMode===j.A.DISTANCE));e&&(t((0,At.Xh)(!0)),l(e.class,e.interactionMode,e.preset))}}),"STANDALONE"===a?.type&&u.createElement("button",{className:p()(Zl().pointSnappingToggleButtonWrapper,"PSPDFKit-Measurement-Snapping-Toggle")},u.createElement("div",{className:p()(Zl().pointSnappingToggleButton)},u.createElement("label",{className:p()(Zl().checkbox)},u.createElement("input",{type:"checkbox",name:"toggle-point-snapping",checked:!e.disablePointSnapping,onChange:()=>{t((0,Pt.c8)(!e.disablePointSnapping))}}),u.createElement("span",{className:Zl().checkboxLabel},n(be.Z.Snapping)))))))};var Ug=n(38835),Zg=n(89359),qg=n.n(Zg);const Gg=function(e){const{referenceRect:t,viewportState:n,isReadOnly:r,isLocked:o,hasLockedContents:i}=e,{formatMessage:a}=(0,he.YB)(),s=[r?a(be.Z.readOnlyAnnotationFlag):"",o?a(be.Z.locked):"",i?a(be.Z.lockedContents):""].filter((e=>""!==e)).join(", "),l=t.grow(10);return u.createElement(jp.Z,{referenceRect:l,viewportState:n,className:"PSPDFKit-Annotation-Flags-Popover",arrowClassName:qg().arrow},u.createElement("span",{className:qg().tooltip,"aria-label":s},s))},Wg=e=>{let{showComments:t,showRedactions:n,showDocumentAssistant:r}=e;const o=[{type:"highlight"},{type:"strikeout"},{type:"underline"},{type:"squiggle"}];return t&&o.push({type:"comment"}),n&&o.push({type:"redact-text-highlighter"}),r&&o.push({type:"document-assistant"}),o};var Yg=n(25534),Xg=n.n(Yg);function Qg(e){let{text:t,anchorClassName:n,textClassName:r,tag:o}=e;return u.createElement(o||"p",{className:r},t.split(" ").map(((e,t)=>{let r="",o=e;return(e.endsWith(".")||e.endsWith(","))&&(r=e.slice(-1),o=e.slice(0,-1)),URL.canParse(o)&&new URL(o).protocol.startsWith("http")?u.createElement(u.Fragment,null,u.createElement("a",{key:t,href:o,target:"_blank",rel:"noopener noreferrer",className:n},o),r):e})).reduce(((e,t,n)=>e.concat([n>0?" ":"",t])),[]))}function Jg(e){const t=u.useCallback((()=>{e.evaluationUrl&&(window.location.href=e.evaluationUrl)}),[e.evaluationUrl]);return u.createElement(vu.Z,{role:"alertdialog",restoreOnClose:!1,className:p()("PSPDFKit-NoLicenseTimeout-Dialog",Xg().noLicenseTimeoutModal),accessibilityDescription:"Dialog that pops up after some time when no trial or commercial license is provided.",accessibilityLabel:"No trial license provided warning dialog."},u.createElement(vu.Z.Section,{className:Xg().topSection},u.createElement(Pe.Z,{src:n(99939),className:Xg().icon}),u.createElement("h2",{className:Xg().header},"Evaluation time is up"),u.createElement("hr",{className:Xg().modalSeparator}),u.createElement(Qg,{tag:"p",text:e.evaluationMessage||"",textClassName:Xg().text,anchorClassName:Xg().link})),u.createElement(vu.Z.Section,{className:Xg().bottomSection},u.createElement(o.zx,{autoFocus:!0,onClick:t,className:p()("PSPDFKit-NoLicenseTimeout-Dialog-Button",Xg().button,Xg().signUpButton),primary:!0},"Sign Up for Trial")))}var ev=n(97838),tv=n.n(ev);const nv=(0,u.memo)((function(e){let{closeOnPress:t=!1,formFields:n,signaturesInfo:r,annotations:o,navigationDisabled:i}=e;const[l,c]=(0,u.useState)(null);(0,u.useEffect)((()=>{l?.focus()}),[l]);const{formatMessage:d}=(0,he.YB)(),h=(0,s.I0)(),f=(0,yr.R9)((e=>{const n=o.find((t=>t instanceof ie.x_&&t.formFieldName===e));(0,me.k)(n),h((0,Ls.kN)(n.pageIndex,n.boundingBox)),t&&h((0,Pt.mu)())})),m=(0,u.useMemo)((()=>o.filter((e=>{if(e instanceof ie.x_){(0,me.k)(n);const t=n.get(e.formFieldName);if(t instanceof rl.Yo)return!r?.signatures?.some((e=>e.signatureFormFQN===t.name))}return!1})).sortBy((e=>[e.pageIndex,e.boundingBox.top]),ye.b).reduce(((e,t)=>e.push({type:"unsigned-signature-field",annotation:t})),(0,a.aV)(r?.signatures?.map((e=>({type:"signature",signature:e})))||[]))),[o,n,r]),g=(0,yr.Bo)(l,m),v=(0,yr.mP)(g,(e=>"signature"===e.type?e.signature.signatureFormFQN:e.annotation.formFieldName),(e=>m.find((t=>"unsigned-signature-field"===t.type?t.annotation.formFieldName===e:t.signature.signatureFormFQN===e))));return u.createElement("div",{className:p()(tv().container,"PSPDFKit-Sidebar-Signatures"),role:"region","aria-label":d(be.Z.signatures),ref:c},u.createElement("div",{className:p()(tv().header,"PSPDFKit-Sidebar-Header")},d(be.Z.signatures)),m.size>0?u.createElement("ul",{className:p()(tv().itemList,"PSPDFKit-Sidebar-Signatures-Container")},m.map((e=>{const t=(0,we.Z)({type:`${e.type}${"signature"===e.type?`-${e.signature?.signatureValidationStatus}`:""}`,className:p()(tv().icon,"signature"===e.type?tv().iconSigned:tv().iconUnsigned,{[tv().iconValid]:"signature"===e.type&&"valid"===e.signature?.signatureValidationStatus,[tv().iconWarning]:"signature"===e.type&&"warning"===e.signature?.signatureValidationStatus,[tv().iconError]:"signature"===e.type&&"error"===e.signature?.signatureValidationStatus},"PSPDFKit-Sidebar-Signatures-Icon")}),n="signature"===e.type?e.signature.signatureFormFQN:e.annotation.formFieldName,r="signature"===e.type&&e.signature.signerName||n;return u.createElement("li",{ref:v?t=>{v&&t&&v(t,e)}:void 0,onClick:()=>{i||f(n)},key:`${e.type}-${n}`,className:p()(tv().item,"PSPDFKit-Sidebar-Signatures-Item")},t,u.createElement("span",{className:p()(tv().title,"PSPDFKit-Sidebar-Signatures-Title"),title:r},r))}))):u.createElement("div",{className:p()(tv().container,tv().empty,"PSPDFKit-Sidebar-Empty"),role:"region","aria-label":d(be.Z.signatures)},d(rv.noSignatures)))})),rv=(0,he.vU)({noSignatures:{id:"noSignatures",defaultMessage:"No Signatures",description:"Message shown when there are no signatures"}});function ov(e){let{onSelectImage:t}=e;const n=u.useCallback((e=>{e&&(e.click(),function(e,t){(0,fe.eJ)(16.4)?(e.addEventListener("blur",(()=>{e.addEventListener("blur",(()=>{t()}),{once:!0})}),{once:!0}),e.focus()):e.addEventListener("cancel",t,{once:!0})}(e,(()=>t(null))))}),[t]),{formatMessage:r}=(0,he.YB)();return u.createElement(o.TX,{tag:"div"},u.createElement("input",{"aria-label":r(be.Z.selectImage),"aria-hidden":!0,type:"file",accept:"image/png, image/jpeg, application/pdf",onChange:e=>{const n=e.target.files?.[0];t(n||null)},tabIndex:-1,ref:n}))}n(1437),n(9864),n(77656),n(16827),n(4064),n(6028),n(61230),n(84992);var iv=n(21722),av=(n(44608),n(14147)),sv=(n(31111),n(64669),n(41746),n(40297),n(54254),n(45772),n(94866),n(65363),n(22423),n(34263),n(60918),n(99116),n(16752),n(15016),n(97480),n(82137),n(43032),n(21965),n(85634),n(59743),n(96382),n(83040),n(13807)),lv=(n(4366),n(4479),n(1917),n(79185),n(7220),n(68049),n(56406),n(32801)),cv=(n(61621),n(31417),n(27436),n(106),n(49713),n(52836),n(7805),n(1413),n(36624),n(18786),n(94464),n(94730),n(52378),n(98517),n(35998),n(9327)),uv=n.n(cv),dv=n(93767),pv=n(92619),hv=n.n(pv);const fv=n(71623).Z,mv=e=>{let{isExpanded:t,title:n,id:r,isSelected:o=!1,isVisible:i,onAction:a,radioGroupsIDs:s,lockedOCGs:l,hasChildren:c,level:d,indentUnit:p,isAncestorHidden:h,isAncestorLocked:f,componentClassName:m,iconsAlignment:g}=e;const{pressProps:v}=(0,av.r7)({onPress:()=>{a?.({action:"toggleSelection",key:r})}}),{pressProps:y}=(0,av.r7)({onPress:()=>{a?.({action:"toggleExpanded",key:r})}}),{pressProps:b}=(0,av.r7)({onPress:()=>{_||f||E||a?.({action:"toggleVisibility",key:r})}}),{pressProps:w}=(0,av.r7)({onPress:()=>{f||a?.({action:"toggleLock",key:r})}}),x=t?"chevron-down-filled":"chevron-right-filled",_=l?.includes(Number(r))||!1,S=r.startsWith("noid-"),C=s?.includes(Number(r))||!1,E=!_&&C&&s?.some((e=>l?.includes(e))),k=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e)return"ancestor-hidden";if(r)return null;if(t&&!n)return"eye-open";if(t&&n)return"checked-radio-group";if(!t&&!n)return"eye-close";if(!t&&n)return"unchecked-radio-group";return null}(h,i,C,S),z=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e||n)return"ancestor-locked";if(t)return"ocg-lock";return"ocg-unlock"}(f,_,E),P=!i&&!S,D=u.createElement(u.Fragment,null,S?u.createElement(gv,{indentUnit:p,level:1,className:`${m}-TreeItem-Spacer`}):u.createElement("div",(0,oe.Z)({role:"button"},w),u.createElement(fv,{type:z,className:uv()(hv().icon,hv().iconContainer,`${m}-TreeItem-LockIcon`,`${m}-TreeItem-LockIcon-${z}`,{[hv().notLocked]:!_&&!f&&!E})})),k?u.createElement("div",(0,oe.Z)({role:"button"},b),u.createElement(fv,{type:k,className:uv()(hv().icon,hv().iconContainer,hv()[`icon-${k}`],`${m}-TreeItem-VisibilityIcon`,`${m}-TreeItem-VisibilityIcon-${k}`,{[hv().visibilityIconLocked]:(_||f)&&!P})})):u.createElement(gv,{indentUnit:p,level:1,className:`${m}-TreeItem-Spacer`}));return u.createElement("div",{className:uv()(hv().treeItem,`${m}-TreeItem`,{[hv().hidden]:P,[hv().selected]:o,[hv().locked]:_})},g===dv.v.START&&D,c?u.createElement("div",y,u.createElement(fv,{type:x,className:uv()(hv().arrowIcon,hv().iconContainer,`${m}-TreeItem-ExpandIcon`)})):u.createElement(gv,{indentUnit:p,level:d}),u.createElement("p",(0,oe.Z)({},v,{className:uv()(hv().treeItem,hv().visibilityIcon,hv().title,`${m}-TreeItem-Title`,{[hv().noOcgId]:S}),style:{width:`calc(100% - ${(d+2)*p}px)`}}),u.createElement("span",{className:hv().textWithOverflowEllipsis},n)),g===dv.v.END&&D)};function gv(e){let{level:t,indentUnit:n,className:r}=e;return u.createElement("div",{className:uv()(hv().noChildrenSpacer,r),style:{width:t*n}})}mv.displayName="TreeItem";const vv=u.forwardRef(((e,t)=>{let{tree:n,onAction:r,defaultExpandedKeys:o,visibleOCGs:i,lockedOCGs:s,radioGroupsIDs:c,indentUnit:d,componentClassName:p,iconsAlignment:h,...f}=e;const m=(0,sv.Me)(),g=(0,iv.bO)();(0,l.kG)(g);const[v,y]=u.useState((0,a.l4)(o||[])),[b,w]=u.useState(null),{focusWithinProps:x}=(0,av.L_)({onFocusWithin:()=>{null===b&&(g.focusFirst(),w(n.items[0].key))}}),{keyboardProps:_}=(0,av.v5)({onKeyDown:e=>{const t=e.target,o=t.dataset.key,i=n.getItem(o),s=i.children.length>0;switch(e.key){case"Home":{const e=g.focusFirst();w(e?.dataset.key||b);break}case"End":{const e=g.focusLast();w(e?.dataset.key||b);break}case"ArrowDown":{const e=g.focusNext({from:t,wrap:!0});w(e?.dataset.key||b);break}case"ArrowUp":{const e=g.focusPrevious({from:t,wrap:!0});w(e?.dataset.key||b);break}case"ArrowRight":if(o&&s)if(v.has(o)){const e=g.focusNext({from:t});w(e?.dataset.key||b)}else y((e=>(0,a.l4)(e.add(o))));break;case"ArrowLeft":if(o)if(v.has(o)&&s)y((e=>(0,a.l4)([...e].filter((e=>e!==o)))));else if(i.parentKey){const e=g.focusNext({from:t.closest("ul")?.closest("li")});w(e?.dataset.key||b)}break;case"Enter":case" ":o&&r?.({action:"toggleVisibility",key:o})}}}),S=(0,u.useCallback)((e=>{v.has(e)?y((t=>(0,a.l4)([...t].filter((t=>t!==e))))):y((t=>(0,a.l4)(t.add(e))))}),[y,v]),C=(0,u.useCallback)((e=>{let{action:t,key:n}=e;"toggleExpanded"===t?S(n):"toggleSelection"===t&&w(b===n?null:n),r?.({action:t,key:n})}),[r,S,b,w]),E=(0,u.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.items,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{isAncestorHidden:r,isAncestorLocked:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.map((e=>{const n=e.key.startsWith("noid-"),a=i?.includes(e.key)||n,l=b===e.key,f=v.has(e.key),g=s?.includes(Number(e.key))||!1,y=`${m}-${e.key}`;return e.children.length?u.createElement("li",{key:e.key,className:uv()(hv().list,hv().parentArrow,hv().treeItemContainer,hv().itemContentContainer,{[hv().selected]:l,[hv().locked]:g}),role:"treeitem","aria-selected":l,tabIndex:0,"data-key":e.key,"aria-expanded":f,"aria-owns":y},u.createElement(mv,{id:e.key,title:e.value.title,isExpanded:v.has(e.key),isFocused:null===b||b===e.key,isSelected:b===e.key,onAction:C,isVisible:a,lockedOCGs:s,hasChildren:e.children.length>0,level:t,indentUnit:d,isAncestorHidden:r,isAncestorLocked:o,componentClassName:p,iconsAlignment:h}),u.createElement("ul",{className:uv()(hv().childRoot,{[hv().hiddenChildRoot]:!v.has(e.key)}),id:y,role:"group"},E(e.children,t+1,{isAncestorHidden:!a,isAncestorLocked:g}))):u.createElement("li",{key:e.key,className:uv()(hv().treeItemContainer,hv().list,hv().itemWithNoChildren,{[hv().selected]:l}),role:"treeitem","aria-selected":l,tabIndex:0,"data-key":e.key,"aria-expanded":f,"aria-owns":y},u.createElement(mv,{id:e.key,title:e.value.title,isFocused:null===b||b===e.key,isSelected:!1,onAction:C,isVisible:a,radioGroupsIDs:c,lockedOCGs:s,level:t,indentUnit:d,isAncestorHidden:r,isAncestorLocked:o,componentClassName:p,iconsAlignment:h}))}))}),[n,v,b,i,m,s,c,d,C,p,h]),k=u.useMemo((()=>E()),[E]);return u.createElement("ul",(0,oe.Z)({},(0,sv.dG)(_,x,f),{role:"tree",ref:t,className:hv().treeView}),k)}));vv.displayName="TreeViewBase";const yv=u.forwardRef(((e,t)=>{let{items:n,defaultExpandedKeys:r,visibleOCGs:o,lockedOCGs:i,radioGroupsIDs:a,componentClassName:s,...l}=e;const c=(0,lv.VH)({initialItems:n,getKey:e=>e.id,getChildren:e=>e.children||[]}),d=(0,u.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(const n of e)t.push(n.key),d(n.children,t);return t}),[]),p=u.useMemo((()=>"all"===r?d(c.items):Array.isArray(r)?r:void 0),[c,r,d]);return u.createElement(iv.MT,null,u.createElement(vv,(0,oe.Z)({},l,{defaultExpandedKeys:p,tree:c,visibleOCGs:o,ref:t,radioGroupsIDs:a,lockedOCGs:i,componentClassName:s||"TreeView"})))}));yv.displayName="TreeView";var bv,wv=n(14578),xv=n.n(wv);function _v(e){const{sidebarOptions:t,setSidebarOptions:n,visibleLayers:r,OCGLayers:o}=e,{lockedLayers:i,iconsAlignment:c}=t,d=(0,s.I0)(),{formatMessage:h}=(0,he.YB)(),[f,m]=u.useState((0,a.l4)(r.map((e=>e.toString())))),[g,v]=u.useState(i);u.useEffect((()=>{(function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0})(i,g)||v(i)}),[i]),u.useEffect((()=>{const e=(0,a.l4)(r.map((e=>e.toString())));f.equals(e)||m(e)}),[r]);const y=(o?.filter((e=>!Av(e)&&"number"==typeof e.radioGroup))??[]).map((e=>e.ocgId)).filter((e=>"number"==typeof e)),b=u.useCallback((e=>{let{action:r,key:a}=e;if("toggleVisibility"===r){(0,l.kG)(o),(0,l.kG)(f);const e=Iv(o,Number(a));if(!e)return;const t=f.toArray();if(f.includes(a))if(e&&Av(e)){const t=Ev(e,a,f,i);d((0,ps.Nx)({visibleLayerIds:t.toArray().map((e=>Number(e)))}))}else{const{currentVisibleOCGs:e}=kv(t,a);d((0,ps.Nx)(e));const n=f.delete(a);m(n)}else if(e&&Av(e)){const{currentVisibleOCGs:t,newVisibleOCGs:n}=zv(e,a,f,o);m(n),d((0,ps.Nx)(t))}else if(y?.includes(Number(a))){const{currentVisibleOCGs:e,newVisibleOCGs:t}=Dv(a,y,f);m(t),d((0,ps.Nx)(e))}else{const e=Pv(o,Number(a)),n=f.add(a).union(e);m(n),t.push(a);const r={visibleLayerIds:t.concat(e).map((e=>Number(e)))};d((0,ps.Nx)(r))}}else if("toggleLock"===r){const e=g.includes(Number(a))?g.filter((e=>e!==Number(a))):g.concat(Number(a));n({...t,lockedLayers:e})}}),[o,f,d,i,t,y,g,n]);if(!o)return u.createElement("div",{className:p()(xv().OCGsContainer,"PSPDFKit-Sidebar-Layers")},bv||(bv=u.createElement(De.Z,null)));if(0===o.length)return u.createElement("div",{className:p()(xv().OCGsContainer,"PSPDFKit-Sidebar-Layers")},u.createElement("div",{className:p()("PSPDFKit-Sidebar-Layers-Header")},u.createElement("div",{className:p()(Us.empty,"PSPDFKit-Sidebar-Empty")},h(be.Z.noLayers))));const w=Sv(o);return u.createElement("div",{className:p()(xv().OCGsContainer,"PSPDFKit-Sidebar-Layers")},u.createElement("div",{className:p()(xv().title,"PSPDFKit-Sidebar-Layers-Header")},h(be.Z.layers)),u.createElement(yv,{items:w,visibleOCGs:f,onAction:b,lockedOCGs:g,radioGroupsIDs:y,indentUnit:32,componentClassName:"PSPDFKit-Layers",iconsAlignment:c}))}const Sv=e=>e.map((e=>Cv(e)));function Cv(e){return{id:e.ocgId?.toString()||`noid-${(0,zi.C)()}`,title:e.name||"",description:e.name,children:Av(e)?e.layers.map((e=>Cv(e))):[]}}const Ev=(e,t,n,r)=>{const o=e?.layers.filter((e=>!r.includes(e.ocgId))).map((e=>e.ocgId)),i=[...o,Number(t)].map((e=>e.toString())),a=n.filter((e=>!i.includes(e)));return a},kv=(e,t)=>({currentVisibleOCGs:{visibleLayerIds:e.map((e=>Number(e))).filter((e=>e!==Number(t)))}}),zv=(e,t,n,r)=>{const o=e?.layers.map((e=>e.ocgId?.toString())),i=[...o,t],s=(0,a.l4)([...i,...n,...Pv(r,Number(t))]);return{currentVisibleOCGs:Tv(s),newVisibleOCGs:s}},Pv=(e,t)=>{if(!e)return[];const n=[];return e.forEach((e=>{Av(e)&&("number"==typeof e.ocgId&&e.layers.some((e=>e.ocgId===t))?n.push(e.ocgId.toString()):n.push(...Pv(e.layers,t)))})),n},Dv=(e,t,n)=>{const r=n.find((e=>t.includes(Number(e)))),o=r?n.add(e).delete(r):n.add(e);return{currentVisibleOCGs:Tv(o),newVisibleOCGs:o}};function Av(e){return"layers"in e}const Tv=e=>({visibleLayerIds:e.toArray().map((e=>Number(e)))});function Iv(e,t){const n=e.find((e=>e.ocgId===t));if(n)return n;for(const n of e)if(Av(n)){const e=Iv(n.layers,t);if(e)return e}return null}var Mv=n(8898),Rv=n(8840),Fv=n(33241),Nv=n(76596);function Ov(e,t,n,r,o){const{content:i,decorator:a}=Nv.m[e]({props:n,instance:r});(0,Rv.kG)(i,"defaultContent is required"),(0,Rv.kG)(a,"defaultDecorator is required");const{content:s,decorator:l}=t({props:n,instance:r}),c=s||i,d={...o,content:c instanceof Node?u.createElement(Ns.DomNodeRenderer,{node:c}):c},p=l?l(d):a(d);return p instanceof Node?u.createElement(Ns.DomNodeRenderer,{node:p}):p}const jv=e=>{let{onCreate:t,onDelete:n,onCancel:r,storedSignatures:o,setIsSignaturePickerHidden:i}=e;const a=(0,sv.Me)(),{formatMessage:l}=(0,he.YB)(),c=(0,s.v9)((e=>e.ui[Fv.xr.SignaturesList])),d=(0,s.v9)((e=>e.instance)),p=(0,s.v9)((e=>e.backend)),h=(0,s.v9)((e=>e.attachments)),f=(0,u.useMemo)((()=>o?.map((e=>({svgSrc:e instanceof ie.Zc?u.createElement(et,{isSelectable:!1,annotation:e,viewBox:e.boundingBox}):u.createElement(af,{annotation:e,backend:p,label:e.description||l(be.Z.imageAnnotation),attachment:e.imageAttachmentId?h.get(e.imageAttachmentId):null,templateWidth:200}),id:e.id||(0,zi.C)()}))).toArray()||[]),[o,l,p,h]),m=(0,u.useMemo)((()=>f?.map(((e,t)=>({id:e.id,annotation:o?.get(t)})))),[o,f]),g=(0,u.useCallback)((e=>{const n=m.find((t=>t.id===e));(0,Rv.kG)(n?.annotation,"Signature not found"),t(n.annotation,!1,!1)}),[t,m]),v=(0,u.useCallback)((e=>{const t=m.find((t=>t.id===e));(0,Rv.kG)(t?.annotation,"Signature not found"),n(t.annotation,!1)}),[n,m]),y=(0,u.useMemo)((()=>({titleId:a,items:f,onAddFromPreview:g,onRemoveFromPreview:v,onAdd:()=>i(!0),onCancel:r})),[a,f,g,v,r,i]),b=(0,u.useMemo)((()=>({dialogProps:{size:"lg","aria-labelledby":a},modalProps:{onOpenChange:r}})),[r,a]);return Ov(Fv.xr.SignaturesList,c,y,d,b)};var Lv=n(3953);const Bv=e=>{let{onCreate:t,preset:n,onCancel:r,colorPresets:o,frameWindow:i,signingFonts:l,hasSignaturesCreationListener:c,creationModes:d}=e;const p=(0,sv.Me)(),h=(0,s.I0)(),f=(0,s.v9)((e=>e.ui?.[Fv.xr.CreateSignature])),m=(0,s.v9)((e=>e.instance)),{formatMessage:g}=(0,he.YB)();u.useEffect((()=>{i?.document.fonts&&(0,la.GE)(l,i.document.fonts)}),[l,i?.document.fonts]);const v=(0,s.v9)((e=>e.electronicSignatureDefaultTextCallback?.()||"")),y=u.useCallback((e=>{(async()=>{if(e.signature?.type===Lv.BL.DRAW){(0,Rv.kG)(e.signature.value,"Signature value is required");const r=(0,a.aV)(e.signature.value.map((e=>(0,a.aV)(e.map((e=>{let[t,n,r]=e;return new E.Wm({x:t,y:n,intensity:r})}))))));let o=new ie.Zc({...n,lines:r,isSignature:!0,strokeColor:k.Il.fromHex(e.color)});o=o.set("boundingBox",(0,Ge.gz)(o));const i=(0,yo.c)(o,o.boundingBox.getLocation().scale(-1),new E.$u(e.canvasSize),new E.E9);t(i,e.shouldStoreSignature,!1)}else if(e.signature?.type===Lv.BL.IMAGE)(0,Rv.kG)(e.signature.value,"Signature value is required"),t(e.signature.value,e.shouldStoreSignature,!1);else{const r=new ie.gd({...n,font:e.selectedFont,fontSize:16,text:{format:"plain",value:e.signature?.value||v},fontColor:k.Il.fromHex(e.color)}),o=await(0,ke.Y)(r.text.value,{font:r.font,fontColor:r.fontColor},i);h((0,at.gX)({fontColor:r.fontColor,font:r.font})),t(o,e.shouldStoreSignature,!1)}})()}),[t,n,h,i,v]),b=(0,u.useMemo)((()=>({titleId:p,colorPresets:o.map((e=>({color:e.color?.toHex()||"",label:g(e.localization)}))),allowStoringSignature:c,allowedTabs:d.toArray(),fonts:l.map((e=>e.name)).toJS(),onCloseRequest:r,initialState:{shouldStoreSignature:c,text:v},onAdd:y})),[p,o,v,c,d,l,r,y,g]),w=(0,u.useMemo)((()=>({dialogProps:{size:"lg","aria-labelledby":p},modalProps:{onOpenChange:r},modalContentProps:{disableAnimation:!0}})),[p,r]);return Ov(Fv.xr.CreateSignature,f,b,m,w)},Kv=e=>{let{storedSignatures:t,...n}=e;const[r,o]=u.useState(!1);return!r&&Boolean(t&&t.size>0)?u.createElement(jv,(0,oe.Z)({},n,{setIsSignaturePickerHidden:o,storedSignatures:t})):u.createElement(Bv,n)};var Vv=n(29977);var Hv=n(85816),$v=n(4280);function Uv(e){let{onCancel:t,onCreate:n,dispatch:r,backend:o,stampAnnotationTemplates:i,viewportWidth:a,attachments:l}=e;const c=(0,sv.Me)(),d=(0,s.v9)((e=>e.ui[Fv.xr.StampsList])),p=(0,s.v9)((e=>e.instance)),h=function(e){let{stampAnnotationTemplates:t}=e;const n=(0,he.YB)();return(0,u.useMemo)((()=>{const e=t.map((e=>(e instanceof k.GI&&(null==e.title&&(e=e.set("title",(0,_i.vW)({annotation:e,intl:n}))),e.subtitle&&"Custom"===e.stampType||(e=e.set("subtitle",(0,_i.Cq)(Vv.pY[e.stampType],new Date,n))),void 0!==Vv.a$[e.stampType]&&(e=e.set("stampType",Vv.a$[e.stampType]))),e)));return Object.fromEntries(e.map((e=>[(0,O.xc)(),e])))}),[n,t])}({stampAnnotationTemplates:i}),f=function(e){let{viewportWidth:t,backend:n,attachments:r,annotations:o}=e;const i=(0,he.YB)();return(0,u.useMemo)((()=>{const{formatMessage:e}=i;return Object.entries(o).map((t=>{let[o,a]=t;return{id:o,"aria-label":(0,_i.vW)({annotation:a,intl:i}),svgSrc:u.createElement("div",{key:o,className:(0,Hv.Kj)({display:"flex",justifyContent:"center",backgroundColor:"background.primary.medium",paddingX:"xl",height:"full",flex:1})},u.createElement(af,{annotation:a,backend:n,label:a instanceof k.sK?e(be.Z.imageAnnotation):a.title||e($v.Z[(0,R.LE)((0,Vv.k1)(a.stampType))]),attachment:a.imageAttachmentId?r.get(a.imageAttachmentId):null,templateWidth:0,contain:!0}))}}))}),[i,n,o,t,r])}({viewportWidth:a,backend:o,attachments:l,annotations:h}),m=(0,u.useCallback)((e=>{const t=h[e];t&&n(t)}),[h,n]),g=(0,u.useMemo)((()=>({titleId:c,items:f,onCustomStampPress:()=>{r((0,Pt._z)())},onCancel:t,onAdd:m})),[c,f,t,m,r]),v=(0,u.useMemo)((()=>({dialogProps:{"aria-labelledby":c},modalProps:{onOpenChange:t},modalContentProps:{disableAnimation:!0}})),[t,c]);return Ov(Fv.xr.StampsList,d,g,p,v)}function Zv(e){let{onCancel:t,onCreate:n,dispatch:r}=e;const o=(0,sv.Me)(),i=(0,s.v9)((e=>e.ui[Fv.xr.CreateStamp])),a=(0,s.v9)((e=>e.instance)),l=(0,u.useCallback)((e=>{let{text:t,subText:r,color:o,width:i}=e;const a=new k.GI({stampType:"Custom",title:t??"",subtitle:r,color:k.Il.fromHex(o),boundingBox:new k.UL({left:0,top:0,width:i,height:Ae.mM})});n(a)}),[n]),c=(0,u.useMemo)((()=>({titleId:o,colorPresets:_i.s3,onCreate:l,onCloseRequest:t,getLighterVariant:e=>k.Il.fromHex(e).lighter(Ae.zT).toHex(),onExistingStampPress:()=>{r((0,Pt.C4)())}})),[o,t,r,l]),d=(0,u.useMemo)((()=>({dialogProps:{"aria-labelledby":o},modalProps:{onOpenChange:t}})),[o,t]);return Ov(Fv.xr.CreateStamp,i,c,a,d)}function qv(e){let{onCancel:t,onCreate:n,mode:r,dispatch:o,backend:i,stampAnnotationTemplates:a,viewportWidth:s,attachments:l}=e;return u.createElement(u.Fragment,null,r===j.A.STAMP_PICKER&&u.createElement(Uv,{attachments:l,onCreate:n,onCancel:t,stampAnnotationTemplates:a,backend:i,dispatch:o,viewportWidth:s}),r===j.A.STAMP_CUSTOM&&u.createElement(Zv,{onCreate:n,onCancel:t,dispatch:o}))}var Gv=n(77017);var Wv=n(96650);const Yv=Object.create(null);Yv.open="0",Yv.close="1",Yv.ping="2",Yv.pong="3",Yv.message="4",Yv.upgrade="5",Yv.noop="6";const Xv=Object.create(null);Object.keys(Yv).forEach((e=>{Xv[Yv[e]]=e}));const Qv={type:"error",data:"parser error"},Jv="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),ey="function"==typeof ArrayBuffer,ty=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,ny=({type:e,data:t},n,r)=>Jv&&t instanceof Blob?n?r(t):ry(t,r):ey&&(t instanceof ArrayBuffer||ty(t))?n?r(t):ry(new Blob([t]),r):r(Yv[e]+(t||"")),ry=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function oy(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let iy;const ay="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sy="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<ay.length;e++)sy[ay.charCodeAt(e)]=e;const ly="function"==typeof ArrayBuffer,cy=(e,t)=>{if("string"!=typeof e)return{type:"message",data:dy(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:uy(e.substring(1),t)};return Xv[n]?e.length>1?{type:Xv[n],data:e.substring(1)}:{type:Xv[n]}:Qv},uy=(e,t)=>{if(ly){const n=(e=>{let t,n,r,o,i,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const c=new ArrayBuffer(a),u=new Uint8Array(c);for(t=0;t<s;t+=4)n=sy[e.charCodeAt(t)],r=sy[e.charCodeAt(t+1)],o=sy[e.charCodeAt(t+2)],i=sy[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|o>>2,u[l++]=(3&o)<<6|63&i;return c})(e);return dy(n,t)}return{base64:!0,data:e}},dy=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,py=String.fromCharCode(30);function hy(){return new TransformStream({transform(e,t){!function(e,t){Jv&&e.data instanceof Blob?e.data.arrayBuffer().then(oy).then(t):ey&&(e.data instanceof ArrayBuffer||ty(e.data))?t(oy(e.data)):ny(e,!1,(e=>{iy||(iy=new TextEncoder),t(iy.encode(e))}))}(e,(n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const e=new DataView(o.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{o=new Uint8Array(9);const e=new DataView(o.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!=typeof e.data&&(o[0]|=128),t.enqueue(o),t.enqueue(n)}))}})}let fy;function my(e){return e.reduce(((e,t)=>e+t.length),0)}function gy(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function vy(e){if(e)return function(e){for(var t in vy.prototype)e[t]=vy.prototype[t];return e}(e)}vy.prototype.on=vy.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},vy.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},vy.prototype.off=vy.prototype.removeListener=vy.prototype.removeAllListeners=vy.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},vy.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},vy.prototype.emitReserved=vy.prototype.emit,vy.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},vy.prototype.hasListeners=function(e){return!!this.listeners(e).length};const yy="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function by(e,...t){return t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const wy=yy.setTimeout,xy=yy.clearTimeout;function _y(e,t){t.useNativeTimers?(e.setTimeoutFn=wy.bind(yy),e.clearTimeoutFn=xy.bind(yy)):(e.setTimeoutFn=yy.setTimeout.bind(yy),e.clearTimeoutFn=yy.clearTimeout.bind(yy))}class Sy extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class Cy extends vy{constructor(e){super(),this.writable=!1,_y(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new Sy(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=cy(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}const Ey="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),ky={};let zy,Py=0,Dy=0;function Ay(e){let t="";do{t=Ey[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function Ty(){const e=Ay(+new Date);return e!==zy?(Py=0,zy=e):e+"."+Ay(Py++)}for(;Dy<64;Dy++)ky[Ey[Dy]]=Dy;let Iy=!1;try{Iy="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const My=Iy;function Ry(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||My))return new XMLHttpRequest}catch(e){}if(!t)try{return new(yy[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function Fy(){}const Ny=null!=new Ry({xdomain:!1}).responseType;class Oy extends vy{constructor(e,t){super(),_y(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=by(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new Ry(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=Oy.requestsCount++,Oy.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=Fy,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete Oy.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Oy.requestsCount=0,Oy.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",jy);else if("function"==typeof addEventListener){addEventListener("onpagehide"in yy?"pagehide":"unload",jy,!1)}function jy(){for(let e in Oy.requests)Oy.requests.hasOwnProperty(e)&&Oy.requests[e].abort()}const Ly="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),By=yy.WebSocket||yy.MozWebSocket,Ky="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const Vy={websocket:class extends Cy{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=Ky?{}:by(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=Ky?new By(e,t,n):t?new By(e,t):new By(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;ny(n,this.supportsBinary,(e=>{try{this.ws.send(e)}catch(e){}r&&Ly((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Ty()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!By}},webtransport:class extends Cy{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=function(e,t){fy||(fy=new TextDecoder);const n=[];let r=0,o=-1,i=!1;return new TransformStream({transform(a,s){for(n.push(a);;){if(0===r){if(my(n)<1)break;const e=gy(n,1);i=128==(128&e[0]),o=127&e[0],r=o<126?3:126===o?1:2}else if(1===r){if(my(n)<2)break;const e=gy(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(my(n)<8)break;const e=gy(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){s.enqueue(Qv);break}o=i*Math.pow(2,32)+t.getUint32(4),r=3}else{if(my(n)<o)break;const e=gy(n,o);s.enqueue(cy(i?e:fy.decode(e),t)),r=0}if(0===o||o>e){s.enqueue(Qv);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=hy();r.readable.pipeTo(e.writable),this.writer=r.writable.getWriter();const o=()=>{n.read().then((({done:e,value:t})=>{e||(this.onPacket(t),o())})).catch((e=>{}))};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this.writer.write(n).then((()=>{r&&Ly((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends Cy{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}const t=e&&e.forceBase64;this.supportsBinary=Ny&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(py),r=[];for(let e=0;e<n.length;e++){const o=cy(n[e],t);if(r.push(o),"error"===o.type)break}return r})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach(((e,i)=>{ny(e,!1,(e=>{r[i]=e,++o===n&&t(r.join(py))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=Ty()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Oy(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},Hy=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$y=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Uy(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=Hy.exec(e||""),i={},a=14;for(;a--;)i[$y[a]]=o[a]||"";return-1!=n&&-1!=r&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,i.path),i.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,i.query),i}class Zy extends vy{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=Uy(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Uy(t.host).host),_y(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new Vy[e](n)}open(){let e;if(this.opts.rememberUpgrade&&Zy.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),n=!1;Zy.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Zy.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function o(){n||(n=!0,c(),t.close(),t=null)}const i=e=>{const n=new Error("probe error: "+e);n.transport=t.name,o(),this.emitReserved("upgradeError",n)};function a(){i("transport closed")}function s(){i("socket closed")}function l(e){t&&e.name!==t.name&&o()}const c=()=>{t.removeListener("open",r),t.removeListener("error",i),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",r),t.once("error",i),t.once("close",a),this.once("close",s),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",Zy.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(e+="string"==typeof(t=r)?function(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this.maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const o={type:e,data:t,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}onError(e){Zy.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}Zy.protocol=4;Zy.protocol;const qy="function"==typeof ArrayBuffer,Gy=Object.prototype.toString,Wy="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Gy.call(Blob),Yy="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===Gy.call(File);function Xy(e){return qy&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||Wy&&e instanceof Blob||Yy&&e instanceof File}function Qy(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(Qy(e[t]))return!0;return!1}if(Xy(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return Qy(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&Qy(e[t]))return!0;return!1}function Jy(e){const t=[],n=e.data,r=e;return r.data=eb(n,t),r.attachments=t.length,{packet:r,buffers:t}}function eb(e,t){if(!e)return e;if(Xy(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=eb(e[r],t);return n}if("object"==typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=eb(e[r],t));return n}return e}function tb(e,t){return e.data=nb(e.data,t),delete e.attachments,e}function nb(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=nb(e[n],t);else if("object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=nb(e[n],t));return e}const rb=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ob=5;var ib;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(ib||(ib={}));class ab{constructor(e){this.replacer=e}encode(e){return e.type!==ib.EVENT&&e.type!==ib.ACK||!Qy(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===ib.EVENT?ib.BINARY_EVENT:ib.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==ib.BINARY_EVENT&&e.type!==ib.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=Jy(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function sb(e){return"[object Object]"===Object.prototype.toString.call(e)}class lb extends vy{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===ib.BINARY_EVENT;n||t.type===ib.BINARY_ACK?(t.type=n?ib.EVENT:ib.ACK,this.reconstructor=new cb(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!Xy(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===ib[n.type])throw new Error("unknown packet type "+n.type);if(n.type===ib.BINARY_EVENT||n.type===ib.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const o=e.substring(r,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(o)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!lb.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case ib.CONNECT:return sb(t);case ib.DISCONNECT:return void 0===t;case ib.CONNECT_ERROR:return"string"==typeof t||sb(t);case ib.EVENT:case ib.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===rb.indexOf(t[0]));case ib.ACK:case ib.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class cb{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=tb(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function ub(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const db=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class pb extends vy{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[ub(e,"open",this.onopen.bind(this)),ub(e,"packet",this.onpacket.bind(this)),ub(e,"error",this.onerror.bind(this)),ub(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(db.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const n={type:ib.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;const r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);const o=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),r),i=(...e)=>{this.io.clearTimeoutFn(o),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise(((n,r)=>{const o=(e,t)=>e?r(e):n(t);o.withError=!0,t.push(o),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...r)=>{if(n!==this._queue[0])return;return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:ib.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case ib.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ib.EVENT:case ib.BINARY_EVENT:this.onevent(e);break;case ib.ACK:case ib.BINARY_ACK:this.onack(e);break;case ib.DISCONNECT:this.ondisconnect();break;case ib.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,t.packet({type:ib.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ib.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function hb(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}hb.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},hb.prototype.reset=function(){this.attempts=0},hb.prototype.setMin=function(e){this.ms=e},hb.prototype.setMax=function(e){this.max=e},hb.prototype.setJitter=function(e){this.jitter=e};class fb extends vy{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,_y(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new hb({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const o=t.parser||r;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Zy(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=ub(t,"open",(function(){n.onopen(),e&&e()})),o=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=ub(t,"error",o);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{r(),o(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(r),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(ub(e,"ping",this.onping.bind(this)),ub(e,"data",this.ondata.bind(this)),ub(e,"error",this.onerror.bind(this)),ub(e,"close",this.onclose.bind(this)),ub(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){Ly((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new pb(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const mb={};function gb(e,t){"object"==typeof e&&(t=e,e=void 0);const n=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=Uy(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=n.source,o=n.id,i=n.path,a=mb[o]&&i in mb[o].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new fb(r,t):(mb[o]||(mb[o]=new fb(r,t)),s=mb[o]),n.query&&!t.query&&(t.query=n.queryKey),s.socket(n.path,t)}Object.assign(gb,{Manager:fb,Socket:pb,io:gb,connect:gb});class vb{constructor(){(0,v.Z)(this,"ongoingRequests",new Map)}create(){const e=(0,Gv.v4)();return this.ongoingRequests.set(e,{lastChunkIndex:null,outOfOrderChunks:[]}),e}update(e,t,n){const r=this.ongoingRequests.get(e);if((0,Rv.kG)(r),null===r.lastChunkIndex||n===r.lastChunkIndex+1){{r.lastChunkIndex=n;const e=r.outOfOrderChunks;for(let o=0;o<e.length;o++){const i=e[o];i.index===n+1&&(t+=i.content),r.lastChunkIndex=i.index}r.outOfOrderChunks=[]}return t}{const e={content:t,index:n},o=r.outOfOrderChunks,i=function(e,t){let n=0,r=e.length;for(;n<r;){const o=n+r>>>1;e[o].index<t.index?n=o+1:r=o}return n}(r.outOfOrderChunks,e);o.splice(i,0,e)}}get(e){return this.ongoingRequests.get(e)}delete(e){this.ongoingRequests.delete(e)}clear(){this.ongoingRequests.clear()}}let yb=function(e){return e.Connected="connected",e.Disconnected="disconnected",e.Reconnect_failed="reconnect_failed",e}({});class bb{constructor(e,t,n,r){const{backendUrl:o,jwt:i,userId:a,chatSessionId:s}=e;this.backendUrl=o,this.jwt=i,this.userId=a,this.chatSessionId=s,this.documentId=n,this.documentHandle=t,this.ongoingRequestManager=new vb;const l=new URL(o).pathname;this.socket=gb(`${this.backendUrl}/socket/v1/document-assistant`,{path:`${l}${l.endsWith("/")?"":"/"}socket.io`,reconnectionDelay:3e3,reconnection:!0,reconnectionAttempts:2,transports:["websocket"],agent:!1,upgrade:!1,rejectUnauthorized:!1,auth:{token:this.jwt}}),this.socket.on("connect",(()=>{r(yb.Connected)})),this.socket.on("disconnect",(()=>{r(yb.Disconnected)})),this.socket.io.on("reconnect_failed",(()=>{r(yb.Reconnect_failed)}))}async initialize(){return await fetch(`${this.backendUrl}/api/v1/users/${this.userId}/documents/${this.documentId}/handle/${this.documentHandle}`,{headers:{Authorization:`Token token=${this.jwt}`}}),new Promise((e=>{this.socket.once("document-assistant-ready",(async()=>{const t=await fetch(`${this.backendUrl}/api/v1/users/${this.userId}/sessions/${this.chatSessionId}`,{headers:{Authorization:`Token token=${this.jwt}`}}),n=await t.json();e(n)})),this.socket.emit("initialize",{userId:this.userId,documentId:this.documentId,documentHandle:this.documentHandle,sessionId:this.chatSessionId})}))}setChatSessionId(e){return this.chatSessionId=e,this.initialize()}setDocumentHandle(e){return this.documentHandle=e,this.initialize()}addErrorListener(e){this.socket.on("error",(t=>{let{requestId:n,message:r,code:o}=t;const i=this.ongoingRequestManager.get(n);(0,Rv.kG)(i),this.ongoingRequestManager.delete(n),e({requestId:n,message:r,code:o})}))}addChatBlockListener(e){this.socket.on("chat-block",(t=>{let{requestId:n,content:r="",index:o,end:i,...a}=t;const s=this.ongoingRequestManager.get(n);if((0,Rv.kG)(s),i)this.ongoingRequestManager.delete(n),e({requestId:n,content:r,index:o,end:i,...a});else{const t=this.ongoingRequestManager.update(n,r,o);if(void 0===t)return;e({requestId:n,content:t,index:o,end:i,...a})}}))}emitAgentCompletion(e,t,n){const r=this.ongoingRequestManager.create();return this.socket.emit("agent-completion",{requestId:r,agent:e,issuer:t,parameters:n,documentId:this.documentId,chatId:this.chatSessionId}),r}emitCompletion(e,t){const n=this.ongoingRequestManager.create();return this.socket.emit("completion",{requestId:n,issuer:e,parameters:t,documentId:this.documentId,chatId:this.chatSessionId}),n}destroy(){this.socket.disconnect(),this.ongoingRequestManager.clear()}}const wb=(0,he.vU)({chat:{id:"chat",defaultMessage:"Chat"},close:{id:"close",defaultMessage:"Close"},goToSelection:{id:"goToSelection",defaultMessage:"Go to selection"}}),xb="PLAIN",_b="SUGGESTIONS",Sb="QUERY_RESULT",Cb="ERROR",Eb="ACTIONS",kb="ADDITIONAL_CONTEXT";function zb(e){let{onSendMessage:t,onTemplateAction:n,dispatch:r,formatMessage:o}=e;return(0,yr.R9)(((e,i,s)=>{const{suggestions:l,additionalContext:c,links:u,stagedActions:d}=i;if(Array.isArray(l)&&l.length>0)return c?{...e,...c&&{additionalContext:c.text,linkToAdditionalContext:{text:o(wb.goToSelection),onPress:()=>r((0,Ls.kN)(c.pageIndex,new k.UL(c.boundingBox)))}},type:kb,actions:l.map((e=>{let{type:r,text:o,agent:i,parameters:a,template:s}=e;return"request"===r?{onPress:()=>t(a?.input,i,a),text:o}:{text:o,onPress:()=>n({text:s??"",agent:i,parameters:a})}}))}:l.every((e=>{let{type:t}=e;return"request"===t}))?{...e,type:_b,suggestions:l.map((e=>{let{text:n,agent:r,parameters:o}=e;return{onPress:()=>t(n,r,o),text:n}}))}:{...e,type:Eb,actions:l.map((e=>{let{type:r,text:o,agent:i,template:a,parameters:s}=e;return"request"===r?{onPress:()=>t(o,i,s),text:o}:{text:o,onPress:()=>n({text:a??"",agent:i,parameters:s})}}))};if(Array.isArray(u)&&u.length>0)return{...e,type:Sb,links:u.map((e=>{let{text:t,href:n}=e;if(n.startsWith("document://")){const[{pageIndex:e,rects:o}]=JSON.parse(n.replace("document://","")),i=k.UL.union((0,a.aV)(o.map((e=>new k.UL(e)))));return{text:t,onPress:()=>r((0,Ls.kN)(parseInt(e),i))}}return{text:t,onPress:()=>window.location.assign(n)}})),actionsText:"",actions:[]};if(Array.isArray(d)&&d.some((e=>"redact"===e.type))){const t=[{text:o(be.Z.applyRedactions),onPress:()=>{r((0,Pt.fq)()),r((0,Gl.g)((()=>r((0,Pt.Di)())),(()=>r((0,Pt.Di)()))))}}];return s&&!s.isEmpty()&&t.unshift({text:o(be.Z.discard),onPress:()=>{r((0,at.d8)(s?.toSet())),t.shift()}}),{...e,type:Eb,actions:t}}return e}))}function Pb(e){let{configuration:t,documentHandle:n,documentId:r,additionalContext:o,onTemplateAction:i,onMessageSubmit:a}=e;const{formatMessage:l}=(0,Ns.useI18n)(),[c,d]=(0,u.useState)(null),[p,h]=(0,u.useState)(!0),[f,m]=(0,u.useState)(!1),[g,v]=(0,u.useState)([]),[y,b]=(0,u.useState)(null),w=(0,s.I0)(),x=(0,s.v9)((e=>e.instance)),_=(0,yr.R9)(((e,t,n)=>{if(c!==yb.Connected||f||!y)return;const{agent:r,parameters:o}=a();let i;m(!0);const s={input:e,...n,...o};i=r||t?y.emitAgentCompletion(r??t,"user",s):y.emitCompletion("user",s),v((t=>[...t,{type:xb,id:`request-${i}`,text:e,sender:"You",isComplete:!0},{type:xb,id:`response-${i}`,text:"",sender:"AI",isComplete:!1}]))})),S=zb({onSendMessage:_,onTemplateAction:i,dispatch:w,formatMessage:l}),C=(0,yr.R9)((e=>{if(0!==e.length||o)v(e.map((e=>{let{content:t,sender:n,...r}=e;const o={type:xb,id:(0,Gv.v4)(),text:t,sender:"ai"===n?"AI":"You",isComplete:!0};return S(o,r)}))),h(!1);else{m(!0);const e=y?.emitAgentCompletion("SuggestedQuestions","system",{input:""});v([{type:_b,suggestions:[],id:`response-${e}`,text:"",sender:"AI",isComplete:!1}]),h(!1)}}));return(0,u.useEffect)((()=>{const e=new bb(t,n,r,(e=>{d(e),"disconnected"===e?h(!0):"reconnect_failed"===e&&(h(!1),v((e=>[...e,{type:Cb,id:"error",text:"",error:{title:"Connection error",description:"Failed to connect to the server. Please try again later."},sender:"AI",isComplete:!0}])))}));e.addErrorListener((e=>{let{requestId:t,message:n,code:r}=e;v((e=>e.map((e=>e.id===`response-${t}`?{...e,type:Cb,error:{title:r,description:n},isComplete:!0}:e))))})),e.addChatBlockListener((async e=>{let t,{requestId:n,end:r,content:o,actions:i,...a}=e;if(r&&m(!1),Array.isArray(a.stagedActions)&&a.stagedActions.some((e=>"redact"===e.type))){const e=new Set(i?.filter((e=>"staged-redaction"===e.type)).map((e=>e.terms.map((e=>function(e){return Array.from((new Intl.Segmenter).segment(e)).map((e=>e.segment.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/[‘’']/g,"[‘’']").replace(/["“”«»„]/g,'["“”«»„]'))).join("[-]?[\n\r\t]?")}(e))))).flat());t=await(x?.createRedactionsBySearch(Array.from(e).join("|"),{searchType:Wv.S.REGEX,caseSensitive:!1,searchInAnnotations:!1}))}v((e=>e.map((e=>{if(e.id===`response-${n}`){const n={...e,text:e.text+o,isComplete:r};return S(n,a,t)}return e}))))})),b(e)}),[]),(0,u.useEffect)((()=>{if(y)return y.initialize().then(C),()=>{y.destroy()}}),[y,C]),(0,u.useEffect)((()=>{y&&(h(!0),y.setChatSessionId(t.chatSessionId).then(C))}),[t.chatSessionId]),(0,u.useEffect)((()=>{y&&(h(!0),y.setDocumentHandle(n).then(C))}),[n]),(0,u.useEffect)((()=>{if(y&&!p&&o){const e=y.emitAgentCompletion("SelectedTextSuggestedActions","system",{context:o});i({text:"",agent:"ContextSpecificQA",parameters:{context:o}}),v((t=>[...t,{type:kb,id:`response-${e}`,text:"",sender:"AI",additionalContext:o.text,isComplete:!1,actions:[],linkToAdditionalContext:{text:l(wb.goToSelection),onPress:()=>w((0,Ls.kN)(o.pageIndex,new k.UL(o.boundingBox)))}}])),w((0,Pt.vM)(null))}}),[y,w,p,o,l]),{messages:g,onSendMessage:_,isLoading:p,isConnected:c===yb.Connected,isGenerating:f}}const Db={value:"",agent:null,parameters:null};function Ab(e){let{toolbarsHeight:t,configuration:n,documentHandle:r,documentId:o,isOpen:i}=e;const a=(0,sv.Me)(),l=(0,s.v9)((e=>e.instance)),c=(0,s.v9)((e=>e.documentAssistant.additionalContext)),[d,p]=(0,u.useState)(Db),h=(0,u.useRef)(null),f=(0,yr.R9)((()=>(n.onMessageSubmit?.(),{agent:d.agent,parameters:d.parameters}))),m=(0,u.useCallback)((e=>{let{text:t,...n}=e;h.current&&(p({value:t,...n}),h.current.setCaretPosition(t.lastIndexOf('"')??-1))}),[]),{messages:g,onSendMessage:v,isLoading:y,isConnected:b,isGenerating:w}=Pb({configuration:n,documentHandle:r,documentId:o,additionalContext:c,onTemplateAction:m,onMessageSubmit:f}),x=(0,s.I0)(),_=(0,u.useCallback)((()=>{x((0,Pt.Z_)(!1))}),[x]),S=(0,s.v9)((e=>e.ui[Fv.xr.ChatDialog])),C=(0,u.useCallback)((e=>{v(e),p(Db)}),[v]),E=(0,u.useMemo)((()=>({editorHandle:h,isLoading:y,isSubmitDisabled:!b||w||y,messages:g,onMessageSubmit:C,onInputChanged:e=>p((t=>({...t,value:e}))),titleId:a,style:{height:"calc(100% - 49px)",minHeight:"40vh"},inputValue:d.value})),[w,b,a,d,p,C,y,g]),k=(0,u.useMemo)((()=>({titleId:a,onCloseRequest:_,topOffset:t,isOpen:i})),[a,_,t,i]);return Ov(Fv.xr.ChatDialog,S,E,l,k)}function Tb(e){let{isOpen:t,configuration:n,toolbarsHeight:r,documentId:o,documentHandle:i}=e;const a=function(e){let{isMounted:t,delay:n}=e;const[r,o]=(0,u.useState)(!1);return(0,u.useEffect)((()=>{let e;return t&&!r?o(!0):!t&&r&&(e=setTimeout((()=>o(!1)),n)),()=>clearTimeout(e)}),[t,n,r]),r}({isMounted:t,delay:200});return a?u.createElement(Ab,{configuration:n,toolbarsHeight:r,documentId:o,documentHandle:i,isOpen:t}):null}var Ib=Object.defineProperty,Mb={};((e,t)=>{for(var n in t)Ib(e,n,{get:t[n],enumerable:!0})})(Mb,{assign:()=>pw,colors:()=>cw,createStringInterpolator:()=>iw,skipAnimation:()=>uw,to:()=>aw,willAdvance:()=>dw});var Rb=Yb(),Fb=e=>Zb(e,Rb),Nb=Yb();Fb.write=e=>Zb(e,Nb);var Ob=Yb();Fb.onStart=e=>Zb(e,Ob);var jb=Yb();Fb.onFrame=e=>Zb(e,jb);var Lb=Yb();Fb.onFinish=e=>Zb(e,Lb);var Bb=[];Fb.setTimeout=(e,t)=>{const n=Fb.now()+t,r=()=>{const e=Bb.findIndex((e=>e.cancel==r));~e&&Bb.splice(e,1),$b-=~e?1:0},o={time:n,handler:e,cancel:r};return Bb.splice(Kb(n),0,o),$b+=1,qb(),o};var Kb=e=>~(~Bb.findIndex((t=>t.time>e))||~Bb.length);Fb.cancel=e=>{Ob.delete(e),jb.delete(e),Lb.delete(e),Rb.delete(e),Nb.delete(e)},Fb.sync=e=>{Ub=!0,Fb.batchedUpdates(e),Ub=!1},Fb.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,Fb.onStart(n)}return r.handler=e,r.cancel=()=>{Ob.delete(n),t=null},r};var Vb="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Fb.use=e=>Vb=e,Fb.now="undefined"!=typeof performance?()=>performance.now():Date.now,Fb.batchedUpdates=e=>e(),Fb.catch=console.error,Fb.frameLoop="always",Fb.advance=()=>{"demand"!==Fb.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Wb()};var Hb=-1,$b=0,Ub=!1;function Zb(e,t){Ub?(t.delete(e),e(0)):(t.add(e),qb())}function qb(){Hb<0&&(Hb=0,"demand"!==Fb.frameLoop&&Vb(Gb))}function Gb(){~Hb&&(Vb(Gb),Fb.batchedUpdates(Wb))}function Wb(){const e=Hb;Hb=Fb.now();const t=Kb(Hb);t&&(Xb(Bb.splice(0,t),(e=>e.handler())),$b-=t),$b?(Ob.flush(),Rb.flush(e?Math.min(64,Hb-e):16.667),jb.flush(),Nb.flush(),Lb.flush()):Hb=-1}function Yb(){let e=new Set,t=e;return{add(n){$b+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>($b-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,$b-=t.size,Xb(t,(t=>t(n)&&e.add(t))),$b+=e.size,t=e)}}}function Xb(e,t){e.forEach((e=>{try{t(e)}catch(e){Fb.catch(e)}}))}function Qb(){}var Jb={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function ew(e,t){if(Jb.arr(e)){if(!Jb.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var tw=(e,t)=>e.forEach(t);function nw(e,t,n){if(Jb.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var rw=e=>Jb.und(e)?[]:Jb.arr(e)?e:[e];function ow(e,t){if(e.size){const n=Array.from(e);e.clear(),tw(n,t)}}var iw,aw,sw=(e,...t)=>ow(e,(e=>e(...t))),lw=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),cw=null,uw=!1,dw=Qb,pw=e=>{e.to&&(aw=e.to),e.now&&(Fb.now=e.now),void 0!==e.colors&&(cw=e.colors),null!=e.skipAnimation&&(uw=e.skipAnimation),e.createStringInterpolator&&(iw=e.createStringInterpolator),e.requestAnimationFrame&&Fb.use(e.requestAnimationFrame),e.batchedUpdates&&(Fb.batchedUpdates=e.batchedUpdates),e.willAdvance&&(dw=e.willAdvance),e.frameLoop&&(Fb.frameLoop=e.frameLoop)},hw=new Set,fw=[],mw=[],gw=0,vw={get idle(){return!hw.size&&!fw.length},start(e){gw>e.priority?(hw.add(e),Fb.onStart(yw)):(bw(e),Fb(xw))},advance:xw,sort(e){if(gw)Fb.onFrame((()=>vw.sort(e)));else{const t=fw.indexOf(e);~t&&(fw.splice(t,1),ww(e))}},clear(){fw=[],hw.clear()}};function yw(){hw.forEach(bw),hw.clear(),Fb(xw)}function bw(e){fw.includes(e)||ww(e)}function ww(e){fw.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(fw,(t=>t.priority>e.priority)),0,e)}function xw(e){const t=mw;for(let n=0;n<fw.length;n++){const r=fw[n];gw=r.priority,r.idle||(dw(r),r.advance(e),r.idle||t.push(r))}return gw=0,(mw=fw).length=0,(fw=t).length>0}var _w="[-+]?\\d*\\.?\\d+",Sw=_w+"%";function Cw(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Ew=new RegExp("rgb"+Cw(_w,_w,_w)),kw=new RegExp("rgba"+Cw(_w,_w,_w,_w)),zw=new RegExp("hsl"+Cw(_w,Sw,Sw)),Pw=new RegExp("hsla"+Cw(_w,Sw,Sw,_w)),Dw=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Aw=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Tw=/^#([0-9a-fA-F]{6})$/,Iw=/^#([0-9a-fA-F]{8})$/;function Mw(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Rw(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Mw(o,r,e+1/3),a=Mw(o,r,e),s=Mw(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Fw(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Nw(e){return(parseFloat(e)%360+360)%360/360}function Ow(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function jw(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Lw(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Tw.exec(e))?parseInt(t[1]+"ff",16)>>>0:cw&&void 0!==cw[e]?cw[e]:(t=Ew.exec(e))?(Fw(t[1])<<24|Fw(t[2])<<16|Fw(t[3])<<8|255)>>>0:(t=kw.exec(e))?(Fw(t[1])<<24|Fw(t[2])<<16|Fw(t[3])<<8|Ow(t[4]))>>>0:(t=Dw.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Iw.exec(e))?parseInt(t[1],16)>>>0:(t=Aw.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=zw.exec(e))?(255|Rw(Nw(t[1]),jw(t[2]),jw(t[3])))>>>0:(t=Pw.exec(e))?(Rw(Nw(t[1]),jw(t[2]),jw(t[3]))|Ow(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var Bw=(e,t,n)=>{if(Jb.fun(e))return e;if(Jb.arr(e))return Bw({range:e,output:t,extrapolate:n});if(Jb.str(e.output[0]))return iw(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}};var Kw=1.70158,Vw=1.525*Kw,Hw=Kw+1,$w=2*Math.PI/3,Uw=2*Math.PI/4.5,Zw=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},qw={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Hw*e*e*e-Kw*e*e,easeOutBack:e=>1+Hw*Math.pow(e-1,3)+Kw*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Vw)/2:(Math.pow(2*e-2,2)*((Vw+1)*(2*e-2)+Vw)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*$w),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*$w)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Uw)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Uw)/2+1,easeInBounce:e=>1-Zw(1-e),easeOutBounce:Zw,easeInOutBounce:e=>e<.5?(1-Zw(1-2*e))/2:(1+Zw(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},Gw=Symbol.for("FluidValue.get"),Ww=Symbol.for("FluidValue.observers"),Yw=e=>Boolean(e&&e[Gw]),Xw=e=>e&&e[Gw]?e[Gw]():e,Qw=e=>e[Ww]||null;function Jw(e,t){const n=e[Ww];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var ex=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");tx(this,e)}},tx=(e,t)=>ix(e,Gw,t);function nx(e,t){if(e[Gw]){let n=e[Ww];n||ix(e,Ww,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function rx(e,t){const n=e[Ww];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ww]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var ox,ix=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ax=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,sx=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,lx=new RegExp(`(${ax.source})(%|[a-z]+)`,"i"),cx=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ux=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,dx=e=>{const[t,n]=px(e);if(!t||lw())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&ux.test(n)?dx(n):n||e},px=e=>{const t=ux.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},hx=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,fx=e=>{ox||(ox=cw?new RegExp(`(${Object.keys(cw).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Xw(e).replace(ux,dx).replace(sx,Lw).replace(ox,Lw))),n=t.map((e=>e.match(ax).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),o=r.map((t=>Bw({...e,output:t})));return e=>{const n=!lx.test(t[0])&&t.find((e=>lx.test(e)))?.replace(ax,"");let r=0;return t[0].replace(ax,(()=>`${o[r++](e)}${n||""}`)).replace(cx,hx)}},mx="react-spring: ",gx=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${mx}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},vx=gx(console.warn);var yx=gx(console.warn);function bx(e){return Jb.str(e)&&("#"==e[0]||/\d/.test(e)||!lw()&&ux.test(e)||e in(cw||{}))}var wx=lw()?u.useEffect:u.useLayoutEffect;function xx(){const e=(0,u.useState)()[1],t=(()=>{const e=(0,u.useRef)(!1);return wx((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var _x=e=>(0,u.useEffect)(e,Sx),Sx=[];function Cx(e){const t=(0,u.useRef)();return(0,u.useEffect)((()=>{t.current=e})),t.current}var Ex=Symbol.for("Animated:node"),kx=e=>e&&e[Ex],zx=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,Ex,t),Px=e=>e&&e[Ex]&&e[Ex].getPayload(),Dx=class{constructor(){zx(this,this)}getPayload(){return this.payload||[]}},Ax=class extends Dx{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Jb.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ax(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Jb.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Jb.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Tx=class extends Ax{constructor(e){super(0),this._string=null,this._toString=Bw({output:[e,e]})}static create(e){return new Tx(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Jb.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Bw({output:[this.getValue(),e]})),this._value=0,super.reset()}},Ix={dependencies:null},Mx=class extends Dx{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return nw(this.source,((n,r)=>{(e=>!!e&&e[Ex]===e)(n)?t[r]=n.getValue(e):Yw(n)?t[r]=Xw(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&tw(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return nw(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Ix.dependencies&&Yw(e)&&Ix.dependencies.add(e);const t=Px(e);t&&tw(t,(e=>this.add(e)))}},Rx=class extends Mx{constructor(e){super(e)}static create(e){return new Rx(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Fx)),!0)}};function Fx(e){return(bx(e)?Tx:Ax).create(e)}function Nx(e){const t=kx(e);return t?t.constructor:Jb.arr(e)?Rx:bx(e)?Tx:Ax}var Ox=(e,t)=>{const n=!Jb.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,u.forwardRef)(((r,o)=>{const i=(0,u.useRef)(null),a=n&&(0,u.useCallback)((e=>{i.current=function(e,t){e&&(Jb.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[s,l]=function(e,t){const n=new Set;Ix.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new Mx(e),Ix.dependencies=null,[e,n]}(r,t),c=xx(),d=()=>{const e=i.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&c()},p=new jx(d,l),h=(0,u.useRef)();wx((()=>(h.current=p,tw(l,(e=>nx(e,p))),()=>{h.current&&(tw(h.current.deps,(e=>rx(e,h.current))),Fb.cancel(h.current.update))}))),(0,u.useEffect)(d,[]),_x((()=>()=>{const e=h.current;tw(e.deps,(t=>rx(t,e)))}));const f=t.getComponentProps(s.getValue());return u.createElement(e,{...f,ref:a})}))},jx=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Fb.write(this.update)}};var Lx=Symbol.for("AnimatedComponent"),Bx=e=>Jb.str(e)?e:e&&Jb.str(e.displayName)?e.displayName:Jb.fun(e)&&e.name||null;function Kx(e,...t){return Jb.fun(e)?e(...t):e}var Vx=(e,t)=>!0===e||!!(t&&e&&(Jb.fun(e)?e(t):rw(e).includes(t))),Hx=(e,t)=>Jb.obj(e)?t&&e[t]:e,$x=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Ux=e=>e,Zx=(e,t=Ux)=>{let n=qx;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);Jb.und(n)||(r[o]=n)}return r},qx=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Gx={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Wx(e){const t=function(e){const t={};let n=0;if(nw(e,((e,r)=>{Gx[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return nw(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function Yx(e){return e=Xw(e),Jb.arr(e)?e.map(Yx):bx(e)?Mb.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Xx(e){for(const t in e)return!0;return!1}function Qx(e){return Jb.fun(e)||Jb.arr(e)&&Jb.obj(e[0])}function Jx(e,t){e.ref?.delete(e),t?.delete(e)}function e_(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var t_={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},n_={...t_.default,mass:1,damping:1,easing:qw.linear,clamp:!1};function r_(e,t){if(Jb.und(t.decay)){const n=!Jb.und(t.tension)||!Jb.und(t.friction);!n&&Jb.und(t.frequency)&&Jb.und(t.damping)&&Jb.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var o_=[];function i_(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,c,u=Vx(n.cancel??r?.cancel,t);if(u)h();else{Jb.und(n.pause)||(o.paused=Vx(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||Vx(e,t)),l=Kx(n.delay||0,t),e?(o.resumeQueue.add(p),i.pause()):(i.resume(),p())}function d(){o.resumeQueue.add(p),o.timeouts.delete(c),c.cancel(),l=c.time-Fb.now()}function p(){l>0&&!Mb.skipAnimation?(o.delayed=!0,c=Fb.setTimeout(h,l),o.pauseQueue.add(d),o.timeouts.add(c)):h()}function h(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(c),e<=(o.cancelId||0)&&(u=!0);try{i.start({...n,callId:e,cancel:u},a)}catch(e){s(e)}}}))}var a_=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?c_(e.get()):t.every((e=>e.noop))?s_(e.get()):l_(e.get(),t.every((e=>e.finished))),s_=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),l_=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),c_=e=>({value:e,cancelled:!0,finished:!1});function u_(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=Zx(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const p=new Promise(((e,t)=>(u=e,d=t))),h=e=>{const t=o<=(n.cancelId||0)&&c_(r)||o!==n.asyncId&&l_(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const i=new p_,a=new h_;return(async()=>{if(Mb.skipAnimation)throw d_(n),a.result=l_(r,!1),d(a),a;h(i);const s=Jb.obj(e)?{...e}:{...t,to:e};s.parentId=o,nw(c,((e,t)=>{Jb.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return h(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let m;if(Mb.skipAnimation)return d_(n),l_(r,!1);try{let t;t=Jb.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(u),p]),m=l_(r.get(),!0,!1)}catch(e){if(e instanceof p_)m=e.result;else{if(!(e instanceof h_))throw e;m=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return Jb.fun(a)&&Fb.batchedUpdates((()=>{a(m,r,r.item)})),m})():l}function d_(e,t){ow(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var p_=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},h_=class extends Error{constructor(){super("SkipAnimationSignal")}},f_=e=>e instanceof g_,m_=1,g_=class extends ex{constructor(){super(...arguments),this.id=m_++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=kx(this);return e&&e.getValue()}to(...e){return Mb.to(this,e)}interpolate(...e){return vx(`${mx}The "interpolate" function is deprecated in v9 (use "to" instead)`),Mb.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Jw(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||vw.sort(this),Jw(this,{type:"priority",parent:this,priority:e})}},v_=Symbol.for("SpringPhase"),y_=e=>(1&e[v_])>0,b_=e=>(2&e[v_])>0,w_=e=>(4&e[v_])>0,x_=(e,t)=>t?e[v_]|=3:e[v_]&=-3,__=(e,t)=>t?e[v_]|=4:e[v_]&=-5,S_=class extends g_{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=o_,this.toValues=null,this.fromValues=o_,this.config=new class{constructor(){this.velocity=0,Object.assign(this,n_)}},this.immediate=!1}},this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Jb.und(e)||!Jb.und(t)){const n=Jb.obj(e)?{...e}:{...t,from:e};Jb.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(b_(this)||this._state.asyncTo)||w_(this)}get goal(){return Xw(this.animation.to)}get velocity(){const e=kx(this);return e instanceof Ax?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return y_(this)}get isAnimating(){return b_(this)}get isPaused(){return w_(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=Px(r.to);!a&&Yw(r.to)&&(o=rw(Xw(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==Tx?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=Jb.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const p=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(Jb.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=p,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||p/10,r=i.clamp?0:i.bounce,l=!Jb.und(r),h=n==c?s.v0>0:n<c;let f,m=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(f=Math.abs(a)>t,f||(u=Math.abs(c-d)<=p,!u));++e){l&&(m=d==c||d>c==h,m&&(a=-a*r,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*g,d+=a*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=kx(this),l=s.getValue();if(t){const e=Xw(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return Fb.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(b_(this)){const{to:e,config:t}=this.animation;Fb.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Jb.und(e)?(n=this.queue||[],this.queue=[]):n=[Jb.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>a_(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),d_(this._state,e&&this._lastCallId),Fb.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Jb.obj(n)?n[t]:n,(null==n||Qx(n))&&(n=void 0),r=Jb.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return y_(this)||(e.reverse&&([n,r]=[r,n]),r=Xw(r),Jb.und(r)?kx(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Zx(e,((e,t)=>/^on/.test(t)?Hx(e,n):e))),A_(this,e,"onProps"),T_(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return i_(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{w_(this)||(__(this,!0),sw(i.pauseQueue),T_(this,"onPause",l_(this,C_(this,this.animation.to)),this))},resume:()=>{w_(this)&&(__(this,!1),b_(this)&&this._resume(),sw(i.resumeQueue),T_(this,"onResume",l_(this,C_(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=E_(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(c_(this));const r=!Jb.und(e.to),o=!Jb.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(c_(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!o||r||t.default&&!Jb.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!ew(d,c);p&&(s.from=d),d=Xw(d);const h=!ew(u,l);h&&this._focus(u);const f=Qx(t.to),{config:m}=s,{decay:g,velocity:v}=m;(r||o)&&(m.velocity=0),t.config&&!f&&function(e,t,n){n&&(r_(n={...n},t),t={...n,...t}),r_(e,t),Object.assign(e,t);for(const t in n_)null==e[t]&&(e[t]=n_[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;Jb.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(m,Kx(t.config,i),t.config!==a.config?Kx(a.config,i):void 0);let y=kx(this);if(!y||Jb.und(u))return n(l_(this,!0));const b=Jb.und(t.reset)?o&&!t.default:!Jb.und(d)&&Vx(t.reset,i),w=b?d:this.get(),x=Yx(u),_=Jb.num(x)||Jb.arr(x)||bx(x),S=!f&&(!_||Vx(a.immediate||t.immediate,i));if(h){const e=Nx(u);if(e!==y.constructor){if(!S)throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);y=this._set(x)}}const C=y.constructor;let E=Yw(u),k=!1;if(!E){const e=b||!y_(this)&&p;(h||e)&&(k=ew(Yx(w),x),E=!k),(ew(s.immediate,S)||S)&&ew(m.decay,g)&&ew(m.velocity,v)||(E=!0)}if(k&&b_(this)&&(s.changed&&!b?E=!0:E||this._stop(l)),!f&&((E||Yw(l))&&(s.values=y.getPayload(),s.toValues=Yw(u)?null:C==Tx?[1]:rw(x)),s.immediate!=S&&(s.immediate=S,S||b||this._set(l)),E)){const{onRest:e}=s;tw(D_,(e=>A_(this,t,e)));const r=l_(this,C_(this,l));sw(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&Fb.batchedUpdates((()=>{s.changed=!b,e?.(r,this),b?Kx(a.onRest,r):s.onStart?.(r,this)}))}b&&this._set(w),f?n(u_(t.to,t,this._state,this)):E?this._start():b_(this)&&!h?this._pendingCalls.add(n):n(s_(w))}_focus(e){const t=this.animation;e!==t.to&&(Qw(this)&&this._detach(),t.to=e,Qw(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Yw(t)&&(nx(t,this),f_(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Yw(e)&&rx(e,this)}_set(e,t=!0){const n=Xw(e);if(!Jb.und(n)){const e=kx(this);if(!e||!ew(n,e.getValue())){const r=Nx(n);e&&e.constructor==r?e.setValue(n):zx(this,r.create(n)),e&&Fb.batchedUpdates((()=>{this._onChange(n,t)}))}}return kx(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,T_(this,"onStart",l_(this,C_(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Kx(this.animation.onChange,e,this)),Kx(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;kx(this).reset(Xw(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),b_(this)||(x_(this,!0),w_(this)||this._resume())}_resume(){Mb.skipAnimation?this.finish():vw.start(this)}_stop(e,t){if(b_(this)){x_(this,!1);const n=this.animation;tw(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Jw(this,{type:"idle",parent:this});const r=t?c_(this.get()):l_(this.get(),C_(this,e??n.to));sw(this._pendingCalls,r),n.changed&&(n.changed=!1,T_(this,"onRest",r,this))}}};function C_(e,t){const n=Yx(t);return ew(Yx(e.get()),n)}function E_(e,t=e.loop,n=e.to){const r=Kx(t);if(r){const o=!0!==r&&Wx(r),i=(o||e).reverse,a=!o||o.reset;return k_({...e,loop:t,default:!1,pause:void 0,to:!i||Qx(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function k_(e){const{to:t,from:n}=e=Wx(e),r=new Set;return Jb.obj(t)&&P_(t,r),Jb.obj(n)&&P_(n,r),e.keys=r.size?Array.from(r):null,e}function z_(e){const t=k_(e);return Jb.und(t.default)&&(t.default=Zx(t)),t}function P_(e,t){nw(e,((e,n)=>null!=e&&t.add(n)))}var D_=["onStart","onRest","onChange","onPause","onResume"];function A_(e,t,n){e.animation[n]=t[n]!==$x(t,n)?Hx(t[n],e.key):void 0}function T_(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var I_=["onStart","onChange","onRest"],M_=1,R_=class{constructor(e,t){this.id=M_++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];Jb.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(k_(e)),this}start(e){let{queue:t}=this;return e?t=rw(e).map(k_):this.queue=[],this._flush?this._flush(this,t):(K_(this,t),F_(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;tw(rw(t),(t=>n[t].stop(!!e)))}else d_(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Jb.und(e))this.start({pause:!0});else{const t=this.springs;tw(rw(e),(e=>t[e].pause()))}return this}resume(e){if(Jb.und(e))this.start({pause:!1});else{const t=this.springs;tw(rw(e),(e=>t[e].resume()))}return this}each(e){nw(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,ow(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&ow(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,ow(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}Fb.onFrame(this._onFrame)}};function F_(e,t){return Promise.all(t.map((t=>N_(e,t)))).then((t=>a_(e,t)))}async function N_(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=Jb.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=Jb.arr(o)||Jb.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):tw(I_,(n=>{const r=t[n];if(Jb.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,sw(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),h=!0===t.cancel||!0===$x(t,"cancel");(u||h&&d.asyncId)&&p.push(i_(++e._lastAsyncId,{props:t,state:d,actions:{pause:Qb,resume:Qb,start(t,n){h?(d_(d,e._lastAsyncId),n(c_(e))):(t.onRest=s,n(u_(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=a_(e,await Promise.all(p));if(a&&f.finished&&(!n||!f.noop)){const n=E_(t,a,o);if(n)return K_(e,[n]),N_(e,n,!0)}return l&&Fb.batchedUpdates((()=>l(f,e,e.item))),f}function O_(e,t){const n={...e.springs};return t&&tw(rw(t),(e=>{Jb.und(e.keys)&&(e=k_(e)),Jb.obj(e.to)||(e={...e,to:void 0}),B_(n,e,(e=>L_(e)))})),j_(e,n),n}function j_(e,t){nw(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,nx(t,e))}))}function L_(e,t){const n=new S_;return n.key=e,t&&nx(n,t),n}function B_(e,t,n){t.keys&&tw(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function K_(e,t){tw(t,(t=>{B_(e.springs,t,(t=>L_(t,e)))}))}var V_,H_,$_=({children:e,...t})=>{const n=(0,u.useContext)(U_),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,u.useState)((()=>({inputs:t,result:e()}))),r=(0,u.useRef)(),o=r.current;let i=o;if(i){const n=Boolean(t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.inputs));n||(i={inputs:t,result:e()})}else i=n;return(0,u.useEffect)((()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:r,immediate:o})),[r,o]);const{Provider:i}=U_;return u.createElement(i,{value:t},e)},U_=(V_=$_,H_={},Object.assign(V_,u.createContext(H_)),V_.Provider._context=V_,V_.Consumer._context=V_,V_);$_.Provider=U_.Provider,$_.Consumer=U_.Consumer;var Z_=()=>{const e=[],t=function(t){yx(`${mx}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return tw(e,((e,o)=>{if(Jb.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return tw(e,(e=>e.pause(...arguments))),this},t.resume=function(){return tw(e,(e=>e.resume(...arguments))),this},t.set=function(t){tw(e,((e,n)=>{const r=Jb.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return tw(e,((e,r)=>{if(Jb.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return tw(e,(e=>e.stop(...arguments))),this},t.update=function(t){return tw(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Jb.fun(e)?e(n,t):e};return t._getProps=n,t};function q_(e,t,n){const r=Jb.fun(t)&&t;r&&!n&&(n=[]);const o=(0,u.useMemo)((()=>r||3==arguments.length?Z_():void 0),[]),i=(0,u.useRef)(0),a=xx(),s=(0,u.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=O_(e,t);return i.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?F_(e,t):new Promise((r=>{j_(e,n),s.queue.push((()=>{r(F_(e,t))})),a()}))}})),[]),l=(0,u.useRef)([...s.ctrls]),c=[],d=Cx(e)||0;function p(e,n){for(let o=e;o<n;o++){const e=l.current[o]||(l.current[o]=new R_(null,s.flush)),n=r?r(o,e):t[o];n&&(c[o]=z_(n))}}(0,u.useMemo)((()=>{tw(l.current.slice(e,d),(e=>{Jx(e,o),e.stop(!0)})),l.current.length=e,p(d,e)}),[e]),(0,u.useMemo)((()=>{p(0,Math.min(d,e))}),n);const h=l.current.map(((e,t)=>O_(e,c[t]))),f=(0,u.useContext)($_),m=Cx(f),g=f!==m&&Xx(f);wx((()=>{i.current++,s.ctrls=l.current;const{queue:e}=s;e.length&&(s.queue=[],tw(e,(e=>e()))),tw(l.current,((e,t)=>{o?.add(e),g&&e.start({default:f});const n=c[t];n&&(e_(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),_x((()=>()=>{tw(s.ctrls,(e=>e.stop(!0)))}));const v=h.map((e=>({...e})));return o?[v,o]:v}function G_(e,t){const n=Jb.fun(e),[[r],o]=q_(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}var W_=class extends g_{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Bw(...t);const n=this._get(),r=Nx(n);zx(this,r.create(n))}advance(e){const t=this._get();ew(t,this.get())||(kx(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&X_(this._active)&&Q_(this)}_get(){const e=Jb.arr(this.source)?this.source.map(Xw):rw(Xw(this.source));return this.calc(...e)}_start(){this.idle&&!X_(this._active)&&(this.idle=!1,tw(Px(this),(e=>{e.done=!1})),Mb.skipAnimation?(Fb.batchedUpdates((()=>this.advance())),Q_(this)):vw.start(this))}_attach(){let e=1;tw(rw(this.source),(t=>{Yw(t)&&nx(t,this),f_(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){tw(rw(this.source),(e=>{Yw(e)&&rx(e,this)})),this._active.clear(),Q_(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=rw(this.source).reduce(((e,t)=>Math.max(e,(f_(t)?t.priority:0)+1)),0))}};function Y_(e){return!1!==e.idle}function X_(e){return!e.size||Array.from(e).every(Y_)}function Q_(e){e.idle||(e.idle=!0,tw(Px(e),(e=>{e.done=!0})),Jw(e,{type:"idle",parent:e}))}Mb.assign({createStringInterpolator:fx,to:(e,t)=>new W_(e,t)});vw.advance;var J_=/^--/;function eS(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||J_.test(e)||nS.hasOwnProperty(e)&&nS[e]?(""+t).trim():t+"px"}var tS={};var nS={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rS=["Webkit","Ms","Moz","O"];nS=Object.keys(nS).reduce(((e,t)=>(rS.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),nS);var oS=/^(matrix|translate|scale|rotate|skew)/,iS=/^(translate)/,aS=/^(rotate|skew)/,sS=(e,t)=>Jb.num(e)&&0!==e?e+t:e,lS=(e,t)=>Jb.arr(e)?e.every((e=>lS(e,t))):Jb.num(e)?e===t:parseFloat(e)===t,cS=class extends Mx{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>sS(e,"px"))).join(",")})`,lS(e,0)]))),nw(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(oS.test(t)){if(delete r[t],Jb.und(e))return;const n=iS.test(t)?"px":aS.test(t)?"deg":"";o.push(rw(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${sS(o,n)})`,lS(o,0)]:e=>[`${t}(${e.map((e=>sS(e,n))).join(",")})`,lS(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new uS(o,i)),super(r)}},uS=class extends ex{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return tw(this.inputs,((n,r)=>{const o=Xw(n[0]),[i,a]=this.transforms[r](Jb.arr(o)?o:n.map(Xw));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&tw(this.inputs,(e=>tw(e,(e=>Yw(e)&&nx(e,this)))))}observerRemoved(e){0==e&&tw(this.inputs,(e=>tw(e,(e=>Yw(e)&&rx(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Jw(this,e)}};Mb.assign({batchedUpdates:c.unstable_batchedUpdates,createStringInterpolator:fx,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var dS=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new Mx(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=Bx(e)||"Anonymous";return(e=Jb.str(e)?i[e]||(i[e]=Ox(e,o)):e[Lx]||(e[Lx]=Ox(e,o))).displayName=`Animated(${t})`,e};return nw(e,((t,n)=>{Jb.arr(e)&&(n=Bx(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:s,...l}=t,c=Object.values(l),u=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:tS[t]||(tS[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in r)if(r.hasOwnProperty(t)){const n=eS(t,r[t]);J_.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new cS(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),pS=dS.animated,hS=n(83034);function fS(e){const t=(new DOMParser).parseFromString(e,"text/html");return t.body.querySelectorAll("u").forEach((e=>{const t=document.createElement("span");t.style.textDecoration="underline",t.innerHTML=e.innerHTML,e.replaceWith(t)})),t.body.innerHTML}function mS(e){let{onResize:t,commentThread:n,comments:r}=e;const o=(0,s.v9)((e=>e)),{maxMentionSuggestions:i,anonymousComments:l,keepSelectedTool:c,mentionableUsers:d}=o,p=(0,sv.Me)(),{formatMessage:h}=(0,Ns.useI18n)(),f=(0,s.I0)(),m=(0,u.useRef)(null);(0,u.useEffect)((()=>{const e=m.current;if(!e||!t)return;const n=new ResizeObserver((e=>t?.(e[0])));return n.observe(e),()=>n.disconnect()}),[t]);const g=n.map((e=>{const t=r.get(e);return(0,Rv.kG)(t),t})).toList(),v=g?.find((e=>(0,Aa.kT)(e))),y=(0,u.useMemo)((()=>g.filter((e=>!(0,Aa.kT)(e))).map(((e,t,n)=>function(e,t,n,r,o){const i=(0,mn.Ez)(e,r),a=!!(0,lr.kR)(e,r),s=!!(0,lr.kR)(e,r),l=r.anonymousComments,c=r.dateTimeString,d=!i&&a,p=t>0&&n.get(t-1),h=!!p&&(p.creatorName!==e.creatorName||e.isAnonymous||p.isAnonymous);return(0,Rv.kG)(e.id),{id:e.id,contentStringType:"xhtml"===e.text.format?"html":"plain",content:e.text.value||"",canEdit:d,isAnonymous:!!e.isAnonymous,canDelete:!i&&s,canBeAnonymous:d&&l,description:c?.({dateTime:e.createdAt,element:$s.Y.COMMENT_THREAD,object:e})||u.createElement(Ns.DateFormat,{date:e.createdAt,hour12:!0,hour:"numeric",minute:"numeric",month:"short",day:"numeric"}),...(h||0===t)&&{name:e.isAnonymous?o(be.Z.anonymous):e.creatorName||o(be.Z.anonymous),avatarProps:{name:e.isAnonymous?"?":e.creatorName||"?",className:"PSPDFKit-Comment-Avatar"}}}}(e,t,n,o,h))).toJS()),[g,o,h]),b=u.useCallback((e=>{if(!(0,Yt.KY)(e))return;const t=0===y.length;(0,Rv.kG)(v);const n=v.set("text",{format:"xhtml",value:fS(e)}),r=n.rootId;(0,Rv.kG)(r),f((0,Cr.BY)(n)),f((0,Cr.mh)(r)),t&&f((0,ve.Df)((0,a.l4)([r]),null)),c&&f((0,Pt.k6)())}),[y,v,f,c]),w=(0,u.useCallback)(((e,t)=>{const n=r.get(e);(0,Rv.kG)(n);const o=n.set("isAnonymous",t);f((0,Cr.gk)((0,a.aV)([o])))}),[r,f]),x=(0,u.useCallback)((e=>{const t=r.get(e);(0,Rv.kG)(t),f((0,Cr.UM)(t))}),[r,f]),_=(0,u.useCallback)(((e,t)=>{const n=r.get(e);(0,Rv.kG)(n);const o=n.set("text",{format:"xhtml",value:fS(t)});f((0,Cr.BY)(o,n)),c&&f((0,Pt.k6)())}),[r,f,c]),S=(0,u.useMemo)((()=>l?[{type:"toggle",props:{"aria-label":h(be.Z.anonymous),icon:hS.sp,onPress:()=>w(v?.id||"",!0),isSelected:!!v?.isAnonymous}}]:[]),[l,v?.id,v?.isAnonymous,h,w]);return{comments:y,titleId:p,mentionableUsers:d,maxMentionableUsersSuggestions:i,onAnonymousToggle:w,onDelete:x,onCommentUpdate:_,onCommentAdd:b,editorFooterButtons:S,ref:m,className:"PSPDFKit-Comment-Thread",allowCommentCreation:!!v,defaultEditorValue:v?.text.value||void 0,renderAvatar:o.customRenderers?.CommentAvatar}}function gS(e,t){if(!e)return!1;let n=!1;if((0,Aa._P)(e,t)){const r=e?.last();(0,Rv.kG)(null!=r);const o=t.get(r);(0,Rv.kG)(null!=o),n=o.text.value.length>0}return n}const vS="PSPDFKit-CommentThread-Root";const yS=e=>{let{annotation:t,commentThread:n,comments:r}=e;const o=(0,s.I0)(),i=(0,s.v9)((e=>e.instance)),a=(0,s.v9)((e=>e.ui?.[Fv.xr.CommentThread])),l=(0,s.v9)((e=>e.viewportState)),c=(0,s.v9)((e=>e.rootElement)),d=mS({commentThread:n,comments:r}),h=(0,u.useMemo)((()=>{const e=c?.getBoundingClientRect(),n=(0,Z.cr)(l,t.pageIndex);return t.boundingBox.apply(n).translate(new k.E9({y:-e.top,x:-e.left}))}),[t.boundingBox,t.pageIndex,c,l]),f=(0,u.useMemo)((()=>({...d,variant:"popover",className:p()(d.className,{"PSPDFKit-Comment-Thread-Selected":!0,"PSPDFKit-Comment-Thread-Expanded":!0})})),[d]),m=(0,u.useMemo)((()=>({dialogTitleId:d.titleId,variant:"popover",referenceRect:h.toJS(),onOutsideClick:()=>{o((0,ve.fz)())},boundaryElement:c??void 0})),[d.titleId,o,h,c]);return Ov(Fv.xr.CommentThread,a,f,i,m)},bS=e=>{let{annotation:t,onResize:n,style:r,"aria-label":o,commentThread:i,comments:l,containerRef:c}=e;const d=(0,s.v9)((e=>e.ui?.[Fv.xr.CommentThread])),h=mS({onResize:n,commentThread:i,comments:l}),f=(0,s.I0)(),m=(0,s.v9)((e=>e.instance)),g=(0,s.v9)((e=>e.annotations)),v=(0,s.v9)((e=>e.selectedAnnotationIds)),y=g.get(v.first()),b=(0,Aa.en)(i,l),w=y?.id===t.id||gS(i,l),x=(0,u.useCallback)((()=>{w||(f((0,Cr.Dm)()),f((0,ve.Df)((0,a.l4)([t.id]),null)))}),[t.id,f,w]);(0,u.useEffect)((()=>{if(c.current){const e=c.current;return e.addEventListener("click",x,!0),()=>{e.removeEventListener("click",x,!0)}}}),[x,c]);const _=(0,u.useMemo)((()=>({...h,className:p()(h.className,{"PSPDFKit-Comment-Thread-Selected":w}),variant:"sidebar","aria-label":o,state:{isExpanded:w},style:r,onStateChange:(e,n)=>{e.isExpanded!==n.isExpanded&&(w?f((0,ve.fz)()):(f((0,Cr.Dm)()),f((0,ve.Df)((0,a.l4)([t.id]),null))))},onEditorValueChange:e=>{b&&f((0,Cr.gk)((0,a.aV)([b.update("text",(t=>({...t,value:e})))])))}})),[h,t.id,o,f,b,w,r]),S=(0,u.useMemo)((()=>({dialogTitleId:h.titleId,variant:"sidebar"})),[h.titleId]);return Ov(Fv.xr.CommentThread,d,_,m,S)};const wS=()=>{const e=(0,s.v9)((e=>e.annotations)),t=(0,s.v9)((e=>e.selectedAnnotationIds)),n=(0,s.v9)((e=>e.viewportState)),r=(0,s.v9)((e=>e.commentThreads)),o=(0,s.v9)((e=>e.comments)),i=u.useRef(null),a=u.useMemo((()=>{const e=(0,Z.G4)(n);return Math.ceil(e.left)+e.width+n.viewportPadding.x}),[n]),{threadInfo:c,updatePosition:d,totalHeight:h}=function(e){const t=(0,s.v9)((e=>e.annotations)),n=(0,s.v9)((e=>e.commentThreads)),r=(0,s.v9)((e=>e.viewportState)),o=(0,s.v9)((e=>e.selectedAnnotationIds)),i=(0,u.useRef)(0),{currentPageIndex:a,layoutMode:l}=r,c=l===$d.X.SINGLE?2:4,d=u.useMemo((()=>Object.entries(n.map(((e,n)=>{const o=t.get(n);return o&&"number"==typeof o.pageIndex?(0,Aa.nN)(o,r):-1})).toJSON()).sort(((e,t)=>e[1]-t[1]))),[t,n,r]),[p,h]=u.useState(n.map(((e,t)=>({rootId:t,top:0,isVisible:!1}))).toList().toJS()),f=t.get(o.first()),m=(0,u.useCallback)((()=>{let n=0;i.current=0;const r=d.map((r=>{let[o,s]=r;const l=t.get(o);if(!l||"number"!=typeof l.pageIndex)return null;if(l.pageIndex<a-c||l.pageIndex>a+c)return null;(0,Rv.kG)(s);const u=e.current?.querySelector(`.${vS}[data-root-id="${o}"]`)?.clientHeight||0,d=Math.max(s,i.current);return f?.id===o&&(n=d-s),i.current=d+u+10,{rootId:o,top:d,isVisible:!0}})).filter((e=>null!==e)).map((e=>({...e,top:e.top-n})));h(r)}),[t,d,a,c,e,f]);return(0,u.useLayoutEffect)(m,[m,n]),{threadInfo:p,updatePosition:m,totalHeight:i.current}}(i),f=e.get(t.first()),m=f&&r.get(f?.id);return n.commentMode===Yp._.PANE||n.zoomMode===Wi.c.FIT_TO_WIDTH?f&&m?u.createElement(yS,{annotation:f,commentThread:m,comments:o}):null:u.createElement("aside",{style:{transform:`translate(${a}px)`,height:h+2*n.viewportPadding.y},ref:i,className:p()((0,Hv.Kj)({position:"absolute"}),"_1gtjs4n0","PSPDFKit-Comment-Threads")},c?.filter(Boolean).map((e=>((0,l.kG)(e),u.createElement(xS,(0,oe.Z)({key:e.rootId},e,{updatePosition:d}))))))},xS=e=>{let{rootId:t,top:n,isVisible:r,updatePosition:o}=e;const i=(0,s.v9)((e=>e.annotations.get(t))),a=(0,s.v9)((e=>e.comments)),{formatMessage:l}=(0,he.YB)(),c=a.filter((e=>e.rootId===t)).toList(),d=(0,s.v9)((e=>{const t=e.selectedAnnotationIds;return t.size>0?e.annotations.get(t.first()):null})),h=(0,s.v9)((e=>e.commentThreads.get(t))),f=gS(h,a),m=u.useRef(!0),g=c.every((e=>null===e.id)),v=!(!d||d.id!==i?.id),y=v||f,[b,w]=G_((()=>({transform:`translate(${v&&g&&!m?-40:0}px, ${n}px)`,opacity:g?0:1,immediate:!r,config:t_.stiff})));(0,u.useLayoutEffect)((()=>{w.start({transform:`translate(${v?-40:0}px, ${n}px)`,opacity:1,immediate:!r})}),[w,v,n,r]);const x=y?c:c.take(1),_=y?l(_S.commentThread):l(_S.commentDialogClosed,{arg0:x.first()?.creatorName,arg1:x.first()?.text.value}),S=(0,u.useRef)(null);return i&&"number"==typeof i.pageIndex&&h?u.createElement(pS.div,{key:t,className:p()("_1gtjs4n1",vS),"data-root-id":t,style:{visibility:r?void 0:"hidden",zIndex:v?999:0,...b},ref:S},u.createElement(bS,{annotation:i,"aria-label":_,onResize:o,commentThread:h,comments:a,containerRef:S})):null},_S=(0,he.vU)({commentDialogClosed:{id:"commentDialogClosed",defaultMessage:"Open comment thread started by {arg0}: “{arg1}”",description:"With the dialog closed, show the author of the comment and the number of replies."},commentThread:{id:"commentThread",defaultMessage:"Comment Thread",description:"Comment thread."}});var SS,CS,ES,kS,zS,PS,DS,AS,TS=n(56479);function IS(){const e=(0,s.I0)(),{formatMessage:t}=(0,he.YB)();return u.createElement(Ns.Modal,{isOpen:!0},u.createElement(Ns.ModalContent,null,u.createElement(Ns.AlertDialog,{title:t(Sd.ceDownloadRequiredTitle),message:t(Sd.ceDownloadRequiredMessage),primaryActionLabel:t(Sd.ceDownloadRequiredButton),cancelLabel:t(be.Z.cancel),icon:TS.F3,iconColor:"var(--bui-color-support-info-medium)",onPrimaryAction:()=>{(0,s.dC)((()=>{e({type:K.iR6,promptContentEditorDocumentDownload:!1}),e({type:K.fBs,isServerModeDownloadingDocument:!0})})),e(yd.ss)},onCancel:()=>{e({type:K.iR6,promptContentEditorDocumentDownload:!1})},showCloseButton:!1})))}function MS(){const e=(0,s.I0)(),{formatMessage:t}=(0,he.YB)();return u.createElement(Ns.Modal,{isOpen:!0},u.createElement(Ns.ModalContent,null,u.createElement(Ns.AlertDialog,{title:t(Sd.ceCannotSaveChangesTitle),message:t(Sd.ceCannotSaveChangesMessage),primaryActionLabel:t(Sd.ceCannotSaveChangesButton),cancelLabel:t(Sd.ceCannotSaveChangesReviewButton),icon:TS.av,iconColor:"var(--bui-color-support-warning-medium)",onPrimaryAction:()=>{e({type:K.guy,promptContentEditorCannotSaveChanges:!1}),e(yd.u8)},onCancel:()=>{e({type:K.guy,promptContentEditorCannotSaveChanges:!1})},showCloseButton:!0})))}function RS(e){let{intlMessageDescriptor:t}=e;const{formatMessage:n}=(0,he.YB)();return u.createElement(Ns.Modal,{isOpen:!0},u.createElement(Ns.ModalContent,null,u.createElement(Ns.ProgressSpinner,{label:n(t),className:Im().progressSpinner})))}function FS(e){return We.Options.DISABLE_KEYBOARD_SHORTCUTS||e.viewportState.scrollMode===ea.G.DISABLED?e.children:u.createElement(fp,e)}const NS=function(e){switch(e.theme){case Mv.Q.AUTO:return e.frameWindow?.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";case Mv.Q.DARK:return"dark";case Mv.Q.LIGHT:return"light"}};class OS extends u.Component{constructor(){super(...arguments),(0,v.Z)(this,"state",{isResizingSidebar:!1,scrollElement:null,silenceOutdatedDocumentPromptForHandle:null,filteredItems:(0,ec.I4)(this.props.state),isAnnotationTypeReadOnlyMemoized:(0,Ut.Z)(((e,t)=>(0,mn.j$)(e,this.props.state,t))),crop:null,modalClosurePreventionError:null,noLicenseKeyTimeoutFinished:!1,resizeWatchFrameWindow:null,theme:NS(this.props.state)}),(0,v.Z)(this,"_memoizedMapPagesToPageKeys",(0,Ut.Z)((e=>e.map((e=>e.pageKey))))),(0,v.Z)(this,"handleScrollElementChange",(e=>{this.setState({scrollElement:e})})),(0,v.Z)(this,"getScrollElement",(()=>{const{scrollElement:e}=this.state;return(0,l.kG)(e),e})),(0,v.Z)(this,"setGlobalCursor",(e=>{this.getScrollElement().style.cursor=e})),(0,v.Z)(this,"getThumbnailScale",(()=>this.props.state.containerRect.width<=Ae.Fg?.55:1)),(0,v.Z)(this,"isAnnotationReadOnly",(e=>(0,mn.lV)(e,this.props.state)||!(0,lr.CM)(e,this.props.state))),(0,v.Z)(this,"isCommentReadOnly",(e=>(0,mn.Ez)(e,this.props.state)||!(0,lr.kR)(e,this.props.state))),(0,v.Z)(this,"reloadDocument",(()=>{const e=this.props.state.documentHandle;this.props.dispatch((0,om.NV)((()=>this.closeReloadDocumentModal(e)),(e=>{throw e})))})),(0,v.Z)(this,"closeReloadDocumentModal",(e=>{this.setState({silenceOutdatedDocumentPromptForHandle:e})})),(0,v.Z)(this,"_canDeleteAnnotationCP",(e=>(0,lr.Kd)(e,this.props.state))),(0,v.Z)(this,"_canDeleteCommentCP",(e=>(0,lr.Ss)(e,this.props.state))),(0,v.Z)(this,"renderSidebar",((e,t)=>{const n=this.props.state,r=this.props.state.containerRect.width-e<=t,o=n.viewportState.scrollMode===ea.G.DISABLED,i=n.sidebarOptions;if(e<=0)return null;switch(n.sidebarMode){case Bs.f.THUMBNAILS:return u.createElement(vf,{scale:this.getThumbnailScale(),width:e,selectedPageIndex:n.viewportState.currentPageIndex,closeOnPress:r,navigationDisabled:o});case Bs.f.DOCUMENT_OUTLINE:return u.createElement(pp,{outlineElements:n.documentOutlineState.elements,expanded:n.documentOutlineState.expanded,closeOnPress:r,backend:n.backend,documentHandle:n.documentHandle,navigationDisabled:o});case Bs.f.ANNOTATIONS:return u.createElement(sl,{pages:n.pages,annotations:n.annotations,comments:n.comments,commentThreads:n.commentThreads,formFields:n.formFields,isAnnotationReadOnly:this.isAnnotationReadOnly,isCommentReadOnly:this.isCommentReadOnly,selectedAnnotationIds:n.selectedAnnotationIds,sidebarOptions:i[Bs.f.ANNOTATIONS],closeOnPress:r,navigationDisabled:o,canDeleteAnnotationCP:this._canDeleteAnnotationCP,canDeleteCommentCP:this._canDeleteCommentCP,focusedAnnotationIds:n.focusedAnnotationIds});case Bs.f.BOOKMARKS:return u.createElement(tm,{source:n.bookmarkManager},(t=>u.createElement(em,{bookmarks:t,bookmarkManager:n.bookmarkManager,currentPageIndex:n.viewportState.currentPageIndex,pages:n.pages,width:e,closeOnPress:r})));case Bs.f.SIGNATURES:return u.createElement(nv,{annotations:n.annotations,formFields:n.formFields,signaturesInfo:n.digitalSignatures,closeOnPress:r,navigationDisabled:o});case Bs.f.LAYERS:return u.createElement(_v,{sidebarOptions:i[Bs.f.LAYERS],setSidebarOptions:e=>this.setSidebarOptions(Bs.f.LAYERS,e),OCGLayers:n.OCGLayers,visibleLayers:n.visibleOCGLayers});case Bs.f.CUSTOM:return SS||(SS=u.createElement(Wf,null));default:return null}})),(0,v.Z)(this,"_viewportEl",null),(0,v.Z)(this,"_viewportRef",(e=>{e?(this._viewportEl=e,this._viewportEl.addEventListener("copy",this._copyEventHandler)):this._viewportEl&&(this._viewportEl.removeEventListener("copy",this._copyEventHandler),this._viewportEl=null)})),(0,v.Z)(this,"_copyEventHandler",(e=>{if(!this._viewportEl)return;if(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;const{shadowRoot:t,frameWindow:n}=this.props.state,r=t?(0,y.HY)(t).selection:n?.getSelection();e.clipboardData?.setData("text/plain",r?.toString()??""),e.preventDefault()})),(0,v.Z)(this,"renderViewport",(e=>{const{selectedAnnotation:t,state:n,dispatch:r}=this.props,{viewportState:o}=n,i=t&&null!==t.pageIndex&&"function"==typeof n.annotationTooltipCallback&&!n.interactionsDisabled?n.annotationTooltipCallback(t):[];return u.createElement(Lh,{dispatch:this.props.dispatch,currentTextSelection:this.props.state.currentTextSelection,selectedAnnotationIds:this.props.state.selectedAnnotationIds,activeAnnotationNote:this.props.state.activeAnnotationNote,rootElement:this.props.state.frameWindow?.document.documentElement,interactionMode:this.props.state.interactionMode,modalClosurePreventionError:this.state.modalClosurePreventionError,shadowRoot:this.props.state.shadowRoot},u.createElement("div",{style:{position:"relative",height:"100%"}},u.createElement(Tf,{viewportState:o,scrollbarOffset:n.scrollbarOffset},u.createElement(FS,{dispatch:r,viewportState:o,hasSelectedAnnotations:this.props.state.selectedAnnotationIds.size>0,document:n.frameWindow?.document,shadowRoot:n.shadowRoot},u.createElement(re.Provider,null,o.scrollMode===ea.G.PER_SPREAD?u.createElement(Qp,{dispatch:r,viewportState:o,hasSelection:this.props.state.selectedAnnotationIds.size>0||null!==this.props.state.currentTextSelection,scrollElement:this.state.scrollElement,interactionsDisabled:n.interactionsDisabled},this.renderViewportContent(i,e)):this.renderViewportContent(i,e))),this._isFullscreen&&this.renderExpandendNoteAnnotations(i))))})),(0,v.Z)(this,"_handleDocumentEditorCancel",(()=>{this.props.dispatch((0,Pt.sJ)())})),(0,v.Z)(this,"_closeSignatureModal",(()=>{const e={annotations:(0,a.aV)(),reason:X.f.SELECT_END};this.props.state.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,Pt.MV)())})),(0,v.Z)(this,"_createSignatureFromAnnotation",((e,t,n)=>{e instanceof ie.Zc&&this.props.dispatch((0,at.gX)({strokeColor:e.strokeColor}));const{signatureRect:r,signaturePageIndex:o}=this.props.state.signatureState,{attachments:i}=this.props.state;let a;if("imageAttachmentId"in e&&e.imageAttachmentId&&i.has(e.imageAttachmentId)){const t=i.get(e.imageAttachmentId);(0,l.kG)(t),a={hash:e.imageAttachmentId,attachment:t}}this.props.dispatch((0,im.Th)(e,{signatureRect:r,signaturePageIndex:o},a)),t&&this.props.dispatch((0,im.T6)(e,n)),this.props.dispatch((0,Pt.MV)())})),(0,v.Z)(this,"_createSignatureFromFile",(async(e,t,n)=>{const{signatureRect:r,signaturePageIndex:o}=this.props.state.signatureState;this.props.dispatch((0,Pt.MV)());const{hash:i,dimensions:a,attachment:s}=await(0,at.Iv)(e);this.props.dispatch((0,im.l5)({hash:i,dimensions:a,attachment:s,file:e},t,n,{signatureRect:r,signaturePageIndex:o}))})),(0,v.Z)(this,"_createSignature",((e,t,n)=>{e instanceof ie.q6?this._createSignatureFromAnnotation(e,t,n):this._createSignatureFromFile(e,t,n)})),(0,v.Z)(this,"_deleteStoredSignature",((e,t)=>{this.props.dispatch((0,im.Bm)(e,t))})),(0,v.Z)(this,"_closeStampModal",(()=>{const e={annotations:(0,a.aV)(),reason:X.f.SELECT_END};this.props.state.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,Pt.pM)())})),(0,v.Z)(this,"_createAnnotationFromTemplate",(e=>{this.props.dispatch((0,Pt.pM)()),this.props.dispatch((0,at.ip)(e))})),(0,v.Z)(this,"_getAttachments",(()=>this.props.state.attachments)),(0,v.Z)(this,"_fetchDigitalSignaturesInfo",(()=>{this.props.state.backend?.getSignaturesInfo().then((e=>{this.props.dispatch((0,Nf.Y)(e))})).catch(l.vU)})),(0,v.Z)(this,"_setA11yStatusMessage",(e=>{this.props.dispatch((0,Pt.iJ)("")),window.setTimeout((()=>{this.props.dispatch((0,Pt.iJ)(e))}),200)})),(0,v.Z)(this,"isDocumentComparisonAvailable",(()=>(0,vm.RG)(this.props.state))),(0,v.Z)(this,"handleCrop",(e=>{(0,l.kG)(this.state.crop),this.props.dispatch((0,om.b_)([{type:"cropPages",cropBox:this.state.crop.area,pageIndexes:e?void 0:[this.state.crop.pageIndex]}],(()=>{}),(()=>{}))),this.props.dispatch((0,Pt.Cn)())})),(0,v.Z)(this,"setCropDetails",((e,t)=>{this.setState({crop:{area:e,pageIndex:t}})})),(0,v.Z)(this,"onCropCancel",(()=>{const{dispatch:e}=this.props;e((0,Pt.Cn)())})),(0,v.Z)(this,"onSelectButtonImportIconImage",(e=>{const{dispatch:t,state:n}=this.props,{backend:r}=n;if((0,l.kG)(r),!e)return void this.props.dispatch((0,En._4)(null));const o=new FileReader;o.onload=async()=>{const n=this.props.state.buttonToImportIconFor;await r.updateButtonIcon(n,o.result,e.type),t((0,En._4)(null)),r.clearPageAPStreams(n?.pageIndex,(0,a.l4)([n.id])),t((0,at.Zr)((0,a.aV)([n.set("buttonIconUpdatedAt",Date.now())])))},o.readAsArrayBuffer(e)})),(0,v.Z)(this,"getToolbarComponent",(()=>{const{selectedAnnotation:e,activeAnnotationNote:t,state:n,currentTextSelection:r}=this.props,{viewportState:o,selectedAnnotationIds:i}=n,a=n.toolbarPlacement===Hs.p.TOP?"top":"bottom",s=n.selectedAnnotationIds.every((e=>{const t=n.annotations.get(e);return!!t&&("isMeasurement"in t&&t.isMeasurement())}));if(n.selectedAnnotationIds.size>1&&!s)return u.createElement(Hg,{selectedAnnotationIds:i});if(e&&!(0,Me.fF)(n.interactionMode)||t){const r=e?n.pages.get(e.pageIndex):null,a=r&&r.pageSize,s=e&&n.annotationPresetIds.get(e.id),l=!(!e||!(0,lr.CM)(e,n)),c=(0,mn.aE)(this.props.state),d=!(!e||!(0,lr.Kd)(e,n)),p=i.map((e=>n.annotations.get(e)));return u.createElement(lu,{dispatch:this.props.dispatch,annotation:e,selectedAnnotationPageSize:a,isAnnotationReadOnly:this.isAnnotationReadOnly,variantAnnotationPresetID:s,selectedAnnotationMode:this.props.state.selectedAnnotationMode,zoomLevel:o.zoomLevel,position:n.toolbarPlacement===Hs.p.TOP?"top":"bottom",eventEmitter:n.eventEmitter,frameWindow:n.frameWindow,viewportWidth:n.containerRect.width,activeAnnotationNote:t,showAnnotationNotes:this.props.state.showAnnotationNotes,canEditAnnotationCP:l,canDeleteSelectedAnnotationCP:d,areOnlyElectronicSignaturesEnabled:c,lastToolbarActionUsedKeyboard:n.lastToolbarActionUsedKeyboard,interactionMode:n.interactionMode,keepSelectedTool:this.props.state.keepSelectedTool,annotationToolbarColorPresets:n.annotationToolbarColorPresets,annotationToolbarItems:n.annotationToolbarItems,richTextEditorRef:n.richTextEditorRef,customFontsReadableNames:n.customFontsReadableNames,isCalibratingScale:n.isCalibratingScale,selectedAnnotations:p})}return n.interactionMode===j.A.INK_ERASER?u.createElement(pu,{dispatch:this.props.dispatch,inkEraserCursorWidth:n.annotationPresets.get("ink")?.inkEraserWidth??We.Options.DEFAULT_INK_ERASER_CURSOR_WIDTH,position:a,viewportWidth:n.containerRect.width}):n.interactionMode===j.A.DOCUMENT_CROP?u.createElement(lm,{onCropApply:this.handleCrop,onCropCancel:this.onCropCancel,position:a,isCropAreaSelected:!!this.state.crop,frameWindow:n.frameWindow}):(0,Me.fF)(n.interactionMode)?u.createElement(jm,{position:a,interactionMode:n.interactionMode,dispatch:this.props.dispatch,frameWindow:n.frameWindow,modalClosurePreventionError:this.state.modalClosurePreventionError,selectedAnnotation:!!n.selectedAnnotationIds.size}):n.interactionMode===j.A.CONTENT_EDITOR&&n.contentEditorSession.contentEditor?u.createElement(pm,{position:a,viewportWidth:n.containerRect.width,frameWindow:n.frameWindow,creationMode:n.contentEditorSession.mode===Ba.wR.Create}):n.interactionMode===j.A.MEASUREMENT?u.createElement($g,{position:a,interactionMode:n.interactionMode,viewportWidth:n.containerRect.width,frameWindow:n.frameWindow,disablePointSnapping:n.viewportState.disablePointSnapping,backend:n.backend}):u.createElement(zp,{dispatch:this.props.dispatch,isAnnotationTypeReadOnly:this.state.isAnnotationTypeReadOnlyMemoized,position:n.toolbarPlacement===Hs.p.TOP?"top":"bottom",showComments:(0,Aa.oK)(n),showRedactions:this.props.state.features.includes(Q.q.REDACTIONS),showDocumentAssistant:this.props.state.features.includes(Q.q.DOCUMENT_ASSISTANT)&&!!this.props.state.documentAssistant.configuration,inlineTextSelectionToolbarItems:n.inlineTextSelectionToolbarItems,currentTextSelection:r})})),(0,v.Z)(this,"handleSidebarResize",(e=>{let{sidebarRect:t,isDragging:n,size:r}=e;const o=(0,Fm.p)(this.props.state,t,r);this.props.dispatch((0,Ls.dx)(o,!1)),this.setState({isResizingSidebar:n})})),(0,v.Z)(this,"handleResizeHelperResize",((e,t)=>{const n=this.props.state,r=e.width,o=n.shadowRoot?e.left:0,i=n.containerRect.width===n.sidebarWidth,a=!i&&r-n.sidebarWidth<200;let s;n.sidebarMode&&!a?i?(s=e.set("width",r).set("left",o),this.props.dispatch((0,Ls.Pt)(r))):s=e.set("width",r-n.sidebarWidth).set("left",(n.sidebarPlacement===Ks.d.START?n.sidebarWidth:0)+o):(s=e,n.sidebarMode&&a&&this.props.dispatch((0,Pt.mu)())),this.props.dispatch((0,Ls.dx)(s,t))})),(0,v.Z)(this,"_updateResizeWatchFrameWindow",(e=>{this.setState({resizeWatchFrameWindow:e})}))}setSidebarOptions(e,t){const{state:n}=this.props;this.props.dispatch((0,Pt.vI)({...n.sidebarOptions,[e]:t}))}renderViewportContent(e,t){const{selectedAnnotation:n,selectedFormField:r,state:o,dispatch:i,currentTextSelection:s}=this.props,{viewportState:l,interactionsDisabled:c,interactionMode:d,formFields:p,frameWindow:h,eventEmitter:f,locale:m,scrollElement:g,measurementToolState:v,contentEditorSession:{fontMismatchTooltip:y,textBlockInteractionState:b},selectedAnnotationIds:w}=o;let x=null;if(o.interactionMode!==j.A.TEXT_HIGHLIGHTER&&!o.interactionsDisabled&&s&&!t(ie.On)&&o.inlineTextMarkupToolbar){const e=(0,Aa.oK)(this.props.state),n=this.props.state.features.includes(Q.q.REDACTIONS),r=this.props.state.features.includes(Q.q.DOCUMENT_ASSISTANT)&&!!this.props.state.documentAssistant.configuration,a=this.props.state.inlineTextSelectionToolbarItems?this.props.state.inlineTextSelectionToolbarItems({defaultItems:Wg({showComments:e,showRedactions:n,showDocumentAssistant:r}),hasDesktopLayout:!1},s):Wg({showComments:e,showRedactions:n,showDocumentAssistant:r}),c=(0,xo.U2)(o,s.textRange);x=a.length>0&&c?u.createElement(jp.Z,{referenceRect:c,viewportState:l,className:"PSPDFKit-Popover-Text-Markup-Toolbar"},u.createElement(kp,{dispatch:i,isAnnotationTypeReadOnly:t,showComments:e,showRedactions:n,showDocumentAssistant:r,inlineTextSelectionToolbarItems:this.props.state.inlineTextSelectionToolbarItems,currentTextSelection:s})):null}let _=null;const S=o.annotations.filter((e=>e.readOnly||e.locked||e.lockedContents)),C=o.hoverAnnotationIds.find((e=>S.has(e))),E=o.focusedAnnotationIds.find((e=>S.has(e))),z=C?S.get(C):void 0,P=E?S.get(E):void 0;let D=(0,a.aV)();const A=!!z&&(z instanceof k.Qi||(z instanceof ie.Jn||z instanceof ie.FV)&&z.isCommentThreadRoot);let T,I;if(z&&!A&&(D=D.push(z)),P&&(D=D.push(P)),D.size>0&&D.map((e=>{const t=(0,O.SY)(e,l.zoomLevel,l.pagesRotation).apply((0,Z.cr)(l,e.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel)));return _=u.createElement(Gg,{referenceRect:t,viewportState:l,isReadOnly:e.readOnly,isLocked:e.locked,hasLockedContents:e.lockedContents})})),T=o.viewportState.documentComparisonMode&&o.backend?u.createElement(ym.ZP,{renderPageCallback:o.renderPageCallback,backend:o.backend,allowedTileScales:o.allowedTileScales,viewportState:o.viewportState,interactionMode:o.interactionMode,scrollElement:o.scrollElement,dispatch:i,configuration:o.viewportState.documentComparisonMode,viewportWidth:o.containerRect.width,renderPagePreview:o.renderPagePreview}):l.scrollMode===ea.G.PER_SPREAD||l.scrollMode===ea.G.DISABLED?u.createElement(Zp,{onCropChange:this.setCropDetails,dispatch:i,spreadIndex:(0,Zi.dF)(l,l.currentPageIndex),viewportState:l,interactionMode:o.interactionMode,cropInfo:this.state.crop,pageKeys:this._memoizedMapPagesToPageKeys(o.pages),setGlobalCursor:this.setGlobalCursor}):u.createElement(Ud,{onCropChange:this.setCropDetails,dispatch:i,viewportState:l,cropInfo:this.state.crop,pageKeys:this._memoizedMapPagesToPageKeys(o.pages),setGlobalCursor:this.setGlobalCursor}),v&&o.backend&&(0,R.hj)(v.drawnAnnotationPageIndex)){const e={inViewport:!0,page:o.pages.get(v.drawnAnnotationPageIndex),backend:o.backend,shouldPrerender:!0,zoomLevel:l.zoomLevel,rotation:l.pagesRotation,renderPageCallback:o.renderPageCallback,allowedTileScales:"all",documentHandle:o.documentHandle,viewportRect:l.viewportRect,forceDetailView:!1,renderPagePreview:o.renderPagePreview,isPageSizeReal:!!o.arePageSizesLoaded,inContentEditorMode:!1};let t=v.magnifierCursorPosition;const n=(0,Zi.Ad)(l),r=(0,Zi.dF)(l,v.drawnAnnotationPageIndex),i=(0,Zi.Xk)(l,r);let a=(n-i.width)/2*l.zoomLevel;o.sidebarMode&&(a+=o.sidebarWidth);let s=0;if((0,Zi.nw)(l)===$d.X.DOUBLE){const e=(0,Zi.hK)(l,v.drawnAnnotationPageIndex);if(i.height!==e.height&&(s=(i.height-e.height)/2*l.zoomLevel),v.drawnAnnotationPageIndex%2!=0){a+=(0,Zi.hK)(l,v.drawnAnnotationPageIndex-1).width*l.zoomLevel}}t=v.magnifierCursorPosition?.merge({x:v.magnifierCursorPosition.x-a,y:v.magnifierCursorPosition.y-s}),I=u.createElement(jg.B,{pageRendererComponentProps:e,viewportState:l,scrollElement:g,className:"PSPDFKit-Measurement-Magnifier",label:v.magnifierLabel,pageIndex:v.drawnAnnotationPageIndex,cursorPosition:t,isMobile:o.containerRect.width<=Ae.Fg})}const M=n?o.pages.get(n.pageIndex):null,F=M&&M.pageSize;return u.createElement(wh,{dispatch:i,viewportState:l,scrollbarOffset:o.scrollbarOffset,onScrollElementChange:this.handleScrollElementChange,scrollDisabled:o.scrollDisabled},u.createElement(Up,{enabled:o.interactionMode===j.A.PAN&&!fe.Ni&&!o.interactionsDisabled&&!!o.scrollElement},u.createElement("div",{className:Im().viewportContent,ref:this._viewportRef,"data-testid":"viewport"},T,(0,Aa.Y7)(o)&&l.commentMode&&(CS||(CS=u.createElement(wS,null)))),x,_,n&&!(n instanceof k.Qi)&&e.length>0&&!this.props.noteAnnotationToModify&&u.createElement(jp.Z,{referenceRect:(0,ro.q)((0,O.Wj)(n,l.pagesRotation,l.viewportRect.getSize(),l.zoomLevel).apply((0,Z.cr)(l,n.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel))),l.viewportRect.getSize()),viewportState:l,className:"PSPDFKit-Popover-Annotation-Tooltip"},u.createElement(Pf,{items:e})),n&&null!==n.pageIndex&&n instanceof k.UX&&n.isMeasurement()&&o.isCalibratingScale&&u.createElement(Os.ZP,{annotation:n,isHidden:c,referenceRect:(0,ro.q)((0,O.Wj)(n,l.pagesRotation,l.viewportRect.getSize(),l.zoomLevel).apply((0,Z.cr)(l,n.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel))),l.viewportRect.getSize()),viewportState:l,eventEmitter:f,modalClosurePreventionError:this.state.modalClosurePreventionError,setModalClosurePreventionError:e=>this.setState({modalClosurePreventionError:e}),frameWindow:h,locale:m}),n&&r&&1===w.size&&(0,Me.fF)(d)&&n instanceof k.x_&&u.createElement(bg,{modalClosurePreventionError:this.state.modalClosurePreventionError,setModalClosurePreventionError:e=>this.setState({modalClosurePreventionError:e}),annotation:n,formField:r,getExistingFormFieldByName:e=>p.get(e),isHidden:c,referenceRect:(0,ro.q)((0,O.Wj)(n,l.pagesRotation,l.viewportRect.getSize(),l.zoomLevel).apply((0,Z.cr)(l,n.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel))),l.viewportRect.getSize()),viewportState:l,dispatch:i,frameWindow:h,eventEmitter:f,locale:m,isUnsavedAnnotation:n.id===this.props.state.formDesignerUnsavedWidgetAnnotation,pageSize:F,customFontsReadableNames:this.props.state.customFontsReadableNames||(0,a.l4)()}),this.renderLinkAnnotationPopover(),I,this.renderAnimatedExpandendNoteAnnotations(e),y?.fontFace&&b?.state===Ba.FP.Active&&y?.rect?u.createElement(Kg,{referenceRect:y.rect,fontFace:y.fontFace,viewportState:l,activeTextBlock:b}):null))}getSnapshotBeforeUpdate(e){const t=e.selectedNoteAnnotations&&this.props.selectedNoteAnnotations&&0!==e.selectedNoteAnnotations.size&&e.selectedNoteAnnotations.size===this.props.selectedNoteAnnotations.size;return this._animateNoteAnnotation=!window["PSPDFKit-disable-animations"]&&!t,null}renderAnimatedExpandendNoteAnnotations(e){const t=this._isFullscreen?null:this.renderExpandendNoteAnnotations(e);return this._animateNoteAnnotation&&null!==t?u.createElement(Fs.Z,null,t.map((e=>u.createElement(Rs.Z,{key:`NoteAnnotationPopopver-${e.props.noteAnnotation.id}`,timeout:{enter:window["PSPDFKit-disable-animations"]?0:100,exit:window["PSPDFKit-disable-animations"]?0:150},classNames:{enter:Rm().fadeEnter,enterActive:Rm().fadeEnterActive,exit:Rm().fadeExit,exitActive:Rm().fadeExitActive}},e)))):u.createElement("div",null,t)}renderExpandendNoteAnnotations(e){if(!this.props.state.showAnnotations||this.props.state.interactionsDisabled&&!this._isFullscreen||this.props.state.selectedAnnotationIds.size>1)return(0,a.l4)();const t=[];if(this.props.activeAnnotationNote&&(0,O.YV)(this.props.activeAnnotationNote?.parentAnnotation)){const e=this.props.activeAnnotationNote;t.push(u.createElement(Lp,{key:`NoteAnnotationPopopver-${e.id}`,noteAnnotation:e,noteAnnotationToModify:e,viewportState:this.props.state.viewportState,dispatch:this.props.dispatch,isFullscreen:this._isFullscreen,collapseSelectedNoteContent:!1,annotationToolbarHeight:this.props.state.annotationToolbarHeight,isAnnotationReadOnly:this.isAnnotationReadOnly,autoSelect:this.props.state.selectedTextOnEdit,eventEmitter:this.props.state.eventEmitter,keepSelectedTool:this.props.state.keepSelectedTool}))}if(this.props.hoverAnnotationNote&&(0,O.YV)(this.props.hoverAnnotationNote?.parentAnnotation)&&(!this.props.activeAnnotationNote||this.props.hoverAnnotationNote?.parentAnnotation?.id!==this.props.activeAnnotationNote?.parentAnnotation?.id)){const e=this.props.hoverAnnotationNote;t.push(u.createElement(Lp,{key:`NoteAnnotationPopopver-${e.id}`,noteAnnotation:e,noteAnnotationToModify:null,viewportState:this.props.state.viewportState,dispatch:this.props.dispatch,isFullscreen:this._isFullscreen,isHover:!0,collapseSelectedNoteContent:!1,annotationToolbarHeight:this.props.state.annotationToolbarHeight,isAnnotationReadOnly:this.isAnnotationReadOnly,autoSelect:this.props.state.selectedTextOnEdit,eventEmitter:this.props.state.eventEmitter,keepSelectedTool:this.props.state.keepSelectedTool}))}return this.props.selectedNoteAnnotations&&0!==this.props.selectedNoteAnnotations.size?this.props.selectedNoteAnnotations.filter((e=>null!==e.pageIndex)).map((t=>{const n=!!this.props.selectedAnnotation&&t.id===this.props.selectedAnnotation.id;return u.createElement(Lp,{key:`NoteAnnotationPopopver-${t.id}`,noteAnnotation:t,noteAnnotationToModify:this.props.noteAnnotationToModify,viewportState:this.props.state.viewportState,dispatch:this.props.dispatch,isFullscreen:this._isFullscreen,isHover:!n,annotationToolbarHeight:this.props.state.annotationToolbarHeight,isAnnotationReadOnly:this.isAnnotationReadOnly,tools:n?e:[],collapseSelectedNoteContent:this.props.state.collapseSelectedNoteContent,autoSelect:this.props.state.selectedTextOnEdit,eventEmitter:this.props.state.eventEmitter,keepSelectedTool:this.props.state.keepSelectedTool})})).concat(t):(0,a.l4)(t)}renderLinkAnnotationPopover(){const{selectedAnnotation:e,state:t,dispatch:n,hoveredLinkAnnotation:r}=this.props,{viewportState:o,frameWindow:i,locale:a,pages:s,linkAnnotationMode:l}=t,c=e&&e instanceof ie.R1&&!l,d=!!r?.action&&!c;if(!d&&!c)return null;const p=d?r:e;return u.createElement(Ng,{annotation:p,viewportState:o,dispatch:n,frameWindow:i,locale:a,pages:s,isHover:d})}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._noLicenseTimeout&&(clearTimeout(this._noLicenseTimeout),this._noLicenseTimeout=null),this._isMounted=!1}componentDidUpdate(e){this.props.state.interactionMode!==j.A.DOCUMENT_CROP&&e.state.interactionMode===j.A.DOCUMENT_CROP&&this.setState({crop:null}),(0,Me.fF)(e.state.interactionMode)&&!(0,Me.fF)(this.props.state.interactionMode)&&this.props.dispatch((0,Pt.LE)(!1)),this.props.state.interactionMode!==j.A.INK_SIGNATURE&&this.props.state.interactionMode!==j.A.SIGNATURE||this.props.state.signatureState.storedSignatures||this.props.dispatch((0,im.de)());(this.props.state.features.includes(Q.q.DIGITAL_SIGNATURES)&&!this.props.state.digitalSignatures&&this.props.state.connectionState.name===Ii.F.CONNECTED||(e.state.documentHandle!==this.props.state.documentHandle||!this.props.state.digitalSignatures)&&this.props.state.connectionState.name===Ii.F.CONNECTED&&this.props.state.features.includes(Q.q.DIGITAL_SIGNATURES))&&this._fetchDigitalSignaturesInfo(),e.state.features.equals(this.props.state.features)&&e.state.backend===this.props.state.backend&&e.state.backendPermissions.equals(this.props.state.backendPermissions)&&e.state.documentPermissions.equals(this.props.state.documentPermissions)&&e.state.readOnlyEnabled===this.props.state.readOnlyEnabled&&e.state.editableAnnotationTypes.equals(this.props.state.editableAnnotationTypes)&&e.state.toolbarItems.equals(this.props.state.toolbarItems)&&e.state.showComments===this.props.state.showComments||this.setState({isAnnotationTypeReadOnlyMemoized:(0,Ut.Z)((e=>(0,mn.j$)(e,this.props.state))),filteredItems:(0,ec.I4)(this.props.state)}),this.props.selectedAnnotation&&this.props.dispatch((0,ve.IP)(this.props.selectedAnnotation.id)),e.state.evaluation!==this.props.state.evaluation&&this.props.state.noLicenseKey&&"STANDALONE"===this.props.state.backend?.type&&this.props.state.evaluation&&(this._noLicenseTimeout=setTimeout((()=>{this._isMounted&&this.setState({noLicenseKeyTimeoutFinished:!0})}),60*this.props.state.evaluation?.timeInMinutes*1e3))}render(){const{selectedAnnotation:e,activeAnnotationNote:t,state:n}=this.props,{viewportState:r,isDocumentHandleOutdated:o}=n;this._isFullscreen=r.viewportRect.width<=Ae.D4;const i=n.containerRect.width<=Ae.Fg?n.containerRect.width:200,a=e instanceof k.Qi&&this.isAnnotationReadOnly(e)&&!this._isFullscreen,s=n.currentItemPreset&&n.annotationPresets.get(n.currentItemPreset)||{},{SIGNATURE_SAVE_MODE:l,DISABLE_KEYBOARD_SHORTCUTS:c}=We.Options,d=n.sidebarMode&&u.createElement($h,{initialSize:n.sidebarWidth,minWidth:i,maxWidth:n.containerRect.width,draggerSize:n.containerRect.width<=Ae.Fg?0:6,onResize:this.handleSidebarResize,isRTL:n.sidebarPlacement===Ks.d.END,dispatch:this.props.dispatch,shadowRoot:n.shadowRoot},this.renderSidebar),h=(e||t)&&!a||!n.interactionsDisabled&&(n.currentTextSelection||n.interactionMode===j.A.TEXT_HIGHLIGHTER)&&!n.inlineTextMarkupToolbar||n.interactionMode===j.A.INK_ERASER||n.interactionMode===j.A.DOCUMENT_CROP||n.interactionMode===j.A.CONTENT_EDITOR||n.interactionMode===j.A.MEASUREMENT||(0,Me.fF)(n.interactionMode),f=!(!e||!(0,lr.Kd)(e,n)),m=r.documentComparisonMode&&u.createElement(km,{position:n.toolbarPlacement===Hs.p.TOP?"top":"bottom"}),g=!m&&n.enableAnnotationToolbar&&!(e&&this.props.state.commentThreads.has(e.id))&&u.createElement(Fs.Z,null,h?u.createElement(Rs.Z,{timeout:{exit:window["PSPDFKit-disable-animations"]?0:120,enter:window["PSPDFKit-disable-animations"]?0:100},classNames:n.toolbarPlacement===Hs.p.TOP?{enter:Rm().slideDownEnter,enterActive:Rm().slideDownEnterActive,exit:Rm().slideDownExit,exitActive:Rm().slideDownExitActive}:{enter:Rm().slideUpEnter,enterActive:Rm().slideUpEnterActive,exit:Rm().slideUpExit,exitActive:Rm().slideUpExitActive}},this.getToolbarComponent()):null),v=n.digitalSignatures&&n.showSignatureValidationStatus!==Of.W.NEVER?u.createElement(Rs.Z,{in:!!h,timeout:{exit:window["PSPDFKit-disable-animations"]?0:120,enter:window["PSPDFKit-disable-animations"]?0:100},classNames:n.toolbarPlacement===Hs.p.TOP?{enter:Rm().moveDownSignatureBarEnter,enterActive:Rm().moveDownSignatureBarEnterActive,exit:Rm().moveDownExit,exitActive:Rm().moveDownSignatureBarExitActive}:{enter:Rm().moveUpSignatureBarEnter,enterActive:Rm().moveUpSignatureBarEnterActive,exit:Rm().moveUpSignatureBarExit,exitActive:Rm().moveUpSignatureBarExitActive}},u.createElement(Cf,{digitalSignatures:n.digitalSignatures,showSignatureValidationStatus:n.showSignatureValidationStatus})):null,y=n.signatureFeatureAvailability,b=(0,mn.bp)(n),w="SERVER"===n.backend?.type,x=u.createElement(u.Fragment,null,n.showToolbar&&u.createElement(ra.ZP,{sidebarMode:n.sidebarMode,currentPageIndex:r.currentPageIndex,debugMode:n.debugMode,dispatch:this.props.dispatch,eventEmitter:this.props.state.eventEmitter,frameWindow:n.frameWindow,resizeWatchFrameWindow:this.state.resizeWatchFrameWindow,interactionMode:n.interactionMode,items:this.state.filteredItems,layoutMode:r.layoutMode,maxZoomReached:r.zoomLevel>=(0,Gi.Sm)(r),minZoomReached:r.zoomLevel<=(0,Gi.Yo)(r),printingEnabled:(0,mn.VT)(n),exportEnabled:(0,mn.RZ)(n),isDocumentReadOnly:b,isAnnotationTypeReadOnly:this.state.isAnnotationTypeReadOnlyMemoized,isDocumentComparisonAvailable:this.isDocumentComparisonAvailable(),signatureFeatureAvailability:y,scrollMode:r.scrollMode,pages:n.pages,totalPages:n.totalPages,zoomMode:r.zoomMode,currentItemPreset:n.currentItemPreset,toolbarPlacement:n.toolbarPlacement,documentEditorEnabled:(0,mn.Xr)(n),canUndo:n.isHistoryEnabled&&n.undoActions.size>0,canRedo:n.isHistoryEnabled&&n.redoActions.size>0,currentDocumentComparisonMode:r.documentComparisonMode,isContentEditorSessionDirty:n.contentEditorSession.dirty,isMultiSelectionEnabled:n.isMultiSelectionEnabled,shouldHideOCGsSidebar:w,shadowRoot:n.shadowRoot,showDocumentAssistant:n.documentAssistant.show}),u.createElement(wf,{position:n.toolbarPlacement===Hs.p.TOP?"top":"bottom"},n.toolbarPlacement===Hs.p.TOP?u.createElement(u.Fragment,null,m||g,v):u.createElement(u.Fragment,null,v,m||g)));let _;return(0,fs.Kr)(n.backend)&&(n.promptContentEditorDocumentDownload||!n.isServerModeDownloadingDocument&&!n.isServerModeDownloadingWASM?n.contentEditorSession.saving&&(_=Sd.ceSaving):_=Sd.ceDownloadingDocument),u.createElement(js.Provider,{value:this.getScrollElement},u.createElement(LS,null,u.createElement(Ns.ThemeProvider,{theme:this.state.theme},u.createElement(Ns.I18nProvider,{locale:n.locale,messages:{...ms.ZP.messages}},u.createElement(Ns.PortalContainerProvider,{portalContainer:n.shadowRoot?.querySelector(`.${Ae.fV}`)||n.frameWindow?.document.body||void 0},u.createElement("div",{className:`PSPDFKit-Container PSPDFKit-browser-engine-${fe.SR} PSPDFKit-browser-system-${fe.By} ${fe.Ni?"PSPDFKit-mobile-os":""} PSPDFKit-${(0,Zi.s)(n.containerRect)} ${Im().root} ${n.interactionsDisabled?"interactions-disabled":""} ${null!=n.backend?"PSPDFKit-backend-"+("STANDALONE"===n.backend.type?"standalone":"server"):""} ${n.disablePullToRefresh?"overscrollDisabled":""}`},n.isDebugConsoleVisible&&u.createElement(Qd,{dispatch:this.props.dispatch}),(n.interactionMode===j.A.STAMP_PICKER||n.interactionMode===j.A.STAMP_CUSTOM)&&u.createElement(qv,{onCreate:this._createAnnotationFromTemplate,backend:n.backend,onCancel:this._closeStampModal,stampAnnotationTemplates:n.stampAnnotationTemplates,dispatch:this.props.dispatch,mode:n.interactionMode,attachments:n.attachments,viewportWidth:n.containerRect.width}),(n.interactionMode===j.A.INK_SIGNATURE||n.interactionMode===j.A.SIGNATURE)&&n.signatureState.storedSignatures&&y===Vn.H.LEGACY_SIGNATURES&&u.createElement(Gh,{onEscape:this._closeSignatureModal},u.createElement(pf,{onCancel:this._closeSignatureModal,onCreate:this._createSignatureFromAnnotation,onDelete:this._deleteStoredSignature,storedSignatures:n.signatureState.storedSignatures,preset:s,canStoreSignature:(null==n.signatureState.formFieldName||!n.signatureState.formFieldsNotSavingSignatures.includes(n.signatureState.formFieldName))&&l!==Vs.f.NEVER,backend:n.backend,attachments:n.attachments,viewportWidth:n.containerRect.width})),!(n.interactionMode!==j.A.INK_SIGNATURE&&n.interactionMode!==j.A.SIGNATURE||!n.signatureState.storedSignatures||y!==Vn.H.ELECTRONIC_SIGNATURES)&&u.createElement(Kv,{preset:s,colorPresets:this.props.state.electronicSignatureColorPresets,frameWindow:n.frameWindow,onCreate:this._createSignature,onDelete:this._deleteStoredSignature,onCancel:this._closeSignatureModal,storedSignatures:n.signatureState.storedSignatures,hasSignaturesCreationListener:Object.keys(n.eventEmitter.listeners).includes("storedSignatures.create")||Object.keys(n.eventEmitter.listeners).includes("inkSignatures.create"),hasSignaturesDeletionListener:Object.keys(n.eventEmitter.listeners).includes("storedSignatures.delete")||Object.keys(n.eventEmitter.listeners).includes("inkSignatures.delete"),viewportWidth:n.containerRect.width,creationModes:n.electronicSignatureCreationModes,signingFonts:n.signingFonts}),n.interactionMode===j.A.MEASUREMENT_SETTINGS&&u.createElement(Ug.Z,{frameWindow:n.frameWindow}),n.interactionMode===j.A.DOCUMENT_EDITOR&&u.createElement(Gf,{onCancel:this._handleDocumentEditorCancel,scale:this.getThumbnailScale(),usesShadowDOM:!!n.shadowRoot}),n.isPrinting&&u.createElement(oh,{progress:n.printLoadingIndicatorProgress,totalPages:n.totalPages}),n.features.includes(Q.q.DOCUMENT_ASSISTANT)&&!!n.documentAssistant.configuration&&u.createElement(Tb,{isOpen:n.documentAssistant.show,configuration:n.documentAssistant.configuration,toolbarsHeight:n.annotationToolbarHeight+ra.k3,documentHandle:n.documentHandle,documentId:n.documentId}),n.isSigning&&(ES||(ES=u.createElement(ch,null))),n.isApplyingRedactions&&(kS||(kS=u.createElement(fh,null))),u.createElement(Du,{connectionState:n.connectionState,resolvePassword:n.resolvePassword,isUnlockedViaModal:n.isUnlockedViaModal},n.toolbarPlacement===Hs.p.TOP&&x,n.interactionMode===j.A.SEARCH&&(zS||(zS=u.createElement(Th,null))),u.createElement("div",{className:Im().main},!d&&u.createElement(Zc.Z,{onResize:this.handleResizeHelperResize,onRefUpdate:this._updateResizeWatchFrameWindow}),n.sidebarPlacement===Ks.d.START&&d,u.createElement("div",{className:p()(Im().mainContent,this.state.isResizingSidebar&&Im().mainContentResizing)},this.renderViewport(this.state.isAnnotationTypeReadOnlyMemoized)),n.sidebarPlacement===Ks.d.END&&d,d&&u.createElement(Zc.Z,{onResize:this.handleResizeHelperResize,onRefUpdate:this._updateResizeWatchFrameWindow})),n.toolbarPlacement===Hs.p.BOTTOM&&x,n.annotationsIdsToDelete&&u.createElement(ep,{dispatch:this.props.dispatch,annotations:n.annotationsIdsToDelete.map((e=>n.annotations.get(e))).filter(Boolean),eventEmitter:n.eventEmitter,setA11yStatusMessage:this._setA11yStatusMessage}),n.showExitContentEditorDialog&&(PS||(PS=u.createElement(Cg,null))),!c&&u.createElement(yp,{dispatch:this.props.dispatch,printingEnabled:(0,mn.VT)(n),isPrinting:n.isPrinting,isTextCopyingAllowed:(0,mn.HI)(n),selectedAnnotationsIds:this.props.editableSelectedAnnotationIds,commentThreads:this.props.state.commentThreads,getScrollElement:this.getScrollElement,canDeleteSelectedAnnotationCP:f,canUndo:n.isHistoryEnabled&&n.undoActions.size>0,canRedo:n.isHistoryEnabled&&n.redoActions.size>0,selectedAnnotation:this.props.selectedAnnotation,currentPageIndex:r.currentPageIndex,eventEmitter:n.eventEmitter,backend:n.backend,formFields:n.formFields,areClipboardActionsEnabled:n.areClipboardActionsEnabled,modalClosurePreventionError:this.state.modalClosurePreventionError,setModalClosurePreventionError:e=>{this.setState({modalClosurePreventionError:e})},annotations:n.annotations,selectedGroupId:n.selectedGroupId,annotationsGroups:n.annotationsGroups,isMultiSelectionEnabled:n.isMultiSelectionEnabled,contentEditorSession:n.contentEditorSession,interactionMode:n.interactionMode,shadowRoot:n.shadowRoot}),o&&this.state.silenceOutdatedDocumentPromptForHandle!==n.documentHandle&&u.createElement(Rf,{onConfirm:this.reloadDocument,onCancel:()=>this.closeReloadDocumentModal(n.documentHandle)})),u.createElement(np,{locale:n.locale}),u.createElement(jS,{message:n.a11yStatusMessage}),this.state.noLicenseKeyTimeoutFinished&&this.props.state.noLicenseKey&&u.createElement(Jg,{evaluationMessage:this.props.state.evaluation?.message,evaluationUrl:this.props.state.evaluation?.url}),n.buttonToImportIconFor&&u.createElement(ov,{onSelectImage:this.onSelectButtonImportIconImage}),(0,fs.Kr)(n.backend)&&n.promptContentEditorDocumentDownload&&(DS||(DS=u.createElement(IS,null))),(0,fs.Kr)(n.backend)&&n.promptContentEditorCannotSaveChanges&&(AS||(AS=u.createElement(MS,null))),!!_&&u.createElement(RS,{intlMessageDescriptor:_})))))))}}const jS=u.memo((e=>u.createElement(o.TX,{announce:"polite",role:"status",tag:"div"},u.createElement("div",null,e.message)))),LS=u.memo((e=>{let{children:t}=e;const n=(0,Ns.useDevice)();return u.cloneElement(t,{className:"mobile"!==n?"non-mobile":void 0})})),BS=(0,s.$j)((e=>{const{annotations:t,formFields:n,hoverAnnotationIds:r,hoverAnnotationNote:o,activeAnnotationNote:i,selectedAnnotationIds:a}=e,s=a.concat(r).map((e=>t.get(e))).filter((e=>e&&e instanceof k.Qi)),l=r.concat(r).map((e=>t.get(e))).filter((e=>e&&e instanceof k.R1)).first(),c=s.first(),u=c&&e.selectedAnnotationMode===L.o.EDITING?c:null,d=e.selectedAnnotationIds.size>0?e.annotations.get(e.selectedAnnotationIds.first()):null,p=d&&d instanceof k.x_?n.get(d.formFieldName):null;return{state:e,selectedNoteAnnotations:s,noteAnnotationToModify:u,selectedAnnotation:d,selectedFormField:p,activeAnnotationNote:i,hoverAnnotationNote:o,editableSelectedAnnotationIds:a.filter((t=>{const n=e.annotations.get(t);return n&&!(0,mn.lV)(n,e)})),currentTextSelection:e.currentTextSelection,hoveredLinkAnnotation:l}}))(OS);var KS=n(41390),VS=n(58342),HS=n(73417),$S=n(24126),US=n(79685),ZS=n(39236),qS=n(86105);const GS=(0,s.$j)((function(e){return{locale:e.locale,messages:qS.ZP[e.locale]}}))(he.Pj),WS=["Annotation","CommentAvatar"];var YS=n(8210),XS=n(4480),QS=n(86037),JS=n(94809),eC=n(91105),tC=n(57712),nC=n(18009),rC=n(66013),oC=n(5130),iC=n(2891),aC=(n(78599),n(70118),n(56207)),sC=n(33383),lC=n(74311),cC=n(2427);var uC,dC,pC=n(11267),hC=n(75287),fC=n(25435);const mC={current:(0,a.D5)()},gC={current:(0,a.D5)()},vC=new Promise((function(){})),yC="pspdfkit-lib/pspdfkit-2024.5.1.css",bC=`\n<style data-pspdfkit="true">\nbody, html, .${Ae.re} {\n  margin: 0;\n  padding: 0;\n  overflow: hidden;\n  height: 100%;\n  width: 100%;\n  box-sizing: border-box;\n}\n.${Ae.re} {\n  container: pspdfkit / size;\n}\n</style>\n`,wC=["baseUrl","baseCoreUrl","baseProcessorEngineUrl","licenseKey","disableWebAssemblyStreaming","enableAutomaticLinkExtraction","overrideMemoryLimit","customFonts","isSharePoint","isSalesforce","productId","processorEngine"];let xC,_C=null,SC=null,CC=null;function EC(){return xC}function kC(e){xC=e}function zC(e){n.p=e}function PC(e){return e.baseUrl?e.baseUrl:"authPayload"in e&&"object"==typeof e.authPayload&&"string"==typeof e.authPayload?.accessToken?"https://cdn.cloud.pspdfkit.com/pspdfkit-web@2024.5.1/":(0,fs.SV)(window.document)}function DC(e){return e.baseCoreUrl?e.baseCoreUrl:PC(e)}function AC(e){return e.baseProcessorEngineUrl?e.baseProcessorEngineUrl:PC(e)}async function TC(e){if((0,l.kG)((null==e.document||"string"==typeof e.document||e.document instanceof ArrayBuffer)&&null==e.documentId,"Preloading is only supported for Standalone mode using WASM"),_C instanceof Promise)try{return void await _C}catch(t){if(SC&&0===(0,l.$O)(e,SC).length)throw t;SC=null}SC=e,"string"==typeof e.baseUrl&&(0,JS.Pn)(e.baseUrl);zC(PC(e));const t=e.appName||e.electronAppName||(0,_.$u)()||window.location.origin,r=AC(e);e.processorEngine&&(xC=KC({baseUrl:r,mainThreadOrigin:t,licenseKey:e.licenseKey,processorEngine:e.processorEngine,customFonts:e.customFonts,dynamicFonts:e.dynamicFonts,fontSubstitutions:e.fontSubstitutions,inlineWorkers:e.inlineWorkers})),_C=async function(e){const t=PC(e),r=DC(e),o=AC(e),i={...e,baseUrl:t,baseCoreUrl:r,baseProcessorEngineUrl:o};zC(t),CC||(CC=await Promise.all([n.e(4267),n.e(3610)]).then(n.bind(n,58258)));const{corePool:a,validateStandaloneConfiguration:s,normalizeCoreOptions:l,loadModule:c}=CC;s(i);const u=l(i),{object:d,checkIn:p}=a.checkOut();await c(d,u),p()}(e),await Promise.all([_C,xC])}async function IC(e){fe.fq&&new l.p2("Starting 2022.5.0, we no longer support Internet Explorer 11."),fe.rO&&new l.p2("Starting 2023.2.0, we no longer support Microsoft Edge 18."),"disableWebAssembly"in e&&e.disableWebAssembly&&(0,l.a1)("The 'disableWebAssembly' option is deprecated. It will be removed in a future release as we are removing support for ASM.js.");const t={current:!0};let r=null;if(!0!==e.headless){r=FC(e),(0,l.kG)(!mC.current.has(r),"Configuration#container is already used to mount a PSPDFKit for Web instance. \n\nEither use PSPDFKit.unload(container) before loading again or use a different container.");const n=r;mC.current=mC.current.set(r,(function(){t.current=!1,mC.current=mC.current.delete(n)}))}try{if(_C instanceof Promise)try{await _C}catch(t){if(SC&&0===(0,l.$O)(e,SC).length)throw t;SC=null}else _C=Promise.resolve();let r;const d=PC(e);if(zC(d),!t.current)return vC;if("document"in e&&e.document){if(!e.processorEngine&&SC?.processorEngine&&(e.processorEngine=ys.l.fasterProcessing),null!=SC){const t=(0,l.$O)(SC,e,{keys:wC});(0,l.kG)(0===t.length,"The configuration object passed to PSPDFKit is different from the one given previously\n"+(0,l.GB)(t))}SC=e,CC||(CC=await Promise.all([n.e(4267),n.e(3610)]).then(n.bind(n,58258)));const t=CC?.default;r=new t({...e,baseCoreUrl:DC(e)}),e.autoSaveMode||(e.autoSaveMode=z.u.IMMEDIATE),(e.appName&&(0,_.d)()||e.electronAppName)&&(e.electronAppName&&((0,l.ZK)("The `Configuration.electronAppName` option is deprecated and will be removed in a future version. Please use `appName` instead."),(0,l.kG)((0,_.d)(),"`electronAppName` should only be set when using Electron.")),(0,cC.t0)(e.appName||e.electronAppName,e.productId))}if("documentId"in e&&e.documentId||"authPayload"in e&&"object"==typeof e.authPayload&&"string"==typeof e.authPayload?.accessToken){const t=(await Promise.all([n.e(4267),n.e(6377)]).then(n.bind(n,22425))).default;r=new t(e),e.autoSaveMode||(e.autoSaveMode=e.instant?z.u.IMMEDIATE:z.u.INTELLIGENT)}if(!t.current)return r&&r.destroy(),vC;if(!r)throw new l.p2("Backend could not be inferred. Please add one of the following properties to the configuration:\n  - `document` to load document and render the document client-side.\n  - `documentId` to connect to PSPDFKit Document Engine and render the document server-side.\n");if(e.autoSaveMode&&e.autoSaveMode!==z.u.INTELLIGENT&&e.autoSaveMode!==z.u.IMMEDIATE&&e.autoSaveMode!==z.u.DISABLED)throw new l.p2("The supplied autoSaveMode is not valid.\nValid `autoSaveMode`s are: PSPDFKit.AutoSaveMode.INTELLIGENT, PSPDFKit.AutoSaveMode.IMMEDIATE or PSPDFKit.AutoSaveMode.DISABLED");if(e.printOptions||(e.printOptions={}),e.printOptions&&e.printOptions.mode&&!Object.prototype.hasOwnProperty.call(bs.X,e.printOptions.mode))throw new l.p2("The supplied mode in printOptions is not valid.\nValid `printMode`s are: PSPDFKit.PrintMode.DOM, PSPDFKit.PrintMode.EXPORT_PDF");if(e.printOptions&&e.printOptions.quality&&!Object.prototype.hasOwnProperty.call(ws.g,e.printOptions.quality))throw new l.p2("The supplied quality in printOptions is not valid.\nValid `printOptions.quality`s are: PSPDFKit.PrintQuality.LOW, PSPDFKit.PrintQuality.MEDIUM, PSPDFKit.PrintQuality.HIGH");if(e.printMode&&(0,l.ZK)("Configuration.printMode has been deprecated and will be removed in the next major version. Please refer to the migration guide in order to keep the desired behavior."),e.printMode&&!e.printOptions.mode){if(!Object.prototype.hasOwnProperty.call(bs.X,e.printMode))throw new l.p2("The supplied printMode is not valid.\nValid `printMode`s are: PSPDFKit.PrintMode.DOM, PSPDFKit.PrintMode.EXPORT_PDF");e.printOptions.mode=e.printMode}"disableHighQualityPrinting"in e&&((0,l.ZK)("Configuration.disableHighQualityPrinting has been deprecated and will be removed in the next major version. Please refer to the migration guide in order to keep the desired behavior."),MC(e,"disableHighQualityPrinting"),e.disableHighQualityPrinting&&"boolean"==typeof e.disableHighQualityPrinting&&!e.printOptions.quality&&("STANDALONE"!==r.type||"ios"!==fe.By&&"android"!==fe.By?e.printOptions.quality=e.disableHighQualityPrinting?ws.g.MEDIUM:ws.g.HIGH:e.printOptions.quality=ws.g.MEDIUM));let m,v=null;if(e.electronicSignatures){if(e.electronicSignatures.creationModes){if(!Array.isArray(e.electronicSignatures.creationModes)||!e.electronicSignatures.creationModes.length)throw new l.p2("PSPDFKit.Configuration.electronicSignatures#creationModes must be a non-empty array if specified.");if(e.electronicSignatures.creationModes.some((e=>!Object.keys(eC.M).includes(e))))throw new l.p2("PSPDFKit.Configuration.electronicSignatures#creationModes only accepts PSPDFKit.ElectronicSignatureCreationMode values.")}if(e.electronicSignatures.fonts){if(!Array.isArray(e.electronicSignatures.fonts)||!e.electronicSignatures.fonts.length)throw new l.p2("PSPDFKit.Configuration.electronicSignatures#fonts must be a non-empty array if specified.");if(e.electronicSignatures.fonts.some((e=>!(e instanceof Ms.Z))))throw new l.p2("PSPDFKit.Configuration.electronicSignatures#fonts only accepts PSPDFKit.Font values.")}if(e.electronicSignatures.forceLegacySignaturesFeature&&"boolean"!=typeof e.electronicSignatures.forceLegacySignaturesFeature)throw new l.p2("PSPDFKit.Configuration.electronicSignatures#forceLegacySignaturesFeature only accepts boolean values.");if(void 0!==e.electronicSignatures.setDefaultTypeText)if("function"==typeof e.electronicSignatures.setDefaultTypeText)v=e.electronicSignatures.setDefaultTypeText;else{if("string"!=typeof e.electronicSignatures.setDefaultTypeText)throw new l.p2("PSPDFKit.Configuration.electronicSignatures#setDefaultTypeText must be a function or a string if provided.");{const t=e.electronicSignatures.setDefaultTypeText;v=()=>t}}}MC(e,"disableForms"),RC(e,"annotationTooltipCallback"),MC(e,"disableTextSelection"),MC(e,"preventTextCopy"),RC(e,"renderPageCallback"),function(e,t){if(e[t]){if(!Array.isArray(e[t]))throw new l.p2(`${t} must be an array of annotation types.`);if(!e[t].every((e=>e&&e.prototype&&(e.prototype instanceof Is.Z||e==Is.Z))))throw new l.p2(`${t} must be an array of annotation types.`)}}(e,"editableAnnotationTypes"),RC(e,"isEditableAnnotation"),RC(e,"isEditableComment"),RC(e,"dateTimeString"),RC(e,"annotationToolbarColorPresets"),RC(e,"annotationToolbarItems"),RC(e,"onWidgetAnnotationCreationStart"),RC(e,"inlineTextSelectionToolbarItems"),RC(e,"onCommentCreationStart"),RC(e,"measurementValueConfiguration"),"mentionableUsers"in e&&((0,l.kG)(Array.isArray(e.mentionableUsers),"mentionableUsers must be an array"),e.mentionableUsers.forEach(aC.vQ)),(0,l.um)(`PSPDFKit for ${(0,_.d)()?"Electron":"Web"} 2024.5.1 (https://pspdfkit.com/web)`);try{m=(0,ms.z5)(e.locale||navigator.language)}catch(e){m="en"}if(e.populateInkSignatures&&"function"!=typeof e.populateInkSignatures)throw new l.p2("populateInkSignatures must be a function.");if(e.populateStoredSignatures&&"function"!=typeof e.populateStoredSignatures)throw new l.p2("populateStoredSignatures must be a function.");if(null!=e.maxPasswordRetries&&"number"!=typeof e.maxPasswordRetries)throw new l.p2("maxPasswordRetries must be a number.");if(e.formFieldsNotSavingSignatures&&(!Array.isArray(e.formFieldsNotSavingSignatures)||e.formFieldsNotSavingSignatures.some((e=>"string"!=typeof e))))throw new l.p2("formFieldsNotSavingSignatures must be an array of strings.");let y,b,x,D=new C.Z;e.disableOpenParameters||(D=(0,Ts.s)(D)),e.initialViewState&&(D=e.initialViewState,D=(0,As.F3)(D,null)),e.customRenderers&&(y=function(e){for(const t in e)e.hasOwnProperty(t)&&((0,l.kG)(WS.includes(t),`'${t}' is not a custom renderable entity. Custom renderable entities are: ${WS.join(", ")}`),(0,l.kG)("function"==typeof e[t],`'${t}' custom renderer must be a function.`));return e}(e.customRenderers)),e.customUI&&(b=(0,YS.a)(e.customUI)),(0,l.kG)("number"==typeof We.Options.DEFAULT_INK_ERASER_CURSOR_WIDTH&&We.Options.DEFAULT_INK_ERASER_CURSOR_WIDTH>=0,"PSPDFKit.Options.DEFAULT_INK_ERASER_CURSOR_WIDTH must be set to a positive number."),(0,l.kG)(!e.isAPStreamRendered||"function"==typeof e.isAPStreamRendered,"When provided, `configuration.isAPStreamRendered` must be a function."),(0,l.kG)(!e.enableRichText||"function"==typeof e.enableRichText,"When provided, `configuration.enableRichText` must be a function."),(0,l.kG)("boolean"==typeof e.enableHistory||void 0===e.enableHistory,"When provided, `configuration.enableHistory` must be a boolean value."),(0,l.kG)("boolean"==typeof e.enableClipboardActions||void 0===e.enableClipboardActions,"When provided, `configuration.enableClipboardOperations` must be a boolean value."),e.unstable_inkEraserMode&&((0,l.kG)(Object.keys(Bo.b).includes(e.unstable_inkEraserMode),"`unstable_inkEraserMode` must be one of: `PSPDFKit.unstable_InkEraserMode.POINT` or `PSPDFKit.unstable_InkEraserMode.STROKE`"),x=e.unstable_inkEraserMode),(0,l.kG)("boolean"==typeof e.measurementSnapping||void 0===e.measurementSnapping,"When provided, `configuration.measurementSnapping` must be a boolean value."),(0,l.kG)("string"==typeof e.measurementPrecision||void 0===e.measurementPrecision,"When provided, `configuration.measurementPrecision` must be a string."),(0,l.kG)(e.measurementScale instanceof Pi.Z||void 0===e.measurementScale,"When provided, `configuration.measurementScale` must be an instance of `MeasurementScale`."),(0,l.kG)("boolean"==typeof e.anonymousComments||void 0===e.anonymousComments||!0===e.anonymousComments&&"STANDALONE"!==r.type,"When provided, `configuration.anonymousComments` must be used only with PSPDFKit Document Engine and be a boolean value."),(0,l.kG)("boolean"==typeof e.disableMultiSelection||void 0===e.disableMultiSelection,"When provided, `configuration.disableMultiSelection` must be a boolean value."),(0,l.kG)("number"==typeof e.autoCloseThreshold||void 0===e.autoCloseThreshold,"When provided, `configuration.autoCloseThreshold` must be a number."),e.ui&&function(e){(0,Rv.kG)("object"==typeof e,"The provided UI must be an object.");for(const[t,n]of Object.entries(e))(0,Rv.kG)(Object.keys(Fv.xr).includes(t),`'${t}' is not a valid UI element. Valid UI elements are: ${Object.keys(Fv.xr).join(", ")}`),(0,Rv.kG)("function"==typeof n,`The provided UI for "${t}" must be a function.`)}(e.ui),(0,l.kG)("boolean"==typeof e.useIframe||void 0===e.useIframe,"When provided, `configuration.useIframe` must be a boolean value.");const T={backend:r,autoSaveMode:e.autoSaveMode,printMode:e.printOptions?.mode,printQuality:e.printOptions?.quality,showComments:!!D.showComments,showAnnotationNotes:!!D.showAnnotationNotes,printingEnabled:D.allowPrinting,exportEnabled:D.allowExport,readOnlyEnabled:D.readOnly?J.J.VIA_VIEW_STATE:J.J.NO,formsEnabled:!e.disableForms,formDesignMode:!e.disableForms&&D.formDesignMode,showAnnotations:D.showAnnotations,eventEmitter:new US.Z,locale:m,clientPermissions:new k.uh({extract:!e.disableTextSelection,preventTextCopy:!!e.preventTextCopy,printHighQuality:e.printOptions?.quality===ws.g.HIGH}),signatureState:new k.dp({populateStoredSignatures:e.populateStoredSignatures||e.populateInkSignatures,formFieldsNotSavingSignatures:(0,a.l4)(e.formFieldsNotSavingSignatures||[])}),renderPageCallback:e.renderPageCallback,annotationTooltipCallback:e.annotationTooltipCallback?t=>{const n=e.annotationTooltipCallback?.(t);return n?.forEach((e=>{(0,zs.G)(e)})),n}:null,sidebarMode:D.sidebarMode,sidebarOptions:D.sidebarOptions,sidebarPlacement:D.sidebarPlacement,isEditableAnnotation:e.isEditableAnnotation,isEditableComment:e.isEditableComment,customRenderers:y,...b?{customUIStore:new h.Z(b)}:null,toolbarPlacement:e.toolbarPlacement,showSignatureValidationStatus:D.showSignatureValidationStatus||Of.W.NEVER,previewRedactionMode:D.previewRedactionMode,keepSelectedTool:D.keepSelectedTool,isAPStreamRendered:e.isAPStreamRendered,restrictAnnotationToPageBounds:e.restrictAnnotationToPageBounds,electronicSignatureCreationModes:(0,a.hU)(e.electronicSignatures&&e.electronicSignatures.creationModes||tC.Z),signingFonts:(0,a.hU)(e.electronicSignatures&&e.electronicSignatures.fonts||VS.Z),isHistoryEnabled:!!e.enableHistory,areClipboardActionsEnabled:!!e.enableClipboardActions,onOpenURI:e.onOpenURI,onAnnotationResizeStart:e.onAnnotationResizeStart,canScrollWhileDrawing:D.canScrollWhileDrawing,dateTimeString:e.dateTimeString,annotationToolbarColorPresets:e.annotationToolbarColorPresets,annotationToolbarItems:e.annotationToolbarItems,onWidgetAnnotationCreationStart:e.onWidgetAnnotationCreationStart,inkEraserMode:x,firstCurrentPageIndex:D.currentPageIndex,arePageSizesLoaded:"STANDALONE"!==r.type,inlineTextSelectionToolbarItems:e.inlineTextSelectionToolbarItems,measurementSnapping:e.measurementSnapping,measurementPrecision:e.measurementPrecision,measurementScale:e.measurementScale,measurementValueConfiguration:e.measurementValueConfiguration,anonymousComments:e.anonymousComments,enableRichText:e.enableRichText,maxMentionSuggestions:"maxMentionSuggestions"in e&&e.maxMentionSuggestions||void 0,mentionableUsers:"mentionableUsers"in e&&e.mentionableUsers||[],isMultiSelectionEnabled:!e.disableMultiSelection,defaultAutoCloseThreshold:e.autoCloseThreshold,onCommentCreationStart:e.onCommentCreationStart,electronicSignatureDefaultTextCallback:v,noLicenseKey:!e.licenseKey&&"STANDALONE"===r.type,ui:e.ui?{...Nv.m,...e.ui}:void 0,documentAssistant:new fC.Z({configuration:e.documentAssistant,show:D.showDocumentAssistant}),documentId:"STANDALONE"===r.type?null:e.documentId};let I,M,R=Promise.resolve();if(!0===e.headless)I=ls({...T,frameWindow:window});else if([I,R,M]=await async function(e,t,n,r,d){const h=FC(r);if(h.childNodes.length>0)throw new l.p2('`Configuration#container` is expected to be an empty element but instead it contains child nodes.\nTo fix this, please make sure that the container is empty (e.g. by using an empty div `<div id="PSPDFKit"><div>`');if(r.styleSheets&&!(r.styleSheets instanceof Array))throw new l.p2("styleSheets must either be an Array of strings");let m=[];const v=window.getComputedStyle(h).getPropertyValue("width"),y=window.getComputedStyle(h).getPropertyValue("height");if(!v||v&&"0px"===v)throw new l.p2("The mounting container has no width.\n      PSPDFKit for Web adapts to the dimensions of this element and will require this to be set. You can set it to 100% to adopt to the dimensions of the parent node.");if(!y||y&&"0px"===y)throw new l.p2("The mounting container has no height.\n      PSPDFKit for Web adapts to the dimensions of this element and will require this to be set. You can set it to 100% to adopt to the dimensions of the parent node.");if(r.theme){if("string"!=typeof r.theme||!Mv.Q[r.theme])throw new l.p2("Invalid theme. Configuration#theme must be a valid PSPDFKit.Theme");(r.theme===Mv.Q.DARK||r.theme===Mv.Q.AUTO&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&m.push(`${t}pspdfkit-lib/dark-${g()}.css`)}r.styleSheets&&(m=m.concat(r.styleSheets));let b=Ae.cY;null!=r.minDefaultZoomLevel&&((0,l.kG)("number"==typeof r.minDefaultZoomLevel&&r.minDefaultZoomLevel>0,"minDefaultZoomLevel must be a number greater than 0"),b=r.minDefaultZoomLevel);let x=Ae.QS;null!=r.maxDefaultZoomLevel&&((0,l.kG)("number"==typeof r.maxDefaultZoomLevel&&r.maxDefaultZoomLevel>0,"maxDefaultZoomLevel must be a number greater than 0"),x=r.maxDefaultZoomLevel);(0,l.kG)(x>=b,`maxDefaultZoomLevel (${x}) must be greater than or equal to minDefaultZoomLevel (${b}). If you didn't set one of those values, then the default value was used.`);const _=E.UL.fromClientRect(h.getBoundingClientRect()).setLocation(new E.E9),S=new k.Vk({currentPageIndex:d.currentPageIndex,disablePointSnapping:d.disablePointSnapping,zoomLevel:"number"==typeof d.zoom?d.zoom:1,zoomMode:"number"==typeof d.zoom?Wi.c.CUSTOM:d.zoom,pagesRotation:(0,Fe.n5)(d.pagesRotation),layoutMode:d.layoutMode,scrollMode:d.scrollMode,pageSpacing:d.pageSpacing,spreadSpacing:d.spreadSpacing,keepFirstSpreadAsSinglePage:d.keepFirstSpreadAsSinglePage,viewportPadding:new E.E9({x:d.viewportPadding.horizontal,y:d.viewportPadding.vertical}),minDefaultZoomLevel:b,maxDefaultZoomLevel:x,enableAlwaysScrollToZoom:d.enableAlwaysScrollToZoom,forceRenderWidgetsInAnnotationsOrder:d.forceRenderWidgetsInAnnotationsOrder,prerenderedPageSpreads:d.prerenderedPageSpreads});let C=HS.ZP.toJS();r.toolbarItems&&(C=r.toolbarItems,C=C.map((e=>"ink-signature"===e.type?((0,l.a1)("The 'ink-signature' toolbar item type has been renamed to 'signature'. The 'ink-signature' identifier will be removed on a future release of PSPDFKit for Web."),{...e,type:"signature"}):e)),C.forEach(ks.G));let z=$S.Z.toJS();r.documentEditorFooterItems&&(z=r.documentEditorFooterItems,z.forEach(Ps.G));let D=nC.Z.toJS();r.documentEditorToolbarItems&&(D=r.documentEditorToolbarItems,D.forEach(Ds.G));if(r.documentAssistant){if("SERVER"!==n.backend?.type)throw new l.p2("Document Assistant is only available with the PSPDFKit Document Engine");if(!r.documentAssistant.backendUrl||"string"!=typeof r.documentAssistant.backendUrl)throw new l.p2("documentAssistant.backendUrl is required and must be a string");if(!r.documentAssistant.chatSessionId||"string"!=typeof r.documentAssistant.chatSessionId)throw new l.p2("documentAssistant.chatSessionId is required and must be a string");if(!r.documentAssistant.jwt||"string"!=typeof r.documentAssistant.jwt)throw new l.p2("documentAssistant.jwt is required and must be a string");if(!r.documentAssistant.userId||"string"!=typeof r.documentAssistant.userId)throw new l.p2("documentAssistant.userId is required and must be a string");if(r.documentAssistant.onMessageSubmit&&"function"!=typeof r.documentAssistant.onMessageSubmit)throw new l.p2("documentAssistant.onMessageSubmit must be a function")}let A=Ae.mc;if(r.documentEditorConfiguration){const{thumbnailMinSize:e,thumbnailMaxSize:t,thumbnailDefaultSize:n}=r.documentEditorConfiguration;null!=n&&(0,l.kG)("number"==typeof n&&n>0,"documentEditor.thumbnailDefaultSize must be a number greater than 0"),null!=t&&((0,l.kG)("number"==typeof t&&t>0,"documentEditor.thumbnailMaxSize must be a number greater than 0"),(0,l.kG)(t>e,"documentEditor.thumbnailMaxSize must be bigger than documentEditor.thumbnailMinSize")),null!=e&&((0,l.kG)("number"==typeof e&&e>0,"documentEditor.thumbnailMinSize must be a number greater than 0"),(0,l.kG)(e<t,"documentEditor.thumbnailMinSize must be smaller than documentEditor.thumbnailMaxSize")),A={...A,...r.documentEditorConfiguration}}let T=G.ZP.toObject();T.ink.inkEraserWidth=We.Options.DEFAULT_INK_ERASER_CURSOR_WIDTH,r.annotationPresets&&(T=r.annotationPresets,Object.values(T).forEach(Es.G));let I=KS.ZP;r.stampAnnotationTemplates&&Array.isArray(r.stampAnnotationTemplates)&&(I=r.stampAnnotationTemplates,I.forEach(_i.wB));"mentionableUsers"in r&&((0,l.kG)(Array.isArray(r.mentionableUsers),"mentionableUsers must be an array"),r.mentionableUsers.forEach(aC.vQ));"maxMentionSuggestions"in r&&(0,l.kG)("number"==typeof r.maxMentionSuggestions&&r.maxMentionSuggestions>0,"maxMentionSuggestions must be a number greater than 0");Object.isFrozen(We.Options)||(We.W!==We.Options.COLOR_PRESETS&&(0,f.XV)("Options.COLOR_PRESETS","PSPDFKit#Customisation.AnnotationToolbarColorPresets",!0),(0,We.n)(We.Options),Object.freeze(We.Options));const M=function(){const e=document.createElement("div");return e.className="PSPDFKit-Container",e.style.width="100%",e.style.height="100%",e}();h.appendChild(M),NC(h,(function(){const{parentNode:e}=M;e&&e.removeChild(M)}));const R=void 0===r.useIframe||!r.useIframe,[F,N]=await async function(e,t,n,r,o){let i,a;const s=new Promise((function(e,t){i=e,a=t}));let l;if(r&&!o){let e;try{e=await(0,P.jK)([t+yC].concat(n).map((e=>{const n=n=>{const r=n instanceof Error;return{filename:e,css:r?null:n,isCustom:e!==t+yC}};return fetch(e,{credentials:"same-origin"}).then((e=>{if(200!==e.status)throw Error(`${e.status} ${e.statusText}`);return e.text()})).then(n).catch(n)})))}catch(t){e=t}e=e.filter((e=>null!==e.css)),l=bC+e.map((e=>{let{css:t,isCustom:n,filename:r}=e;return`<style${n?` data-source="${r}"`:""}>${t}</style>`})).join("")}else l=`<link rel="stylesheet" href="${t+yC}" data-pspdfkit="true">\n${n.map((e=>`<link rel="stylesheet" href="${e}">`)).join("\n")}\n${bC}\n`;return new Promise((t=>{if(o){const n=e.attachShadow({mode:"open"}),r=document.createElement("div");r.className=Ae.re,r.style.width="100%",r.style.height="100%",r.style.border="0",r.style.display="block",n.appendChild(r);const o=document.createElement("div");o.className=Ae.fV,n.appendChild(o);const c=document.createRange().createContextualFragment(l);n.prepend(c),OC(i,a,n),t([n,s])}else{const n=document.createElement("iframe");n.setAttribute("allowfullscreen","true"),n.setAttribute("title","PSPDFKit"),n.style.width="100%",n.style.height="100%",n.style.border="0",n.style.display="block",e.appendChild(n);const r=n.contentDocument;if(r){r.open(),r.write(`<!DOCTYPE html><html><head><meta charset="utf-8"><title>PSPDFKit</title></head><body><div class="${Ae.re}"></div></body></html>`),r.close(),r.addEventListener("touchstart",(()=>{document.body&&(document.body.style.overscrollBehavior="none")})),r.addEventListener("touchcancel",(()=>{document.body&&(document.body.style.overscrollBehavior="inherit")})),r.addEventListener("touchend",(()=>{document.body&&(document.body.style.overscrollBehavior="inherit")}));const e=r.createRange().createContextualFragment(l);r.head.appendChild(e),OC(i,a,r),t([r,s])}}}))}(M,t,m,r.enableServiceWorkerSupport||!1,R);if(function(e){const t=e instanceof ShadowRoot,n=t?e.ownerDocument:e.defaultView?.document;if(!n)return;const r=n.createRange().createContextualFragment(`<style data-pspdfkit="true">${jC}</style>`);t?e.appendChild(r):n?.head.appendChild(r)}(F),!e.current)return vC;gs(F);const O=(0,vs.bl)(F);"function"==typeof O&&NC(h,(function(){O()}));const j=r.electronicSignatures?.colorPresets||rC.Z;if(0===j.length)throw new l.p2("PSPDFKit.Configuration.electronicSignatures#colorPresets should have at least one preset.");let L=null;if("customFonts"in r&&r.customFonts){const e=n.backend.getCustomFontsPromise();e.current||(e.current=(0,la.x6)(r.customFonts)),L=await e.current}if(fe.G6&&R&&F instanceof ShadowRoot){const e=new w(F);NC(h,(function(){e.cleanupEventListeners(F)}))}const B=ls({...n,rootElement:h,containerRect:_,showToolbar:d.showToolbar,disablePointSnapping:d.disablePointSnapping,enableAnnotationToolbar:d.enableAnnotationToolbar,toolbarItems:(0,a.d0)(C),electronicSignatureColorPresets:j,annotationPresets:(0,a.D5)(T),stampAnnotationTemplates:Object.freeze(I),currentItemPreset:null,viewportState:S,interactionMode:null,documentEditorFooterItems:(0,a.d0)(z),documentEditorToolbarItems:(0,a.d0)(D),frameWindow:R?window:F.defaultView,shadowRoot:R?F:null,sidebarWidth:_.width<=Ae.Fg?_.width:We.Options.INITIAL_DESKTOP_SIDEBAR_WIDTH,renderPagePreview:"boolean"!=typeof r.renderPagePreview||r.renderPagePreview,enableAlwaysScrollToZoom:d.enableAlwaysScrollToZoom,documentEditorConfig:A,theme:r.theme});if(await(0,ms.sS)(B.getState().locale),!e.current)return vC;B.dispatch((0,xs.t2)(new Cs(B.getState,B.dispatch))),B.dispatch((0,Pt.z5)((0,Z.YV)(B.getState)));const K=R?F.querySelector(`.${Ae.re}`):F.defaultView?.document.querySelector(`.${Ae.re}`);return(0,l.kG)(K,"Internal PSPDFKit Error: Mount Target could not be found in contentDocument. Please contact support@pspdfkit.com"),(0,c.render)(u.createElement(s.zt,{store:B},R?uC||(uC=u.createElement(o.TX,{id:"a11y-status-message",role:"status","aria-live":"polite","aria-relevant":"additions text"})):null,u.createElement(GS,{onError:e=>(e.code,e)},u.createElement("div",{className:p()(Bu().withLayers,R&&Bu().relativeContainer,(!("CSS"in window)||!window.CSS.supports?.("isolation: isolate"))&&Bu().withLayersFallback)},u.createElement(i.P,null,dC||(dC=u.createElement(BS,null)))))),K),NC(h,(function(){(0,c.unmountComponentAtNode)(K)})),[B,N,L]}(t,d,T,e,D),!t.current)return vC;const F=I.getState(),{eventEmitter:N,rootElement:O}=F;O&&NC(O,(function(){r&&r.destroy()})),k.UX.prototype.getMeasurementDetails=function(){return F.features.includes(Q.q.MEASUREMENT_TOOLS)||new l.p2(iC.oD),(0,A.t9)(this)};const L=new ZS.Z({store:I,backend:r,eventEmitter:N});if(await hs({dispatch:I.dispatch,backend:r,getState:I.getState,password:e.password,maxPasswordRetries:!0===e.headless?0:"number"==typeof e.maxPasswordRetries?e.maxPasswordRetries:Number.POSITIVE_INFINITY,formFieldValuesJSON:"STANDALONE"===r.type?"instantJSON"in e&&e.instantJSON&&e.instantJSON.formFieldValues:null,customFonts:M,stylesheetPromise:R}),!t.current)return r&&r.destroy(),vC;let B=function(){L._destroy(),!0===e.headless&&r&&r.destroy(),gC.current=gC.current.delete(L)};O&&(B=NC(O,B)),gC.current=gC.current.set(L,B);const{features:V,formDesignMode:H,previewRedactionMode:$,documentPermissions:U,frameWindow:q}=I.getState();if(e.fontSubstitutions&&((0,l.kG)(S(e.fontSubstitutions),"Invalid fontSubstitutions"),r.setFontSubstitutions(e.fontSubstitutions)),U.fillForms||U.annotationsAndForms||We.Options.IGNORE_DOCUMENT_PERMISSIONS?I.dispatch((0,Pt.we)(e.editableAnnotationTypes?(0,a.l4)(e.editableAnnotationTypes):(0,a.l4)(W.Z),e.isEditableAnnotation)):I.dispatch((0,Pt.ZV)((0,a.l4)([]))),V.includes(Q.q.ELECTRONIC_SIGNATURES)&&function(e,t){const n=e.document.createRange(),r=la.eE.map((e=>`@font-face {\n    font-family: '${e.name}';\n    font-style: normal;\n    font-weight: ${e.weight};\n    font-display: swap;\n    src: url(${t}pspdfkit-lib/${e.file}.woff2) format('woff2'),\n         url(${t}pspdfkit-lib/${e.file}.woff) format('woff');\n  }`)).join("\n"),o=n.createContextualFragment(`<style data-pspdfkit="true">\n${r}\n  </style>`);e.document.head.appendChild(o)}(q,d),H&&!(0,mn.ix)(I.getState()))throw I.dispatch((0,Pt.LE)(!1)),U.annotationsAndForms||U.fillForms?new l.p2("Widget annotation selection (`configuration.viewState.formDesignMode = true`) can only be enabled if the license includes the Form Creator component and on standalone mode or with PSPDFKit Instant."):new l.p2('Widget annotation selection (`configuration.viewState.formDesignMode = true`) can only be enabled if the current document has either the "Editing Annotations and Forms" or the "Filling Forms" permissions granted. you can override this behavior by setting the PSPDFKit.Options.IGNORE_DOCUMENT_PERMISSIONS option before initializing PSPDFKit. Please make also sure the license includes the Form Creator component and a backend that supports it.');if($&&!V.includes(Q.q.REDACTIONS))throw I.dispatch((0,Pt.P_)(!1)),new l.p2("`configuration.viewState.previewRedactionMode = true` can only be enabled if the license includes the Redactions component.");if(e.initialViewState&&e.initialViewState.interactionMode===j.A.DOCUMENT_EDITOR&&!V.includes(Q.q.DOCUMENT_EDITING))throw I.dispatch((0,Pt.sJ)()),new l.p2(XS.I);if(e.initialViewState&&e.initialViewState.interactionMode===j.A.CONTENT_EDITOR&&!V.includes(Q.q.CONTENT_EDITING))throw I.dispatch({type:K.Qm9}),new l.p2(ns.Aq);if((0,Me.fF)(e.initialViewState?.interactionMode)&&!V.includes(Q.q.FORM_DESIGNER))throw I.dispatch((0,Pt.XX)()),new l.p2(oC.RB);if(e.initialViewState&&e.initialViewState.showSignatureValidationStatus!==Of.W.NEVER&&!V.includes(Q.q.DIGITAL_SIGNATURES))throw new l.p2(QS.C);if((e.documentEditorFooterItems||e.documentEditorToolbarItems||e.documentEditorConfiguration)&&!V.includes(Q.q.DOCUMENT_EDITING))throw new l.p2(XS.I);if(e.documentAssistant&&!V.includes(Q.q.DOCUMENT_ASSISTANT))throw I.dispatch((0,Pt.O4)(null)),new l.p2(hC.oQ);if(e.initialViewState&&!0===e.initialViewState.showDocumentAssistant&&!V.includes(Q.q.DOCUMENT_ASSISTANT))throw I.dispatch((0,Pt.Z_)(!1)),new l.p2(hC.oQ);if(!0!==e.headless&&!V.includes(Q.q.UI))throw I.dispatch((0,cs.sr)("Your license does not cover the configured functionality.")),new l.p2("The web UI feature is not enabled for your license key. Please contact support or sales to purchase the UI module for your product.");if(!0!==e.headless&&D.interactionMode){const e=(0,As.eV)(D.interactionMode,F);I.dispatch(e.onEnterAction())}return I.dispatch((0,Pt._$)(L)),L}catch(e){const{type:t,request:n}=e;throw"error"===t&&n&&/\/pspdfkit-lib\//.test(n)&&e("Failed to load pspdfkit-lib.\nMake sure you are serving all PSPDFKit library files as described in https://pspdfkit.com/guides/web/current/standalone/adding-to-your-project/#copy-the-pspdfkit-for-web-assets."),e}}function MC(e,t){if(e[t]&&"boolean"!=typeof e[t])throw new l.p2(`The type for ${t} is not valid. Must be \`true\` or \`false\`.`)}function RC(e,t){if(e[t]&&"function"!=typeof e[t])throw new l.p2(`The type for ${t} is not valid. Must be \`function\`.`)}function FC(e){const t="string"==typeof e.container?document.querySelector(e.container):e.container;if(!(0,Wn.Re)(t))throw new l.p2("`Configuration#container` must either be a valid element or a CSS selector");return t}function NC(e,t){const n=mC.current.get(e);function r(){t(),n?.()}return(0,l.kG)(n),mC.current=mC.current.set(e,r),r}function OC(e,t,n){const r=Array.prototype.slice.call(n.querySelectorAll('link[rel="stylesheet"]')).filter((e=>!e.dataset.loaded)).map((function(e){let t,n;e.dataset.loaded="true";const r=new Promise((function(e,r){t=e,n=r}));return e.onload=function(){t()},e.onerror=function(){const r=e.href+" could not be loaded. Make sure that the file is accessible from your webserver.";e.dataset.pspdfkit?n(new l.p2(r)):((0,l.vU)(r),t())},r}));Promise.all(r).then(e,t)}const jC="\n:host, body {\n  font-size: var(--PSPDFKit-fontSize-1);\n  font-family: var(--PSPDFKit-fontFamily-1);\n  line-height: var(--PSPDFKit-lineHeight-1);\n  background: var(--PSPDFKit-App-background);\n}\n";async function LC(e,t){const{licenseKey:n,electronAppName:r,productId:o,appName:i}=e;HC(e);const a=PC(e);(0,l.kG)(o!==sC.x.Salesforce,"Document conversion is not currently supported in Salesforce."),t&&(0,l.kG)(t&&Object.values(lC.w).includes(t),"The supplied PDF/A Conformance type is not valid. Valid Conformance should be one of the following options PSPDFKit.Conformance."+Object.keys(lC.w).join(", PSPDFKit.Conformance."));const s=await(0,ds.D4)(a,e.document,o),c=i||r||(0,_.$u)()||window.location.origin,u=AC(e);xC||(xC=KC({baseUrl:u,mainThreadOrigin:c,customFonts:e.customFonts,dynamicFonts:e.dynamicFonts,fontSubstitutions:e.fontSubstitutions,licenseKey:n,processorEngine:e.processorEngine,inlineWorkers:e.inlineWorkers}));const d=await xC;return(0,l.kG)(d),await d.toPdf(s,t)}async function BC(e,t){const{licenseKey:n,electronAppName:r,productId:o,appName:i}=e;HC(e);const a=PC(e);(0,l.kG)(o!==sC.x.Salesforce,"Document conversion is not currently supported in Salesforce."),(0,l.kG)(t&&Object.values(pC._).includes(t),`The provided conversion output format ${t} is not supported. Supported output formats are ${Object.values(pC._).map((e=>`PSPDFKit.OfficeDocumentFormat.${e}`)).join(", ")}.`);const s=await(0,ds.D4)(a,e.document,o),c=i||r||(0,_.$u)()||window.location.origin,u=AC(e);xC||(xC=KC({baseUrl:u,mainThreadOrigin:c,customFonts:e.customFonts,dynamicFonts:e.dynamicFonts,fontSubstitutions:e.fontSubstitutions,licenseKey:n,processorEngine:e.processorEngine,inlineWorkers:e.inlineWorkers}));const d=await xC;return(0,l.kG)(d),await d.toOffice(s,t)}async function KC(e){let{baseUrl:t,mainThreadOrigin:r,customFonts:o,dynamicFonts:i,fontSubstitutions:a,licenseKey:s,processorEngine:l,inlineWorkers:c}=e;const u=await n.e(1305).then(n.bind(n,90027));try{const e=!l||l===ys.l.fasterProcessing,n=await u.getBrowserSpawner(c);return new u.GdPictureWorker({baseUrl:t,aot:e,mainThreadOrigin:r,licenseKey:s,workerSpawner:n,...o?{customFonts:await(0,la.x6)(o)}:null,...i?{dynamicFonts:i}:null,...a?{fontSubstitutions:S(a)?a:null}:null})}catch(e){throw e}}async function VC(e,t){const{licenseKey:n,electronAppName:r,productId:o,appName:i}=e;HC(e),(0,l.kG)(o!==sC.x.Salesforce,"Document template populate is not currently supported in Salesforce.");const a=PC(e),s=await(0,ds.D4)(a,e.document,o),c=i||r||(0,_.$u)()||window.location.origin,u=AC(e);let d;try{return xC||(xC=KC({baseUrl:u,mainThreadOrigin:c,customFonts:e.customFonts,dynamicFonts:e.dynamicFonts,fontSubstitutions:e.fontSubstitutions,licenseKey:n,processorEngine:e.processorEngine,inlineWorkers:e.inlineWorkers})),d=await xC,(0,l.kG)(d),await d.populateDocumentTemplate(s,t,e.licenseKey)}catch(e){throw e}finally{d?.destroy(),kC(null)}}function HC(e){const{licenseKey:t,electronAppName:n,productId:r,appName:o}=e;"string"==typeof e.baseUrl&&(0,JS.Pn)(e.baseUrl);zC(PC(e)),(0,l.kG)(null==t||"string"==typeof t,"licenseKey must be a string value if provided. Please obtain yours from https://customers.pspdfkit.com."),"string"==typeof t&&(0,l.kG)(!t.startsWith("TRIAL-"),"You're using the npm key instead of the license key. This key is used to download the PSPDFKit for Web package via the node package manager.\n\nLeave out the license key to activate as a trial."),(o&&(0,_.d)()||n)&&((0,l.kG)(n,"The `electronAppName` option is deprecated and will be removed in a future version. Please use `appName` instead."),(0,cC.t0)(o||n,r))}},53416:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});const r=(0,n(79724).Z)("AnnotationPreset"),o=e=>{r("object"==typeof e,"`annotationPreset` is not an `object`")}},78025:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(35369);class o extends((0,r.WV)({readOnly:!1,downloadingAllowed:!0})){}},99745:(e,t,n)=>{"use strict";n.d(t,{G:()=>d,Z:()=>u});var r=n(96156),o=n(35369),i=n(79724),a=n(690),s=n(88133);const l=(0,i.Z)("Bookmark"),c={id:null,pdfBookmarkId:null,name:null,sortKey:null,action:null};class u extends(o.WV(c)){}(0,r.Z)(u,"toSerializableObject",s.a),(0,r.Z)(u,"fromSerializableObject",(e=>(0,s.i)(null,e)));const d=e=>{const{name:t,sortKey:n,action:r}=e;null!=t&&l("string"==typeof t,"`name` must be a string"),null!=n&&l("number"==typeof n,"`sortKey` must be a number"),l(r instanceof a.aU,"`action` must be an instance of PSPDFKit.Actions.Action")}},49616:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(35369);class o extends((0,r.WV)({printHighQuality:!0,extract:!0,preventTextCopy:!1})){}},60379:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r,o=n(96156),i=n(35369),a=n(15359);class s extends((0,i.WV)({r:0,g:0,b:0,transparent:!1})){constructor(e){!0!==e.transparent?super(e):super({transparent:!0})}lighter(e){(0,a.kG)("number"==typeof e&&e>=0&&e<=100,"Invalid `percent` value. Must be 0-100.");const t=255*e/100;let n=parseInt(this.r+t),r=parseInt(this.g+t),o=parseInt(this.b+t);return n=n<255?n:255,r=r<255?r:255,o=o<255?o:255,new s({r:n,g:r,b:o})}darker(e){(0,a.kG)("number"==typeof e&&e>=0&&e<=100,"Invalid `percent` value. Must be 0-100.");const t=255*e/100;let n=parseInt(this.r-t),r=parseInt(this.g-t),o=parseInt(this.b-t);return n=n>0?n:0,r=r>0?r:0,o=o>0?o:0,new s({r:n,g:r,b:o})}equals(e){return(0,a.kG)(e instanceof s||"object"==typeof e,"Invalid `color` provided. It must be an instance of Color or an RGB object."),(0,a.kG)("number"==typeof e.r&&e.r>=0&&e.r<=255,"Invalid `r` value provided. It must be an integer between 0 and 255."),(0,a.kG)("number"==typeof e.g&&e.g>=0&&e.g<=255,"Invalid `g` value provided. It must be an integer between 0 and 255."),(0,a.kG)("number"==typeof e.b&&e.b>=0&&e.b<=255,"Invalid `b` value provided. It must be an integer between 0 and 255."),!this.transparent&&!e.transparent&&this.r===e.r&&this.g===e.g&&this.b===e.b||this.transparent&&e.transparent}saturate(e){(0,a.kG)("number"==typeof e&&e>=0&&e<=100,"Invalid `percent` value. Must be 0-100.");const t=e/100,n=.3086*this.r+.6094*this.g+.082*this.b;return new s({r:Math.round(this.r*t+n*(1-t)),g:Math.round(this.g*t+n*(1-t)),b:Math.round(this.b*t+n*(1-t))})}sRGBToRGBComponent(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}relativeLuminance(){const{r:e,g:t,b:n}={r:this.r/255,g:this.g/255,b:this.b/255},{R:r,G:o,B:i}={R:this.sRGBToRGBComponent(e),G:this.sRGBToRGBComponent(t),B:this.sRGBToRGBComponent(n)};return.2126*r+.7152*o+.0722*i}contrastRatio(e){return(this.relativeLuminance()+.05)/(e.relativeLuminance()+.05)}toCSSValue(){return this.transparent?"transparent":`rgb(${this.r}, ${this.g}, ${this.b})`}toHex(){if(this.transparent)return"#00000000";let e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}}r=s,(0,o.Z)(s,"BLACK",new r({r:0,g:0,b:0})),(0,o.Z)(s,"GREY",new r({r:128,g:128,b:128})),(0,o.Z)(s,"WHITE",new r({r:255,g:255,b:255})),(0,o.Z)(s,"DARK_BLUE",new r({r:36,g:131,b:199})),(0,o.Z)(s,"RED",new r({r:248,g:36,b:0})),(0,o.Z)(s,"PURPLE",new r({r:255,g:0,b:255})),(0,o.Z)(s,"PINK",new r({r:255,g:114,b:147})),(0,o.Z)(s,"GREEN",new r({r:110,g:176,b:0})),(0,o.Z)(s,"ORANGE",new r({r:243,g:149,b:0})),(0,o.Z)(s,"YELLOW",new r({r:255,g:255,b:0})),(0,o.Z)(s,"LIGHT_BLUE",new r({r:141,g:184,b:255})),(0,o.Z)(s,"LIGHT_RED",new r({r:247,g:141,b:138})),(0,o.Z)(s,"LIGHT_GREEN",new r({r:162,g:250,b:123})),(0,o.Z)(s,"LIGHT_YELLOW",new r({r:252,g:238,b:124})),(0,o.Z)(s,"BLUE",new r({r:34,g:147,b:251})),(0,o.Z)(s,"LIGHT_ORANGE",new r({r:255,g:139,b:94})),(0,o.Z)(s,"LIGHT_GREY",new r({r:192,g:192,b:192})),(0,o.Z)(s,"DARK_GREY",new r({r:64,g:64,b:64})),(0,o.Z)(s,"MAUVE",new r({r:245,g:135,b:255})),(0,o.Z)(s,"TRANSPARENT",new r({transparent:!0})),(0,o.Z)(s,"fromHex",(e=>e.length>=8&&(e.endsWith("00")||e.endsWith("00"))?r.TRANSPARENT:new r({r:parseInt(e.substr(1,2),16),g:parseInt(e.substr(3,2),16),b:parseInt(e.substr(5,2),16)})))},16602:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(60379);const o=[{color:r.Z.RED,localization:{id:"red",defaultMessage:"Red",description:"Red color"}},{color:r.Z.ORANGE,localization:{id:"orange",defaultMessage:"Orange",description:"Orange color"}},{color:r.Z.YELLOW,localization:{id:"yellow",defaultMessage:"Yellow",description:"Yellow color"}},{color:r.Z.GREEN,localization:{id:"green",defaultMessage:"Green",description:"Green color"}},{color:r.Z.DARK_BLUE,localization:{id:"darkBlue",defaultMessage:"Dark blue",description:"Dark blue color"}},{color:r.Z.BLUE,localization:{id:"blue",defaultMessage:"Blue",description:"Blue color"}},{color:r.Z.PURPLE,localization:{id:"purple",defaultMessage:"Purple",description:"Purple color"}},{color:r.Z.PINK,localization:{id:"pink",defaultMessage:"Pink",description:"Pink color"}},{color:r.Z.LIGHT_ORANGE,localization:{id:"lightOrange",defaultMessage:"Light Orange",description:"Light Orange color"}},{color:r.Z.LIGHT_YELLOW,localization:{id:"lightYellow",defaultMessage:"Light Yellow",description:"Light Yellow color"}},{color:r.Z.LIGHT_GREEN,localization:{id:"lightGreen",defaultMessage:"Light Green",description:"Light Green color"}},{color:r.Z.LIGHT_BLUE,localization:{id:"lightBlue",defaultMessage:"Light Blue",description:"Light Blue color"}},{color:r.Z.MAUVE,localization:{id:"mauve",defaultMessage:"Mauve",description:"Mauve color"}},{color:r.Z.TRANSPARENT,localization:{id:"transparent",defaultMessage:"Transparent",description:"Transparent"}},{color:r.Z.WHITE,localization:{id:"white",defaultMessage:"White",description:"White color"}},{color:r.Z.LIGHT_GREY,localization:{id:"lightGrey",defaultMessage:"Light Grey",description:"Light Grey color"}},{color:r.Z.GREY,localization:{id:"grey",defaultMessage:"Grey",description:"Grey color"}},{color:r.Z.DARK_GREY,localization:{id:"darkGrey",defaultMessage:"Dark Grey",description:"Dark Grey color"}},{color:r.Z.BLACK,localization:{id:"black",defaultMessage:"Black",description:"Black color"}}]},25822:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});class r{constructor(e){this.name=e.name,this.reason=e.reason,this.progress=e.progress}}},96988:(e,t,n)=>{"use strict";n.d(t,{Ar:()=>v,CF:()=>b,Cd:()=>R,DN:()=>u,Dn:()=>j,FP:()=>a,FQ:()=>_,G_:()=>B,I5:()=>A,IA:()=>m,JR:()=>x,Q7:()=>z,QC:()=>K,R1:()=>i,Sg:()=>l,Ts:()=>C,UL:()=>c,W4:()=>p,Y1:()=>w,YG:()=>L,_h:()=>D,a2:()=>y,aN:()=>M,aT:()=>N,jI:()=>F,lK:()=>O,mZ:()=>d,nv:()=>P,t9:()=>T,tW:()=>S,tk:()=>k,vz:()=>g,wR:()=>s,xb:()=>I,yJ:()=>E,yO:()=>f});var r=n(15359),o=n(35369);let i=function(e){return e[e.Uninitialized=0]="Uninitialized",e[e.Loading=1]="Loading",e[e.Loaded=2]="Loaded",e}({}),a=function(e){return e[e.None=0]="None",e[e.Selected=1]="Selected",e[e.Active=2]="Active",e[e.Moving=3]="Moving",e}({}),s=function(e){return e[e.Edit=0]="Edit",e[e.Create=1]="Create",e[e.Delete=2]="Delete",e}({});class l extends((0,o.WV)({x:0,y:0})){}class c extends((0,o.WV)({offset:new l,size:new l})){}class u extends((0,o.WV)({rotation:0,flipY:!1})){}class d extends((0,o.WV)({xScale:1,skew:0})){}class p extends((0,o.WV)({bold:!1,italic:!1})){}const h={regular:new p,bold:new p({bold:!0}),italic:new p({italic:!0}),boldItalic:new p({bold:!0,italic:!0})};class f extends((0,o.WV)({family:"",variant:h.regular})){}class m extends((0,o.WV)({faceRef:new f,size:0})){}class g extends((0,o.WV)({fontRef:new m,color:"#000000",effects:new d})){}class v extends((0,o.WV)({maxWidth:null,alignment:"begin",lineSpacingFactor:1})){}class y extends((0,o.WV)({top:0,bottom:0})){}class b extends((0,o.WV)({offset:new l,lineSpacing:new y})){}class w extends((0,o.WV)({begin:0,end:0,text:""})){}class x extends((0,o.WV)({unavailableFaceName:null})){}class _ extends((0,o.WV)({cluster:0,offset:new l,advance:new l,text:"",control:null,lastOfSegment:!1,beginOfWord:!1,endOfWord:!1})){}class S extends((0,o.WV)({offset:new l,lineSpacing:new y,elements:(0,o.aV)()})){}class C extends((0,o.WV)({lines:(0,o.aV)()})){}class E extends((0,o.WV)({family:null,faceMismatch:null,bold:null,italic:null,size:null,xScale:null,skew:null,color:null})){}class k extends((0,o.WV)({selectionStyleInfo:null,modificationsCharacterStyle:null,modificationsCharacterStyleFaceMismatch:null})){}class z extends((0,o.WV)({id:"",initialAnchor:new l,initialGlobalEffects:new u,initialLayout:new v,anchor:new l,globalEffects:new u,layout:new v,justCreated:!1,modificationsCharacterStyle:new g,version:0,contentRect:new c,cursor:new b,selection:null,detectedStyle:new k,layoutView:new C})){}class P extends((0,o.WV)({initialTextBlocks:(0,o.aV)(),textBlocks:(0,o.aV)(),loading:!0})){}class D extends((0,o.WV)({pageIndex:0,textBlockId:"",state:a.None})){}class A extends((0,o.WV)({family:"",variants:(0,o.l4)()})){}class T extends((0,o.WV)({faceList:null,loading:!1})){}class I extends((0,o.WV)({fontFace:null,rect:null,dismissAbortController:null})){}class M extends((0,o.WV)({pageStates:(0,o.D5)(),availableFaces:new T,textBlockInteractionState:new D,sessionId:0,active:!1,dirty:!1,saving:!1,mode:s.Edit,fontMismatchTooltip:null,contentEditor:null})){}const R=e=>t=>{const n=t.contentEditorSession.pageStates.get(e);return n?n.loading?i.Loading:i.Loaded:i.Uninitialized},F=e=>t=>{const n=t.contentEditorSession.pageStates.get(e);return n?[...n.textBlocks.map((e=>e.id))]:[]},N=(e,t)=>n=>{const o=n.contentEditorSession.pageStates.get(e);(0,r.kG)(o);for(const e of o.textBlocks)if(e.id==t)return e;return null},O=e=>{const{textBlockInteractionState:t}=e.contentEditorSession;return!t||t.state!==a.Active&&t.state!==a.Selected?null:N(t.pageIndex,t.textBlockId)(e)},j=(e,t)=>n=>{const{textBlockInteractionState:r}=n.contentEditorSession;return r&&r.state===a.Active&&r.pageIndex===e&&r.textBlockId===t},L=e=>e.contentEditorSession.availableFaces,B=(e,t)=>n=>{const{textBlockInteractionState:r}=n.contentEditorSession;return r&&r.state===a.Selected&&r.pageIndex===e&&r.textBlockId===t},K=(e,t)=>n=>{const{textBlockInteractionState:r}=n.contentEditorSession;return r&&r.state===a.Moving&&r.pageIndex===e&&r.textBlockId===t};class V extends((0,o.WV)({x:new l,y:new l})){}class H extends((0,o.WV)({rotation:0,baseSize:new l,skew:0,flip:!1})){}class $ extends((0,o.WV)({params:new H,uiSize:new l})){}},56874:(e,t,n)=>{"use strict";n.d(t,{G:()=>l,Z:()=>a});var r=n(35369),o=n(44077);const i=(0,n(79724).Z)("CustomOverlayItem");class a extends((0,r.WV)({disableAutoZoom:!1,id:null,node:null,noRotate:!1,pageIndex:0,position:new o.E9,onAppear:null,onDisappear:null})){constructor(e){super(e)}}const s=[Node.ELEMENT_NODE,Node.TEXT_NODE,Node.COMMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE],l=e=>{const{disableAutoZoom:t,id:n,node:r,noRotate:a,pageIndex:l,position:c,onAppear:u,onDisappear:d}=e;i("boolean"==typeof t,"`disableAutoZoom` must be a `boolean`"),i("string"==typeof n,"`id` must be a `string`"),i(r instanceof Node,"`node` must be an instance of `Node`"),i(s.includes(r.nodeType),"`node.nodeType` is invalid. Expected one of "+s.join(", ")),i("boolean"==typeof a,"`noRotate` must be a `boolean`"),i("number"==typeof l,"`pageIndex` must be a `number`"),i(c instanceof o.E9,"`position` must be an instance of `PSPDFKit.Geometry.Point`"),u&&i("function"==typeof u,"`onAppear` must be a `function`"),d&&i("function"==typeof d,"`onDisappear` must be a `function`")}},9470:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});const r=Object.freeze([{id:"solid",dashArray:[]},{id:"narrowDots",dashArray:[1,1]},{id:"wideDots",dashArray:[1,3]},{id:"narrowDashes",dashArray:[3,3]},{id:"wideDashes",dashArray:[6,6]}])},25435:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(35369);const o={configuration:null,show:!1,additionalContext:null};class i extends((0,r.WV)(o)){}},65652:(e,t,n)=>{"use strict";n.d(t,{G:()=>l});var r=n(50898),o=n(79724),i=n(24126);const a=(0,o.Z)("DocumentEditorFooterItem"),s=[...i.l.map((e=>e.type)),"custom"],l=e=>{const{type:t,id:n,className:o,onPress:i,node:l}=e;a("string"==typeof t,"Mandatory `type` is either missing or not a `string`"),a(s.indexOf(t)>=0,`Invalid built-in type \`${t}\`. Choose one from ${s.join(", ")}`),"custom"===t&&(a(l,"`node` is mandatory for `custom` footer items."),a(l&&r.a.includes(l.nodeType),"`node.nodeType` is invalid. Expected one of "+r.a.join(", ")),n&&a("string"==typeof n,"`id` must be a `string`"),o&&a("string"==typeof o,"`className` must be a `string`"),i&&a("function"==typeof i,"`onPress` must be a `function`")),n&&a("string"==typeof n,"`id` must be a `string`")}},713:(e,t,n)=>{"use strict";n.d(t,{G:()=>l});var r=n(79724),o=n(18009),i=n(50898);const a=(0,r.Z)("DocumentEditorToolbarItem"),s=[...o.L.map((e=>e.type)),"custom"],l=e=>{const{type:t}=e;a("string"==typeof t,"Mandatory `type` is either missing or not a `string`"),(0,i.G)({...e,type:"custom"},a),a(s.indexOf(t)>=0,`Invalid built-in type \`${t}\`. Choose one from ${s.join(", ")}`)}},92370:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(35369);const o={elements:null,expanded:(0,r.D5)()};class i extends((0,r.WV)(o)){}},2282:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(35369);(0,n(79724).Z)("Font");class o extends((0,r.WV)({name:null,callback:null})){constructor(e){super(e)}}},29435:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(35369);class o extends((0,r.WV)({label:"",value:""})){}},33622:(e,t,n)=>{"use strict";n.d(t,{B:()=>i,Z:()=>o});const r={enumerable:!0,configurable:!1,writable:!1};class o{}function i(e){const t=new o;return Object.defineProperty(t,"clientId",{...r,value:e.clientId}),Object.defineProperty(t,"userId",{...r,value:e.userId}),t}},34923:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(34997);function o(){return(0,r.SK)()}},10734:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(35369);class o extends((0,r.WV)({children:(0,r.aV)(),title:"",color:null,isBold:!1,isItalic:!1,isExpanded:!1,action:null})){}},65739:(e,t,n)=>{"use strict";n.d(t,{j:()=>o,m:()=>r});const r={P:"p",TH:"th",TD:"td",Table:"table",TBody:"tbody",THead:"thead",TR:"tr",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",Figure:"figure",Link:"span",Span:"span",L:"ul",LI:"li",Part:"div",Sect:"section",Article:"article",Div:"div"},o={P:"paragraph",TH:"cell",TD:"cell",Table:"table",TBody:"table",THead:"table",TR:"row",H1:"heading",H2:"heading",H3:"heading",H4:"heading",H5:"heading",H6:"heading",Figure:"figure",Link:"link",L:"list",LI:"listitem",Sect:"region",Article:"article",Span:void 0,Div:void 0,Part:void 0}},8271:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(35369),o=n(44077);const i={pageSize:new o.$u,pageIndex:0,pageLabel:"",rotation:0,inViewport:!1,contentBlocks:null,textLineScales:null,annotationIds:(0,r.hU)(),customOverlayItemIds:(0,r.l4)(),pageKey:"",textElementFonts:(0,r.D5)(),untransformedRect:new o.UL,transformedRect:new o.UL,matrix:o.sl.IDENTITY,reverseMatrix:o.sl.IDENTITY,rawPdfBoxes:{bleedBox:null,cropBox:null,mediaBox:null,trimBox:null},tabOrder:null};class a extends((0,r.WV)(i)){}},36828:(e,t,n)=>{"use strict";n.d(t,{J:()=>i,Z:()=>o});const r={enumerable:!0,configurable:!1,writable:!1};class o{}function i(e){const t=new o;return Object.defineProperty(t,"index",{...r,value:e.pageIndex}),Object.defineProperty(t,"rotation",{...r,value:90*e.rotation}),Object.defineProperty(t,"label",{...r,value:e.pageLabel}),Object.defineProperty(t,"width",{...r,value:e.pageSize.width}),Object.defineProperty(t,"height",{...r,value:e.pageSize.height}),Object.defineProperty(t,"rawPdfBoxes",{...r,value:{...e.rawPdfBoxes}}),t}},21063:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var r=n(74750),o=n(27122),i=n(93767);const a={[o.f.ANNOTATIONS]:{includeContent:[...r.J]},[o.f.LAYERS]:{lockedLayers:[],iconsAlignment:i.v.END}}},78191:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(35369);class o extends((0,r.WV)({storedSignatures:null,signatureRect:null,signaturePageIndex:null,populateStoredSignatures:()=>Promise.resolve((0,r.aV)()),formFieldsNotSavingSignatures:(0,r.l4)(),formFieldName:null})){}},39934:(e,t,n)=>{"use strict";n.d(t,{Z:()=>B,w:()=>L});var r=n(35369),o=n(44077),i=n(25822),a=n(14178),s=n(78191),l=n(13422),c=n(34723),u=n(78025),d=n(49616),p=n(62083),h=n(65369),f=n(13264),m=n(13349),g=n(38246),v=n(57712),y=n(92370),b=n(47120),w=n(70025),x=n(26637),_=n(79685),S=n(58342),C=n(76934),E=n(25673),k=n(28233),z=n(21063),P=n(96988),D=n(97281),A=n(58163),T=n(94327),I=n(1385),M=n(10983),R=n(8898),F=n(76596),N=n(25435);const O={reuseState:null,backend:null,pages:(0,r.aV)(),totalPages:0,debugMode:!1,isDebugConsoleVisible:!1,rootElement:null,scrollElement:null,frameWindow:null,containerRect:new o.UL,connectionFailureReason:null,connectionState:new i.Z({name:a.F.CONNECTING}),scrollbarOffset:0,currentTextSelection:null,inlineTextMarkupToolbar:!0,annotations:(0,r.D5)(),attachments:(0,r.D5)(),formFields:(0,r.D5)(),formattedFormFieldValues:(0,r.D5)(),editingFormFieldValues:(0,r.D5)(),readOnlyEnabled:k.J.NO,formsEnabled:!0,formDesignMode:!1,showAnnotations:!0,showComments:!0,showAnnotationNotes:!0,printingEnabled:!0,exportEnabled:!0,selectedAnnotationIds:(0,r.l4)(),selectedAnnotationShouldDrag:null,selectedAnnotationMode:null,selectedTextOnEdit:!1,shadowRoot:null,interactionMode:null,interactionsDisabled:!1,showToolbar:!0,enableAnnotationToolbar:!0,disablePointSnapping:!1,sidebarMode:null,sidebarOptions:z.T,sidebarPlacement:h.d.START,showSignatureValidationStatus:m.W.NEVER,hoverAnnotationIds:(0,r.l4)(),hoverAnnotationNote:null,activeAnnotationNote:null,clientsChangeCallback:()=>{},searchState:new l.Z,clientPermissions:new d.Z,backendPermissions:new u.Z,documentPermissions:new p.Z,inkEraserCursorWidth:0,isPrinting:!1,printLoadingIndicatorProgress:null,toolbarItems:(0,r.aV)(),electronicSignatureColorPresets:[],electronicSignatureDefaultTextCallback:null,annotationToolbarHeight:0,annotationPresets:(0,r.D5)(),annotationPresetIds:(0,r.D5)(),currentItemPreset:null,stampAnnotationTemplates:[],viewportState:new c.Z,annotationManager:null,bookmarkManager:null,formFieldManager:null,formFieldValueManager:null,commentManager:null,changeManager:null,searchProvider:null,autoSaveMode:b.u.IMMEDIATE,eventEmitter:new _.Z,printMode:w.X.DOM,printQuality:x.g.LOW,features:(0,r.aV)(),signatureFeatureAvailability:null,customOverlayItems:(0,r.D5)(),locale:"en",annotationCreatorName:null,signatureState:new s.Z,annotationCreatorNameReadOnly:!1,hasPassword:!1,resolvePassword:null,isUnlockedViaModal:!1,transformClientToPage:e=>e,documentOutlineState:new y.Z,annotationsIdsToDelete:null,renderPageCallback:null,annotationTooltipCallback:null,isEditableAnnotation:null,isEditableComment:null,editableAnnotationTypes:(0,r.l4)(g.Z),customRenderers:null,customUIStore:null,documentHandle:null,documentId:null,allowedTileScales:"all",isDocumentHandleOutdated:!1,toolbarPlacement:f.p.TOP,comments:(0,r.D5)(),commentThreads:(0,r.D5)(),isSigning:!1,isApplyingRedactions:!1,digitalSignatures:null,previewRedactionMode:!1,canScrollWhileDrawing:!1,isAPStreamRendered:()=>!0,invalidAPStreams:(0,r.D5)(),collapseSelectedNoteContent:!1,restrictAnnotationToPageBounds:!0,hasFetchedInitialRecordsFromInstant:!1,group:void 0,documentEditorFooterItems:(0,r.aV)(),electronicSignatureCreationModes:(0,r.hU)(v.Z),signingFonts:(0,r.hU)(S.Z),documentEditorToolbarItems:(0,r.aV)(),isHistoryEnabled:!1,areClipboardActionsEnabled:!1,historyChangeContext:C.j.DEFAULT,undoActions:(0,r.aV)(),redoActions:(0,r.aV)(),historyIdsMap:(0,r.D5)(),a11yStatusMessage:"",lastToolbarActionUsedKeyboard:!1,onOpenURI:null,onAnnotationResizeStart:void 0,documentComparisonState:null,keepSelectedTool:!1,instance:null,dateTimeString:null,sidebarWidth:0,annotationToolbarItems:null,focusedAnnotationIds:(0,r.l4)(),annotationToolbarColorPresets:null,renderPagePreview:!0,onWidgetAnnotationCreationStart:null,formDesignerUnsavedWidgetAnnotation:null,inkEraserMode:E.b.POINT,firstCurrentPageIndex:0,arePageSizesLoaded:null,inlineTextSelectionToolbarItems:null,measurementSnapping:!0,measurementPrecision:D.L.TWO,measurementScale:new A.Z({unitFrom:T.s.INCHES,unitTo:I.K.INCHES,fromValue:1,toValue:1}),measurementToolState:null,measurementValueConfiguration:null,measurementScales:null,APStreamVariantsRollover:(0,r.l4)(),APStreamVariantsDown:(0,r.l4)(),contentEditorSession:new P.aN,showExitContentEditorDialog:!1,linkAnnotationMode:!1,anonymousComments:!1,annotationsGroups:(0,r.D5)(),selectedGroupId:null,enableRichText:()=>!1,richTextEditorRef:null,multiAnnotationsUsingShortcut:null,disablePullToRefresh:!1,mentionableUsers:[],maxMentionSuggestions:5,isMultiSelectionEnabled:!0,widgetAnnotationToFocus:null,onCommentCreationStart:null,defaultAutoCloseThreshold:M.W3,hintLines:null,scrollDisabled:!1,customFontsReadableNames:(0,r.l4)(),secondaryMeasurementUnit:null,activeMeasurementScale:null,isCalibratingScale:!1,dynamicFonts:null,enableAlwaysScrollToZoom:!1,noLicenseKey:!1,evaluation:void 0,buttonToImportIconFor:null,documentEditorConfig:M.mc,flattenSignedFormFieldOnExport:!1,OCGLayers:null,visibleOCGLayers:[],theme:R.Q.AUTO,ui:F.m,documentAssistant:new N.Z,promptContentEditorDocumentDownload:!1,promptContentEditorCannotSaveChanges:!1,isServerModeDownloadingWASM:!1,isServerModeDownloadingDocument:!1},j={pages:(0,r.aV)(),annotations:(0,r.D5)(),attachments:(0,r.D5)(),formFields:(0,r.D5)(),comments:(0,r.D5)(),commentThreads:(0,r.D5)()};class L extends((0,r.WV)(j)){}class B extends((0,r.WV)(O)){}},34390:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(35369),o=n(44077);class i extends((0,r.WV)({id:null,pageIndex:null,boundingBox:new o.UL,contents:"",hints:null})){}},50898:(e,t,n)=>{"use strict";n.d(t,{G:()=>i,a:()=>o});const r=(0,n(79724).Z)("ToolItem"),o=[Node.ELEMENT_NODE,Node.TEXT_NODE,Node.DOCUMENT_FRAGMENT_NODE],i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;const{type:n,id:i,title:a,className:s,icon:l,onPress:c,disabled:u,selected:d,node:p}=e;t("custom"===n,"Mandatory `type` is either missing or not `custom`"),p&&(t("custom"===n,"`node` is only supported for `custom` tool items."),t(o.includes(p.nodeType),"`node.nodeType` is invalid. Expected one of "+o.join(", "))),i&&t("string"==typeof i,"`id` must be a `string`"),a&&t("string"==typeof a,"`title` must be a `string`"),s&&t("string"==typeof s,"`className` must be a `string`"),l&&t("string"==typeof l,"`icon` must be a `string`"),c&&t("function"==typeof c,"`onPress` must be a `function`"),"disabled"in e&&t("boolean"==typeof u,"`disabled` must be a `boolean`"),"selected"in e&&t("boolean"==typeof d,"`selected` must be a `boolean`")}},6197:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=n(73417),o=n(79724),i=n(50898);const a=(0,o.Z)("ToolbarItem"),s=e=>{const{type:t,mediaQueries:n,preset:o}=e;a("string"==typeof t,"Mandatory `type` is either missing or not a `string`"),(0,i.G)({...e,type:"custom"},a),a(r._o.includes(t),`Invalid built-in type \`${t}\`. Choose one from ${r._o.join(", ")}`),n&&(a(Array.isArray(n),"`mediaQueries` must be an `array`"),a(n.length>0,"`mediaQueries` must not be an empty `array`"),n.forEach((e=>{a("string"==typeof e,`Invalid media query: \`${e}\``);const t=e.split("(").length,n=e.split(")").length;0===t&&0===n||a(t===n,`Detected unbalanced parenthesis in the media query: ${e}`)}))),"preset"in e&&a("string"==typeof o,"`preset` must be a `string`")}},90093:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(15359),o=n(35369),i=n(10983),a=n(80233),s=n(14286),l=n(2464),c=n(65369),u=n(81777),d=n(13349),p=n(21063);const h="You tried to call a function on ViewState that requires a PSPDFKit.Instance.\nThis is possible, when you use a ViewState that is obtained via Instance#viewState, Instance.setViewState or by setting the instance value of a ViewState explicitly.";class f extends((0,o.WV)({currentPageIndex:0,zoom:u.c.AUTO,zoomStep:i.V4,pagesRotation:0,layoutMode:s.X.SINGLE,scrollMode:l.G.CONTINUOUS,showToolbar:!0,enableAnnotationToolbar:!0,allowPrinting:!0,allowExport:!0,interactionMode:null,readOnly:!1,showAnnotations:!0,showComments:!0,showAnnotationNotes:!0,sidebarMode:null,sidebarOptions:p.T,sidebarPlacement:c.d.START,spreadSpacing:i.YJ,pageSpacing:i.Sk,keepFirstSpreadAsSinglePage:!1,viewportPadding:new a.Z,instance:null,formDesignMode:!1,showSignatureValidationStatus:d.W.NEVER,previewRedactionMode:!1,canScrollWhileDrawing:!1,keepSelectedTool:!1,resolvedLayoutMode:s.X.SINGLE,sidebarWidth:0,disablePointSnapping:!1,enableAlwaysScrollToZoom:!1,forceRenderWidgetsInAnnotationsOrder:!1,prerenderedPageSpreads:i.J8,showDocumentAssistant:!1})){zoomIn(){if(!this.instance)throw new r.p2(h);this.instance.zoomStep||(this.instance.zoomStep=i.V4);const{maximumZoomLevel:e}=this.instance;let t=this.instance.currentZoomLevel*this.instance.zoomStep;return t>e&&(t=e),this.set("zoom",t)}zoomOut(){if(!this.instance)throw new r.p2(h);this.instance.zoomStep||(this.instance.zoomStep=i.V4);const{minimumZoomLevel:e}=this.instance;let t=this.instance.currentZoomLevel/this.instance.zoomStep;return t<e&&(t=e),this.set("zoom",t)}rotateLeft(){return this.update("pagesRotation",(e=>(e+270)%360))}rotateRight(){return this.update("pagesRotation",(e=>(e+90)%360))}goToNextPage(){if(!this.instance)throw new r.p2(h);let e=this.currentPageIndex+1;return e>this.instance.totalPageCount-1&&(e=this.instance.totalPageCount-1),this.set("currentPageIndex",e)}goToPreviousPage(){let e=this.currentPageIndex-1;return e<0&&(e=0),this.set("currentPageIndex",e)}}},80233:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(35369),o=n(10983);class i extends((0,r.WV)({horizontal:o.Kk,vertical:o.Kk})){}},34723:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(35369),o=n(10983),i=n(14286),a=n(2464),s=n(81777),l=n(44077);const c={zoomLevel:1,zoomMode:s.c.AUTO,layoutMode:i.X.SINGLE,scrollMode:a.G.CONTINUOUS,scrollPosition:new l.E9,currentPageIndex:0,viewportRect:new l.UL,pageSizes:(0,r.aV)(),commentMode:null,pagesRotation:0,viewportPadding:new l.E9({x:o.Kk,y:o.Kk}),spreadSpacing:o.YJ,pageSpacing:o.Sk,keepFirstSpreadAsSinglePage:!1,minDefaultZoomLevel:o.cY,maxDefaultZoomLevel:o.QS,zoomStep:o.V4,lastScrollUsingKeyboard:!1,documentComparisonMode:null,disablePointSnapping:!1,enableAlwaysScrollToZoom:!1,forceRenderWidgetsInAnnotationsOrder:!1,prerenderedPageSpreads:5};class u extends(r.WV(c)){}},690:(e,t,n)=>{"use strict";n.d(t,{D2:()=>u,Q:()=>d,aU:()=>a,co:()=>c,uV:()=>s,zR:()=>l});var r=n(96156),o=n(15359),i=n(9933);class a extends i.D{constructor(e){if(super(e),(0,r.Z)(this,"subActions",null),this.subActions=e?.subActions,this.constructor===a)throw new o.p2("PSPDFKit.Actions.Action is an abstract base class and can not be instantiated")}}(0,i.V)(a);const s=1,l=1,c=2,u=3,d=4},27922:(e,t,n)=>{"use strict";n.d(t,{b:()=>a});var r=n(96156),o=n(9933),i=n(690);class a extends i.aU{constructor(e){super(e)}}(0,r.Z)(a,"defaultValues",{script:""}),(0,o.V)(a)},96706:(e,t,n)=>{"use strict";n.d(t,{aU:()=>r.aU,Di:()=>a,Qr:()=>s,_6:()=>l,ZD:()=>u,bp:()=>d.b,b:()=>p,oH:()=>h,BO:()=>f,pl:()=>m,lm:()=>g});var r=n(690),o=n(96156),i=n(9933);class a extends r.aU{constructor(e){super(e)}}(0,o.Z)(a,"defaultValues",{pageIndex:null}),(0,i.V)(a);class s extends r.aU{constructor(e){super(e)}}(0,o.Z)(s,"defaultValues",{newWindow:!1,relativePath:"",targetType:"parent"}),(0,i.V)(s);class l extends r.aU{constructor(e){super(e)}}(0,o.Z)(l,"defaultValues",{relativePath:"",namedDestination:""}),(0,i.V)(l);var c=n(35369);class u extends r.aU{constructor(e){super(e)}}(0,o.Z)(u,"defaultValues",{hide:!0,annotationReferences:(0,c.aV)()}),(0,i.V)(u);var d=n(27922);class p extends r.aU{constructor(e){super(e)}}(0,o.Z)(p,"defaultValues",{filePath:null}),(0,i.V)(p);class h extends r.aU{constructor(e){super(e)}}(0,o.Z)(h,"defaultValues",{action:null}),(0,i.V)(h);class f extends r.aU{constructor(e){super(e)}}(0,o.Z)(f,"defaultValues",{fields:null,includeExclude:!1}),(0,i.V)(f);class m extends r.aU{constructor(e){super(e)}}(0,o.Z)(m,"defaultValues",{uri:null,fields:null,includeExclude:!1,includeNoValueFields:!0,exportFormat:!0,getMethod:!1,submitCoordinated:!1,xfdf:!1,includeAppendSaves:!1,includeAnnotations:!1,submitPDF:!1,canonicalFormat:!1,excludeNonUserAnnotations:!1,excludeFKey:!1,embedForm:!1}),(0,i.V)(m);class g extends r.aU{constructor(e){super(e)}}(0,o.Z)(g,"defaultValues",{uri:null}),(0,i.V)(g)},23951:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(96156),o=n(15359),i=n(44077),a=n(9933);class s extends a.D{constructor(e){if(super(e),this.constructor===s)throw new o.p2("PSPDFKit.Annotations.Annotation is an abstract base class and can not be instantiated")}}(0,r.Z)(s,"defaultValues",{id:null,name:null,subject:null,pdfObjectId:null,pageIndex:null,boundingBox:new i.UL,opacity:1,action:null,note:null,creatorName:null,createdAt:new Date(0),updatedAt:new Date(0),customData:null,noPrint:!1,noZoom:!1,noRotate:!1,noView:!1,locked:!1,lockedContents:!1,readOnly:!1,hidden:!1,blendMode:"normal",additionalActions:null,isCommentThreadRoot:!1,isAnonymous:!1,group:void 0,isEditable:void 0,isDeletable:void 0,canSetGroup:void 0,canReply:void 0,APStreamCache:void 0,rotation:0}),(0,a.V)(s);const l=s},81026:(e,t,n)=>{"use strict";n.d(t,{FN:()=>u,Yu:()=>d,p1:()=>c});var r=n(96156),o=n(34997),i=n(4715),a=n(44077),s=n(16006),l=n(9933);const c=32;class u extends i.Qi{}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;if(e){const r=p(e,t,n);return new u({id:(0,o.SK)(),pageIndex:e.pageIndex,boundingBox:new a.UL({left:r.x,top:r.y,width:t,height:n}),text:{format:"plain",value:e.note??""},parentAnnotation:e,position:r})}return new u({id:(0,o.SK)(),notePosition:new a.E9})}function p(e,t,n){let r=null;if(e instanceof i.Zc)e.lines.isEmpty()||e.lines.get(0)?.isEmpty()||(r=e.lines.get(0)?.get(0));else if(e instanceof s.Z||e instanceof i.om){if(e.points&&e.points.size>=2){const t=e.points.get(0),n=e.points.get(1);r=new a.E9({x:(t.x+n.x)/2,y:(t.y+n.y)/2})}}else if(e instanceof i.o9){const t=e.startPoint,n=e.endPoint;r=new a.E9({x:(t.x+n.x)/2,y:(t.y+n.y)/2})}else if(e instanceof i.On)return new a.E9({x:e.boundingBox.right+4,y:e.boundingBox.getCenter().y-n/2});return r||(r=new a.E9({x:e.boundingBox.getCenter().x,y:e.boundingBox.top})),r.set("x",r.x-t/2).set("y",r.y-n/2)}(0,r.Z)(u,"defaultValues",{parentAnnotation:null,position:new a.E9,notePosition:new a.E9}),(0,l.V)(u)},4526:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(96156),o=n(23951),i=n(9933);class a extends o.Z{}(0,r.Z)(a,"defaultValues",{description:null,fileName:null,contentType:null,imageAttachmentId:null,isSignature:!1,xfdfAppearanceStream:null,xfdfAppearanceStreamOriginalPageRotation:null}),(0,r.Z)(a,"readableName","Image"),(0,i.V)(a);const s=a},55752:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(96156),o=n(35369),i=n(23951),a=n(60379),s=n(9933);class l extends i.Z{}(0,r.Z)(l,"defaultValues",{lines:(0,o.aV)(),lineWidth:5,strokeColor:a.Z.BLUE,backgroundColor:null,isDrawnNaturally:!1,isSignature:!1}),(0,r.Z)(l,"readableName","Ink"),(0,s.V)(l);const c=l},96726:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(96156),o=n(23951),i=n(9933);class a extends o.Z{}(0,r.Z)(a,"defaultValues",{description:null,fileName:null,contentType:null,mediaAttachmentId:null}),(0,r.Z)(a,"readableName","Media"),(0,i.V)(a)},18726:(e,t,n)=>{"use strict";n.d(t,{W:()=>l,Z:()=>u});var r=n(96156),o=n(23951),i=n(60379),a=n(59062),s=n(9933);const l=[{color:new i.Z({r:255,g:216,b:63}),localization:{id:"yellow",defaultMessage:"Yellow",description:"Yellow color"}},{color:new i.Z({r:255,g:127,b:0}),localization:{id:"orange",defaultMessage:"Orange",description:"Orange, the color"}},{color:new i.Z({r:255,g:51,b:0}),localization:{id:"red",defaultMessage:"Red",description:"Red, the color"}},{color:new i.Z({r:229,g:51,b:255}),localization:{id:"fuchsia",defaultMessage:"Fuchsia",description:"Fuchsia, the color"}},{color:new i.Z({r:0,g:153,b:255}),localization:{id:"blue",defaultMessage:"Blue",description:"Blue, the color"}},{color:new i.Z({r:114,g:255,b:0}),localization:{id:"green",defaultMessage:"Green",description:"Green, the color"}}];class c extends o.Z{}(0,r.Z)(c,"isEditable",!0),(0,r.Z)(c,"readableName","Note"),(0,r.Z)(c,"defaultValues",{text:{format:"plain",value:""},icon:a.Zi.COMMENT,color:l.find((e=>"yellow"===e.localization.id))?.color}),(0,s.V)(c);const u=c},94732:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(96156),o=n(67041),i=n(60379),a=n(9933);class s extends o.Z{}(0,r.Z)(s,"readableName","Redaction"),(0,r.Z)(s,"defaultValues",{color:i.Z.RED,fillColor:i.Z.BLACK,outlineColor:i.Z.RED,overlayText:null,repeatOverlayText:null,rotation:0}),(0,a.V)(s)},70964:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(96156),o=n(23951),i=n(60379),a=n(9933);class s extends o.Z{isMeasurement(){return null!==this.measurementScale}}(0,r.Z)(s,"readableName","Shape"),(0,r.Z)(s,"defaultValues",{strokeWidth:5,strokeColor:i.Z.BLUE,fillColor:null,strokeDashArray:null,measurementPrecision:null,measurementScale:null}),(0,a.V)(s);const l=s},29977:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>u,a$:()=>s,k1:()=>l,pY:()=>a});var r=n(96156),o=n(23951),i=n(9933);const a={Approved:{},NotApproved:{},Draft:{},Final:{},Completed:{},Confidential:{},ForPublicRelease:{},NotForPublicRelease:{},ForComment:{},Void:{},PreliminaryResults:{},InformationOnly:{},Rejected:{},Accepted:{},InitialHere:{},SignHere:{},Witness:{},AsIs:{},Departmental:{},Experimental:{},Expired:{},Sold:{},TopSecret:{},Revised:{includeDate:!0,includeTime:!0},RejectedWithText:{includeDate:!0,includeTime:!0},Custom:{}},s={RejectedWithText:"Rejected"},l=e=>s[e]||e;class c extends o.Z{}(0,r.Z)(c,"defaultValues",{stampType:"Custom",title:null,subtitle:null,color:null,xfdfAppearanceStream:null,xfdfAppearanceStreamOriginalPageRotation:null}),(0,r.Z)(c,"readableName","Stamp"),(0,i.V)(c);const u=c},13538:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(96156),o=n(80567),i=n(23951),a=n(60379),s=n(9933);class l extends i.Z{}(0,r.Z)(l,"defaultValues",{text:{format:"plain",value:""},fontColor:a.Z.BLACK,backgroundColor:null,font:o.vt.first()||"sans-serif",fontSize:18,isBold:!1,isItalic:!1,horizontalAlign:"left",verticalAlign:"top",callout:null,borderStyle:null,borderWidth:null,borderColor:null,isFitting:!1,lineHeightFactor:null}),(0,r.Z)(l,"isEditable",!0),(0,r.Z)(l,"readableName","Text"),(0,r.Z)(l,"fontSizePresets",Object.freeze([4,6,8,10,12,14,18,24,36,48,64,72,96,144,192,200])),(0,s.V)(l);const c=l},67041:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(96156),o=n(35369),i=n(23951),a=n(60379),s=n(9933);class l extends i.Z{}(0,r.Z)(l,"defaultValues",{rects:(0,o.aV)(),color:a.Z.BLACK,blendMode:"normal"}),(0,r.Z)(l,"readableName","Text-Markup"),(0,s.V)(l);const c=l},66701:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(96156),o=n(23951),i=n(9933);class a extends o.Z{}(0,r.Z)(a,"defaultValues",{formFieldName:null,borderColor:null,borderStyle:null,borderDashArray:null,borderWidth:null,backgroundColor:null,fontSize:null,font:null,isBold:!1,isItalic:!1,fontColor:null,horizontalAlign:null,verticalAlign:null,additionalActions:null,lineHeightFactor:null,buttonIconUpdatedAt:null}),(0,r.Z)(a,"readableName","Widget"),(0,i.V)(a);const s=a},4715:(e,t,n)=>{"use strict";n.d(t,{q6:()=>r.Z,Jn:()=>P,Xs:()=>f.Z,FV:()=>l,sK:()=>c.Z,Zc:()=>u.Z,o9:()=>p.Z,R1:()=>y,Hu:()=>A.Z,Qi:()=>b.Z,Hi:()=>m.Z,om:()=>g.Z,b3:()=>h.Z,Wk:()=>D.Z,UX:()=>d.Z,hL:()=>w,GI:()=>x.ZP,R9:()=>_,gd:()=>S.default,On:()=>i.Z,xu:()=>C,Ih:()=>k,x_:()=>z.Z});var r=n(23951),o=n(96156),i=n(67041),a=n(60379),s=n(9933);class l extends i.Z{}(0,o.Z)(l,"className","highlight"),(0,o.Z)(l,"readableName","Highlight"),(0,o.Z)(l,"defaultValues",{blendMode:"multiply",color:a.Z.LIGHT_YELLOW}),(0,s.V)(l);var c=n(4526),u=n(55752),d=n(70964),p=n(71479),h=n(14165),f=n(9513),m=n(16006),g=n(45874);class v extends r.Z{}(0,o.Z)(v,"readableName","Link"),(0,o.Z)(v,"defaultValues",{borderWidth:0,borderColor:null,borderStyle:null,opacity:1}),(0,s.V)(v);const y=v;var b=n(18726);class w extends i.Z{}(0,o.Z)(w,"className","squiggle"),(0,o.Z)(w,"readableName","Squiggle"),(0,o.Z)(w,"defaultValues",{color:a.Z.RED}),(0,s.V)(w);var x=n(29977);class _ extends i.Z{}(0,o.Z)(_,"className","strikeout"),(0,o.Z)(_,"readableName","Strike Out"),(0,o.Z)(_,"defaultValues",{color:a.Z.RED}),(0,s.V)(_);var S=n(13538);class C extends i.Z{}(0,o.Z)(C,"className","underline"),(0,o.Z)(C,"readableName","Underline"),(0,o.Z)(C,"defaultValues",{color:a.Z.BLACK}),(0,s.V)(C);class E extends r.Z{}(0,s.V)(E);const k=E;var z=n(66701);class P extends r.Z{}(0,o.Z)(P,"readableName","Comment-Marker"),(0,s.V)(P);var D=n(94732),A=n(96726)},9513:(e,t,n)=>{"use strict";n.d(t,{F:()=>c,Z:()=>u});var r=n(96156),o=n(70964),i=n(44077),a=n(10983),s=n(9933);class l extends o.Z{constructor(e){super(c(e))}}function c(e){if(!e)return;const t={...e};if(Number(e.cloudyBorderIntensity)>0&&!e.cloudyBorderInset){const n=Number(e.cloudyBorderIntensity)*a.St+(e.strokeWidth||o.Z.defaultValues.strokeWidth)/2;return t.cloudyBorderInset=i.eB.fromValue(n),t}return t}(0,r.Z)(l,"defaultValues",{cloudyBorderIntensity:null,cloudyBorderInset:null,measurementBBox:null}),(0,r.Z)(l,"readableName","Ellipse"),(0,s.V)(l);const u=l},71479:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(96156),o=n(70964),i=n(44077),a=n(9933);class s extends o.Z{}(0,r.Z)(s,"defaultValues",{startPoint:new i.E9,endPoint:new i.E9,lineCaps:null}),(0,r.Z)(s,"readableName","Line"),(0,a.V)(s);const l=s},16006:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(96156),o=n(35369),i=n(70964),a=n(9933);class s extends i.Z{}(0,r.Z)(s,"defaultValues",{points:(0,o.aV)(),cloudyBorderIntensity:null}),(0,r.Z)(s,"readableName","Polygon"),(0,a.V)(s);const l=s},45874:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(96156),o=n(35369),i=n(70964),a=n(9933);class s extends i.Z{}(0,r.Z)(s,"defaultValues",{points:(0,o.aV)(),lineCaps:null}),(0,r.Z)(s,"readableName","Polyline"),(0,a.V)(s);const l=s},14165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(96156),o=n(70964),i=n(9513),a=n(9933);class s extends o.Z{constructor(e){super((0,i.F)(e))}}(0,r.Z)(s,"defaultValues",{cloudyBorderIntensity:null,cloudyBorderInset:null,measurementBBox:null}),(0,r.Z)(s,"readableName","Rectangle"),(0,a.V)(s);const l=s},56207:(e,t,n)=>{"use strict";n.d(t,{Gu:()=>c,ZP:()=>l,vQ:()=>u});var r=n(96156),o=n(15359),i=n(35369),a=n(92310);const s={id:null,rootId:null,pageIndex:null,pdfObjectId:null,creatorName:null,createdAt:new Date(0),updatedAt:new Date(0),text:{format:"xhtml",value:null},customData:null,group:void 0,isEditable:void 0,isDeletable:void 0,canSetGroup:void 0,isAnonymous:void 0};class l extends(i.WV(s)){getMentionedUserIds(){const e=this.text.value;(0,o.kG)("string"==typeof e,"`text.value` must be of type `string`");const t=(new DOMParser).parseFromString(e,"text/html").body.querySelectorAll("span[data-user-id]"),n=Array.from(t).map((e=>e.getAttribute("data-user-id"))).filter(o.lH);return i.l4(n)}}(0,r.Z)(l,"toSerializableObject",(e=>(0,a.o)(e,e.rootId))),(0,r.Z)(l,"fromSerializableObject",(e=>(0,a.z)(e.id||null,e)));const c=e=>{(0,o.kG)("string"==typeof e.id,"`id` must be of type `string`"),(0,o.kG)("string"==typeof e.rootId,"`rootId` must be of type `string`"),(0,o.kG)("number"==typeof e.pageIndex,"`pageIndex` must be of type `number`"),(0,o.kG)(null==e.pdfObjectId||"number"==typeof e.pdfObjectId,"`pdfObjectId` must be of type `number`"),(0,o.kG)(null==e.creatorName||"string"==typeof e.creatorName,"`creatorName` must be of type `string`"),(0,o.kG)(e.createdAt instanceof Date,"`createdAt` must be a Date"),(0,o.kG)(e.updatedAt instanceof Date,"`updatedAt` must be a Date"),(0,o.kG)("object"==typeof e.text,"`text` must be of type `object`"),(0,o.kG)("string"==typeof e.text.value,"`text` must be of type `string`"),(0,o.kG)("xhtml"===e.text.format||"plain"===e.text.format,"`text.format` must be either `xhtml` or `plain`"),(0,o.kG)(null==e.customData||(0,o.PO)(e.customData),"`customData` must be a JSON-serializable object"),(0,o.kG)(void 0===e.isAnonymous||"boolean"==typeof e.isAnonymous||null==e.isAnonymous,"`isAnonymous` must be of type `boolean`")};function u(e){return(0,o.kG)("string"==typeof e.id,"`id` must be of type `string`"),(0,o.kG)("string"==typeof e.name,"`name` must be of type `string`"),e.avatarUrl&&(0,o.kG)("string"==typeof e.avatarUrl,"`avatarUrl` must be of type `string`"),e.description&&(0,o.kG)("string"==typeof e.description,"`description` must be of type `string`"),(0,o.kG)("string"==typeof e.displayName,"`displayName` must be of type `string`"),e}},74110:(e,t,n)=>{"use strict";n.d(t,{BG:()=>a,FR:()=>c,QA:()=>r,Xl:()=>l,hz:()=>s,qA:()=>i,wk:()=>o});const r={ok:"ok",tampered_document:"tampered_document",failed_to_retrieve_signature_contents:"failed_to_retrieve_signature_contents",failed_to_retrieve_byterange:"failed_to_retrieve_byterange",failed_to_compute_digest:"failed_to_compute_digest",failed_retrieve_signing_certificate:"failed_retrieve_signing_certificate",failed_retrieve_public_key:"failed_retrieve_public_key",failed_encryption_padding:"failed_encryption_padding",tampered_or_invalid_timestamp:"tampered_or_invalid_timestamp",general_failure:"general_failure"},o={ok:"ok",ok_but_self_signed:"ok_but_self_signed",ok_but_could_not_check_revocation:"ok_but_could_not_check_revocation",untrusted:"untrusted",expired:"expired",not_yet_valid:"not_yet_valid",invalid:"invalid",revoked:"revoked",failed_to_retrieve_signature_contents:"failed_to_retrieve_signature_contents",general_validation_problem:"general_validation_problem"},i={valid:"valid",warning:"warning",error:"error"},a={CMS:"CMS",CAdES:"CAdES"},s={b_b:"b-b",b_t:"b-t",b_lt:"b-lt"},l={cms:"cms",cades:"cades",documentTimestamp:"documentTimestamp"},c={raw:"raw",pkcs7:"pkcs7"}},69842:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});const r={valid:"valid",warning:"warning",error:"error",not_signed:"not_signed"}},2841:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});let r=function(e){return e.DRAW_START="DRAW_START",e.DRAW_END="DRAW_END",e.TEXT_EDIT_START="TEXT_EDIT_START",e.TEXT_EDIT_END="TEXT_EDIT_END",e.SELECT_START="SELECT_START",e.SELECT_END="SELECT_END",e.MOVE_START="MOVE_START",e.MOVE_END="MOVE_END",e.RESIZE_START="RESIZE_START",e.RESIZE_END="RESIZE_END",e.ROTATE_START="ROTATE_START",e.ROTATE_END="ROTATE_END",e.DELETE_START="DELETE_START",e.DELETE_END="DELETE_END",e.PROPERTY_CHANGE="PROPERTY_CHANGE",e}({})},7654:(e,t,n)=>{"use strict";n.d(t,{Gu:()=>u,Mr:()=>s,ZP:()=>c});var r=n(96156),o=n(35369),i=n(15359),a=n(9933);const s=["readOnly","required","noExport"];class l extends a.D{constructor(e){if(super(e),this.constructor===l)throw new i.p2("PSPDFKit.FormFields.FormField is an abstract base class and can not be instantiated")}}(0,r.Z)(l,"defaultValues",{id:null,pdfObjectId:null,annotationIds:(0,o.aV)(),name:null,label:"",readOnly:!1,required:!1,noExport:!1,additionalActions:null,group:void 0,isEditable:void 0,isFillable:void 0,isDeletable:void 0,canSetGroup:void 0}),(0,a.V)(l);const c=l;function u(e){return e.has("name")}},48169:(e,t,n)=>{"use strict";n.d(t,{X:()=>s,Z:()=>a});var r=n(96156),o=n(9933);class i extends o.D{constructor(e){super(e),void 0!==e?.optionIndexes&&(this.optionIndexes=e.optionIndexes),void 0!==e?.isFitting&&(this.isFitting=e.isFitting)}}(0,r.Z)(i,"defaultValues",{name:null,value:null}),(0,o.V)(i);const a=i;function s(e){return`form-field-value/${e.name}`}},1858:(e,t,n)=>{"use strict";n.d(t,{R0:()=>s,rF:()=>u,Dz:()=>p,fB:()=>f,Wi:()=>o.ZP,KD:()=>m.Z,Vi:()=>v,XQ:()=>b,Yo:()=>S,$o:()=>x});var r=n(96156),o=n(7654),i=n(9933);class a extends o.ZP{}(0,r.Z)(a,"defaultValues",{buttonLabel:null}),(0,i.V)(a);const s=a;var l=n(35369);class c extends o.ZP{}(0,r.Z)(c,"defaultValues",{values:(0,l.aV)(),defaultValues:(0,l.aV)(),options:(0,l.aV)(),optionIndexes:void 0}),(0,i.V)(c);const u=c;class d extends o.ZP{}(0,r.Z)(d,"defaultValues",{options:(0,l.aV)(),values:(0,l.aV)(),defaultValues:(0,l.aV)(),multiSelect:!1,commitOnChange:!1,additionalActions:null}),(0,i.V)(d);const p=d;class h extends p{}(0,r.Z)(h,"defaultValues",{edit:!1,doNotSpellCheck:!1}),(0,i.V)(h);const f=h;var m=n(48169);class g extends p{}(0,i.V)(g);const v=g;class y extends o.ZP{}(0,r.Z)(y,"defaultValues",{options:(0,l.aV)(),noToggleToOff:!1,radiosInUnison:!0,value:"",defaultValue:"",optionIndexes:void 0}),(0,i.V)(y);const b=y;class w extends o.ZP{}(0,r.Z)(w,"defaultValues",{password:!1,maxLength:null,doNotSpellCheck:!1,doNotScroll:!1,multiLine:!1,comb:!1,value:"",defaultValue:"",additionalActions:null}),(0,i.V)(w);const x=w;class _ extends o.ZP{}const S=_},51065:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(96156),o=n(13205),i=n(9933);class a extends o.Z{constructor(e){super(e)}}(0,r.Z)(a,"defaultValues",{...o.Z.defaultValues,intensity:.5}),(0,i.V)(a);const s=a},13205:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(96156),o=n(9933);class i extends o.D{constructor(e){super(e)}scale(e,t){return this.withMutations((n=>{t||(t=e),n.set("x",this.x*e).set("y",this.y*t)}))}translate(e){let{x:t,y:n}=e;return this.withMutations((e=>{e.set("x",this.x+t).set("y",this.y+n)}))}translateX(e){return this.translate(new i({x:e,y:0}))}translateY(e){return this.translate(new i({x:0,y:e}))}distance(e){return Math.sqrt((e.x-this.x)**2+(e.y-this.y)**2)}rotate(e){e%=360;const{x:t,y:n}=this;switch(e){case 0:return this;case 90:return this.set("x",n).set("y",-t);case 180:return this.set("x",-t).set("y",-n);case 270:return this.set("x",-n).set("y",t);default:{const r=e*Math.PI/180;return this.set("x",Math.cos(r)*t+Math.sin(r)*n).set("y",Math.cos(r)*n-Math.sin(r)*t)}}}apply(e){const[t,n]=e.applyToPoint([this.x,this.y]);return this.withMutations((e=>{e.set("x",t).set("y",n)}))}}(0,r.Z)(i,"defaultValues",{x:0,y:0}),(0,o.V)(i);const a=i},36691:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(96156),o=n(15359),i=n(9933),a=n(13205),s=n(90569);class l extends i.D{constructor(e){super(e)}get right(){return this.left+this.width}get bottom(){return this.top+this.height}static fromClientRect(e){let{top:t,left:n,width:r,height:o}=e;return new l({top:t,left:n,width:r,height:o})}static union(e){const t=e.map((e=>e.top)).min(),n=e.map((e=>e.bottom)).max()-t,r=e.map((e=>e.left)).min(),o=e.map((e=>e.right)).max()-r;return new l({left:r,top:t,width:o,height:n})}static getCenteredRect(e,t){return new l({left:(t.width-e.width)/2,top:(t.height-e.height)/2,width:e.width,height:e.height})}static fromInset(e){return new l({left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top})}static fromPoints(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];(0,o.kG)(4===t.length,"Rect.fromPoints requires 4 points");const r=Math.min(...t.map((e=>e.x))),i=Math.min(...t.map((e=>e.y))),a=Math.max(...t.map((e=>e.x))),s=Math.max(...t.map((e=>e.y)));return new l({left:r,top:i,width:a-r,height:s-i})}expandToIncludePoints(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Math.min(this.left,...t.map((e=>e.x))),o=Math.min(this.top,...t.map((e=>e.y))),i=Math.max(this.left+this.width,...t.map((e=>e.x))),a=Math.max(this.top+this.height,...t.map((e=>e.y)));return new l({left:r,top:o,width:i-r,height:a-o})}static areRectsCloserThan(e,t,n){return Math.abs(e.left-t.left)<=n&&Math.abs(e.top-t.top)<=n&&Math.abs(e.left+e.width-(t.left+t.width))<=n&&Math.abs(e.top+e.height-(t.top+t.height))<=n}static areVerticallyAligned(e,t,n){return Math.abs(e.top-t.top)<=n&&Math.abs(e.top+e.height-(t.top+t.height))<=n}translate(e){let{x:t,y:n}=e;return this.withMutations((e=>{e.set("left",this.left+t).set("top",this.top+n)}))}translateX(e){return this.set("left",this.left+e)}translateY(e){return this.set("top",this.top+e)}scale(e,t){return this.withMutations((n=>{t||(t=e),n.set("left",this.left*e).set("top",this.top*t).set("width",this.width*e).set("height",this.height*t)}))}grow(e){return this.withMutations((t=>{t.set("left",this.left-e).set("top",this.top-e).set("width",this.width+2*e).set("height",this.height+2*e)}))}getLocation(){return new a.Z({x:this.left,y:this.top})}getSize(){return new s.Z({width:this.width,height:this.height})}getCenter(){return new a.Z({x:this.left+this.width/2,y:this.top+this.height/2})}setLocation(e){return this.withMutations((t=>{t.set("left",e.x).set("top",e.y)}))}roundOverlap(){return this.withMutations((e=>{e.set("left",Math.floor(this.left)).set("top",Math.floor(this.top)).set("width",Math.ceil(this.width)).set("height",Math.ceil(this.height))}))}round(){return this.withMutations((e=>{e.set("left",Math.round(this.left)).set("top",Math.round(this.top)).set("width",Math.round(this.width)).set("height",Math.round(this.height))}))}isPointInside(e){return e.x>=this.left&&e.x<=this.right&&e.y>=this.top&&e.y<=this.bottom}isRectInside(e){return this.isPointInside(e.getLocation())&&this.isPointInside(e.getLocation().translate(new a.Z({x:e.width,y:e.height})))}isRectOverlapping(e){return e.left<this.right&&e.right>this.left&&e.top<this.bottom&&e.bottom>this.top}normalize(){return this.withMutations((e=>e.set("left",this.width<0?this.left+this.width:this.left).set("top",this.height<0?this.top+this.height:this.top).set("width",Math.abs(this.width)).set("height",Math.abs(this.height))))}apply(e){const[t,n]=e.applyToPoint([this.left,this.top]),[r,o]=e.applyToVector([this.width,this.height]);return this.withMutations((e=>e.set("left",t).set("top",n).set("width",r).set("height",o))).normalize()}}(0,r.Z)(l,"defaultValues",{left:0,top:0,width:0,height:0}),(0,i.V)(l);const c=l},90569:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(35369);class o extends((0,r.WV)({width:0,height:0})){scale(e){return this.withMutations((t=>{t.set("width",this.width*e).set("height",this.height*e)}))}ceil(){return this.withMutations((e=>{e.set("width",Math.ceil(this.width)).set("height",Math.ceil(this.height))}))}floor(){return this.withMutations((e=>{e.set("width",Math.floor(this.width)).set("height",Math.floor(this.height))}))}swapDimensions(){return this.withMutations((e=>{e.set("width",this.height).set("height",this.width)}))}apply(e){const[t,n]=e.applyToVector([this.width,this.height]);return this.withMutations((e=>{e.set("width",Math.abs(t)).set("height",Math.abs(n))}))}}},44077:(e,t,n)=>{"use strict";n.d(t,{Wm:()=>i.Z,eB:()=>f,E9:()=>o.Z,UL:()=>a.Z,$u:()=>s.Z,sl:()=>p});var r,o=n(13205),i=n(51065),a=n(36691),s=n(90569),l=n(96156),c=n(15359),u=n(9933);class d extends u.D{translate(e){let{x:t,y:n}=e;return this.transform(1,0,0,1,t,n)}translateX(e){return this.translate({x:e,y:0})}translateY(e){return this.translate({x:0,y:e})}scale(e,t){return t||(t=e),this.transform(e,0,0,t,0,0)}transform(e,t,n,r,o,i){const{a,b:s,c:l,d:c,e:u,f:d}=this;return this.withMutations((p=>p.set("a",e*a+n*s).set("b",t*a+r*s).set("c",e*l+n*c).set("d",t*l+r*c).set("e",e*u+n*d+o).set("f",t*u+r*d+i)))}rotate(e){(0,c.kG)(e%90==0,"Only multiples of 90° allowed.");const t=(360-e)*Math.PI/180,n=Math.cos(t),r=Math.sin(t);return this.transform(n,r,-r,n,0,0)}rotateRad(e){const t=Math.cos(e),n=Math.sin(e);return this.transform(t,n,-n,t,0,0)}inverse(){const{a:e,b:t,c:n,d:r,e:o,f:i}=this,a=e*r-t*n;return this.withMutations((s=>s.set("a",r/a).set("b",t/-a).set("c",n/-a).set("d",e/a).set("e",(n*i-r*o)/a).set("f",(e*i-t*o)/-a)))}toCssValue(){const{a:e,b:t,c:n,d:r,e:o,f:i}=this;return`matrix(${e.toFixed(2)}, ${t.toFixed(2)}, ${n.toFixed(2)}, ${r.toFixed(2)}, ${o.toFixed(2)}, ${i.toFixed(2)})`}applyToPoint(e){let[t,n]=e;const{a:r,b:o,c:i,d:a,e:s,f:l}=this;return[r*t+i*n+s,o*t+a*n+l]}applyToVector(e){let[t,n]=e;const{a:r,b:o,c:i,d:a}=this;return[r*t+i*n,o*t+a*n]}}r=d,(0,l.Z)(d,"defaultValues",{a:1,b:0,c:0,d:1,e:0,f:0}),(0,l.Z)(d,"IDENTITY",new r),(0,u.V)(d);const p=d;var h=n(35369);class f extends((0,h.WV)({left:0,top:0,right:0,bottom:0})){static applyToRect(e,t){if(!(e instanceof f))throw new c.p2("`inset` must be an instance of `PSPDFKit.Geometry.Inset`");if(!(t instanceof a.Z))throw new c.p2("`rect` must be an instance of `PSPDFKit.Geometry.Rect`");return new a.Z({top:t.top+e.top,left:t.left+e.left,width:t.width-(e.left+e.right),height:t.height-(e.top+e.bottom)})}static fromRect(e){return new f({left:e.left,top:e.top,right:e.left+e.width,bottom:e.top+e.height})}static fromValue(e){if("number"!=typeof e)throw new c.p2("The provided value must be a number");return new f({top:e,left:e,right:e,bottom:e})}apply(e){const t=e.applyToPoint([this.left,this.top]),n=e.applyToPoint([this.left,this.bottom]),r=e.applyToPoint([this.right,this.top]),o=e.applyToPoint([this.right,this.bottom]),i=Math.min(t[0],n[0],r[0],o[0]),a=Math.max(t[0],n[0],r[0],o[0]),s=Math.min(t[1],n[1],r[1],o[1]),l=Math.max(t[1],n[1],r[1],o[1]);return new f({left:i,right:a,top:s,bottom:l})}setScale(e){return new f({left:this.left*e,right:this.right*e,top:this.top*e,bottom:this.bottom*e})}}},45249:(e,t,n)=>{"use strict";n.d(t,{q6:()=>i.q6,Pg:()=>l,rp:()=>c.Z,R0:()=>a.R0,UW:()=>h,rF:()=>a.rF,Dz:()=>a.Dz,uh:()=>y.Z,Il:()=>f.Z,fB:()=>a.fB,sv:()=>I.ZP,Jn:()=>i.Jn,Bd:()=>O,em:()=>m.Z,b0:()=>w,dc:()=>x,ZS:()=>B,S:()=>k.Z,Wm:()=>o.Wm,Xs:()=>i.Xs,Wi:()=>a.Wi,KD:()=>a.KD,mv:()=>g.Z,Di:()=>r.Di,FV:()=>i.FV,sK:()=>i.sK,Zc:()=>i.Zc,eB:()=>o.eB,bp:()=>r.bp,o9:()=>i.o9,R1:()=>i.R1,Vi:()=>a.Vi,Hu:()=>i.Hu,Qi:()=>i.Qi,sT:()=>P.Z,T3:()=>v.Z,E9:()=>o.E9,Hi:()=>i.Hi,om:()=>i.om,XQ:()=>a.XQ,UL:()=>o.UL,b3:()=>i.b3,UX:()=>i.UX,Yo:()=>a.Yo,dp:()=>z.Z,$u:()=>o.$u,hL:()=>i.hL,GI:()=>i.GI,ZM:()=>b.Z,R9:()=>i.R9,gd:()=>i.gd,$o:()=>a.$o,bi:()=>_.Z,On:()=>i.On,SV:()=>C,Bs:()=>E,lm:()=>r.lm,xu:()=>i.xu,Ih:()=>i.Ih,f7:()=>T.Z,gx:()=>A.Z,Vk:()=>D.Z,x_:()=>i.x_});var r=n(96706),o=n(44077),i=n(4715),a=n(1858),s=n(35369);class l extends((0,s.WV)({data:null})){}var c=n(99745),u=n(96156),d=n(9933);class p extends d.D{}(0,u.Z)(p,"defaultValues",{start:null,knee:null,end:null,cap:null,innerRectInset:null}),(0,d.V)(p);const h=p;var f=n(60379),m=(n(16602),n(25822)),g=(n(56874),n(9470),n(29435)),v=(n(33622),n(8271)),y=(n(36828),n(49616)),b=(n(78025),n(39934));class w extends((0,s.WV)({id:null,pageIndex:null,textLines:(0,s.aV)(),contentElements:(0,s.aV)(),contentBlocks:(0,s.aV)(),contentTreeElementMetadata:null,allowsBlockTypeChildren:!0,boundingBox:null})){}class x extends((0,s.WV)({id:null,pageIndex:null,boundingBox:new o.UL,elementType:null})){}var _=n(34390),S=n(15359);class C extends((0,s.WV)({startNode:null,startOffset:null,endNode:null,endOffset:null})){startAndEndIds(){const e=this.startNode.parentNode,t=this.endNode.parentNode;if(!e||!t)return null;const n=parseInt(e.dataset.textlineId),r=parseInt(t.dataset.textlineId),o=e.dataset.contentblockId,i=t.dataset.contentblockId,a=parseInt(e.dataset.pageIndex),s=parseInt(t.dataset.pageIndex);return(0,S.kG)("number"==typeof n,"selection startId is not a number"),(0,S.kG)("number"==typeof r,"selection endId is not a number"),(0,S.kG)("string"==typeof o,"selection startBlockId is not a string"),(0,S.kG)("string"==typeof i,"selection endBlockId is not a string"),(0,S.kG)("number"==typeof a,"selection start pageIndex is not a number"),(0,S.kG)("number"==typeof s,"selection end pageIndex is not a number"),{startTextLineId:n,endTextLineId:r,startNestedContentBlockId:o,endNestedContentBlockId:i,startPageIndex:a,endPageIndex:s}}}class E extends((0,s.WV)({textRange:null,startTextLineId:null,endTextLineId:null,startNestedContentBlockId:null,endNestedContentBlockId:null,startPageIndex:null,endPageIndex:null})){}var k=n(92370),z=n(78191),P=n(10734),D=n(34723),A=n(80233),T=n(90093),I=n(56207),M=n(79724),R=n(30874);const F=(0,M.Z)("ComparisonOperation"),N={type:R.b.TEXT,options:{numberOfContextWords:0}};class O extends((0,s.WV)(N)){constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};F(void 0===t.numberOfContextWords||"number"==typeof t.numberOfContextWords,"numberOfContextWords must be a number."),super({type:e,options:{...N.options,...t}})}}const j=(0,M.Z)("DocumentDescriptor"),L={filePath:void 0,password:void 0,pageIndexes:[],jwt:void 0};class B extends((0,s.WV)(L)){constructor(e){!function(e){let{filePath:t,pageIndexes:n,password:r,jwt:o}=e;t&&j("string"==typeof t||t instanceof ArrayBuffer,"filePath must be a string or ArrayBuffer.");null!=o&&j("string"==typeof o&&o.length>0,"jwt must be a non-empty string.");null!=r&&j("string"==typeof r&&r.length>0,"password must be a non-empty string.");j(n.length>0,"pageIndexes must be a non-empty array."),j(n.every((e=>"number"==typeof e||Array.isArray(e)&&2===e.length&&e.every((e=>"number"==typeof e)))),"pageIndexes must be an array of numbers or arrays of two numbers.")}(e),super({...e})}}n(11267)},58163:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(35369),o=n(94327),i=n(1385);class a extends((0,r.WV)({unitFrom:o.s.INCHES,unitTo:i.K.INCHES,fromValue:1,toValue:1})){}},68804:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(35369);class o extends((0,r.WV)({pageIndex:null,previewText:"",locationInPreview:null,lengthInPreview:null,rectsOnPage:(0,r.aV)(),isAnnotation:null,annotationRect:null})){}},13422:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(35369);class o extends((0,r.WV)({isFocused:!1,isLoading:!1,term:"",focusedResultIndex:-1,results:(0,r.aV)(),minSearchQueryLength:1})){}},8210:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var r=n(82716),o=n(27122);const i={Sidebar:Object.values(o.f)};function a(e){for(const t in e)if(e.hasOwnProperty(t)){(0,r.k)(void 0!==typeof i[t],`'${t}' is not a customizable UI element. Customizable UI elements are: ${Object.keys(i).join(", ")}`);const n=i[t];(0,r.k)(Object.keys(e[t]).every((e=>n.includes(e))),`The provided custom UI configuration contains one or more invalid keys for "${t}". Valid "${t}" keys are: ${n.join(",")}`),(0,r.k)(Object.values(e[t]).every((e=>"function"==typeof e)),"The custom UI values provided must be callback functions.")}return e}},86037:(e,t,n)=>{"use strict";n.d(t,{C:()=>c,Z:()=>u});var r=n(15359),o=n(44276),i=n(66327),a=n(56554),s=n(44550),l=n(67009);const c="The API you're trying to use requires a digital signatures license. Digital Signatures is a component of PSPDFKit for Web and sold separately.";function u(e,t){t.getSignaturesInfo=function(){const{features:t,backend:n}=e.getState();return(0,r.kG)(t.includes(s.q.DIGITAL_SIGNATURES),c),(0,r.kG)(n),n.getSignaturesInfo().then((t=>(e.dispatch((0,a.Y)(t)),t)))},t.signDocument=function(t,n){const{features:o,backend:u}=e.getState();return(0,r.kG)(o.includes(s.q.DIGITAL_SIGNATURES),c),t&&(0,l.w2)(t,u),"STANDALONE"===u?.type?t?.signingData?(0,r.kG)(void 0===n||void 0===t?.signingData?.privateKey,"On a Standalone deployment, when `signaturePreparationData.signingData.privateKey` is set, `twoStepSignatureCallbackOrSigningServiceData` should not be provided."):(0,r.kG)("function"==typeof n,"On a Standalone deployment, when `signaturePreparationData.signingData` is not provided or does not include a `privateKey`, `twoStepSignatureCallbackOrSigningServiceData` must be a function."):"SERVER"===u?.type&&(0,r.kG)(!n||"object"==typeof n,"On a Server deployment, `twoStepSignatureCallbackOrSigningServiceData` must be a `PSPDFKit.SigningServiceData` object if specified."),e.dispatch((0,i.d9)()),new Promise(((r,o)=>{e.dispatch((0,a.e)(t,n,(()=>{e.dispatch((0,i.t6)()),r()}),(t=>{e.dispatch((0,i.t6)()),o(t)})))}))},t.setSignaturesLTV=async function(t){const{features:n,backend:o}=e.getState();(0,r.kG)(n.includes(s.q.DIGITAL_SIGNATURES),c),(0,r.kG)(!t||Array.isArray(t)&&t.every((e=>Boolean(e instanceof ArrayBuffer&&e.byteLength>0||"string"==typeof e&&e.length>0))),"`certificates` must be an array of strings or ArrayBuffers."),(0,r.kG)(o);const i=await o.setSignaturesLTV(t);return e.dispatch((0,a.Y)(i)),i},t.timestampData=async function(t,n){const{features:i,backend:a}=e.getState();(0,r.kG)(i.includes(s.q.DIGITAL_SIGNATURES),c),(0,r.kG)(a);const l=await a.timestampData(t,n);if(200!=l.response_code)throw new r.p2(`Failed to timestamp data: ${l.error_message}.`);return o.DS.toUint8Array(l.body).buffer}}},75287:(e,t,n)=>{"use strict";n.d(t,{Qr:()=>s,ZP:()=>l,oQ:()=>a});var r=n(15359),o=n(66327),i=n(44550);const a="The API you're trying to use requires a license that includes the Document Assistant component. This is a separate component and thus sold separately.",s="Document Assistant configuration object is required before this feature can be used.";function l(e,t){t.setDocumentAssistantChatSessionId=function(t){const{features:n,documentAssistant:{configuration:l}}=e.getState();(0,r.kG)(t&&"string"==typeof t,"chatSessionId is required and must be a string."),(0,r.kG)(n.includes(i.q.DOCUMENT_ASSISTANT),a),(0,r.kG)(l,s),e.dispatch((0,o.O4)({...l,chatSessionId:t}))}}},4480:(e,t,n)=>{"use strict";n.d(t,{I:()=>l,Z:()=>u});var r=n(15359);function o(e){return(0,r.kG)(Array.isArray(e)&&e.length>0,"Operations must be a non-empty array of operations."),e.forEach((e=>{(0,r.kG)(e.hasOwnProperty("type"),"Invalid operation: no `type` field")})),e}var i=n(70982),a=n(11765),s=n(44550);const l="The API you're trying to use requires a document editing license. Document editing is a component of PSPDFKit for Web and sold separately.",c=["document.change"];function u(e,t){e.getState().eventEmitter.events.push(...c),t.applyOperations=function(t){const{features:n}=e.getState();return(0,r.kG)(n.includes(s.q.DOCUMENT_EDITING),l),o(t),new Promise(((n,r)=>{e.dispatch((0,i.b_)(t,n,r))}))},t.exportPDFWithOperations=async function(t){const{features:n,backend:i}=e.getState();return(0,r.kG)(n.includes(s.q.DOCUMENT_EDITING),l),o(t),(0,r.kG)(i),i.exportPDFWithOperations(t.map(a.kg))}}},41172:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p,q:()=>d});var r=n(15359),o=n(67366),i=n(31647),a=n(66327),s=n(4087),l=n(96650),c=n(44550),u=n(24382);const d="The API you're trying to use requires a redactions license. Redactions is a component of PSPDFKit for Web and sold separately.";function p(e,t){t.createRedactionsBySearch=async function(t,n){const i=e.getState(),{features:a,backend:p,annotationPresets:h,eventEmitter:f}=i;if(!a.includes(c.q.REDACTIONS))throw new r.p2(d);(0,r.kG)(t,"You need to pass a search query.");const m=h.get("redaction"),g={...{searchType:l.S.TEXT,searchInAnnotations:!0,caseSensitive:!n||n.searchType!==l.S.TEXT},...n,annotationPreset:{...m,...n&&n.annotationPreset}};(0,r.kG)(p);const v=await p.searchAndRedact(t,g,i);if(v.size)if("STANDALONE"===p.type)(0,o.dC)((()=>{v.forEach((t=>{e.dispatch((0,s.$d)(t))}))}));else if("SERVER"===p.type&&!p.isUsingInstantProvider()){const{alreadyLoadedPages:e}=p.provider.state,t=v.filter((t=>e.has(t.pageIndex)));i.annotationManager?.backendObjectsCreated(v,u.z),f.emit("annotations.create",t)}return v.map((e=>e.id))},t.applyRedactions=function(){const{features:t}=e.getState();if(!t.includes(c.q.REDACTIONS))throw new r.p2(d);return e.dispatch((0,a.fq)()),new Promise(((t,n)=>(e.dispatch((0,i.g)((()=>{e.dispatch((0,a.Di)()),t()}),(t=>{e.dispatch((0,a.Di)()),n(t)}))),t)))}}},1990:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,Z:()=>c});var r=n(35369),o=n(15359),i=n(11192),a=n(97238);class s extends((0,r.WV)({startTextLineId:null,endTextLineId:null,startPageIndex:null,endPageIndex:null,startNestedContentBlockId:null,endNestedContentBlockId:null,startNode:null,startOffset:null,endNode:null,endOffset:null,getText:null,getSelectedTextLines:null,getBoundingClientRect:null,getSelectedRectsPerPage:null})){}const l=["textSelection.change"];function c(e,t){t.getTextSelection=function(){const t=e.getState(),n=t.currentTextSelection;return n?new s({startTextLineId:n.startTextLineId,endTextLineId:n.endTextLineId,startNestedContentBlockId:n.startNestedContentBlockId,endNestedContentBlockId:n.endNestedContentBlockId,startPageIndex:n.startPageIndex,endPageIndex:n.endPageIndex,startNode:n.textRange?.startNode,startOffset:n.textRange?.startOffset,endNode:n.textRange?.endNode,endOffset:n.textRange?.endOffset,getText:async()=>(0,i.Q)(t,n),getSelectedTextLines:async()=>((0,o.kG)(n.textRange),(0,i.ZJ)(t,n.textRange).valueSeq().toList().flatten(!0)),getBoundingClientRect:async()=>((0,o.kG)(n.textRange),(0,i.U2)(t,n.textRange)),getSelectedRectsPerPage:async()=>(0,a.rf)(t)}):null};let n=e.getState();const{eventEmitter:r}=n;return r.events.push(...l),e.subscribe((()=>{const o=e.getState();n.currentTextSelection!==o.currentTextSelection&&r.emit("textSelection.change",t.getTextSelection()),n=o}))}},38705:(e,t,n)=>{"use strict";n.d(t,{F3:()=>B,ZP:()=>j,eV:()=>L});var r=n(67366),o=n(15359),i=n(38252),a=n(10983),s=n(27122),l=n(65369),c=n(13349),u=n(81777),d=n(4480),p=n(35727),h=n(86037),f=n(12705),m=n(5130),g=n(18287),v=n(2464),y=n(82197),b=n(14286),w=n(48625),x=n(89637),_=n(84293),S=n(45249),C=n(2927),E=n(66327),k=n(40084),z=n(38478),P=n(24987),D=n(43069),A=n(77897),T=n(28233),I=n(44550),M=n(87996),R=n(36904),F=n(75287);const N=["viewState.change","viewState.currentPageIndex.change","viewState.zoom.change"],O=["cropArea.changeStart","cropArea.changeStop"];function j(e,t){const{eventEmitter:n}=e.getState();let l=!0,c=b();function g(){if(!l)return;const e=b(),t=c;c=e;const r=t.delete("instance"),o=e.delete("instance");r.equals(o)||(t.currentPageIndex!==e.currentPageIndex&&n.emit("viewState.currentPageIndex.change",e.currentPageIndex),t.zoom!==e.zoom&&n.emit("viewState.zoom.change",e.zoom),n.emit("viewState.change",e,t))}n.events.push(...N),n.events.push(...O);const v=e.subscribe(g);function b(){const n=e.getState();return(0,z.w)(n,t)}return Object.defineProperty(t,"viewState",{enumerable:!0,configurable:!1,get:b}),t.setViewState=function(t){let n=t;if("function"==typeof n&&(n=n.call(null,b())),!(n instanceof S.f7)){const e="function"==typeof n?"return value of your update function":"supplied argument";throw new o.p2(`The ${e} is not an instance of PSPDFKit.ViewState.`)}l=!1,n=B(n,e),function(e,t,n){t.zoom!==n.zoom&&(n.zoom===u.c.AUTO?e.dispatch((0,k._R)()):n.zoom===u.c.FIT_TO_VIEWPORT?e.dispatch((0,k.lO)()):n.zoom===u.c.FIT_TO_WIDTH?e.dispatch((0,k.du)()):"number"==typeof n.zoom&&e.dispatch((0,k.Ic)(n.zoom)));if(t.pagesRotation!==n.pagesRotation){const r=(0,y.n5)(n.pagesRotation-t.pagesRotation);e.dispatch((0,k.U1)(r))}t.layoutMode!==n.layoutMode&&e.dispatch((0,E.YA)(n.layoutMode));t.scrollMode!==n.scrollMode&&e.dispatch((0,E._U)(n.scrollMode));t.showToolbar!==n.showToolbar&&(t.showToolbar?e.dispatch((0,E.iu)()):e.dispatch((0,E.bv)()));t.enableAnnotationToolbar!==n.enableAnnotationToolbar&&(t.enableAnnotationToolbar?e.dispatch((0,E.Wv)()):e.dispatch((0,E.m$)()));t.allowPrinting!==n.allowPrinting&&(n.allowPrinting?e.dispatch((0,E.Ol)()):e.dispatch((0,E.m0)()));t.allowExport!==n.allowExport&&(n.allowExport?e.dispatch((0,E.Rx)()):e.dispatch((0,E.YI)()));t.zoomStep!==n.zoomStep&&(!n.zoomStep||n.zoomStep<1?((0,o.ZK)(`The zoomStep value must be greater than 1. The value you provided was ${n.zoomStep}.The zoomStep value will be set to default ${a.V4}`),e.dispatch((0,E.Ql)(a.V4))):e.dispatch((0,E.Ql)(n.zoomStep)));t.disablePointSnapping!==n.disablePointSnapping&&"boolean"==typeof n.disablePointSnapping&&e.dispatch((0,E.c8)(n.disablePointSnapping));const l=e.getState();t.showSignatureValidationStatus!==n.showSignatureValidationStatus&&((0,o.kG)(l.features.includes(I.q.DIGITAL_SIGNATURES),h.C),e.dispatch((0,E.A7)(n.showSignatureValidationStatus)));(!0===n.formDesignMode||(0,D.fF)(n.interactionMode))&&((0,o.kG)(l.features.includes(I.q.FORM_DESIGNER),m.RB),(0,o.kG)(l.backend&&(0,f.k_)(l.backend),m.Bl));!0===n.previewRedactionMode&&(0,o.kG)(l.features.includes(I.q.REDACTIONS),"The API you're trying to use requires a redactions license. Redactions is a component of PSPDFKit for Web and sold separately.");n.interactionMode===w.A.DOCUMENT_EDITOR&&(0,o.kG)(l.features.includes(I.q.DOCUMENT_EDITING),d.I);n.interactionMode===w.A.CONTENT_EDITOR&&(0,o.kG)(l.features.includes(I.q.CONTENT_EDITING),R.Aq);t.formDesignMode!==n.formDesignMode&&e.dispatch((0,E.LE)(n.formDesignMode));if(t.interactionMode!==n.interactionMode){if(null!=n.interactionMode){const o=L(n.interactionMode,l),i=t.interactionMode?L(t.interactionMode,l):null;(n.interactionMode===w.A.DOCUMENT_EDITOR&&(0,f.Xr)({features:l.features,backendPermissions:l.backendPermissions,documentPermissions:l.documentPermissions,readOnlyEnabled:l.readOnlyEnabled})||n.interactionMode===w.A.CONTENT_EDITOR&&(0,f.qs)({features:l.features,backendPermissions:l.backendPermissions,documentPermissions:l.documentPermissions,readOnlyEnabled:l.readOnlyEnabled})||!n.readOnly||o.allowWhenInReadOnlyMode)&&(0,r.dC)((()=>{i&&e.dispatch(i.onLeaveAction()),e.dispatch(o.onEnterAction())}))}else if(null!=t.interactionMode){const n=L(t.interactionMode,l);e.dispatch((0,x.fz)()),e.dispatch(n.onLeaveAction())}n.interactionMode===w.A.INK_SIGNATURE&&(0,i.a1)("PSPDFKit.InteractionMode.INK_SIGNATURE was deprecated and will be removed in future version. Please use PSPDFKit.InteractionMode.SIGNATURE instead.")}t.readOnly!==n.readOnly&&(n.readOnly?e.dispatch((0,E.oX)(T.J.VIA_VIEW_STATE)):e.dispatch((0,E.ek)()));t.showAnnotations!==n.showAnnotations&&(n.showAnnotations?e.dispatch((0,E.cI)()):e.dispatch((0,E.Tu)()));t.showComments!==n.showComments&&((0,o.kG)(l.features.includes(I.q.COMMENTS),p.kx),n.showComments?e.dispatch((0,E.Q8)()):e.dispatch((0,E.u0)()));t.showAnnotationNotes!==n.showAnnotationNotes&&(n.showAnnotationNotes?e.dispatch((0,E.T)()):e.dispatch((0,E.SE)()));const c={[s.f.ANNOTATIONS]:E.ze,[s.f.BOOKMARKS]:E.Hf,[s.f.DOCUMENT_OUTLINE]:E.EJ,[s.f.THUMBNAILS]:E.el,[s.f.SIGNATURES]:E.LH,[s.f.LAYERS]:E.Fs,[s.f.CUSTOM]:E.rd};t.sidebarMode!==n.sidebarMode&&(null===n.sidebarMode?e.dispatch((0,E.mu)()):e.dispatch(c[n.sidebarMode]()));t.sidebarPlacement!==n.sidebarPlacement&&e.dispatch((0,E.Ox)(n.sidebarPlacement));t.sidebarOptions!==n.sidebarOptions&&e.dispatch((0,E.vI)(n.sidebarOptions));t.spreadSpacing!==n.spreadSpacing&&e.dispatch((0,E.JN)(n.spreadSpacing));t.pageSpacing!==n.pageSpacing&&e.dispatch((0,E.vY)(n.pageSpacing));t.keepFirstSpreadAsSinglePage!==n.keepFirstSpreadAsSinglePage&&e.dispatch((0,E.EY)(n.keepFirstSpreadAsSinglePage));if(t.viewportPadding.horizontal!==n.viewportPadding.horizontal||t.viewportPadding.vertical!==n.viewportPadding.vertical){const t=new S.E9({x:n.viewportPadding.horizontal,y:n.viewportPadding.vertical});e.dispatch((0,E._P)(t))}t.currentPageIndex!==n.currentPageIndex&&e.dispatch((0,k.YA)(n.currentPageIndex));t.previewRedactionMode!==n.previewRedactionMode&&e.dispatch((0,E.P_)(n.previewRedactionMode));n.canScrollWhileDrawing&&!t.canScrollWhileDrawing&&e.dispatch((0,E.xW)());!n.canScrollWhileDrawing&&t.canScrollWhileDrawing&&e.dispatch((0,E.Ft)());n.keepSelectedTool&&e.dispatch((0,E.HT)());!n.keepSelectedTool&&t.keepSelectedTool&&e.dispatch((0,E.Xv)());if(t.sidebarWidth!==n.sidebarWidth){const t=e.getState(),{containerRect:o}=t,i={width:n.sidebarWidth,height:o.height};(0,r.dC)((()=>{e.dispatch((0,k.Pt)(n.sidebarWidth)),e.dispatch((0,k.dx)((0,P.p)(t,i,n.sidebarWidth),!1))})),t.viewportState.viewportRect.set("height",i.height)}t.enableAlwaysScrollToZoom!==n.enableAlwaysScrollToZoom&&"boolean"==typeof n.enableAlwaysScrollToZoom&&e.dispatch((0,E.T1)(n.enableAlwaysScrollToZoom));t.forceRenderWidgetsInAnnotationsOrder!==n.forceRenderWidgetsInAnnotationsOrder&&"boolean"==typeof n.forceRenderWidgetsInAnnotationsOrder&&e.dispatch((0,E.he)(n.forceRenderWidgetsInAnnotationsOrder));t.prerenderedPageSpreads!==n.prerenderedPageSpreads&&("number"!=typeof n.prerenderedPageSpreads&&null!==n.prerenderedPageSpreads||e.dispatch((0,E.I)(n.prerenderedPageSpreads)));!0===n.showDocumentAssistant&&((0,o.kG)(l.features.includes(I.q.DOCUMENT_ASSISTANT),F.oQ),(0,o.kG)(l.documentAssistant.configuration,F.Qr));t.showDocumentAssistant!==n.showDocumentAssistant&&e.dispatch((0,E.Z_)(n.showDocumentAssistant))}(e,b(),n),l=!0,g()},v}function L(e,t){return{[w.A.TEXT_HIGHLIGHTER]:{onEnterAction:E.d5,onLeaveAction:E.lC,allowWhenInReadOnlyMode:!1},[w.A.INK]:{onEnterAction:E.P4,onLeaveAction:E.s3,allowWhenInReadOnlyMode:!1},[w.A.INK_ERASER]:{onEnterAction:E.Ug,onLeaveAction:E.VU,allowWhenInReadOnlyMode:!1},[w.A.STAMP_PICKER]:{onEnterAction:E.C4,onLeaveAction:E.pM,allowWhenInReadOnlyMode:!1},[w.A.STAMP_CUSTOM]:{onEnterAction:E._z,onLeaveAction:E.pM,allowWhenInReadOnlyMode:!1},[w.A.INK_SIGNATURE]:{onEnterAction:E.Cc,onLeaveAction:E.MV,allowWhenInReadOnlyMode:!1},[w.A.SIGNATURE]:{onEnterAction:E.Cc,onLeaveAction:E.MV,allowWhenInReadOnlyMode:!1},[w.A.SHAPE_LINE]:{onEnterAction:(0,E.p9)(S.o9,w.A.SHAPE_LINE),onLeaveAction:E.Ce,allowWhenInReadOnlyMode:!1},[w.A.SHAPE_RECTANGLE]:{onEnterAction:(0,E.p9)(S.b3,w.A.SHAPE_RECTANGLE),onLeaveAction:E.Ce,allowWhenInReadOnlyMode:!1},[w.A.SHAPE_ELLIPSE]:{onEnterAction:(0,E.p9)(S.Xs,w.A.SHAPE_ELLIPSE),onLeaveAction:E.Ce,allowWhenInReadOnlyMode:!1},[w.A.SHAPE_POLYGON]:{onEnterAction:(0,E.p9)(S.Hi,w.A.SHAPE_POLYGON),onLeaveAction:E.Ce,allowWhenInReadOnlyMode:!1},[w.A.SHAPE_POLYLINE]:{onEnterAction:(0,E.p9)(S.om,w.A.SHAPE_POLYLINE),onLeaveAction:E.Ce,allowWhenInReadOnlyMode:!1},[w.A.NOTE]:{onEnterAction:E.i9,onLeaveAction:E.dp,allowWhenInReadOnlyMode:!1},[w.A.COMMENT_MARKER]:{onEnterAction:()=>((0,o.kG)(t&&t.features.includes(I.q.COMMENTS),p.kx),(0,E.k6)()),onLeaveAction:()=>((0,o.kG)(t&&t.features.includes(I.q.COMMENTS),p.kx),(0,E.tr)()),allowWhenInReadOnlyMode:!1},[w.A.TEXT]:{onEnterAction:E.DU,onLeaveAction:E.k4,allowWhenInReadOnlyMode:!1},[w.A.CALLOUT]:{onEnterAction:E.Lt,onLeaveAction:E.k4,allowWhenInReadOnlyMode:!1},[w.A.PAN]:{onEnterAction:k.vc,onLeaveAction:k.Yr,allowWhenInReadOnlyMode:!0},[w.A.SEARCH]:{onEnterAction:g.Xe,onLeaveAction:g.ct,allowWhenInReadOnlyMode:!0},[w.A.DOCUMENT_EDITOR]:{onEnterAction:E.lV,onLeaveAction:E.sJ,allowWhenInReadOnlyMode:!1},[w.A.MARQUEE_ZOOM]:{onEnterAction:E.xF,onLeaveAction:E.si,allowWhenInReadOnlyMode:!0},[w.A.REDACT_TEXT_HIGHLIGHTER]:{onEnterAction:E.aw,onLeaveAction:E.TR,allowWhenInReadOnlyMode:!1},[w.A.REDACT_SHAPE_RECTANGLE]:{onEnterAction:E.t,onLeaveAction:E.jP,allowWhenInReadOnlyMode:!1},[w.A.DOCUMENT_CROP]:{onEnterAction:E.rL,onLeaveAction:E.Cn,allowWhenInReadOnlyMode:!1},[w.A.CONTENT_EDITOR]:{onEnterAction:()=>C.gY,onLeaveAction:()=>C.u8,allowWhenInReadOnlyMode:!1},[w.A.FORM_CREATOR]:{onEnterAction:A.el,onLeaveAction:A.h4,allowWhenInReadOnlyMode:!1},[w.A.SIGNATURE_WIDGET]:{onEnterAction:()=>(0,E.UF)(w.A.SIGNATURE_WIDGET),onLeaveAction:E.XX,allowWhenInReadOnlyMode:!1},[w.A.LIST_BOX_WIDGET]:{onEnterAction:()=>(0,E.UF)(w.A.LIST_BOX_WIDGET),onLeaveAction:E.XX,allowWhenInReadOnlyMode:!1},[w.A.COMBO_BOX_WIDGET]:{onEnterAction:()=>(0,E.UF)(w.A.COMBO_BOX_WIDGET),onLeaveAction:E.XX,allowWhenInReadOnlyMode:!1},[w.A.CHECKBOX_WIDGET]:{onEnterAction:()=>(0,E.UF)(w.A.CHECKBOX_WIDGET),onLeaveAction:E.XX,allowWhenInReadOnlyMode:!1},[w.A.RADIO_BUTTON_WIDGET]:{onEnterAction:()=>(0,E.UF)(w.A.RADIO_BUTTON_WIDGET),onLeaveAction:E.XX,allowWhenInReadOnlyMode:!1},[w.A.TEXT_WIDGET]:{onEnterAction:()=>(0,E.UF)(w.A.TEXT_WIDGET),onLeaveAction:E.XX,allowWhenInReadOnlyMode:!1},[w.A.BUTTON_WIDGET]:{onEnterAction:()=>(0,E.UF)(w.A.BUTTON_WIDGET),onLeaveAction:E.XX,allowWhenInReadOnlyMode:!1},[w.A.DATE_WIDGET]:{onEnterAction:()=>(0,E.UF)(w.A.DATE_WIDGET),onLeaveAction:E.XX,allowWhenInReadOnlyMode:!1},[w.A.LINK]:{onEnterAction:E.Jn,onLeaveAction:E.UU,allowWhenInReadOnlyMode:!1},[w.A.DISTANCE]:{onEnterAction:(0,E.p9)(S.o9,w.A.DISTANCE),onLeaveAction:E.Ce,allowWhenInReadOnlyMode:!1},[w.A.PERIMETER]:{onEnterAction:(0,E.p9)(S.om,w.A.PERIMETER),onLeaveAction:E.Ce,allowWhenInReadOnlyMode:!1},[w.A.RECTANGLE_AREA]:{onEnterAction:(0,E.p9)(S.b3,w.A.RECTANGLE_AREA),onLeaveAction:E.Ce,allowWhenInReadOnlyMode:!1},[w.A.ELLIPSE_AREA]:{onEnterAction:(0,E.p9)(S.Xs,w.A.ELLIPSE_AREA),onLeaveAction:E.Ce,allowWhenInReadOnlyMode:!1},[w.A.POLYGON_AREA]:{onEnterAction:(0,E.p9)(S.Hi,w.A.POLYGON_AREA),onLeaveAction:E.Ce,allowWhenInReadOnlyMode:!1},[w.A.MULTI_ANNOTATIONS_SELECTION]:{onEnterAction:E.YF,onLeaveAction:E.FA,allowWhenInReadOnlyMode:!1},[w.A.MEASUREMENT_SETTINGS]:{onEnterAction:E.PR,onLeaveAction:E.jJ,allowWhenInReadOnlyMode:!1},[w.A.MEASUREMENT]:{onEnterAction:E.BR,onLeaveAction:E.hS,allowWhenInReadOnlyMode:!1}}[e]}function B(e,t){const n=t?t.getState():null;if("number"!=typeof e.currentPageIndex)throw new o.p2("The currentPageIndex set on the new ViewState is not of type `number`.");if(e.disablePointSnapping&&"boolean"!=typeof e.disablePointSnapping)throw new o.p2("The disablePointSnapping set on the new ViewState is not of type `boolean`.");if(n&&(e.currentPageIndex<0||e.currentPageIndex>=n.totalPages))throw new o.p2(`The currentPageIndex set on the new ViewState is out of bounds.\nThe index is expected to be in the range from 0 to ${n.totalPages-1} (inclusive).`);if("number"==typeof e.zoom){if(n){const{viewportState:t}=n,r=(0,_.Yo)(t),i=(0,_.Sm)(t);if(e.zoom<r)throw new o.p2(`The supplied zoom level is smaller than the minimum zoom level for this document (${r})`);if(e.zoom>i)throw new o.p2(`The supplied zoom level is larger than the maximum zoom level for this document (${i})`)}}else if(e.zoom!==u.c.AUTO&&e.zoom!==u.c.FIT_TO_WIDTH&&e.zoom!==u.c.FIT_TO_VIEWPORT)throw new o.p2("The supplied zoom mode is not valid.\nValid zoom modes are: PSPDFKit.ZoomMode.AUTO, PSPDFKit.ZoomMode.FIT_TO_VIEWPORT, or PSPDFKit.ZoomMode.FIT_TO_WIDTH");if(e.pagesRotation%90!=0)throw new o.p2("The supplied pagesRotation must be a multiple of 90°.");if(e.layoutMode!==b.X.SINGLE&&e.layoutMode!==b.X.DOUBLE&&e.layoutMode!==b.X.AUTO)throw new o.p2("The supplied layout mode is not valid.\nValid layout modes are: PSPDFKit.LayoutMode.SINGLE, PSPDFKit.LayoutMode.DOUBLE, or PSPDFKit.LayoutMode.AUTO");if(e.scrollMode!==v.G.CONTINUOUS&&e.scrollMode!==v.G.PER_SPREAD&&e.scrollMode!==v.G.DISABLED)throw new o.p2("The supplied scroll mode is not valid.\nValid scroll modes are: PSPDFKit.ScrollMode.CONTINUOUS, PSPDFKit.ScrollMode.PER_SPREAD, or PSPDFKit.ScrollMode.DISABLED");if(e.showSignatureValidationStatus!==c.W.IF_SIGNED&&e.showSignatureValidationStatus!==c.W.HAS_ERRORS&&e.showSignatureValidationStatus!==c.W.HAS_WARNINGS&&e.showSignatureValidationStatus!==c.W.NEVER)throw new o.p2("The supplied mode for showing the digital signature validation UI is not valid.");if("number"!=typeof e.spreadSpacing||e.spreadSpacing<0)throw new o.p2(`Expected \`spreadSpacing\` to be a positive number but instead got: ${e.spreadSpacing}.`);if("number"!=typeof e.pageSpacing||e.pageSpacing<0)throw new o.p2(`Expected \`pageSpacing\` to be a positive number but instead got: ${e.pageSpacing}.`);if("boolean"!=typeof e.keepFirstSpreadAsSinglePage)throw new o.p2(`Expected \`keepFirstSpreadAsSinglePage\` to be a boolean but instead got: ${e.keepFirstSpreadAsSinglePage}.`);if("number"!=typeof e.viewportPadding.vertical)throw new o.p2("The supplied viewportPadding has a missing property: vertical not found");if("number"!=typeof e.viewportPadding.horizontal)throw new o.p2("The supplied viewportPadding has a missing property: horizontal not found");if(e.viewportPadding.vertical<0||e.viewportPadding.horizontal<0)throw new o.p2("The supplied viewportPadding horizontal or vertical value is not a positive number");if("boolean"!=typeof e.allowPrinting)throw new o.p2("`allowPrinting` must be of type boolean.");if(n&&!0===e.allowPrinting&&!n.backendPermissions.downloadingAllowed)throw new o.p2("To enable printing, you need to authenticate the `download` permission in the JWT (See: https://pspdfkit.com/guides/web/server-backed/client-authentication/)");if("boolean"!=typeof e.allowExport)throw new o.p2("`allowExport` must be of type boolean.");if(n&&!0===e.allowExport&&!n.backendPermissions.downloadingAllowed)throw new o.p2("To enable PDF export, you need to authenticate the `download` permission in the JWT (See: https://pspdfkit.com/guides/web/server-backed/client-authentication/)");if("boolean"!=typeof e.previewRedactionMode)throw new o.p2("`previewRedactionMode` must be of type boolean.");if("boolean"!=typeof e.readOnly)throw new o.p2("`readOnly` must be of type boolean.");if(!n||!1!==e.readOnly||M.Options.IGNORE_DOCUMENT_PERMISSIONS||!n.backendPermissions.readOnly&&(n.documentPermissions.annotationsAndForms||n.documentPermissions.fillForms)||(e=e.set("readOnly",!0),(0,o.ZK)("It’s not possible to change PSPDFKit.ViewState#readOnly to false if the current backend or document permissions do not allow it. For document permissions, you can override this behavior by setting the PSPDFKit.Options.IGNORE_DOCUMENT_PERMISSIONS option before initializing PSPDFKit.")),e.interactionMode&&Object.values(w.A).indexOf(e.interactionMode)<0)throw new o.p2(`The supplied interaction mode is not valid.\nValid view modes are: ${Object.keys(w.A).map((e=>`PSPDFKit.InteractionMode.${e}`)).join(", ")}`);if(null!=e.interactionMode){const t=L(e.interactionMode,n);null!=n&&(e.interactionMode===w.A.DOCUMENT_EDITOR&&(0,f.Xr)({features:n.features,backendPermissions:n.backendPermissions,documentPermissions:n.documentPermissions,readOnlyEnabled:n.readOnlyEnabled})||e.interactionMode===w.A.CONTENT_EDITOR&&(0,f.qs)({features:n.features,backendPermissions:n.backendPermissions,documentPermissions:n.documentPermissions,readOnlyEnabled:n.readOnlyEnabled}))||!e.readOnly||t.allowWhenInReadOnlyMode||((0,o.ZK)(`Can’t set PSPDFKit.ViewState#interactionMode to ${e.interactionMode} when PSPDFKit.ViewState#readOnly is true.`),e=e.set("interactionMode",null))}if("boolean"!=typeof e.showAnnotations)throw new o.p2("`showAnnotations` must be of type boolean.");if(!1===e.showAnnotations&&!1===e.readOnly)throw new o.p2("In order to hide annotations, you must also enable read only mode.");if("boolean"!=typeof e.showComments)throw new o.p2("`showComments` must be of type boolean.");if("boolean"!=typeof e.showAnnotationNotes)throw new o.p2("`showAnnotationNotes` must be of type boolean.");if(e.sidebarMode&&Object.values(s.f).indexOf(e.sidebarMode)<0)throw new o.p2(`The supplied sidebar mode is not valid.\nValid view modes are: ${Object.keys(s.f).map((e=>`PSPDFKit.SidebarMode.${e}`)).join(", ")} or \`null\`.`);if(Object.values(l.d).indexOf(e.sidebarPlacement)<0)throw new o.p2(`The supplied sidebar placement is not valid.\nValid placements are: ${Object.keys(l.d).map((e=>`PSPDFKit.SidebarPlacement.${e}`)).join(" or ")}.`);if(!e.sidebarOptions?.[s.f.ANNOTATIONS]&&!e.sidebarOptions?.[s.f.LAYERS])throw new o.p2("The supplied sidebar options configuration is missing the required `PSPDFKit.SidebarMode.ANNOTATIONS` or `PSPDFKit.SidebarMode.LAYERS` property.");if(e.sidebarOptions?.[s.f.ANNOTATIONS]&&!Array.isArray(e.sidebarOptions[s.f.ANNOTATIONS]?.includeContent))throw new o.p2("The `includeContent` property is mandatory for the `PSPDFKit.SidebarMode.ANNOTATIONS` sidebar options and it must be an array");if(e.sidebarOptions?.[s.f.LAYERS]&&!e.sidebarOptions?.[s.f.LAYERS]?.lockedLayers)throw new o.p2("The `lockedLayers` property is mandatory for the `PSPDFKit.SidebarMode.LAYERS` sidebar options and it must be an array");if(e.sidebarOptions?.[s.f.LAYERS]&&!Array.isArray(e.sidebarOptions[s.f.LAYERS]?.lockedLayers))throw new o.p2("The `lockedLayers` property is mandatory for the `PSPDFKit.SidebarMode.LAYERS` sidebar options and it must be an array");if(e.sidebarOptions?.[s.f.LAYERS]&&!e.sidebarOptions?.[s.f.LAYERS]?.iconsAlignment)throw new o.p2("The `iconsAlignment` property is mandatory for the `PSPDFKit.SidebarMode.LAYERS` sidebar options and it must be either `PSPDFKit.Alignment.START` or `PSPDFKit.Alignment.END` ");if(e.sidebarOptions?.[s.f.ANNOTATIONS]&&e.sidebarOptions[s.f.ANNOTATIONS].includeContent.length&&e.sidebarOptions[s.f.ANNOTATIONS].includeContent.some((e=>!(e.prototype instanceof S.q6)&&e!==S.sv)))throw new o.p2("The `includeContent` array can only contain annotations classes or `PSPDFKit.Comment` as possible values");if(e.sidebarOptions?.[s.f.LAYERS]&&e.sidebarOptions[s.f.LAYERS].lockedLayers.length&&e.sidebarOptions[s.f.LAYERS].lockedLayers.some((e=>"number"!=typeof e)))throw new o.p2("The `lockedLayers` array can only contain numbers as possible values");if("boolean"!=typeof e.canScrollWhileDrawing)throw new o.p2("`canScrollWhileDrawing` must be of type boolean.");if("boolean"!=typeof e.keepSelectedTool)throw new o.p2("`keepSelectedTool` must be of type boolean.");if("number"!=typeof e.sidebarWidth)throw new o.p2("`sidebarWidth` must be of type number.");if("boolean"!=typeof e.enableAlwaysScrollToZoom)throw new o.p2("`enableAlwaysScrollToZoom` must be of type boolean.");if("boolean"!=typeof e.forceRenderWidgetsInAnnotationsOrder)throw new o.p2("`forceRenderWidgetsInAnnotationsOrder` must be of type boolean.");if("number"!=typeof e.prerenderedPageSpreads&&null!==e.prerenderedPageSpreads)throw new o.p2("`prerenderedPageSpreads` must be of type number or null.");if("boolean"!=typeof e.showDocumentAssistant)throw new o.p2(`Expected \`showDocumentAssistant\` to be a boolean but instead got: ${e.showDocumentAssistant}.`);return e}},17078:(e,t,n)=>{"use strict";n.d(t,{O:()=>a,Z:()=>s});var r=n(44228);const o=new(n(45249).ZM),i=(0,r.oM)({name:"attachments",initialState:o,reducers:{createAttachment:(e,t)=>{const{hash:n,attachment:r}=t.payload;return e.setIn(["attachments",n],r)}}}),{createAttachment:a}=i.actions,s=i.reducer},4280:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(24021).vU)({approved:{id:"approved",defaultMessage:"Approved",description:"Approved Stamp Annotation"},notApproved:{id:"notApproved",defaultMessage:"Not Approved",description:"Not Approved Stamp Annotation"},draft:{id:"draft",defaultMessage:"Draft",description:"Draft Stamp Annotation"},final:{id:"final",defaultMessage:"Final",description:"Final Stamp Annotation"},completed:{id:"completed",defaultMessage:"Completed",description:"Completed Stamp Annotation"},confidential:{id:"confidential",defaultMessage:"Confidential",description:"Confidential Stamp Annotation"},forPublicRelease:{id:"forPublicRelease",defaultMessage:"For Public Release",description:"For Public Release Stamp Annotation"},notForPublicRelease:{id:"notForPublicRelease",defaultMessage:"Not For Public Release",description:"Not For Public Release Stamp Annotation"},forComment:{id:"forComment",defaultMessage:"For Comment",description:"ForComment Stamp Annotation"},void:{id:"void",defaultMessage:"Void",description:"Void Stamp Annotation"},preliminaryResults:{id:"preliminaryResults",defaultMessage:"Preliminary Results",description:"Preliminary Results Stamp Annotation"},informationOnly:{id:"informationOnly",defaultMessage:"Information Only",description:"Information Only Stamp Annotation"},rejected:{id:"rejected",defaultMessage:"Rejected",description:"Rejected Stamp Annotation"},accepted:{id:"accepted",defaultMessage:"Accepted",description:"Accepted Stamp Annotation"},initialHere:{id:"initialHere",defaultMessage:"Initial Here",description:"Initial Here Stamp Annotation"},signHere:{id:"signHere",defaultMessage:"Sign Here",description:"Sign Here Stamp Annotation"},witness:{id:"witness",defaultMessage:"Witness",description:"Witness Stamp Annotation"},asIs:{id:"asIs",defaultMessage:"As Is",description:"As Is Stamp Annotation"},departmental:{id:"departmental",defaultMessage:"Departmental",description:"Departmental Stamp Annotation"},experimental:{id:"experimental",defaultMessage:"Experimental",description:"Experimental Stamp Annotation"},expired:{id:"expired",defaultMessage:"Expired",description:"Expired Stamp Annotation"},sold:{id:"sold",defaultMessage:"Sold",description:"Sold Stamp Annotation"},topSecret:{id:"topSecret",defaultMessage:"Top Secret",description:"TopSecret Stamp Annotation"},revised:{id:"revised",defaultMessage:"Revised",description:"Revised Stamp Annotation"},custom:{id:"custom",defaultMessage:"Custom",description:"Custom Stamp Annotation"},stampAnnotationTemplatesDialog:{id:"stampAnnotationTemplatesDialog",defaultMessage:"Stamp Annotation Templates",description:"Stamp Annotation Templates Dialog"},stampAnnotationTemplatesDialogDescription:{id:"stampAnnotationTemplatesDialogDesc",defaultMessage:"This dialog lets you select a stamp annotation to insert into the document or create a custom stamp annotation with your own text.",description:"Stamp Annotation Templates Dialog Description"}})},33427:(e,t,n)=>{"use strict";n.d(t,{A8:()=>le,AC:()=>te,B7:()=>ve,CU:()=>de,Dc:()=>K,Dl:()=>S,F3:()=>B,Fp:()=>P,IO:()=>U,Ie:()=>Ee,Jy:()=>fe,Km:()=>V,OR:()=>xe,SY:()=>C,So:()=>be,TL:()=>ne,TW:()=>Y,U7:()=>J,Vc:()=>$,WX:()=>Se,Wj:()=>E,X5:()=>O,Xr:()=>ye,Xu:()=>X,YV:()=>ge,_E:()=>x,_R:()=>ee,_k:()=>me,a$:()=>H,a5:()=>_e,aI:()=>q,bz:()=>z,d:()=>A,dk:()=>se,eD:()=>Q,eJ:()=>he,et:()=>ze,fc:()=>F,fk:()=>k,hG:()=>L,ip:()=>R,ix:()=>Ce,lx:()=>N,oF:()=>ce,om:()=>j,pe:()=>ie,sH:()=>b,tM:()=>ae,tl:()=>ue,ud:()=>w,vM:()=>ke,vj:()=>W,vk:()=>T,x2:()=>D,xU:()=>Z,xc:()=>I,xp:()=>M,yU:()=>G,yj:()=>we,z1:()=>pe});var r=n(35369),o=n(15359),i=n(34997),a=n(45249),s=n(94732),l=n(4325),c=n(10983),u=n(87996),d=n(44077),p=n(17766),h=n(60379),f=n(48338),m=n(89004),g=n(74814),v=n(48625),y=n(5705);function b(e){try{const t=localStorage.getItem(`persistedColors${e}`);if(t)try{return JSON.parse(t).map((e=>({color:new h.Z({r:e.color.r,g:e.color.g,b:e.color.b}),localization:e.localization})))}catch(e){return(0,o.ZK)(`Wrong color data stored in localStorage: ${e.message}`),[]}return[]}catch(e){return[]}}function w(e,t){return(0,o.kG)("number"==typeof t.pageIndex,"Annotation has no valid pageIndex"),(0,o.kG)(!e.annotations.has(t.id),`Annotation ID (${t.id}) is already known`),t.pageIndex<0||t.pageIndex>=e.pages.size?((0,o.ZK)(`Tried to add an annotation (ID: ${t.id}) with an out of bounds page index. This annotation was skipped.`),e):(t instanceof a.sK&&(0,o.kG)(B(t.imageAttachmentId),"imageAttachmentId is not a valid hash or pdfObjectId"),e.withMutations((e=>{t.id||(t=t.set("id",I())),e.setIn(["annotations",t.id],t),e.isAPStreamRendered?.(t)&&!Q(t)&&e.updateIn(["invalidAPStreams",t.pageIndex],(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.l4)();return e.add(t.id)})),_(e,t),(0,f._d)(e,t)})))}function x(e,t){(0,o.kG)("string"==typeof t.id,"Annotation has no valid id");const n=e.annotations.get(t.id);return(0,o.kG)(n instanceof a.q6,`Annotation with id ${t.id} not found and thus the update was ignored.`),e.withMutations((o=>{null!=t.pageIndex&&_(o,t),!0!==t.noView&&!0!==t.hidden||!o.selectedAnnotationIds.has(t.id)||(o.delete("selectedAnnotationMode"),o.set("interactionMode",null),o.update("selectedAnnotationIds",(e=>e.filterNot((e=>e===t.id)))),o.update("hoverAnnotationIds",(e=>e.delete(t.id)))),"number"!=typeof n.buttonIconUpdatedAt&&"number"==typeof t.buttonIconUpdatedAt&&o.invalidAPStreams.get(t.pageIndex)?.has(t.id)&&o.updateIn(["invalidAPStreams",t.pageIndex],(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.l4)();return e.delete(t.id)})),o.setIn(["annotations",t.id],t);const i=e.activeAnnotationNote;i&&i.parentAnnotation?.id===t.id&&(t.note?t.note!==i.text.value&&o.set("activeAnnotationNote",i.set("text",{format:"plain",value:t.note})):o.set("activeAnnotationNote",null));const s=e.hoverAnnotationNote;s&&s.parentAnnotation?.id===t.id&&(t.note?t.note!==s.text.value&&o.set("hoverAnnotationNote",s.set("text",{format:"plain",value:t.note})):o.set("hoverAnnotationNote",null));const l=ie((()=>o),t,(()=>{const{formFields:e}=o,i=t instanceof a.x_?e.get(t.formFieldName):null;o.isAPStreamRendered?.(t)&&te(n,t)&&P(n)===P(t)&&function(e,t){if(e instanceof a.x_&&t instanceof a.R0)return!1;return!0}(t,i)&&o.updateIn(["invalidAPStreams",t.pageIndex],(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.l4)();return e.add(t.id)}))}));(0,f.GW)(o,n,t,l)}))}function _(e,t){return e.updateIn(["pages",t.pageIndex,"annotationIds"],(e=>e.add(t.id)))}function S(e,t){const n=e.annotations.get(t);return e.withMutations((r=>{r.selectedAnnotationIds.has(t)&&(r.delete("selectedAnnotationMode"),r.interactionMode!==v.A.FORM_CREATOR&&r.set("interactionMode",null)),r.update("annotations",(e=>e.delete(t))),r.update("selectedAnnotationIds",(e=>e.filterNot((e=>e===t)))),r.update("annotationPresetIds",(e=>e.filterNot((e=>e===t)))),r.update("hoverAnnotationIds",(e=>e.delete(t))),null!==r.annotationsIdsToDelete&&r.update("annotationsIdsToDelete",(e=>e?.filterNot((e=>e===t))));const o=e.activeAnnotationNote;o&&o.parentAnnotation?.id===t&&r.set("activeAnnotationNote",null);const i=e.hoverAnnotationNote;if(i&&i.parentAnnotation?.id===t&&r.set("hoverAnnotationNote",null),null==n?.pageIndex)return;r.deleteIn(["pages",n.pageIndex,"annotationIds",t]);const a=e.invalidAPStreams.get(n.pageIndex),s=(!a||!a.has(t))&&e.isAPStreamRendered?.(n);(0,f.WF)(r,n,s),"number"==typeof n.pdfObjectId&&(r.deleteIn(["APStreamVariantsRollover",n.pdfObjectId]),r.deleteIn(["APStreamVariantsDown",n.pdfObjectId]))}))}function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const{boundingBox:r}=e;if(Ce(e,t))return r.set("width",r.width/t).set("height",r.height/t);if(e instanceof a.Qi){const e=r.getLocation(),t=(new d.sl).translate(e.scale(-1)).rotate(n||0).translate(e);return r.apply(t)}return r}function E(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return(0,l.q)(C(e,r,t),n)}function k(e,t,n,r,i){let s=e instanceof a.q6&&("points"in e&&e.points?.toJS()||"startPoint"in e&&e.startPoint&&e.endPoint&&[e.startPoint.toJS(),e.endPoint.toJS()]);if($(e)){(0,o.kG)(e instanceof a.gd,"Callout annotation is not a TextAnnotation");const{callout:t}=e;(0,o.kG)(t,"Callout annotation has no callout");const{knee:n,start:r}=t;s=[r,n].map((e=>e?.toJS()))}const c=(0,l.K)(r);return Array.isArray(s)?s.map((e=>({x:i+c+(e.x-t.left)*n,y:i+c+(e.y-t.top)*n}))):[]}function z(e){const t=null!=e.pageIndex;return e instanceof a.gd?t&&null!=e.text.value&&""!==e.text.value:e instanceof a.Hi||e instanceof a.om?t&&null!=e.points&&e.points.size>1:t}function P(e){return!1===e.noView&&!0!==e.hidden}function D(e){return!1===e.noPrint&&!0!==e.hidden}function A(e){return!(e instanceof a.Ih)}function T(e){return e?e.replace(/[A-Z]/g,"-$&").toLowerCase():null}const I=i.SK;function M(e,t){return function(e,t){return t.map((function(t){return e.get(t)})).filter(Boolean).toList()}(e,t.annotationIds)}function R(e){return e.boundingBox.setLocation(new a.E9)}const F=(0,r.D5)([["stroke-color","strokeColor"],["background-color","backgroundColor"],["color","color"],["fill-color","fillColor"],["font-color","fontColor"],["outline-color","outlineColor"]]);function N(e){const t=I(),n=function(e){const t=e.currentItemPreset;return t&&e.annotationPresets.get(t)||{}}(e),r={...n,id:t,name:t,creatorName:e.annotationCreatorName,createdAt:new Date,updatedAt:new Date};return e.group!==e.backend?.getDefaultGroup()&&(r.group=e.group),n.group&&n.group!==e.group&&(r.group=n.group),e.annotationToolbarColorPresets?F.reduce(((t,n,r)=>{const o=e.annotationToolbarColorPresets({propertyName:r,defaultAnnotationToolbarColorPresets:u.Options.COLOR_PRESETS});if(void 0===o)return t;const i=o.presets,a=b(F.get(r,r));return function(e,t){return e.some((e=>!t&&null===e.color||t&&e.color&&e.color.equals(t)))}([...i,...a],t[n])?t:{...t,[n]:i[0].color}}),r):r}function O(e,t){const n=e.annotations.get(t);return n?n instanceof a.o9?"line":n instanceof a.Xs?"ellipse":n instanceof a.b3?"rectangle":n instanceof a.om?"polyline":n instanceof a.Hi?"polygon":n instanceof a.Zc?"ink":n instanceof a.Qi?"note":n instanceof a.gd?"text":n instanceof a.sK?"image":n instanceof a.GI?"stamp":n instanceof a.x_?"widget":n instanceof a.FV?"highlight":n instanceof a.xu?"underline":n instanceof a.R9?"strikeout":n instanceof a.hL?"squiggle":n instanceof s.Z?"redaction":null:null}function j(e,t,n,r,i){const{width:s,height:l}=t,{currentPageIndex:u,pagesRotation:d}=e.viewportState,p=e.pages.get(u);(0,o.kG)(p,`Cannot find page at index ${u}`);const h=p.pageSize,f=Math.min(h.width*c.Bs/s,h.height*c.Bs/l,1);let m=s*f,g=l*f;return 90!==d&&270!==d||([m,g]=[g,m]),new a.sK({...N(e),pageIndex:u,imageAttachmentId:n,contentType:r,rotation:d,fileName:i,boundingBox:new a.UL({left:h.width/2-m/2,top:h.height/2-g/2,width:m,height:g})})}function L(e,t,n){const{width:r,height:i}=t,{currentPageIndex:s,pagesRotation:l}=e.viewportState,u=e.pages.get(s);(0,o.kG)(u,`Cannot find page at index ${s}`);const d=u.pageSize,p=Math.min(d.width*c.Bs/r,d.height*c.Bs/i,1);let h=r*p,f=i*p;return 90!==l&&270!==l||([h,f]=[f,h]),new a.GI({...N(e),pageIndex:s,stampType:n.stampType,title:n.title,subtitle:n.subtitle,color:n.color,opacity:n.opacity,rotation:l,boundingBox:new a.UL({left:d.width/2-h/2,top:d.height/2-f/2,width:h,height:f})})}function B(e){return RegExp("^([A-Fa-f0-9]{64}|[0-9]+)$").test(e)}function K(e,t){let n=(0,r.D5)();return(Array.isArray(t)?t:[t]).forEach((t=>{if(t instanceof a.sK&&t.imageAttachmentId){const r=e.get(t.imageAttachmentId);r&&(n=n.set(t.imageAttachmentId,r))}})),n}function V(e){return e.locked?!e.locked:e instanceof a.om||e instanceof a.Hi||e instanceof a.o9||$(e)}function H(e){if(e.locked)return!e.locked;switch(e.constructor){case a.gd:return!$(e);case a.GI:return!0;default:return!1}}function $(e){return e instanceof a.gd&&!!e.callout?.innerRectInset}function U(e){return e.locked?!e.locked:e instanceof a.om||e instanceof a.Hi||e instanceof a.b3||e instanceof a.sK||e instanceof a.Zc||e instanceof a.Xs||e instanceof a.GI||e instanceof a.gd&&!$(e)||e instanceof a.x_||e instanceof a.R1}function Z(e,t){const n=t.onAnnotationResizeStart?t.onAnnotationResizeStart(e):void 0;if(void 0!==n)return(0,o.kG)(!0===n.maintainAspectRatio||!1===n.maintainAspectRatio||null===n.maintainAspectRatio||void 0===n.maintainAspectRatio,"onAnnotationResizeStart should return a valid configuration or undefined"),!!n.maintainAspectRatio&&n.maintainAspectRatio;if(e.isShiftPressed)return!0;const r=e.annotation instanceof a.sK||e.annotation instanceof a.GI,i=[g.V.TOP_LEFT,g.V.TOP_RIGHT,g.V.BOTTOM_LEFT,g.V.BOTTOM_RIGHT];return!!(r&&i.includes(e.resizeAnchor)||"isSignature"in e.annotation&&e.annotation.isSignature)}function q(e,t){const n=t.onAnnotationResizeStart?t.onAnnotationResizeStart(e):void 0;return n&&(n.minHeight&&n.minHeight<0&&((0,o.ZK)("minimum height in the onAnnotationResizeStart API should be greater than 0"),n.minHeight=void 0),n.maxHeight&&n.maxHeight<0&&((0,o.ZK)("maximum height in the onAnnotationResizeStart API should be greater than 0"),n.maxHeight=void 0),n.maxWidth&&n.maxWidth<0&&((0,o.ZK)("maximum width in the onAnnotationResizeStart API should be greater than 0"),n.maxWidth=void 0),n.minWidth&&n.minWidth<0&&((0,o.ZK)("maximum width in the onAnnotationResizeStart API should be greater than 0"),n.minWidth=void 0),n.maxHeight&&n.minHeight&&n.maxHeight<n.minHeight&&((0,o.ZK)("maximum Height parameter should be greater than the minimum Height parameter in onAnnotationResizeStart API"),n.maxHeight=void 0,n.minHeight=void 0),n.maxWidth&&n.minWidth&&n.maxWidth<n.minWidth&&((0,o.ZK)("maximum Width parameter should be greater than the minimum Width parameter in onAnnotationResizeStart API"),n.maxWidth=void 0,n.minWidth=void 0)),{maxHeight:n?.maxHeight,maxWidth:n?.maxWidth,minWidth:n?.minWidth,minHeight:n?.minHeight}}function G(e){return e instanceof a.om||e instanceof a.Hi||e instanceof a.o9||e instanceof a.b3||e instanceof a.sK||e instanceof a.Zc||e instanceof a.Xs||e instanceof a.GI||e instanceof a.gd||e instanceof a.x_||e instanceof a.Qi||e instanceof a.Jn||e instanceof a.R1}function W(e){return e instanceof a.om||e instanceof a.Hi||e instanceof a.b3||e instanceof a.sK||e instanceof a.Zc||e instanceof a.Xs||e instanceof a.GI||e instanceof a.gd||e instanceof a.x_||e instanceof s.Z||e instanceof a.R1||e instanceof a.Ih}function Y(e,t){let n=!1;return t.emit("annotations.press",{...e,preventDefault:()=>{e.nativeEvent.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),n=!0}}),n}function X(e){e.selectedAnnotationIds.forEach((t=>{e.deleteIn(["annotationPresetIds"],t)}))}function Q(e){return"number"==typeof e.pdfObjectId}function J(e){return e.width>0&&e.height>0}function ee(e,t){return!(e instanceof a.GI||e instanceof a.Ih||e instanceof a.sK||e instanceof a.x_&&(t instanceof a.Yo||t instanceof a.R0&&"number"==typeof e.buttonIconUpdatedAt))}function te(e,t){return!(0,r.is)(R(e),R(t))||e.opacity!==t.opacity||e.rotation!==t.rotation||P(e)!==P(t)||(t instanceof a.sK&&e instanceof a.sK&&e.imageAttachmentId!==t.imageAttachmentId||(t instanceof a.GI&&e instanceof a.GI&&(!re(e.color,t.color)||e.stampType!==t.stampType||e.title!==t.title||e.subtitle!==t.subtitle)||(!(!(t instanceof a.UX&&e instanceof a.UX)||e.strokeWidth===t.strokeWidth&&re(e.strokeColor,t.strokeColor)&&re(e.fillColor,t.fillColor)&&(!t.strokeDashArray||e.strokeDashArray&&!t.strokeDashArray.some(((t,n)=>void 0===e.strokeDashArray[n]||t!==e.strokeDashArray[n]))))||(!(!(t instanceof a.UX&&e instanceof a.UX&&t.isMeasurement())||e.measurementScale===t.measurementScale&&e.measurementPrecision===t.measurementPrecision)||((t instanceof a.b3||t instanceof a.Xs)&&(e instanceof a.b3||e instanceof a.Xs)&&(t.cloudyBorderInset!==e.cloudyBorderInset||t.cloudyBorderIntensity!==e.cloudyBorderIntensity)||(!!((t instanceof a.o9||t instanceof a.om)&&(e instanceof a.o9||e instanceof a.om)&&t.lineCaps&&(!e.lineCaps||t.lineCaps.start!==e.lineCaps.start||t.lineCaps.end!==e.lineCaps.end)||!t.lineCaps&&e.lineCaps)||(!!(t instanceof a.o9&&oe(e,t))||(!!((t instanceof a.om||t instanceof a.Hi)&&(e instanceof a.om||e instanceof a.Hi)&&oe(e,t))||(t instanceof a.Zc&&e instanceof a.Zc&&(e.lineWidth!==t.lineWidth||!re(e.strokeColor,t.strokeColor)||!re(e.backgroundColor,t.backgroundColor)||e.blendMode!==t.blendMode)||(t instanceof a.gd&&e instanceof a.gd&&(e.text.value!==t.text.value||e.fontSize!==t.fontSize||e.font!==t.font||!re(e.fontColor,t.fontColor)||!re(e.backgroundColor,t.backgroundColor)||e.isBold!==t.isBold||e.isItalic!==t.isItalic||e.horizontalAlign!==t.horizontalAlign||e.verticalAlign!==t.verticalAlign||e.borderWidth!==t.borderWidth||e.borderStyle!==t.borderStyle)||(t instanceof a.Qi&&e instanceof a.Qi&&(!re(t.color,e.color)||e.icon!==t.icon)||(t instanceof a.On&&e instanceof a.On&&(e.blendMode!==t.blendMode||!re(e.color,t.color)||e.rects!==t.rects)||t instanceof a.x_&&e instanceof a.x_&&t.buttonIconUpdatedAt!==e.buttonIconUpdatedAt))))))))))))}function ne(e,t){return e?.readOnly!==t?.readOnly}function re(e,t){return e instanceof h.Z&&t instanceof h.Z?e.equals(t):!(e instanceof h.Z||t instanceof h.Z)}function oe(e,t){if(e instanceof a.o9&&t instanceof a.o9){if(t.startPoint!==e.startPoint||t.endPoint!==e.endPoint)return!(t.startPoint.x-e.startPoint.x==t.boundingBox.left-e.boundingBox.left&&t.startPoint.y-e.startPoint.y==t.boundingBox.top-e.boundingBox.top)}else if((e instanceof a.om||e instanceof a.Hi)&&(t instanceof a.om||t instanceof a.Hi))return!(e.points.size===t.points.size&&e.points.every(((n,r)=>{const i=t.points.get(r);return(0,o.kG)(i&&n),i.x-n.x==t.boundingBox.left-e.boundingBox.left&&i.y-n.y==t.boundingBox.top-e.boundingBox.top})));return!1}function ie(e,t,n){const{invalidAPStreams:r}=e();let o=!1,i=r.get(t.pageIndex);i&&(o=!!i.get(t.id)),n();const{invalidAPStreams:a,annotations:s}=e(),l=s.get(t.id);if(!l)return!o;let c=!1;return i=a.get(l.pageIndex),i&&(c=!!i.get(l.id)),!o&&c}function ae(e,t,n){(0,o.kG)(e.backend);const{invalidAPStreams:r,historyIdsMap:i,isHistoryEnabled:a,backend:s}=e,l=t.get(n.pageIndex),c=r.get(n.pageIndex);return!a||"STANDALONE"!==s?.type||l&&l.has(n.id)||!c||!c.has(n.id)?n:n.set("APStreamCache",{cache:i.get(n.id)||n.id})}function se(e,t){(0,o.kG)(e.backend);const{historyIdsMap:n,isHistoryEnabled:r,backend:i}=e;return r&&"STANDALONE"===i?.type?t.set("APStreamCache",{cache:n.get(t.id)||t.id}):t}const le="rgba(70, 54, 227, 0.5) solid 2px";function ce(e){const{id:t,pdfObjectId:n}=e;return e=>e===n?.toString()||e===t}function ue(e,t){let{backend:n,annotations:o}=e;t.forEach((e=>{const t=o.get(e.id);t&&te(t,e)&&n?.clearPageAPStreams(t.pageIndex,(0,r.l4)([t.id]))}))}function de(e,t,n){let{backend:o,formFields:i}=e;t.forEach((e=>{const t=i.get(e.formFieldName);t&&ne(t,n)&&o?.clearPageAPStreams(e.pageIndex,(0,r.l4)([e.id]))}))}const pe=Object.freeze({CLOCKWISE:"CLOCKWISE",COUNTERCLOCKWISE:"COUNTERCLOCKWISE"});function he(e,t,n){const{rotation:r,boundingBox:o}=e,i=o.getCenter();let s=new a.E9({x:Math.max(0,i.x-o.height/2),y:Math.max(0,i.y-o.width/2)});s.x+o.height>t.width&&(s=s.set("x",t.width-o.height)),s.y+o.width>t.height&&(s=s.set("y",t.height-o.width));const l=e.set("boundingBox",o.withMutations((e=>{e.height=o.width,e.width=o.height,e.left=s.x,e.top=s.y})));if(n){const e=n===pe.CLOCKWISE;switch(r){case 0:return l.set("rotation",e?270:90);case 90:return l.set("rotation",e?0:180);case 180:return l.set("rotation",e?90:270);case 270:return l.set("rotation",e?180:0)}}return l}function fe(e,t){return a.UL.union(e.map((e=>{if((0,y.o0)(e)){return C((0,y.az)(e),t)}return C(e,t)})))}function me(e,t){if(e instanceof a.x_)return"widget";if(Object.keys(p.Z).includes(e.constructor.readableName.toLowerCase()+"Annotation")){const n=function(e){if(e instanceof a.Jn)return p.Z.comment.id;const t=e.constructor.readableName.toLowerCase()+"Annotation";return p.Z[t].id}(e);return t(p.Z[n])}return e.constructor.readableName.toLowerCase()}function ge(e){return!(e instanceof a.UX&&e.isMeasurement())}function ve(e,t){return t?.isAnnotationNote?e.readOnly?"not-allowed":"inherit":e instanceof a.gd?e.readOnly?"not-allowed":e.locked?"text":e.lockedContents?"pointer":t?.cursor||(t?.isSelectable?"pointer":"auto"):e instanceof a.GI?e.readOnly||e.locked?"not-allowed":t?.cursor||(t?.isSelectable?"pointer":"auto"):e instanceof a.Zc?e.readOnly||e.locked?"not-allowed":e.lockedContents?"pointer":"inherit":e instanceof a.R1?e.locked?"pointer":"inherit":e instanceof a.Qi&&t?.isExpandedNote?e.readOnly||e.locked&&e.lockedContents?"not-allowed":e.locked?"text":e.lockedContents?"not-allowed":t.isSelectable?"pointer":"auto":e.readOnly||e.locked&&e.lockedContents||e.locked?"not-allowed":e.lockedContents||t?.isSelectable||t?.isSelected?"pointer":"auto"}function ye(e){if(e instanceof a.GI)return p.Z.stampAnnotation;if(e instanceof a.sK)return p.Z.imageAnnotation;if(e instanceof a.gd)return p.Z.textAnnotation;if(e instanceof a.Qi)return p.Z.noteAnnotation;if(e instanceof a.Jn)return p.Z.comment;if(e instanceof a.Zc)return p.Z.inkAnnotation;if(e instanceof a.R1)return p.Z.linkAnnotation;if(e instanceof a.o9)return p.Z.lineAnnotation;if(e instanceof a.b3)return p.Z.rectangleAnnotation;if(e instanceof a.Xs)return p.Z.ellipseAnnotation;if(e instanceof a.Hi)return p.Z.polygonAnnotation;if(e instanceof a.om)return p.Z.polylineAnnotation;if(e instanceof a.FV)return p.Z.highlightAnnotation;if(e instanceof a.hL)return p.Z.squiggleAnnotation;if(e instanceof a.xu)return p.Z.underlineAnnotation;if(e instanceof a.R9)return p.Z.strikeOutAnnotation;if(e instanceof s.Z)return p.Z.redactionAnnotation;if(e instanceof a.Hu)return p.Z.mediaAnnotation;if(e instanceof a.Ih)return p.Z.unknownAnnotation;throw new o.p2(`Unsupported annotation type: ${JSON.stringify(e.toJS())}`)}function be(e){return(!(e instanceof a.GI||e instanceof a.sK||e instanceof a.Qi||e instanceof a.UX)||!e.locked&&!e.readOnly)&&!(e instanceof a.gd&&e.readOnly)}function we(e,t){return!(e instanceof a.Hu||e instanceof s.Z||e instanceof a.On||"focus"===t.type)}function xe(e){return e.isSignature}function _e(e,t){return e.filter((e=>e.pageIndex===t&&e instanceof a.R1)).toList()}function Se(e,t){return Ce(e,t)?1:t}function Ce(e,t){return(e instanceof a.GI||e instanceof a.gd&&!$(e))&&e.noZoom&&t>=1}function Ee(e){return e.createdAt.getTime()===e.updatedAt.getTime()}function ke(e){return e instanceof a.gd?"xhtml"===e.text.format?(0,m.KY)(e.text.value):e.text.value:""}function ze(e){const t={width:e.boundingBox.width,height:e.boundingBox.height,opacity:e.opacity,rotation:e.rotation};return e instanceof a.GI?JSON.stringify({...t,stampType:e.stampType,title:e.title,subtitle:e.subtitle,color:e.color?.toHex(),xfdfAppearanceStream:e.xfdfAppearanceStream,xfdfAppearanceStreamOriginalPageRotation:e.xfdfAppearanceStreamOriginalPageRotation}):JSON.stringify(t)}},34299:(e,t,n)=>{"use strict";function r(e){const t=new FileReader;return new Promise(((n,r)=>{t.onerror=e=>{r(new Error(e))},t.onload=e=>{n(new Uint8Array(e.target?.result))},t.readAsArrayBuffer(e)}))}n.d(t,{V:()=>r})},22284:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(34997).SK},98179:(e,t,n)=>{"use strict";function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent??"";return e.indexOf("Trident/")>-1?"trident":e.indexOf("Edge/")>-1?"edge":e.indexOf("Chrome/")>-1?"blink":e.indexOf("AppleWebKit/")>-1?"webkit":e.indexOf("Gecko/")>-1?"gecko":"unknown"}function o(e,t){const n=new RegExp(` ${t}/(\\d+)\\.*`);let r;return(r=e.match(n))?Number(r[1]):0}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent??"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:globalThis.navigator?.platform??"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:globalThis.navigator?.maxTouchPoints??0;return t.indexOf("MacIntel")>-1&&n>1?"ios":e.indexOf("Win")>-1?"windows":e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1||"iPad"===t?"ios":e.indexOf("Mac")>-1?"macos":e.indexOf("Android")>-1?"android":e.indexOf("Linux")>-1?"linux":"unknown"}n.d(t,{By:()=>s,Dt:()=>m,G6:()=>c,Ni:()=>l,SR:()=>a,TL:()=>f,V5:()=>w,b1:()=>b,b5:()=>g,eJ:()=>x,fq:()=>p,i7:()=>d,rO:()=>h,vU:()=>u,yx:()=>v});const a=r(),s=i(),l=(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent;switch(r(e)){case"trident":return o(e,"Trident");case"edge":return o(e,"Edge");case"blink":return o(e,"Chrome");case"webkit":return o(e,"Version");case"gecko":return o(e,"Firefox");default:;}}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r();return"ios"===e||"android"===e||v(t)}()),c="webkit"===a,u="gecko"===a,d="blink"===a,p="trident"===a,h="edge"===a,f="ios"===s||v(),m="android"===s,g=d&&m;function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r();return("undefined"==typeof window||!window.PSPDFKIT_PLAYWRIGHT_TEST)&&("webkit"===e&&"undefined"!=typeof TouchEvent)}let y;function b(){return void 0===y&&(y="ontouchstart"in window||globalThis.navigator?.maxTouchPoints>0),y}"undefined"!=typeof window&&(window.addEventListener("mousemove",(function e(){y=!1,window.removeEventListener("mousemove",e)})),window.addEventListener("pointermove",(function e(t){"mouse"!==t.pointerType&&"pen"!==t.pointerType||(y=!1),window.removeEventListener("pointermove",e)})));const w=/Mac/i.test(globalThis.navigator?.platform),x=e=>c&&function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent??"").match(/Version\/(\d+\.\d)/);return e?Number(e[1]):0}()<e},72127:(e,t,n)=>{"use strict";n.d(t,{CM:()=>i,Kd:()=>a,Ss:()=>l,ev:()=>u,iR:()=>c,kR:()=>s,mi:()=>o,os:()=>d,uW:()=>p});var r=n(15359);function o(e,t){return(0,r.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.canReply||e.isCommentThreadRoot&&e.canReply}function i(e,t){return(0,r.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isEditable||e.isEditable}function a(e,t){return(0,r.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isDeletable||e.isDeletable}function s(e,t){return(0,r.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isEditable||e.isEditable}function l(e,t){return(0,r.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isDeletable||e.isDeletable}function c(e,t){return(0,r.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.isEditable||e.isEditable}function u(e,t){return(0,r.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.isDeletable||e.isDeletable}function d(e,t){return(0,r.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.isFillable||e.isFillable}function p(e,t){return(0,r.kG)(t.backend),!(!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.canSetGroup)&&e.canSetGroup}},35727:(e,t,n)=>{"use strict";n.d(t,{Y7:()=>p,_P:()=>v,dq:()=>f,en:()=>y,kT:()=>m,kx:()=>d,nN:()=>g,oK:()=>h});var r=n(93113),o=n(21683),i=n(44077),a=n(10983),s=n(2464),l=n(60679),c=n(12705),u=n(82716);const d="The feature you're trying to use requires a comments license. The Comments component is sold separately.";function p(e){let{showComments:t,commentThreads:n,features:r,backend:o}=e;return t&&n.size>0&&(0,c.LC)({features:r,backend:o})}function h(e){let{showComments:t,features:n,backend:r}=e;return t&&(0,c.LC)({features:n,backend:r})}function f(e){if(!p(e))return null;const{viewportState:t}=e;return e.containerRect.width>a.xD?t.scrollMode!==s.G.PER_SPREAD&&t.scrollMode!==s.G.DISABLED||function(e,t){let{viewportState:n,pages:r,commentThreads:i}=e;return(0,o.P1)(n,(0,o.dF)(n,t)).some((e=>{const t=r.get(e);return!!t&&t.annotationIds.some((e=>i.has(e)))}))}(e,e.viewportState.currentPageIndex)?l._.SIDEBAR:null:e.selectedAnnotationIds.size>0&&e.selectedAnnotationIds.some((t=>!!e.commentThreads.get(t)))?l._.PANE:null}const m=e=>null==e.pageIndex;function g(e,t){const n=(0,o.dF)(t,e.pageIndex);let a=i.sl.IDENTITY;if(t.scrollMode===s.G.CONTINUOUS){const e=(0,o.e8)(t,n);a=a.translateY(e)}return a=(0,r._4)(a,t),e.boundingBox.apply(a).top}const v=(e,t)=>!!y(e,t),y=(e,t)=>{const n=e.last();if(null!==n){const e=t.get(n);if((0,u.k)(e),m(e))return e}}},65160:(e,t,n)=>{"use strict";n.d(t,{LD:()=>u,TH:()=>l,cJ:()=>h,uv:()=>c,wj:()=>f});var r=n(35369),o=n(45249),i=n(98179),a=n(98492),s=n(65739);function l(e,t){return(0,r.aV)(e.textLines.map(((e,n)=>new o.bi({id:n+1,contents:e.contents,pageIndex:t,boundingBox:new o.UL({top:e.top,left:e.left,height:e.height,width:e.width})}))))}function c(e,t,n,i,l){let c=n,u=i,h=l;const f=[];function m(e,n){return new o.dc({id:n,pageIndex:t,boundingBox:(0,a.k)(e.bbox),elementType:e.element.type})}return function e(n,r){n&&n.forEach((n=>{if(n.element&&n.bbox&&("text"===n.element.type?n.element.text&&r&&r.textLines.push(function(e,n){return new o.bi({id:n,contents:e.element.text,pageIndex:t,boundingBox:(0,a.k)(e.bbox),hints:e.element.hints})}(n,++u)):(n.element.type,r&&r.contentElements.push(m(n,++h)))),n.children){const o={pdfua_type:n.pdfua_type,type:n.type,alt:n.alt};let a=null;"Document"!==n.pdfua_type&&(a={id:++c,pageIndex:t,textLines:[],contentElements:[],contentBlocks:[],contentTreeElementMetadata:o,allowsBlockTypeChildren:(i=s.m[n.pdfua_type],"p"!==i),boundingBox:null},r?r.contentBlocks.push(a):f.push(a)),e(n.children,a)}var i}))}(e,null),f.map((function e(t){return new o.b0({id:t.id,pageIndex:t.pageIndex,contentTreeElementMetadata:t.contentTreeElementMetadata,textLines:(0,r.aV)(t.textLines),contentElements:(0,r.aV)(t.contentElements).filter(p),contentBlocks:(0,r.aV)(t.contentBlocks.map(e)),allowsBlockTypeChildren:t.allowsBlockTypeChildren,boundingBox:d(t)})}))}function u(e,t){if(e)return t.contents;const n=function(e){const t=e.split("‍");let n=0;for(const e of t){n+=Array.from(e.split(/[\ufe00-\ufe0f]/).join("")).length}return n/t.length}(t.contents);return i.TL?" x".repeat(n/2):" ".repeat(n)}function d(e){const{textLines:t,contentElements:n,contentBlocks:i}=e;if(0===t.length&&0===n.length&&0===i.length)return null;const a=t.map((e=>e.boundingBox)).concat(n.map((e=>e.boundingBox))).concat(i.map(d).filter(Boolean));return 0===a.length?null:o.UL.union((0,r.aV)(a))}function p(e){return"path"!==e.elementType}function h(e){return"Figure"===e||"L"===e||"LI"===e}function f(e){return"li"===e?{listStyleType:"none"}:null}},36904:(e,t,n)=>{"use strict";n.d(t,{AK:()=>u,Aq:()=>c,Gp:()=>l,Im:()=>f,Tl:()=>m,_v:()=>y,sz:()=>d,uB:()=>b,yK:()=>p,z8:()=>h});var r=n(35369),o=n(96988),i=n(44077),a=n(26559);n(44550);function s(e){return{textBlockId:e.id,anchor:(0,a.X$)(e.anchor),globalEffects:(0,a.uE)(e.globalEffects),externalControlState:(0,a.hH)(e)}}function l(e){const t=[];for(const n of e.pageStates.toList()){const e=new Map(n.textBlocks.map((e=>[e.id,e])));for(const r of n.initialTextBlocks)e.has(r.id)||t.push(s(r));for(const e of n.textBlocks){(!(0,r.is)(e.anchor,e.initialAnchor)||!(0,r.is)(e.globalEffects,e.initialGlobalEffects)||!(0,r.is)(e.layout,e.initialLayout)||e.version)&&t.push(s(e))}}return t}const c="The API you're trying to use requires a content editor license. The Content Editor component is sold separately.";const u=[4,6,8,10,12,14,16,18,20,24,32,36,48,64,72,96,144,192,200];function d(e,t){return new o.UL({offset:new o.Sg({x:e.offset.x*t,y:e.offset.y*t}),size:new o.Sg({x:e.size.x*t,y:e.size.y*t})})}function p(e,t,n){return new o.UL({offset:new o.Sg({x:e.offset.x+t.x*n,y:e.offset.y+t.y*n}),size:e.size})}function h(e){let t="";for(const n of e)t+=n.text;return t}const f=0,m=1,g=e=>{switch(e){case"begin":case"justified":return f;case"end":return m;case"center":return.5}},v=(e,t,n)=>{const r=(e=>(new i.sl).rotateRad(e.rotation).scale(1,e.flipY?-1:1))(e),a=r.applyToVector([n*t,0]);return new o.Sg({x:a[0],y:a[1]})},y=(e,t,n)=>(t-g(e))*n,b=(e,t,n,r)=>{const o=g(e)-n;return v(t,o,r)}},79724:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(15359);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t,n){if(!t)throw new r.p2(""===e?n:`${e}: ${n}`)}}},5619:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,k:()=>i});var r=n(35369);function o(e,t){let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const a=this;n&&clearTimeout(n),n=setTimeout((()=>{n=null,e.apply(a,o)}),t)}}function i(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(0,r.aV)();function i(e){const t=o;o=o.clear(),e.then((e=>{t.forEach((t=>{t.resolve(e)}))})).catch((e=>{t.forEach((t=>{t.reject(e)}))}))}return function(){for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];const l=this;return t&&clearTimeout(t),t=setTimeout((()=>{t=null,i(e.apply(l,a))}),n),new Promise(((e,t)=>{o=o.push({resolve:e,reject:t})}))}}},67009:(e,t,n)=>{"use strict";n.d(t,{uF:()=>h,Zt:()=>f,jI:()=>p,tK:()=>b,w2:()=>m});var r=n(15359),o=n(44276),i=n(69842),a=n(13349),s=n(45249),l=n(44550),c=n(74110),u=n(39684);const d=["application/pdf","image/png","image/jpeg"];function p(e,t){if(t===a.W.IF_SIGNED&&e.status!==i._.not_signed)return!0;if(t===a.W.HAS_ERRORS&&e.status===i._.error)return!0;const n=e.status===i._.valid&&e.documentModifiedSinceSignature;return!(t!==a.W.HAS_WARNINGS||e.status!==i._.warning&&e.status!==i._.error&&!n)}function h(e){if("string"==typeof e)return o.DS.encode(e);if(e instanceof ArrayBuffer)return o.DS.fromUint8Array(new Uint8Array(e));throw(0,r.Rz)(e)}function f(e,t){return!!(e.features.includes(l.q.DIGITAL_SIGNATURES)&&t instanceof s.x_&&"number"==typeof t.pdfObjectId&&e.digitalSignatures&&e.digitalSignatures.signatures&&e.digitalSignatures.signatures.some((e=>{let{signatureFormFQN:n}=e;return n===t.formFieldName}))&&e.formFields.has(t.formFieldName))}function m(e,t){e&&t&&"STANDALONE"===t.type&&((0,r.kG)(void 0===e.placeholderSize||"number"==typeof e.placeholderSize,"`placeholderSize` must be a number."),(0,r.kG)(void 0===e.flatten||"boolean"==typeof e.flatten,"`flatten` must be a boolean."),(0,r.kG)(void 0===e.formFieldName||"string"==typeof e.formFieldName,"`formFieldName` must be a string."),(0,r.kG)(void 0===e.formFieldName||void 0===e.position,"`formFieldName` and `position` cannot be used together."),g(e.position),v(e.appearance),y(e.signatureMetadata),function(e){if(!e)return;(0,r.kG)(!e.signatureType||e.signatureType===c.BG.CMS||Array.isArray(e.certificates)&&e.certificates.length>0&&e.certificates.every((e=>Boolean(e instanceof ArrayBuffer&&e.byteLength>0||"string"==typeof e&&e.length>0))),"For signatures of type `PSPDFKit.SignatureType.CAdES` an `Array` of certificates must be provided in `signaturePreparationData.signingData.certificates`."),(0,r.kG)(void 0===e.privateKey||"string"==typeof e.privateKey&&e.privateKey.length>0,"`signingData.privateKey` must be a non-empty string if provided."),(0,r.kG)(Object.values(c.BG).includes(e.signatureType),`\`signingData.signatureType\` must be a valid \`PSPDFKit.SignatureType\` value. \`${e.signatureType}\` was provided instead.`)}(e.signingData))}function g(e){e&&((0,r.kG)("number"==typeof e.pageIndex,"`pageIndex` must be a number."),(0,r.kG)(e.boundingBox instanceof s.UL,"`boundingBox` must be a PSPDFKit.Geometry.Rect instance."))}function v(e){e&&((0,r.kG)(void 0===e.mode||e.mode in u.H,"`mode` must be a valid PSPDFKit.SignatureAppearanceMode value."),(0,r.kG)(void 0===e.showSigner||"boolean"==typeof e.showSigner,"`showSigner` must be a boolean."),(0,r.kG)(void 0===e.showSignDate||"boolean"==typeof e.showSignDate,"`showSignDate` must be a boolean."),(0,r.kG)(void 0===e.showReason||"boolean"==typeof e.showReason,"`showReason` must be a boolean."),(0,r.kG)(void 0===e.showLocation||"boolean"==typeof e.showLocation,"`showLocation` must be a boolean."),(0,r.kG)(void 0===e.showWatermark||"boolean"==typeof e.showWatermark,"`showWatermark` must be a boolean."),(0,r.kG)(void 0===e.showDateTimezone||"boolean"==typeof e.showDateTimezone,"`showDateTimezone` must be a boolean."),(0,r.kG)(void 0===e.watermarkImage||"Blob"===e.watermarkImage.constructor.name||"File"===e.watermarkImage.constructor.name,"`watermarkImage` must be a Blob or File."),(0,r.kG)(void 0===e.graphicImage||"Blob"===e.graphicImage.constructor.name||"File"===e.graphicImage.constructor.name,"`graphicImage` must be a Blob or File."),(0,r.kG)(void 0===e.watermarkImage||d.includes(e.watermarkImage.type),`The image type must be one of the supported formats: ${d.join(", ")}, provided: ${e.watermarkImage?.type}.`),(0,r.kG)(void 0===e.graphicImage||d.includes(e.graphicImage.type),`The image type must be one of the supported formats: ${d.join(", ")}, provided: ${e.graphicImage?.type}.`))}function y(e){e&&((0,r.kG)(void 0===e.signerName||"string"==typeof e.signerName,"`signerName` must be a string."),(0,r.kG)(void 0===e.signatureReason||"string"==typeof e.signatureReason,"`signatureReason` must be a string."),(0,r.kG)(void 0===e.signatureLocation||"string"==typeof e.signatureLocation,"`signatureLocation` must be a string."))}function b(e){e&&((0,r.kG)(!("placeholderSize"in e)||"number"==typeof e.placeholderSize&&e.placeholderSize>0,`Invalid \`placeholderSize\` for signature preparation data. Must be of type \`number\` and greater than \`0\` if present. Provided: ${e.placeholderSize}.`),(0,r.kG)(!("flatten"in e)||"boolean"==typeof e.flatten,`Invalid \`flatten\` for signature preparation data. Must be of type \`boolean\` if present. Provided: ${e.flatten}.`),(0,r.kG)(!("signatureMetadata"in e)||"object"==typeof e.signatureMetadata,`Invalid \`signatureMetadata\` for signature preparation data. Must be of type \`object\` if present. Provided: ${e.signatureMetadata}.`),"signatureMetadata"in e&&y(e.signatureMetadata),(0,r.kG)(!("position"in e)||"object"==typeof e.position,`Invalid \`position\` for signature preparation data. Must be of type \`object\` if present. Provided: ${e.position}.`),"position"in e&&g(e.position),(0,r.kG)(!("appearance"in e)||"object"==typeof e.appearance,`Invalid \`appearance\` for signature preparation data. Must be of type \`object\` if present. Provided: ${e.appearance}.`),"appearance"in e&&v(e.appearance),(0,r.kG)(!("formFieldName"in e)||"string"==typeof e.formFieldName&&e.formFieldName.trim().length>0,`Invalid \`formFieldName\` for signature preparation data. Must be a non-empty \`string\` if present. Provided: ${e.formFieldName}.`),(0,r.kG)(!e.signingData||!("signatureContainer"in e.signingData)||e.signingData?.signatureContainer&&Object.values(c.FR).includes(e.signingData.signatureContainer),`Invalid \`signingData.signatureContainer\`. Must be either \`raw\` or \`pkcs7\` if present. Provided: ${e.signingData?.signatureContainer}.`),(0,r.kG)(!e.signingData||!("signatureType"in e.signingData)||e.signingData?.signatureType&&Object.values(c.BG).includes(e.signingData.signatureType),`Invalid \`signingData.signatureType\`. Must be either \`CMS\` or \`CAdES\` if present. Provided: ${e.signingData?.signatureType}.`))}},95431:(e,t,n)=>{"use strict";n.d(t,{D4:()=>_e,jX:()=>be});var r=n(30845),o=n(67366),i=n(35369),a=n(15359),s=n(29152),l=n(52741),c=n(77897),u=n(45249),d=n(24382),p=n(17078),h=n(70982),f=n(47120),m=n(33427),g=n(96326),v=n(4715);class y{constructor(e,t){this.annotationProvider=e,this.localAnnotationCallbacks=t}createBackendObject(e,t){return(0,a.kG)(!(e instanceof v.Hu),"Media annotations cannot be created nor updated, only deleted."),!this.annotationProvider.canCreateBackendOrphanWidgets&&e instanceof u.x_?Promise.resolve():this.annotationProvider.createAnnotation(e,t?.attachments||(0,i.D5)())}updateBackendObject(e,t){return(0,a.kG)(!(e instanceof v.Hu),"Media annotations cannot be created nor updated, only deleted."),this.annotationProvider.updateAnnotation(e,t?.attachments||(0,i.D5)())}deleteBackendObject(e){return this.annotationProvider.deleteAnnotation(e)}createStoreObjects(e,t){this.localAnnotationCallbacks.createAnnotations(e,t?.attachments||(0,i.D5)())}updateStoreObjects(e){this.localAnnotationCallbacks.updateAnnotations(e)}deleteStoreObjects(e){this.localAnnotationCallbacks.deleteAnnotations(e)}validateObject(e){return(0,m.bz)(e)}getObjectById(e){return this.localAnnotationCallbacks.getAnnotationById(e)}getObjectId(e){return e.id}refresh(){this.localAnnotationCallbacks.refreshSignaturesInfo()}syncChanges(){return this.annotationProvider.syncChanges()}}class b extends g.a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.u.IMMEDIATE,r=arguments.length>3?arguments[3]:void 0;super(new y(e,t),n,r),this.annotationProvider=e}loadAnnotationsForPageIndex(e){return this.annotationProvider.loadAnnotationsForPageIndex(e)}}var w=n(96156),x=n(99745);class _{constructor(e,t){(0,w.Z)(this,"localBookmarks",(0,i.D5)()),(0,w.Z)(this,"onCreate",(e=>{this.localBookmarks=this.localBookmarks.set(e.id,e)})),(0,w.Z)(this,"onUpdate",(e=>{this.onCreate(e)})),(0,w.Z)(this,"onDelete",(e=>{this.localBookmarks=this.localBookmarks.delete(e.id)})),this.bookmarkProvider=e,this.localBookmarkCallbacks=t}createBackendObject(e){return this.bookmarkProvider.createBookmark(e)}updateBackendObject(e){return this.bookmarkProvider.updateBookmark(e)}deleteBackendObject(e){return this.bookmarkProvider.deleteBookmark(e.id)}createStoreObjects(e){this.localBookmarks=this.localBookmarks.withMutations((t=>{e.forEach((e=>{t.set(e.id,e)}))}))}updateStoreObjects(e){this.createStoreObjects(e)}deleteStoreObjects(e){this.localBookmarks=this.localBookmarks.withMutations((t=>{e.forEach((e=>{t.delete(e)}))}))}validateObject(e){if(!e.id||"string"!=typeof e.id)return!1;try{return(0,x.G)(e),!0}catch(e){return!1}}getObjectById(e){return this.localBookmarks.get(e)}getObjectId(e){return e.id}refresh(){this.localBookmarkCallbacks.refreshSignaturesInfo()}syncChanges(){return this.bookmarkProvider.syncChanges()}}class S extends g.a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.u.IMMEDIATE,r=arguments.length>3?arguments[3]:void 0;super(new _(e,t),n,r),(0,w.Z)(this,"getBookmarks",function(){let e=null;return async function(){return e||(e=this.bookmarkProvider.loadBookmarks()),await e,this.getLocalBookmarks()}}()),this.bookmarkProvider=e}getLocalBookmarks(){return this._callbacks.localBookmarks}}var C=n(28018),E=n(56207);class k{constructor(e,t){(0,w.Z)(this,"localComments",(0,i.D5)()),(0,w.Z)(this,"onCreate",(e=>{(0,a.kG)(e.id),this.localComments=this.localComments.set(e.id,e)})),(0,w.Z)(this,"onUpdate",(e=>{this.onCreate(e)})),(0,w.Z)(this,"onDelete",(e=>{(0,a.kG)(e.id),this.localComments=this.localComments.delete(e.id)})),this.commentProvider=e,this.localCommentCallbacks=t}createBackendObject(e,t){return this.commentProvider.createComment(e,t.comments,t.annotations)}updateBackendObject(e,t){return this.commentProvider.updateComment(e,t.comments,t.annotations)}deleteBackendObject(e,t){return(0,a.kG)(e.id),this.commentProvider.deleteComment(e.id,t.comments,t.annotations)}createStoreObjects(e){this.localComments=this.localComments.withMutations((t=>{e.forEach((e=>{(0,a.kG)(e.id),t.set(e.id,e)}))})),this.localCommentCallbacks.createComments(e)}updateStoreObjects(e){this.localComments=this.localComments.withMutations((t=>{e.forEach((e=>{(0,a.kG)(e.id),t.set(e.id,e)}))})),this.localCommentCallbacks.updateComments(e)}deleteStoreObjects(e){this.localComments=this.localComments.withMutations((t=>{e.forEach((e=>{t.delete(e)}))})),this.localCommentCallbacks.deleteComments(e)}validateObject(e){try{return(0,E.Gu)(e),!0}catch(e){return!1}}getObjectById(e){return this.localComments.get(e)}getObjectId(e){return(0,a.kG)(e.id),e.id}refresh(){this.localCommentCallbacks.refreshSignaturesInfo()}syncChanges(){return this.commentProvider.syncChanges()}}class z extends g.a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.u.IMMEDIATE,r=arguments.length>3?arguments[3]:void 0;super(new k(e,t),n,r),this.commentProvider=e}async loadComments(){let e=null;e||(e=this.commentProvider.loadComments?this.commentProvider.loadComments():Promise.resolve()),await e}}var P=n(48169);class D{constructor(e,t){this.formFieldValueProvider=e,this.localFormFieldValueCallbacks=t}createBackendObject(e){return this.formFieldValueProvider.createFormFieldValue(e)}updateBackendObject(e){return this.formFieldValueProvider.setFormFieldValue(e)}deleteBackendObject(e){return this.formFieldValueProvider.deleteFormFieldValue((0,P.X)(e))}createStoreObjects(e){this.localFormFieldValueCallbacks.createFormFieldValues(e)}updateStoreObjects(e){this.localFormFieldValueCallbacks.setFormFieldValues(e)}deleteStoreObjects(e){this.localFormFieldValueCallbacks.deleteFormFieldValues(e)}getObjectById(){return null}getObjectId(e){return e.name}validateObject(){return!0}refresh(){this.localFormFieldValueCallbacks.refreshSignaturesInfo()}syncChanges(){return this.formFieldValueProvider.syncChanges()}}class A extends g.a{_getSupportedEvents(){return[...super._getSupportedEvents(),"willSubmit","didSubmit"]}constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.u.IMMEDIATE,r=arguments.length>3?arguments[3]:void 0;super(new D(e,t),n===f.u.INTELLIGENT?f.u.IMMEDIATE:n,r)}createObject(e){const t=this.lockSave();try{this._saveModeQueue.createObject(this._createSaveQueueObject(e.name,e)),this._createdObjects=this._createdObjects.set(e.name,e)}finally{t()}}updateObject(e){const t=this.lockSave();try{this._saveModeQueue.updateObject(this._createSaveQueueObject(e.name,e)),this._updatedObjects=this._updatedObjects.set(e.name,e)}finally{t()}}deleteObject(e){const t=this.lockSave();try{this._saveModeQueue.deleteObject(this._createSaveQueueObject(e.name,e)),this._deletedObjects=this._deletedObjects.set(e.name,(0,P.X)(e))}finally{t()}}}var T=n(4087),I=n(56554),M=n(12705),R=n(87996),F=n(35464),N=n(49876),O=n(79685),j=n(46364),L=n(2891),B=n(5130),K=n(79724),V=n(20993),H=n(72127),$=n(44550);const U=(0,K.Z)("Forms"),Z=(0,a.Tr)("Forms");class q extends V.I{constructor(e,t){super(t().formFieldValueManager),this.dispatch=e,this.getState=t}async create(e){throw Z(`Can't create ${e.toString()}. Form field values creation is not supported.`)}async update(e){const{formFields:t,features:n,formsEnabled:r}=this.getState(),o=this.getState();return U(n.includes($.q.FORMS),B.DR),U(r,B.BZ),U(o.backend),e.map((e=>{const n=t.get(e.name);if(U(n,`Tried to set the form field value for form field \`${e.name}\` which does not exist.`),!(0,H.os)(n,o))throw new a.p2("You don't have permission to update this form field value.");return this.dispatch((0,c.xh)([{name:e.name,value:e.value,optionIndexes:e.optionIndexes}])),e}))}async delete(e){return e.map((e=>{throw Z(`Can't delete ${e.toString()}. Form field values deletion is not supported.`)}))}async ensureChangesSaved(e){U("string"==typeof e.name,"The form field value you passed to Instance.ensureChangesSaved() has no name.");const{formFieldValueManager:t}=this.getState();return U(t),await t.ensureObjectSaved(e)}}var G=n(22284),W=n(21713);const Y=(0,K.Z)("Bookmarks");class X extends V.I{constructor(e,t){super(t().bookmarkManager),this.dispatch=e,this.getState=t}async create(e){const t=this.getState(),{bookmarkManager:n}=t,r=e.map((e=>{const t=e.id;Y(n),"string"==typeof t&&n.getLocalBookmarks()&&Y(!n.getLocalBookmarks().has(t),`Bookmark with id (${t}) is already used.`);const r="string"==typeof e.id&&e.id.length>0?e:e.set("id",(0,G.A)());return(0,x.G)(r),n.createObject(r),n.autoSave(),r}));return(0,W.s)(r)}async update(e){const{bookmarkManager:t}=this.getState();Y(t);const n=e.map((e=>(Y("string"==typeof e.id,"The bookmark you passed to Instance.update() has no id.\nPlease use Instance.create() first to assign an id."),(0,x.G)(e),t.updateObject(e),t.autoSave(),e)));return(0,W.s)(n)}async delete(e){const t=this.getState(),{bookmarkManager:n}=t,r=await(n?.getBookmarks());Y(n);const o=e.map((e=>{Y("string"==typeof e.id,"The supplied bookmark id is not a valid id.");const t=r?.get(e.id);return Y(t,`No bookmark with id ${e.id} found.`),n.deleteObject(e),n.autoSave(),t}));return(0,W.s)(o)}async getObjectById(e){const{bookmarkManager:t}=this.getState();if(!t)return null;return(await t.getBookmarks()).get(e)}async ensureChangesSaved(e){Y("string"==typeof e.id,"The bookmark you passed to Instance.ensureChangesSaved() has no valid id.\nPlease use Instance.create() first to assign an id.");const{bookmarkManager:t}=this.getState();return Y(t),await t.ensureObjectSaved(e)}}var Q=n(34997),J=n(35727);const ee=(0,K.Z)("Comments"),te=Q.SK;class ne extends V.I{constructor(e,t){super(t().commentManager),this.dispatch=e,this.getState=t}async create(e,t){const n=this.getState(),r=e.map((e=>{re(n);const r=e.id;"string"==typeof r&&ee(!n.comments.has(r),`Comment id (${r}) is already used.`),ee(e.rootId,"Comment does not have `rootId`");const o=n.annotations.get(e.rootId)||(t?function(e,t){return e.find((e=>e instanceof v.q6&&e.id===t))}(t,e.rootId):null);if(ee(o,`Comment orphan: The comment can't be created because no comment thread root was found with the id '${e.rootId}'. Please ensure that you create the corresponding annotation together with the comment via instance.create([comment, commentThreadRootAnnotation]).`),ee(o instanceof v.Jn||o instanceof v.On,`The comment can't be created because its root has wrong type. Was '${o.constructor.name}', only 'CommentMarkerAnnotation' and 'TextMarkupAnnotation' are supported as comment thread roots.`),ee(!e.pageIndex||e.pageIndex===o.pageIndex,`The comment can't be created on different page (${e.pageIndex}) than the comment root (${o.pageIndex}).`),!(0,H.mi)(o,n))throw new a.p2("You are not allowed to reply to this thread.");const{annotationCreatorName:i,annotationCreatorNameReadOnly:s}=n;if(e.creatorName&&e.creatorName!==i&&s)throw new a.p2("The comment creator name is different from the one set on the JWT.");const l=e.withMutations((t=>{const r=new Date;t.set("id",te()).set("creatorName",n.annotationCreatorName).set("createdAt",r).set("updatedAt",r).set("pageIndex",o.pageIndex),ee(n.backend),n.backend.isCollaborationPermissionsEnabled()&&!t.group&&n.group!==n.backend.getDefaultGroup()&&t.merge({group:n.group}),["id","creatorName","createdAt","updatedAt"].map((n=>e[n]&&t.set(n,e[n])))}));return(0,E.Gu)(l),l}));return(0,o.dC)((()=>{r.forEach((e=>{e instanceof Error||(this.dispatch((0,F.Jr)(e)),this.autoSave())}))})),(0,W.s)(r)}async update(e){const t=this.getState(),n=e.map((e=>{re(t),ee("string"==typeof e.id,"The comment you passed to Instance.update() has no id.\nPlease use Instance.create() first to assign an id.");const n=t.comments.get(e.id);ee(n,"An comment that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\n    The update of this comment was skipped."),t.backend?.isCollaborationPermissionsEnabled()||n.group===e.group&&e.isEditable===n.isEditable&&e.isDeletable===n.isDeletable&&e.canSetGroup===n.canSetGroup||(e=e.set("group",n.group).set("isEditable",n.isEditable).set("isDeletable",n.isDeletable).set("canSetGroup",n.canSetGroup),(0,a.ZK)("`group`, `isEditable`, `isDeletable` and `canSetGroup` are only relevant when Collaboration Permissions are enabled in server backed setup. You do not have it enabled so these values are set to `undefined`."));if(!e.delete("group").equals(n.delete("group"))&&!(0,H.kR)(n,t))throw new a.p2("You don't have permission to update this comment.");if(e.group!==n.group&&!(0,H.uW)(e,t))throw new a.p2("You don't have permission to update the `group` of this comment.");if(e.isEditable!==n.isEditable||e.isDeletable!==n.isDeletable||e.canSetGroup!==n.canSetGroup)throw new a.p2("You can't update `isEditable` or `isDeletable` since they are read only properties which depend on the `group` property.");if(e.creatorName!==n.creatorName&&t.annotationCreatorNameReadOnly)throw new a.p2("You can't change the creatorName of a comment if it was already set on the JWT.");if(e.rootId!==n.rootId)throw new a.p2("You can't change the root id of a comment once it has been created.");const r=e.set("updatedAt",new Date);return(0,E.Gu)(r),r}));return(0,o.dC)((()=>{n.forEach((e=>{e instanceof Error||(this.dispatch((0,F.V4)(e)),this.autoSave())}))})),(0,W.s)(n)}async delete(e){const t=this.getState();re(t);const n=e.map((e=>{ee(e.id);const n=t.comments.get(e.id);if(ee(n,`No comment with id ${e.id} found.`),!(0,H.Ss)(n,t))throw new a.p2("You don't have permission to delete this comment.");return n}));return(0,o.dC)((()=>{n.forEach((e=>{e instanceof Error||(this.dispatch((0,F.UM)(e)),this.autoSave())}))})),(0,W.s)(n)}async ensureChangesSaved(e){re(this.getState()),ee("string"==typeof e.id,"The comment you passed to Instance.ensureChangesSaved() has no id.\nPlease use Instance.create() first to assign an id.");const{commentManager:t}=this.getState();return ee(t),await t.ensureObjectSaved(e)}async getObjectById(e){ee("string"==typeof e,"The supplied id is not a valid id.");const{comments:t,features:n}=this.getState();return n.includes($.q.COMMENTS)?t.get(e):null}}function re(e){const{features:t,backend:n}=e;ee(t.includes($.q.COMMENTS),J.kx),ee((0,M.xr)(n),"The API you're trying to use is only available when using the PSPDFKit Instant or PSPDFKit for Web Standalone.")}var oe=n(2549);const ie=(0,a.Tr)("Changes");class ae{constructor(e){this.annotation=e.annotation,this.bookmark=e.bookmark,this.comment=e.comment,this.formField=e.formField,this.formFieldValue=e.formFieldValue}toArray(){return[this.annotation,this.bookmark,this.comment,this.formField,this.formFieldValue].filter(Boolean)}forEach(e){this.toArray().forEach(e)}map(e){return this.toArray().map(e)}}class se{constructor(e,t,n,r){(0,w.Z)(this,"_prevHasUnsavedChanges",!1),(0,w.Z)(this,"eventEmitter",new O.Z(["saveStateChange"])),this._dispatch=e,this._getState=t,n&&(this.handlers=new ae(n)),r&&(this.eventEmitter=r)}connect(){const e=this._getState();if(this._backend=e.backend,!this.handlers){const e={};e.annotation=new L.Nk(this._dispatch,this._getState),e.bookmark=new X(this._dispatch,this._getState),e.formField=new B.fu(this._dispatch,this._getState),e.formFieldValue=new q(this._dispatch,this._getState),e.comment=new ne(this._dispatch,this._getState),this.handlers=new ae(e)}this.handlers.forEach((e=>{const t=e.getEventEmitter();t&&t.supportsEvent("saveStateChange")&&t.on("saveStateChange",(()=>this._onSaveStateChanged()))}))}save(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.hasUnsavedChanges())return Promise.resolve();const t=this.handlers.map((e=>e.manualSave(!1)));return e&&t.push(this._backend.syncChanges().catch(le)),(0,j.jK)(t).then((()=>{})).catch((t=>{const n=e?t.pop():null,r=t.filter(Boolean).map((e=>{if(e instanceof oe.V)return e.reason})).filter(Boolean),o=(0,i.aV)(r).flatMap((e=>e)).toArray();throw(0,oe.h)(o,Boolean(n),n?n.message:null)}))}hasUnsavedChanges(){return this.handlers.map((e=>e.hasUnsavedChanges())).some(Boolean)}_onSaveStateChanged(){const e=this.hasUnsavedChanges();this._prevHasUnsavedChanges!==e&&(this._prevHasUnsavedChanges=e,this.eventEmitter.emit("saveStateChange",{hasUnsavedChanges:e}))}async create(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._performChanges(e,((n,r)=>n.create(r,t?e:null)))}async update(e){return this._performChanges(e,((t,n)=>t.update(n,e)))}_changesForHandler(e,t){return t.filter((t=>this._handlerForChange(t)===e))}async delete(e){const t=e.map((()=>ie("Unsupported change type"))),n=await(0,j.jK)(e.map((async(e,n)=>{if(e){if("string"==typeof e){for(const t of this.handlers.toArray()){const n=await t.getObjectById(e);if(n)return n}t[n]=ie(`No object with id '${e}' found.`)}}else t[n]=ie("The supplied id is not a valid id");return e})));return this._performChanges(n,((e,t)=>e.delete(t)),t)}ensureChangesSaved(e){const t=e.map((e=>{const t=this._handlerForChange(e);return t?t.ensureChangesSaved(e):Promise.reject(ie("Unsupported change type"))}));return(0,j.jK)(t)}async _performChanges(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.map((()=>ie("Unsupported change type")));const r=[],i=this.handlers.map((e=>e.lockSave()));try{let n=null;(0,o.dC)((()=>{n=this.handlers.map((async(n,o)=>{const i=this._changesForHandler(n,e);if(i.length)try{r[o]=await t(n,i)}catch(e){r[o]=e}}))})),n&&await(0,j.jK)(n)}finally{i.forEach((e=>{e()}))}const a=await this._mapResultsToChanges(e,r,n);return a.some((e=>e instanceof Error))?Promise.reject(a):Promise.resolve(a)}async _mapResultsToChanges(e,t,n){const r=n;for(const[n,o]of this.handlers.map((e=>e)).entries()){const i=await this._changesForHandler(o,e),a=t[n];i.length&&i.forEach(((t,n)=>{const o=e.findIndex((e=>e===t));a instanceof Error?r[o]=a:r[o]=a[n]??a}))}return r}_handlerForChange(e){switch(!0){case e instanceof v.q6:return this.handlers.annotation;case e instanceof x.Z:return this.handlers.bookmark;case e instanceof u.sv:return this.handlers.comment;case e instanceof u.Wi:return this.handlers.formField;case e instanceof u.KD:return this.handlers.formFieldValue;default:return null}}}function le(e){throw ie(e),e}var ce=n(43069),ue=n(69842),de=n(76934),pe=n(55012),he=n(44156);const fe="rollover",me="down";var ge=n(33383),ve=n(66327),ye=n(14935);async function be(e,t,n){if(n.pageKeys)try{e(xe(t())),await we(e,t,n)}finally{e(xe(null))}else await we(e,t,n)}async function we(e,t,n){let{attemptedUnlockViaModal:f=!1,features:g,signatureFeatureAvailability:v,hasPassword:y=!1,minSearchQueryLength:w,allowedTileScales:x,pageKeys:_,evaluation:E}=n;const{backend:k,autoSaveMode:P,clientsChangeCallback:D,formsEnabled:O}=t();(0,a.kG)(k);const{provider:j}=k,[L,B]=await Promise.all([k.permissions(),k.documentInfo()]),K=g&&g.includes($.q.FORMS),V=(R.Options.IGNORE_DOCUMENT_PERMISSIONS||B.permissions&&(B.permissions.annotationsAndForms||B.permissions.fillForms))&&K&&O,H=V&&(0,M.k_)(k)&&g&&g.includes($.q.FORM_DESIGNER),U=K&&!(0,M.k_)(k)?await k.getFormJSON():null;if(k.isUsingInstantProvider()){(0,a.kG)("onClientsChange"in j&&void 0!==j.onClientsChange,"provider has no callback `onClientsChange` although it is using instant.");const n=j;n.onClientsChange((e=>{D.call(null,e)})),n.setDocumentHandleOutdated((t=>{e((0,h.KY)(t))})),n.setFormsEnabledInConfig(O),n.setStateGetter(t)}else if("SERVER"===k.type&&U&&g&&v){if(!(0,M.xW)(g,v)){const e=U.fields.filter((e=>"pspdfkit/form-field/signature"===e.type)).map((e=>e.name));U.annotations=U.annotations.filter((t=>!e.includes(t.formFieldName))),U.fields=U.fields.filter((t=>!e.includes(t.name))),j.setIgnoredFormFieldNames((0,i.aV)(e))}}E&&e((0,ve.m9)(E));const Z={refreshSignaturesInfo:async()=>{const{digitalSignatures:n}=t();g&&g.includes($.q.DIGITAL_SIGNATURES)&&n&&n&&n.status!==ue._.not_signed&&!1===n.documentModifiedSinceSignature&&(await k.refreshSignaturesInfo(),e((0,I.Y)(await k.getSignaturesInfo())))}},q={...Z,createAnnotations:(t,n)=>{n&&n.forEach(((t,n)=>{e((0,p.O)({hash:n,attachment:t}))})),e((0,N.pB)(de.j.EXTERNAL,(()=>{e((0,T.lA)(t))})))},updateAnnotations:t=>{e((0,N.pB)(de.j.EXTERNAL,(()=>{e((0,T.Zr)(t))})))},deleteAnnotations:t=>{e((0,N.pB)(de.j.EXTERNAL,(()=>{e((0,T.aF)(t))})))},getAnnotationById:e=>t().annotations.get(e)},G=K&&(0,M.k_)(k)?{...Z,createFormFields:t=>{e((0,c.TD)(t))},updateFormFields:t=>{e((0,c.C2)(t)),e((0,c.xW)(t.map((e=>new u.KD({name:e.name,value:e.value})))))},deleteFormFields:t=>{e((0,c.PT)(t))},getFormFieldByName:e=>t().formFields.get(e)}:null,W={...Z,createFormFieldValues:t=>e((0,c.zq)(t)),setFormFieldValues:t=>e((0,c.xW)(t)),deleteFormFieldValues:t=>e((0,c.HE)(t))},Y=(0,M.xr)(k),X=Y?{...Z,createComments:t=>{e((0,F.fg)(t))},updateComments:t=>{e((0,F.gk)(t))},deleteComments:t=>{e((0,F.Vn)(t))}}:null,Q={...Z},J=t(),ee=new b(j,q,P,J.annotationManager&&J.annotationManager.eventEmitter),te=new S(j,Q,P,J.bookmarkManager&&J.bookmarkManager.eventEmitter),ne=K&&G&&(0,M.k_)(k)?new C.c(j,G,P,J.formFieldManager&&J.formFieldManager.eventEmitter):null,re=new A(j,W,P,J.formFieldValueManager&&J.formFieldValueManager.eventEmitter);let oe;Y&&((0,a.kG)(null!=X),oe=new z(j,X,P,J.commentManager&&J.commentManager.eventEmitter));const ie=(0,r.Z)(m.xp),ae=(0,r.Z)(ce.ET),le={getPageContentState:e=>{const{pages:n,annotations:r,formFields:o}=t(),i=n.get(e);return(0,a.kG)(i),{pageSize:i.pageSize,annotations:ie(r,i),formFields:ae(o,i)}},getZoomState:()=>t().viewportState.zoomLevel,getAnnotationWithFormField:e=>{const{annotations:n,formFields:r}=t(),o=n.get(e);return{annotation:o,formField:o instanceof u.x_&&o.formFieldName?r.get(o.formFieldName):null}},getFormFieldWidgets:e=>{const{annotations:n}=t(),{annotationIds:r}=e;return n.filter(((t,n)=>e.annotationIds.includes(n)||e.annotationIds.includes(String(t.pdfObjectId)))).toList().sort(((e,t)=>r.indexOf(e.id)<r.indexOf(t.id)?-1:1))},getFormFieldByName:e=>t().formFields.get(e),isFormDesignerEnabled:()=>(0,M.ix)(t()),isAnnotationInState:e=>t().annotations.has(e),isFormFieldInState:e=>t().formFields.has(e),getAvailableVariants:e=>{const{APStreamVariantsRollover:n,APStreamVariantsDown:r}=t();if(null==e.pdfObjectId)return[];const o=[];return n.has(e.pdfObjectId)&&o.push(fe),r.has(e.pdfObjectId)&&o.push(me),o}},pe={createAnnotations:(e,t,n)=>{ee.backendObjectsCreated(e,n,{attachments:t})},updateAnnotations:ee.backendObjectsUpdated.bind(ee),deleteAnnotations:ee.backendObjectsDeleted.bind(ee),invalidateAPStreams:t=>e((0,T.GI)(t)),createAttachment:(t,n)=>{e((0,p.O)({hash:t,attachment:new u.Pg({data:n})}))},addAnnotationVariants:(t,n)=>{e((0,T.mw)(t,n))},applyJavaScriptActionChanges:t=>{e((0,c.bt)(t))},setPageTabOrder:(t,n)=>{e((0,T.N1)(t,n))}},ge={createBookmarks:te.backendObjectsCreated.bind(te),updateBookmarks:te.backendObjectsUpdated.bind(te),deleteBookmarks:te.backendObjectsDeleted.bind(te)},be=K&&ne instanceof C.c&&(0,M.k_)(k)?{createFormFields:ne.backendObjectsCreated.bind(ne),updateFormFields:ne.backendObjectsUpdated.bind(ne),deleteFormFields:ne.backendObjectsDeleted.bind(ne)}:null,we={createFormFieldValues:(e,t)=>{t===d.y?K&&re.backendObjectsCreated(e,t):t===d.z&&H&&re.backendObjectsCreated(e,t)},setFormFieldValues:e=>{V&&re.backendObjectsUpdated(e)},deleteFormFieldValues:e=>{H&&re.backendObjectsDeleted(e)}};let xe;Y&&((0,a.kG)(null!=oe),xe={createComments:oe.backendObjectsCreated.bind(oe),updateComments:oe.backendObjectsUpdated.bind(oe),deleteComments:oe.backendObjectsDeleted.bind(oe)});const _e=new se(e,t,null,J.changeManager&&J.changeManager.eventEmitter),Se={attemptedUnlockViaModal:f,hasPassword:y,features:g,signatureFeatureAvailability:v,permissions:L,documentInfo:B,formJSON:U,annotationManager:ee,bookmarkManager:te,formFieldManager:ne,formFieldValueManager:re,commentManager:oe,changeManager:_e,minSearchQueryLength:w,documentHandle:k.getDocumentHandle(),allowedTileScales:x,pageKeys:_};let Ce=null;(0,o.dC)((function(){e((0,l.rJ)(Se)),j.setReadStateCallbacks(le),j.setAnnotationCallbacks(pe),j.setBookmarkCallbacks(ge),j.setFormFieldValueCallbacks(we),Y&&((0,a.kG)(null!=xe),j.setCommentCallbacks(xe)),K&&(0,M.k_)(k)&&((0,a.kG)(be),j.setFormFieldCallbacks(be)),_e.connect(),Ce=j.load()}));try{await Ce,await new Promise(((t,n)=>{("visible"===document.visibilityState?requestAnimationFrame:setTimeout)((()=>{k.lazyLoadPages().then((r=>{const o=[];r&&e((0,he.uM)(r)),K&&(0,M.k_)(k)&&ne&&o.push(ne.loadFormFields()),(0,a.kG)(g,"Features should be defined at this point"),(0,M.xr)(k)&&(0,M.LC)({features:g,backend:k})&&oe&&o.push(oe.loadComments()),(0,M.YN)({features:g,backend:k})&&o.push(async function(e){let{backend:t,dispatch:n}=e;const r=await(t.getSecondaryMeasurementUnit?.());r&&n((0,ye.VO)(r));const o=await t.getMeasurementScales();o&&n((0,ve.RN)(o?(0,s.Ex)(o):null))}({backend:k,dispatch:e})),o.length>0?Promise.all(o).then((()=>t())).catch(n):t()})).catch((e=>{n(e)}))}))}))}catch(e){throw e}}function xe(e){return{type:pe.UX$,state:e}}function _e(e,t,n,r){let o;if("string"==typeof t){if(n===ge.x.SharePoint){const n=new URL(t,e),[r,o]=n.hostname.split(".").reverse();if("sharepoint"!==o||"com"!==r)throw new a.p2(`When using SharePoint, the document URL must be a sharepoint.com URL: it's ${o}.${r} instead.`)}if(n===ge.x.Salesforce){const t=new URL(e),[n,r]=t.hostname.split(".").reverse();if("salesforce"!==r&&"force"!==r&&"visualforce"!==r||"com"!==n)throw new a.p2(`When using Salesforce, the SDK must be loaded from a Salesforce URL: it's ${r}.${n} instead.`)}o=fetch(t,{credentials:"same-origin"}).then((e=>e.arrayBuffer())).finally((()=>{r?.()}))}else o=t;return o}},52163:(e,t,n)=>{"use strict";n.d(t,{RG:()=>c,SH:()=>f,bZ:()=>d,h6:()=>m,mr:()=>p,nN:()=>u,rh:()=>h});var r=n(35369),o=n(15359),i=n(44550),a=n(84293),s=n(81777),l=n(79112);function c(e){return"STANDALONE"===e.backend?.type&&e.features.includes(i.q.DOCUMENT_COMPARISON)}const u="You need the document comparison license component to use this feature.",d="The document comparison feature is only available in Standalone mode.",p=(e,t)=>(0,a.cq)(e.set("currentPageIndex",0).set("pageSizes",(0,r.aV)([t.pageSize])),s.c.FIT_TO_WIDTH);async function h(e){const t=await e;if("string"==typeof t){let e;try{e=fetch(t).then((e=>e.arrayBuffer()))}catch(e){(0,o.vU)(e)}return e}if(t instanceof ArrayBuffer)return t;throw new o.p2("Comparison document source is not a URL nor an ArrayBuffer")}const f=e=>e===l.Q.documentA?l.Q.documentA:e===l.Q.documentB?l.Q.documentB:l.Q.result,m=[[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]]]},21853:(e,t,n)=>{"use strict";n.d(t,{Aw:()=>d,Cz:()=>z,N1:()=>v,PF:()=>E,Qu:()=>p,R4:()=>f,R9:()=>h,Re:()=>D,_c:()=>C,_s:()=>x,ar:()=>m,cR:()=>_,eR:()=>g,f:()=>c,fp:()=>b,gC:()=>y,o5:()=>u,sR:()=>k});var r=n(15359),o=n(60209),i=n(98179),a=n(87856),s=n(94683),l=n.n(s);function c(e){return function(e){e&&i.vU&&e.scrollHeight}(e),function(e){return e.scrollHeight>e.clientHeight}(e)||u(e)}function u(e){return e.scrollWidth>e.clientWidth}function d(e){const t=e?e.document:document,n=t.createElement("iframe"),{documentElement:o}=t;return(0,r.kG)(o),n.title="script",n.dataset.testid="realm",n.style.position="absolute",n.style.top="-10000px",n.style.left="-10000px",n.style.width="10000px",n.style.height="10000px",n.setAttribute("aria-hidden","true"),o.appendChild(n),{window:n.contentWindow,remove(){o.removeChild(n)}}}function p(e){let t;if(!e.nodeName)return!1;const n=e.nodeName,r=e.hasAttribute("tabindex")&&parseInt(e.getAttribute("tabindex")),o=!isNaN(r)&&isFinite(r)&&"boolean"!=typeof r;if(/^(IFRAME|LABEL|DATALIST|INPUT|SELECT|TEXTAREA|BUTTON|OBJECT)$/.test(n)){if(t=!e.disabled,t){const n=e.closest("fieldset");n&&(t=!n.disabled)}}else t="A"===n?e.href||o:e.hasAttribute("contenteditable")&&"true"===e.getAttribute("contenteditable")||o;return!!t}const h=async e=>{let{buffer:t,width:n,height:r,format:o=(0,a.zP)()}=e;if("bitmap"===o)return(async e=>{let{buffer:t,width:n,height:r}=e;const o=document.createElement("canvas");if(0===Math.floor(r)||0===Math.floor(n))return null;o.width=n,o.height=r;const i=new Uint8ClampedArray(t),a=o.getContext("2d"),s=a?.createImageData(n,r);return s?.data.set(i),a?.putImageData(s,0,0),f(await C(o))})({buffer:t,width:n,height:r});return f(new Blob([t],{type:`image/${o}`}))};function f(e){try{return m(URL.createObjectURL(e))}catch(e){return null}}async function m(e){const t=new Image;return t.onerror=e=>{throw new r.p2(`There was an error loading the image: ${e.message}`)},t.src=e,await k(t),new o.Z(t,(()=>URL.revokeObjectURL(e)))}function g(e){return!(!e||1!==e.nodeType)&&("true"===e.contentEditable||"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)}function v(e){return!(!e||1!==e.nodeType)&&Boolean(e.attributes.role&&"listbox"===e.attributes.role.value||e.attributes.role&&"menu"===e.attributes.role.value)}function y(e){if(!e||1!==e.nodeType)return!1;const t=e.getRootNode()||e.ownerDocument,n=t.querySelector(".PSPDFKit-Toolbar"),r=t.querySelector(".BaselineUI-Toolbar"),o=t.querySelector(".PSPDFKit-Annotation-Toolbar");return Boolean(n&&n.contains(e)||r&&r.contains(e)||o&&o.contains(e))}function b(e){return!(!e||1!==e.nodeType)&&Boolean(e.closest(".PSPDFKit-Toolbar-Responsive-Group"))}let w=!1;{let e=document.createElement("div");const t=()=>{};try{e.addEventListener("focus",t,!0),e.focus(Object.defineProperty({},"preventScroll",{get:()=>{w=!0}}))}catch(e){w=!1}finally{e.removeEventListener("focus",t),e=null}}function x(e,t){w&&t.focus({preventScroll:!0})}function _(e,t){const n=t.HTMLAnchorElement.prototype.hasOwnProperty("download"),r=new Blob([e],{type:"application/pdf"});if("function"==typeof navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(r,"download.pdf");else if(n){const e=window.URL.createObjectURL(r);S(e),t.URL.revokeObjectURL(e)}else{const e=new FileReader;e.onloadend=function(){const t=e.result;"string"==typeof t&&S(t)},e.readAsDataURL(r)}}function S(e){(0,r.kG)(null!=document.body);const t=document.createElement("a");t.href=e,t.style.display="none",t.download="download.pdf",t.setAttribute("download","download.pdf"),document.body&&document.body.appendChild(t),t.click(),document.body&&document.body.removeChild(t)}function C(e){return new Promise(((t,n)=>{"toBlob"in e?e.toBlob((e=>{t(e)}),"image/png"):"msToBlob"in e?t(e?.msToBlob()):n(new Error("Exporting HTMLCanvasElement to Blob is not supported in this browser."))}))}function E(e){e.preventDefault()}async function k(e){if(!(e instanceof HTMLImageElement)||"IMG"!==e.nodeName)return;try{await new Promise(((t,n)=>{e.complete?t():(e.onerror=n,e.onload=()=>t())}))}catch(e){throw new r.p2(`The image could not be loaded: ${e.message}`)}const t=e.decode();try{await t}catch(e){if(!i.i7)throw new r.p2(`The image could not be decoded: ${e.message}`);await new Promise((e=>setTimeout(e,200)))}}function z(e){e.target?.classList.remove(l().focusedFocusVisible),e.target?.removeEventListener("blur",z)}const P="HTMLElement";function D(e){return function(e,t){if(null===e)return!1;let n=e.constructor;for(;null!==n;){if(n.name===t)return!0;n=n.__proto__}return!1}(e,P)}},68944:(e,t,n)=>{"use strict";n.d(t,{J8:()=>c,Kr:()=>u,SV:()=>l,oM:()=>i,zj:()=>a});var r=n(15359),o=n(72110);function i(){return"protocol=5, client=2024.5.1, client-git=0e2bcd120f"}function a(){return"production"}const s=new Map;function l(e){const t=(0,o.Qk)();if(t)return t;const n=document.createElement("a");n.href=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Error;const n=s.get(e);if("string"==typeof n)return n;if(e.currentScript){const t=e.currentScript.src;return s.set(e,t),t}{let n;try{throw new t("PSPDFKit document.currentScript.src detection")}catch(e){e.stack&&(n=e.stack.match(/(?:file|https?):[^)]+/i))}(0,r.kG)(n,"Failed to automatically determine baseUrl. Please specify the base url as an option.");const o=n[0].split(":").slice(0,-2).join(":");return s.set(e,o),o}}(e);const i=n.pathname.split("/").filter(Boolean).slice(0,-1);return[`${n.protocol}/`,n.host,...i].join("/")+"/"}function c(e){return e||(0,o.$u)()||window.location.origin}function u(e){return"SERVER"===e?.type}},18920:(e,t,n)=>{"use strict";function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{bubbles:!1,cancelable:!1};return"function"==typeof Event?t=new Event(e,n):(t=document.createEvent("Event"),t.initEvent(e,Boolean(n.bubbles),Boolean(n.cancelable))),t}function o(e){const t=document.createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}function i(e){let{event:t,element:n}=e;const r=n.getRootNode().elementFromPoint(t.clientX,t.clientY);return n.contains(r)}n.d(t,{My:()=>r,_t:()=>o,pr:()=>i})},87856:(e,t,n)=>{"use strict";n.d(t,{Gn:()=>o,Rh:()=>s,Zy:()=>i,zP:()=>a});var r=n(98179);const o=(()=>{if("object"!=typeof window)return!1;let e=!1;const t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});try{window.addEventListener("test",null,t)}catch(e){}return e})();let i=!r.G6;if(!r.G6){const e=new Image;e.onload=()=>i=e.width>0&&e.height>0,e.onerror=()=>i=!1,e.src="data:image/webp;base64,UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA=="}const a=()=>"bitmap";let s=!1;try{const e=new FormData;e.append("key","value");const t=new Response(e);"formData"in t&&!fetch.polyfill&&t.formData().then((()=>{s=!0})).catch((()=>{s=!1}))}catch{s=!1}},80567:(e,t,n)=>{"use strict";n.d(t,{eE:()=>p,GE:()=>h,f3:()=>g,wn:()=>m,x6:()=>f,vt:()=>d});var r=n(35369),o=n(15359),i=n(69867);const a={Arial:{A:6.70421875,B:5.4102734375,C:6.333125,D:5.92296875,E:5.346796875,F:4.8341015625,G:6.62609375,H:5.620234375,I:.952265625,J:3.960078125,K:5.92296875,L:4.47765625,M:6.8360546875,N:5.6446484375,O:6.850703125,P:5.4688671875,Q:6.987421875,R:6.31359375,S:5.7032421875,T:5.678828125,U:5.6348828125,V:6.5528515625,W:9.2091015625,X:6.5675,Y:6.5675,Z:5.6641796875,a:4.780390625,b:4.5020703125,c:4.5216015625,d:4.5020703125,e:4.7852734375,f:3.0372265625,g:4.5753125,h:4.2286328125,i:.88390625,j:1.9971875000000001,k:4.301875,l:.88390625,m:7.0313671875,n:4.2188671875,o:4.8633984375,p:4.506953125,q:4.4971875,r:2.8223828125,s:4.311640625,t:2.534296875,u:4.2091015625,v:4.760859375,w:7.1192578125,x:4.858515625,y:4.7559765625,z:4.59484375},Verdana:{A:6.58703125,B:5.4883984375,C:6.0352734375,D:6.147578125,E:4.7950390625,F:4.6485546875,G:6.4844921875,H:5.5665234375,I:2.87609375,J:3.432734375,K:5.8253125,L:4.604609375,M:6.479609375,N:5.551875,O:6.7579296875,P:4.760859375,Q:6.9044140625,R:6.020625,S:5.61046875,T:6.167109375,U:5.5860546875,V:6.58703125,W:8.9942578125,X:6.19640625,Y:6.09875,Z:5.678828125,a:4.6387890625,b:4.8048046875,c:4.428828125,d:4.8048046875,e:4.956171875,f:3.510859375,g:4.8048046875,h:4.565546875,i:1.0401562500000001,j:2.9102734375,k:4.917109375,l:.92296875,m:7.963984375,n:4.565546875,o:5.0391796875,p:4.8048046875,q:4.8048046875,r:3.4083203125,s:4.2676953125,t:3.4376171875,u:4.565546875,v:5.327265625,w:7.34875,x:5.33703125,y:5.327265625,z:4.409296875},Tahoma:{A:6.09875,B:4.936640625,C:5.522578125,D:5.737421875,E:4.5508984375,F:4.3555859375,G:5.8790234375,H:5.2833203125,I:2.827265625,J:3.4376171875,K:5.3028515625,L:4.2188671875,M:6.23546875,N:5.2051953125,O:6.4356640625,P:4.59484375,Q:6.460078125,R:5.6348828125,S:4.9512890625,T:5.854609375,U:5.2637890625,V:6.049921875,W:8.7696484375,X:5.7325390625,Y:5.88390625,Z:5.083125,a:4.3458203125,b:4.5801953125,c:4.1602734375,d:4.5801953125,e:4.7169140625,f:3.3985546875,g:4.5801953125,h:4.292109375,i:1.0499218750000001,j:2.60265625,k:4.526484375,l:.92296875,m:7.114375,n:4.292109375,o:4.878046875,p:4.5801953125,q:4.5801953125,r:2.895625,s:3.9503125,t:3.2325390625,u:4.292109375,v:4.926875,w:7.13390625,x:4.858515625,y:4.926875,z:4.0137890625},"Trebuchet MS":{A:5.864375,B:4.5411328125,C:5.2051953125,D:5.014765625,E:4.2774609375,F:4.4239453125,G:5.6446484375,H:5.083125,I:.9815625,J:3.7989453125,K:5.0294140625,L:4.213984375,M:6.9532421875,N:4.9219921875,O:5.96203125,P:4.458125,Q:7.03625,R:5.0440625,S:4.0284375,T:5.6348828125,U:5.02453125,V:5.7520703125,W:8.3985546875,X:5.444453125,Y:5.581171875,Z:4.5313671875,a:4.47765625,b:4.5508984375,c:4.32140625,d:4.5411328125,e:4.8243359375,f:3.432734375,g:4.3409375,h:4.155390625,i:1.8067578125000001,j:2.5977734375,k:4.389765625,l:1.8067578125000001,m:6.987421875,n:4.1505078125,o:4.7364453125,p:4.5606640625,q:4.5753125,r:3.159296875,s:3.4180859375,t:3.3497265625,u:4.253046875,v:4.7852734375,w:7.299921875,x:4.897578125,y:4.819453125,z:4.36046875},"Times New Roman":{A:7.03625,B:5.96203125,C:5.9669140625,D:6.674921875,E:5.678828125,F:4.995234375,G:6.733515625,H:6.850703125,I:2.8419140625,J:3.6329296875,K:7.143671875,L:5.698359375,M:8.520625,N:7.2169140625,O:6.489375,P:5.0489453125,Q:6.4942578125,R:6.5919140625,S:4.4044140625,T:5.561640625,U:7.065546875,V:7.01671875,W:9.233515625,X:7.03625,Y:6.987421875,Z:5.708125,a:4.0675,b:4.682734375,c:3.77453125,d:4.6973828125,e:3.7891796875,f:3.9649609375,g:4.526484375,h:4.878046875,i:2.2462109375,j:2.71984375,k:4.9805859375,l:2.280390625,m:7.6563671875,n:4.9024609375,o:4.32140625,p:4.6973828125,q:4.67296875,r:3.335078125,s:3.0567578125,t:2.7003125,u:4.9805859375,v:4.82921875,w:7.0704296875,x:4.75109375,y:4.8878125,z:4.0821484375},Georgia:{A:7.143671875,B:5.6348828125,C:5.9180859375,D:6.6602734375,E:5.8887890625,F:5.4395703125,G:6.8067578125,H:7.1778515625,I:3.1251171875,J:4.8633984375,K:6.7091015625,L:5.5665234375,M:8.588984375,N:7.475703125,O:6.66515625,P:5.3419140625,Q:6.66515625,R:6.753046875,S:4.7657421875,T:6.04015625,U:7.1290234375,V:7.0606640625,W:9.926875,X:7.05578125,Y:6.635859375,Z:5.8008984375,a:4.526484375,b:5.3223828125,c:4.1700390625,d:5.2784375,e:4.28234375,f:3.823359375,g:4.6973828125,h:5.5567578125,i:2.48546875,j:2.9200390625,k:5.4298046875,l:2.60265625,m:8.3253125,n:5.37609375,o:4.7071484375,p:5.2003125,q:5.288203125,r:3.745234375,s:3.5938671875,t:3.26671875,u:5.346796875,v:5.2051953125,w:7.553828125,x:4.936640625,y:5.1661328125,z:3.901484375},"Courier New":{A:5.854609375,B:5.014765625,C:4.7559765625,D:4.8096875,E:4.8048046875,F:4.7950390625,G:5.0294140625,H:5.02453125,I:3.77453125,J:5.02453125,K:5.3175,L:4.8096875,M:5.8253125,N:5.4102734375,O:5.005,P:4.5753125,Q:5.005,R:5.503046875,S:4.1993359375,T:4.5997265625,U:5.2051953125,V:5.854609375,W:5.6251171875,X:5.239375,Y:5.0294140625,Z:3.9551953125,a:4.721796875,b:5.210078125,c:4.53625,d:5.2247265625,e:4.6094921875,f:4.3946484375,g:5.0098828125,h:5.1221875,i:4.1895703125,j:3.14953125,k:4.79015625,l:4.1895703125,m:5.835078125,n:4.9024609375,o:4.5899609375,p:5.210078125,q:5.210078125,r:4.6094921875,s:3.9844921875,t:4.5801953125,u:4.995234375,v:5.4298046875,w:5.45421875,x:5.0294140625,y:5.0196484375,z:3.7598828125},"Brush Script MT":{A:7.905390625,B:6.284296875,C:6.264765625,D:6.5235546875,E:6.1817578125,F:6.19640625,G:6.1329296875,H:7.5684765625,I:4.116328125,J:4.897578125,K:7.44640625,L:6.8165234375,M:9.51671875,N:6.9630078125,O:5.083125,P:6.323359375,Q:6.4258984375,R:7.17296875,S:6.8067578125,T:5.84484375,U:7.2755078125,V:6.2305859375,W:8.22765625,X:6.1719921875,Y:6.245234375,Z:5.405390625,a:4.155390625,b:3.9356640625,c:3.003046875,d:4.7559765625,e:2.963984375,f:3.4669140625,g:3.9356640625,h:3.9844921875,i:2.6758984375,j:3.8575390625,k:3.9161328125,l:2.866328125,m:5.6348828125,n:3.73546875,o:3.1934765625,p:4.8341015625,q:3.833125,r:2.99328125,s:3.1641796875,t:3.1934765625,u:3.9454296875,v:3.3253125,w:5.005,x:3.2130078125,y:3.833125,z:3.745234375}},s=(0,r.hU)(["Helvetica","Arial","Calibri","Century Gothic","Consolas","Courier","Dejavu Sans","Dejavu Serif","Georgia","Gill Sans","Impact","Lucida Sans","Myriad Pro","Open Sans","Palatino","Tahoma","Times New Roman","Trebuchet","Verdana","Zapfino","Comic Sans"]),l=(0,r.hU)(["sans-serif","serif","monospace"]);let c=new Set;const u=(0,r.aV)(["mmmBESbswy"]);l.forEach((e=>{const t=s.filterNot((e=>c.has(e))),n=new i.f(document,u,{fontFamily:e}),r=t.map((t=>[t,new i.f(document,u,{fontFamily:`${t},${e}`})])),a=n.measure().first();(0,o.kG)(a),r.forEach((e=>{let[t,n]=e;const r=n.measure().first();a.equals(r)||(c=c.add(t))})),n.remove(),r.forEach((e=>{let[,t]=e;t.remove()}))}));const d=s.filter((e=>c.has(e))),p=[{name:"Caveat",file:"Caveat-Bold",weight:700},{name:"Marck Script",file:"MarckScript-Regular",weight:400},{name:"Meddon",file:"Meddon-Regular",weight:400},{name:"Pacifico",file:"Pacifico-Regular",weight:400}];function h(e,t){e.forEach((e=>{t.load(`16px ${e.name}`)}))}function f(e){return Promise.allSettled(e.map((e=>new Promise(((t,n)=>{if((0,o.kG)(e.name),r=e.name,!/\.[^.]*$/.test(r))return(0,o.vU)(`The font name for font "${e.name}" must have a file extension.`),void n();var r;e?.callback?.(e.name).then((r=>{(0,o.kG)(e.name),r instanceof Blob?t({name:e.name,data:r}):((0,o.vU)(`Callback for retrieving font ${e.name} didn't returned a Blob. It returned ${typeof r}`),n())})).catch((t=>{(0,o.vU)(`Error returned by callback for retrieving font ${e.name}. ${t}`),n()}))}))))).then((e=>e.filter((e=>"fulfilled"===e.status)).map((e=>e.value))))}function m(e){const t=Object.keys(a);let n=null,r=1/0;for(const o of t){const t=a[o];let i=0;for(const n of e){const e=t[n.glyph];void 0!==e&&(i+=Math.abs(e-n.width))}i<r&&(n=o,r=i)}return n}function g(e){if(!e)return[];const t=e.glyphs,n=[];for(let e=0;e<t.length;e+=3){const r=t[e],o=t[e+2],i=t[e+1];n.push({glyph:r,width:10*o/i})}return n}},43069:(e,t,n)=>{"use strict";n.d(t,{$Y:()=>O,AM:()=>T,Ay:()=>I,BT:()=>m,CH:()=>M,CK:()=>N,CL:()=>C,ET:()=>E,G8:()=>w,Qg:()=>f,U_:()=>g,VY:()=>b,as:()=>L,fF:()=>R,g6:()=>D,gE:()=>z,hT:()=>v,i2:()=>x,l_:()=>y,o6:()=>F,r_:()=>P,sC:()=>k,sh:()=>j});var r=n(35369),o=n(15359),i=n(1858),a=n(45249),s=n(690),l=n(72251),c=n(87996),u=n(33427),d=n(48625),p=n(82197),h=n(20388);function f(e){return e.map((e=>new a.KD({name:e.name,value:"string"==typeof e.value?e.value:e.values,optionIndexes:e.optionIndexes}))).toList()}function m(e,t){return e&&t?e instanceof i.Dz||e instanceof i.rF?e.values.size>0?e.values.equals(t.values):0===t.values.size:(e.value===t.value||"function"==typeof e.value?.equals&&e.value.equals(t.value))&&(!e.optionIndexes||!t.optionIndexes||e.optionIndexes.every(((e,n)=>t.optionIndexes[n]===e))):!e&&!t}function g(e){return(0,r.D5)(e.map((e=>{(0,o.kG)(null==e.pdfObjectId||"number"==typeof e.pdfObjectId,"Invalid type for `pdfObjectId`.");try{(0,o.kG)(Array.isArray(e.annotationIds),"Invalid type for `annotationIds`."),(0,o.kG)("string"==typeof e.name,"Invalid type for `name`."),(0,o.kG)("string"==typeof e.label,"Invalid type for `label`.");const t=Array.isArray(e.flags)?e.flags:[],n={pdfObjectId:e.pdfObjectId,annotationIds:(0,r.aV)(e.annotationIds),name:e.name,label:e.label,readOnly:t.includes("readOnly"),required:t.includes("required"),noExport:t.includes("noExport")};switch(e.type){case"pspdfkit/form-field/button":return function(e){return new i.R0({...e})}(n);case"pspdfkit/form-field/radio":return function(e,t){return(0,o.kG)(t.options instanceof Array,"Invalid type for `options`."),(0,o.kG)("string"==typeof t.defaultValue,"Invalid type for `defaultValue`."),(0,o.kG)("boolean"==typeof t.noToggleToOff,"Invalid type for `noToggleToOff`."),(0,o.kG)("boolean"==typeof t.radiosInUnison,"Invalid type for `radiosInUnison`."),new i.XQ({...e,options:S(t.options),defaultValue:t.defaultValue,noToggleToOff:t.noToggleToOff,radiosInUnison:t.radiosInUnison})}(n,e);case"pspdfkit/form-field/checkbox":return function(e,t){return(0,o.kG)(t.options instanceof Array,"Invalid type for `options`."),(0,o.kG)(t.defaultValues instanceof Array,"Invalid type for `defaultValue`."),new i.rF({...e,options:S(t.options),defaultValues:(0,r.aV)(t.defaultValues)})}(n,e);case"pspdfkit/form-field/combobox":case"pspdfkit/form-field/listbox":return function(e,t){(0,o.kG)(t.options instanceof Array,"Invalid type for `options`."),(0,o.kG)("boolean"==typeof t.multiSelect,"Invalid type for `multiSelect`."),(0,o.kG)("boolean"==typeof t.commitOnChange,"Invalid type for `commitOnChange`."),(0,o.kG)(!t.defaultValues||Array.isArray(t.defaultValues),"Invalid type for `defaultValue`.");const n={...e,options:S(t.options),multiSelect:t.multiSelect,commitOnChange:t.commitOnChange,defaultValues:t.defaultValues?(0,r.aV)(t.defaultValues):(0,r.aV)()};switch(t.type){case"pspdfkit/form-field/combobox":{const e=t;return(0,o.kG)("boolean"==typeof e.edit,"Invalid type for `edit`."),(0,o.kG)("boolean"==typeof e.doNotSpellcheck||"boolean"==typeof e.doNotSpellCheck,"Invalid type for `doNotSpellCheck`."),new i.fB({...n,edit:e.edit,doNotSpellCheck:e.doNotSpellCheck||e.doNotSpellcheck})}case"pspdfkit/form-field/listbox":return new i.Vi(n);default:throw new Error("Unknown choice field type")}}(n,e);case"pspdfkit/form-field/text":return function(e,t){return(0,o.kG)("boolean"==typeof t.doNotSpellcheck||"boolean"==typeof t.doNotSpellCheck,"Invalid type for `doNotSpellCheck`."),(0,o.kG)("boolean"==typeof t.doNotScroll,"Invalid type for `doNotScroll`."),(0,o.kG)("boolean"==typeof t.password,"Invalid type for `password`."),(0,o.kG)("boolean"==typeof t.multiLine,"Invalid type for `multiLine`."),(0,o.kG)("string"==typeof t.defaultValue||!t.defaultValue,"Invalid type for `defaultValue`."),(0,o.kG)(!0!==t.comb||"number"==typeof t.maxLength,"Invalid type for `comb`. When `comb` is set, the text field must have a `maxLength`."),new i.$o({...e,defaultValue:t.defaultValue,doNotSpellCheck:t.doNotSpellCheck||t.doNotSpellcheck,doNotScroll:t.doNotScroll,password:t.password,maxLength:"number"==typeof t.maxLength?t.maxLength:null,multiLine:t.multiLine,comb:t.comb})}(n,e);case"pspdfkit/form-field/signature":return function(e){return new i.Yo({...e})}(n);default:throw new Error(`Unsupported form field type: ${e.type}`)}}catch(t){return(0,o.um)(`Skipped parsing form field #${e.name} from payload because an error occurred while deserializing.`),void(0,o.um)(t)}})).filter(Boolean).map((e=>[e?.name,e])))}function v(e){return e.map((e=>l.Z.fromJSON(e.pdfObjectId?e.pdfObjectId.toString():e.id,e)))}function y(e,t){const n=e.annotationIds.findIndex((0,u.oF)(t)),r=e.options.get(n);return(0,o.kG)(r,`There is no FormOption defined for annotationId '${t.id}' in formField '${e.name}'.`),r.value}function b(e,t){let{rotation:n,boundingBox:r}=e;if(!n)return{};const o=90===(0,p.Lv)(n)||270===(0,p.Lv)(n),i={},a=Math.ceil(r.height*t),s=Math.ceil(r.width*t);return o&&(i.width=a,i.height=s),n&&(i.transformOrigin="50% 50%",i.transform=w({width:s,height:a,rotation:n})),i}function w(e){let{width:t,height:n,rotation:r,reverse:o=!1}=e;const i=90===(0,p.Lv)(r)||270===(0,p.Lv)(r);return o?`rotate(${r}deg)`+(i&&t&&n?`translate(${-Math.round(t/2-n/2)}px, ${Math.round(t/2-n/2)}px)`:""):(i&&t&&n?`translate(${Math.round(t/2-n/2)}px, ${-Math.round(t/2-n/2)}px) `:"")+`rotate(${-r}deg)`}function x(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{fontColor:r,font:o,backgroundColor:i,borderColor:a,horizontalAlign:s,borderWidth:l,borderStyle:c,isBold:u,isItalic:d,boundingBox:{width:p,height:f},opacity:m}=e,g=Math.ceil(p*t),v=Math.ceil(f*t);return{color:r?.toCSSValue(),backgroundColor:i?.toCSSValue(),borderColor:a?.toCSSValue()||"transparent",opacity:m,textAlign:s||void 0,fontWeight:u?"bold":void 0,fontStyle:d?"italic":void 0,..."string"==typeof o?{fontFamily:(0,h.hm)(o)}:null,borderWidth:l||0,borderStyle:null!=c?_[c]:"none",width:g,height:v,...n?b(e,t):{}}}const _={solid:"solid",dashed:"dashed",beveled:"groove",inset:"inset",underline:"none none solid"};function S(e){return(0,r.aV)(e.map((e=>new a.mv(e))))}function C(e,t){return e.formFields.find((e=>e.id===t))}function E(e,t){return e.filter((e=>e.annotationIds.some((e=>t.annotationIds.has(e))))).toList()}function k(e,t,n){return"STANDALONE"===e.type&&c.Options.PDF_JAVASCRIPT&&"function"==typeof e.onKeystrokeEvent&&(Boolean(t.additionalActions?.onInput)||Boolean(n.additionalActions?.onInput)||Boolean(t.additionalActions?.onChange)||Boolean(n.additionalActions?.onChange))}function z(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=[],r=t.slice(0);return e.forEach((e=>{if((e.change_type===s.uV||e.change_type===s.zR)&&"pspdfkit/form-field-value"===e.object.type){const t=r.findIndex((t=>"pspdfkit/form-field-value"===t.object.type&&t.object.type===e.object.type&&t.object.name===e.object.name));if(t>-1){const n=r[t];e.object.formattedValue=n.object.formattedValue,e.object.editingValue=n.object.editingValue,r.splice(t,1)}}n.push(e)})),n.concat(r)}function P(e,t,n){const o=e&&n.formFields.get(e.name);if(e&&o&&!m(e,o)){e.annotationIds.reduce(((e,n)=>{const o=t.annotations.get(n)||t.annotations.find((e=>e.pdfObjectId===parseInt(n)));if(o&&t.isAPStreamRendered?.(o)){return e.get(o.pageIndex)?e.updateIn([o.pageIndex],(e=>e.add(o.id))):e.set(o.pageIndex,(0,r.l4)([o.id]))}return e}),(0,r.D5)()).forEach(((e,n)=>{t.backend?.clearPageAPStreams(n,e)}))}}function D(e,t,n){const o=e.annotationIds.findIndex((0,u.oF)(t)),i=y(e,t),a=e.options.filter((e=>e.value===i)).size;let s;if(n){if(a<2)return;s=(e.optionIndexes||(0,r.aV)()).push(o)}else{if(!e.optionIndexes)return;s=e.optionIndexes.filter((e=>e!==o))}return s.size>0?s:void 0}function A(e,t){const n=t.filter((t=>{const n=e.options.get(t)?.value;return e.options.filter((e=>e.value===n)).size>1}));return n.size>0?n:void 0}function T(e){let{state:t,mutableState:n,formFieldValues:a,areFormFieldValuesNew:s}=e;a.forEach((e=>{let{name:a,value:l,optionIndexes:c}=e;const u=t.formFields.get(a);if(u){if((0,o.kG)(!c||u instanceof i.XQ||u instanceof i.rF,"`optionIndexes` property is only supported in radio and checkbox form field values."),u instanceof i.$o)l=l||"",(0,o.kG)("string"==typeof l,`The type of action value for a TextFormField is ${typeof l}, but has to be a string`),n.setIn(["formFields",a,"value"],l);else if(u instanceof i.XQ){if((0,o.kG)("string"==typeof l||null===l,`The type of action value for a RadioButtonFormField is ${typeof l}, but has to either be a string or null`),n.setIn(["formFields",a,"value"],l),c){const e=A(u,c);e&&n.setIn(["formFields",a,"optionIndexes"],e)}}else if(u instanceof i.Dz||u instanceof i.rF){if(l=l||(0,r.aV)(),(0,o.kG)(l instanceof r.aV,`The type of action value for the ${u instanceof i.Dz?"ChoiceFormField":"CheckBoxFormField"} is ${typeof l}, but has to be a List of strings`),n.setIn(["formFields",a,"values"],l),u instanceof i.rF&&c){const e=A(u,c);e&&n.setIn(["formFields",a,"optionIndexes"],e)}}else u instanceof i.R0||u instanceof i.Yo||(0,o.kG)(!1,`Cannot set form field value for ${u.name}: unknown form field type`);s||P(u,t,n)}else(0,o.ZK)(`No form field found with name ${a}`)}))}function I(e){let{getState:t,originalFormFields:n,formFieldValues:i,callback:a,resolve:s}=e;const{formFields:l,annotations:c,backend:u}=t(),d=[],p=[];n.forEach(((e,t)=>{if(!e)return;(0,o.kG)(u);let n=l.get(t);if((0,o.kG)(n),i.some((e=>e.name===t&&(n=r.aV.isList(e.value)?n.set("values",e.value):n.set("value",e.value),!0))),m(e,n))p.push(t);else{c.filter((e=>e.points===t)).reduce(((e,t)=>{const n=e.get(t.pageIndex);return n?e.set(t.pageIndex,n.add(t.id)):e.set(t.pageIndex,(0,r.l4)([t.id]))}),(0,r.D5)()).forEach(((e,t)=>{d.push({pageIndex:t,pageWidgetIds:e})}))}})),a(p),d.forEach((e=>{let{pageIndex:t,pageWidgetIds:n}=e;u?.clearPageAPStreams(t,n)})),s?.()}function M(e){return new a.KD({name:e.name,value:e.values||e.value,...e.optionIndexes?{optionIndexes:e.optionIndexes}:null})}function R(e){return e===d.A.CHECKBOX_WIDGET||e===d.A.RADIO_BUTTON_WIDGET||e===d.A.SIGNATURE_WIDGET||e===d.A.TEXT_WIDGET||e===d.A.BUTTON_WIDGET||e===d.A.COMBO_BOX_WIDGET||e===d.A.LIST_BOX_WIDGET||e===d.A.FORM_CREATOR||e===d.A.DATE_WIDGET}function F(e){return R(e)&&e!==d.A.FORM_CREATOR}function N(e,t){const n=y(e,t),r=!e.optionIndexes||e.optionIndexes.includes(e.annotationIds.findIndex((0,u.oF)(t)));return e instanceof i.XQ?e.value===n&&r:e instanceof i.rF?e.values.includes(n)&&r:(0,o.Rz)(e)}const O="Invalid date/time: please ensure that the date/time exists. Field [",j="The value entered does not match the format of the field [",L="format "},21713:(e,t,n)=>{"use strict";function r(e){return e.some((e=>e instanceof Error))?Promise.reject(e):Promise.resolve(e)}n.d(t,{s:()=>r})},48338:(e,t,n)=>{"use strict";n.d(t,{FA:()=>h,GW:()=>m,WF:()=>g,Yr:()=>v,_d:()=>f,ax:()=>y,kM:()=>p,mZ:()=>b});var r=n(15359),o=n(35369),i=n(23951),a=n(45249),s=n(76934),l=n(33427),c=n(35727),u=n(4715),d=n(2891);function p(e,t){return"create"===e.type?null:"update"===e.type||"delete"===e.type?t.get(e.payload.id):void(0,r.Rz)(e.type)}function h(e,t,n){if("create"===e.type)return e.payload;if("update"===e.type){const o=t.get(e.payload.id)||n&&t.get(n)||e.deletedAnnotation;return(0,r.kG)(o instanceof i.Z),o.merge(e.payload)}if("delete"===e.type)return null;(0,r.Rz)(e.type)}function f(e,t){if(e.isHistoryEnabled){let n=!0;if(e.eventEmitter.emit("history.willChange",{annotation:t,type:"create",preventDefault(){n=!1}}),!n)return}e.historyChangeContext===s.j.DEFAULT&&e.isHistoryEnabled&&(e.update("undoActions",(e=>e.push({type:"delete",payload:{id:t.id}}))),e.update("redoActions",(e=>e.clear())))}function m(e,t,n,r){if(e.isHistoryEnabled){let t=!0;if(e.eventEmitter.emit("history.willChange",{annotation:n,type:"update",preventDefault(){t=!1}}),!t)return}if(!t.set("updatedAt",null).equals(n.set("updatedAt",null)))if(e.historyChangeContext===s.j.DEFAULT&&e.isHistoryEnabled&&function(e,t){if(e instanceof a.gd&&!e.text)return!(!t||!("text"in t))&&!!t.text.value;if(e instanceof a.Jn&&!e.isCommentThreadRoot)return!!t&&t.isCommentThreadRoot;if("number"!=typeof e.pageIndex&&"number"!=typeof t.pageIndex)return!1;return!0}(n,t)){const o="number"!=typeof t.pageIndex&&"number"==typeof n.pageIndex||t instanceof a.gd&&null==t.text||t instanceof a.Jn&&!t.isCommentThreadRoot&&n.isCommentThreadRoot?{type:"delete",payload:{id:t.id}}:{type:"update",payload:b(n,t),restoreAPStream:r,deletedAnnotation:null};if("update"===o.type&&t instanceof a.gd&&(0,l.Ie)(t)&&!(0,l.vM)(t))return;e.update("undoActions",(e=>e.push(o))),e.update("redoActions",(e=>e.clear()))}else if(e.historyChangeContext!==s.j.HISTORY&&e.undoActions.size>0){const r=e.undoActions.findLastIndex((e=>("update"===e.type||"delete"===e.type)&&e.payload.id===n.id));-1!==r&&e.updateIn(["undoActions",r],(e=>"update"===e.type?{...e,payload:b(n,t.merge(e.payload)),restoreAPStream:e.restoreAPStream}:"delete"===e.type?{...e,payload:{...b(n,t),...e.payload}}:e))}}function g(e,t,n){if(t instanceof u.Hu)return;if(e.isHistoryEnabled){let n=!0;if(e.eventEmitter.emit("history.willChange",{annotation:t,type:"delete",preventDefault(){n=!1}}),!n)return}const r=(0,l.xc)();if(e.historyChangeContext===s.j.DEFAULT&&e.isHistoryEnabled){const o=v(t,r,e.commentThreads,e.comments),i=y(t,r,e);e.update("undoActions",(e=>e.map((e=>e.payload.id===t.id?{...e,payload:{...e.payload,id:r}}:e)).push({type:"create",payload:t.set("id",r),formField:i,restoreAPStream:n,comments:o}))),e.update("redoActions",(e=>e.clear()));const a=e.historyIdsMap.get(t.id);a&&e.deleteIn(["historyIdsMap",t.id]),e.setIn(["historyIdsMap",r],a||t.id)}else if(e.historyChangeContext!==s.j.HISTORY&&e.undoActions.size>0){const o=e.undoActions.findLastIndex((e=>"update"===e.type&&e.payload.id===t.id));if(-1!==o){e.updateIn(["undoActions",o],(e=>({type:"update",deletedAnnotation:t,payload:e.payload,restoreAPStream:n})));const i=e.historyIdsMap.get(t.id);i&&e.deleteIn(["historyIdsMap",t.id]),e.setIn(["historyIdsMap",r],i||t.id)}}}function v(e,t,n,r){let o=null;if(e.isCommentThreadRoot){const i=n.get(e.id);o=i?i.map((e=>{const n=r.get(e);return n&&n.set("rootId",t)})).filter((e=>e&&!(0,c.kT)(e))).toList():null}return o}function y(e,t,n){let r=null;return e instanceof a.x_&&(r=(0,d.GA)(n,e)),r&&r.set("annotationIds",(0,o.aV)([t]))}function b(e,t){return t.toSeq().reduce(((t,n,r)=>(e.has(r)&&e.get(r)===n||(t[r]=n),t)),{id:e.id})}},68540:(e,t,n)=>{"use strict";n.d(t,{$:()=>v,Ah:()=>P,Bo:()=>_,Je:()=>T,L8:()=>A,R9:()=>h,Sv:()=>E,Tp:()=>C,_x:()=>b,dX:()=>y,jC:()=>x,jw:()=>g,lB:()=>k,mP:()=>S,nG:()=>m,tm:()=>w,wA:()=>D,wL:()=>z});var r=n(67294),o=n(67366),i=n(66327),a=n(93113),s=n(89637),l=n(45249),c=n(74814),u=n(20388),d=n(4087),p=n(21853);function h(e){const t=r.useRef(e),n=r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t?.current?.(...n)}),[]);return r.useEffect((()=>(t.current=e,()=>t.current=void 0))),n}function f(e){const t=(0,o.I0)();return[(0,o.v9)((t=>{if(t.documentComparisonState&&void 0!==t.documentComparisonState[e])return t.documentComparisonState[e];throw new Error("Document comparison state not properly initialized.")})),h((n=>t((0,i.M5)({[e]:n}))))]}function m(){return f("referencePoints")}function g(){return f("currentTab")}function v(){return f("autoCompare")}function y(){return f("isResultFetched")}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=r.useRef(),n=r.useRef();return(0,o.v9)((r=>(r.viewportState===t.current&&n.current||(n.current=t=>t.apply((0,a.zi)(r,e))),t.current=r.viewportState,n.current)))}function w(){const e=r.useRef(!0),t=r.useCallback((()=>e.current),[]);return r.useEffect((()=>()=>{e.current=!1}),[]),t}function x(e){const t=r.useRef();return r.useEffect((()=>{t.current=e})),t.current}function _(e,t){const n=(0,o.v9)((e=>e.customUIStore)),i=(0,o.v9)((e=>e.sidebarMode)),[a,s]=r.useState((()=>i?n?.getState().Sidebar?.[i]:void 0));r.useEffect((()=>n?.subscribe((e=>{if(!i)return;const t=e?.Sidebar?.[i];s((()=>t))}))),[n,i]);const l=e&&a?.({containerNode:e,items:t}),c=l?.node;return r.useEffect((()=>{c&&e&&c!==e&&e.lastChild!==c&&e.append(c)}),[e,c]),l?.onRenderItem}function S(e,t,n){const o=r.useRef({}),i=h(t),a=h(n),s=r.useMemo((()=>(t,n)=>{e&&t&&n&&(e({itemContainerNode:t,item:n}),o.current[i(n)]=t)}),[e,i]);return r.useEffect((()=>{Object.entries(o.current).forEach((t=>{let[n,r]=t;if(r&&n){const t=a(n),r=o.current[n];e&&r&&t&&e({itemContainerNode:r,item:t})}}))}),[e,a]),e?s:null}function C(){const[e,t]=r.useState(null),[n,o]=r.useState(null),[i,a]=r.useState(null),s=r.useRef(),l=r.useRef(),c=r.useRef(null);r.useEffect((()=>{l.current=n,s.current=i})),r.useEffect((()=>{const t=e&&n&&!l.current,r=!e&&s.current&&i;(t||r)&&c.current&&c.current.focus()}),[n,i,e]);const u=r.useCallback((()=>{o(!0)}),[o]);return{handleGroupExpansion:r.useCallback((e=>{t(e),e?a(e):o(!1)}),[a,t,o]),handleEntered:u,expandedGroup:e,prevActiveGroup:i,btnFocusRef:c}}function E(e,t,n){r.useLayoutEffect((function(){null!==e&&(t((0,s.Sb)()),n(e))}),[n,e,t])}function k(e,t,n,i){const a=(0,o.v9)((e=>e.shadowRoot));return r.useCallback((function(r){if(!(e instanceof l.gd))return;const o=(0,u.Zv)(e,t,n,a).boundingBox;let s=null;switch(r){case c.V.RIGHT:s=e.setIn(["boundingBox","width"],o.width);break;case c.V.BOTTOM:s=e.setIn(["boundingBox","height"],o.height);break;case c.V.BOTTOM_RIGHT:s=e.set("boundingBox",o)}null!==s&&i((0,d.FG)((0,u.XA)(s,n)))}),[e,i,t,n,a])}function z(e){const t=r.useRef(null);return r.useEffect((function(){const{current:n}=t;n&&(0,p._s)(e(),n)}),[e]),t}function P(e){const[t,n]=r.useState(e),[o,i]=r.useState(e);return t!==e&&(i(e),n(e)),[o,i]}function D(e,t,n){r.useEffect((function(){if(!e)return;const r=t();return r.addEventListener("scroll",n),function(){r.removeEventListener("scroll",n)}}),[t,e,n])}const A=(e,t)=>{const n=r.useRef(!1);r.useEffect((()=>()=>{n.current=!0}),[]),r.useEffect((()=>()=>{n.current&&e()}),[...t,e])};function T(){const e=(0,o.v9)((e=>e.shadowRoot)),t=(0,o.v9)((e=>e.frameWindow)),[n,i]=r.useState(void 0);return r.useEffect((()=>{if(!t)return;const n=e instanceof ShadowRoot?e.host:t.frameElement;if(!n)return;const r=e instanceof ShadowRoot?n.ownerDocument.defaultView:t.parent;if(!r)return;let o=!1;const a=()=>{const e=n.getBoundingClientRect(),t=e.width+Math.min(0,e.left)+Math.min(0,r.innerWidth-e.right),o=e.height+Math.min(0,e.top)+Math.min(0,r.innerHeight-e.bottom);i({width:t,height:o})},s=()=>{o||(requestAnimationFrame((()=>{a(),o=!1})),o=!0)};return a(),r?.addEventListener("resize",s),r?.addEventListener("scroll",s,{passive:!0}),()=>{r?.removeEventListener("resize",s),r?.removeEventListener("scroll",s,{passive:!0})}}),[t,e]),n}},94809:(e,t,n)=>{"use strict";n.d(t,{Pn:()=>i,qH:()=>s,rH:()=>a,sf:()=>l,vu:()=>o});var r=n(82716);function o(e){return 200<=e&&e<300}function i(e){const t=e.indexOf("://")>0;(0,r.k)(t,`The baseUrl must be an absolute URL (e.g. https://example.com/pspdfkit-lib/), but it is set to ${e}.\nProtocol relative URLs (e.g. //example.com/pspdfkit-lib/) are not supported.`);const n="/"===e.substr(-1);(0,r.k)(n,`The baseUrl must have a trailing slash in the URL (e.g. https://example.com/pspdfkit-lib/), but it is set to ${e}.`)}function a(e){return i(e)}function s(e){return i(e)}function l(e){const t=e.indexOf("://")>0;(0,r.k)(t,`The hostedBaseUrl must be an absolute URL (e.g. https://api.pspdfkit.com/, but it is set to ${e}.`);const n="/"===e.substr(-1);(0,r.k)(n,`The hostedBaseUrl must have a trailing slash in the URL (e.g. https://api.pspdfkit.com/), but it is set to ${e}.`)}},56573:(e,t,n)=>{"use strict";n.d(t,{Jc:()=>g,UW:()=>f,Y:()=>v,an:()=>m,uq:()=>h,wc:()=>w});var r=n(30845),o=n(15359),i=n(10983),a=n(46364),s=n(34299),l=n(44077),c=n(60209),u=n(92537),d=n(45249);const p=(0,r.Z)((function(e){const t=new FileReader;return new Promise(((n,r)=>{t.onerror=e=>r(new Error(e)),t.onload=e=>{const t=new Image;t.onload=()=>{n(new l.$u({width:t.width,height:t.height}))},t.onerror=()=>n(new l.$u({width:i.zA,height:i._2})),t.src=e.target?.result},t.readAsDataURL(e)}))}));const h=async e=>{const{Sha256:t,bytes_to_hex:r}=await n.e(1517).then(n.bind(n,14350)),o=new t,i=await(0,s.V)(e);return{hash:r(o.process(i).finish().result),dimensions:await p(e)}};function f(e){return`${e.imageAttachmentId}_${e.id}`}function m(e){let{backend:t,blob:n,annotation:r,isDetachedAnnotation:i=!1,zoomLevel:s,variant:c,hasZoomedIn:p=!1}=e,m=null,g=!1;const v=r?.rotation??0;(0,o.kG)(t);const b=r?f(r):void 0;if(r instanceof d.sK&&p&&b&&t.attachmentsCache.has(b)){const e=t.attachmentsCache.get(b);(void 0===e.zoomLevel||void 0===s||e.zoomLevel<s)&&(t.attachmentsCache=t.attachmentsCache.delete(b))}if(r&&"imageAttachmentId"in r&&r.imageAttachmentId&&b&&t.attachmentsCache.has(b)){const{dimensions:e,img:o,provisional:i,prevRotation:a}=t.attachmentsCache.get(b);if(t&&i&&n&&a===v)return w();n&&"image/png"!==n.type&&"image/jpeg"!==n.type&&"image/webp"!==n.type&&(g=!0),m=y(t,e,v,r,n,o).then((r=>(n&&"image/png"!==n.type&&"image/jpeg"!==n.type&&"image/webp"!==n.type&&r&&(t.attachmentsCache=t.attachmentsCache.set(b,{dimensions:e,img:o,provisional:!0,prevRotation:v,zoomLevel:s})),r)))}else{if(!n||"image/png"!==n.type&&"image/jpeg"!==n.type&&"image/webp"!==n.type)return w();m=h(n).then((e=>{let{dimensions:o}=e;return y(t,o,v,r,n)})).catch((()=>{throw new o.p2("Couldn't read data from the provided image.")}))}return{...(0,a.uZ)(m),isProvisional:g};function w(){(0,o.kG)(t,"Backend is required to render the image"),(0,o.kG)(r,"Annotation is required to render the image");const{boundingBox:e}=r,a=(0,u.L)()*(s??1);let p=Math.round(e.width*a),h=Math.round(e.height*a);if(!(r instanceof d.GI||r instanceof d.sK)){const e=Math.sqrt(p*h/1e7);e>1&&(p=Math.round(p*(1/e)),h=Math.round(h*(1/e)))}const f=new l.$u({width:p,height:h}),m=i?t.renderDetachedAnnotation(r,n,p,h):t.cachedRenderAnnotation(r,n,p,h,c);return m.promise=m.promise.then((async e=>"imageAttachmentId"in r&&r.imageAttachmentId&&b&&e?.element?0!==v?y(t,f,360-v,r,n,e.element).then((n=>(n?.element&&(t.attachmentsCache=t.attachmentsCache.set(b,{dimensions:90===v||270===v?f.swapDimensions():f,img:n.element,prevRotation:v,zoomLevel:s})),e))):(t.attachmentsCache=t.attachmentsCache.set(b,{dimensions:f,img:e.element,prevRotation:v,zoomLevel:s}),e):e)),m}}function g(e,t){const n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return new Blob([n.buffer],{type:t})}async function v(e,t,n){let r,o,{font:i,fontColor:a}=t;"OffscreenCanvas"in n?(r=new n.OffscreenCanvas(200,200),o=r.convertToBlob.bind(r)):(r=n.document.createElement("canvas"),o=()=>new Promise((e=>{r.toBlob(e)})));const s=r.getContext("2d");s.textBaseline="hanging";s.font=`100px "${i}"`;const{actualBoundingBoxLeft:l,actualBoundingBoxRight:c,width:u}=s.measureText(e);r.height=500;const d=2*(l||c?l+c:u);return r.width=d,s.textBaseline="hanging",s.font=`100px "${i}"`,s.fillStyle=a.toCSSValue(),s.fillText(e,d/4,125),function(e){const t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),r=n.data.length;let o=null,i=null,a=null,s=null,l=0,c=0;for(let t=0;t<r;t+=4)0!==n.data[t+3]&&(l=t/4%e.width,c=~~(t/4/e.width),null===o&&(o=c),(null===a||l<a)&&(a=l),(null===s||s<l)&&(s=l),(null===i||i<c)&&(i=c));o=o||0,i=i||0,a=a||0,s=s||0;const u=i-o,d=s-a;if(0===d||0===u)return;const p=t.getImageData(a,o,d,u);e.width=d,e.height=u,t.putImageData(p,0,0)}(r),o({type:"image/png"})}function y(e,t,n,r,o,i){if(i)return new Promise(((e,r)=>b(i,t,n).then(e,r)));if(o){const i=URL.createObjectURL(o),a=document.createElement("img");return new Promise(((s,l)=>{a.onload=()=>{o&&r&&(e.attachmentsCache=e.attachmentsCache.set(f(r),{dimensions:t,img:a,prevRotation:n})),b(a,t,n).then(s,l)},a.onerror=()=>{l(new Error("The attachment provided could not be rendered as image/jpeg, image/png or image/webp although the mime type suggests so."))},a.src=i}))}return new Promise((e=>e))}async function b(e,t,n){if(0===n)return e.onload=null,e.onerror=null,new c.Z(e,(()=>{}));{const r=document.createElement("canvas"),{width:i,height:a}=t;90===n||270===n?(r.width=a,r.height=i):(r.width=i,r.height=a);const s=r.getContext("2d");return(0,o.kG)(s,"Could not get canvas context"),90===n||270===n?s.translate(a/2,i/2):s.translate(i/2,a/2),s.rotate(n*-Math.PI/180),s.drawImage(e,-i/2,-a/2),new c.Z(r,(()=>{}))}}const w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="},40163:(e,t,n)=>{"use strict";n.d(t,{O:()=>i,b:()=>a});var r=n(35369);function o(e,t){if(e===t||(0,r.is)(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;const i=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o<n.length;o++)if(!i(n[o])||!(0,r.is)(e[n[o]],t[n[o]]))return!1;return!0}function i(e,t){return!o(this.props,e)||!o(this.state,t)}function a(e,t){if(e.length===t.length){let n=0;for(;n<e.length;){if(e[n]!==t[n])return e[n]<t[n]?-1:1;n++}return 0}return e.length<t.length?-1:1}},55441:(e,t,n)=>{"use strict";n.d(t,{$U:()=>g,H9:()=>u,HB:()=>f,IQ:()=>h,Ip:()=>y,Vv:()=>w,gz:()=>d,o:()=>p,u8:()=>v,vR:()=>m});var r=n(35369),o=n(45249),i=n(23301),a=n(74814),s=n(98179),l=n(92537),c=n(82716);function u(e,t,n){return 0===n||0===e.size||e.last().distance(t)>n}function d(e){if(0===e.lines.size)return new o.UL;const t=e.lines.flatMap((e=>e)),n=Math.ceil(t.maxBy((e=>e.x))?.x+e.lineWidth/2),r=Math.ceil(t.maxBy((e=>e.y))?.y+e.lineWidth/2),i=Math.floor(t.minBy((e=>e.x))?.x-e.lineWidth/2),a=Math.floor(t.minBy((e=>e.y))?.y-e.lineWidth/2);return new o.UL({width:n-i,height:r-a,top:a,left:i})}function p(e,t,n){const{width:r,height:s}=e.boundingBox,l=(0,i.BP)(new o.$u({width:r,height:s}),t);return(0,i.D7)(e,new o.E9({x:l.width-r,y:l.height-s}),a.V.BOTTOM_RIGHT,n,!1)}const h=e=>e.reduce(((e,t)=>(null==t?e.push((0,r.aV)()):e[e.length-1]=e[e.length-1].push(t),e)),[(0,r.aV)()]).filter((e=>e.size>0)),f=e=>{const t=Math.abs(Math.ceil(Math.log10((0,l.L)()*e)));let n;return n=t>100?100:t,n},m=(e,t)=>{const n=e.first();if(1===e.size&&n)return[`L ${n.x},${n.y}`];const r=[`M ${n.x},${n.y}`],o=e.get(1);if(2===e.size&&o)return r.push(`L ${o.x},${o.y}`),r;for(let n=2,o=e.size;n<o;++n){const i=e.get(n-2),a=e.get(n-1);if(i&&a){const s={x:(2*i.x+a.x)/3,y:(2*i.y+a.y)/3},l={x:2*s.x-i.x,y:2*s.y-i.y},c=a,u=e.get(n);if(u){const e={x:(2*c.x+u.x)/3,y:(2*c.y+u.y)/3};if(r.push(`C ${s.x.toFixed(t)},${s.y.toFixed(t)} ${l.x.toFixed(t)},${l.y.toFixed(t)} ${(l.x+(e.x-l.x)/2).toFixed(t)},${(l.y+(e.y-l.y)/2).toFixed(t)}`),n===o-1){const n={x:2*e.x-c.x,y:2*e.y-c.y};r.push(`C ${e.x.toFixed(t)},${e.y.toFixed(t)} ${n.x.toFixed(t)},${n.y.toFixed(t)} ${u.x.toFixed(t)},${u.y.toFixed(t)}`)}}}}return r},g=e=>{const t=e.first();return 1===e.size&&t?[`L ${t.x},${t.y}`]:e.reduce(((e,t,n)=>(n>0&&e.push(`L ${t.x},${t.y}`),e)),[`M ${t.x},${t.y}`])},v=e=>e.reduce(((t,n,r)=>(e[r-1]&&"M 0,0"!==e[r-1]||!n.startsWith("L")||t.push(n.replace("L","M")),t.push(n),t)),[]).join(" ");function y(e,t,n){if(e.lines.size<2)return!0;const r=e.lines.last();if(null==e.lines.get(e.lines.size-2)||null==r||0===r.size||r.size>2)return!0;const o=.5*(t.width+t.height),i=e.lines.size<50?.15:.03,a=(Date.now()-n)/1e3;if(a<i)return!0;const s=r.first();return Boolean(e.lines.pop().some((e=>e.some((e=>e.distance(s)<o*i/a)))))}function b(e){const t=Math.ceil(2*e)+4,n=Math.ceil(2*e)+4,r=document.createElement("canvas");r.width=t,r.height=n;const o=r.getContext("2d");return(0,c.k)(o),o.beginPath(),o.arc(e+2,e+2,e,0,2*Math.PI,!1),o.lineWidth=1,o.strokeStyle="rgba(0,0,0,.7)",o.stroke(),o.beginPath(),o.arc(e+2,e+2,e+1,0,2*Math.PI,!1),o.lineWidth=1,o.strokeStyle="white",o.stroke(),r.toDataURL()}function w(e){if(e<3)return"crosshair";const t=b(e),n=s.SR;if("webkit"===n||"blink"===n){return`-webkit-image-set(\n          url('${t}') 1x,\n          url('${b(2*e)}') 2x\n        ) ${e+2} ${e+2}, crosshair`}return`url('${t}') ${e+2} ${e+2}, crosshair`}},82716:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(15359);function o(e,t){if(!e)throw new r.p2(`Assertion failed: ${t||"Condition not met"}\n\nFor further assistance, please go to: https://pspdfkit.com/support/request`)}},2427:(e,t,n)=>{"use strict";n.d(t,{eU:()=>s,t0:()=>l,yK:()=>a});var r=n(44276),o=n(15359),i=n(72110);function a(e){const t="The supplied JWT is invalid. Please refer to our guides on how to set up authentication:\n  https://pspdfkit.com/guides/web/current/server-backed/client-authentication/";if(-1!==e.indexOf('{"internal":'))return;let n;(0,o.kG)("string"==typeof e&&3===e.split(".").length,t);try{const t=r.DS.decode(e.split(".")[1]);n=JSON.parse(t)}catch(e){throw new o.p2(t)}(0,o.kG)("string"==typeof n.document_id,"The supplied JWT is invalid. The field 'document_id' has to be a string value.\n  Please refer to our guides for further information: https://pspdfkit.com/guides/web/current/server-backed/client-authentication/")}function s(e){if("string"!=typeof e)throw new o.p2("`accessToken` must be of type string.")}function l(e,t){(0,o.kG)("string"==typeof e,"`appName` must be a string."),(0,o.kG)((0,i.d)()||(0,i.AL)(e,t)||(0,i.B0)(e,t),"`appName` should only be set when using Electron, Maui or Flutter for Web."),(0,o.kG)(!(0,i.Sk)()||(0,i.AL)(e,t)||(0,i.B0)(e,t),"`appName` should only be set when using Electron without node integration, Maui or Flutter for Web.")}},71856:(e,t,n)=>{"use strict";function r(e){return{name:e.name,scale:{unitFrom:e.scale.unitFrom,unitTo:e.scale.unitTo,from:Number(e.scale.fromValue),to:Number(e.scale.toValue)},precision:e.precision}}n.d(t,{f:()=>r})},29152:(e,t,n)=>{"use strict";n.d(t,{B0:()=>Y,Di:()=>x,Ex:()=>V,Hg:()=>$,KI:()=>_,P_:()=>I,Qc:()=>L,Rc:()=>K,Rw:()=>R,S6:()=>M,W9:()=>O,_P:()=>k,b5:()=>B,bs:()=>G,cd:()=>F,fH:()=>U,m_:()=>N,mq:()=>Z,nK:()=>j,t9:()=>T,xA:()=>q,zl:()=>W});var r=n(15359),o=n(85628),i=n.n(o),a=n(35369),s=n(58163),l=n(85151),c=n(4087),u=n(10552),d=n(48625),p=n(97281),h=n(94327),f=n(1385),m=n(9513),g=n(71479),v=n(16006),y=n(45874),b=n(14165),w=n(98179);const x=[{interactionMode:d.A.DISTANCE,icon:"distance",title:"Distance",className:"PSPDFKit-Form-Creator-Toolbar-ButtonWidget",class:g.Z,preset:"distance",localeKey:"distanceMeasurement"},{interactionMode:d.A.PERIMETER,icon:"perimeter",title:"Perimeter",className:"PSPDFKit-Form-Creator-Toolbar-TextWidget",class:y.Z,preset:"perimeter",localeKey:"perimeterMeasurement"},{interactionMode:d.A.RECTANGLE_AREA,icon:"rectangle-area",title:"Rectangle-Area",className:"PSPDFKit-Form-Creator-Toolbar-RadioWidget",class:b.Z,preset:"rectangle-area",localeKey:"rectangularAreaMeasurement"},{interactionMode:d.A.POLYGON_AREA,icon:"polygon-area",title:"Polygon-Area",className:"PSPDFKit-Form-Creator-Toolbar-CheckboxWidget",class:v.Z,preset:"polygon-area",localeKey:"polygonAreaMeasurement"},{interactionMode:d.A.ELLIPSE_AREA,icon:"ellipse-area",title:"Ellipse-Area",className:"PSPDFKit-Form-Creator-Toolbar-ComboboxWidget",class:m.Z,preset:"ellipse-area",localeKey:"ellipseAreaMeasurement"}];function _(e,t){const n=e.strokeWidth/2+10,{coordinate:r,angleInDegrees:o}=function(e,t){if(e instanceof g.Z){const{startPoint:t,endPoint:n}=e;return S(t,n)}if(e instanceof y.Z){const{points:n}=e;if(n.size<2)return{};const r=n.last(),o=n.get(n.size-2);return r.y===o.y?S(o,r):r.y<o.y?{coordinate:[r.x,r.y-t]}:{coordinate:[r.x,r.y+t]}}if(e instanceof v.Z){const{points:n}=e,r=n.sort(((e,t)=>e.y-t.y)).first();return{coordinate:[r.x,r.y-t]}}{const{boundingBox:t}=e;return{coordinate:[t.left+t.width/2,t.top+t.height/2]}}}(e,n);if(!r)return{display:"none"};const i={position:"absolute",transform:"translate(-50%, -50%) "+(e instanceof y.Z||e instanceof b.Z||e instanceof m.Z?"":e instanceof g.Z&&o?`rotate(${o}deg) translate(0, -${e.strokeWidth/2+10}px)`:o?`rotate(${o}deg) translate(0px, -${e.strokeWidth/2+10}px)`:`translate(0px, -${e.strokeWidth/2+10}px)`),transformOrigin:"center",fontSize:12,color:e.strokeColor?.toCSSValue(),width:"max-content",left:r[0],top:e instanceof g.Z&&w.G6&&!o?r[1]-20:r[1]},{boundingBox:a}=e;return(e instanceof b.Z||e instanceof m.Z)&&(t&&a.width<200||a.width<80)?{...i,top:a.top-30}:i}function S(e,t){let n=e,r=t;t.x<e.x&&(n=t,r=e);const o=180*Math.atan2(r.y-n.y,r.x-n.x)/Math.PI;return{coordinate:[(e.x+t.x)/2,(e.y+t.y)/2],angleInDegrees:o}}const C={[p.L.WHOLE]:0,[p.L.ONE]:1,[p.L.TWO]:2,[p.L.THREE]:3,[p.L.FOUR]:4},E={[p.L.HALVES]:.5,[p.L.QUARTERS]:1/4,[p.L.EIGHTHS]:1/8,[p.L.SIXTEENTHS]:1/16},k={...C,...E};function z(e){let t=0;function n(e,t){const n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}for(let r=0;r<e.size-1;r++)t+=n(e.get(r),e.get(r+1));return t}function P(e){return Math.abs(e)<=Number.EPSILON}var D=function(e){return e[e.in=0]="in",e[e.mm=1]="mm",e[e.cm=2]="cm",e[e.pt=3]="pt",e[e.ft=4]="ft",e[e.m=5]="m",e[e.yd=6]="yd",e[e.km=7]="km",e[e.mi=8]="mi",e}(D||{});const A=[[1,25.4,2.54,72,.083333,.0254,.0277778,254e-7,157828e-10],[.0393701,1,.1,2.83465,.00328084,.001,.00109361,1e-6,6.21371e-7],[.393701,10,1,28.34655,.0328084,.01,.0109361,1e-5,621371e-11],[.0138889,.352778,.0352778,1,.00115741,352778e-9,385802e-9,3.52778e-7,2.19206086473e-7]];function T(e){const{measurementPrecision:t,measurementScale:n}=e;(0,r.kG)(t,"measurementPrecision is required"),(0,r.kG)(n,"measurementScale is required");const o=P(n.toValue)||P(n.fromValue)?0:n.toValue/n.fromValue;let s,l,c=A[D[h.s.POINTS]][D[n.unitFrom]];if(e instanceof g.Z){const{startPoint:t,endPoint:n}=e;s=z((0,a.aV)([t,n])),c*=o}else if(e instanceof y.Z){const{points:t}=e;s=z(t),c*=o}else if(e instanceof v.Z){const{points:t}=e;s=function(e){if(!e.size)return 0;let t=0;for(let n=0;n<e.size-1;n++)t+=e.get(n).x*e.get(n+1).y-e.get(n+1).x*e.get(n).y;return t+=e.get(e.size-1).x*e.get(0).y-e.get(0).x*e.get(e.size-1).y,t/=2,Math.abs(t)}(t),c=Math.pow(c,2)*Math.pow(o,2)}else if(e instanceof b.Z){const{boundingBox:t}=e;s=t.width*t.height,c=Math.pow(c,2)*Math.pow(o,2)}else{const{boundingBox:t}=e;s=Math.PI*(t.width/2)*(t.height/2),c=Math.pow(c,2)*Math.pow(o,2)}if("1/2"===t){const e=2,t=Math.round(s*c*e);l=new(i())(t/e).toFraction(!0)}else if("1/4"===t){const e=4,t=Math.round(s*c*e);l=new(i())(t/e).toFraction(!0)}else if("1/8"===t){const e=8,t=Math.round(s*c*e);l=new(i())(t/e).toFraction(!0)}else if("1/16"===t){const e=16,t=Math.round(s*c*e);l=new(i())(t/e).toFraction(!0)}else l=(s*c).toFixed(k[t]);return{value:s*c,label:`${l} ${e instanceof g.Z||e instanceof y.Z?"":"sq "}${n.unitTo}`}}function I(e,t){const{measurementScale:n}=e;(0,r.kG)(n,"measurementScale is required");const o=t/(z(e instanceof y.Z?e.points:(0,a.aV)([e.startPoint,e.endPoint]))*A[D[h.s.POINTS]][D[n.unitFrom]])*n.fromValue;return n?.set?.("toValue",o)}function M(e){return(e instanceof m.Z||e instanceof b.Z)&&e.isMeasurement()}function R(e,t){if(t&&e.measurementScale){const n=e.measurementScale.set("unitTo",t.unitTo);return T(e.set("measurementScale",n).set("measurementPrecision",t.precision))}return""}function F(e,t){const n=e.scale.unitFrom,r=e.scale.unitTo,o=Number(e.scale.fromValue),i=Number(e.scale.toValue),a=e.precision,s=t.scale.unitFrom,l=t.scale.unitTo,c=Number(t.scale.fromValue),u=Number(t.scale.toValue),d=t.precision;return n===s&&r===l&&o===c&&i===u&&a===d}const N=Object.keys(h.s).map((e=>({label:h.s[e],value:h.s[e],disabled:!1}))),O=function(){const e=[];for(const t in p.L){const n=Object.keys(p.L).find((e=>e===t));if(n&&C.hasOwnProperty(p.L[t]))e.push((1/Math.pow(10,k[p.L[n]])).toString());else if(n&&E.hasOwnProperty(p.L[t])){const t=new(i())(k[p.L[n]]);e.push(t.toFraction(!0).toString())}}return e}(),j=Object.keys(p.L).map(((e,t)=>({label:O[t],value:p.L[e]}))),L=Object.keys(p.L).filter((e=>!W(p.L[e]))).map(((e,t)=>({label:O[t],value:p.L[e]}))),B=Object.keys(f.K).map((e=>({value:f.K[e],label:f.K[e]}))),K=(e,t)=>({added:t.filter((t=>!e.find((e=>JSON.stringify(e)===JSON.stringify(t))))),deleted:e.filter((e=>!t.find((t=>JSON.stringify(e)===JSON.stringify(t)))))});function V(e){return e.map(((e,t)=>{const n={...e,scale:{...e.scale,fromValue:e.scale.from,toValue:e.scale.to}};return delete n.scale.from,delete n.scale.to,n.name&&""!==n.name.trim()||(n.name=(0,l.sJ)(n)?.label||`Scale ${t}`),u.q[n.precision]&&(n.precision=u.q[n.precision]),n}))}async function H(e){let{operation:t,scale:n,getState:r,measurementUpdate:o,dispatch:i}=e;const l=r(),{backend:u,annotations:d,annotationManager:p}=l;const h=async(e,o)=>{const a=await(async e=>(await(p?.loadAnnotationsForPageIndex(e)),r().annotations))(o);!function(e,t,r){e.forEach((e=>{const o=t.find((t=>t.pdfObjectId===e.pdfObjectId));if(o)switch(r){case"edit":{const e=o.set("measurementScale",new s.Z({fromValue:Number(n.scale.fromValue),toValue:Number(n.scale.toValue),unitFrom:n.scale.unitFrom,unitTo:n.scale.unitTo})).set("measurementPrecision",n.precision);i((0,c.FG)(e));break}case"delete":i((0,c.hQ)(o))}}))}(e,a,t)},f="STANDALONE"===u.type?await u.getAnnotationsByScale(n):function(e,t){return t.filter((t=>{const n=t.measurementScale,r=t.measurementPrecision;return!!n&&n.unitFrom===e.scale.unitFrom&&n.unitTo===e.scale.unitTo&&n.fromValue===e.scale.fromValue&&n.toValue===e.scale.toValue&&r===e.precision}))}(n,d),m=[];if(f.forEach((e=>{const n=d.find((t=>t.pdfObjectId?t.pdfObjectId===e.pdfObjectId:t.id===e.id));if(n&&"edit"===t&&o){const e=n.set("measurementScale",o.scale).set("measurementPrecision",o.precision);i((0,c.FG)(e))}else n&&"delete"===t?i((0,c.hQ)(n)):m.push(e)})),m.length>0){const e=(0,a.l4)(m.map((e=>e.pageIndex)));await Promise.all(e.map((async e=>{await h(m,e)})))}}async function $(e){let{scale:t,oldScale:n,getState:r,dispatch:o}=e;const i={scale:new s.Z({fromValue:Number(t.scale.fromValue),toValue:Number(t.scale.toValue),unitFrom:t.scale.unitFrom,unitTo:t.scale.unitTo}),precision:t.precision};await H({operation:"edit",scale:n,getState:r,measurementUpdate:i,dispatch:o})}async function U(e){let{deletedScale:t,getState:n,dispatch:r}=e;await H({operation:"delete",scale:t,getState:n,dispatch:r})}function Z(e){if(e.size<2)return!1;const t=e.toList(),n=t.first(),r={scale:n.measurementScale,precision:n.measurementPrecision};for(let e=1;e<t.size;e++){const n=t.get(e);if(!F(r,{scale:n.measurementScale,precision:n.measurementPrecision}))return!0}return!1}function q(e){if(e.size<2)return!1;const t=e.toList(),n=G(e.first());for(let e=1;e<t.size;e++){if(n!==G(t.get(e)))return!0}return!1}function G(e){return e instanceof g.Z?"Distance":e instanceof y.Z?"Perimeter":e instanceof m.Z?"Ellipse-Area":e instanceof b.Z?"Rectangle-Area":e instanceof v.Z?"Polygon-Area":void 0}function W(e){return["1/2","1/4","1/8","1/16"].includes(e)}function Y(e){return["mm","cm","m","km"].includes(e)}},58846:(e,t,n)=>{"use strict";n.d(t,{Sy:()=>s,Zt:()=>u,dY:()=>l});var r=n(15359),o=n(45249),i=n(57943),a=n(33427);function s(e,t,n){let s;if(e instanceof o.o9)return s=e.set(["startPoint","endPoint"][n],e[["startPoint","endPoint"][n]].translate(t)),s.set("boundingBox",(0,i.sS)(o.o9)(s));if(e instanceof o.om||e instanceof o.Hi)return s=e.setIn(["points",n],e.points.get(n)?.translate(t)),s.set("boundingBox",(0,i.sS)(o.om)(s));if((0,a.Vc)(e)){(0,r.kG)(e instanceof o.gd,"Callout annotation must have a callout");const a=e.callout?.knee?["start","knee","end"]:["start","end"];if("end"===a[n])return e;s=e.setIn(["callout",a[n]],e.callout?.[a[n]]?.translate(t));const{callout:c}=s;(0,r.kG)(c,"Callout annotation must have a callout");const d=c.innerRectInset;(0,r.kG)(d,"Callout annotation must have an innerRectInset"),(0,r.kG)(c.start,"Callout annotation must have a start point");const p={left:e.boundingBox.left+d.left,top:e.boundingBox.top+d.top,right:e.boundingBox.left+e.boundingBox.width-d.right,bottom:e.boundingBox.top+e.boundingBox.height-d.bottom},h=l([[p.left,p.top],[p.right,p.top],[p.right,p.bottom],[p.left,p.bottom]]),f=(0,i.sS)(o.gd)(s),m=new o.eB({left:p.left-f.left,top:p.top-f.top,right:f.left+f.width-p.right,bottom:f.top+f.height-p.bottom});return s.set("boundingBox",f).setIn(["callout","innerRectInset"],m).setIn(["callout","end"],u(c.knee||c.start,h))}return e}function l(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],i=e[(n+1)%e.length];t.push(new o.E9({x:(r[0]+i[0])/2,y:(r[1]+i[1])/2}))}return t}function c(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function u(e,t){let n=t[0],r=c(e,n);for(const o of t){const t=c(e,o);t<r&&(n=o,r=t)}return n}},1175:(e,t,n)=>{"use strict";n.d(t,{I:()=>o,W:()=>i});var r=n(10983);function o(e){return e.button===r.oW}function i(e){return e.buttons===r.M5}},97395:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,l:()=>a});var r=n(72110);const o=["http","https","mailto"];function i(e){const t=e.split(":")[0];if(t===e)e=/^[./#]/.test(e)?e:"http://"+e;else if(o.indexOf(t)<=-1)return;a(e,!0)}function a(e,t){if((0,r.Sk)()){(0,r.oH)("electron").shell.openExternal(e)}else if(t){window.open(e,"_blank").opener=null}else window.opener=null,window.location.href=e}},12705:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>g,Ez:()=>x,HI:()=>v,LC:()=>T,Pt:()=>y,RZ:()=>m,VT:()=>f,VY:()=>F,Vz:()=>N,Xr:()=>D,YN:()=>I,aE:()=>M,bp:()=>C,ix:()=>k,j$:()=>_,jb:()=>h,k_:()=>z,lV:()=>w,qs:()=>A,xW:()=>R,xr:()=>P});var r=n(15359),o=n(45249),i=n(94732),a=n(81026),s=n(72127),l=n(20063),c=n(2891),u=n(87996),d=n(44550),p=n(28233);function h(e){return e.documentPermissions.printHighQuality}function f(e){return e.documentPermissions.printing&&e.printingEnabled&&e.backendPermissions.downloadingAllowed}function m(e){return e.exportEnabled&&e.backendPermissions.downloadingAllowed}function g(e){return e.documentPermissions.extract&&e.clientPermissions.extract}function v(e){return g(e)&&!e.clientPermissions.preventTextCopy}function y(e){return e.documentPermissions.toJS()}function b(e){let{backendPermissions:t,documentPermissions:n,readOnlyEnabled:r}=e;return!(!n.modification&&n.annotationsAndForms&&!t.readOnly&&r===p.J.NO)}function w(e,t){let n=!1;if((0,r.kG)(t.backend),t.backend.isCollaborationPermissionsEnabled()&&e instanceof o.x_){const r=(0,c.GA)(t,e);n=!!r&&(0,s.os)(r,t)}const i=!n&&!(0,s.CM)(e,t)&&!(0,s.Kd)(e,t);if(M(t)&&(!("isSignature"in e)||!e.isSignature))return!0;if(S(t)||i)return!0;if(e instanceof a.FN&&(e=e.parentAnnotation),!(e instanceof o.gd||e instanceof o.Qi)&&!e.note&&e.locked)return e.locked;if(e.locked&&e.lockedContents)return!0;if(e.readOnly&&(!(e instanceof o.x_)||!(e instanceof o.R1)))return e.readOnly;if(t.isEditableAnnotation)return!t.isEditableAnnotation(e);if(!C(t)||!b(t)){if(0===t.editableAnnotationTypes.size)return!0;if(t.editableAnnotationTypes.find((t=>e instanceof t)))return!1}return!0}function x(e,t){const n=!(0,s.kR)(e,t)&&!(0,s.Ss)(e,t);return!(T(t)&&!S(t)&&!n)||(t.isEditableComment?!t.isEditableComment(e):!!C(t)&&b(t))}function _(e,t,n){let{features:r,backend:a,backendPermissions:s,documentPermissions:l,readOnlyEnabled:c,editableAnnotationTypes:u}=t;if(e===o.Jn&&!T({features:r,backend:a}))return!0;if(e===i.Z&&!r.includes(d.q.REDACTIONS))return!0;if(e===o.UX&&n&&!r.includes(d.q.MEASUREMENT_TOOLS))return!0;return!!M({features:r})||(!(!C({backendPermissions:s,documentPermissions:l,readOnlyEnabled:c})||!b({backendPermissions:s,documentPermissions:l,readOnlyEnabled:c}))||!u.find((t=>e===t||e.prototype instanceof t||t.prototype instanceof e)))}function S(e){return e.backendPermissions.readOnly}function C(e){let{backendPermissions:t,documentPermissions:n,readOnlyEnabled:r}=e;return t.readOnly||!n.modification||r!==p.J.NO}function E(e){return(e.documentPermissions.annotationsAndForms||e.documentPermissions.fillForms)&&e.formsEnabled}function k(e){return E(e)&&z(e.backend)&&e.features.includes(d.q.FORM_DESIGNER)}function z(e){return(0,r.kG)(e),e.isUsingInstantProvider()||"STANDALONE"===e.type}function P(e){return(0,r.kG)(e),e.isUsingInstantProvider()||"STANDALONE"===e.type}function D(e){let{features:t,backendPermissions:n,documentPermissions:r,readOnlyEnabled:o}=e;return t.includes(d.q.DOCUMENT_EDITING)&&!(n.readOnly||!r.modification||o===p.J.VIA_VIEW_STATE||o===p.J.VIA_BACKEND_PERMISSIONS)}function A(e){let{features:t,backendPermissions:n,documentPermissions:r,readOnlyEnabled:o}=e;return t.includes(d.q.CONTENT_EDITING)&&!(n.readOnly||!r.modification||o===p.J.VIA_VIEW_STATE||o===p.J.VIA_BACKEND_PERMISSIONS)}function T(e){let{features:t,backend:n}=e;return(0,r.kG)(n),t.includes(d.q.COMMENTS)&&("STANDALONE"===n.type||"SERVER"===n.type&&n.isUsingInstantProvider())}function I(e){let{features:t,backend:n}=e;return(0,r.kG)(n),t.includes(d.q.MEASUREMENT_TOOLS)&&("STANDALONE"===n.type||"SERVER"===n.type)}function M(e){let{features:t}=e;return!N(t)&&t.includes(d.q.ELECTRONIC_SIGNATURES)}function R(e,t){return!!(t===l.H.LEGACY_SIGNATURES||e.includes(d.q.FORMS)&&(e.includes(d.q.ELECTRONIC_SIGNATURES)||e.includes(d.q.DIGITAL_SIGNATURES)))}function F(e,t,n){let{backendPermissions:r,documentPermissions:i,isEditableAnnotation:a,editableAnnotationTypes:s,readOnlyEnabled:l}=n;return e.readOnly||a&&!a(t)||!s.has(o.x_)||!u.Options.IGNORE_DOCUMENT_PERMISSIONS&&!i.fillForms&&!i.annotationsAndForms||r.readOnly||l!==p.J.NO}function N(e){return e.includes(d.q.WEB_ANNOTATION_EDITING)||e.includes(d.q.ANNOTATION_EDITING)}},53217:(e,t,n)=>{"use strict";n.d(t,{$u:()=>s,Qk:()=>l,Sk:()=>i,d:()=>o,oH:()=>c});var r=n(15359);function o(){return"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron/")>=0}function i(){const e=u()[atob("cmVxdWlyZQ==")];return o()&&"undefined"!=typeof window&&window&&window.process&&window.process.type&&"function"==typeof e}function a(){let e;try{e=c("@electron/remote")}catch(t){if("MODULE_NOT_FOUND"!==t.code)throw t;try{e=c("electron").remote}catch(e){(0,r.vU)(`Failed to load the remote module package. PSPDFKit for Web needs access to it in order to work in Electron.\n        Please read our Electron guides to help you set it up: https://pspdfkit.com/getting-started/electron/\n        ${t.message}\n        ${e.message}`)}}return e}function s(){if(!o())return null;if(!i())return null;try{const e=c("fs"),t=a().app.getAppPath()+"/package.json";return JSON.parse(e.readFileSync(t).toString()).name}catch(e){throw new Error(`There was an error parsing this project's \`package.json\`: ${e.message}`)}}function l(){if(!o())return null;try{return`file://${a().app.getAppPath()}/node_modules/pspdfkit/dist/`}catch(e){return null}}function c(e){return(0,u()[atob("cmVxdWlyZQ==")])(e)}function u(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g}},75665:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});var r=n(33383);function o(e,t){return"string"==typeof e&&t===r.x.FlutterForWeb}},72110:(e,t,n)=>{"use strict";n.d(t,{$u:()=>r.$u,AL:()=>o.A,B0:()=>i.B,Qk:()=>r.Qk,Sk:()=>r.Sk,d:()=>r.d,oH:()=>r.oH});var r=n(53217),o=n(49843),i=n(75665)},49843:(e,t,n)=>{"use strict";function r(e,t){return"string"==typeof e&&t?.startsWith("Maui_")}n.d(t,{A:()=>r})},46364:(e,t,n)=>{"use strict";function r(e){return new Promise(((t,n)=>{let r=0;const o=[];let i=!1;const a=()=>{r>=e.length&&(i?n(o):t(o))};a(),e.forEach(((e,t)=>{e.then((e=>{r+=1,o[t]=e,a()})).catch((e=>{r+=1,o[t]=e,i=!0,a()}))}))}))}function o(e,t){let n=!1;return{promise:new Promise(((t,r)=>{e.then((e=>!n&&t(e)),(e=>!n&&r(e)))})),cancel(){n=!0,t&&t()}}}function i(e,t){return new Promise((function(n,r){e.then(n,r),setTimeout((function(){r(Error("promise:timeout"))}),t)}))}function a(){let e,t;return{promise:new Promise(((n,r)=>{e=n,t=r})),resolve:e,reject:t}}n.d(t,{Vs:()=>i,d6:()=>a,jK:()=>r,uZ:()=>o})},92537:(e,t,n)=>{"use strict";function r(){let e=1;return void 0!==window.devicePixelRatio&&(e=window.devicePixelRatio),e}n.d(t,{L:()=>r})},23301:(e,t,n)=>{"use strict";n.d(t,{BP:()=>S,D7:()=>x,G8:()=>v,cL:()=>C,er:()=>_});var r=n(35369),o=n(15359),i=n(87996),a=n(74814),s=n(45249),l=n(5705);function c(e){switch(e){case a.V.TOP:return{mx:0,my:-1};case a.V.BOTTOM:return{mx:0,my:1};case a.V.LEFT:return{mx:-1,my:0};case a.V.RIGHT:return{mx:1,my:0};case a.V.TOP_LEFT:return{mx:-1,my:-1};case a.V.TOP_RIGHT:return{mx:1,my:-1};case a.V.BOTTOM_RIGHT:return{mx:1,my:1};case a.V.BOTTOM_LEFT:return{mx:-1,my:1}}throw new o.p2("Expected `getMultipliersFromResizeStartingAnchor` to be called with a valid `ResizeStartingAnchor` value.")}function u(e,t,n,r,o){const i=c(t);let a,s=e.width+i.mx*n.x,l=e.height+i.my*n.y;return o&&r&&(i.mx>0&&e.left+s>r.width?(s=r.width-e.left,a="width"):i.mx<0&&s-e.width>e.left&&(s=e.left+e.width,a="width"),i.my>0&&e.top+l>r.height?(l=r.height-e.top,a="height"):i.my<0&&l-e.height>e.top&&(l=e.top+e.height,a="height")),{rect:e.set("width",s).set("height",l),keepToSide:a}}function d(e,t,n,r,o){const i=c(t),a=-1*i.mx*(e.width-e.width*n),l=-1*i.my*(e.height-e.height*r),u=o?new s.E9({x:i.mx>=0?0:Math.max(-e.left,a),y:i.my>=0?0:Math.max(-e.top,l)}):new s.E9({x:i.mx>=0?0:a,y:i.my>=0?0:l});return{translation:u,dragDifference:o?new s.E9({x:i.mx>=0?0:a-u.x,y:i.my>=0?0:l-u.y}):new s.E9({x:0,y:0})}}function p(e,t){const n=c(t);return new s.E9({x:e.boundingBox.left+e.boundingBox.width/2+-1*n.mx*e.boundingBox.width/2,y:e.boundingBox.top+e.boundingBox.height/2+-1*n.my*e.boundingBox.height/2})}function h(e,t,n,r){let o=e.lines;const i=p(e,r);return o=o.map((e=>e.map((e=>e.translate(i.scale(-1)).scale(t,n).translate(i))))),o}function f(e,t,n,o){let i;if(e instanceof s.o9)i=(0,r.aV)([e.startPoint,e.endPoint]);else{if(!(e instanceof s.Hi||e instanceof s.om))return(0,r.aV)();i=e.points}const a=p(e,o);return i=i.map((e=>e.translate(a.scale(-1)).scale(t,n).translate(a))),i}function m(e,t,n){const r=v(e);if(r>0){const o=e.boundingBox,i=o.width<r?o.width:r;if(t.width<i){const e=t.width;if(t=n?y("width",o,t.set("width",i)):t.set("width",i),o.left!==t.left){const n=t.width-e;t=t.set("left",t.left+n)}}const a=o.height<r?o.height:r;if(t.height<a){const e=t.height;if(t=n?y("height",o,t.set("height",a)):t.set("height",a),o.top!==t.top){const n=t.height-e;t=t.set("top",t.top+n)}}}return t}function g(e,t,n,r){const o=e.boundingBox;let i=t.width;r.maxWidth&&i>r.maxWidth&&(i=r.maxWidth),r.minWidth&&i<r.minWidth&&(i=r.minWidth);const a=t.width;if(t=n?y("width",o,t.set("width",i)):t.set("width",i),o.left!==t.left){const e=t.width-a;t=t.set("left",t.left+e)}let s=t.height;r.maxHeight&&t.height>r.maxHeight&&(s=r.maxHeight),r.minHeight&&t.height<r.minHeight&&(s=r.minHeight);const l=t.height;if(t=n?y("height",o,t.set("height",s)):t.set("height",s),o.top!==t.top){const e=t.height-l;t=t.set("top",t.top+e)}return t}function v(e){const{MIN_IMAGE_ANNOTATION_SIZE:t,MIN_STAMP_ANNOTATION_SIZE:n,MIN_TEXT_ANNOTATION_SIZE:r,MIN_INK_ANNOTATION_SIZE:o,MIN_SHAPE_ANNOTATION_SIZE:a,MIN_WIDGET_ANNOTATION_SIZE:l}=i.Options;switch(e.constructor){case s.sK:return t;case s.GI:return n;case s.gd:return r;case s.Zc:return o;case s.o9:case s.b3:case s.Xs:case s.om:case s.Hi:return a;case s.x_:return l;default:return 0}}function y(e,t,n){if(!e)return function(e,t){if(0===e.height||0===e.width)return t;const n=e.width/e.height,r=(t.height+n*t.width)/(n**2+1);return t.set("height",r).set("width",r*n)}(t,n);if(0===t.width||0===t.height||0===n[e])return n;const r="width"===e?"height":"width",o=t[e]/t[r];return n.set(r,n[e]/o)}const b={0:a.V.BOTTOM_RIGHT,90:a.V.TOP_RIGHT,180:a.V.TOP_LEFT,270:a.V.BOTTOM_LEFT},w={[a.V.TOP]:a.V.TOP_RIGHT,[a.V.BOTTOM]:a.V.BOTTOM_RIGHT,[a.V.LEFT]:a.V.BOTTOM_LEFT,[a.V.RIGHT]:a.V.BOTTOM_RIGHT,[a.V.TOP_LEFT]:a.V.TOP_LEFT,[a.V.TOP_RIGHT]:a.V.TOP_RIGHT,[a.V.BOTTOM_LEFT]:a.V.BOTTOM_LEFT,[a.V.BOTTOM_RIGHT]:a.V.BOTTOM_RIGHT};function x(e,t,n,r){let o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5?arguments[5]:void 0,p=arguments.length>6?arguments[6]:void 0,x=arguments.length>7?arguments[7]:void 0;const S=e.boundingBox;let C;if((0,l.o0)(e)&&!(0,l.Ag)(e)){const r=c(n),o=new s.E9({x:S.width/2*r.mx,y:S.height/2*r.my}),i=o.rotate(e.rotation),a=new s.E9({x:i.x+t.x,y:i.y+t.y}).rotate(-e.rotation);C=new s.E9({x:a.x-o.x,y:a.y-o.y})}else C=t;const E=u(S,n,C,i,p);let k=E.rect;if(r&&(k=y(E.keepToSide,S,k)),o&&x&&(x?.maxHeight||x?.maxWidth||x?.minHeight||x?.minWidth)){const t=v(e);x.minHeight=x.minHeight?x.minHeight:t,x.minWidth=x.minWidth?x.minWidth:t}else o&&(k=m(e,k,r));const z=0!==S.width?k.width/S.width:0,P=0!==S.height?k.height/S.height:0,{translation:D,dragDifference:A}=d(S,n,z,P,p);k=k.set("width",k.width+A.x).set("height",k.height+A.y),k=k.translate(D),(x?.maxHeight||x?.maxWidth||x?.minHeight||x?.minWidth)&&(k=g(e,k,r,x));const T=function(){const t=e.set("boundingBox",k),o=Math.sqrt(z*P);let i;return t instanceof s.gd?(0,l.Ag)(e)&&n===b[e.rotation]||!(0,l.Ag)(e)&&n===a.V.BOTTOM_RIGHT?t.set("fontSize",t.fontSize*o).set("isFitting",!0):t.set("isFitting",!0):t instanceof s.Zc?t.withMutations((e=>{e.set("lines",h(t,z,P,r?w[n]:n)),e.set("lineWidth",t.lineWidth*o)})):t instanceof s.o9?(i=f(t,z,P,n),t.withMutations((e=>{e.set("startPoint",i.get(0)),e.set("endPoint",i.get(1))}))):t instanceof s.Hi||t instanceof s.om?(i=f(t,z,P,n),t.withMutations((e=>{e.set("boundingBox",k),e.set("points",i)}))):t}();return _(T,S)}function _(e,t){if((0,l.o0)(e)&&!(0,l.Ag)(e)){const n=new s.E9({x:e.boundingBox.getCenter().x-t.getCenter().x,y:e.boundingBox.getCenter().y-t.getCenter().y}).rotate(e.rotation);return e.update("boundingBox",(e=>e.set("left",t.left+n.x-(e.width-t.width)/2).set("top",t.top+n.y-(e.height-t.height)/2)))}return e}function S(e,t){const{width:n,height:r}=e,o=t.width/n,i=t.height/r,a=Math.min(o,i);return new s.$u({width:n*a,height:r*a})}function C(e){switch(e){case a.V.TOP_LEFT:return"Top-Left";case a.V.TOP:return"Top";case a.V.TOP_RIGHT:return"Top-Right";case a.V.LEFT:return"Left";case a.V.RIGHT:return"Right";case a.V.BOTTOM_LEFT:return"Bottom-Left";case a.V.BOTTOM:return"Bottom";case a.V.BOTTOM_RIGHT:return"Bottom-Right";default:(0,o.Rz)(e)}}},5705:(e,t,n)=>{"use strict";n.d(t,{Ag:()=>d,Mg:()=>v,az:()=>l,h4:()=>c,kv:()=>u,o0:()=>p,sw:()=>s});var r=n(45249),o=n(33427),i=n(72938),a=n.n(i);function s(e,t,n,i){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const s=e.set("rotation",t);if(n&&i){const t=l(s),i=(0,o.SY)(t,a);if(!new r.UL({left:0,top:0,width:n.width,height:n.height}).isRectInside(i))return e}return s}function l(e){const{boundingBox:t,rotation:n}=e,{width:o,height:i}=t;if(!p(e))return e;const a=new r.E9({x:-o/2,y:-i/2}),s=new r.E9({x:o/2,y:-i/2}),l=new r.E9({x:o/2,y:i/2}),c=new r.E9({x:-o/2,y:i/2}),u=a.rotate(n),d=s.rotate(n),h=l.rotate(n),f=c.rotate(n),m=Math.min(u.x,d.x,h.x,f.x),g=Math.min(u.y,d.y,h.y,f.y),v=Math.max(u.x,d.x,h.x,f.x),y=Math.max(u.y,d.y,h.y,f.y),b=t.getCenter();return e.set("boundingBox",new r.UL({left:b.x+m,top:b.y+g,width:v-m,height:y-g}))}function c(e,t){if(p(e)){const n=t||function(e,t){if(void 0===t||0===t)return e.getSize();const n=Math.floor(t/360);-1===Math.sign(t)&&(t+=360+360*n);let o=(t-=360*n)%180;const i=o>=90,a=i?e.height:e.width,s=i?e.width:e.height;if(o%=90,45===o){if(a!==s){const e=Math.min(a,s);return new r.$u({width:Math.sqrt(2)*e,height:Math.sqrt(2)*e})}return new r.$u({width:Math.sqrt(2)*a,height:Math.sqrt(2)*s})}const l=o*(Math.PI/180);return new r.$u({width:(a*Math.cos(l)-s*Math.sin(l))/Math.cos(2*l),height:(s*Math.cos(l)-a*Math.sin(l))/Math.cos(2*l)})}(e.boundingBox,e.rotation);return e.set("boundingBox",new r.UL({left:e.boundingBox.left+(e.boundingBox.width-n.width)/2,top:e.boundingBox.top+(e.boundingBox.height-n.height)/2,width:n.width,height:n.height}))}return e}function u(e){return"number"==typeof e.rotation&&e.rotation%360!=0}function d(e){return"number"==typeof e.rotation&&Math.abs(e.rotation)%90==0&&Math.abs(e.rotation)%360!=0}function p(e){return(0,o.a$)(e)&&u(e)}let h,f,m,g;function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"grab";if(h||(h=new DOMParser,f=h.parseFromString(a(),"image/svg+xml"),m=f.querySelector("svg"),g=new XMLSerializer),m&&(m.style.transform=`rotate(${-e}deg)`),g){return`url("${`data:image/svg+xml;utf8,${encodeURIComponent(g.serializeToString(f))}`}") 15 15, ${t}`}return t}},11192:(e,t,n)=>{"use strict";n.d(t,{Q:()=>w,U2:()=>x,ZJ:()=>m,a7:()=>f,mB:()=>b});var r=n(35369),o=n(15359),i=n(93113),a=n(65160),s=n(12705),l=n(45249),c=n(98179),u=n(69867),d=n(38852),p=n(26564),h=n.n(p);function f(e){const{document:t}=e;if(c.TL){const{activeElement:n,body:r}=t,i=n&&1===n.nodeType&&n!==r;if(e.getSelection()?.isCollapsed&&!i)return;const a=t.createElement("input");return a.style.position="fixed",a.style.left="50vw",a.style.top="50vh",a.readOnly=!0,(0,o.kG)(t.documentElement,"no document object found"),t.documentElement.appendChild(a),a.focus(),a.blur(),void a.remove()}e.getSelection()?.empty?e.getSelection()?.empty():e.getSelection()?.removeAllRanges&&e.getSelection()?.removeAllRanges()}function m(e,t){const n=t.startAndEndIds();if(!n)return(0,r.D5)();const{startTextLineId:i,endTextLineId:a,startPageIndex:s,endPageIndex:l}=n;return(0,r.D5)(e.pages.filter((e=>e.contentBlocks&&e.pageIndex>=s&&e.pageIndex<=l)).map((e=>{const t=y(e.contentBlocks);let n;return e.pageIndex===s&&e.pageIndex===l?n=t.filter((e=>((0,o.kG)((0,d.hj)(e.id)),e.id>=i&&e.id<=a))):e.pageIndex===s?n=t.filter((e=>((0,o.kG)((0,d.hj)(e.id)),e.id>=i))):e.pageIndex===l?n=t.filter((e=>((0,o.kG)((0,d.hj)(e.id)),e.id<=a))):((0,o.kG)(e.contentBlocks),n=y(e.contentBlocks)),[e.pageIndex,n]})))}const g=(e,t,n,r,i)=>{(0,o.kG)((0,d.hj)(t.pageIndex));const a={transform:n&&n.scaleX>0&&n.scaleY>0?`scale(${n.scaleX*e.viewportState.zoomLevel}, ${n.scaleY*e.viewportState.zoomLevel})`:"",fontFamily:r||""};return new u.f(e.frameWindow?.document,i,a,h().line,e.shadowRoot)},v=(e,t,n,r)=>{const i=e.pages.get(t);(0,o.kG)(i&&i.contentBlocks,"Page not found or page has no blocks");const a=function(e,t){const n=t.split(".").map(Number);function r(e,t){if(0===t.length)return e;const n=t[0],o=e.contentBlocks.find((e=>e.id===n));return o?r(o,t.slice(1)):null}for(let t=0;t<e.size;t++){const o=e.get(t);if(o&&o.id===n[0]){const e=r(o,n.slice(1));if(e)return e}}return null}(i.contentBlocks,r);(0,o.kG)(a,"ContentBlock not found");const s=a.textLines;(0,o.kG)(s,"TextLines not found");return s.find((e=>e.id===n))};function y(e){const t=[];function n(e,t){t.push(...e.textLines),e.contentBlocks.forEach((e=>{n(e,t)}))}return e.forEach((e=>{n(e,t)})),(0,r.aV)(t)}function b(e,t){const n=t.startAndEndIds();if(!n)return null;const{startTextLineId:i,endTextLineId:l,startNestedContentBlockId:c,endNestedContentBlockId:u,startPageIndex:p,endPageIndex:h}=n,f=e.pages.get(p);(0,o.kG)(f,"Index of start page is out of bounds");const m=e.pages.get(h);if((0,o.kG)(m,"Index of end page is out of bounds"),i===l&&p===h){const n=v(e,p,i,c);if(!n)return null;(0,o.kG)((0,d.hj)(n.id));const l=f.textLineScales&&f.textLineScales.get(n.id),u=f.textElementFonts&&f.textElementFonts[n.id],h=(0,a.LD)((0,s.HI)(e),n),m=h.substring(0,t.startOffset),y=h.substring(t.startOffset,t.endOffset),b=h.substring(t.endOffset),w=g(e,n,l,u,(0,r.aV)([m,y,b])),x=w.measure().get(1);(0,o.kG)(x);const _=x.scale(1/e.viewportState.zoomLevel).translate(n.boundingBox.getLocation());return w.remove(),{startRect:_,endRect:_}}{const n=v(e,p,i,c),y=v(e,h,l,u);if(!n||!y)return null;(0,o.kG)((0,d.hj)(n.id)),(0,o.kG)((0,d.hj)(y.id));const b=f.textLineScales&&f.textLineScales.get(n.id),w=f.textElementFonts&&f.textElementFonts[n.id],x=m.textLineScales&&m.textLineScales.get(y.id),_=m.textElementFonts&&m.textElementFonts[y.id],S=(0,a.LD)((0,s.HI)(e),n),C=S.substring(0,t.startOffset),E=S.substring(t.startOffset),k=(0,a.LD)((0,s.HI)(e),y),z=k.substring(0,t.endOffset),P=k.substring(t.endOffset),D=g(e,n,b,w,(0,r.aV)([C,E])),A=g(e,y,x,_,(0,r.aV)([z,P])),T=D.measure().last();(0,o.kG)(T);const I=T.scale(1/e.viewportState.zoomLevel).translate(n.boundingBox.getLocation()),M=A.measure().first();(0,o.kG)(M);const R=M.scale(1/e.viewportState.zoomLevel).translate(y.boundingBox.getLocation());return D.remove(),A.remove(),{startRect:I,endRect:R}}}function w(e,t){const{startTextLineId:n,endTextLineId:r,startNestedContentBlockId:i,endNestedContentBlockId:a,startPageIndex:s,endPageIndex:l,textRange:c}=t;(0,o.kG)((0,d.hj)(s));const u=e.pages.get(s);(0,o.kG)((0,d.hj)(l)),(0,o.kG)(u,"Index of start page is out of bounds");const p=e.pages.get(l);if((0,o.kG)(p,"Index of end page is out of bounds"),(0,o.kG)(c&&(0,d.hj)(n)&&(0,d.hj)(r)&&(0,d.HD)(i)&&(0,d.HD)(a)),n===r&&s===l){return v(e,s,n,i)?.contents.substring(c.startOffset,c.endOffset)??""}{const t=v(e,s,n,i),o=v(e,l,r,a);if(!t||!o)return"";const u=t.contents.substring(c.startOffset),d=o.contents.substring(0,c.endOffset);return m(e,c).map(((e,t)=>e.map((e=>e.id==n&&t==s?u:e.id==r&&t==l?d:e.contents)))).valueSeq().flatten(!0).join("")}}function x(e,t,n){const r=t.startAndEndIds(),o=b(e,t);if(!r||!o)return null;const{startTextLineId:a,endTextLineId:s,startPageIndex:c,endPageIndex:u}=r,{startRect:d,endRect:p}=o,h=m(e,t).map(((t,r)=>t.map((t=>{let o;if(o=t.id==a&&r==c?d:t.id==s&&r==u?p:t.boundingBox,n)return o;const l=(0,i.cr)(e.viewportState,r).translate(e.viewportState.scrollPosition.scale(e.viewportState.zoomLevel));return o.apply(l)})))).valueSeq().flatten(!0).toList();return l.UL.union(h)}},4325:(e,t,n)=>{"use strict";n.d(t,{K:()=>o,q:()=>i});var r=n(87996);const o=e=>{const{SELECTION_OUTLINE_PADDING:t}=r.Options;return t(e)},i=(e,t)=>e.grow(o(t))},98260:(e,t,n)=>{"use strict";n.d(t,{HY:()=>a,QC:()=>u,S9:()=>f,W1:()=>p,g:()=>h,ke:()=>i,m_:()=>c,sD:()=>s,xA:()=>m});var r=n(15359),o=n(98179);function i(e,t){return e?{document:e,addEventListener:((t,n,r)=>{const o=["touchstart","touchmove","scroll"].includes(t)?{...r,passive:!0}:r;e.addEventListener(t,n,o)}).bind(e),removeEventListener:e.removeEventListener.bind(e),Node:t.Node}:t}function a(e){if(e){const t=o.vU?e.ownerDocument.getSelection():function(e){if("function"==typeof e.getSelection)return e.getSelection();return null}(e);if(t)return function(e,t){const n=function(e,t){if(!e.isCollapsed)return!1;document.createRange().selectNodeContents(t);const n=document.createRange();return!(!e.anchorNode||!e.focusNode)&&(n.setStart(e.anchorNode,e.anchorOffset),n.setEnd(e.focusNode,e.focusOffset),l(n,t)&&function(e){return""!==e.toString()}(e))}(e,t);return{selection:e,isFalseCollapse:n}}(t,e)}return function(e,t){const n={selection:null,isFalseCollapse:!1};if(e&&!e.isCollapsed){l(e.getRangeAt(0),t)&&(n.selection=e)}return n}(document.getSelection(),e)}function s(e){return{selection:e?.getSelection(),isFalseCollapse:!1}}function l(e,t){return t.contains(e.startContainer)&&t.contains(e.endContainer)}function c(e,t,n){let r=function(e,t,n){let r=e;for(;r&&r.shadowRoot;){const e=r.shadowRoot.elementFromPoint(t,n);if(!e||e===r)break;r=e}return r}(e,t,n);return r||(r=function(e,t,n){let r,o=e;for(;!r&&o;){const e=o.parentElement||o.getRootNode().host;e&&(r=e.shadowRoot?e.shadowRoot.elementFromPoint(t,n):document.elementFromPoint(t,n)),o=e}return r}(e,t,n)),r&&r.nodeType===Node.ELEMENT_NODE?function(e,t,n){if("P"!==e.tagName&&"SPAN"!==e.tagName)return null;let r=null,o=1/0;const i=document.createRange();function a(e){i.selectNodeContents(e);const a=i.getBoundingClientRect(),s=Math.hypot(a.left-t,a.top-n);s<o&&(r=e,o=s)}for(const t of e.childNodes)if(t.nodeType===Node.TEXT_NODE)a(t);else if(t.nodeType===Node.ELEMENT_NODE&&"SPAN"===t.tagName)for(const e of t.childNodes)e.nodeType===Node.TEXT_NODE&&a(e);return r}(r,t,n):r}function u(e,t,n){const o=document.createRange();let i=0,a=1/0;const s=function(e){const t=document.createElement("span");return t.style.position="absolute",t.style.whiteSpace="pre",document.body.appendChild(t),function(e,t){const n=window.getComputedStyle(e);for(const e of n)t.style[e]=n[e]}(e.parentNode,t),t}(e);(0,r.kG)(e.textContent);for(let r=0;r<=e.textContent.length;r++){s.textContent=e.textContent.substring(0,r),o.setStart(e,r),o.setEnd(e,r);const l=d(o,t,n);l<a&&(a=l,i=r)}return s.remove(),i}function d(e,t,n){const r=e.getBoundingClientRect();return Math.hypot(r.left-t,r.top-n)}function p(e){for(;e;){if(e.classList&&e.classList.contains("PSPDFKit-Rich-Text-Editor")||e.classList&&e.classList.contains("BaselineUI-Editor"))return!0;e=e.parentNode}return!1}function h(e,t){let n,o,i,a;(0,r.kG)(e.node&&t.node);const s=e.node.compareDocumentPosition(t.node);return s&Node.DOCUMENT_POSITION_FOLLOWING?(({node:n,offset:o}=e),({node:i,offset:a}=t)):s&Node.DOCUMENT_POSITION_PRECEDING?(({node:n,offset:o}=t),({node:i,offset:a}=e)):(n=i=e.node,o=Math.min(e.offset,t.offset),a=Math.max(e.offset,t.offset)),{startNode:n,startOffset:o,endNode:i,endOffset:a}}function f(e){let t=e;for(;t&&!["P","DIV","SECTION","ARTICLE"].includes(t.nodeName);)t=t.parentNode;if(t){const e=document.createRange();return e.selectNodeContents(t),e}return null}function m(e,t,n){const r=document.createRange();let o=0,i=e.textContent.length;const a=u(e,t,n);for(let t=a;t>=0;t--)if(" "===e.textContent[t]||0===t){o=0===t?0:t+1;break}for(let t=a;t<e.textContent.length;t++)if(" "===e.textContent[t]||t===e.textContent.length-1){i=t;break}return r.setStart(e,o),r.setEnd(e,i),r}},57943:(e,t,n)=>{"use strict";n.d(t,{CW:()=>b,Hx:()=>w,Hz:()=>E,Pr:()=>f,R4:()=>x,RR:()=>y,Rv:()=>v,rr:()=>_,sS:()=>h});var r=n(35369),o=n(15359),i=n(45249),a=n(94732),s=n(12559),l=n(48625),c=n(10983),u=n(33427);const d=(e,t)=>e-t,p=(e,t)=>{const n=t.reduce(((t,n,r,o)=>{const i={x:t.x.concat([n.x]),y:t.y.concat([n.y])},a=o.get(r+1)||o.get(r-1)||n,s=a.x-n.x,l=a.y-n.y;if(0===s&&0===l)return i;const c=Math.sqrt(s**2+l**2),u=(0===r?"lineCaps"in e&&e.lineCaps?.start?2.5*e.strokeWidth:e.strokeWidth/2:r===o.size-1&&"lineCaps"in e&&e.lineCaps?.end?2.5*e.strokeWidth:e.strokeWidth/2)/c;return{x:i.x.concat([n.x-u*l,n.x+u*l]),y:i.y.concat([n.y-u*s,n.y+u*s])}}),{x:[],y:[]}),[r,...o]=n.x.sort(d),i=o.slice(-1)[0]||r,[a,...s]=n.y.sort(d);return{minX:r,maxX:i,minY:a,maxY:s.slice(-1)[0]||a}};function h(e){switch(e){case i.o9:return e=>{(0,o.kG)(e instanceof i.o9,"Expected `lineAnnotation` to be an instance of `LineAnnotation`");const{minX:t,maxX:n,minY:a,maxY:s}=p(e,(0,r.aV)([e.startPoint,e.endPoint]));return new i.UL({width:n-t+2*e.strokeWidth,height:s-a+2*e.strokeWidth,top:a-e.strokeWidth,left:t-e.strokeWidth})};case i.b3:case i.Xs:case a.Z:return e=>e.boundingBox;case i.Hi:case i.om:return e=>{if((0,o.kG)(e instanceof i.om||e instanceof i.Hi,"Expected `polyshapeAnnotation` to be an instance of `PolylineAnnotation` or `PolygonAnnotation`"),0===e.points.size)return e.boundingBox;const{minX:t,maxX:n,minY:r,maxY:a}=p(e,e.points),s="cloudyBorderIntensity"in e&&e.cloudyBorderIntensity?e.cloudyBorderIntensity*c.St:0;return new i.UL({width:n-t+2*e.strokeWidth+2*s,height:a-r+2*e.strokeWidth+2*s,top:r-e.strokeWidth-s,left:t-e.strokeWidth-s})};case i.gd:return e=>{if((0,u.Vc)(e)){(0,o.kG)(e instanceof i.gd,"Expected `annotation` to be a `TextAnnotation`");const{callout:t}=e;(0,o.kG)(t,"Expected `callout` to be defined");const{innerRectInset:n,knee:r,start:a,end:s}=t;(0,o.kG)(n&&a&&s,"Expected `innerRectInset`, `start` and `end` to be defined");const l=Math.min(e.boundingBox.left+n.left,a.x,s.x,r?r.x:1/0),c=Math.min(e.boundingBox.top+n.top,a.y,s.y,r?r.y:1/0),u=Math.max(e.boundingBox.left+e.boundingBox.width-n.right,a.x,s.x,r?r.x:-1/0),d=Math.max(e.boundingBox.top+e.boundingBox.height-n.bottom,a.y,s.y,r?r.y:-1/0),p=4*(e.borderWidth||2);let h=f(a,new i.UL({left:l,top:c,width:u-l,height:d-c}),p);return r&&(h=f(r,h,p)),h}return e.boundingBox}}throw new o.p2("Expected `getBoundingBoxCalculator` to be called with a valid shape annotation type class value.")}function f(e,t,n){const r=t.left===e.x,o=t.left+t.width===e.x,a=t.top===e.y,s=t.top+t.height===e.y;return new i.UL({left:r?t.left-n:t.left,top:a?t.top-n:t.top,width:r||o?t.width+n:t.width,height:a||s?t.height+n:t.height})}const m=(e,t)=>new i.E9({x:e.x+t.weightedStrokeWidthLineRatio*t.xOffset,y:e.y+t.weightedStrokeWidthLineRatio*t.yOffset}),g={xOffset:0,yOffset:0,weightedStrokeWidthLineRatio:0},v=6,y=25;function b(e,t,n){if(null===n)return e;const o=function(e){return Math.min(Math.max(e,v),y)}(t),a=n.start,l=n.end,c=a?s.O[a].width:0,u=l?s.O[l].width:0;if(e.size<2||!c&&!u)return e;const d=e.get(0),p=e.get(e.size-1);if(!(d instanceof i.E9&&p instanceof i.E9))return e;const h=a?(()=>{const t=d,n=e.get(1)||t;if(!(n instanceof i.E9))return g;const r=n.x-t.x,a=n.y-t.y;return{xOffset:r,yOffset:a,weightedStrokeWidthLineRatio:0!==r||0!==a?c*o/Math.sqrt(r**2+a**2):0}})():g,f=l&&e.get(e.size-2)instanceof i.E9?(()=>{const t=p,n=e.get(e.size-2)||t,r=-(t.x-n.x),i=-(t.y-n.y);return{xOffset:r,yOffset:i,weightedStrokeWidthLineRatio:0!==r||0!==i?u*o/Math.sqrt(r**2+i**2):0}})():g;return e.size>2||!a||!l?e.map(((t,n)=>0===n?h.weightedStrokeWidthLineRatio<=1?m(t,h):t:n===e.size-1&&f.weightedStrokeWidthLineRatio<=1?m(t,f):t)):h.weightedStrokeWidthLineRatio+f.weightedStrokeWidthLineRatio<=1?(0,r.aV)([m(d,h),m(p,f)]):e}function w(e){return e instanceof i.b3||e instanceof i.Xs?e.delete("boundingBox"):e instanceof i.Hi||e instanceof i.om?e.delete("boundingBox").delete("points"):e instanceof i.o9?e.delete("boundingBox").delete("startPoint").delete("endPoint"):e}function x(e){switch(e){case i.o9:return l.A.SHAPE_LINE;case i.b3:return l.A.SHAPE_RECTANGLE;case i.Xs:return l.A.SHAPE_ELLIPSE;case i.om:return l.A.SHAPE_POLYLINE;case i.Hi:return l.A.SHAPE_POLYGON;default:return null}}function _(e){let{points:t,intensity:n,arcRadius:r=c.St*n}=e;const o=t.reduce(((e,n,o)=>{const i=o===t.length-1?t[0]:t[o+1];if(P(n,i,.01))return e;const a=z(n,i),s=Math.floor(a/(1.75*r));if(a>=a/(s+1)){const t=s+1,r=(i[0]-n[0])/t,o=(i[1]-n[1])/t;e.push(...Array.from({length:t},((e,t)=>[n[0]+r*t,n[1]+o*t])))}return e}),[]),i=k(t),a=i?"1":"0",s="1"===a?"0":"1",l=i?-.3:.3;return o.reduce(((e,t,n)=>{const c=o[n>0?n-1:o.length-1];if(P(t,c))return e;let u=o[(n+1)%o.length],d=n+1;for(;P(t,u);){if(d%o.length===n)return[];u=o[(1+ ++d)%o.length]}let p=D(t,c,r,i),h=D(t,u,r,!i);if(isNaN(p)&&isNaN(h))return e.push(`${u[0]} ${u[1]}`),e;isNaN(p)&&(p=h+Math.PI),isNaN(h)&&(h=p+Math.PI),h+=l;const f=i?h>p?p+(S-h)>Math.PI?"1":"0":p-h>Math.PI?"1":"0":h>p?p+(S-h)>Math.PI?"0":"1":p-h>Math.PI?"0":"1",m=[t[0]+Math.cos(p)*r,t[1]-Math.sin(p)*r],g=[t[0]+Math.cos(h)*r,t[1]-Math.sin(h)*r];return e.push(0===e.length?`M ${m[0]} ${m[1]} A ${r} ${r} 0 ${f} ${a} ${g[0]} ${g[1]}`:` A ${r} ${r} 0 0 ${s} ${m[0]} ${m[1]} A ${r} ${r} 0 ${f} ${a} ${g[0]} ${g[1]}`),e}),[]).join(" ")}const S=2*Math.PI,C=S/360;function E(e){let{boundingBox:t,cloudyBorderIntensity:n,cloudyBorderInset:r}=e;const o=r instanceof i.eB?i.eB.applyToRect(r,t):t,a=t.width/2,s=t.height/2;if(0===a||0===s)return"";const l=Math.min(a,s,c.St*n),u=o.width/2,d=o.height/2,p=o.left+u,h=o.top+d,f=Array.from({length:360},((e,t)=>{const n=C*t;return[p+u*Math.cos(n),h+d*Math.sin(n)]})),m=f.length;let g=1.75*l;const v=A(f),y=v/g;g+=y>0?v%g/y:0;let b=0;const w=f.reduce(((e,t,n)=>{const r=f[(n+1)%m],o=z(t,r)/g,i=(r[0]-t[0])/o,a=(r[1]-t[1])/o,s=i/g*b,l=a/g*b;let c=t[0]+s,u=t[1]+l;for(;(i<=0&&c>=r[0]||i>=0&&c<=r[0])&&(a<=0&&u>=r[1]||a>=0&&u<=r[1]);)e.push([c,u]),c+=i,u+=a;return b=Math.abs(r[0]-c)*(g/Math.abs(i)),e}),[]),x=w.length;return 0===x?"":w.reduce(((e,t,n)=>{const r=w[n>0?n-1:x-1],o=w[(n+1)%x];let i=D(t,r,l,!0),a=D(t,o,l,!1);if(isNaN(i)&&isNaN(a))return e.push(`${o[0]} ${o[1]}`),e;isNaN(i)&&(i=a+Math.PI),isNaN(a)&&(a=i+Math.PI),a-=.3;const s=a>i?i+(S-a)>Math.PI?"1":"0":i-a>Math.PI?"1":"0",c=[t[0]+Math.cos(i)*l,t[1]-Math.sin(i)*l],u=[t[0]+Math.cos(a)*l,t[1]-Math.sin(a)*l];return e.push(0===e.length?`M ${c[0]} ${c[1]} A ${l} ${l} 0 ${s} 1 ${u[0]} ${u[1]}`:`A ${l} ${l} 0 0 0 ${c[0]} ${c[1]} A ${l} ${l} 0 ${s} 1 ${u[0]} ${u[1]}`),e}),[]).join(" ")}const k=e=>e.reduce(((t,n,r)=>r<e.length-1?t+(n[0]*e[r+1][1]-n[1]*e[r+1][0]):t+(n[0]*e[0][1]-n[1]*e[0][0])),0)>0,z=(e,t)=>{const n=t[0]-e[0],r=t[1]-e[1];return e[0]===t[0]?Math.abs(r):e[1]===t[1]?Math.abs(n):Math.sqrt(n**2+r**2)},P=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.001;return Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n},D=(e,t,n,r)=>{const o=.5*Math.sqrt((e[0]-t[0])**2+(e[1]-t[1])**2),i=Math.acos(o/n),a=[t[0]-e[0],t[1]-e[1]];let s=Math.atan2(-a[1],a[0]);return s<0&&(s+=S),r?s-i:s+i},A=e=>e.reduce(((t,n,r)=>t+z(n,r<e.length-1?e[r+1]:e[0])),0)},24322:(e,t,n)=>{"use strict";function r(e,t,n,r){if(e.points?.size<3)return-1;const o=e.get("points"),i=r||o?.get(t);return o.findIndex((e=>{if(e.get("x")===i.get("x")&&e.get("y")===i.get("y"))return!1;return e.distance(i)<=n}))}function o(e,t,n){const r=e.get("points")?.get(n);return e.update("points",(e=>e.set(t,r)))}function i(e,t,n){return"STANDALONE"===e?.type&&"function"==typeof t.isMeasurement&&t.isMeasurement()&&!n}n.d(t,{KM:()=>r,dg:()=>o,mE:()=>i})},30006:(e,t,n)=>{"use strict";n.d(t,{Cq:()=>g,Gx:()=>w,s3:()=>y,vW:()=>v,wB:()=>m});var r=n(15359),o=n(79724),i=n(4715),a=n(29977),s=n(60379),l=n(16602),c=n(10983),u=n(4280),d=n(38852),p=n(98179),h=n(33427);const f=(0,o.Z)("StampAnnotationTemplate"),m=e=>{f(e instanceof i.GI||e instanceof i.sK,"`annotationTemplate` is not an instance of `PSPDFKit.Annotations.StampAnnotation` or ``PSPDFKit.Annotations.ImageAnnotation`")},g=function(e){let{includeDate:t,includeTime:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=arguments.length>2?arguments[2]:void 0;const i={};t&&(i.day="2-digit",i.month="2-digit",i.year="numeric"),n&&(i.hour="2-digit",i.minute="2-digit");let a=t||n?o.formatDate(r,i):null;return a&&p.rO&&(a=a.replace(/[^A-Za-z 0-9 .,?""!@#$%^&*()-_=+;:<>/\\|}{[\]`~]*/g,"")),a??null},v=e=>{let{annotation:t,intl:n}=e;const{formatMessage:r}=n,{stampType:o,title:s,description:l,fileName:c}=t;return t instanceof i.GI?"Custom"===o&&s?u.Z[(0,d.LE)(s)]?r(u.Z[(0,d.LE)(s)]):s:u.Z[(0,d.LE)((0,a.k1)(o))]?r(u.Z[(0,d.LE)((0,a.k1)(o))]):o:l||c||" "},y=l.Z.filter((e=>[s.Z.BLUE,s.Z.RED,s.Z.ORANGE,s.Z.LIGHT_YELLOW,s.Z.GREEN].includes(e.color)||"mauve"===e.localization.id)).map((e=>function(e){return(0,r.kG)(null!=e.color),{label:e.localization.description??"",color:Object.values(b(e.color))[0].color.toHex()??"#000000"}}(e)));function b(e){const t=e.lighter(c.zT);let n=e;const r=Math.max(n.r,n.g,n.b);for(let e=0;e<10&&t.contrastRatio(n)<4.5;e++)n=n.darker((255-r)/25.5);return{[`${n.toCSSValue()}`]:{color:n,backgroundColor:t}}}function w(e){let{annotation:t,annotationVisualPropertiesString:n,width:r,height:o,secondAnnotationVisualPropertiesString:i,secondAnnotationWidth:a,secondAnnotationHeight:s}=e;return n===i&&(t.noZoom||a>=r&&s>=o)&&!(0,h.eD)(t)}},19181:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(67366);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.$j)(((t,n)=>e?.(t.reuseState?i(t,t.reuseState):t,n)),null,null,t)}const i=(0,n(30845).Z)(((e,t)=>e.withMutations((n=>{n.merge(t),n.set("pages",e.pages.map((e=>{const n=e.pageKey,r=t.pages.find((e=>e.pageKey===n));return r&&r?e.set("annotationIds",r.annotationIds):e})))}))))},38852:(e,t,n)=>{"use strict";n.d(t,{F6:()=>c,HD:()=>d,LE:()=>a,Oe:()=>i,QE:()=>l,aF:()=>h,hj:()=>p,zW:()=>u});var r=n(37529),o=n.n(r);function i(e){return e.charAt(0)&&e.charAt(0).toUpperCase()+e.slice(1)}function a(e){return e.charAt(0).toLowerCase()+e.substr(1)}const s=e=>e[0]===o().INSERT;function l(e,t,n){const r=o()(e,t,n);let i="";const a=r.filter(s);return a.length>0&&(i=a[0][1]),{prev:e,next:t,change:i,diff:r,endCursorPosition:n+(r[1]?.[1]?.length||0)}}function c(e,t){if(t===e.change)return e.next;const{diff:n}=e,r=n.findIndex(s);return r>=0?n[r][1]=t:n.push([o().INSERT,t]),function(e){let t="";for(let n=0;n<e.length;n++){const[r,i]=e[n];switch(r){case o().DELETE:break;case o().INSERT:case o().EQUAL:t+=i}}return t}(n)}function u(e){return e.split("-").map(((e,t)=>t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e.toLowerCase())).join("")}function d(e){return"string"==typeof e}function p(e){return"number"==typeof e}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120;const n=e.trim();return n.length<t?n:n.slice(0,t)+"…"}},89004:(e,t,n)=>{"use strict";n.d(t,{BK:()=>u,KY:()=>c,Vq:()=>d,in:()=>l,kC:()=>s});var r=n(15359),o=n(58846),i=n(45249),a=n(57943);function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function l(e){return e.split(/[^a-zA-Z0-9]/g).reduce(((e,t)=>e+s(t)),"")}function c(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function u(e){return"#00000000"===e?void 0:e}function d(e){let{rect:t,callout:n,zoomLevel:s,annotation:l,text:c=l.text}=e;const{height:u,width:d}=t,p=l.boundingBox.scale(s);if(!n?.innerRectInset||!d||!u)return;const h=n.innerRectInset.setScale(s),f=p.left+h.left,m=p.left+h.left+d,g=p.top+h.top,v=p.top+h.top+u,y=(l.borderWidth||2)/2,b=(0,o.dY)([[f+y,g+y],[m-y,g+y],[m-y,v-y],[f+y,v-y]]),w=n.knee||n.start;(0,r.kG)(w,"CalloutEditComponent: point is undefined");const x=(0,o.Zt)(w.scale(s),b);(0,r.kG)(n.start);let _=i.UL.fromPoints(...[[f,g],[m,g],[m,v],[f,v]].map((e=>new i.E9({x:e[0],y:e[1]})))).expandToIncludePoints(...[n.start,n.knee].filter(Boolean).map((e=>e?.scale(s))));_=(0,a.Pr)(n.start.scale(s),_,4*(l.borderWidth||2)),n.knee&&(_=(0,a.Pr)(n.knee.scale(s),_,l.borderWidth||2));const S=x.scale(1/s);return{callout:n.set("end",S).set("innerRectInset",new i.eB({bottom:(_.top+_.height-v)/s,left:(f-_.left)/s,right:(_.left+_.width-m)/s,top:(g-_.top)/s})),text:c,boundingBox:_.scale(1/s)}}},20388:(e,t,n)=>{"use strict";n.d(t,{MF:()=>d,XA:()=>u,Zv:()=>p,gB:()=>g,hm:()=>v,hr:()=>m,z1:()=>h});var r=n(15359),o=n(21853),i=n(45249),a=n(69867),s=n(10983),l=n(87996),c=n(5705);function u(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!1===l.Options.TEXT_ANNOTATION_AUTOFIT_TEXT_ON_EXPORT)return e.set("isFitting",!1);try{if(t=(0,o.Aw)(),!t.window||!t.window.document)return e;t.window.document.head.appendChild(t.window.document.createElement("style")).textContent="p { margin: 0; }",n=new a.f(t.window.document,e.text.value,h(e.set("rotation",0),r,!1));const i=!(0,o.f)(n.wrapper);return e.set("isFitting",i)}finally{n&&n.remove(),t&&t.remove()}}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=(0,o.Aw)();if(!n.window||!n.window.document)return n?.remove(),e;n.window.document.head.appendChild(n.window.document.createElement("style")).textContent="p { margin: 0; }";const r=new a.f(n.window.document,e.text.value,h(e.set("rotation",0),t,!1)),i=!(0,o.f)(r.wrapper);for(e=e.set("isFitting",i);!e.isFitting&&e.fontSize>=2;){e=e.set("fontSize",e.fontSize-1),r._setStyles(r.wrapper,{...a.f.defaultWrapperStyles,...h(e.set("rotation",0),t,!1)});const n=!(0,o.f)(r.wrapper);e=e.set("isFitting",n)}return n?.remove(),e}function p(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3?arguments[3]:void 0;try{const i=t.width-e.boundingBox.left,s=t.height-e.boundingBox.top;n=new a.f(document,e.text.value,{...h(e,r,!1),width:"auto",height:"auto",maxWidth:`${Math.ceil(i*r)}px`,maxHeight:`${Math.ceil(s*r)}px`,padding:"0px",margin:"0px",overflow:"visible"},void 0,o);const{width:l,height:c}=n.wrapper.getBoundingClientRect(),u=Math.max(l,n.wrapper.clientWidth,n.wrapper.scrollWidth),d=Math.max(c,n.wrapper.clientHeight,n.wrapper.scrollHeight);return e.set("boundingBox",e.boundingBox.set("width",Math.ceil(u/r)).set("height",Math.ceil(d/r)))}finally{n&&n.remove()}}function h(e,t,n){const r={width:Math.ceil(e.boundingBox.width*t),height:Math.ceil(e.boundingBox.height*t),color:e.fontColor?e.fontColor.toCSSValue():"transparent",backgroundColor:e.backgroundColor&&!n?e.backgroundColor.toCSSValue():"transparent",fontSize:e.fontSize*t+"px",fontFamily:`${v(e.font)}, sans-serif`,textAlign:e.horizontalAlign,...n?null:{opacity:e.opacity},fontWeight:e.isBold?"bold":"normal",fontStyle:e.isItalic?"italic":"normal",whiteSpace:"pre-wrap",wordBreak:"break-word",overflow:"hidden",lineHeight:"number"==typeof e.lineHeightFactor?e.lineHeightFactor*t*e.fontSize+"px":"normal",flexDirection:"column",justifyContent:f(e.verticalAlign),display:"flex"};return(0,c.kv)(e)&&!n&&(r.transformOrigin="50% 50%",r.transform=`rotate(${String(-e.rotation)}deg)`),r}function f(e){switch(e){case"top":return"flex-start";case"center":return"center";case"bottom":return"flex-end";default:return(0,r.Rz)(e)}}function m(e){return"string"==typeof e?e.split("\r\n").join("\n").split("\r").join("\n"):e}function g(e,t){let n;switch(t){case 0:n=new i.UL({left:e.x,top:e.y,width:s.g3,height:s.rm});break;case 90:n=new i.UL({left:e.x,top:e.y-s.rm,width:s.g3,height:s.rm});break;case 180:n=new i.UL({left:e.x-s.g3,top:e.y-s.rm,width:s.g3,height:s.rm});break;case 270:n=new i.UL({left:e.x-s.g3,top:e.y,width:s.g3,height:s.rm});break;default:throw(0,r.Rz)(t)}return n}function v(e){return/^[-_a-zA-Z0-9\\xA0-\\u{10FFFF}]*$/.test(e)?e:`"${e}"`}},97238:(e,t,n)=>{"use strict";n.d(t,{Bx:()=>c,PK:()=>l,rf:()=>u});var r=n(35369),o=n(15359),i=n(45249),a=n(11192),s=n(33427);function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return u(e).map((r=>{let{pageIndex:o,rects:a}=r;return new t({...(0,s.lx)(e),pageIndex:o,boundingBox:i.UL.union(a),rects:a,isCommentThreadRoot:n})}))}function c(e,t,n){return u(e).map((r=>{let{pageIndex:o,rects:a}=r;const l=t.get(o);return null==l?new n({...(0,s.lx)(e),pageIndex:o,boundingBox:i.UL.union(a),rects:a}):l.withMutations((e=>e.set("boundingBox",i.UL.union(a)).set("rects",a)))}))}function u(e){(0,o.kG)(e.currentTextSelection,"Cannot create markup annotation without text selection.");const{textRange:t,startTextLineId:n,endTextLineId:i,startPageIndex:s,endPageIndex:l}=e.currentTextSelection;(0,o.kG)(t);const c=(0,a.mB)(e,t);if(!c)return(0,r.aV)();const{startRect:u,endRect:d}=c;return(0,a.ZJ)(e,t).map(((t,r)=>{const a=e.pages.get(r);(0,o.kG)(a);const c=t.map((e=>e.id==n&&r==s?u:e.id==i&&r==l?d:e.boundingBox));return{pageIndex:a.pageIndex,rects:c}})).valueSeq().toList()}},72322:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=null,o=null;return function(){const i=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];if(r)n&&(o=s);else{e.apply(i,s);const a=()=>{r=null,o&&n&&(e.apply(i,o),o=null,r=setTimeout(a,t))};r=setTimeout(a,t)}}}n.d(t,{Z:()=>r})},5283:(e,t,n)=>{"use strict";n.d(t,{CN:()=>v,DQ:()=>p,FO:()=>w,I4:()=>b,KT:()=>_,Kt:()=>y,Li:()=>x,Ut:()=>h,hJ:()=>f,q1:()=>u,se:()=>d});var r=n(35369),o=n(15359),i=n(12705),a=n(35727),s=n(48625),l=n(44550),c=n(28233);function u(e,t,n){return e.filter((e=>{const r=e.get("type");if(t[r]&&t[r].forceHide)return!1;let o=e.get("mediaQueries");if(!o){if(g(e))return!0;const n=t[r].mediaQueries;if(!n)return!0;o=n}const i=n?.matchMedia(o.join(", "));return i?.matches}))}function d(e,t){return e.map((e=>{const n=e.get("mediaQueries");if(!n){if(g(e))return;const n=(t[e.get("type")]||{}).mediaQueries;return n?(0,r.aV)(n):void 0}return n})).filter(Boolean).flatten().filter((e=>"all"!==e)).toSet().toArray()}function p(e,t){return e=e.map((e=>{const n=e.get("type"),o=t[n]||{},{id:i,className:a,icon:s,title:l,selected:c,disabled:u,responsiveGroup:d,onPress:p,dropdownGroup:h,preset:f,node:m}=e.toJS(),g="custom"===n,v={id:i||n,type:o.type||n,title:l||o.title,icon:s||o.icon,className:[o.className,a].filter(Boolean).join(" "),selected:g?c:o.selected,disabled:!0===u?u:o.disabled,onPress:g?p:o.onPress,onKeyPress:g?void 0:o.onKeyPress,responsiveGroup:d||o.responsiveGroup,dropdownGroup:void 0!==h?h:o.dropdownGroup,preset:f||o.preset};return m&&(v.node=m),(0,r.D5)(v)}))}function h(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;return e.filter((r=>{const o=r.get("responsiveGroup");return o&&void 0!==m(e,o)?!!t&&o===n:!t}))}function f(e){return e.map((t=>{const n=t.get("type"),r=t.get("id");if("responsive-group"==n||"annotate"==n){const n=t.get("selected"),o=!!e.find((e=>e.get("responsiveGroup")==r&&1==e.get("selected")));return t.set("selected",n||o)}return t}))}function m(e,t){return e.find((e=>e.get("id")&&e.get("id")===t))}function g(e){const t=e.get("type");return"custom"===t||"responsive-group"===t}function v(e,t){return t===e}function y(e,t,n){return n===e&&!t}function b(e){let{toolbarItems:t,features:n,backend:r,backendPermissions:s,documentPermissions:u,readOnlyEnabled:d,showComments:p}=e;return t.filter((e=>{let t=!0;return"document-editor"===e.get("type")||"document-crop"===e.get("type")?(t=(0,i.Xr)({features:n,backendPermissions:s,documentPermissions:u,readOnlyEnabled:d}),!t&&n.size>0&&(n.includes(l.q.DOCUMENT_EDITING)?(0,o.ZK)(`The '${e.get("type")}' toolbar item type is not allowed due to document or backend permissions.`):(0,o.ZK)(`The '${e.get("type")}' toolbar item type is not allowed without the Document Editing feature in the license.`)),t):"content-editor"===e.get("type")?(t=(0,i.qs)({features:n,backendPermissions:s,documentPermissions:u,readOnlyEnabled:d}),!t&&n.size>0&&(n.includes(l.q.CONTENT_EDITING)||(0,o.ZK)(`The '${e.get("type")}' toolbar item type is not allowed without the Content Editor feature in the license.`),!s.readOnly&&u.modification&&d!==c.J.VIA_VIEW_STATE&&d!==c.J.VIA_BACKEND_PERMISSIONS||(0,o.ZK)(`The '${e.get("type")}' toolbar item type is not allowed due to document or backend permissions.`)),t):"comment"===e.get("type")?(t=(0,i.LC)({features:n,backend:r})&&(0,a.oK)({showComments:p,features:n,backend:r}),!t&&n.size>0&&(n.includes(l.q.COMMENTS)||(0,o.ZK)(`The '${e.get("type")}' toolbar item type is not allowed without the Comments feature in the license.`),p||(0,o.ZK)(`The '${e.get("type")}' toolbar item type is not allowed because comments are disabled.`),"SERVER"!==r?.type||r?.isUsingInstantProvider()||(0,o.ZK)(`The '${e.get("type")}' toolbar item type is not allowed because comments are not supported on Server deployments without Instant.`)),t):["measure","distance","perimeter","rectangle-area","ellipse-area","polygon-area"].includes(e.get("type"))?(t=n.includes(l.q.MEASUREMENT_TOOLS),!t&&n.size>0&&(n.includes(l.q.MEASUREMENT_TOOLS)||(0,o.ZK)(`The '${e.get("type")}' toolbar item type is not allowed without the Measurement Tools feature in the license.`)),t):"document-assistant"!==e.get("type")||(t=n.includes(l.q.DOCUMENT_ASSISTANT),!t&&n.size>0&&(n.includes(l.q.DOCUMENT_ASSISTANT)||(0,o.ZK)(`The '${e.get("type")}' toolbar item type is not allowed without the Document Assistant feature in the license.`)),t)}))}const w={[s.A.INK]:["ink","highlighter"],[s.A.SHAPE_LINE]:["line","arrow"],[s.A.INK_ERASER]:"ink-eraser",[s.A.TEXT_HIGHLIGHTER]:"text-highlighter",[s.A.SHAPE_RECTANGLE]:["rectangle","cloudy-rectangle","dashed-rectangle"],[s.A.SHAPE_ELLIPSE]:["ellipse","cloudy-ellipse","dashed-ellipse"],[s.A.SHAPE_POLYGON]:["polygon","cloudy-polygon","dashed-polygon"],[s.A.SHAPE_POLYLINE]:"polyline",[s.A.NOTE]:"note",[s.A.TEXT]:"text",[s.A.CALLOUT]:"callout",[s.A.LINK]:"link",[s.A.MEASUREMENT]:"measurement"};function x(e){const t=Object.entries(w).find((t=>{let[,n]=t;return Array.isArray(n)?n.includes(e):n===e}));return t&&t[0]||null}function _(e){return e.find((e=>"delete"===e.type))?.icon}},87849:(e,t,n)=>{"use strict";n.d(t,{Yw:()=>i,bl:()=>l,sX:()=>a});var r=n(98179),o=n(87856);function i(){const e="webkit"===r.SR;let t;e&&(t=window.PointerEvent);const o=window.Hammer;e&&delete window.PointerEvent;const i=n(34988);return e&&(window.PointerEvent=t),window.Hammer=o,i}function a(e){let t;if(e.touches)t=e.touches;else{if(!e.changedTouches)return!1;t=e.changedTouches}return t.length<=1}const s="webkit"===r.SR||"blink"===r.SR;function l(e){if(!s)return()=>{};const t=e=>{a(e)||e.preventDefault()},n=["touchstart","touchmove"],r=o.Gn?{passive:!1}:void 0;return n.forEach((n=>{e.addEventListener(n,t,r),document.addEventListener(n,t,r)})),()=>{n.forEach((n=>{e.removeEventListener(n,t,r),document.removeEventListener(n,t,r)}))}}},54662:(e,t,n)=>{"use strict";n.d(t,{c:()=>l,n:()=>s});var r=n(4715),o=n(44077),i=n(5705),a=n(33427);function s(e,t){const n=e.set("boundingBox",e.boundingBox.translate(t));return n instanceof r.Zc?n.update("lines",(e=>e.map((e=>e.map((e=>e.translate(t))))))):n instanceof r.o9?n.update("startPoint",(e=>e.translate(t))).update("endPoint",(e=>e.translate(t))):n instanceof r.Hi||n instanceof r.om?n.update("points",(e=>e.map((e=>e.translate(t))))):(0,a.Vc)(e)?n.update("callout",(e=>(e.knee&&(e=e.update("knee",(e=>e.translate(t)))),e.update("start",(e=>e.translate(t))).update("end",(e=>e.translate(t)))))):n}function l(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;const a=c(e,t,n,r,o,i);return s(e,a)}function c(e,t,n,r,s){let l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;const c=(0,i.az)(e),u=(0,a.SY)(c,l),d=new o.UL({x:0,y:0,width:n.width,height:n.height}).isRectInside(u);return s&&d?(u.left+t.x<0&&(t=t.set("x",-u.left)),u.left+u.width+t.x>n.width&&(t=t.set("x",n.width-u.width-u.left)),u.top+t.y<0&&(t=t.set("y",-u.top)),u.top+u.height+t.y>n.height&&(t=t.set("y",n.height-u.height-u.top))):(r.x+u.left+t.x<0&&(t=t.set("x",-r.x-u.left)),r.x+u.left+t.x>n.width&&(t=t.set("x",n.width-(r.x+u.left))),r.y+u.top+t.y<0&&(t=t.set("y",-r.y-u.top)),r.y+u.top+t.y>n.height&&(t=t.set("y",n.height-(r.y+u.top)))),t}},38478:(e,t,n)=>{"use strict";n.d(t,{s:()=>l,w:()=>c});var r=n(45249),o=n(81777),i=n(90093),a=n(21683),s=n(28233);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"undefined"!=typeof location?location.hash:null;if(!t)return e;const n=t.replace("#","").split("&").map((e=>{const t=e.split("=");if(2===t.length)return[t[0],t[1]]})).filter(Boolean);return n.forEach((t=>{let[n,r]=t;switch(n){case"page":{const t=parseInt(r,10);if("number"!=typeof t||Number.isNaN(t)||t<=0)break;e=e.set("currentPageIndex",t-1);break}}})),e}function c(e,t){return new i.Z({currentPageIndex:e.viewportState.currentPageIndex,zoom:e.viewportState.zoomMode===o.c.CUSTOM?e.viewportState.zoomLevel:e.viewportState.zoomMode,pagesRotation:e.viewportState.pagesRotation,layoutMode:e.viewportState.layoutMode,scrollMode:e.viewportState.scrollMode,showToolbar:e.showToolbar,enableAnnotationToolbar:e.enableAnnotationToolbar,disablePointSnapping:e.viewportState.disablePointSnapping,allowPrinting:e.printingEnabled,allowExport:e.exportEnabled,interactionMode:e.interactionMode,readOnly:e.readOnlyEnabled!==s.J.NO,showAnnotations:e.showAnnotations,showComments:e.showComments,showAnnotationNotes:e.showAnnotationNotes,sidebarMode:e.sidebarMode,sidebarOptions:e.sidebarOptions,sidebarPlacement:e.sidebarPlacement,spreadSpacing:e.viewportState.spreadSpacing,pageSpacing:e.viewportState.pageSpacing,keepFirstSpreadAsSinglePage:e.viewportState.keepFirstSpreadAsSinglePage,viewportPadding:new r.gx({horizontal:e.viewportState.viewportPadding.x,vertical:e.viewportState.viewportPadding.y}),instance:t||e.instance,formDesignMode:e.formDesignMode,showSignatureValidationStatus:e.showSignatureValidationStatus,previewRedactionMode:e.previewRedactionMode,keepSelectedTool:e.keepSelectedTool,resolvedLayoutMode:(0,a.nw)(e.viewportState),sidebarWidth:e.sidebarWidth,enableAlwaysScrollToZoom:e.viewportState.enableAlwaysScrollToZoom,forceRenderWidgetsInAnnotationsOrder:e.viewportState.forceRenderWidgetsInAnnotationsOrder,prerenderedPageSpreads:e.viewportState.prerenderedPageSpreads,showDocumentAssistant:e.documentAssistant.show})}},93113:(e,t,n)=>{"use strict";n.d(t,{DB:()=>y,EY:()=>k,Ek:()=>v,G4:()=>P,JN:()=>C,YA:()=>_,YS:()=>f,YV:()=>M,_4:()=>w,_P:()=>z,_U:()=>S,a$:()=>x,cr:()=>m,fI:()=>D,oI:()=>T,pA:()=>A,vY:()=>E,vs:()=>b,zi:()=>R,zo:()=>I});var r=n(30845),o=n(15359),i=n(21683),a=n(84293),s=n(23248),l=n(14286),c=n(44077),u=n(2464),d=n(81777),p=n(10983),h=n(60679);function f(e,t,n){if((e.scrollMode===u.G.PER_SPREAD||e.scrollMode===u.G.DISABLED)&&t!==e.currentPageIndex)return!1;const r=m(e,t),o=n.apply(r);return e.viewportRect.isRectOverlapping(o)}function m(e,t){if(e._pageToClientTransformation?.[t])return e._pageToClientTransformation[t];const n=(0,i.dF)(e,t),r=function(e,t){return e.translate(t.viewportRect.getLocation()).translate(t.scrollPosition.scale(-t.zoomLevel))}(w(b(y(c.sl.IDENTITY,e,t,n),e,n),e),e);return e._pageToClientTransformation||(e._pageToClientTransformation={}),e._pageToClientTransformation[t]=r,r}const g=(0,r.Z)(((e,t)=>m(e,t).inverse()));function v(e,t){return g(e,t)}function y(e,t,n,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const s=t.pageSizes.get(n);switch((0,o.kG)(s),0!==t.pagesRotation&&(e=e.rotate(-t.pagesRotation)),t.pagesRotation){case 0:break;case 90:e=e.translateX(s.height*a);break;case 180:e=e.translateX(s.width*a).translateY(s.height*a);break;case 270:e=e.translateY(s.width*a);break;default:throw new Error(`Unsupported pagesRotation: ${t.pagesRotation}. Only supporting: 0, 90, 180, 270.`)}switch((0,i.nw)(t)){case l.X.SINGLE:return(0,o.kG)(n===r,"In LayoutMode.SINGLE, pageIndex must equal spreadIndex."),e;case l.X.DOUBLE:{if(t.keepFirstSpreadAsSinglePage&&0==n&&0==r)return e;const o=t.keepFirstSpreadAsSinglePage?1:0,s=(0,i.hK)(t,n),l=(0,i.Xk)(t,r);return e.translateX((n+o)%2?parseInt((l.width-s.width)*a,10):0).translateY(parseInt((l.height-s.height)*a/2,10))}default:throw new Error("Unsupported layoutMode")}}function b(e,t,n){if(t.scrollMode===u.G.CONTINUOUS){const r=(0,i.Xk)(t,n).width,o=(0,i.e8)(t,n);return e.translateX(((0,i.Ad)(t)-r)/2).translateY(o)}return e}function w(e,t){return e.scale(t.zoomLevel).translate(P(t).getLocation())}function x(e,t,n,r){const o=e.set("viewportRect",new c.UL({width:t.width-r,height:t.height,top:t.top,left:t.left}));return I(D(e,o,n))}function _(e,t){const n=e.set("layoutMode",t);return I(D(e,n))}function S(e,t){const n=e.set("scrollMode",t);return I(D(e,n))}function C(e,t){return I(e.set("spreadSpacing",t))}function E(e,t){return I(e.set("pageSpacing",t))}function k(e,t){return I(e.set("keepFirstSpreadAsSinglePage",t))}function z(e,t){return I(e.set("viewportPadding",t))}function P(e){let t;if(e.scrollMode===u.G.CONTINUOUS)t=new c.$u({width:(0,i.Ad)(e),height:(0,i.Of)(e)});else{const n=(0,i.dF)(e,e.currentPageIndex);t=(0,i.Xk)(e,n)}let n=new c.UL({width:t.width,height:t.height}).scale(e.zoomLevel).translate(e.viewportPadding);const r=e.commentMode===h._.SIDEBAR?p.h8:0;e.viewportRect.width-r-2*e.viewportPadding.x>n.width&&(n=n.translateX((e.viewportRect.width-r-2*e.viewportPadding.x-n.width)/2));return e.viewportRect.height-2*e.viewportPadding.y>n.height&&(n=n.translateY((e.viewportRect.height-2*e.viewportPadding.y-n.height)/2)),n}function D(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=(0,i.nw)(e)!==(0,i.nw)(t),o=e.scrollMode!==t.scrollMode;if(!(n||r||o))return t;switch(t.scrollMode){case u.G.PER_SPREAD:case u.G.DISABLED:return t.set("zoomMode",d.c.FIT_TO_VIEWPORT);case u.G.CONTINUOUS:return t=I(t),(0,s.eb)(t,t.currentPageIndex,!0);default:throw new Error("Unsupported scrollMode")}}function A(e,t){return e.zoomLevel!==t.zoomLevel||e.zoomMode!==t.zoomMode||e.layoutMode!==t.layoutMode||e.scrollMode!==t.scrollMode||e.scrollPosition!==t.scrollPosition||e.currentPageIndex!==t.currentPageIndex||e.viewportRect!==t.viewportRect||e.pageSizes!==t.pageSizes||e.pagesRotation!==t.pagesRotation||e.viewportPadding!==t.viewportPadding||e.spreadSpacing!==t.spreadSpacing||e.pageSpacing!==t.pageSpacing||e.keepFirstSpreadAsSinglePage!==t.keepFirstSpreadAsSinglePage}function T(e){return[e.zoomLevel,e.zoomMode,e.layoutMode,e.scrollMode,e.scrollPosition,e.currentPageIndex,e.viewportRect,e.pageSizes,e.pagesRotation,e.viewportPadding,e.spreadSpacing,e.pageSpacing,e.keepFirstSpreadAsSinglePage]}function I(e){return e.zoomMode!==d.c.CUSTOM?e.set("zoomLevel",(0,a.X9)(e,e.zoomMode)):e}function M(e){return function(t,n){return t.apply(R(e(),n))}}function R(e,t){let{viewportState:n,scrollElement:r}=e;if(r){const e=new c.E9({x:r.scrollLeft/n.zoomLevel,y:r.scrollTop/n.zoomLevel});n.scrollPosition.equals(e)||(n=n.set("scrollPosition",e))}return v(n,t)}},82197:(e,t,n)=>{"use strict";n.d(t,{Lv:()=>l,U1:()=>a,kI:()=>c,n5:()=>s});var r=n(15359),o=n(93113),i=n(45249);function a(e,t){(0,r.kG)(t%90==0,"Only multiples of 90° allowed for rotation."),t=s(t);const n=e.update("pagesRotation",(e=>(e+t)%360));return(0,o.zo)((0,o.fI)(e,n,!0))}function s(e){return(0,r.kG)(e%90==0,"Only multiples of 90° allowed for rotation."),(360+e%360)%360}function l(e){return(360+Math.round(e)%360)%360}function c(e,t,n){switch(n){case 90:return new i.UL({left:e.top,top:Math.max(0,Math.round(t.height-e.right)),height:e.width,width:e.height});case 180:return e.merge({left:Math.max(0,Math.round(t.width-e.right)),top:Math.max(0,Math.round(t.height-e.bottom))});case 270:return new i.UL({left:Math.max(0,Math.round(t.width-e.bottom)),top:e.left,height:e.width,width:e.height});default:return e}}},23248:(e,t,n)=>{"use strict";n.d(t,{DJ:()=>u,TW:()=>f,eb:()=>d,hu:()=>m,k3:()=>c,kN:()=>p,vP:()=>h});var r=n(21683),o=n(93113),i=n(84293),a=n(44077),s=n(2464),l=n(81777);function c(e,t,n){n||(n=new a.E9({x:.5*e.viewportRect.width,y:.1*e.viewportRect.height})),n=n.translate(e.viewportPadding.scale(-1));const r=t/e.zoomLevel-1;let o=0;const s=(0,i.kh)(e),l=t>s;if(l){o=t/Math.max(e.zoomLevel,s)-1}return new a.E9({x:l?e.scrollPosition.x+n.x*o/t:0,y:e.scrollPosition.y+n.y*r/t})}function u(e,t){const n=f(e);return new a.E9({x:Math.max(0,Math.min(t.x,n.x)),y:Math.max(0,Math.min(t.y,n.y))})}function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n&&e.currentPageIndex==t)return e;if(e.scrollMode==s.G.PER_SPREAD||e.scrollMode===s.G.DISABLED)return(0,i.cq)(e.set("currentPageIndex",t),l.c.FIT_TO_VIEWPORT).set("scrollPosition",new a.E9).set("currentPageIndex",t);{const n=(0,r.dF)(e,t),o=(0,r.e8)(e,n),i=f(e).y,a=Math.min(i,o);return e.set("currentPageIndex",t).setIn(["scrollPosition","y"],a)}}function p(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r&&(0,o.YS)(e,t,n))return e;const i=(0,o.cr)(e,t),a=n.apply(i),s=e.viewportRect.getCenter(),l=a.getCenter().translate(s.scale(-1)),c=e.scrollPosition.translate(l.scale(1/e.zoomLevel));return e.merge({scrollPosition:u(e,c),currentPageIndex:t})}function h(e,t,n){const{viewportRect:r,viewportPadding:o}=e,a=(r.width-2*o.x)/n.width,s=(r.height-2*o.y)/n.height,l=Math.min(a,s);return p((0,i.cq)(e,l),t,n,!0)}function f(e){const t=(0,o.G4)(e),n=t.left/e.zoomLevel+t.width/e.zoomLevel+e.viewportPadding.x/e.zoomLevel-e.viewportRect.width/e.zoomLevel,r=t.top/e.zoomLevel+t.height/e.zoomLevel+e.viewportPadding.y/e.zoomLevel-e.viewportRect.height/e.zoomLevel;return new a.E9({x:Math.max(0,n),y:Math.max(0,r)})}function m(e,t){return(0,r.Y2)(e.set("scrollPosition",t))}},21683:(e,t,n)=>{"use strict";n.d(t,{Ad:()=>f,Of:()=>m,P1:()=>g,Xk:()=>w,Y2:()=>_,dF:()=>v,e8:()=>h,hK:()=>b,kd:()=>y,nw:()=>d,s:()=>x,wU:()=>S,wX:()=>C});var r=n(35369),o=n(67294),i=n(15359),a=n(14286),s=n(93113),l=n(44077),c=n(2464),u=n(10983);function d(e){if(e.layoutMode===a.X.AUTO){return e.viewportRect.width>e.viewportRect.height&&e.viewportRect.width>u.GI?a.X.DOUBLE:a.X.SINGLE}return e.layoutMode}function p(e){const t=y(e);let n=(0,r.aV)();for(let e=0;e<t;e++)n=n.push(e);return n}function h(e,t){return p(e).map((t=>w(e,t))).takeUntil(((e,n)=>n>=t)).reduce(((t,n)=>t+n.height+e.spreadSpacing),0)}function f(e){const t=p(e).map((t=>w(e,t))).maxBy((e=>e.width));return t?t.width:0}function m(e){const t=p(e).map((t=>w(e,t))),n=(t.size-1)*e.spreadSpacing;return t.map((e=>e.height)).reduce(((e,t)=>e+t),0)+n}function g(e,t){switch(d(e)){case a.X.SINGLE:return(0,i.kG)(t<y(e),"`spreadIndex` is out of bounds."),[t];case a.X.DOUBLE:{const n=e.pageSizes.count();if(e.keepFirstSpreadAsSinglePage&&0===t)return[0];const r=e.keepFirstSpreadAsSinglePage?1:0,o=[],i=2*t-r;i<n&&o.push(i);const a=2*t+1-r;return a<n&&o.push(a),o}default:throw new Error("Unsupported layoutMode")}}function v(e,t){if(t>=e.pageSizes.size)return 0;switch(d(e)){case a.X.SINGLE:return t;case a.X.DOUBLE:{const n=e.keepFirstSpreadAsSinglePage?1:0;return Math.floor((t+n)/2)}default:throw new Error("Unsupported layoutMode")}}function y(e){switch(d(e)){case a.X.SINGLE:return e.pageSizes.size;case a.X.DOUBLE:{if(e.pageSizes.size<=0)return 0;const t=e.keepFirstSpreadAsSinglePage?1:0;return Math.ceil((e.pageSizes.size+t)/2)}default:throw new Error("Unsupported layoutMode")}}function b(e,t){const n=e.pageSizes.get(t);return(0,i.kG)(n,"No such page size"),90===e.pagesRotation||270===e.pagesRotation?new l.$u({width:n.height,height:n.width}):n}function w(e,t){const n=g(e,t);if(1===n.length)return b(e,n[0]);{let t=0,r=0;for(const o of n){const{width:n,height:i}=b(e,o);t+=n+(0!==o?e.pageSpacing:0),i>r&&(r=i)}return new l.$u({width:t,height:r})}}function x(e){let{width:t}=e;return t<=u.y$?"width-xs":t<=u.Fg?"width-sm":t<=u.GI?"width-md":t<=u.Qq?"width-lg":"width-xl"}function _(e){let t=e.currentPageIndex,n=v(e,e.currentPageIndex);if(e.scrollMode===c.G.CONTINUOUS){const t=[0];let r=0;for(let n=0;n<y(e)-1;n++){const o=r+(w(e,n).height+(0!==n?e.spreadSpacing:0))*e.zoomLevel;r=o,t.push(o)}const o=e.scrollPosition.y*e.zoomLevel-e.viewportPadding.y+e.viewportRect.height/2;n=t.reduce(((e,t,n)=>t<o?n:e),0)}const r=g(e,n);if(r.length>1){const o=e.scrollPosition.x*e.zoomLevel-e.viewportPadding.x+e.viewportRect.width/2,i=r[1],a=(0,s._4)((0,s.vs)((0,s.DB)(l.sl.IDENTITY,e,i,n),e,n),e);t=(new l.E9).apply(a).x<o?i:r[0]}else t=r[0];return e.set("currentPageIndex",t)}function S(e,t){const[n,i]=o.useState(null),a=o.useRef((0,r.l4)()),l=function(){const e=o.useRef({timeoutId:null,clear:function(){this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=null},set:function(e,t){this.clear(),this.timeoutId=setTimeout(e,t)}});return o.useEffect((()=>{const t=e.current;return()=>t.clear()})),e.current}(),c=o.useCallback((e=>{a.current.contains(t)&&(e?(l.clear(),l.set((()=>{i(t)}),500)):i(t))}),[t,l,i]);o.useEffect((()=>{l.clear();const n=e.prerenderedPageSpreads??e.pageSizes.size;a.current=a.current.filter((e=>C(e,t,n))),c(!1)}),[...(0,s.oI)(e),t,l,c,e.prerenderedPageSpreads,e.pageSizes.size]);return[n,o.useCallback((e=>{a.current=a.current.add(e),c(!0)}),[c])]}function C(e,t,n){return e>=t-n&&e<=t+n}},24987:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var r=n(65369);function o(e,t,n){const o=e.viewportState.viewportRect.set("height",t.height);return e.sidebarMode?o.merge({width:e.containerRect.width-n,left:e.containerRect.left+(e.sidebarPlacement===r.d.START?n:0)}):o.merge({width:e.containerRect.width,left:e.containerRect.left})}},84293:(e,t,n)=>{"use strict";n.d(t,{Mq:()=>f,Sm:()=>p,X9:()=>g,Yo:()=>d,cq:()=>v,hT:()=>y,kh:()=>h,vw:()=>m});var r=n(21683),o=n(10983),i=n(23248),a=n(2464),s=n(81777),l=n(82716);let c=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;function d(e){const t=Math.min(h(e),f(e),e.minDefaultZoomLevel,c);return c>t&&(c=t),t}function p(e){const t=Math.max(h(e),f(e),e.maxDefaultZoomLevel,u);return u<t&&(u=t),t}function h(e){if(0===e.pageSizes.size||0===e.viewportRect.width||0===e.viewportRect.height)return 1;let t;switch(e.scrollMode){case a.G.CONTINUOUS:t=(0,r.Ad)(e);break;case a.G.PER_SPREAD:case a.G.DISABLED:{const n=(0,r.dF)(e,e.currentPageIndex);t=(0,r.Xk)(e,n).width;break}default:throw new Error("Unsupported scrollMode")}return(e.viewportRect.width-2*e.viewportPadding.x)/t}function f(e){if(0===e.pageSizes.size||0===e.viewportRect.width||0===e.viewportRect.height)return 1;const t=(0,r.dF)(e,e.currentPageIndex),n=(0,r.Xk)(e,t).height;return 0===n?1:(e.viewportRect.height-2*e.viewportPadding.y)/n}function m(e){const t=h(e),n=f(e);return Math.min(t,n)}function g(e,t){switch(t){case s.c.AUTO:return function(e){const t=f(e),n=h(e),i=(0,r.hK)(e,0),a=i&&i.width>i.height?Math.min(t,n):n;return Math.min(a,o.zh)}(e);case s.c.FIT_TO_VIEWPORT:return m(e);case s.c.FIT_TO_WIDTH:return h(e);default:return(0,l.k)("number"==typeof t,"Unknown zoom mode"),t}}function v(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=g(e,t);const a="number"==typeof t?s.c.CUSTOM:t,l=d(e),c=p(e);if(o>=c)if(n.unbounded){const e=b((o-c)/25);o=c*(1+.5*e)}else o=c;else if(o<=l)if(n.unbounded){const e=b(4*(o-l));o=l*(1+.25*e)}else o=l;let u=(0,i.k3)(e,o,n.zoomCenter);return u=(0,i.DJ)(e.set("zoomLevel",o),u),(0,r.Y2)(e.withMutations((e=>e.set("zoomLevel",o).set("scrollPosition",u).set("zoomMode",a))))}function y(e){const{zoomLevel:t}=e,n=d(e);return t>p(e)||t<n}function b(e){const t=Math.exp(+e),n=Math.exp(-e);return t==1/0?1:n==1/0?-1:(t-n)/(t+n)}},60859:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>g,DI:()=>d,MX:()=>f,n:()=>u,w5:()=>p});var r=n(35369),o=n(15359),i=n(69867),a=n(21853),s=n(561),l=n.n(s),c=n(43069);const u=2,d=2,p=[1,2,3,4,6,8,9,10,12,14,16,18,20,25,30,35,40,45,50,55,60,70,80,90,100,110,120,130,144],h=p.slice(0,Math.floor(p.length/4));function f(e,t,n,a,s,c,f){if(s&&e&&10===e.charCodeAt(e.length-1)&&(e+="\n"),"auto"!==a)return a||Math.max(4,Math.min(.7*n,12));let g,v;if(f){const e=window.getComputedStyle(f);g=e.getPropertyValue("font-family"),s||(v=e.getPropertyValue("line-height"))}if(s){const a=n-2*u,s=(0,r.aV)([e]),p=m(h,(e=>{const n=function(e){let{valueString:t,fontSize:n,fontFamily:r="inherit",availableWidth:a,element:s}=e;const c=new i.f(document,t,{fontSize:`${n}px`,width:`${a}px`,wordBreak:"break-word",whiteSpace:"pre-wrap",fontFamily:r,lineHeight:`${n}px`,margin:"0",padding:"0",border:"none",textAlign:s?.style.textAlign||"initial"},l().widget,s&&s.parentNode),u=c.measure().first();(0,o.kG)(u);const d=u.height;return c.remove(),d}({valueString:s,fontSize:e,fontFamily:g,availableWidth:t-2*d,element:f});let r=u;const p=a-e;return p-2*u<0&&(r=p>0?p/2:0),n+2*r+2*c>a?0:1}));return p}{const a=(0,r.aV)([e]),s=m(p,(e=>{const r=function(e){let{valueString:t,fontSize:n,fontFamily:r="inherit",lineHeight:a="inherit",element:s}=e;const c=new i.f(document,t,{fontSize:`${n}px`,fontFamily:r,lineHeight:a},l().widget,s&&s.parentNode),u=c.measure().first();(0,o.kG)(u);const d=u.width;return c.remove(),d}({valueString:a,fontSize:e,fontFamily:g,lineHeight:v,element:f});return r>t||e>n?0:1}));return s}}function m(e,t){let n=0,r=e.length-1,o=0,i=e[0];for(;n<=r;)o=Math.floor((n+r)/2),i=e[o],t(i)?n=o+1:r=o-1;return t(i)||(i=e[Math.max(0,o-1)]),i}function g(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;try{return n=(0,a.Aw)(),r=new i.f(n.window.document,t,(0,c.i2)(e,o,!1)),!(0,a.f)(r.wrapper)}finally{r&&r.remove(),n&&n.remove()}}},94184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},83882:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(67294);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}const i=["is","onClick","disabled","tabIndex","onKeyPress"],a=r.forwardRef(((e,t)=>{const{is:n="span",onClick:a,disabled:s,tabIndex:l=0,onKeyPress:c}=e,u=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,i);return r.createElement(n,o({tabIndex:s?void 0:l,role:"button",onKeyPress:s?void 0:e=>{switch(e.key){case" ":case"Spacebar":e.preventDefault(),a&&c||c?c(e):a&&a(e);break;case"Enter":if(c&&(c(e),e.isDefaultPrevented()))return;a&&a(e)}},onClick:s?void 0:a,"aria-disabled":s?"true":void 0,ref:t},u))}));a.displayName="ClickableBox"},19662:(e,t,n)=>{var r=n(60614),o=n(66330),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},19670:(e,t,n)=>{var r=n(70111),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},41318:(e,t,n)=>{var r=n(45656),o=n(51400),i=n(26244),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},50206:(e,t,n)=>{var r=n(1702);e.exports=r([].slice)},84326:(e,t,n)=>{var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},99920:(e,t,n)=>{var r=n(92597),o=n(53887),i=n(31236),a=n(3070);e.exports=function(e,t,n){for(var s=o(t),l=a.f,c=i.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||l(e,d,c(t,d))}}},68880:(e,t,n)=>{var r=n(19781),o=n(3070),i=n(79114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},79114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},98052:(e,t,n)=>{var r=n(60614),o=n(3070),i=n(56339),a=n(13072);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&i(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},13072:(e,t,n)=>{var r=n(17854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},19781:(e,t,n)=>{var r=n(47293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:e=>{var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},80317:(e,t,n)=>{var r=n(17854),o=n(70111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},89363:e=>{e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},6833:(e,t,n)=>{var r=n(88113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},35268:(e,t,n)=>{var r=n(84326),o=n(17854);e.exports="process"==r(o.process)},88113:(e,t,n)=>{var r=n(35005);e.exports=r("navigator","userAgent")||""},7392:(e,t,n)=>{var r,o,i=n(17854),a=n(88113),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(o=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},80748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:(e,t,n)=>{var r=n(17854),o=n(31236).f,i=n(68880),a=n(98052),s=n(13072),l=n(99920),c=n(54705);e.exports=function(e,t){var n,u,d,p,h,f=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[f]||s(f,{}):(r[f]||{}).prototype)for(u in t){if(p=t[u],d=e.dontCallGetSet?(h=o(n,u))&&h.value:n[u],!c(m?u:f+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(n,u,p,e)}}},47293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},22104:(e,t,n)=>{var r=n(34374),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},49974:(e,t,n)=>{var r=n(21470),o=n(19662),i=n(34374),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},34374:(e,t,n)=>{var r=n(47293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},46916:(e,t,n)=>{var r=n(34374),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},76530:(e,t,n)=>{var r=n(19781),o=n(92597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},21470:(e,t,n)=>{var r=n(84326),o=n(1702);e.exports=function(e){if("Function"===r(e))return o(e)}},1702:(e,t,n)=>{var r=n(34374),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},35005:(e,t,n)=>{var r=n(17854),o=n(60614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},58173:(e,t,n)=>{var r=n(19662),o=n(68554);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},17854:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},92597:(e,t,n)=>{var r=n(1702),o=n(47908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:e=>{e.exports={}},60490:(e,t,n)=>{var r=n(35005);e.exports=r("document","documentElement")},64664:(e,t,n)=>{var r=n(19781),o=n(47293),i=n(80317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},68361:(e,t,n)=>{var r=n(1702),o=n(47293),i=n(84326),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},42788:(e,t,n)=>{var r=n(1702),o=n(60614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},29909:(e,t,n)=>{var r,o,i,a=n(94811),s=n(17854),l=n(70111),c=n(68880),u=n(92597),d=n(5465),p=n(6200),h=n(3501),f="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw m(f);return t.facade=e,v.set(e,t),t},o=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var y=p("state");h[y]=!0,r=function(e,t){if(u(e,y))throw m(f);return t.facade=e,c(e,y,t),t},o=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},60614:(e,t,n)=>{var r=n(4154),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},54705:(e,t,n)=>{var r=n(47293),o=n(60614),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==u||n!=c&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},68554:e=>{e.exports=function(e){return null==e}},70111:(e,t,n)=>{var r=n(60614),o=n(4154),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},31913:e=>{e.exports=!1},52190:(e,t,n)=>{var r=n(35005),o=n(60614),i=n(47976),a=n(43307),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},26244:(e,t,n)=>{var r=n(17466);e.exports=function(e){return r(e.length)}},56339:(e,t,n)=>{var r=n(47293),o=n(60614),i=n(92597),a=n(19781),s=n(76530).CONFIGURABLE,l=n(42788),c=n(29909),u=c.enforce,d=c.get,p=Object.defineProperty,h=a&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),f=String(String).split("String"),m=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),h&&n&&i(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=u(e);return i(r,"source")||(r.source=f.join("string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return o(this)&&d(this).source||l(this)}),"toString")},74758:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},3070:(e,t,n)=>{var r=n(19781),o=n(64664),i=n(3353),a=n(19670),s=n(34948),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",h="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n.writable){var r=u(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:p in n?n.configurable:r.configurable,enumerable:d in n?n.enumerable:r.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},31236:(e,t,n)=>{var r=n(19781),o=n(46916),i=n(55296),a=n(79114),s=n(45656),l=n(34948),c=n(92597),u=n(64664),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},8006:(e,t,n)=>{var r=n(16324),o=n(80748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},25181:(e,t)=>{t.f=Object.getOwnPropertySymbols},47976:(e,t,n)=>{var r=n(1702);e.exports=r({}.isPrototypeOf)},16324:(e,t,n)=>{var r=n(1702),o=n(92597),i=n(45656),a=n(41318).indexOf,s=n(3501),l=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,u=[];for(n in r)!o(s,n)&&o(r,n)&&l(u,n);for(;t.length>c;)o(r,n=t[c++])&&(~a(u,n)||l(u,n));return u}},55296:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},92140:(e,t,n)=>{var r=n(46916),o=n(60614),i=n(70111),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},53887:(e,t,n)=>{var r=n(35005),o=n(1702),i=n(8006),a=n(25181),s=n(19670),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},84488:(e,t,n)=>{var r=n(68554),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},17152:(e,t,n)=>{"use strict";var r=n(17854),o=n(22104),i=n(60614),a=n(89363),s=n(88113),l=n(50206),c=n(48053),u=r.Function,d=/MSIE .\./.test(s)||a&&function(){var e=r.Bun.version.split(".");return e.length<3||0==e[0]&&(e[1]<3||3==e[1]&&0==e[2])}();e.exports=function(e,t){var n=t?2:1;return d?function(r,a){var s=c(arguments.length,1)>n,d=i(r)?r:u(r),p=s?l(arguments,n):[],h=s?function(){o(d,this,p)}:d;return t?e(h,a):e(h)}:e}},6200:(e,t,n)=>{var r=n(72309),o=n(69711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:(e,t,n)=>{var r=n(17854),o=n(13072),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},72309:(e,t,n)=>{var r=n(31913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.27.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE",source:"https://github.com/zloirock/core-js"})},36293:(e,t,n)=>{var r=n(7392),o=n(47293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},20261:(e,t,n)=>{var r,o,i,a,s=n(17854),l=n(22104),c=n(49974),u=n(60614),d=n(92597),p=n(47293),h=n(60490),f=n(50206),m=n(80317),g=n(48053),v=n(6833),y=n(35268),b=s.setImmediate,w=s.clearImmediate,x=s.process,_=s.Dispatch,S=s.Function,C=s.MessageChannel,E=s.String,k=0,z={},P="onreadystatechange";try{r=s.location}catch(e){}var D=function(e){if(d(z,e)){var t=z[e];delete z[e],t()}},A=function(e){return function(){D(e)}},T=function(e){D(e.data)},I=function(e){s.postMessage(E(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){g(arguments.length,1);var t=u(e)?e:S(e),n=f(arguments,1);return z[++k]=function(){l(t,void 0,n)},o(k),k},w=function(e){delete z[e]},y?o=function(e){x.nextTick(A(e))}:_&&_.now?o=function(e){_.now(A(e))}:C&&!v?(a=(i=new C).port2,i.port1.onmessage=T,o=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!p(I)?(o=I,s.addEventListener("message",T,!1)):o=P in m("script")?function(e){h.appendChild(m("script")).onreadystatechange=function(){h.removeChild(this),D(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:b,clear:w}},51400:(e,t,n)=>{var r=n(19303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},45656:(e,t,n)=>{var r=n(68361),o=n(84488);e.exports=function(e){return r(o(e))}},19303:(e,t,n)=>{var r=n(74758);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},17466:(e,t,n)=>{var r=n(19303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},47908:(e,t,n)=>{var r=n(84488),o=Object;e.exports=function(e){return o(r(e))}},57593:(e,t,n)=>{var r=n(46916),o=n(70111),i=n(52190),a=n(58173),s=n(92140),l=n(5112),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=a(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},34948:(e,t,n)=>{var r=n(57593),o=n(52190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},66330:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},69711:(e,t,n)=>{var r=n(1702),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},43307:(e,t,n)=>{var r=n(36293);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(e,t,n)=>{var r=n(19781),o=n(47293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},48053:e=>{var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},94811:(e,t,n)=>{var r=n(17854),o=n(60614),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},5112:(e,t,n)=>{var r=n(17854),o=n(72309),i=n(92597),a=n(69711),s=n(36293),l=n(43307),c=o("wks"),u=r.Symbol,d=u&&u.for,p=l?u:u&&u.withoutSetter||a;e.exports=function(e){if(!i(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&i(u,e)?c[e]=u[e]:c[e]=l&&d?d(t):p(t)}return c[e]}},11091:(e,t,n)=>{var r=n(82109),o=n(17854),i=n(20261).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},84633:(e,t,n)=>{n(11091),n(12986)},12986:(e,t,n)=>{var r=n(82109),o=n(17854),i=n(20261).set,a=n(17152),s=o.setImmediate?a(i,!1):i;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==s},{setImmediate:s})},72572:(e,t,n)=>{"use strict";var r=n(67294);t.createSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe;return function(e){function r(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(n=e.call.apply(e,[this].concat(r))||this).state={source:n.props.source,value:null!=n.props.source?t(n.props.source):void 0},n._hasUnmounted=!1,n._unsubscribe=null,n}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(r,e),r.getDerivedStateFromProps=function(e,n){return e.source!==n.source?{source:e.source,value:null!=e.source?t(e.source):void 0}:null};var o=r.prototype;return o.componentDidMount=function(){this.subscribe()},o.componentDidUpdate=function(e,t){this.state.source!==t.source&&(this.unsubscribe(),this.subscribe())},o.componentWillUnmount=function(){this.unsubscribe(),this._hasUnmounted=!0},o.render=function(){return this.props.children(this.state.value)},o.subscribe=function(){var e=this,r=this.state.source;if(null!=r){var o=n(r,(function(t){e._hasUnmounted||e.setState((function(e){return t===e.value||r!==e.source?null:{value:t}}))}));if("function"!=typeof o)throw Error(function(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}(266));this._unsubscribe=o,(o=t(this.props.source))!==this.state.value&&this.setState({value:o})}},o.unsubscribe=function(){"function"==typeof this._unsubscribe&&this._unsubscribe(),this._unsubscribe=null},r}(r.Component)}},74792:(e,t,n)=>{"use strict";e.exports=n(72572)},6907:e=>{"use strict";e.exports=function(e){if(e=String(e||""),r.test(e))return"rtl";if(o.test(e))return"ltr";return"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",n="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-",r=new RegExp("^[^"+n+"]*["+t+"]"),o=new RegExp("^[^"+t+"]*["+n+"]")},27856:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e,t,n){return e.apply(t,n)}),i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t){return new e(...t)});const u=x(Array.prototype.forEach),d=x(Array.prototype.pop),p=x(Array.prototype.push),h=x(String.prototype.toLowerCase),f=x(String.prototype.toString),m=x(String.prototype.match),g=x(String.prototype.replace),v=x(String.prototype.indexOf),y=x(String.prototype.trim),b=x(RegExp.prototype.test),w=_(TypeError);function x(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l(e,t,r)}}function _(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(e,n)}}function S(e,r,o){var i;o=null!==(i=o)&&void 0!==i?i:h,t&&t(e,null);let a=r.length;for(;a--;){let t=r[a];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[a]=e),t=e)}e[t]=!0}return e}function C(t){const n=s(null);for(const[r,o]of e(t))n[r]=o;return n}function E(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=r(e)}function n(e){return console.warn("fallback value for",e),null}return n}const k=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"]),z=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"]),P=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"]),D=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"]),A=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"]),T=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I=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","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","xmlns","slot"]),R=i(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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"]),F=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"]),N=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),O=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),j=a(/<%[\w\W]*|[\w\W]*%>/gm),L=a(/\${[\w\W]*}/gm),B=a(/^data-[\-\w.\u00B7-\uFFFF]/),K=a(/^aria-[\-\w]+$/),V=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=a(/^(?:\w+script|data):/i),$=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),U=a(/^html$/i);var Z=Object.freeze({__proto__:null,MUSTACHE_EXPR:O,ERB_EXPR:j,TMPLIT_EXPR:L,DATA_ATTR:B,ARIA_ATTR:K,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:$,DOCTYPE_NAME:U});const q=()=>"undefined"==typeof window?null:window,G=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));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}};function W(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q();const n=e=>W(e);if(n.version="3.0.5",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;const r=t.document,o=r.currentScript;let{document:a}=t;const{DocumentFragment:s,HTMLTemplateElement:l,Node:c,Element:x,NodeFilter:_,NamedNodeMap:O=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:j,DOMParser:L,trustedTypes:B}=t,K=x.prototype,H=E(K,"cloneNode"),$=E(K,"nextSibling"),Y=E(K,"childNodes"),X=E(K,"parentNode");if("function"==typeof l){const e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let Q,J="";const{implementation:ee,createNodeIterator:te,createDocumentFragment:ne,getElementsByTagName:re}=a,{importNode:oe}=r;let ie={};n.isSupported="function"==typeof e&&"function"==typeof X&&ee&&void 0!==ee.createHTMLDocument;const{MUSTACHE_EXPR:ae,ERB_EXPR:se,TMPLIT_EXPR:le,DATA_ATTR:ce,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:pe}=Z;let{IS_ALLOWED_URI:he}=Z,fe=null;const me=S({},[...k,...z,...P,...A,...I]);let ge=null;const ve=S({},[...M,...R,...F,...N]);let ye=Object.seal(Object.create(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}})),be=null,we=null,xe=!0,_e=!0,Se=!1,Ce=!0,Ee=!1,ke=!1,ze=!1,Pe=!1,De=!1,Ae=!1,Te=!1,Ie=!0,Me=!1;const Re="user-content-";let Fe=!0,Ne=!1,Oe={},je=null;const Le=S({},["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 Be=null;const Ke=S({},["audio","video","img","source","image","track"]);let Ve=null;const He=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$e="http://www.w3.org/1998/Math/MathML",Ue="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let qe=Ze,Ge=!1,We=null;const Ye=S({},[$e,Ue,Ze],f);let Xe;const Qe=["application/xhtml+xml","text/html"],Je="text/html";let et,tt=null;const nt=a.createElement("form"),rt=function(e){return e instanceof RegExp||e instanceof Function},ot=function(e){if(!tt||tt!==e){if(e&&"object"==typeof e||(e={}),e=C(e),Xe=Xe=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?Je:e.PARSER_MEDIA_TYPE,et="application/xhtml+xml"===Xe?f:h,fe="ALLOWED_TAGS"in e?S({},e.ALLOWED_TAGS,et):me,ge="ALLOWED_ATTR"in e?S({},e.ALLOWED_ATTR,et):ve,We="ALLOWED_NAMESPACES"in e?S({},e.ALLOWED_NAMESPACES,f):Ye,Ve="ADD_URI_SAFE_ATTR"in e?S(C(He),e.ADD_URI_SAFE_ATTR,et):He,Be="ADD_DATA_URI_TAGS"in e?S(C(Ke),e.ADD_DATA_URI_TAGS,et):Ke,je="FORBID_CONTENTS"in e?S({},e.FORBID_CONTENTS,et):Le,be="FORBID_TAGS"in e?S({},e.FORBID_TAGS,et):{},we="FORBID_ATTR"in e?S({},e.FORBID_ATTR,et):{},Oe="USE_PROFILES"in e&&e.USE_PROFILES,xe=!1!==e.ALLOW_ARIA_ATTR,_e=!1!==e.ALLOW_DATA_ATTR,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ee=e.SAFE_FOR_TEMPLATES||!1,ke=e.WHOLE_DOCUMENT||!1,De=e.RETURN_DOM||!1,Ae=e.RETURN_DOM_FRAGMENT||!1,Te=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Ie=!1!==e.SANITIZE_DOM,Me=e.SANITIZE_NAMED_PROPS||!1,Fe=!1!==e.KEEP_CONTENT,Ne=e.IN_PLACE||!1,he=e.ALLOWED_URI_REGEXP||V,qe=e.NAMESPACE||Ze,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&rt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&rt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ee&&(_e=!1),Ae&&(De=!0),Oe&&(fe=S({},[...I]),ge=[],!0===Oe.html&&(S(fe,k),S(ge,M)),!0===Oe.svg&&(S(fe,z),S(ge,R),S(ge,N)),!0===Oe.svgFilters&&(S(fe,P),S(ge,R),S(ge,N)),!0===Oe.mathMl&&(S(fe,A),S(ge,F),S(ge,N))),e.ADD_TAGS&&(fe===me&&(fe=C(fe)),S(fe,e.ADD_TAGS,et)),e.ADD_ATTR&&(ge===ve&&(ge=C(ge)),S(ge,e.ADD_ATTR,et)),e.ADD_URI_SAFE_ATTR&&S(Ve,e.ADD_URI_SAFE_ATTR,et),e.FORBID_CONTENTS&&(je===Le&&(je=C(je)),S(je,e.FORBID_CONTENTS,et)),Fe&&(fe["#text"]=!0),ke&&S(fe,["html","head","body"]),fe.table&&(S(fe,["tbody"]),delete be.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=e.TRUSTED_TYPES_POLICY,J=Q.createHTML("")}else void 0===Q&&(Q=G(B,o)),null!==Q&&"string"==typeof J&&(J=Q.createHTML(""));i&&i(e),tt=e}},it=S({},["mi","mo","mn","ms","mtext"]),at=S({},["foreignobject","desc","title","annotation-xml"]),st=S({},["title","style","font","a","script"]),lt=S({},z);S(lt,P),S(lt,D);const ct=S({},A);S(ct,T);const ut=function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:qe,tagName:"template"});const n=h(e.tagName),r=h(t.tagName);return!!We[e.namespaceURI]&&(e.namespaceURI===Ue?t.namespaceURI===Ze?"svg"===n:t.namespaceURI===$e?"svg"===n&&("annotation-xml"===r||it[r]):Boolean(lt[n]):e.namespaceURI===$e?t.namespaceURI===Ze?"math"===n:t.namespaceURI===Ue?"math"===n&&at[r]:Boolean(ct[n]):e.namespaceURI===Ze?!(t.namespaceURI===Ue&&!at[r])&&!(t.namespaceURI===$e&&!it[r])&&!ct[n]&&(st[n]||!lt[n]):!("application/xhtml+xml"!==Xe||!We[e.namespaceURI]))},dt=function(e){p(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},pt=function(e,t){try{p(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ge[e])if(De||Ae)try{dt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){let t,n;if(Pe)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Xe&&qe===Ze&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=Q?Q.createHTML(e):e;if(qe===Ze)try{t=(new L).parseFromString(r,Xe)}catch(e){}if(!t||!t.documentElement){t=ee.createDocument(qe,"template",null);try{t.documentElement.innerHTML=Ge?J:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),qe===Ze?re.call(t,ke?"html":"body")[0]:ke?t.documentElement:o},ft=function(e){return te.call(e.ownerDocument||e,e,_.SHOW_ELEMENT|_.SHOW_COMMENT|_.SHOW_TEXT,null,!1)},mt=function(e){return e instanceof j&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof O)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},gt=function(e){return"object"==typeof c?e instanceof c:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},vt=function(e,t,r){ie[e]&&u(ie[e],(e=>{e.call(n,t,r,tt)}))},yt=function(e){let t;if(vt("beforeSanitizeElements",e,null),mt(e))return dt(e),!0;const r=et(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:r,allowedTags:fe}),e.hasChildNodes()&&!gt(e.firstElementChild)&&(!gt(e.content)||!gt(e.content.firstElementChild))&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent))return dt(e),!0;if(!fe[r]||be[r]){if(!be[r]&&wt(r)){if(ye.tagNameCheck instanceof RegExp&&b(ye.tagNameCheck,r))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(r))return!1}if(Fe&&!je[r]){const t=X(e)||e.parentNode,n=Y(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(H(n[r],!0),$(e))}return dt(e),!0}return e instanceof x&&!ut(e)?(dt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!b(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ee&&3===e.nodeType&&(t=e.textContent,t=g(t,ae," "),t=g(t,se," "),t=g(t,le," "),e.textContent!==t&&(p(n.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(dt(e),!0)},bt=function(e,t,n){if(Ie&&("id"===t||"name"===t)&&(n in a||n in nt))return!1;if(_e&&!we[t]&&b(ce,t));else if(xe&&b(ue,t));else if(!ge[t]||we[t]){if(!(wt(e)&&(ye.tagNameCheck instanceof RegExp&&b(ye.tagNameCheck,e)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof RegExp&&b(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&b(ye.tagNameCheck,n)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))))return!1}else if(Ve[t]);else if(b(he,g(n,pe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!Be[e])if(Se&&!b(de,g(n,pe,"")));else if(n)return!1;return!0},wt=function(e){return e.indexOf("-")>0},xt=function(e){let t,r,o,i;vt("beforeSanitizeAttributes",e,null);const{attributes:a}=e;if(!a)return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ge};for(i=a.length;i--;){t=a[i];const{name:l,namespaceURI:c}=t;if(r="value"===l?t.value:y(t.value),o=et(l),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,s),r=s.attrValue,s.forceKeepAttr)continue;if(pt(l,e),!s.keepAttr)continue;if(!Ce&&b(/\/>/i,r)){pt(l,e);continue}Ee&&(r=g(r,ae," "),r=g(r,se," "),r=g(r,le," "));const u=et(e.nodeName);if(bt(u,o,r)){if(!Me||"id"!==o&&"name"!==o||(pt(l,e),r=Re+r),Q&&"object"==typeof B&&"function"==typeof B.getAttributeType)if(c);else switch(B.getAttributeType(u,o)){case"TrustedHTML":r=Q.createHTML(r);break;case"TrustedScriptURL":r=Q.createScriptURL(r)}try{c?e.setAttributeNS(c,l,r):e.setAttribute(l,r),d(n.removed)}catch(e){}}}vt("afterSanitizeAttributes",e,null)},_t=function e(t){let n;const r=ft(t);for(vt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)vt("uponSanitizeShadowNode",n,null),yt(n)||(n.content instanceof s&&e(n.content),xt(n));vt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t,o,i,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ge=!e,Ge&&(e="\x3c!--\x3e"),"string"!=typeof e&&!gt(e)){if("function"!=typeof e.toString)throw w("toString is not a function");if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!n.isSupported)return e;if(ze||ot(l),n.removed=[],"string"==typeof e&&(Ne=!1),Ne){if(e.nodeName){const t=et(e.nodeName);if(!fe[t]||be[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)t=ht("\x3c!----\x3e"),o=t.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?t=o:t.appendChild(o);else{if(!De&&!Ee&&!ke&&-1===e.indexOf("<"))return Q&&Te?Q.createHTML(e):e;if(t=ht(e),!t)return De?null:Te?J:""}t&&Pe&&dt(t.firstChild);const u=ft(Ne?e:t);for(;i=u.nextNode();)yt(i)||(i.content instanceof s&&_t(i.content),xt(i));if(Ne)return e;if(De){if(Ae)for(a=ne.call(t.ownerDocument);t.firstChild;)a.appendChild(t.firstChild);else a=t;return(ge.shadowroot||ge.shadowrootmode)&&(a=oe.call(r,a,!0)),a}let d=ke?t.outerHTML:t.innerHTML;return ke&&fe["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&b(U,t.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+d),Ee&&(d=g(d,ae," "),d=g(d,se," "),d=g(d,le," ")),Q&&Te?Q.createHTML(d):d},n.setConfig=function(e){ot(e),ze=!0},n.clearConfig=function(){tt=null,ze=!1},n.isValidAttribute=function(e,t,n){tt||ot({});const r=et(e),o=et(t);return bt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(ie[e]=ie[e]||[],p(ie[e],t))},n.removeHook=function(e){if(ie[e])return d(ie[e])},n.removeHooks=function(e){ie[e]&&(ie[e]=[])},n.removeAllHooks=function(){ie={}},n}return W()}()},41756:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}n.d(t,{ZP:()=>Z,L7:()=>Ce});var s=n(45697),l=n.n(s),c=n(67294);n(59864);function u(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function d(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function p(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return d(n.overflowY,t)||d(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function h(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};Object.create;Object.create;var m=0;function g(e){return"function"==typeof e?e:v}function v(){}function y(e,t){if(e){var n=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!u(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,d=[],f=e;u(f)&&l(f);){if((f=f.parentElement)===c){d.push(f);break}null!=f&&f===document.body&&p(f)&&!p(document.documentElement)||null!=f&&p(f,s)&&d.push(f)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),w=b.height,x=b.width,_=b.top,S=b.right,C=b.bottom,E=b.left,k="start"===o||"nearest"===o?_:"end"===o?C:_+w/2,z="center"===i?E+x/2:"end"===i?S:E,P=[],D=0;D<d.length;D++){var A=d[D],T=A.getBoundingClientRect(),I=T.height,M=T.width,R=T.top,F=T.right,N=T.bottom,O=T.left;if("if-needed"===r&&_>=0&&E>=0&&C<=g&&S<=m&&_>=R&&C<=N&&E>=O&&S<=F)return P;var j=getComputedStyle(A),L=parseInt(j.borderLeftWidth,10),B=parseInt(j.borderTopWidth,10),K=parseInt(j.borderRightWidth,10),V=parseInt(j.borderBottomWidth,10),H=0,$=0,U="offsetWidth"in A?A.offsetWidth-A.clientWidth-L-K:0,Z="offsetHeight"in A?A.offsetHeight-A.clientHeight-B-V:0;if(c===A)H="start"===o?k:"end"===o?k-g:"nearest"===o?h(y,y+g,g,B,V,y+k,y+k+w,w):k-g/2,$="start"===i?z:"center"===i?z-m/2:"end"===i?z-m:h(v,v+m,m,L,K,v+z,v+z+x,x),H=Math.max(0,H+y),$=Math.max(0,$+v);else{H="start"===o?k-R-B:"end"===o?k-N+V+Z:"nearest"===o?h(R,N,I,B,V+Z,k,k+w,w):k-(R+I/2)+Z/2,$="start"===i?z-O-L:"center"===i?z-(O+M/2)+U/2:"end"===i?z-F+K+U:h(O,F,M,L,K+U,z,z+x,x);var q=A.scrollLeft,G=A.scrollTop;k+=G-(H=Math.max(0,Math.min(G+H,A.scrollHeight-I+Z))),z+=q-($=Math.max(0,Math.min(q+$,A.scrollWidth-M+U)))}P.push({el:A,top:H,left:$})}return P}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}}function b(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function w(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return o.cancel=r,o}function x(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function S(){return String(m++)}function C(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function E(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function k(e){return"string"==typeof e.type}function z(e){return e.props}var P=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function D(e){void 0===e&&(e={});var t={};return P.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function A(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=T(t,r)?t[r]:e[r],n}),{})}function T(e,t){return void 0!==e[t]}function I(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function M(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);var a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);var s=R(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function R(e,t,n,r,o){var i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(var a=t+1;a<n;a++)if(!r(a).hasAttribute("disabled"))return a}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute("disabled"))return s;return o?e>0?R(1,0,n,r,!1):R(-1,n-1,n,r,!1):-1}function F(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(b(t,e,n)||r&&b(t,n.document.activeElement,n))}))}var N=w((function(e){j(e).textContent=""}),500);function O(e,t){var n=j(t);e&&(n.textContent=e,N(t))}function j(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var L=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),B=["refKey","ref"],K=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],V=["onKeyDown","onBlur","onChange","onInput","onChangeText"],H=["refKey","ref"],$=["onMouseMove","onMouseDown","onClick","onPress","index","item"],U=function(){var e=function(e){var t,n;function s(t){var n;(n=e.call(this,t)||this).id=n.props.id||"downshift-"+S(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==r})),e()}),t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=D(t),n.internalSetState(o({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=D(t),n.internalSetState(o({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var o=n.items[e];null!=o&&n.selectItem(o,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,i,a={},s="function"==typeof e;return!s&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,o({},n.getStateAndHelpers(),e)),n.setState((function(t){t=n.getState(t);var l=s?e(t):e;l=n.props.stateReducer(t,l),r=l.hasOwnProperty("selectedItem");var c={},u={};return r&&l.selectedItem!==t.selectedItem&&(i=l.selectedItem),l.type=l.type||0,Object.keys(l).forEach((function(e){t[e]!==l[e]&&(a[e]=l[e]),"type"!==e&&(u[e]=l[e],T(n.props,e)||(c[e]=l[e]))})),s&&l.hasOwnProperty("inputValue")&&n.props.onInputValueChange(l.inputValue,o({},n.getStateAndHelpers(),l)),c}),(function(){g(t)(),Object.keys(a).length>1&&n.props.onStateChange(a,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==i&&n.props.onChange(i,n.getStateAndHelpers()),n.props.onUserAction(a,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var i,a=void 0===e?{}:e,s=a.refKey,l=void 0===s?"ref":s,c=a.ref,u=r(a,B),d=(void 0===t?{}:t).suppressRefError,p=void 0!==d&&d;n.getRootProps.called=!0,n.getRootProps.refKey=l,n.getRootProps.suppressRefError=p;var h=n.getState().isOpen;return o(((i={})[l]=_(c,n.rootRef),i.role="combobox",i["aria-expanded"]=h,i["aria-haspopup"]="listbox",i["aria-owns"]=h?n.menuId:null,i["aria-labelledby"]=n.labelId,i),u)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();if(e>0){var n=M(1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:4})}}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();if(e>0){var n=M(-1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:3})}}))},Enter:function(e){if(229!==e.which){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var o=this.items[r],i=this.getItemNodeFromIndex(r);if(null==o||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}}},Escape:function(e){e.preventDefault(),this.reset(o({type:5},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=o({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=o({},n.keyDownHandlers,{Home:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0)&&n){var o=R(1,0,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(o,{type:7})}}},End:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0)&&n){var o=R(-1,r-1,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(o,{type:8})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,i=t.onClick;t.onPress;var a=t.onKeyDown,s=t.onKeyUp,l=t.onBlur,c=r(t,K),u=n.getState().isOpen,d={onClick:x(i,n.buttonHandleClick),onKeyDown:x(a,n.buttonHandleKeyDown),onKeyUp:x(s,n.buttonHandleKeyUp),onBlur:x(l,n.buttonHandleBlur)};return o({type:"button",role:"button","aria-label":u?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},c.disabled?{}:d,c)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=I(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(i(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:14})}))},n.getLabelProps=function(e){return o({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,i=t.onKeyDown,a=t.onBlur,s=t.onChange,l=t.onInput;t.onChangeText;var c=r(t,V),u={};var d,p=n.getState(),h=p.inputValue,f=p.isOpen,m=p.highlightedIndex;c.disabled||((d={}).onChange=x(s,l,n.inputHandleChange),d.onKeyDown=x(i,n.inputHandleKeyDown),d.onBlur=x(a,n.inputHandleBlur),u=d);return o({"aria-autocomplete":"list","aria-activedescendant":f&&"number"==typeof m&&m>=0?n.getItemId(m):null,"aria-controls":f?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:h,id:n.inputId},u,c)},n.inputHandleKeyDown=function(e){var t=I(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(i(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var i,a=void 0===e?{}:e,s=a.refKey,l=void 0===s?"ref":s,c=a.ref,u=r(a,H),d=(void 0===t?{}:t).suppressRefError,p=void 0!==d&&d;return n.getMenuProps.called=!0,n.getMenuProps.refKey=l,n.getMenuProps.suppressRefError=p,o(((i={})[l]=_(c,n.menuRef),i.role="listbox",i["aria-labelledby"]=u&&u["aria-label"]?null:n.labelId,i.id=n.menuId,i),u)},n.getItemProps=function(e){var t,i=void 0===e?{}:e,a=i.onMouseMove,s=i.onMouseDown,l=i.onClick;i.onPress;var c=i.index,u=i.item,d=void 0===u?void 0:u,p=r(i,$);void 0===c?(n.items.push(d),c=n.items.indexOf(d)):n.items[c]=d;var h=l,f=((t={onMouseMove:x(a,(function(){c!==n.getState().highlightedIndex&&(n.setHighlightedIndex(c,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:x(s,(function(e){e.preventDefault()}))}).onClick=x(h,(function(){n.selectItemAtIndex(c,{type:9})})),t),m=p.disabled?{onMouseDown:f.onMouseDown}:f;return o({id:n.getItemId(c),role:"option","aria-selected":n.getState().highlightedIndex===c},m,p)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=D(e),n.internalSetState((function(t){var r=t.selectedItem;return o({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=D(e),n.internalSetState((function(t){var r=t.isOpen;return o({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)}),(function(){var r=n.getState(),o=r.isOpen,i=r.highlightedIndex;o&&n.getItemCount()>0&&"number"==typeof i&&n.setHighlightedIndex(i,e),g(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=w((function(){var e=n.getState(),t=n.items[e.highlightedIndex],r=n.getItemCount(),i=n.props.getA11yStatusMessage(o({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r,O(i,n.props.environment.document)}),200);var a=n.props,s=a.defaultHighlightedIndex,l=a.initialHighlightedIndex,c=void 0===l?s:l,u=a.defaultIsOpen,d=a.initialIsOpen,p=void 0===d?u:d,h=a.initialInputValue,f=void 0===h?"":h,m=a.initialSelectedItem,v=void 0===m?null:m,y=n.getState({highlightedIndex:c,isOpen:p,inputValue:f,selectedItem:v});return null!=y.selectedItem&&void 0===n.props.initialInputValue&&(y.inputValue=n.props.itemToString(y.selectedItem)),n.state=y,n}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var l=s.prototype;return l.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},l.getState=function(e){return void 0===e&&(e=this.state),A(e,this.props)},l.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},l.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},l.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},l.moveHighlightedIndex=function(e,t){var n=this,r=this.getItemCount(),o=this.getState().highlightedIndex;if(r>0){var i=M(e,o,r,(function(e){return n.getItemNodeFromIndex(e)}));this.setHighlightedIndex(i,t)}},l.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,i=this.props.itemToString,a=this.id,s=this.getRootProps,l=this.getToggleButtonProps,c=this.getLabelProps,u=this.getMenuProps,d=this.getInputProps,p=this.getItemProps,h=this.openMenu,f=this.closeMenu,m=this.toggleMenu,g=this.selectItem,v=this.selectItemAtIndex,y=this.selectHighlightedItem,b=this.setHighlightedIndex,w=this.clearSelection,x=this.clearItems;return{getRootProps:s,getToggleButtonProps:l,getLabelProps:c,getMenuProps:u,getInputProps:d,getItemProps:p,reset:this.reset,openMenu:h,closeMenu:f,toggleMenu:m,selectItem:g,selectItemAtIndex:v,selectHighlightedItem:y,setHighlightedIndex:b,clearSelection:w,clearItems:x,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},l.componentDidMount=function(){var e=this;var t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!F(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},r=function(){e.isTouchMove=!1},o=function(){e.isTouchMove=!0},i=function(t){var n=F(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);e.isTouchMove||n||!e.getState().isOpen||e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},a=this.props.environment;a.addEventListener("mousedown",t),a.addEventListener("mouseup",n),a.addEventListener("touchstart",r),a.addEventListener("touchmove",o),a.addEventListener("touchend",i),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),a.removeEventListener("mousedown",t),a.removeEventListener("mouseup",n),a.removeEventListener("touchstart",r),a.removeEventListener("touchmove",o),a.removeEventListener("touchend",i)}},l.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},l.componentDidUpdate=function(e,t){T(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},l.componentWillUnmount=function(){this.cleanup()},l.render=function(){var e=E(this.props.children,v);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=E(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:k(t)?(0,c.cloneElement)(t,this.getRootProps(z(t))):void 0:null},s}(c.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:C,itemToString:function(e){return null==e?"":String(e)},onStateChange:v,onInputValueChange:v,onUserAction:v,onChange:v,onSelect:v,onOuterClick:v,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:y},e.stateChangeTypes=L,e}(),Z=U;var q=["isInitialMount","highlightedIndex","items","environment"],G={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function W(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,a=t.type,s="on"+te(e)+"Change";i[s]&&void 0!==r[e]&&r[e]!==n[e]&&i[s](o({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(o({type:i},a))}var Y=w((function(e,t){O(e(),t)}),200),X="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c.useLayoutEffect:c.useEffect;function Q(e){var t=e.id,n=void 0===t?"downshift-"+S():t,r=e.labelId,o=e.menuId,i=e.getItemId,a=e.toggleButtonId,s=e.inputId;return(0,c.useRef)({labelId:r||n+"-label",menuId:o||n+"-menu",getItemId:i||function(e){return n+"-item-"+e},toggleButtonId:a||n+"-toggle-button",inputId:s||n+"-input"}).current}function J(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function ee(e){return/^\S{1}$/.test(e)}function te(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function ne(e){var t=(0,c.useRef)(e);return t.current=e,t}function re(e,t,n){var r=(0,c.useRef)(),i=(0,c.useRef)(),a=(0,c.useCallback)((function(t,n){i.current=n,t=A(t,n.props);var r=e(t,n);return n.props.stateReducer(t,o({},n,{changes:r}))}),[e]),s=(0,c.useReducer)(a,t),l=s[0],u=s[1],d=ne(n),p=(0,c.useCallback)((function(e){return u(o({props:d.current},e))}),[d]),h=i.current;return(0,c.useEffect)((function(){h&&r.current&&r.current!==l&&W(h,A(r.current,h.props),l),r.current=l}),[l,n,h]),[l,p]}function oe(e,t,n){var r=re(e,t,n),o=r[0],i=r[1];return[A(o,n),i]}var ie={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:y,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function ae(e,t,n){void 0===n&&(n=G);var r="default"+te(t);return r in e?e[r]:n[t]}function se(e,t,n){if(void 0===n&&(n=G),t in e)return e[t];var r="initial"+te(t);return r in e?e[r]:ae(e,t,n)}function le(e){var t=se(e,"selectedItem"),n=se(e,"isOpen"),r=se(e,"highlightedIndex"),o=se(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function ce(e,t,n,r){var o=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,s=t.selectedItem,l=t.highlightedIndex;return 0===o.length?-1:void 0!==i&&l===i?i:void 0!==a?a:s?0===n?o.indexOf(s):M(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function ue(e,t,n,r){var o=(0,c.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,c.useEffect)((function(){var i=function(){o.current.isMouseDown=!0},a=function(i){o.current.isMouseDown=!1,e&&!F(i.target,t.map((function(e){return e.current})),n)&&r()},s=function(){o.current.isTouchMove=!1},l=function(){o.current.isTouchMove=!0},c=function(i){!e||o.current.isTouchMove||F(i.target,t.map((function(e){return e.current})),n,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),o}var de=function(){return v};function pe(e,t,n){var i=n.isInitialMount,a=n.highlightedIndex,s=n.items,l=n.environment,u=r(n,q);(0,c.useEffect)((function(){i||Y((function(){return e(o({highlightedIndex:a,highlightedItem:s[a],resultCount:s.length},u))}),l.document)}),t)}function he(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,o=e.getItemNodeFromIndex,i=e.menuElement,a=e.scrollIntoView,s=(0,c.useRef)(!0);return X((function(){t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}var fe=v;function me(e,t,n){var r,i=t.type,a=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:ce(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:ce(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:ae(a,"highlightedIndex"),isOpen:ae(a,"isOpen"),selectedItem:ae(a,"selectedItem"),inputValue:ae(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return o({},e,r)}function ge(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+1)%r.length,c=r[l];if(void 0!==c&&o(c).toLowerCase().startsWith(a)){var u=i(l);if(!(null==u?void 0:u.hasAttribute("disabled")))return l}}return n}l().array.isRequired,l().func,l().func,l().func,l().bool,l().number,l().number,l().number,l().bool,l().bool,l().bool,l().any,l().any,l().any,l().string,l().string,l().string,l().func,l().string,l().func,l().func,l().func,l().func,l().func,l().shape({addEventListener:l().func,removeEventListener:l().func,document:l().shape({getElementById:l().func,activeElement:l().any,body:l().any})});var ve=f(f({},ie),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}}),ye=v;var be=Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});function we(e,t){var n,r=t.type,i=t.props,a=t.shiftKey;switch(r){case 11:n={isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case 15:var s=t.key,l=""+e.inputValue+s,c=ge({keysSoFar:l,highlightedIndex:e.selectedItem?i.items.indexOf(e.selectedItem):-1,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=o({inputValue:l},c>=0&&{selectedItem:i.items[c]});break;case 13:n={highlightedIndex:ce(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:ce(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=o({isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:R(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:R(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var u=t.key,d=""+e.inputValue+u,p=ge({keysSoFar:d,highlightedIndex:e.highlightedIndex,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=o({inputValue:d},p>=0&&{highlightedIndex:p});break;case 0:n={highlightedIndex:M(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:n={highlightedIndex:M(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return me(e,t,be)}return o({},e,n)}var xe=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],_e=["onClick","onKeyDown","refKey","ref"],Se=["item","index","onMouseMove","onClick","refKey","ref"];function Ce(e){void 0===e&&(e={}),ye(e,Ce);var t=o({},ve,e),n=t.items,i=t.scrollIntoView,a=t.environment,s=t.initialIsOpen,l=t.defaultIsOpen,u=t.itemToString,d=t.getA11ySelectionMessage,p=t.getA11yStatusMessage,h=oe(we,le(t),t),f=h[0],m=h[1],g=f.isOpen,v=f.highlightedIndex,y=f.selectedItem,b=f.inputValue,S=(0,c.useRef)(null),C=(0,c.useRef)(null),E=(0,c.useRef)({}),k=(0,c.useRef)(!0),z=(0,c.useRef)(null),P=Q(t),D=(0,c.useRef)(),A=(0,c.useRef)(!0),T=ne({state:f,props:t}),M=(0,c.useCallback)((function(e){return E.current[P.getItemId(e)]}),[P]);pe(p,[g,v,b,n],o({isInitialMount:A.current,previousResultCount:D.current,items:n,environment:a,itemToString:u},f)),pe(d,[y],o({isInitialMount:A.current,previousResultCount:D.current,items:n,environment:a,itemToString:u},f));var R=he({menuElement:C.current,highlightedIndex:v,isOpen:g,itemRefs:E,scrollIntoView:i,getItemNodeFromIndex:M});(0,c.useEffect)((function(){return z.current=w((function(e){e({type:21,inputValue:""})}),500),function(){z.current.cancel()}}),[]),(0,c.useEffect)((function(){b&&z.current(m)}),[m,b]),fe({isInitialMount:A.current,props:t,state:f}),(0,c.useEffect)((function(){A.current?(s||l||g)&&C.current&&C.current.focus():g?C.current&&C.current.focus():a.document.activeElement===C.current&&S.current&&(k.current=!1,S.current.focus())}),[g]),(0,c.useEffect)((function(){A.current||(D.current=n.length)}));var F=ue(g,[C,S],a,(function(){m({type:8})})),N=de();(0,c.useEffect)((function(){A.current=!1}),[]),(0,c.useEffect)((function(){g||(E.current={})}),[g]);var O=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:13,getItemNodeFromIndex:M,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),m({type:14,getItemNodeFromIndex:M,shiftKey:e.shiftKey})}}}),[m,M]),j=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:0,getItemNodeFromIndex:M,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),m({type:1,getItemNodeFromIndex:M,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),m({type:3,getItemNodeFromIndex:M})},End:function(e){e.preventDefault(),m({type:4,getItemNodeFromIndex:M})},Escape:function(){m({type:2})},Enter:function(e){e.preventDefault(),m({type:5})}," ":function(e){e.preventDefault(),m({type:6})}}}),[m,M]),L=(0,c.useCallback)((function(){m({type:16})}),[m]),B=(0,c.useCallback)((function(){m({type:18})}),[m]),K=(0,c.useCallback)((function(){m({type:17})}),[m]),V=(0,c.useCallback)((function(e){m({type:19,highlightedIndex:e})}),[m]),H=(0,c.useCallback)((function(e){m({type:20,selectedItem:e})}),[m]),$=(0,c.useCallback)((function(){m({type:22})}),[m]),U=(0,c.useCallback)((function(e){m({type:21,inputValue:e})}),[m]),Z=(0,c.useCallback)((function(e){return o({id:P.labelId,htmlFor:P.toggleButtonId},e)}),[P]),q=(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onMouseLeave,s=i.refKey,l=void 0===s?"ref":s,c=i.onKeyDown,u=i.onBlur,d=i.ref,p=r(i,xe),h=(void 0===t?{}:t).suppressRefError,f=void 0!==h&&h,g=T.current.state;return N("getMenuProps",f,l,C),o(((n={})[l]=_(d,(function(e){C.current=e})),n.id=P.menuId,n.role="listbox",n["aria-labelledby"]=P.labelId,n.tabIndex=-1,n),g.isOpen&&g.highlightedIndex>-1&&{"aria-activedescendant":P.getItemId(g.highlightedIndex)},{onMouseLeave:x(a,(function(){m({type:9})})),onKeyDown:x(c,(function(e){var t=I(e);t&&j[t]?j[t](e):ee(t)&&m({type:7,key:t,getItemNodeFromIndex:M})})),onBlur:x(u,(function(){!1!==k.current?!F.current.isMouseDown&&m({type:8}):k.current=!0}))},p)}),[m,T,j,F,N,P,M]);return{getToggleButtonProps:(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onClick,s=i.onKeyDown,l=i.refKey,c=void 0===l?"ref":l,u=i.ref,d=r(i,_e),p=(void 0===t?{}:t).suppressRefError,h=void 0!==p&&p,f=o(((n={})[c]=_(u,(function(e){S.current=e})),n.id=P.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=T.current.state.isOpen,n["aria-labelledby"]=P.labelId+" "+P.toggleButtonId,n),d);return d.disabled||(f.onClick=x(a,(function(){m({type:12})})),f.onKeyDown=x(s,(function(e){var t=I(e);t&&O[t]?O[t](e):ee(t)&&m({type:15,key:t,getItemNodeFromIndex:M})}))),N("getToggleButtonProps",h,c,S),f}),[m,T,O,N,P,M]),getLabelProps:Z,getMenuProps:q,getItemProps:(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,i=n.item,a=n.index,s=n.onMouseMove,l=n.onClick,c=n.refKey,u=void 0===c?"ref":c,d=n.ref,p=r(n,Se),h=T.current,f=h.state,g=h.props,v=J(a,i,g.items);if(v<0)throw new Error("Pass either item or item index in getItemProps!");var y=o(((t={role:"option","aria-selected":""+(v===f.highlightedIndex),id:P.getItemId(v)})[u]=_(d,(function(e){e&&(E.current[P.getItemId(v)]=e)})),t),p);return p.disabled||(y.onMouseMove=x(s,(function(){a!==f.highlightedIndex&&(R.current=!1,m({type:10,index:a}))})),y.onClick=x(l,(function(){m({type:11,index:a})}))),y}),[m,T,R,P]),toggleMenu:L,openMenu:K,closeMenu:B,setHighlightedIndex:V,selectItem:H,reset:$,setInputValue:U,highlightedIndex:v,isOpen:g,selectedItem:y,inputValue:b}}Ce.stateChangeTypes=be;l().array.isRequired,l().func,l().func,l().func,l().bool,l().number,l().number,l().number,l().bool,l().bool,l().bool,l().any,l().any,l().any,l().string,l().string,l().string,l().string,l().string,l().string,l().func,l().string,l().string,l().func,l().func,l().func,l().func,l().func,l().func,l().shape({addEventListener:l().func,removeEventListener:l().func,document:l().shape({getElementById:l().func,activeElement:l().any,body:l().any})});o({},ie,{getA11yStatusMessage:C,circularNavigation:!0});l().array,l().array,l().array,l().func,l().func,l().func,l().number,l().number,l().number,l().func,l().func,l().string,l().string,l().shape({addEventListener:l().func,removeEventListener:l().func,document:l().shape({getElementById:l().func,activeElement:l().any,body:l().any})})},64063:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},37529:e=>{var t=-1;function n(e,s,l,c){if(e===s)return e?[[0,e]]:[];if(null!=l){var u=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,o="number"==typeof n?null:n.newRange,i=e.length,a=t.length;if(0===r.length&&(null===o||0===o.length)){var s=r.index,l=e.slice(0,s),c=e.slice(s),u=o?o.index:null,p=s+a-i;if((null===u||u===p)&&!(p<0||p>a)){var h=t.slice(0,p);if((g=t.slice(p))===c){var f=Math.min(s,p);if((y=l.slice(0,f))===(w=h.slice(0,f)))return d(y,l.slice(f),h.slice(f),c)}}if(null===u||u===s){var m=s,g=(h=t.slice(0,m),t.slice(m));if(h===l){var v=Math.min(i-m,a-m);if((b=c.slice(c.length-v))===(x=g.slice(g.length-v)))return d(l,c.slice(0,c.length-v),g.slice(0,g.length-v),b)}}}if(r.length>0&&o&&0===o.length){var y=e.slice(0,r.index),b=e.slice(r.index+r.length);if(!(a<(f=y.length)+(v=b.length))){var w=t.slice(0,f),x=t.slice(a-v);if(y===w&&b===x)return d(y,e.slice(f,i-v),t.slice(f,a-v),b)}}return null}(e,s,l);if(u)return u}var p=o(e,s),h=e.substring(0,p);p=i(e=e.substring(p),s=s.substring(p));var f=e.substring(e.length-p),m=function(e,a){var s;if(!e)return[[1,a]];if(!a)return[[t,e]];var l=e.length>a.length?e:a,c=e.length>a.length?a:e,u=l.indexOf(c);if(-1!==u)return s=[[1,l.substring(0,u)],[0,c],[1,l.substring(u+c.length)]],e.length>a.length&&(s[0][0]=s[2][0]=t),s;if(1===c.length)return[[t,e],[1,a]];var d=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function a(e,t,n){for(var r,a,s,l,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!==(u=t.indexOf(c,u+1));){var p=o(e.substring(n),t.substring(u)),h=i(e.substring(0,n),t.substring(0,u));d.length<h+p&&(d=t.substring(u-h,u)+t.substring(u,u+p),r=e.substring(0,n-h),a=e.substring(n+p),s=t.substring(0,u-h),l=t.substring(u+p))}return 2*d.length>=e.length?[r,a,s,l,d]:null}var s,l,c,u,d,p=a(n,r,Math.ceil(n.length/4)),h=a(n,r,Math.ceil(n.length/2));if(!p&&!h)return null;s=h?p&&p[4].length>h[4].length?p:h:p;e.length>t.length?(l=s[0],c=s[1],u=s[2],d=s[3]):(u=s[0],d=s[1],l=s[2],c=s[3]);var f=s[4];return[l,c,u,d,f]}(e,a);if(d){var p=d[0],h=d[1],f=d[2],m=d[3],g=d[4],v=n(p,f),y=n(h,m);return v.concat([[0,g]],y)}return function(e,n){for(var o=e.length,i=n.length,a=Math.ceil((o+i)/2),s=a,l=2*a,c=new Array(l),u=new Array(l),d=0;d<l;d++)c[d]=-1,u[d]=-1;c[s+1]=0,u[s+1]=0;for(var p=o-i,h=p%2!=0,f=0,m=0,g=0,v=0,y=0;y<a;y++){for(var b=-y+f;b<=y-m;b+=2){for(var w=s+b,x=(k=b===-y||b!==y&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1)-b;k<o&&x<i&&e.charAt(k)===n.charAt(x);)k++,x++;if(c[w]=k,k>o)m+=2;else if(x>i)f+=2;else if(h){if((C=s+p-b)>=0&&C<l&&-1!==u[C])if(k>=(S=o-u[C]))return r(e,n,k,x)}}for(var _=-y+g;_<=y-v;_+=2){for(var S,C=s+_,E=(S=_===-y||_!==y&&u[C-1]<u[C+1]?u[C+1]:u[C-1]+1)-_;S<o&&E<i&&e.charAt(o-S-1)===n.charAt(i-E-1);)S++,E++;if(u[C]=S,S>o)v+=2;else if(E>i)g+=2;else if(!h){if((w=s+p-_)>=0&&w<l&&-1!==c[w]){var k;x=s+(k=c[w])-w;if(k>=(S=o-S))return r(e,n,k,x)}}}}return[[t,e],[1,n]]}(e,a)}(e=e.substring(0,e.length-p),s=s.substring(0,s.length-p));return h&&m.unshift([0,h]),f&&m.push([0,f]),a(m,c),m}function r(e,t,r,o){var i=e.substring(0,r),a=t.substring(0,o),s=e.substring(r),l=t.substring(o),c=n(i,a),u=n(s,l);return c.concat(u)}function o(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return s(e.charCodeAt(o-1))&&o--,o}function i(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return l(e.charCodeAt(e.length-o))&&o--,o}function a(e,n){e.push([0,""]);for(var r,s=0,l=0,d=0,p="",h="";s<e.length;)if(s<e.length-1&&!e[s][1])e.splice(s,1);else switch(e[s][0]){case 1:d++,h+=e[s][1],s++;break;case t:l++,p+=e[s][1],s++;break;case 0:var f=s-d-l-1;if(n){if(f>=0&&u(e[f][1])){var m=e[f][1].slice(-1);if(e[f][1]=e[f][1].slice(0,-1),p=m+p,h=m+h,!e[f][1]){e.splice(f,1),s--;var g=f-1;e[g]&&1===e[g][0]&&(d++,h=e[g][1]+h,g--),e[g]&&e[g][0]===t&&(l++,p=e[g][1]+p,g--),f=g}}if(c(e[s][1])){m=e[s][1].charAt(0);e[s][1]=e[s][1].slice(1),p+=m,h+=m}}if(s<e.length-1&&!e[s][1]){e.splice(s,1);break}if(p.length>0||h.length>0){p.length>0&&h.length>0&&(0!==(r=o(h,p))&&(f>=0?e[f][1]+=h.substring(0,r):(e.splice(0,0,[0,h.substring(0,r)]),s++),h=h.substring(r),p=p.substring(r)),0!==(r=i(h,p))&&(e[s][1]=h.substring(h.length-r)+e[s][1],h=h.substring(0,h.length-r),p=p.substring(0,p.length-r)));var v=d+l;0===p.length&&0===h.length?(e.splice(s-v,v),s-=v):0===p.length?(e.splice(s-v,v,[1,h]),s=s-v+1):0===h.length?(e.splice(s-v,v,[t,p]),s=s-v+1):(e.splice(s-v,v,[t,p],[1,h]),s=s-v+2)}0!==s&&0===e[s-1][0]?(e[s-1][1]+=e[s][1],e.splice(s,1)):s++,d=0,l=0,p="",h=""}""===e[e.length-1][1]&&e.pop();var y=!1;for(s=1;s<e.length-1;)0===e[s-1][0]&&0===e[s+1][0]&&(e[s][1].substring(e[s][1].length-e[s-1][1].length)===e[s-1][1]?(e[s][1]=e[s-1][1]+e[s][1].substring(0,e[s][1].length-e[s-1][1].length),e[s+1][1]=e[s-1][1]+e[s+1][1],e.splice(s-1,1),y=!0):e[s][1].substring(0,e[s+1][1].length)==e[s+1][1]&&(e[s-1][1]+=e[s+1][1],e[s][1]=e[s][1].substring(e[s+1][1].length)+e[s+1][1],e.splice(s+1,1),y=!0)),s++;y&&a(e,n)}function s(e){return e>=55296&&e<=56319}function l(e){return e>=56320&&e<=57343}function c(e){return l(e.charCodeAt(0))}function u(e){return s(e.charCodeAt(e.length-1))}function d(e,n,r,o){return u(e)||c(o)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}([[0,e],[t,n],[1,r],[0,o]])}function p(e,t,r){return n(e,t,r,!0)}p.INSERT=1,p.DELETE=t,p.EQUAL=0,e.exports=p},53316:e=>{function t(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function n(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function r(e,t,n,r,o){return n.bind(t,e,r,o)}function o(e,o){return r(e,this,1===e.length?t:n,o.cache.create(),o.serializer)}function i(){return JSON.stringify(arguments)}function a(){this.cache=Object.create(null)}a.prototype.has=function(e){return e in this.cache},a.prototype.get=function(e){return this.cache[e]},a.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new a}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:o)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return r(e,this,n,t.cache.create(),t.serializer)},monadic:function(e,n){return r(e,this,t,n.cache.create(),n.serializer)}}},93162:function(e,t,n){var r,o,i;o=[],r=function(){"use strict";function t(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function r(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){l(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function o(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,n){var s=a.URL||a.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):o(l.href)?r(e,t,n):i(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),n);else if(o(e))r(e,n,a);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){i(s)}))}}:function(e,t,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return r(e,t,n);var i="application/octet-stream"===e.type,l=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||i&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},u.readAsDataURL(e)}else{var d=a.URL||a.webkitURL,p=d.createObjectURL(e);o?o.location=p:location.href=p,o=null,setTimeout((function(){d.revokeObjectURL(p)}),4e4)}});a.saveAs=l.saveAs=l,e.exports=l},void 0===(i="function"==typeof r?r.apply(t,o):r)||(e.exports=i)},85628:function(e,t){var n;!function(r){"use strict";var o={s:1,n:0,d:1};function i(e,t){if(isNaN(e=parseInt(e,10)))throw u.InvalidParameter;return e*t}function a(e,t){if(0===t)throw u.DivisionByZero;var n=Object.create(u.prototype);n.s=e<0?-1:1;var r=c(e=e<0?-e:e,t);return n.n=e/r,n.d=t/r,n}function s(e){for(var t={},n=e,r=2,o=4;o<=n;){for(;n%r==0;)n/=r,t[r]=(t[r]||0)+1;o+=1+2*r++}return n!==e?n>1&&(t[n]=(t[n]||0)+1):t[e]=(t[e]||0)+1,t}var l=function(e,t){var n,r=0,a=1,s=1,l=0,c=0,d=0,p=1,h=1,f=0,m=1,g=1,v=1,y=1e7;if(null==e);else if(void 0!==t){if(s=(r=e)*(a=t),r%1!=0||a%1!=0)throw u.NonIntegerParameter}else switch(typeof e){case"object":if("d"in e&&"n"in e)r=e.n,a=e.d,"s"in e&&(r*=e.s);else{if(!(0 in e))throw u.InvalidParameter;r=e[0],1 in e&&(a=e[1])}s=r*a;break;case"number":if(e<0&&(s=e,e=-e),e%1==0)r=e;else if(e>0){for(e>=1&&(e/=h=Math.pow(10,Math.floor(1+Math.log(e)/Math.LN10)));m<=y&&v<=y;){if(e===(n=(f+g)/(m+v))){m+v<=y?(r=f+g,a=m+v):v>m?(r=g,a=v):(r=f,a=m);break}e>n?(f+=g,m+=v):(g+=f,v+=m),m>y?(r=g,a=v):(r=f,a=m)}r*=h}else(isNaN(e)||isNaN(t))&&(a=r=NaN);break;case"string":if(null===(m=e.match(/\d+|./g)))throw u.InvalidParameter;if("-"===m[f]?(s=-1,f++):"+"===m[f]&&f++,m.length===f+1?c=i(m[f++],s):"."===m[f+1]||"."===m[f]?("."!==m[f]&&(l=i(m[f++],s)),(++f+1===m.length||"("===m[f+1]&&")"===m[f+3]||"'"===m[f+1]&&"'"===m[f+3])&&(c=i(m[f],s),p=Math.pow(10,m[f].length),f++),("("===m[f]&&")"===m[f+2]||"'"===m[f]&&"'"===m[f+2])&&(d=i(m[f+1],s),h=Math.pow(10,m[f+1].length)-1,f+=3)):"/"===m[f+1]||":"===m[f+1]?(c=i(m[f],s),p=i(m[f+2],1),f+=3):"/"===m[f+3]&&" "===m[f+1]&&(l=i(m[f],s),c=i(m[f+2],s),p=i(m[f+4],1),f+=5),m.length<=f){s=r=d+(a=p*h)*l+h*c;break}default:throw u.InvalidParameter}if(0===a)throw u.DivisionByZero;o.s=s<0?-1:1,o.n=Math.abs(r),o.d=Math.abs(a)};function c(e,t){if(!e)return t;if(!t)return e;for(;;){if(!(e%=t))return t;if(!(t%=e))return e}}function u(e,t){if(l(e,t),!(this instanceof u))return a(o.s*o.n,o.d);e=c(o.d,o.n),this.s=o.s,this.n=o.n/e,this.d=o.d/e}u.DivisionByZero=new Error("Division by Zero"),u.InvalidParameter=new Error("Invalid argument"),u.NonIntegerParameter=new Error("Parameters must be integer"),u.prototype={s:1,n:0,d:1,abs:function(){return a(this.n,this.d)},neg:function(){return a(-this.s*this.n,this.d)},add:function(e,t){return l(e,t),a(this.s*this.n*o.d+o.s*this.d*o.n,this.d*o.d)},sub:function(e,t){return l(e,t),a(this.s*this.n*o.d-o.s*this.d*o.n,this.d*o.d)},mul:function(e,t){return l(e,t),a(this.s*o.s*this.n*o.n,this.d*o.d)},div:function(e,t){return l(e,t),a(this.s*o.s*this.n*o.d,this.d*o.n)},clone:function(){return a(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new u(NaN);if(void 0===e)return a(this.s*this.n%this.d,1);if(l(e,t),0===o.n&&0===this.d)throw u.DivisionByZero;return a(this.s*(o.d*this.n)%(o.n*this.d),o.d*this.d)},gcd:function(e,t){return l(e,t),a(c(o.n,this.n)*c(o.d,this.d),o.d*this.d)},lcm:function(e,t){return l(e,t),0===o.n&&0===this.n?a(0,1):a(o.n*this.n,c(o.n,this.n)*c(o.d,this.d))},ceil:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new u(NaN):a(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new u(NaN):a(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new u(NaN):a(Math.round(e*this.s*this.n/this.d),e)},inverse:function(){return a(this.s*this.d,this.n)},pow:function(e,t){if(l(e,t),1===o.d)return o.s<0?a(Math.pow(this.s*this.d,o.n),Math.pow(this.n,o.n)):a(Math.pow(this.s*this.n,o.n),Math.pow(this.d,o.n));if(this.s<0)return null;var n=s(this.n),r=s(this.d),i=1,c=1;for(var u in n)if("1"!==u){if("0"===u){i=0;break}if(n[u]*=o.n,n[u]%o.d!=0)return null;n[u]/=o.d,i*=Math.pow(u,n[u])}for(var u in r)if("1"!==u){if(r[u]*=o.n,r[u]%o.d!=0)return null;r[u]/=o.d,c*=Math.pow(u,r[u])}return o.s<0?a(c,i):a(i,c)},equals:function(e,t){return l(e,t),this.s*this.n*o.d==o.s*o.n*this.d},compare:function(e,t){l(e,t);var n=this.s*this.n*o.d-o.s*o.n*this.d;return(0<n)-(n<0)},simplify:function(e){if(isNaN(this.n)||isNaN(this.d))return this;e=e||.001;for(var t=this.abs(),n=t.toContinued(),r=1;r<n.length;r++){for(var o=a(n[r-1],1),i=r-2;i>=0;i--)o=o.inverse().add(n[i]);if(o.sub(t).abs().valueOf()<e)return o.mul(this.s)}return this},divisible:function(e,t){return l(e,t),!(!(o.n*this.d)||this.n*o.d%(o.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(e){var t,n="",r=this.n,o=this.d;return this.s<0&&(n+="-"),1===o?n+=r:(e&&(t=Math.floor(r/o))>0&&(n+=t,n+=" ",r%=o),n+=r,n+="/",n+=o),n},toLatex:function(e){var t,n="",r=this.n,o=this.d;return this.s<0&&(n+="-"),1===o?n+=r:(e&&(t=Math.floor(r/o))>0&&(n+=t,r%=o),n+="\\frac{",n+=r,n+="}{",n+=o,n+="}"),n},toContinued:function(){var e,t=this.n,n=this.d,r=[];if(isNaN(t)||isNaN(n))return r;do{r.push(Math.floor(t/n)),e=t%n,t=n,n=e}while(1!==t);return r},toString:function(e){var t=this.n,n=this.d;if(isNaN(t)||isNaN(n))return"NaN";e=e||15;var r=function(e,t){for(;t%2==0;t/=2);for(;t%5==0;t/=5);if(1===t)return 0;for(var n=10%t,r=1;1!==n;r++)if(n=10*n%t,r>2e3)return 0;return r}(0,n),o=function(e,t,n){for(var r=1,o=function(e,t,n){for(var r=1;t>0;e=e*e%n,t>>=1)1&t&&(r=r*e%n);return r}(10,n,t),i=0;i<300;i++){if(r===o)return i;r=10*r%t,o=10*o%t}return 0}(0,n,r),i=this.s<0?"-":"";if(i+=t/n|0,t%=n,(t*=10)&&(i+="."),r){for(var a=o;a--;)i+=t/n|0,t%=n,t*=10;i+="(";for(a=r;a--;)i+=t/n|0,t%=n,t*=10;i+=")"}else for(a=e;t&&a--;)i+=t/n|0,t%=n,t*=10;return i}},void 0===(n=function(){return u}.apply(t,[]))||(e.exports=n)}()},3513:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(67294),i=r(n(83057));t.default=(e,t,n)=>(0,i.default)(o.useCallback,e,t,n)},7167:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(67294),i=r(n(83057));t.default=(e,t,n)=>(0,i.default)(o.useEffect,e,t,n)},83057:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294);t.default=(e,t,n,o)=>{const i=(0,r.useRef)();return i.current&&n.every(((e,t)=>Object.is(e,i.current[t])))||(i.current=[...n,...o]),e(t,i.current)}},33063:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(67294),i=r(n(83057));t.default=(e,t,n)=>(0,i.default)(o.useLayoutEffect,e,t,n)},63346:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(67294),i=r(n(83057));t.default=(e,t,n)=>(0,i.default)(o.useMemo,e,t,n)},45071:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useGranularMemo=t.useGranularLayoutEffect=t.useGranularHook=t.useGranularEffect=t.useGranularCallback=void 0;var o=n(3513);Object.defineProperty(t,"useGranularCallback",{enumerable:!0,get:function(){return r(o).default}});var i=n(7167);Object.defineProperty(t,"useGranularEffect",{enumerable:!0,get:function(){return r(i).default}});var a=n(83057);Object.defineProperty(t,"useGranularHook",{enumerable:!0,get:function(){return r(a).default}});var s=n(33063);Object.defineProperty(t,"useGranularLayoutEffect",{enumerable:!0,get:function(){return r(s).default}});var l=n(63346);Object.defineProperty(t,"useGranularMemo",{enumerable:!0,get:function(){return r(l).default}})},8679:(e,t,n)=>{"use strict";var r=n(21296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=h(n);o&&o!==f&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=p(n,v);try{c(t,v,y)}catch(e){}}}}return t}},96103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return _(e)||x(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},21296:(e,t,n)=>{"use strict";e.exports=n(96103)},28623:(e,t,n)=>{"use strict";n.d(t,{Fl:()=>W,MD:()=>Z,P2:()=>Y,Uy:()=>G,Vk:()=>$,_x:()=>X,mv:()=>l,o$:()=>c});var r=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),i=Symbol.for("immer-state");function a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function l(e){return!!e&&!!e[i]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||g(e)||v(e))}var u=Object.prototype.constructor.toString();function d(e){if(!e||"object"!=typeof e)return!1;const t=s(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===u}function p(e,t){0===h(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function h(e){const t=e[i];return t?t.type_:Array.isArray(e)?1:g(e)?2:v(e)?3:0}function f(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function m(e,t,n){const r=h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function g(e){return e instanceof Map}function v(e){return e instanceof Set}function y(e){return e.copy_||e.base_}function b(e,t){if(g(e))return new Map(e);if(v(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&d(e)){if(!s(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const n=Object.getOwnPropertyDescriptors(e);delete n[i];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],i=n[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(s(e),n)}function w(e,t=!1){return _(e)||l(e)||!c(e)||(h(e)>1&&(e.set=e.add=e.clear=e.delete=x),Object.freeze(e),t&&p(e,((e,t)=>w(t,!0)))),e}function x(){a(2)}function _(e){return Object.isFrozen(e)}var S,C={};function E(e){const t=C[e];return t||a(0),t}function k(e,t){C[e]||(C[e]=t)}function z(){return S}function P(e,t){t&&(E("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function D(e){A(e),e.drafts_.forEach(I),e.drafts_=null}function A(e){e===S&&(S=e.parent_)}function T(e){return S={drafts_:[],parent_:S,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function I(e){const t=e[i];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function M(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[i].modified_&&(D(t),a(4)),c(e)&&(e=R(t,e),t.parent_||N(t,e)),t.patches_&&E("Patches").generateReplacementPatches_(n[i].base_,e,t.patches_,t.inversePatches_)):e=R(t,n,[]),D(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function R(e,t,n){if(_(t))return t;const r=t[i];if(!r)return p(t,((o,i)=>F(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return N(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),p(o,((o,a)=>F(e,r,t,o,a,n,i))),N(e,t,!1),n&&e.patches_&&E("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function F(e,t,n,r,o,i,a){if(l(o)){const a=R(e,o,i&&t&&3!==t.type_&&!f(t.assigned_,r)?i.concat(r):void 0);if(m(n,r,a),!l(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(c(o)&&!_(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;R(e,o),t&&t.scope_.parent_||N(e,o)}}function N(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&w(t,n)}var O={get(e,t){if(t===i)return e;const n=y(e);if(!f(n,t))return function(e,t,n){const r=B(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!c(r)?r:r===L(e.base_,t)?(V(e),e.copy_[t]=H(r,e)):r},has:(e,t)=>t in y(e),ownKeys:e=>Reflect.ownKeys(y(e)),set(e,t,n){const r=B(y(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=L(y(e),t),s=r?.[i];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(a=r)?0!==o||1/o==1/a:o!=o&&a!=a)&&(void 0!==n||f(e.base_,t)))return!0;V(e),K(e)}var o,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==L(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,V(e),K(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=y(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){a(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){a(12)}},j={};function L(e,t){const n=e[i];return(n?y(n):e)[t]}function B(e,t){if(!(t in e))return;let n=s(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=s(n)}}function K(e){e.modified_||(e.modified_=!0,e.parent_&&K(e.parent_))}function V(e){e.copy_||(e.copy_=b(e.base_,e.scope_.immer_.useStrictShallowCopy_))}p(O,((e,t)=>{j[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),j.deleteProperty=function(e,t){return j.set.call(this,e,t,void 0)},j.set=function(e,t,n){return O.set.call(this,e[0],t,n,e[0])};function H(e,t){const n=g(e)?E("MapSet").proxyMap_(e,t):v(e)?E("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:z(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=O;n&&(o=[r],i=j);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:z()).drafts_.push(n),n}function $(e){return l(e)||a(10),U(e)}function U(e){if(!c(e)||_(e))return e;const t=e[i];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=b(e,t.scope_.immer_.useStrictShallowCopy_)}else n=b(e,!0);return p(n,((e,t)=>{m(n,e,U(t))})),t&&(t.finalized_=!1),n}function Z(){class e extends Map{constructor(e,t){super(),this[i]={type_:2,parent_:t,scope_:t?t.scope_:z(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:e,draft_:this,isManual_:!1,revoked_:!1}}get size(){return y(this[i]).size}has(e){return y(this[i]).has(e)}set(e,n){const r=this[i];return o(r),y(r).has(e)&&y(r).get(e)===n||(t(r),K(r),r.assigned_.set(e,!0),r.copy_.set(e,n),r.assigned_.set(e,!0)),this}delete(e){if(!this.has(e))return!1;const n=this[i];return o(n),t(n),K(n),n.base_.has(e)?n.assigned_.set(e,!1):n.assigned_.delete(e),n.copy_.delete(e),!0}clear(){const e=this[i];o(e),y(e).size&&(t(e),K(e),e.assigned_=new Map,p(e.base_,(t=>{e.assigned_.set(t,!1)})),e.copy_.clear())}forEach(e,t){y(this[i]).forEach(((n,r,o)=>{e.call(t,this.get(r),r,this)}))}get(e){const n=this[i];o(n);const r=y(n).get(e);if(n.finalized_||!c(r))return r;if(r!==n.base_.get(e))return r;const a=H(r,n);return t(n),n.copy_.set(e,a),a}keys(){return y(this[i]).keys()}values(){const e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const t=e.next();if(t.done)return t;return{done:!1,value:this.get(t.value)}}}}entries(){const e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const t=e.next();if(t.done)return t;const n=this.get(t.value);return{done:!1,value:[t.value,n]}}}}[Symbol.iterator](){return this.entries()}}function t(e){e.copy_||(e.assigned_=new Map,e.copy_=new Map(e.base_))}class n extends Set{constructor(e,t){super(),this[i]={type_:3,parent_:t,scope_:t?t.scope_:z(),modified_:!1,finalized_:!1,copy_:void 0,base_:e,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return y(this[i]).size}has(e){const t=this[i];return o(t),t.copy_?!!t.copy_.has(e)||!(!t.drafts_.has(e)||!t.copy_.has(t.drafts_.get(e))):t.base_.has(e)}add(e){const t=this[i];return o(t),this.has(e)||(r(t),K(t),t.copy_.add(e)),this}delete(e){if(!this.has(e))return!1;const t=this[i];return o(t),r(t),K(t),t.copy_.delete(e)||!!t.drafts_.has(e)&&t.copy_.delete(t.drafts_.get(e))}clear(){const e=this[i];o(e),y(e).size&&(r(e),K(e),e.copy_.clear())}values(){const e=this[i];return o(e),r(e),e.copy_.values()}entries(){const e=this[i];return o(e),r(e),e.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){const n=this.values();let r=n.next();for(;!r.done;)e.call(t,r.value,r.value,this),r=n.next()}}function r(e){e.copy_||(e.copy_=new Set,e.base_.forEach((t=>{if(c(t)){const n=H(t,e);e.drafts_.set(t,n),e.copy_.add(n)}else e.copy_.add(t)})))}function o(e){e.revoked_&&a(3,JSON.stringify(y(e)))}k("MapSet",{proxyMap_:function(t,n){return new e(t,n)},proxySet_:function(e,t){return new n(e,t)}})}var q=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let o;if("function"!=typeof t&&a(6),void 0!==n&&"function"!=typeof n&&a(7),c(e)){const r=T(this),i=H(e,void 0);let a=!0;try{o=t(i),a=!1}finally{a?D(r):A(r)}return P(r,n),M(o,r)}if(!e||"object"!=typeof e){if(o=t(e),void 0===o&&(o=e),o===r&&(o=void 0),this.autoFreeze_&&w(o,!0),n){const t=[],r=[];E("Patches").generateReplacementPatches_(e,o,t,r),n(t,r)}return o}a(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){c(e)||a(8),l(e)&&(e=$(e));const t=T(this),n=H(e,void 0);return n[i].isManual_=!0,A(t),n}finishDraft(e,t){const n=e&&e[i];n&&n.isManual_||a(9);const{scope_:r}=n;return P(r,t),M(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=E("Patches").applyPatches_;return l(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},G=q.produce,W=(q.produceWithPatches.bind(q),q.setAutoFreeze.bind(q)),Y=(q.setUseStrictShallowCopy.bind(q),q.applyPatches.bind(q),q.createDraft.bind(q)),X=q.finishDraft.bind(q)},35369:(e,t,n)=>{"use strict";n.d(t,{D5:()=>Et,WV:()=>tr,aV:()=>Wt,d0:()=>lr,dM:()=>Z,hU:()=>Yn,is:()=>le,l4:()=>zn,t8:()=>nt,zN:()=>un});var r=32,o=31,i={};function a(e){e&&(e.value=!0)}function s(){}function l(e){return void 0===e.size&&(e.size=e.__iterate(u)),e.size}function c(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?l(e)+t:t}function u(){return!0}function d(e,t,n){return(0===e&&!m(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function p(e,t){return f(e,t,0)}function h(e,t){return f(e,t,t)}function f(e,t,n){return void 0===e?n:m(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function m(e){return e<0||0===e&&1/e==-1/0}var g="@@__IMMUTABLE_ITERABLE__@@";function v(e){return Boolean(e&&e[g])}var y="@@__IMMUTABLE_KEYED__@@";function b(e){return Boolean(e&&e[y])}var w="@@__IMMUTABLE_INDEXED__@@";function x(e){return Boolean(e&&e[w])}function _(e){return b(e)||x(e)}var S=function(e){return v(e)?e:Z(e)},C=function(e){function t(e){return b(e)?e:q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(S),E=function(e){function t(e){return x(e)?e:G(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(S),k=function(e){function t(e){return v(e)&&!_(e)?e:W(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(S);S.Keyed=C,S.Indexed=E,S.Set=k;var z="@@__IMMUTABLE_SEQ__@@";function P(e){return Boolean(e&&e[z])}var D="@@__IMMUTABLE_RECORD__@@";function A(e){return Boolean(e&&e[D])}function T(e){return v(e)||A(e)}var I="@@__IMMUTABLE_ORDERED__@@";function M(e){return Boolean(e&&e[I])}var R="function"==typeof Symbol&&Symbol.iterator,F="@@iterator",N=R||F,O=function(e){this.next=e};function j(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function L(){return{value:void 0,done:!0}}function B(e){return!!H(e)}function K(e){return e&&"function"==typeof e.next}function V(e){var t=H(e);return t&&t.call(e)}function H(e){var t=e&&(R&&e[R]||e["@@iterator"]);if("function"==typeof t)return t}O.prototype.toString=function(){return"[Iterator]"},O.KEYS=0,O.VALUES=1,O.ENTRIES=2,O.prototype.inspect=O.prototype.toSource=function(){return this.toString()},O.prototype[N]=function(){return this};var $=Object.prototype.hasOwnProperty;function U(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var Z=function(e){function t(e){return null==e?ee():T(e)?e.toSeq():function(e){var t=re(e);if(t)return t;if("object"==typeof e)return new X(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[t?r-++o:o++];if(!1===e(i[1],i[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,o=0;return new O((function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return j(e,i[0],i[1])}))}return this.__iteratorUncached(e,t)},t}(S),q=function(e){function t(e){return null==e?ee().toKeyedSeq():v(e)?b(e)?e.toSeq():e.fromEntrySeq():A(e)?e.toSeq():te(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Z),G=function(e){function t(e){return null==e?ee():v(e)?b(e)?e.entrySeq():e.toIndexedSeq():A(e)?e.toSeq().entrySeq():ne(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(Z),W=function(e){function t(e){return(v(e)&&!_(e)?e:G(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(Z);Z.isSeq=P,Z.Keyed=q,Z.Set=W,Z.Indexed=G,Z.prototype[z]=!0;var Y=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[c(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var i=t?r-++o:o++;if(!1===e(n[i],i,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new O((function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return j(e,i,n[i])}))},t}(G),X=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return $.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[t?o-++i:i++];if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,i=0;return new O((function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return j(e,a,n[a])}))},t}(q);X.prototype[I]=!0;var Q,J=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=V(this._collection),r=0;if(K(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=V(this._collection);if(!K(n))return new O(L);var r=0;return new O((function(){var t=n.next();return t.done?t:j(e,r++,t.value)}))},t}(G);function ee(){return Q||(Q=new Y([]))}function te(e){var t=Array.isArray(e)?new Y(e):B(e)?new J(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new X(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function ne(e){var t=re(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function re(e){return U(e)?new Y(e):B(e)?new J(e):void 0}var oe="@@__IMMUTABLE_MAP__@@";function ie(e){return Boolean(e&&e[oe])}function ae(e){return ie(e)&&M(e)}function se(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function le(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(se(e)&&se(t)&&e.equals(t))}var ce="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ue(e){return e>>>1&1073741824|3221225471&e}function de(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return ue(n)}if("string"===t)return e.length>be?function(e){var t=_e[e];void 0===t&&(t=pe(e),xe===we&&(xe=0,_e={}),xe++,_e[e]=t);return t}(e):pe(e);if("function"==typeof e.hashCode)return ue(e.hashCode());if("object"===t||"function"===t)return function(e){var t;if(ge&&void 0!==(t=me.get(e)))return t;if(void 0!==(t=e[ye]))return t;if(!fe){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ye]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}t=++ve,1073741824&ve&&(ve=0);if(ge)me.set(e,t);else{if(void 0!==he&&!1===he(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fe)Object.defineProperty(e,ye,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ye]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[ye]=t}}return t}(e);if("function"==typeof e.toString)return pe(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function pe(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ue(t)}var he=Object.isExtensible,fe=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var me,ge="function"==typeof WeakMap;ge&&(me=new WeakMap);var ve=0,ye="__immutablehash__";"function"==typeof Symbol&&(ye=Symbol(ye));var be=16,we=255,xe=0,_e={},Se=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=De(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Pe(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(q);Se.prototype[I]=!0;var Ce=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&l(this),this._iter.__iterate((function(o){return e(o,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),o=0;return t&&l(this),new O((function(){var i=r.next();return i.done?i:j(e,t?n.size-++o:o++,i.value,i)}))},t}(G),Ee=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new O((function(){var t=n.next();return t.done?t:j(e,t.value,t.value,t)}))},t}(W),ke=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Be(t);var r=v(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new O((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Be(r);var o=v(r);return j(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},t}(q);function ze(e){var t=Ve(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=He,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new O((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Pe(e,t,n){var r=Ve(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var a=e.get(r,i);return a===i?o:t.call(n,a,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new O((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return j(r,s,t.call(n,a[1],s,e),o)}))},r}function De(e,t){var n=this,r=Ve(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=ze(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=He,r.__iterate=function(n,r){var o=this,i=0;return r&&l(e),e.__iterate((function(e,a){return n(e,t?a:r?o.size-++i:i++,o)}),!r)},r.__iterator=function(r,o){var i=0;o&&l(e);var a=e.__iterator(2,!o);return new O((function(){var e=a.next();if(e.done)return e;var s=e.value;return j(r,t?s[0]:o?n.size-++i:i++,s[1],e)}))},r}function Ae(e,t,n,r){var o=Ve(e);return r&&(o.has=function(r){var o=e.get(r,i);return o!==i&&!!t.call(n,o,r,e)},o.get=function(r,o){var a=e.get(r,i);return a!==i&&t.call(n,a,r,e)?a:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,l){if(t.call(n,e,i,l))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),s=0;return new O((function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return j(o,r?c:s++,u,i)}}))},o}function Te(e,t,n,r){var o=e.size;if(d(t,n,o))return e;var i=p(t,o),a=h(n,o);if(i!=i||a!=a)return Te(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l==l&&(s=l<0?0:l);var u=Ve(e);return u.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(u.get=function(t,n){return(t=c(this,t))>=0&&t<s?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,c=0;return e.__iterate((function(e,n){if(!l||!(l=a++<i))return c++,!1!==t(e,r?n:c-1,o)&&c!==s})),c},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);if(0===s)return new O(L);var o=e.__iterator(t,n),a=0,l=0;return new O((function(){for(;a++<i;)o.next();if(++l>s)return{value:void 0,done:!0};var e=o.next();return r||1===t||e.done?e:j(t,l-1,0===t?void 0:e.value[1],e)}))},u}function Ie(e,t,n,r){var o=Ve(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate((function(e,i,c){if(!s||!(s=t.call(n,e,i,c)))return l++,o(e,r?i:l-1,a)})),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),l=!0,c=0;return new O((function(){var e,i,u;do{if((e=s.next()).done)return r||1===o?e:j(o,c++,0===o?void 0:e.value[1],e);var d=e.value;i=d[0],u=d[1],l&&(l=t.call(n,u,i,a))}while(l);return 2===o?e:j(o,i,u,e)}))},o}function Me(e,t){var n=b(e),r=[e].concat(t).map((function(e){return v(e)?n&&(e=C(e)):e=n?te(e):ne(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var o=r[0];if(o===e||n&&b(o)||x(e)&&x(o))return o}var i=new Y(r);return n?i=i.toKeyedSeq():x(e)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),i}function Re(e,t,n){var r=Ve(e);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function e(l,c){l.__iterate((function(i,l){return(!t||c<t)&&v(i)?e(i,c+1):(a++,!1===o(i,n?l:a-1,r)&&(s=!0)),!s}),i)}(e,0),a},r.__iteratorUncached=function(r,o){if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(r,o),a=[],s=0;return new O((function(){for(;i;){var e=i.next();if(!1===e.done){var l=e.value;if(2===r&&(l=l[1]),t&&!(a.length<t)||!v(l))return n?e:j(r,s++,l,e);a.push(i),i=l.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}}))},r}function Fe(e,t,n){t||(t=$e);var r=b(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).valueSeq().toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?q(i):x(e)?G(i):W(i)}function Ne(e,t,n){if(t||(t=$e),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Oe(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Oe(t,e,n)?n:e}))}function Oe(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function je(e,t,n,r){var o=Ve(e),i=new Y(n).map((function(e){return e.size}));return o.size=r?i.max():i.min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=n.map((function(e){return e=S(e),V(o?e.reverse():e)})),a=0,s=!1;return new O((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:j(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Le(e,t){return e===t?e:P(e)?t:e.constructor(t)}function Be(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ke(e){return b(e)?C:x(e)?E:k}function Ve(e){return Object.create((b(e)?q:x(e)?G:W).prototype)}function He(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Z.prototype.cacheResult.call(this)}function $e(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function Ue(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function Ze(e,t){if(!e)throw new Error(t)}function qe(e){Ze(e!==1/0,"Cannot perform this action with an infinite size.")}function Ge(e){if(U(e)&&"string"!=typeof e)return e;if(M(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function We(e){return e&&(e.constructor&&"Object"===e.constructor.name||void 0===e.constructor)}function Ye(e){return"object"==typeof e&&(T(e)||Array.isArray(e)||We(e))}function Xe(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function Qe(e,t){return T(e)?e.has(t):Ye(e)&&$.call(e,t)}function Je(e,t,n){return T(e)?e.get(t,n):Qe(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function et(e){if(Array.isArray(e))return Ue(e);var t={};for(var n in e)$.call(e,n)&&(t[n]=e[n]);return t}function tt(e,t){if(!Ye(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(T(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!$.call(e,t))return e;var n=et(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function nt(e,t,n){if(!Ye(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(T(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if($.call(e,t)&&n===e[t])return e;var r=et(e);return r[t]=n,r}function rt(e,t,n,r){r||(r=n,n=void 0);var o=ot(T(e),e,Ge(t),0,n,r);return o===i?n:o}function ot(e,t,n,r,o,a){var s=t===i;if(r===n.length){var l=s?o:t,c=a(l);return c===l?t:c}if(!s&&!Ye(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(Xe)+"]: "+t);var u=n[r],d=s?i:Je(t,u,i),p=ot(d===i?e:T(d),d,n,r+1,o,a);return p===d?t:p===i?tt(t,u):nt(s?e?Ot():{}:t,u,p)}function it(e,t,n){return rt(e,t,i,(function(){return n}))}function at(e,t){return it(this,e,t)}function st(e,t){return rt(e,t,(function(){return i}))}function lt(e){return st(this,e)}function ct(e,t,n,r){return rt(e,[t],n,r)}function ut(e,t,n){return 1===arguments.length?e(this):ct(this,e,t,n)}function dt(e,t,n){return rt(this,e,t,n)}function pt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return ft(this,e)}function ht(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return ft(this,t,e)}function ft(e,t,n){for(var r=[],o=0;o<t.length;o++){var a=C(t[o]);0!==a.size&&r.push(a)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var t=n?function(t,r){ct(e,r,i,(function(e){return e===i?t:n(e,t,r)}))}:function(t,n){e.set(n,t)},o=0;o<r.length;o++)r[o].forEach(t)})):e.constructor(r[0])}function mt(e,t,n){return gt(e,t,function(e){function t(n,r,o){return Ye(n)&&Ye(r)?gt(n,[r],t):e?e(n,r,o):r}return t}(n))}function gt(e,t,n){if(!Ye(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(T(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,i=r?E:C,a=r?function(t){o===e&&(o=et(o)),o.push(t)}:function(t,r){var i=$.call(o,r),a=i&&n?n(o[r],t,r):t;i&&a===o[r]||(o===e&&(o=et(o)),o[r]=a)},s=0;s<t.length;s++)i(t[s]).forEach(a);return o}function vt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return mt(this,e)}function yt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return mt(this,t,e)}function bt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return rt(this,e,Ot(),(function(e){return gt(e,t)}))}function wt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return rt(this,e,Ot(),(function(e){return mt(e,t)}))}function xt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function _t(){return this.__ownerID?this:this.__ensureOwner(new s)}function St(){return this.__ensureOwner()}function Ct(){return this.__altered}Ce.prototype.cacheResult=Se.prototype.cacheResult=Ee.prototype.cacheResult=ke.prototype.cacheResult=He;var Et=function(e){function t(t){return null==t?Ot():ie(t)&&!M(t)?t:Ot().withMutations((function(n){var r=e(t);qe(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ot().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return jt(this,e,t)},t.prototype.remove=function(e){return jt(this,e,i)},t.prototype.deleteAll=function(e){var t=S(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ot()},t.prototype.sort=function(e){return un(Fe(this,e))},t.prototype.sortBy=function(e,t){return un(Fe(this,t,e))},t.prototype.map=function(e,t){return this.withMutations((function(n){n.forEach((function(r,o){n.set(o,e.call(t,r,o,n))}))}))},t.prototype.__iterator=function(e,t){return new Mt(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Nt(this.size,this._root,e,this.__hash):0===this.size?Ot():(this.__ownerID=e,this.__altered=!1,this)},t}(C);Et.isMap=ie;var kt=Et.prototype;kt[oe]=!0,kt.delete=kt.remove,kt.removeAll=kt.deleteAll,kt.setIn=at,kt.removeIn=kt.deleteIn=lt,kt.update=ut,kt.updateIn=dt,kt.merge=kt.concat=pt,kt.mergeWith=ht,kt.mergeDeep=vt,kt.mergeDeepWith=yt,kt.mergeIn=bt,kt.mergeDeepIn=wt,kt.withMutations=xt,kt.wasAltered=Ct,kt.asImmutable=St,kt["@@transducer/init"]=kt.asMutable=_t,kt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},kt["@@transducer/result"]=function(e){return e.asImmutable()};var zt=function(e,t){this.ownerID=e,this.entries=t};zt.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(le(n,o[i][0]))return o[i][1];return r},zt.prototype.update=function(e,t,n,r,o,l,c){for(var u=o===i,d=this.entries,p=0,h=d.length;p<h&&!le(r,d[p][0]);p++);var f=p<h;if(f?d[p][1]===o:u)return this;if(a(c),(u||!f)&&a(l),!u||1!==d.length){if(!f&&!u&&d.length>=$t)return function(e,t,n,r){e||(e=new s);for(var o=new Tt(e,de(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,d,r,o);var m=e&&e===this.ownerID,g=m?d:Ue(d);return f?u?p===h-1?g.pop():g[p]=g.pop():g[p]=[r,o]:g.push([r,o]),m?(this.entries=g,this):new zt(e,g)}};var Pt=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Pt.prototype.get=function(e,t,n,r){void 0===t&&(t=de(n));var i=1<<((0===e?t:t>>>e)&o),a=this.bitmap;return 0==(a&i)?r:this.nodes[Vt(a&i-1)].get(e+5,t,n,r)},Pt.prototype.update=function(e,t,n,a,s,l,c){void 0===n&&(n=de(a));var u=(0===t?n:n>>>t)&o,d=1<<u,p=this.bitmap,h=0!=(p&d);if(!h&&s===i)return this;var f=Vt(p&d-1),m=this.nodes,g=h?m[f]:void 0,v=Lt(g,e,t+5,n,a,s,l,c);if(v===g)return this;if(!h&&v&&m.length>=Ut)return function(e,t,n,o,i){for(var a=0,s=new Array(r),l=0;0!==n;l++,n>>>=1)s[l]=1&n?t[a++]:void 0;return s[o]=i,new Dt(e,a+1,s)}(e,m,p,u,v);if(h&&!v&&2===m.length&&Bt(m[1^f]))return m[1^f];if(h&&v&&1===m.length&&Bt(v))return v;var y=e&&e===this.ownerID,b=h?v?p:p^d:p|d,w=h?v?Ht(m,f,v,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(m,f,y):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(m,f,v,y);return y?(this.bitmap=b,this.nodes=w,this):new Pt(e,b,w)};var Dt=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Dt.prototype.get=function(e,t,n,r){void 0===t&&(t=de(n));var i=(0===e?t:t>>>e)&o,a=this.nodes[i];return a?a.get(e+5,t,n,r):r},Dt.prototype.update=function(e,t,n,r,a,s,l){void 0===n&&(n=de(r));var c=(0===t?n:n>>>t)&o,u=a===i,d=this.nodes,p=d[c];if(u&&!p)return this;var h=Lt(p,e,t+5,n,r,a,s,l);if(h===p)return this;var f=this.count;if(p){if(!h&&--f<Zt)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,l=1,c=t.length;s<c;s++,l<<=1){var u=t[s];void 0!==u&&s!==r&&(o|=l,a[i++]=u)}return new Pt(e,o,a)}(e,d,f,c)}else f++;var m=e&&e===this.ownerID,g=Ht(d,c,h,m);return m?(this.count=f,this.nodes=g,this):new Dt(e,f,g)};var At=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};At.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(le(n,o[i][0]))return o[i][1];return r},At.prototype.update=function(e,t,n,r,o,s,l){void 0===n&&(n=de(r));var c=o===i;if(n!==this.keyHash)return c?this:(a(l),a(s),Kt(this,e,t,n,[r,o]));for(var u=this.entries,d=0,p=u.length;d<p&&!le(r,u[d][0]);d++);var h=d<p;if(h?u[d][1]===o:c)return this;if(a(l),(c||!h)&&a(s),c&&2===p)return new Tt(e,this.keyHash,u[1^d]);var f=e&&e===this.ownerID,m=f?u:Ue(u);return h?c?d===p-1?m.pop():m[d]=m.pop():m[d]=[r,o]:m.push([r,o]),f?(this.entries=m,this):new At(e,this.keyHash,m)};var Tt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};Tt.prototype.get=function(e,t,n,r){return le(n,this.entry[0])?this.entry[1]:r},Tt.prototype.update=function(e,t,n,r,o,s,l){var c=o===i,u=le(r,this.entry[0]);return(u?o===this.entry[1]:c)?this:(a(l),c?void a(s):u?e&&e===this.ownerID?(this.entry[1]=o,this):new Tt(e,this.keyHash,[r,o]):(a(s),Kt(this,e,t,de(r),[r,o])))},zt.prototype.iterate=At.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Pt.prototype.iterate=Dt.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Tt.prototype.iterate=function(e,t){return e(this.entry)};var It,Mt=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Ft(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this,t=this._type,n=this._stack;n;){var r=n.node,o=n.index++,i=void 0;if(r.entry){if(0===o)return Rt(t,r.entry)}else if(r.entries){if(o<=(i=r.entries.length-1))return Rt(t,r.entries[e._reverse?i-o:o])}else if(o<=(i=r.nodes.length-1)){var a=r.nodes[e._reverse?i-o:o];if(a){if(a.entry)return Rt(t,a.entry);n=e._stack=Ft(a,n)}continue}n=e._stack=e._stack.__prev}return{value:void 0,done:!0}},t}(O);function Rt(e,t){return j(e,t[0],t[1])}function Ft(e,t){return{node:e,index:0,__prev:t}}function Nt(e,t,n,r){var o=Object.create(kt);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Ot(){return It||(It=Nt(0))}function jt(e,t,n){var r,o;if(e._root){var a={value:!1},s={value:!1};if(r=Lt(e._root,e.__ownerID,0,void 0,t,n,a,s),!s.value)return e;o=e.size+(a.value?n===i?-1:1:0)}else{if(n===i)return e;o=1,r=new zt(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Nt(o,r):Ot()}function Lt(e,t,n,r,o,s,l,c){return e?e.update(t,n,r,o,s,l,c):s===i?e:(a(c),a(l),new Tt(t,r,[o,s]))}function Bt(e){return e.constructor===Tt||e.constructor===At}function Kt(e,t,n,r,i){if(e.keyHash===r)return new At(t,r,[e.entry,i]);var a,s=(0===n?e.keyHash:e.keyHash>>>n)&o,l=(0===n?r:r>>>n)&o,c=s===l?[Kt(e,t,n+5,r,i)]:(a=new Tt(t,r,i),s<l?[e,a]:[a,e]);return new Pt(t,1<<s|1<<l,c)}function Vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ht(e,t,n,r){var o=r?e:Ue(e);return o[t]=n,o}var $t=8,Ut=16,Zt=8,qt="@@__IMMUTABLE_LIST__@@";function Gt(e){return Boolean(e&&e[qt])}var Wt=function(e){function t(t){var n=nn();if(null==t)return n;if(Gt(t))return t;var o=e(t),i=o.size;return 0===i?n:(qe(i),i>0&&i<r?tn(0,i,5,null,new Xt(o.toArray())):n.withMutations((function(e){e.setSize(i),o.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=c(this,e))>=0&&e<this.size){var n=an(this,e+=this._origin);return n&&n.array[e&o]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=c(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?sn(e,t).set(0,n):sn(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i={value:!1};t>=ln(e._capacity)?r=rn(r,e.__ownerID,0,t,n,i):o=rn(o,e.__ownerID,e._level,t,n,i);if(!i.value)return e;if(e.__ownerID)return e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return tn(e._origin,e._capacity,e._level,o,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):nn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){sn(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return sn(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){sn(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return sn(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var o=t[r],i=e("string"!=typeof o&&B(o)?o:[o]);0!==i.size&&n.push(i)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return sn(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var o=0;o<n.size;o++)r.set(o,e.call(t,r.get(o),o,r))}))},t.prototype.slice=function(e,t){var n=this.size;return d(e,t,n)?this:sn(this,p(e,n),h(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=en(this,t);return new O((function(){var o=r();return o===Jt?{value:void 0,done:!0}:j(e,t?--n:n++,o)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,o=en(this,t);(n=o())!==Jt&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?tn(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?nn():(this.__ownerID=e,this.__altered=!1,this)},t}(E);Wt.isList=Gt;var Yt=Wt.prototype;Yt[qt]=!0,Yt.delete=Yt.remove,Yt.merge=Yt.concat,Yt.setIn=at,Yt.deleteIn=Yt.removeIn=lt,Yt.update=ut,Yt.updateIn=dt,Yt.mergeIn=bt,Yt.mergeDeepIn=wt,Yt.withMutations=xt,Yt.wasAltered=Ct,Yt.asImmutable=St,Yt["@@transducer/init"]=Yt.asMutable=_t,Yt["@@transducer/step"]=function(e,t){return e.push(t)},Yt["@@transducer/result"]=function(e){return e.asImmutable()};var Xt=function(e,t){this.array=e,this.ownerID=t};Xt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&o;if(r>=this.array.length)return new Xt([],e);var i,a=0===r;if(t>0){var s=this.array[r];if((i=s&&s.removeBefore(e,t-5,n))===s&&a)return this}if(a&&!i)return this;var l=on(this,e);if(!a)for(var c=0;c<r;c++)l.array[c]=void 0;return i&&(l.array[r]=i),l},Xt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&o;if(i>=this.array.length)return this;if(t>0){var a=this.array[i];if((r=a&&a.removeAfter(e,t-5,n))===a&&i===this.array.length-1)return this}var s=on(this,e);return s.array.splice(i+1),r&&(s.array[i]=r),s};var Qt,Jt={};function en(e,t){var n=e._origin,o=e._capacity,i=ln(o),a=e._tail;return s(e._root,e._level,0);function s(e,l,c){return 0===l?function(e,s){var l=s===i?a&&a.array:e&&e.array,c=s>n?0:n-s,u=o-s;u>r&&(u=r);return function(){if(c===u)return Jt;var e=t?--u:c++;return l&&l[e]}}(e,c):function(e,i,a){var l,c=e&&e.array,u=a>n?0:n-a>>i,d=1+(o-a>>i);d>r&&(d=r);return function(){for(;;){if(l){var e=l();if(e!==Jt)return e;l=null}if(u===d)return Jt;var n=t?--d:u++;l=s(c&&c[n],i-5,a+(n<<i))}}}(e,l,c)}}function tn(e,t,n,r,o,i,a){var s=Object.create(Yt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function nn(){return Qt||(Qt=tn(0,0,5))}function rn(e,t,n,r,i,s){var l,c=r>>>n&o,u=e&&c<e.array.length;if(!u&&void 0===i)return e;if(n>0){var d=e&&e.array[c],p=rn(d,t,n-5,r,i,s);return p===d?e:((l=on(e,t)).array[c]=p,l)}return u&&e.array[c]===i?e:(s&&a(s),l=on(e,t),void 0===i&&c===l.array.length-1?l.array.pop():l.array[c]=i,l)}function on(e,t){return t&&e&&t===e.ownerID?e:new Xt(e?e.array.slice():[],t)}function an(e,t){if(t>=ln(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&o],r-=5;return n}}function sn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new s,i=e._origin,a=e._capacity,l=i+t,c=void 0===n?a:n<0?a+n:i+n;if(l===i&&c===a)return e;if(l>=c)return e.clear();for(var u=e._level,d=e._root,p=0;l+p<0;)d=new Xt(d&&d.array.length?[void 0,d]:[],r),p+=1<<(u+=5);p&&(l+=p,i+=p,c+=p,a+=p);for(var h=ln(a),f=ln(c);f>=1<<u+5;)d=new Xt(d&&d.array.length?[d]:[],r),u+=5;var m=e._tail,g=f<h?an(e,c-1):f>h?new Xt([],r):m;if(m&&f>h&&l<a&&m.array.length){for(var v=d=on(d,r),y=u;y>5;y-=5){var b=h>>>y&o;v=v.array[b]=on(v.array[b],r)}v.array[h>>>5&o]=m}if(c<a&&(g=g&&g.removeAfter(r,0,c)),l>=f)l-=f,c-=f,u=5,d=null,g=g&&g.removeBefore(r,0,l);else if(l>i||f<h){for(p=0;d;){var w=l>>>u&o;if(w!==f>>>u&o)break;w&&(p+=(1<<u)*w),u-=5,d=d.array[w]}d&&l>i&&(d=d.removeBefore(r,u,l-p)),d&&f<h&&(d=d.removeAfter(r,u,f-p)),p&&(l-=p,c-=p)}return e.__ownerID?(e.size=c-l,e._origin=l,e._capacity=c,e._level=u,e._root=d,e._tail=g,e.__hash=void 0,e.__altered=!0,e):tn(l,c,u,d,g)}function ln(e){return e<r?0:e-1>>>5<<5}var cn,un=function(e){function t(e){return null==e?pn():ae(e)?e:pn().withMutations((function(t){var n=C(e);qe(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):pn()},t.prototype.set=function(e,t){return hn(this,e,t)},t.prototype.remove=function(e){return hn(this,e,i)},t.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?dn(t,n,e,this.__hash):0===this.size?pn():(this.__ownerID=e,this._map=t,this._list=n,this)},t}(Et);function dn(e,t,n,r){var o=Object.create(un.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function pn(){return cn||(cn=dn(Ot(),nn()))}function hn(e,t,n){var o,a,s=e._map,l=e._list,c=s.get(t),u=void 0!==c;if(n===i){if(!u)return e;l.size>=r&&l.size>=2*s.size?(o=(a=l.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(o.__ownerID=a.__ownerID=e.__ownerID)):(o=s.remove(t),a=c===l.size-1?l.pop():l.set(c,void 0))}else if(u){if(n===l.get(c)[1])return e;o=s,a=l.set(c,[t,n])}else o=s.set(t,l.size),a=l.set(l.size,[t,n]);return e.__ownerID?(e.size=o.size,e._map=o,e._list=a,e.__hash=void 0,e):dn(o,a)}un.isOrderedMap=ae,un.prototype[I]=!0,un.prototype.delete=un.prototype.remove;var fn="@@__IMMUTABLE_STACK__@@";function mn(e){return Boolean(e&&e[fn])}var gn=function(e){function t(e){return null==e?wn():mn(e)?e:wn().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=c(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):bn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&mn(t))return t;qe(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):bn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):wn()},t.prototype.slice=function(t,n){if(d(t,n,this.size))return this;var r=p(t,this.size);if(h(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):bn(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?bn(this.size,this._head,e,this.__hash):0===this.size?wn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new Y(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,o=this._head;o&&!1!==e(o.value,r++,n);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new Y(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new O((function(){if(r){var t=r.value;return r=r.next,j(e,n++,t)}return{value:void 0,done:!0}}))},t}(E);gn.isStack=mn;var vn,yn=gn.prototype;function bn(e,t,n,r){var o=Object.create(yn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function wn(){return vn||(vn=bn(0))}yn[fn]=!0,yn.shift=yn.pop,yn.unshift=yn.push,yn.unshiftAll=yn.pushAll,yn.withMutations=xt,yn.wasAltered=Ct,yn.asImmutable=St,yn["@@transducer/init"]=yn.asMutable=_t,yn["@@transducer/step"]=function(e,t){return e.unshift(t)},yn["@@transducer/result"]=function(e){return e.asImmutable()};var xn="@@__IMMUTABLE_SET__@@";function _n(e){return Boolean(e&&e[xn])}function Sn(e){return _n(e)&&M(e)}function Cn(e,t){if(e===t)return!0;if(!v(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||b(e)!==b(t)||x(e)!==x(t)||M(e)!==M(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!_(e);if(M(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&le(o[1],e)&&(n||le(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var a=e;e=t,t=a}var s=!0,l=t.__iterate((function(t,r){if(n?!e.has(t):o?!le(t,e.get(r,i)):!le(e.get(r,i),t))return s=!1,!1}));return s&&e.size===l}function En(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function kn(e){if(!e||"object"!=typeof e)return e;if(!v(e)){if(!Ye(e))return e;e=Z(e)}if(b(e)){var t={};return e.__iterate((function(e,n){t[n]=kn(e)})),t}var n=[];return e.__iterate((function(e){n.push(kn(e))})),n}var zn=function(e){function t(t){return null==t?In():_n(t)&&!M(t)?t:In().withMutations((function(n){var r=e(t);qe(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(C(e).keySeq())},t.intersect=function(e){return(e=S(e).toArray()).length?Dn.intersect.apply(t(e.pop()),e):In()},t.union=function(e){return(e=S(e).toArray()).length?Dn.union.apply(t(e.pop()),e):In()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return An(this,this._map.set(e,e))},t.prototype.remove=function(e){return An(this,this._map.remove(e))},t.prototype.clear=function(){return An(this,this._map.clear())},t.prototype.map=function(e,t){var n=this;return An(this,this._map.map((function(t){return e(t,t,n)}),t))},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return Yn(Fe(this,e))},t.prototype.sortBy=function(e,t){return Yn(Fe(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(k);zn.isSet=_n;var Pn,Dn=zn.prototype;function An(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Tn(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Pn||(Pn=Tn(Ot()))}Dn[xn]=!0,Dn.delete=Dn.remove,Dn.merge=Dn.concat=Dn.union,Dn.withMutations=xt,Dn.asImmutable=St,Dn["@@transducer/init"]=Dn.asMutable=_t,Dn["@@transducer/step"]=function(e,t){return e.add(t)},Dn["@@transducer/result"]=function(e){return e.asImmutable()},Dn.__empty=In,Dn.__make=Tn;var Mn,Rn=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(Ze(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(Mn)return Mn;Mn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+c(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return d(e,n,this.size)?this:(e=p(e,this.size),(n=h(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;i!==n&&!1!==e(o,t?n-++i:i++,this);)o+=t?-r:r;return i},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;return new O((function(){if(i===n)return{value:void 0,done:!0};var a=o;return o+=t?-r:r,j(e,t?n-++i:i++,a)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Cn(this,e)},t}(G);function Fn(e,t,n){for(var r=Ge(t),o=0;o!==r.length;)if((e=Je(e,r[o++],i))===i)return n;return e}function Nn(e,t){return Fn(this,e,t)}function On(e,t){return Fn(e,t,i)!==i}function jn(){qe(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}S.isIterable=v,S.isKeyed=b,S.isIndexed=x,S.isAssociative=_,S.isOrdered=M,S.Iterator=O,En(S,{toArray:function(){qe(this.size);var e=new Array(this.size||0),t=b(this),n=0;return this.__iterate((function(r,o){e[n++]=t?[o,r]:r})),e},toIndexedSeq:function(){return new Ce(this)},toJS:function(){return kn(this)},toKeyedSeq:function(){return new Se(this,!0)},toMap:function(){return Et(this.toKeyedSeq())},toObject:jn,toOrderedMap:function(){return un(this.toKeyedSeq())},toOrderedSet:function(){return Yn(b(this)?this.valueSeq():this)},toSet:function(){return zn(b(this)?this.valueSeq():this)},toSetSeq:function(){return new Ee(this)},toSeq:function(){return x(this)?this.toIndexedSeq():b(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return gn(b(this)?this.valueSeq():this)},toList:function(){return Wt(b(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Le(this,Me(this,e))},includes:function(e){return this.some((function(t){return le(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){qe(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return Le(this,Ae(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return qe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){qe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Le(this,Pe(this,e,t))},reduce:function(e,t,n){return Vn(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Vn(this,e,t,n,arguments.length<2,!0)},reverse:function(){return Le(this,De(this,!0))},slice:function(e,t){return Le(this,Te(this,e,t,!0))},some:function(e,t){return!this.every(Un(e),t)},sort:function(e){return Le(this,Fe(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return l(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Et().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return Cn(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Y(e._cache);var t=e.toSeq().map($n).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Un(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(u,null,e)},flatMap:function(e,t){return Le(this,function(e,t,n){var r=Ke(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Le(this,Re(this,e,!0))},fromEntrySeq:function(){return new ke(this)},get:function(e,t){return this.find((function(t,n){return le(n,e)}),void 0,t)},getIn:Nn,groupBy:function(e,t){return function(e,t,n){var r=b(e),o=(M(e)?un():Et()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=Ke(e);return o.map((function(t){return Le(e,i(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,i)!==i},hasIn:function(e){return On(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:S(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:S(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return le(t,e)}))},keySeq:function(){return this.toSeq().map(Hn).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Ne(this,e)},maxBy:function(e,t){return Ne(this,t,e)},min:function(e){return Ne(this,e?Zn(e):Gn)},minBy:function(e,t){return Ne(this,t?Zn(t):Gn,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return Le(this,Ie(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Un(e),t)},sortBy:function(e,t){return Le(this,Fe(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return Le(this,function(e,t,n){var r=Ve(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(2,o),s=!0;return new O((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,l=o[0],c=o[1];return t.call(n,c,l,i)?2===r?e:j(r,l,c,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Un(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=M(e),n=b(e),r=t?1:0;return function(e,t){return t=ce(t,3432918353),t=ce(t<<15|t>>>-15,461845907),t=ce(t<<13|t>>>-13,5),t=ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ue((t=ce(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Wn(de(e),de(t))|0}:function(e,t){r=r+Wn(de(e),de(t))|0}:t?function(e){r=31*r+de(e)|0}:function(e){r=r+de(e)|0}),r)}(this))}});var Ln=S.prototype;Ln[g]=!0,Ln[N]=Ln.values,Ln.toJSON=Ln.toArray,Ln.__toStringMapper=Xe,Ln.inspect=Ln.toSource=function(){return this.toString()},Ln.chain=Ln.flatMap,Ln.contains=Ln.includes,En(C,{flip:function(){return Le(this,ze(this))},mapEntries:function(e,t){var n=this,r=0;return Le(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Le(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Bn=C.prototype;Bn[y]=!0,Bn[N]=Ln.entries,Bn.toJSON=jn,Bn.__toStringMapper=function(e,t){return Xe(t)+": "+Xe(e)},En(E,{toKeyedSeq:function(){return new Se(this,!1)},filter:function(e,t){return Le(this,Ae(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Le(this,De(this,!1))},slice:function(e,t){return Le(this,Te(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=p(e,e<0?this.count():this.size);var r=this.slice(0,e);return Le(this,1===n?r:r.concat(Ue(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Le(this,Re(this,e,!1))},get:function(e,t){return(e=c(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=c(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Le(this,function(e,t){var n=Ve(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(1,r),a=0;return new O((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?j(n,a++,t):j(n,a++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(Ue(arguments)),t=je(this.toSeq(),G.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Le(this,n)},keySeq:function(){return Rn(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return Le(this,Ie(this,e,t,!1))},zip:function(){var e=[this].concat(Ue(arguments));return Le(this,je(this,qn,e))},zipAll:function(){var e=[this].concat(Ue(arguments));return Le(this,je(this,qn,e,!0))},zipWith:function(e){var t=Ue(arguments);return t[0]=this,Le(this,je(this,e,t))}});var Kn=E.prototype;function Vn(e,t,n,r,o,i){return qe(e.size),e.__iterate((function(e,i,a){o?(o=!1,n=e):n=t.call(r,n,e,i,a)}),i),n}function Hn(e,t){return t}function $n(e,t){return[t,e]}function Un(e){return function(){return!e.apply(this,arguments)}}function Zn(e){return function(){return-e.apply(this,arguments)}}function qn(){return Ue(arguments)}function Gn(e,t){return e<t?1:e>t?-1:0}function Wn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Kn[w]=!0,Kn[I]=!0,En(k,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),k.prototype.has=Ln.includes,k.prototype.contains=k.prototype.includes,En(q,C.prototype),En(G,E.prototype),En(W,k.prototype);var Yn=function(e){function t(e){return null==e?er():Sn(e)?e:er().withMutations((function(t){var n=k(e);qe(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(C(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(zn);Yn.isOrderedSet=Sn;var Xn,Qn=Yn.prototype;function Jn(e,t){var n=Object.create(Qn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function er(){return Xn||(Xn=Jn(pn()))}Qn[I]=!0,Qn.zip=Kn.zip,Qn.zipWith=Kn.zipWith,Qn.__empty=er,Qn.__make=Jn;var tr=function(e,t){var n,r=function(i){var a=this;if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var s=Object.keys(e),l=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var c=0;c<s.length;c++){var u=s[c];l[u]=c,o[u]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+or(a)+' with property "'+u+'" since that property name is part of the Record API.'):ar(o,u)}}this.__ownerID=void 0,this._values=Wt().withMutations((function(e){e.setSize(a._keys.length),C(i).forEach((function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)}))}))},o=r.prototype=Object.create(nr);return o.constructor=r,r};tr.prototype.toString=function(){for(var e,t=or(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)t+=(r?", ":"")+(e=n[r])+": "+Xe(this.get(e));return t+" }"},tr.prototype.equals=function(e){return this===e||e&&this._keys===e._keys&&ir(this).equals(ir(e))},tr.prototype.hashCode=function(){return ir(this).hashCode()},tr.prototype.has=function(e){return this._indices.hasOwnProperty(e)},tr.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},tr.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return rr(this,n)}return this},tr.prototype.remove=function(e){return this.set(e)},tr.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:rr(this,e)},tr.prototype.wasAltered=function(){return this._values.wasAltered()},tr.prototype.toSeq=function(){return ir(this)},tr.prototype.toJS=function(){return kn(this)},tr.prototype.entries=function(){return this.__iterator(2)},tr.prototype.__iterator=function(e,t){return ir(this).__iterator(e,t)},tr.prototype.__iterate=function(e,t){return ir(this).__iterate(e,t)},tr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?rr(this,t,e):(this.__ownerID=e,this._values=t,this)},tr.isRecord=A,tr.getDescriptiveName=or;var nr=tr.prototype;function rr(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function or(e){return e._name||e.constructor.name||"Record"}function ir(e){return te(e._keys.map((function(t){return[t,e.get(t)]})))}function ar(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Ze(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}nr[D]=!0,nr.delete=nr.remove,nr.deleteIn=nr.removeIn=lt,nr.getIn=Nn,nr.hasIn=Ln.hasIn,nr.merge=pt,nr.mergeWith=ht,nr.mergeIn=bt,nr.mergeDeep=vt,nr.mergeDeepWith=yt,nr.mergeDeepIn=wt,nr.setIn=at,nr.update=ut,nr.updateIn=dt,nr.withMutations=xt,nr.asMutable=_t,nr.asImmutable=St,nr[N]=nr.entries,nr.toJSON=nr.toObject=Ln.toObject,nr.inspect=nr.toSource=function(){return this.toString()};var sr;!function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(sr)return sr;sr=this}}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return le(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return d(e,n,r)?this:new t(this._value,h(n,r)-p(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return le(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return le(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,o=0;return new O((function(){return o===r?{value:void 0,done:!0}:j(e,t?r-++o:o++,n._value)}))},t.prototype.equals=function(e){return e instanceof t?le(this._value,e._value):Cn(e)}}(G);function lr(e,t){return cr([],t||ur,e,"",t&&t.length>2?[]:void 0,{"":e})}function cr(e,t,n,r,o,i){var a=Array.isArray(n)?G:We(n)?q:null;if(a){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),o&&""!==r&&o.push(r);var s=t.call(i,r,a(n).map((function(r,i){return cr(e,t,r,i,o,n)})),o&&o.slice());return e.pop(),o&&o.pop(),s}return n}function ur(e,t){return b(t)?t.toMap():t.toList()}},18156:(e,t)=>{"use strict";for(var n="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),r={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=1;a<20;a++)i["f"+a]=111+a;function s(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return l(e,t)})),o=function(e){return r.some((function(t){return c(t,e)}))};return null==n?o:o(n)}function l(e,t){var n=t&&t.byKey,a={},s=(e=e.replace("++","+add")).split("+"),l=s.length;for(var c in r)a[r[c]]=!1;var p=!0,h=!1,f=void 0;try{for(var m,g=s[Symbol.iterator]();!(p=(m=g.next()).done);p=!0){var v=m.value,y=v.endsWith("?")&&v.length>1;y&&(v=v.slice(0,-1));var b=d(v),w=r[b];if(v.length>1&&!w&&!o[v]&&!i[b])throw new TypeError('Unknown modifier: "'+v+'"');1!==l&&w||(n?a.key=b:a.which=u(v)),w&&(a[w]=!y||null)}}catch(e){h=!0,f=e}finally{try{!p&&g.return&&g.return()}finally{if(h)throw f}}return a}function c(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&((null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r))return!1}return!0}function u(e){return e=d(e),i[e]||e.toUpperCase().charCodeAt(0)}function d(e){return e=e.toLowerCase(),e=o[e]||e}t.P6=s,t.TB=function(e,t){return s(e,{byKey:!0},t)}},35583:(e,t,n)=>{"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}n.d(t,{P:()=>o})},44276:(e,t,n)=>{"use strict";n.d(t,{DS:()=>O});const r="3.7.7",o="function"==typeof Buffer,i="function"==typeof TextDecoder?new TextDecoder:void 0,a="function"==typeof TextEncoder?new TextEncoder:void 0,s=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),l=(e=>{let t={};return e.forEach(((e,n)=>t[e]=n)),t})(s),c=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),d="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),p=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),h=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),f=e=>{let t,n,r,o,i="";const a=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|o,i+=s[t>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},m="function"==typeof btoa?e=>btoa(e):o?e=>Buffer.from(e,"binary").toString("base64"):f,g=o?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(u.apply(null,e.subarray(n,n+4096)));return m(t.join(""))},v=(e,t=!1)=>t?p(g(e)):g(e),y=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},b=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,w=e=>e.replace(b,y),x=o?e=>Buffer.from(e,"utf8").toString("base64"):a?e=>g(a.encode(e)):e=>m(w(e)),_=(e,t=!1)=>t?p(x(e)):x(e),S=e=>_(e,!0),C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,E=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u(55296+(t>>>10))+u(56320+(1023&t));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},k=e=>e.replace(C,E),z=e=>{if(e=e.replace(/\s+/g,""),!c.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n,r,o="";for(let i=0;i<e.length;)t=l[e.charAt(i++)]<<18|l[e.charAt(i++)]<<12|(n=l[e.charAt(i++)])<<6|(r=l[e.charAt(i++)]),o+=64===n?u(t>>16&255):64===r?u(t>>16&255,t>>8&255):u(t>>16&255,t>>8&255,255&t);return o},P="function"==typeof atob?e=>atob(h(e)):o?e=>Buffer.from(e,"base64").toString("binary"):z,D=o?e=>d(Buffer.from(e,"base64")):e=>d(P(e).split("").map((e=>e.charCodeAt(0)))),A=e=>D(I(e)),T=o?e=>Buffer.from(e,"base64").toString("utf8"):i?e=>i.decode(D(e)):e=>k(P(e)),I=e=>h(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),M=e=>T(I(e)),R=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),F=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,R(t));e("fromBase64",(function(){return M(this)})),e("toBase64",(function(e){return _(this,e)})),e("toBase64URI",(function(){return _(this,!0)})),e("toBase64URL",(function(){return _(this,!0)})),e("toUint8Array",(function(){return A(this)}))},N=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,R(t));e("toBase64",(function(e){return v(this,e)})),e("toBase64URI",(function(){return v(this,!0)})),e("toBase64URL",(function(){return v(this,!0)}))},O={version:r,VERSION:"3.7.7",atob:P,atobPolyfill:z,btoa:m,btoaPolyfill:f,fromBase64:M,toBase64:_,encode:_,encodeURI:S,encodeURL:S,utob:w,btou:k,decode:M,isValid:e=>{if("string"!=typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:v,toUint8Array:A,extendString:F,extendUint8Array:N,extendBuiltins:()=>{F(),N()}}},91296:(e,t,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,f=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function b(e){return c=e,s=setTimeout(x,t),u?y(e):a}function w(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function x(){var e=f();if(w(e))return _(e);s=setTimeout(x,function(e){var n=t-(e-l);return d?h(n,i-(e-c)):n}(e))}function _(e){return s=void 0,v&&r?y(e):(r=o=void 0,a)}function S(){var e=f(),n=w(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return b(l);if(d)return s=setTimeout(x,t),y(l)}return void 0===s&&(s=setTimeout(x,t)),a}return t=g(t)||0,m(n)&&(u=!!n.leading,i=(d="maxWait"in n)?p(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},S.flush=function(){return void 0===s?a:_(f())},S}},94150:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",f="[object Promise]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",b="[object WeakMap]",w="[object ArrayBuffer]",x="[object DataView]",_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/,C=/^\./,E=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,z=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,D={};D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D[i]=D[a]=D[w]=D[s]=D[x]=D[l]=D[c]=D[u]=D[d]=D[p]=D[h]=D[m]=D[g]=D[v]=D[b]=!1;var A="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,T="object"==typeof self&&self&&self.Object===Object&&self,I=A||T||Function("return this")(),M=t&&!t.nodeType&&t,R=M&&e&&!e.nodeType&&e,F=R&&R.exports===M&&A.process,N=function(){try{return F&&F.binding("util")}catch(e){}}(),O=N&&N.isTypedArray;function j(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function L(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function B(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function K(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var V,H,$,U=Array.prototype,Z=Function.prototype,q=Object.prototype,G=I["__core-js_shared__"],W=(V=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"",Y=Z.toString,X=q.hasOwnProperty,Q=q.toString,J=RegExp("^"+Y.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ee=I.Symbol,te=I.Uint8Array,ne=q.propertyIsEnumerable,re=U.splice,oe=(H=Object.keys,$=Object,function(e){return H($(e))}),ie=Oe(I,"DataView"),ae=Oe(I,"Map"),se=Oe(I,"Promise"),le=Oe(I,"Set"),ce=Oe(I,"WeakMap"),ue=Oe(Object,"create"),de=Ue(ie),pe=Ue(ae),he=Ue(se),fe=Ue(le),me=Ue(ce),ge=ee?ee.prototype:void 0,ve=ge?ge.valueOf:void 0,ye=ge?ge.toString:void 0;function be(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function we(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _e(e){var t=-1,n=e?e.length:0;for(this.__data__=new xe;++t<n;)this.add(e[t])}function Se(e){this.__data__=new we(e)}function Ce(e,t){var n=We(e)||Ge(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!X.call(e,i)||o&&("length"==i||Le(i,r))||n.push(i);return n}function Ee(e,t){for(var n=e.length;n--;)if(qe(e[n][0],t))return n;return-1}be.prototype.clear=function(){this.__data__=ue?ue(null):{}},be.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},be.prototype.get=function(e){var t=this.__data__;if(ue){var n=t[e];return n===r?void 0:n}return X.call(t,e)?t[e]:void 0},be.prototype.has=function(e){var t=this.__data__;return ue?void 0!==t[e]:X.call(t,e)},be.prototype.set=function(e,t){return this.__data__[e]=ue&&void 0===t?r:t,this},we.prototype.clear=function(){this.__data__=[]},we.prototype.delete=function(e){var t=this.__data__,n=Ee(t,e);return!(n<0)&&(n==t.length-1?t.pop():re.call(t,n,1),!0)},we.prototype.get=function(e){var t=this.__data__,n=Ee(t,e);return n<0?void 0:t[n][1]},we.prototype.has=function(e){return Ee(this.__data__,e)>-1},we.prototype.set=function(e,t){var n=this.__data__,r=Ee(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},xe.prototype.clear=function(){this.__data__={hash:new be,map:new(ae||we),string:new be}},xe.prototype.delete=function(e){return Ne(this,e).delete(e)},xe.prototype.get=function(e){return Ne(this,e).get(e)},xe.prototype.has=function(e){return Ne(this,e).has(e)},xe.prototype.set=function(e,t){return Ne(this,e).set(e,t),this},_e.prototype.add=_e.prototype.push=function(e){return this.__data__.set(e,r),this},_e.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.clear=function(){this.__data__=new we},Se.prototype.delete=function(e){return this.__data__.delete(e)},Se.prototype.get=function(e){return this.__data__.get(e)},Se.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.set=function(e,t){var n=this.__data__;if(n instanceof we){var r=n.__data__;if(!ae||r.length<199)return r.push([e,t]),this;n=this.__data__=new xe(r)}return n.set(e,t),this};var ke,ze=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[ke?a:++r];if(!1===t(o[s],s,o))break}return e};function Pe(e,t){for(var n=0,r=(t=Be(t,e)?[t]:Re(t)).length;null!=e&&n<r;)e=e[$e(t[n++])];return n&&n==r?e:void 0}function De(e,t){return null!=e&&t in Object(e)}function Ae(e,t,n,r,o){return e===t||(null==e||null==t||!Je(e)&&!et(t)?e!=e&&t!=t:function(e,t,n,r,o,u){var f=We(e),b=We(t),_=a,S=a;f||(_=(_=je(e))==i?h:_);b||(S=(S=je(t))==i?h:S);var C=_==h&&!L(e),E=S==h&&!L(t),k=_==S;if(k&&!C)return u||(u=new Se),f||nt(e)?Fe(e,t,n,r,o,u):function(e,t,n,r,o,i,a){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!r(new te(e),new te(t)));case s:case l:case p:return qe(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case v:return e==t+"";case d:var u=B;case g:var h=2&i;if(u||(u=K),e.size!=t.size&&!h)return!1;var f=a.get(e);if(f)return f==t;i|=1,a.set(e,t);var b=Fe(u(e),u(t),r,o,i,a);return a.delete(e),b;case y:if(ve)return ve.call(e)==ve.call(t)}return!1}(e,t,_,n,r,o,u);if(!(2&o)){var z=C&&X.call(e,"__wrapped__"),P=E&&X.call(t,"__wrapped__");if(z||P){var D=z?e.value():e,A=P?t.value():t;return u||(u=new Se),n(D,A,r,o,u)}}if(!k)return!1;return u||(u=new Se),function(e,t,n,r,o,i){var a=2&o,s=rt(e),l=s.length,c=rt(t).length;if(l!=c&&!a)return!1;var u=l;for(;u--;){var d=s[u];if(!(a?d in t:X.call(t,d)))return!1}var p=i.get(e);if(p&&i.get(t))return p==t;var h=!0;i.set(e,t),i.set(t,e);var f=a;for(;++u<l;){var m=e[d=s[u]],g=t[d];if(r)var v=a?r(g,m,d,t,e,i):r(m,g,d,e,t,i);if(!(void 0===v?m===g||n(m,g,r,o,i):v)){h=!1;break}f||(f="constructor"==d)}if(h&&!f){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,o,u)}(e,t,Ae,n,r,o))}function Te(e){return!(!Je(e)||function(e){return!!W&&W in e}(e))&&(Xe(e)||L(e)?J:z).test(Ue(e))}function Ie(e){return"function"==typeof e?e:null==e?ot:"object"==typeof e?We(e)?function(e,t){if(Be(e)&&Ke(t))return Ve($e(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:Pe(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){t=Be(t,e)?[t]:Re(t);var r,o=-1,i=t.length;for(;++o<i;){var a=$e(t[o]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;return!!(i=e?e.length:0)&&Qe(i)&&Le(a,i)&&(We(e)||Ge(e))}(e,t,De)}(n,e):Ae(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){var t=rt(e),n=t.length;for(;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ke(o)]}return t}(e);if(1==t.length&&t[0][2])return Ve(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new Se;if(r)var p=r(c,u,l,e,t,d);if(!(void 0===p?Ae(u,c,r,3,d):p))return!1}}return!0}(n,e,t)}}(e):Be(t=e)?(n=$e(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Pe(t,e)}}(t);var t,n}function Me(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||q,t!==r)return oe(e);var t,n,r,o=[];for(var i in Object(e))X.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Re(e){return We(e)?e:He(e)}function Fe(e,t,n,r,o,i){var a=2&o,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,p=1&o?new _e:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var h=e[u],f=t[u];if(r)var m=a?r(f,h,u,t,e,i):r(h,f,u,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!j(t,(function(e,t){if(!p.has(t)&&(h===e||n(h,e,r,o,i)))return p.add(t)}))){d=!1;break}}else if(h!==f&&!n(h,f,r,o,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Ne(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Oe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Te(n)?n:void 0}var je=function(e){return Q.call(e)};function Le(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function Be(e,t){if(We(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!tt(e))||(S.test(e)||!_.test(e)||null!=t&&e in Object(t))}function Ke(e){return e==e&&!Je(e)}function Ve(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(ie&&je(new ie(new ArrayBuffer(1)))!=x||ae&&je(new ae)!=d||se&&je(se.resolve())!=f||le&&je(new le)!=g||ce&&je(new ce)!=b)&&(je=function(e){var t=Q.call(e),n=t==h?e.constructor:void 0,r=n?Ue(n):void 0;if(r)switch(r){case de:return x;case pe:return d;case he:return f;case fe:return g;case me:return b}return t});var He=Ze((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(tt(e))return ye?ye.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return C.test(e)&&n.push(""),e.replace(E,(function(e,t,r,o){n.push(r?o.replace(k,"$1"):t||e)})),n}));function $e(e){if("string"==typeof e||tt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ue(e){if(null!=e){try{return Y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ze(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(Ze.Cache||xe),n}function qe(e,t){return e===t||e!=e&&t!=t}function Ge(e){return function(e){return et(e)&&Ye(e)}(e)&&X.call(e,"callee")&&(!ne.call(e,"callee")||Q.call(e)==i)}Ze.Cache=xe;var We=Array.isArray;function Ye(e){return null!=e&&Qe(e.length)&&!Xe(e)}function Xe(e){var t=Je(e)?Q.call(e):"";return t==u||"[object GeneratorFunction]"==t}function Qe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Je(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function et(e){return!!e&&"object"==typeof e}function tt(e){return"symbol"==typeof e||et(e)&&Q.call(e)==y}var nt=O?function(e){return function(t){return e(t)}}(O):function(e){return et(e)&&Qe(e.length)&&!!D[Q.call(e)]};function rt(e){return Ye(e)?Ce(e):Me(e)}function ot(e){return e}e.exports=function(e,t){var n={};return t=Ie(t),function(e,t){e&&ze(e,t,rt)}(e,(function(e,r,o){n[r]=t(e,r,o)})),n}},18552:(e,t,n)=>{var r=n(10852)(n(55639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(51789),o=n(80401),i=n(57667),a=n(21327),s=n(81866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},38407:(e,t,n)=>{var r=n(27040),o=n(14125),i=n(82117),a=n(67518),s=n(13399);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},57071:(e,t,n)=>{var r=n(10852)(n(55639),"Map");e.exports=r},83369:(e,t,n)=>{var r=n(24785),o=n(11285),i=n(96e3),a=n(49916),s=n(95265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},53818:(e,t,n)=>{var r=n(10852)(n(55639),"Promise");e.exports=r},58525:(e,t,n)=>{var r=n(10852)(n(55639),"Set");e.exports=r},88668:(e,t,n)=>{var r=n(83369),o=n(90619),i=n(72385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},46384:(e,t,n)=>{var r=n(38407),o=n(37465),i=n(63779),a=n(67599),s=n(44758),l=n(34309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},62705:(e,t,n)=>{var r=n(55639).Symbol;e.exports=r},11149:(e,t,n)=>{var r=n(55639).Uint8Array;e.exports=r},70577:(e,t,n)=>{var r=n(10852)(n(55639),"WeakMap");e.exports=r},96874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},44174:e=>{e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}},77412:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},34963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},14636:(e,t,n)=>{var r=n(22545),o=n(35694),i=n(1469),a=n(44144),s=n(65776),l=n(36719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,f=h?r(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},29932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},62488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},82908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},86556:(e,t,n)=>{var r=n(89465),o=n(77813);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},34865:(e,t,n)=>{var r=n(89465),o=n(77813),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},18470:(e,t,n)=>{var r=n(77813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},81119:(e,t,n)=>{var r=n(89881);e.exports=function(e,t,n,o){return r(e,(function(e,r,i){t(o,e,n(e),i)})),o}},44037:(e,t,n)=>{var r=n(98363),o=n(3674);e.exports=function(e,t){return e&&r(t,o(t),e)}},63886:(e,t,n)=>{var r=n(98363),o=n(81704);e.exports=function(e,t){return e&&r(t,o(t),e)}},89465:(e,t,n)=>{var r=n(38777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},85990:(e,t,n)=>{var r=n(46384),o=n(77412),i=n(34865),a=n(44037),s=n(63886),l=n(64626),c=n(278),u=n(18805),d=n(1911),p=n(58234),h=n(46904),f=n(64160),m=n(43824),g=n(29148),v=n(38517),y=n(1469),b=n(44144),w=n(56688),x=n(13218),_=n(72928),S=n(3674),C=n(81704),E="[object Arguments]",k="[object Function]",z="[object Object]",P={};P[E]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[z]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[k]=P["[object WeakMap]"]=!1,e.exports=function e(t,n,D,A,T,I){var M,R=1&n,F=2&n,N=4&n;if(D&&(M=T?D(t,A,T,I):D(t)),void 0!==M)return M;if(!x(t))return t;var O=y(t);if(O){if(M=m(t),!R)return c(t,M)}else{var j=f(t),L=j==k||"[object GeneratorFunction]"==j;if(b(t))return l(t,R);if(j==z||j==E||L&&!T){if(M=F||L?{}:v(t),!R)return F?d(t,s(M,t)):u(t,a(M,t))}else{if(!P[j])return T?t:{};M=g(t,j,R)}}I||(I=new r);var B=I.get(t);if(B)return B;I.set(t,M),_(t)?t.forEach((function(r){M.add(e(r,n,D,r,t,I))})):w(t)&&t.forEach((function(r,o){M.set(o,e(r,n,D,o,t,I))}));var K=O?void 0:(N?F?h:p:F?C:S)(t);return o(K||t,(function(r,o){K&&(r=t[o=r]),i(M,o,e(r,n,D,o,t,I))})),M}},3118:(e,t,n)=>{var r=n(13218),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},89881:(e,t,n)=>{var r=n(47816),o=n(99291)(r);e.exports=o},21078:(e,t,n)=>{var r=n(62488),o=n(37285);e.exports=function e(t,n,i,a,s){var l=-1,c=t.length;for(i||(i=o),s||(s=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},28483:(e,t,n)=>{var r=n(25063)();e.exports=r},47816:(e,t,n)=>{var r=n(28483),o=n(3674);e.exports=function(e,t){return e&&r(e,t,o)}},97786:(e,t,n)=>{var r=n(71811),o=n(40327);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},68866:(e,t,n)=>{var r=n(62488),o=n(1469);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},44239:(e,t,n)=>{var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},9454:(e,t,n)=>{var r=n(44239),o=n(37005);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},90939:(e,t,n)=>{var r=n(2492),o=n(37005);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},2492:(e,t,n)=>{var r=n(46384),o=n(67114),i=n(18351),a=n(16096),s=n(64160),l=n(1469),c=n(44144),u=n(36719),d="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),w=y?p:s(e),x=b?p:s(t),_=(w=w==d?h:w)==h,S=(x=x==d?h:x)==h,C=w==x;if(C&&c(e)){if(!c(t))return!1;y=!0,_=!1}if(C&&!_)return v||(v=new r),y||u(e)?o(e,t,n,m,g,v):i(e,t,w,n,m,g,v);if(!(1&n)){var E=_&&f.call(e,"__wrapped__"),k=S&&f.call(t,"__wrapped__");if(E||k){var z=E?e.value():e,P=k?t.value():t;return v||(v=new r),g(z,P,n,m,v)}}return!!C&&(v||(v=new r),a(e,t,n,m,g,v))}},25588:(e,t,n)=>{var r=n(64160),o=n(37005);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},2958:(e,t,n)=>{var r=n(46384),o=n(90939);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var h=new r;if(i)var f=i(d,p,u,e,t,h);if(!(void 0===f?o(p,d,3,i,h):f))return!1}}return!0}},28458:(e,t,n)=>{var r=n(23560),o=n(15346),i=n(13218),a=n(80346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:s).test(a(e))}},29221:(e,t,n)=>{var r=n(64160),o=n(37005);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},38749:(e,t,n)=>{var r=n(44239),o=n(41780),i=n(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},67206:(e,t,n)=>{var r=n(91573),o=n(16432),i=n(6557),a=n(1469),s=n(39601);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},280:(e,t,n)=>{var r=n(25726),o=n(86916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},10313:(e,t,n)=>{var r=n(13218),o=n(25726),i=n(33498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},69199:(e,t,n)=>{var r=n(89881),o=n(98612);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},91573:(e,t,n)=>{var r=n(2958),o=n(1499),i=n(42634);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},16432:(e,t,n)=>{var r=n(90939),o=n(27361),i=n(79095),a=n(15403),s=n(89162),l=n(42634),c=n(40327);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},42980:(e,t,n)=>{var r=n(46384),o=n(86556),i=n(28483),a=n(59783),s=n(13218),l=n(81704),c=n(36390);e.exports=function e(t,n,u,d,p){t!==n&&i(n,(function(i,l){if(p||(p=new r),s(i))a(t,n,l,u,e,d,p);else{var h=d?d(c(t,l),i,l+"",t,n,p):void 0;void 0===h&&(h=i),o(t,l,h)}}),l)}},59783:(e,t,n)=>{var r=n(86556),o=n(64626),i=n(77133),a=n(278),s=n(38517),l=n(35694),c=n(1469),u=n(29246),d=n(44144),p=n(23560),h=n(13218),f=n(68630),m=n(36719),g=n(36390),v=n(59881);e.exports=function(e,t,n,y,b,w,x){var _=g(e,n),S=g(t,n),C=x.get(S);if(C)r(e,n,C);else{var E=w?w(_,S,n+"",e,t,x):void 0,k=void 0===E;if(k){var z=c(S),P=!z&&d(S),D=!z&&!P&&m(S);E=S,z||P||D?c(_)?E=_:u(_)?E=a(_):P?(k=!1,E=o(S,!0)):D?(k=!1,E=i(S,!0)):E=[]:f(S)||l(S)?(E=_,l(_)?E=v(_):h(_)&&!p(_)||(E=s(S))):k=!1}k&&(x.set(S,E),b(E,S,y,w,x),x.delete(S)),r(e,n,E)}}},40371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},79152:(e,t,n)=>{var r=n(97786);e.exports=function(e){return function(t){return r(t,e)}}},5976:(e,t,n)=>{var r=n(6557),o=n(45357),i=n(30061);e.exports=function(e,t){return i(o(e,t,r),e+"")}},56560:(e,t,n)=>{var r=n(75703),o=n(38777),i=n(6557),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},14259:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},22545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},80531:(e,t,n)=>{var r=n(62705),o=n(29932),i=n(1469),a=n(33448),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},27561:(e,t,n)=>{var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},57406:(e,t,n)=>{var r=n(71811),o=n(10928),i=n(40292),a=n(40327);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},47415:(e,t,n)=>{var r=n(29932);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},74757:e=>{e.exports=function(e,t){return e.has(t)}},71811:(e,t,n)=>{var r=n(1469),o=n(15403),i=n(55514),a=n(79833);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},74318:(e,t,n)=>{var r=n(11149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},64626:(e,t,n)=>{e=n.nmd(e);var r=n(55639),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},57157:(e,t,n)=>{var r=n(74318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},93147:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},40419:(e,t,n)=>{var r=n(62705),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},77133:(e,t,n)=>{var r=n(74318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},98363:(e,t,n)=>{var r=n(34865),o=n(89465);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},18805:(e,t,n)=>{var r=n(98363),o=n(99551);e.exports=function(e,t){return r(e,o(e),t)}},1911:(e,t,n)=>{var r=n(98363),o=n(51442);e.exports=function(e,t){return r(e,o(e),t)}},14429:(e,t,n)=>{var r=n(55639)["__core-js_shared__"];e.exports=r},55189:(e,t,n)=>{var r=n(44174),o=n(81119),i=n(67206),a=n(1469);e.exports=function(e,t){return function(n,s){var l=a(n)?r:o,c=t?t():{};return l(n,e,i(s,2),c)}}},21463:(e,t,n)=>{var r=n(5976),o=n(16612);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}},99291:(e,t,n)=>{var r=n(98612);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},25063:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},92052:(e,t,n)=>{var r=n(42980),o=n(13218);e.exports=function e(t,n,i,a,s,l){return o(t)&&o(n)&&(l.set(n,t),r(t,n,void 0,e,l),l.delete(n)),t}},60696:(e,t,n)=>{var r=n(68630);e.exports=function(e){return r(e)?void 0:e}},38777:(e,t,n)=>{var r=n(10852),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},67114:(e,t,n)=>{var r=n(88668),o=n(82908),i=n(74757);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var f=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var v=e[f],y=t[f];if(a)var b=c?a(y,v,f,t,e,l):a(v,y,f,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},18351:(e,t,n)=>{var r=n(62705),o=n(11149),i=n(77813),a=n(67114),s=n(68776),l=n(21814),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var f=1&r;if(h||(h=l),e.size!=t.size&&!f)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var g=a(h(e),h(t),r,c,d,p);return p.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},16096:(e,t,n)=>{var r=n(58234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:o.call(t,p)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var v=e[p=c[d]],y=t[p];if(i)var b=l?i(y,v,p,t,e,s):i(v,y,p,e,t,s);if(!(void 0===b?v===y||a(v,y,n,i,s):b)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},99021:(e,t,n)=>{var r=n(85564),o=n(45357),i=n(30061);e.exports=function(e){return i(o(e,void 0,r),e+"")}},31957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},58234:(e,t,n)=>{var r=n(68866),o=n(99551),i=n(3674);e.exports=function(e){return r(e,i,o)}},46904:(e,t,n)=>{var r=n(68866),o=n(51442),i=n(81704);e.exports=function(e){return r(e,i,o)}},45050:(e,t,n)=>{var r=n(37019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:(e,t,n)=>{var r=n(89162),o=n(3674);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},10852:(e,t,n)=>{var r=n(28458),o=n(47801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},85924:(e,t,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},89607:(e,t,n)=>{var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},99551:(e,t,n)=>{var r=n(34963),o=n(70479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},51442:(e,t,n)=>{var r=n(62488),o=n(85924),i=n(99551),a=n(70479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},64160:(e,t,n)=>{var r=n(18552),o=n(57071),i=n(53818),a=n(58525),s=n(70577),l=n(44239),c=n(80346),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",m=c(r),g=c(o),v=c(i),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=f||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=p||s&&w(new s)!=h)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return f;case g:return u;case v:return d;case y:return p;case b:return h}return t}),e.exports=w},47801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,n)=>{var r=n(71811),o=n(35694),i=n(1469),a=n(65776),s=n(41780),l=n(40327);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(p,u)&&(i(e)||o(e))}},51789:(e,t,n)=>{var r=n(94536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},80401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:(e,t,n)=>{var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},21327:(e,t,n)=>{var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},81866:(e,t,n)=>{var r=n(94536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},43824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},29148:(e,t,n)=>{var r=n(74318),o=n(57157),i=n(93147),a=n(40419),s=n(77133);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},38517:(e,t,n)=>{var r=n(3118),o=n(85924),i=n(25726);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},37285:(e,t,n)=>{var r=n(62705),o=n(35694),i=n(1469),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},65776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},16612:(e,t,n)=>{var r=n(77813),o=n(98612),i=n(65776),a=n(13218);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},15403:(e,t,n)=>{var r=n(1469),o=n(33448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},37019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:(e,t,n)=>{var r,o=n(14429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},25726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},89162:(e,t,n)=>{var r=n(13218);e.exports=function(e){return e==e&&!r(e)}},27040:e=>{e.exports=function(){this.__data__=[],this.size=0}},14125:(e,t,n)=>{var r=n(18470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},82117:(e,t,n)=>{var r=n(18470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},67518:(e,t,n)=>{var r=n(18470);e.exports=function(e){return r(this.__data__,e)>-1}},13399:(e,t,n)=>{var r=n(18470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},24785:(e,t,n)=>{var r=n(1989),o=n(38407),i=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},11285:(e,t,n)=>{var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},96e3:(e,t,n)=>{var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:(e,t,n)=>{var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:(e,t,n)=>{var r=n(45050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},68776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},42634:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},24523:(e,t,n)=>{var r=n(88306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},94536:(e,t,n)=>{var r=n(10852)(Object,"create");e.exports=r},86916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},33498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},31167:(e,t,n)=>{e=n.nmd(e);var r=n(31957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},45357:(e,t,n)=>{var r=n(96874),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},40292:(e,t,n)=>{var r=n(97786),o=n(14259);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},55639:(e,t,n)=>{var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},36390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},90619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:e=>{e.exports=function(e){return this.__data__.has(e)}},21814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},30061:(e,t,n)=>{var r=n(56560),o=n(21275)(r);e.exports=o},21275:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},37465:(e,t,n)=>{var r=n(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},67599:e=>{e.exports=function(e){return this.__data__.get(e)}},44758:e=>{e.exports=function(e){return this.__data__.has(e)}},34309:(e,t,n)=>{var r=n(38407),o=n(57071),i=n(83369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},55514:(e,t,n)=>{var r=n(24523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},40327:(e,t,n)=>{var r=n(33448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},80346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},67990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},84596:(e,t,n)=>{var r=n(1469);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},50361:(e,t,n)=>{var r=n(85990);e.exports=function(e){return r(e,5)}},75703:e=>{e.exports=function(e){return function(){return e}}},23279:(e,t,n)=>{var r=n(13218),o=n(7771),i=n(14841),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,h,f=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,f=t,d=e.apply(r,n)}function b(e){return f=e,p=setTimeout(x,t),m?y(e):d}function w(e){var n=e-h;return void 0===h||n>=t||n<0||g&&e-f>=u}function x(){var e=o();if(w(e))return _(e);p=setTimeout(x,function(e){var n=t-(e-h);return g?s(n,u-(e-f)):n}(e))}function _(e){return p=void 0,v&&l?y(e):(l=c=void 0,d)}function S(){var e=o(),n=w(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return b(h);if(g)return clearTimeout(p),p=setTimeout(x,t),y(h)}return void 0===p&&(p=setTimeout(x,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==p&&clearTimeout(p),f=0,l=h=c=p=void 0},S.flush=function(){return void 0===p?d:_(o())},S}},91747:(e,t,n)=>{var r=n(5976),o=n(77813),i=n(16612),a=n(81704),s=Object.prototype,l=s.hasOwnProperty,c=r((function(e,t){e=Object(e);var n=-1,r=t.length,c=r>2?t[2]:void 0;for(c&&i(t[0],t[1],c)&&(r=1);++n<r;)for(var u=t[n],d=a(u),p=-1,h=d.length;++p<h;){var f=d[p],m=e[f];(void 0===m||o(m,s[f])&&!l.call(e,f))&&(e[f]=u[f])}return e}));e.exports=c},66913:(e,t,n)=>{var r=n(96874),o=n(5976),i=n(92052),a=n(30236),s=o((function(e){return e.push(void 0,i),r(a,void 0,e)}));e.exports=s},77813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},85564:(e,t,n)=>{var r=n(21078);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},27361:(e,t,n)=>{var r=n(97786);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},79095:(e,t,n)=>{var r=n(13),o=n(222);e.exports=function(e,t){return null!=e&&o(e,t,r)}},6557:e=>{e.exports=function(e){return e}},35694:(e,t,n)=>{var r=n(9454),o=n(37005),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},98612:(e,t,n)=>{var r=n(23560),o=n(41780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},29246:(e,t,n)=>{var r=n(98612),o=n(37005);e.exports=function(e){return o(e)&&r(e)}},44144:(e,t,n)=>{e=n.nmd(e);var r=n(55639),o=n(95062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},41609:(e,t,n)=>{var r=n(280),o=n(64160),i=n(35694),a=n(1469),s=n(98612),l=n(44144),c=n(25726),u=n(36719),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},18446:(e,t,n)=>{var r=n(90939);e.exports=function(e,t){return r(e,t)}},23560:(e,t,n)=>{var r=n(44239),o=n(13218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},56688:(e,t,n)=>{var r=n(25588),o=n(7518),i=n(31167),a=i&&i.isMap,s=a?o(a):r;e.exports=s},13218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},68630:(e,t,n)=>{var r=n(44239),o=n(85924),i=n(37005),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},72928:(e,t,n)=>{var r=n(29221),o=n(7518),i=n(31167),a=i&&i.isSet,s=a?o(a):r;e.exports=s},33448:(e,t,n)=>{var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},36719:(e,t,n)=>{var r=n(38749),o=n(7518),i=n(31167),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},24350:(e,t,n)=>{var r=n(89465),o=n(55189)((function(e,t,n){r(e,n,t)}));e.exports=o},3674:(e,t,n)=>{var r=n(14636),o=n(280),i=n(98612);e.exports=function(e){return i(e)?r(e):o(e)}},81704:(e,t,n)=>{var r=n(14636),o=n(10313),i=n(98612);e.exports=function(e){return i(e)?r(e,!0):o(e)}},10928:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},96486:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,p=256,h=1/0,f=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",p]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",_="[object Error]",S="[object Function]",C="[object GeneratorFunction]",E="[object Map]",k="[object Number]",z="[object Object]",P="[object Promise]",D="[object RegExp]",A="[object Set]",T="[object String]",I="[object Symbol]",M="[object WeakMap]",R="[object ArrayBuffer]",F="[object DataView]",N="[object Float32Array]",O="[object Float64Array]",j="[object Int8Array]",L="[object Int16Array]",B="[object Int32Array]",K="[object Uint8Array]",V="[object Uint8ClampedArray]",H="[object Uint16Array]",$="[object Uint32Array]",U=/\b__p \+= '';/g,Z=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,Y=RegExp(G.source),X=RegExp(W.source),Q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,Ce="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",ze="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\ufe0e\\ufe0f",De="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="['’]",Te="[\\ud800-\\udfff]",Ie="["+De+"]",Me="["+Ce+"]",Re="\\d+",Fe="[\\u2700-\\u27bf]",Ne="["+ke+"]",Oe="[^\\ud800-\\udfff"+De+Re+Ee+ke+ze+"]",je="\\ud83c[\\udffb-\\udfff]",Le="[^\\ud800-\\udfff]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Ke="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+ze+"]",He="(?:"+Ne+"|"+Oe+")",$e="(?:"+Ve+"|"+Oe+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",Ze="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Me+"|"+je+")"+"?",Ge="[\\ufe0e\\ufe0f]?",We=Ge+qe+("(?:\\u200d(?:"+[Le,Be,Ke].join("|")+")"+Ge+qe+")*"),Ye="(?:"+[Fe,Be,Ke].join("|")+")"+We,Xe="(?:"+[Le+Me+"?",Me,Be,Ke,Te].join("|")+")",Qe=RegExp(Ae,"g"),Je=RegExp(Me,"g"),et=RegExp(je+"(?="+je+")|"+Xe+We,"g"),tt=RegExp([Ve+"?"+Ne+"+"+Ue+"(?="+[Ie,Ve,"$"].join("|")+")",$e+"+"+Ze+"(?="+[Ie,Ve+He,"$"].join("|")+")",Ve+"?"+He+"+"+Ue,Ve+"+"+Ze,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Ye].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+Ce+Pe+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,at={};at[N]=at[O]=at[j]=at[L]=at[B]=at[K]=at[V]=at[H]=at[$]=!0,at[y]=at[b]=at[R]=at[w]=at[F]=at[x]=at[_]=at[S]=at[E]=at[k]=at[z]=at[D]=at[A]=at[T]=at[M]=!1;var st={};st[y]=st[b]=st[R]=st[F]=st[w]=st[x]=st[N]=st[O]=st[j]=st[L]=st[B]=st[E]=st[k]=st[z]=st[D]=st[A]=st[T]=st[I]=st[K]=st[V]=st[H]=st[$]=!0,st[_]=st[S]=st[M]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=dt||pt||Function("return this")(),ft=t&&!t.nodeType&&t,mt=ft&&e&&!e.nodeType&&e,gt=mt&&mt.exports===ft,vt=gt&&dt.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),bt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,xt=yt&&yt.isMap,_t=yt&&yt.isRegExp,St=yt&&yt.isSet,Ct=yt&&yt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function zt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function At(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Tt(e,t){return!!(null==e?0:e.length)&&Kt(e,t,0)>-1}function It(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Rt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Ft(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Nt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var jt=Ut("length");function Lt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Bt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Kt(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Bt(e,Ht,n)}function Vt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ht(e){return e!=e}function $t(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:m}function Ut(e){return function(t){return null==t?o:t[e]}}function Zt(e){return function(t){return null==e?o:e[t]}}function qt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Gt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Wt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Yt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Xt(e){return function(t){return e(t)}}function Qt(e,t){return Mt(t,(function(t){return e[t]}))}function Jt(e,t){return e.has(t)}function en(e,t){for(var n=-1,r=e.length;++n<r&&Kt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&Kt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=Zt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"}),on=Zt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+lt[e]}function sn(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return sn(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):jt(e)}function fn(e){return sn(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var gn=Zt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vn=function e(t){var n,r=(t=null==t?ht:vn.defaults(ht.Object(),t,vn.pick(ht,ot))).Array,se=t.Date,Ce=t.Error,Ee=t.Function,ke=t.Math,ze=t.Object,Pe=t.RegExp,De=t.String,Ae=t.TypeError,Te=r.prototype,Ie=Ee.prototype,Me=ze.prototype,Re=t["__core-js_shared__"],Fe=Ie.toString,Ne=Me.hasOwnProperty,Oe=0,je=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Le=Me.toString,Be=Fe.call(ze),Ke=ht._,Ve=Pe("^"+Fe.call(Ne).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=gt?t.Buffer:o,$e=t.Symbol,Ue=t.Uint8Array,Ze=He?He.allocUnsafe:o,qe=cn(ze.getPrototypeOf,ze),Ge=ze.create,We=Me.propertyIsEnumerable,Ye=Te.splice,Xe=$e?$e.isConcatSpreadable:o,et=$e?$e.iterator:o,nt=$e?$e.toStringTag:o,lt=function(){try{var e=fi(ze,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,pt=se&&se.now!==ht.Date.now&&se.now,ft=t.setTimeout!==ht.setTimeout&&t.setTimeout,mt=ke.ceil,vt=ke.floor,yt=ze.getOwnPropertySymbols,jt=He?He.isBuffer:o,Zt=t.isFinite,yn=Te.join,bn=cn(ze.keys,ze),wn=ke.max,xn=ke.min,_n=se.now,Sn=t.parseInt,Cn=ke.random,En=Te.reverse,kn=fi(t,"DataView"),zn=fi(t,"Map"),Pn=fi(t,"Promise"),Dn=fi(t,"Set"),An=fi(t,"WeakMap"),Tn=fi(ze,"create"),In=An&&new An,Mn={},Rn=Ki(kn),Fn=Ki(zn),Nn=Ki(Pn),On=Ki(Dn),jn=Ki(An),Ln=$e?$e.prototype:o,Bn=Ln?Ln.valueOf:o,Kn=Ln?Ln.toString:o;function Vn(e){if(os(e)&&!qa(e)&&!(e instanceof Zn)){if(e instanceof Un)return e;if(Ne.call(e,"__wrapped__"))return Vi(e)}return new Un(e)}var Hn=function(){function e(){}return function(t){if(!rs(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function $n(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Zn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Wn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Qn(e,t){var n=qa(e),r=!n&&Za(e),o=!n&&!r&&Xa(e),i=!n&&!r&&!o&&ps(e),a=n||r||o||i,s=a?Wt(e.length,De):[],l=s.length;for(var c in e)!t&&!Ne.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xi(c,l))||s.push(c);return s}function Jn(e){var t=e.length;return t?e[Yr(0,t-1)]:o}function er(e,t){return ji(Io(e),cr(t,0,e.length))}function tr(e){return ji(Io(e))}function nr(e,t,n){(n!==o&&!Ha(e[t],n)||n===o&&!(t in e))&&sr(e,t,n)}function rr(e,t,n){var r=e[t];Ne.call(e,t)&&Ha(r,n)&&(n!==o||t in e)||sr(e,t,n)}function or(e,t){for(var n=e.length;n--;)if(Ha(e[n][0],t))return n;return-1}function ir(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ar(e,t){return e&&Mo(t,Rs(t),e)}function sr(e,t,n){"__proto__"==t&&lt?lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lr(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Ds(e,t[n]);return a}function cr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ur(e,t,n,r,i,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!rs(e))return e;var d=qa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Io(e,s)}else{var p=vi(e),h=p==S||p==C;if(Xa(e))return ko(e,l);if(p==z||p==y||h&&!i){if(s=c||h?{}:bi(e),!l)return c?function(e,t){return Mo(e,gi(e),t)}(e,function(e,t){return e&&Mo(t,Fs(t),e)}(s,e)):function(e,t){return Mo(e,mi(e),t)}(e,ar(s,e))}else{if(!st[p])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case R:return zo(e);case w:case x:return new r(+e);case F:return function(e,t){var n=t?zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case O:case j:case L:case B:case K:case V:case H:case $:return Po(e,n);case E:return new r;case k:case T:return new r(e);case D:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new r;case I:return o=e,Bn?ze(Bn.call(o)):{}}var o}(e,p,l)}}a||(a=new Xn);var f=a.get(e);if(f)return f;a.set(e,s),cs(e)?e.forEach((function(r){s.add(ur(r,t,n,r,e,a))})):is(e)&&e.forEach((function(r,o){s.set(o,ur(r,t,n,o,e,a))}));var m=d?o:(u?c?si:ai:c?Fs:Rs)(e);return zt(m||e,(function(r,o){m&&(r=e[o=r]),rr(s,o,ur(r,t,n,o,e,a))})),s}function dr(e,t,n){var r=n.length;if(null==e)return!r;for(e=ze(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function pr(e,t,n){if("function"!=typeof e)throw new Ae(i);return Ri((function(){e.apply(o,n)}),t)}function hr(e,t,n,r){var o=-1,i=Tt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Mt(t,Xt(n))),r?(i=It,a=!1):t.length>=200&&(i=Jt,a=!1,t=new Yn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}Vn.templateSettings={escape:Q,evaluate:J,interpolate:ee,variable:"",imports:{_:Vn}},Vn.prototype=$n.prototype,Vn.prototype.constructor=Vn,Un.prototype=Hn($n.prototype),Un.prototype.constructor=Un,Zn.prototype=Hn($n.prototype),Zn.prototype.constructor=Zn,qn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(Tn){var n=t[e];return n===a?o:n}return Ne.call(t,e)?t[e]:o},qn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==o:Ne.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tn&&t===o?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=or(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,n=or(t,e);return n<0?o:t[n][1]},Gn.prototype.has=function(e){return or(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(zn||Gn),string:new qn}},Wn.prototype.delete=function(e){var t=pi(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return pi(this,e).get(e)},Wn.prototype.has=function(e){return pi(this,e).has(e)},Wn.prototype.set=function(e,t){var n=pi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!zn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(r)}return n.set(e,t),this.size=n.size,this};var fr=No(_r),mr=No(Sr,!0);function gr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function vr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s==s&&!ds(s):n(s,l)))var l=s,c=a}return c}function yr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function br(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=wi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?br(s,t-1,n,r,o):Rt(o,s):r||(o[o.length]=s)}return o}var wr=Oo(),xr=Oo(!0);function _r(e,t){return e&&wr(e,t,Rs)}function Sr(e,t){return e&&xr(e,t,Rs)}function Cr(e,t){return At(t,(function(t){return es(e[t])}))}function Er(e,t){for(var n=0,r=(t=_o(t,e)).length;null!=e&&n<r;)e=e[Bi(t[n++])];return n&&n==r?e:o}function kr(e,t,n){var r=t(e);return qa(e)?r:Rt(r,n(e))}function zr(e){return null==e?e===o?"[object Undefined]":"[object Null]":nt&&nt in ze(e)?function(e){var t=Ne.call(e,nt),n=e[nt];try{e[nt]=o;var r=!0}catch(e){}var i=Le.call(e);r&&(t?e[nt]=n:delete e[nt]);return i}(e):function(e){return Le.call(e)}(e)}function Pr(e,t){return e>t}function Dr(e,t){return null!=e&&Ne.call(e,t)}function Ar(e,t){return null!=e&&t in ze(e)}function Tr(e,t,n){for(var i=n?It:Tt,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Mt(p,Xt(t))),u=xn(p.length,u),c[l]=!n&&(t||a>=120&&p.length>=120)?new Yn(l&&p):o}p=e[0];var h=-1,f=c[0];e:for(;++h<a&&d.length<u;){var m=p[h],g=t?t(m):m;if(m=n||0!==m?m:0,!(f?Jt(f,g):i(d,g,n))){for(l=s;--l;){var v=c[l];if(!(v?Jt(v,g):i(e[l],g,n)))continue e}f&&f.push(g),d.push(m)}}return d}function Ir(e,t,n){var r=null==(e=Ai(e,t=_o(t,e)))?e:e[Bi(Ji(t))];return null==r?o:Et(r,e,n)}function Mr(e){return os(e)&&zr(e)==y}function Rr(e,t,n,r,i){return e===t||(null==e||null==t||!os(e)&&!os(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=qa(e),l=qa(t),c=s?b:vi(e),u=l?b:vi(t),d=(c=c==y?z:c)==z,p=(u=u==y?z:u)==z,h=c==u;if(h&&Xa(e)){if(!Xa(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Xn),s||ps(e)?oi(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case F:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case w:case x:case k:return Ha(+e,+t);case _:return e.name==t.name&&e.message==t.message;case D:case T:return e==t+"";case E:var s=ln;case A:var l=1&r;if(s||(s=dn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=oi(s(e),s(t),r,o,i,a);return a.delete(e),u;case I:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var f=d&&Ne.call(e,"__wrapped__"),m=p&&Ne.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,v=m?t.value():t;return a||(a=new Xn),i(g,v,n,r,a)}}if(!h)return!1;return a||(a=new Xn),function(e,t,n,r,i,a){var s=1&n,l=ai(e),c=l.length,u=ai(t).length;if(c!=u&&!s)return!1;var d=c;for(;d--;){var p=l[d];if(!(s?p in t:Ne.call(t,p)))return!1}var h=a.get(e),f=a.get(t);if(h&&f)return h==t&&f==e;var m=!0;a.set(e,t),a.set(t,e);var g=s;for(;++d<c;){var v=e[p=l[d]],y=t[p];if(r)var b=s?r(y,v,p,t,e,a):r(v,y,p,e,t,a);if(!(b===o?v===y||i(v,y,n,r,a):b)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,i,a)}(e,t,n,r,Rr,i))}function Fr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=ze(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=n[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===o&&!(c in e))return!1}else{var p=new Xn;if(r)var h=r(u,d,c,e,t,p);if(!(h===o?Rr(d,u,3,r,p):h))return!1}}return!0}function Nr(e){return!(!rs(e)||(t=e,je&&je in t))&&(es(e)?Ve:ye).test(Ki(e));var t}function Or(e){return"function"==typeof e?e:null==e?al:"object"==typeof e?qa(e)?Hr(e[0],e[1]):Vr(e):ml(e)}function jr(e){if(!ki(e))return bn(e);var t=[];for(var n in ze(e))Ne.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!rs(e))return function(e){var t=[];if(null!=e)for(var n in ze(e))t.push(n);return t}(e);var t=ki(e),n=[];for(var r in e)("constructor"!=r||!t&&Ne.call(e,r))&&n.push(r);return n}function Br(e,t){return e<t}function Kr(e,t){var n=-1,o=Wa(e)?r(e.length):[];return fr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Vr(e){var t=hi(e);return 1==t.length&&t[0][2]?Pi(t[0][0],t[0][1]):function(n){return n===e||Fr(n,e,t)}}function Hr(e,t){return Si(e)&&zi(t)?Pi(Bi(e),t):function(n){var r=Ds(n,e);return r===o&&r===t?As(n,e):Rr(t,r,3)}}function $r(e,t,n,r,i){e!==t&&wr(t,(function(a,s){if(i||(i=new Xn),rs(a))!function(e,t,n,r,i,a,s){var l=Ii(e,n),c=Ii(t,n),u=s.get(c);if(u)return void nr(e,n,u);var d=a?a(l,c,n+"",e,t,s):o,p=d===o;if(p){var h=qa(c),f=!h&&Xa(c),m=!h&&!f&&ps(c);d=c,h||f||m?qa(l)?d=l:Ya(l)?d=Io(l):f?(p=!1,d=ko(c,!0)):m?(p=!1,d=Po(c,!0)):d=[]:ss(c)||Za(c)?(d=l,Za(l)?d=ws(l):rs(l)&&!es(l)||(d=bi(c))):p=!1}p&&(s.set(c,d),i(d,c,r,a,s),s.delete(c));nr(e,n,d)}(e,t,s,n,$r,r,i);else{var l=r?r(Ii(e,s),a,s+"",e,t,i):o;l===o&&(l=a),nr(e,s,l)}}),Fs)}function Ur(e,t){var n=e.length;if(n)return xi(t+=t<0?n:0,n)?e[t]:o}function Zr(e,t,n){t=t.length?Mt(t,(function(e){return qa(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e})):[al];var r=-1;t=Mt(t,Xt(di()));var o=Kr(e,(function(e,n,o){var i=Mt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var l=Do(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function qr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Er(e,a);n(s,a)&&to(i,_o(a,e),s)}return i}function Gr(e,t,n,r){var o=r?Vt:Kt,i=-1,a=t.length,s=e;for(e===t&&(t=Io(t)),n&&(s=Mt(e,Xt(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;xi(o)?Ye.call(e,o,1):fo(e,o)}}return e}function Yr(e,t){return e+vt(Cn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Fi(Di(e,t,al),e+"")}function Jr(e){return Jn(Hs(e))}function eo(e,t){var n=Hs(e);return ji(n,cr(t,0,n.length))}function to(e,t,n,r){if(!rs(e))return e;for(var i=-1,a=(t=_o(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=Bi(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=r?r(d,c,l):o)===o&&(u=rs(d)?d:xi(t[i+1])?[]:{})}rr(l,c,u),l=l[c]}return e}var no=In?function(e,t){return In.set(e,t),e}:al,ro=lt?function(e,t){return lt(e,"toString",{configurable:!0,enumerable:!1,value:rl(t),writable:!0})}:al;function oo(e){return ji(Hs(e))}function io(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function ao(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function so(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!ds(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return lo(e,t,al,n)}function lo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=ds(t),u=t===o;i<a;){var d=vt((i+a)/2),p=n(e[d]),h=p!==o,f=null===p,m=p==p,g=ds(p);if(s)var v=r||m;else v=u?m&&(r||h):l?m&&h&&(r||!f):c?m&&h&&!f&&(r||!g):!f&&!g&&(r?p<=t:p<t);v?i=d+1:a=d}return xn(a,4294967294)}function co(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ha(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function uo(e){return"number"==typeof e?e:ds(e)?m:+e}function po(e){if("string"==typeof e)return e;if(qa(e))return Mt(e,po)+"";if(ds(e))return Kn?Kn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ho(e,t,n){var r=-1,o=Tt,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=It;else if(i>=200){var c=t?null:Qo(e);if(c)return dn(c);a=!1,o=Jt,l=new Yn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function fo(e,t){return null==(e=Ai(e,t=_o(t,e)))||delete e[Bi(Ji(t))]}function mo(e,t,n,r){return to(e,t,n(Er(e,t)),r)}function go(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?io(e,r?0:i,r?i+1:o):io(e,r?i+1:0,r?o:i)}function vo(e,t){var n=e;return n instanceof Zn&&(n=n.value()),Ft(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),n)}function yo(e,t,n){var o=e.length;if(o<2)return o?ho(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=hr(a[i]||s,e[l],t,n));return ho(br(a,1),t,n)}function bo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function wo(e){return Ya(e)?e:[]}function xo(e){return"function"==typeof e?e:al}function _o(e,t){return qa(e)?e:Si(e,t)?[e]:Li(xs(e))}var So=Qr;function Co(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:io(e,t,n)}var Eo=dt||function(e){return ht.clearTimeout(e)};function ko(e,t){if(t)return e.slice();var n=e.length,r=Ze?Ze(n):new e.constructor(n);return e.copy(r),r}function zo(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Po(e,t){var n=t?zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Do(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=ds(e),s=t!==o,l=null===t,c=t==t,u=ds(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}function Ao(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,c=t.length,u=wn(a-s,0),d=r(c+u),p=!o;++l<c;)d[l]=t[l];for(;++i<s;)(p||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function To(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=wn(a-l,0),p=r(d+u),h=!o;++i<d;)p[i]=e[i];for(var f=i;++c<u;)p[f+c]=t[c];for(;++s<l;)(h||i<a)&&(p[f+n[s]]=e[i++]);return p}function Io(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Mo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),i?sr(n,l,c):rr(n,l,c)}return n}function Ro(e,t){return function(n,r){var o=qa(n)?kt:ir,i=t?t():{};return o(n,e,di(r,2),i)}}function Fo(e){return Qr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&_i(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=ze(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}function No(e,t){return function(n,r){if(null==n)return n;if(!Wa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=ze(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Oo(e){return function(t,n,r){for(var o=-1,i=ze(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function jo(e){return function(t){var n=sn(t=xs(t))?fn(t):o,r=n?n[0]:t.charAt(0),i=n?Co(n,1).join(""):t.slice(1);return r[e]()+i}}function Lo(e){return function(t){return Ft(el(Zs(t).replace(Qe,"")),e,"")}}function Bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Hn(e.prototype),r=e.apply(n,t);return rs(r)?r:n}}function Ko(e){return function(t,n,r){var i=ze(t);if(!Wa(t)){var a=di(n,3);t=Rs(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Vo(e){return ii((function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ae(i);if(a&&!l&&"wrapper"==ci(s))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var c=ci(s=t[r]),u="wrapper"==c?li(s):o;l=u&&Ci(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ci(u[0])].apply(l,u[3]):1==s.length&&Ci(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&qa(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Ho(e,t,n,i,a,s,l,c,u,p){var h=t&d,f=1&t,m=2&t,g=24&t,v=512&t,y=m?o:Bo(e);return function o(){for(var d=arguments.length,b=r(d),w=d;w--;)b[w]=arguments[w];if(g)var x=ui(o),_=nn(b,x);if(i&&(b=Ao(b,i,a,g)),s&&(b=To(b,s,l,g)),d-=_,g&&d<p){var S=un(b,x);return Yo(e,t,Ho,o.placeholder,n,b,S,c,u,p-d)}var C=f?n:this,E=m?C[e]:e;return d=b.length,c?b=Ti(b,c):v&&d>1&&b.reverse(),h&&u<d&&(b.length=u),this&&this!==ht&&this instanceof o&&(E=y||Bo(E)),E.apply(C,b)}}function $o(e,t){return function(n,r){return function(e,t,n,r){return _r(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Uo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=po(n),r=po(r)):(n=uo(n),r=uo(r)),i=e(n,r)}return i}}function Zo(e){return ii((function(t){return t=Mt(t,Xt(di())),Qr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function qo(e,t){var n=(t=t===o?" ":po(t)).length;if(n<2)return n?Xr(t,e):t;var r=Xr(t,mt(e/hn(t)));return sn(t)?Co(fn(r),0,e).join(""):r.slice(0,e)}function Go(e){return function(t,n,i){return i&&"number"!=typeof i&&_i(t,n,i)&&(n=i=o),t=gs(t),n===o?(n=t,t=0):n=gs(n),function(e,t,n,o){for(var i=-1,a=wn(mt((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:gs(i),e)}}function Wo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=bs(t),n=bs(n)),e(t,n)}}function Yo(e,t,n,r,i,a,s,l,d,p){var h=8&t;t|=h?c:u,4&(t&=~(h?u:c))||(t&=-4);var f=[e,t,i,h?a:o,h?s:o,h?o:a,h?o:s,l,d,p],m=n.apply(o,f);return Ci(e)&&Mi(m,f),m.placeholder=r,Ni(m,e,t)}function Xo(e){var t=ke[e];return function(e,n){if(e=bs(e),(n=null==n?0:xn(vs(n),292))&&Zt(e)){var r=(xs(e)+"e").split("e");return+((r=(xs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Qo=Dn&&1/dn(new Dn([,-0]))[1]==h?function(e){return new Dn(e)}:dl;function Jo(e){return function(t){var n=vi(t);return n==E?ln(t):n==A?pn(t):function(e,t){return Mt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function ei(e,t,n,a,h,f,m,g){var v=2&t;if(!v&&"function"!=typeof e)throw new Ae(i);var y=a?a.length:0;if(y||(t&=-97,a=h=o),m=m===o?m:wn(vs(m),0),g=g===o?g:vs(g),y-=h?h.length:0,t&u){var b=a,w=h;a=h=o}var x=v?o:li(e),_=[e,t,n,a,h,b,w,f,m,g];if(x&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==d&&8==n||r==d&&n==p&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Ao(c,l,t[4]):l,e[4]=c?un(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?To(c,l,t[6]):l,e[6]=c?un(e[5],s):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(_,x),e=_[0],t=_[1],n=_[2],a=_[3],h=_[4],!(g=_[9]=_[9]===o?v?0:e.length:wn(_[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||t==l?function(e,t,n){var i=Bo(e);return function a(){for(var s=arguments.length,l=r(s),c=s,u=ui(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:un(l,u);return(s-=d.length)<n?Yo(e,t,Ho,a.placeholder,o,l,d,o,o,n-s):Et(this&&this!==ht&&this instanceof a?i:e,this,l)}}(e,t,g):t!=c&&33!=t||h.length?Ho.apply(o,_):function(e,t,n,o){var i=1&t,a=Bo(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=o.length,d=r(u+l),p=this&&this!==ht&&this instanceof t?a:e;++c<u;)d[c]=o[c];for(;l--;)d[c++]=arguments[++s];return Et(p,i?n:this,d)}}(e,t,n,a);else var S=function(e,t,n){var r=1&t,o=Bo(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ni((x?no:Mi)(S,_),e,t)}function ti(e,t,n,r){return e===o||Ha(e,Me[n])&&!Ne.call(r,n)?t:e}function ni(e,t,n,r,i,a){return rs(e)&&rs(t)&&(a.set(t,e),$r(e,t,o,ni,a),a.delete(t)),e}function ri(e){return ss(e)?o:e}function oi(e,t,n,r,i,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,f=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++p<l;){var m=e[p],g=t[p];if(r)var v=s?r(g,m,p,t,e,a):r(m,g,p,e,t,a);if(v!==o){if(v)continue;h=!1;break}if(f){if(!Ot(t,(function(e,t){if(!Jt(f,t)&&(m===e||i(m,e,n,r,a)))return f.push(t)}))){h=!1;break}}else if(m!==g&&!i(m,g,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function ii(e){return Fi(Di(e,o,Gi),e+"")}function ai(e){return kr(e,Rs,mi)}function si(e){return kr(e,Fs,gi)}var li=In?function(e){return In.get(e)}:dl;function ci(e){for(var t=e.name+"",n=Mn[t],r=Ne.call(Mn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ui(e){return(Ne.call(Vn,"placeholder")?Vn:e).placeholder}function di(){var e=Vn.iteratee||sl;return e=e===sl?Or:e,arguments.length?e(arguments[0],arguments[1]):e}function pi(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function hi(e){for(var t=Rs(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,zi(o)]}return t}function fi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Nr(n)?n:o}var mi=yt?function(e){return null==e?[]:(e=ze(e),At(yt(e),(function(t){return We.call(e,t)})))}:yl,gi=yt?function(e){for(var t=[];e;)Rt(t,mi(e)),e=qe(e);return t}:yl,vi=zr;function yi(e,t,n){for(var r=-1,o=(t=_o(t,e)).length,i=!1;++r<o;){var a=Bi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ns(o)&&xi(a,o)&&(qa(e)||Za(e))}function bi(e){return"function"!=typeof e.constructor||ki(e)?{}:Hn(qe(e))}function wi(e){return qa(e)||Za(e)||!!(Xe&&e&&e[Xe])}function xi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function _i(e,t,n){if(!rs(n))return!1;var r=typeof t;return!!("number"==r?Wa(n)&&xi(t,n.length):"string"==r&&t in n)&&Ha(n[t],e)}function Si(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ds(e))||(ne.test(e)||!te.test(e)||null!=t&&e in ze(t))}function Ci(e){var t=ci(e),n=Vn[t];if("function"!=typeof n||!(t in Zn.prototype))return!1;if(e===n)return!0;var r=li(n);return!!r&&e===r[0]}(kn&&vi(new kn(new ArrayBuffer(1)))!=F||zn&&vi(new zn)!=E||Pn&&vi(Pn.resolve())!=P||Dn&&vi(new Dn)!=A||An&&vi(new An)!=M)&&(vi=function(e){var t=zr(e),n=t==z?e.constructor:o,r=n?Ki(n):"";if(r)switch(r){case Rn:return F;case Fn:return E;case Nn:return P;case On:return A;case jn:return M}return t});var Ei=Re?es:bl;function ki(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function zi(e){return e==e&&!rs(e)}function Pi(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in ze(n)))}}function Di(e,t,n){return t=wn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=wn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(s),Et(e,this,l)}}function Ai(e,t){return t.length<2?e:Er(e,io(t,0,-1))}function Ti(e,t){for(var n=e.length,r=xn(t.length,n),i=Io(e);r--;){var a=t[r];e[r]=xi(a,n)?i[a]:o}return e}function Ii(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Mi=Oi(no),Ri=ft||function(e,t){return ht.setTimeout(e,t)},Fi=Oi(ro);function Ni(e,t,n){var r=t+"";return Fi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return zt(v,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function Oi(e){var t=0,n=0;return function(){var r=_n(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function ji(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Yr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Li=function(e){var t=Oa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(he,"$1"):n||e)})),t}));function Bi(e){if("string"==typeof e||ds(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ki(e){if(null!=e){try{return Fe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Vi(e){if(e instanceof Zn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Hi=Qr((function(e,t){return Ya(e)?hr(e,br(t,1,Ya,!0)):[]})),$i=Qr((function(e,t){var n=Ji(t);return Ya(n)&&(n=o),Ya(e)?hr(e,br(t,1,Ya,!0),di(n,2)):[]})),Ui=Qr((function(e,t){var n=Ji(t);return Ya(n)&&(n=o),Ya(e)?hr(e,br(t,1,Ya,!0),o,n):[]}));function Zi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vs(n);return o<0&&(o=wn(r+o,0)),Bt(e,di(t,3),o)}function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=vs(n),i=n<0?wn(r+i,0):xn(i,r-1)),Bt(e,di(t,3),i,!0)}function Gi(e){return(null==e?0:e.length)?br(e,1):[]}function Wi(e){return e&&e.length?e[0]:o}var Yi=Qr((function(e){var t=Mt(e,wo);return t.length&&t[0]===e[0]?Tr(t):[]})),Xi=Qr((function(e){var t=Ji(e),n=Mt(e,wo);return t===Ji(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Tr(n,di(t,2)):[]})),Qi=Qr((function(e){var t=Ji(e),n=Mt(e,wo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Tr(n,o,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:o}var ea=Qr(ta);function ta(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var na=ii((function(e,t){var n=null==e?0:e.length,r=lr(e,t);return Wr(e,Mt(t,(function(e){return xi(e,n)?+e:e})).sort(Do)),r}));function ra(e){return null==e?e:En.call(e)}var oa=Qr((function(e){return ho(br(e,1,Ya,!0))})),ia=Qr((function(e){var t=Ji(e);return Ya(t)&&(t=o),ho(br(e,1,Ya,!0),di(t,2))})),aa=Qr((function(e){var t=Ji(e);return t="function"==typeof t?t:o,ho(br(e,1,Ya,!0),o,t)}));function sa(e){if(!e||!e.length)return[];var t=0;return e=At(e,(function(e){if(Ya(e))return t=wn(e.length,t),!0})),Wt(t,(function(t){return Mt(e,Ut(t))}))}function la(e,t){if(!e||!e.length)return[];var n=sa(e);return null==t?n:Mt(n,(function(e){return Et(t,o,e)}))}var ca=Qr((function(e,t){return Ya(e)?hr(e,t):[]})),ua=Qr((function(e){return yo(At(e,Ya))})),da=Qr((function(e){var t=Ji(e);return Ya(t)&&(t=o),yo(At(e,Ya),di(t,2))})),pa=Qr((function(e){var t=Ji(e);return t="function"==typeof t?t:o,yo(At(e,Ya),o,t)})),ha=Qr(sa);var fa=Qr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,la(e,n)}));function ma(e){var t=Vn(e);return t.__chain__=!0,t}function ga(e,t){return t(e)}var va=ii((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Zn&&xi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ga,args:[i],thisArg:o}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ya=Ro((function(e,t,n){Ne.call(e,n)?++e[n]:sr(e,n,1)}));var ba=Ko(Zi),wa=Ko(qi);function xa(e,t){return(qa(e)?zt:fr)(e,di(t,3))}function _a(e,t){return(qa(e)?Pt:mr)(e,di(t,3))}var Sa=Ro((function(e,t,n){Ne.call(e,n)?e[n].push(t):sr(e,n,[t])}));var Ca=Qr((function(e,t,n){var o=-1,i="function"==typeof t,a=Wa(e)?r(e.length):[];return fr(e,(function(e){a[++o]=i?Et(t,e,n):Ir(e,t,n)})),a})),Ea=Ro((function(e,t,n){sr(e,n,t)}));function ka(e,t){return(qa(e)?Mt:Kr)(e,di(t,3))}var za=Ro((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Pa=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_i(e,t[0],t[1])?t=[]:n>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),Zr(e,br(t,1),[])})),Da=pt||function(){return ht.Date.now()};function Aa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,ei(e,d,o,o,o,o,t)}function Ta(e,t){var n;if("function"!=typeof t)throw new Ae(i);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ia=Qr((function(e,t,n){var r=1;if(n.length){var o=un(n,ui(Ia));r|=c}return ei(e,r,t,n,o)})),Ma=Qr((function(e,t,n){var r=3;if(n.length){var o=un(n,ui(Ma));r|=c}return ei(t,r,e,n,o)}));function Ra(e,t,n){var r,a,s,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new Ae(i);function m(t){var n=r,i=a;return r=a=o,d=t,l=e.apply(i,n)}function g(e){return d=e,c=Ri(y,t),p?m(e):l}function v(e){var n=e-u;return u===o||n>=t||n<0||h&&e-d>=s}function y(){var e=Da();if(v(e))return b(e);c=Ri(y,function(e){var n=t-(e-u);return h?xn(n,s-(e-d)):n}(e))}function b(e){return c=o,f&&r?m(e):(r=a=o,l)}function w(){var e=Da(),n=v(e);if(r=arguments,a=this,u=e,n){if(c===o)return g(u);if(h)return Eo(c),c=Ri(y,t),m(u)}return c===o&&(c=Ri(y,t)),l}return t=bs(t)||0,rs(n)&&(p=!!n.leading,s=(h="maxWait"in n)?wn(bs(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),w.cancel=function(){c!==o&&Eo(c),d=0,r=u=a=c=o},w.flush=function(){return c===o?l:b(Da())},w}var Fa=Qr((function(e,t){return pr(e,1,t)})),Na=Qr((function(e,t,n){return pr(e,bs(t)||0,n)}));function Oa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Oa.Cache||Wn),n}function ja(e){if("function"!=typeof e)throw new Ae(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Oa.Cache=Wn;var La=So((function(e,t){var n=(t=1==t.length&&qa(t[0])?Mt(t[0],Xt(di())):Mt(br(t,1),Xt(di()))).length;return Qr((function(r){for(var o=-1,i=xn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Et(e,this,r)}))})),Ba=Qr((function(e,t){var n=un(t,ui(Ba));return ei(e,c,o,t,n)})),Ka=Qr((function(e,t){var n=un(t,ui(Ka));return ei(e,u,o,t,n)})),Va=ii((function(e,t){return ei(e,p,o,o,o,t)}));function Ha(e,t){return e===t||e!=e&&t!=t}var $a=Wo(Pr),Ua=Wo((function(e,t){return e>=t})),Za=Mr(function(){return arguments}())?Mr:function(e){return os(e)&&Ne.call(e,"callee")&&!We.call(e,"callee")},qa=r.isArray,Ga=bt?Xt(bt):function(e){return os(e)&&zr(e)==R};function Wa(e){return null!=e&&ns(e.length)&&!es(e)}function Ya(e){return os(e)&&Wa(e)}var Xa=jt||bl,Qa=wt?Xt(wt):function(e){return os(e)&&zr(e)==x};function Ja(e){if(!os(e))return!1;var t=zr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ss(e)}function es(e){if(!rs(e))return!1;var t=zr(e);return t==S||t==C||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ts(e){return"number"==typeof e&&e==vs(e)}function ns(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function rs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function os(e){return null!=e&&"object"==typeof e}var is=xt?Xt(xt):function(e){return os(e)&&vi(e)==E};function as(e){return"number"==typeof e||os(e)&&zr(e)==k}function ss(e){if(!os(e)||zr(e)!=z)return!1;var t=qe(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Fe.call(n)==Be}var ls=_t?Xt(_t):function(e){return os(e)&&zr(e)==D};var cs=St?Xt(St):function(e){return os(e)&&vi(e)==A};function us(e){return"string"==typeof e||!qa(e)&&os(e)&&zr(e)==T}function ds(e){return"symbol"==typeof e||os(e)&&zr(e)==I}var ps=Ct?Xt(Ct):function(e){return os(e)&&ns(e.length)&&!!at[zr(e)]};var hs=Wo(Br),fs=Wo((function(e,t){return e<=t}));function ms(e){if(!e)return[];if(Wa(e))return us(e)?fn(e):Io(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=vi(e);return(t==E?ln:t==A?dn:Hs)(e)}function gs(e){return e?(e=bs(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vs(e){var t=gs(e),n=t%1;return t==t?n?t-n:t:0}function ys(e){return e?cr(vs(e),0,g):0}function bs(e){if("number"==typeof e)return e;if(ds(e))return m;if(rs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=rs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=ve.test(e);return n||be.test(e)?ut(e.slice(2),n?2:8):ge.test(e)?m:+e}function ws(e){return Mo(e,Fs(e))}function xs(e){return null==e?"":po(e)}var _s=Fo((function(e,t){if(ki(t)||Wa(t))Mo(t,Rs(t),e);else for(var n in t)Ne.call(t,n)&&rr(e,n,t[n])})),Ss=Fo((function(e,t){Mo(t,Fs(t),e)})),Cs=Fo((function(e,t,n,r){Mo(t,Fs(t),e,r)})),Es=Fo((function(e,t,n,r){Mo(t,Rs(t),e,r)})),ks=ii(lr);var zs=Qr((function(e,t){e=ze(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&_i(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Fs(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===o||Ha(d,Me[u])&&!Ne.call(e,u))&&(e[u]=a[u])}return e})),Ps=Qr((function(e){return e.push(o,ni),Et(Os,o,e)}));function Ds(e,t,n){var r=null==e?o:Er(e,t);return r===o?n:r}function As(e,t){return null!=e&&yi(e,t,Ar)}var Ts=$o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n}),rl(al)),Is=$o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Ne.call(e,t)?e[t].push(n):e[t]=[n]}),di),Ms=Qr(Ir);function Rs(e){return Wa(e)?Qn(e):jr(e)}function Fs(e){return Wa(e)?Qn(e,!0):Lr(e)}var Ns=Fo((function(e,t,n){$r(e,t,n)})),Os=Fo((function(e,t,n,r){$r(e,t,n,r)})),js=ii((function(e,t){var n={};if(null==e)return n;var r=!1;t=Mt(t,(function(t){return t=_o(t,e),r||(r=t.length>1),t})),Mo(e,si(e),n),r&&(n=ur(n,7,ri));for(var o=t.length;o--;)fo(n,t[o]);return n}));var Ls=ii((function(e,t){return null==e?{}:function(e,t){return qr(e,t,(function(t,n){return As(e,n)}))}(e,t)}));function Bs(e,t){if(null==e)return{};var n=Mt(si(e),(function(e){return[e]}));return t=di(t),qr(e,n,(function(e,n){return t(e,n[0])}))}var Ks=Jo(Rs),Vs=Jo(Fs);function Hs(e){return null==e?[]:Qt(e,Rs(e))}var $s=Lo((function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)}));function Us(e){return Js(xs(e).toLowerCase())}function Zs(e){return(e=xs(e))&&e.replace(xe,rn).replace(Je,"")}var qs=Lo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gs=Lo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ws=jo("toLowerCase");var Ys=Lo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xs=Lo((function(e,t,n){return e+(n?" ":"")+Js(t)}));var Qs=Lo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=jo("toUpperCase");function el(e,t,n){return e=xs(e),(t=n?o:t)===o?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var tl=Qr((function(e,t){try{return Et(e,o,t)}catch(e){return Ja(e)?e:new Ce(e)}})),nl=ii((function(e,t){return zt(t,(function(t){t=Bi(t),sr(e,t,Ia(e[t],e))})),e}));function rl(e){return function(){return e}}var ol=Vo(),il=Vo(!0);function al(e){return e}function sl(e){return Or("function"==typeof e?e:ur(e,1))}var ll=Qr((function(e,t){return function(n){return Ir(n,e,t)}})),cl=Qr((function(e,t){return function(n){return Ir(e,n,t)}}));function ul(e,t,n){var r=Rs(t),o=Cr(t,r);null!=n||rs(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Cr(t,Rs(t)));var i=!(rs(n)&&"chain"in n&&!n.chain),a=es(e);return zt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Io(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function dl(){}var pl=Zo(Mt),hl=Zo(Dt),fl=Zo(Ot);function ml(e){return Si(e)?Ut(Bi(e)):function(e){return function(t){return Er(t,e)}}(e)}var gl=Go(),vl=Go(!0);function yl(){return[]}function bl(){return!1}var wl=Uo((function(e,t){return e+t}),0),xl=Xo("ceil"),_l=Uo((function(e,t){return e/t}),1),Sl=Xo("floor");var Cl,El=Uo((function(e,t){return e*t}),1),kl=Xo("round"),zl=Uo((function(e,t){return e-t}),0);return Vn.after=function(e,t){if("function"!=typeof t)throw new Ae(i);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=Aa,Vn.assign=_s,Vn.assignIn=Ss,Vn.assignInWith=Cs,Vn.assignWith=Es,Vn.at=ks,Vn.before=Ta,Vn.bind=Ia,Vn.bindAll=nl,Vn.bindKey=Ma,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Vn.chain=ma,Vn.chunk=function(e,t,n){t=(n?_i(e,t,n):t===o)?1:wn(vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(mt(i/t));a<i;)l[s++]=io(e,a,a+=t);return l},Vn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Vn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Rt(qa(n)?Io(n):[n],br(t,1))},Vn.cond=function(e){var t=null==e?0:e.length,n=di();return e=t?Mt(e,(function(e){if("function"!=typeof e[1])throw new Ae(i);return[n(e[0]),e[1]]})):[],Qr((function(n){for(var r=-1;++r<t;){var o=e[r];if(Et(o[0],this,n))return Et(o[1],this,n)}}))},Vn.conforms=function(e){return function(e){var t=Rs(e);return function(n){return dr(n,e,t)}}(ur(e,1))},Vn.constant=rl,Vn.countBy=ya,Vn.create=function(e,t){var n=Hn(e);return null==t?n:ar(n,t)},Vn.curry=function e(t,n,r){var i=ei(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Vn.curryRight=function e(t,n,r){var i=ei(t,l,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Vn.debounce=Ra,Vn.defaults=zs,Vn.defaultsDeep=Ps,Vn.defer=Fa,Vn.delay=Na,Vn.difference=Hi,Vn.differenceBy=$i,Vn.differenceWith=Ui,Vn.drop=function(e,t,n){var r=null==e?0:e.length;return r?io(e,(t=n||t===o?1:vs(t))<0?0:t,r):[]},Vn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?io(e,0,(t=r-(t=n||t===o?1:vs(t)))<0?0:t):[]},Vn.dropRightWhile=function(e,t){return e&&e.length?go(e,di(t,3),!0,!0):[]},Vn.dropWhile=function(e,t){return e&&e.length?go(e,di(t,3),!0):[]},Vn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&_i(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=vs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:vs(r))<0&&(r+=i),r=n>r?0:ys(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Vn.filter=function(e,t){return(qa(e)?At:yr)(e,di(t,3))},Vn.flatMap=function(e,t){return br(ka(e,t),1)},Vn.flatMapDeep=function(e,t){return br(ka(e,t),h)},Vn.flatMapDepth=function(e,t,n){return n=n===o?1:vs(n),br(ka(e,t),n)},Vn.flatten=Gi,Vn.flattenDeep=function(e){return(null==e?0:e.length)?br(e,h):[]},Vn.flattenDepth=function(e,t){return(null==e?0:e.length)?br(e,t=t===o?1:vs(t)):[]},Vn.flip=function(e){return ei(e,512)},Vn.flow=ol,Vn.flowRight=il,Vn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Vn.functions=function(e){return null==e?[]:Cr(e,Rs(e))},Vn.functionsIn=function(e){return null==e?[]:Cr(e,Fs(e))},Vn.groupBy=Sa,Vn.initial=function(e){return(null==e?0:e.length)?io(e,0,-1):[]},Vn.intersection=Yi,Vn.intersectionBy=Xi,Vn.intersectionWith=Qi,Vn.invert=Ts,Vn.invertBy=Is,Vn.invokeMap=Ca,Vn.iteratee=sl,Vn.keyBy=Ea,Vn.keys=Rs,Vn.keysIn=Fs,Vn.map=ka,Vn.mapKeys=function(e,t){var n={};return t=di(t,3),_r(e,(function(e,r,o){sr(n,t(e,r,o),e)})),n},Vn.mapValues=function(e,t){var n={};return t=di(t,3),_r(e,(function(e,r,o){sr(n,r,t(e,r,o))})),n},Vn.matches=function(e){return Vr(ur(e,1))},Vn.matchesProperty=function(e,t){return Hr(e,ur(t,1))},Vn.memoize=Oa,Vn.merge=Ns,Vn.mergeWith=Os,Vn.method=ll,Vn.methodOf=cl,Vn.mixin=ul,Vn.negate=ja,Vn.nthArg=function(e){return e=vs(e),Qr((function(t){return Ur(t,e)}))},Vn.omit=js,Vn.omitBy=function(e,t){return Bs(e,ja(di(t)))},Vn.once=function(e){return Ta(2,e)},Vn.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?o:n)||(n=null==n?[]:[n]),Zr(e,t,n))},Vn.over=pl,Vn.overArgs=La,Vn.overEvery=hl,Vn.overSome=fl,Vn.partial=Ba,Vn.partialRight=Ka,Vn.partition=za,Vn.pick=Ls,Vn.pickBy=Bs,Vn.property=ml,Vn.propertyOf=function(e){return function(t){return null==e?o:Er(e,t)}},Vn.pull=ea,Vn.pullAll=ta,Vn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,di(n,2)):e},Vn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,o,n):e},Vn.pullAt=na,Vn.range=gl,Vn.rangeRight=vl,Vn.rearg=Va,Vn.reject=function(e,t){return(qa(e)?At:yr)(e,ja(di(t,3)))},Vn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=di(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Wr(e,o),n},Vn.rest=function(e,t){if("function"!=typeof e)throw new Ae(i);return Qr(e,t=t===o?t:vs(t))},Vn.reverse=ra,Vn.sampleSize=function(e,t,n){return t=(n?_i(e,t,n):t===o)?1:vs(t),(qa(e)?er:eo)(e,t)},Vn.set=function(e,t,n){return null==e?e:to(e,t,n)},Vn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:to(e,t,n,r)},Vn.shuffle=function(e){return(qa(e)?tr:oo)(e)},Vn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&_i(e,t,n)?(t=0,n=r):(t=null==t?0:vs(t),n=n===o?r:vs(n)),io(e,t,n)):[]},Vn.sortBy=Pa,Vn.sortedUniq=function(e){return e&&e.length?co(e):[]},Vn.sortedUniqBy=function(e,t){return e&&e.length?co(e,di(t,2)):[]},Vn.split=function(e,t,n){return n&&"number"!=typeof n&&_i(e,t,n)&&(t=n=o),(n=n===o?g:n>>>0)?(e=xs(e))&&("string"==typeof t||null!=t&&!ls(t))&&!(t=po(t))&&sn(e)?Co(fn(e),0,n):e.split(t,n):[]},Vn.spread=function(e,t){if("function"!=typeof e)throw new Ae(i);return t=null==t?0:wn(vs(t),0),Qr((function(n){var r=n[t],o=Co(n,0,t);return r&&Rt(o,r),Et(e,this,o)}))},Vn.tail=function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},Vn.take=function(e,t,n){return e&&e.length?io(e,0,(t=n||t===o?1:vs(t))<0?0:t):[]},Vn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?io(e,(t=r-(t=n||t===o?1:vs(t)))<0?0:t,r):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?go(e,di(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?go(e,di(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ae(i);return rs(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ra(e,t,{leading:r,maxWait:t,trailing:o})},Vn.thru=ga,Vn.toArray=ms,Vn.toPairs=Ks,Vn.toPairsIn=Vs,Vn.toPath=function(e){return qa(e)?Mt(e,Bi):ds(e)?[e]:Io(Li(xs(e)))},Vn.toPlainObject=ws,Vn.transform=function(e,t,n){var r=qa(e),o=r||Xa(e)||ps(e);if(t=di(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:rs(e)&&es(i)?Hn(qe(e)):{}}return(o?zt:_r)(e,(function(e,r,o){return t(n,e,r,o)})),n},Vn.unary=function(e){return Aa(e,1)},Vn.union=oa,Vn.unionBy=ia,Vn.unionWith=aa,Vn.uniq=function(e){return e&&e.length?ho(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?ho(e,di(t,2)):[]},Vn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?ho(e,o,t):[]},Vn.unset=function(e,t){return null==e||fo(e,t)},Vn.unzip=sa,Vn.unzipWith=la,Vn.update=function(e,t,n){return null==e?e:mo(e,t,xo(n))},Vn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:mo(e,t,xo(n),r)},Vn.values=Hs,Vn.valuesIn=function(e){return null==e?[]:Qt(e,Fs(e))},Vn.without=ca,Vn.words=el,Vn.wrap=function(e,t){return Ba(xo(t),e)},Vn.xor=ua,Vn.xorBy=da,Vn.xorWith=pa,Vn.zip=ha,Vn.zipObject=function(e,t){return bo(e||[],t||[],rr)},Vn.zipObjectDeep=function(e,t){return bo(e||[],t||[],to)},Vn.zipWith=fa,Vn.entries=Ks,Vn.entriesIn=Vs,Vn.extend=Ss,Vn.extendWith=Cs,ul(Vn,Vn),Vn.add=wl,Vn.attempt=tl,Vn.camelCase=$s,Vn.capitalize=Us,Vn.ceil=xl,Vn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=bs(n))==n?n:0),t!==o&&(t=(t=bs(t))==t?t:0),cr(bs(e),t,n)},Vn.clone=function(e){return ur(e,4)},Vn.cloneDeep=function(e){return ur(e,5)},Vn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:o)},Vn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:o)},Vn.conformsTo=function(e,t){return null==t||dr(e,t,Rs(t))},Vn.deburr=Zs,Vn.defaultTo=function(e,t){return null==e||e!=e?t:e},Vn.divide=_l,Vn.endsWith=function(e,t,n){e=xs(e),t=po(t);var r=e.length,i=n=n===o?r:cr(vs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Vn.eq=Ha,Vn.escape=function(e){return(e=xs(e))&&X.test(e)?e.replace(W,on):e},Vn.escapeRegExp=function(e){return(e=xs(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Vn.every=function(e,t,n){var r=qa(e)?Dt:gr;return n&&_i(e,t,n)&&(t=o),r(e,di(t,3))},Vn.find=ba,Vn.findIndex=Zi,Vn.findKey=function(e,t){return Lt(e,di(t,3),_r)},Vn.findLast=wa,Vn.findLastIndex=qi,Vn.findLastKey=function(e,t){return Lt(e,di(t,3),Sr)},Vn.floor=Sl,Vn.forEach=xa,Vn.forEachRight=_a,Vn.forIn=function(e,t){return null==e?e:wr(e,di(t,3),Fs)},Vn.forInRight=function(e,t){return null==e?e:xr(e,di(t,3),Fs)},Vn.forOwn=function(e,t){return e&&_r(e,di(t,3))},Vn.forOwnRight=function(e,t){return e&&Sr(e,di(t,3))},Vn.get=Ds,Vn.gt=$a,Vn.gte=Ua,Vn.has=function(e,t){return null!=e&&yi(e,t,Dr)},Vn.hasIn=As,Vn.head=Wi,Vn.identity=al,Vn.includes=function(e,t,n,r){e=Wa(e)?e:Hs(e),n=n&&!r?vs(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),us(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Kt(e,t,n)>-1},Vn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vs(n);return o<0&&(o=wn(r+o,0)),Kt(e,t,o)},Vn.inRange=function(e,t,n){return t=gs(t),n===o?(n=t,t=0):n=gs(n),function(e,t,n){return e>=xn(t,n)&&e<wn(t,n)}(e=bs(e),t,n)},Vn.invoke=Ms,Vn.isArguments=Za,Vn.isArray=qa,Vn.isArrayBuffer=Ga,Vn.isArrayLike=Wa,Vn.isArrayLikeObject=Ya,Vn.isBoolean=function(e){return!0===e||!1===e||os(e)&&zr(e)==w},Vn.isBuffer=Xa,Vn.isDate=Qa,Vn.isElement=function(e){return os(e)&&1===e.nodeType&&!ss(e)},Vn.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||Xa(e)||ps(e)||Za(e)))return!e.length;var t=vi(e);if(t==E||t==A)return!e.size;if(ki(e))return!jr(e).length;for(var n in e)if(Ne.call(e,n))return!1;return!0},Vn.isEqual=function(e,t){return Rr(e,t)},Vn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Rr(e,t,o,n):!!r},Vn.isError=Ja,Vn.isFinite=function(e){return"number"==typeof e&&Zt(e)},Vn.isFunction=es,Vn.isInteger=ts,Vn.isLength=ns,Vn.isMap=is,Vn.isMatch=function(e,t){return e===t||Fr(e,t,hi(t))},Vn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Fr(e,t,hi(t),n)},Vn.isNaN=function(e){return as(e)&&e!=+e},Vn.isNative=function(e){if(Ei(e))throw new Ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nr(e)},Vn.isNil=function(e){return null==e},Vn.isNull=function(e){return null===e},Vn.isNumber=as,Vn.isObject=rs,Vn.isObjectLike=os,Vn.isPlainObject=ss,Vn.isRegExp=ls,Vn.isSafeInteger=function(e){return ts(e)&&e>=-9007199254740991&&e<=f},Vn.isSet=cs,Vn.isString=us,Vn.isSymbol=ds,Vn.isTypedArray=ps,Vn.isUndefined=function(e){return e===o},Vn.isWeakMap=function(e){return os(e)&&vi(e)==M},Vn.isWeakSet=function(e){return os(e)&&"[object WeakSet]"==zr(e)},Vn.join=function(e,t){return null==e?"":yn.call(e,t)},Vn.kebabCase=qs,Vn.last=Ji,Vn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=vs(n))<0?wn(r+i,0):xn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Bt(e,Ht,i,!0)},Vn.lowerCase=Gs,Vn.lowerFirst=Ws,Vn.lt=hs,Vn.lte=fs,Vn.max=function(e){return e&&e.length?vr(e,al,Pr):o},Vn.maxBy=function(e,t){return e&&e.length?vr(e,di(t,2),Pr):o},Vn.mean=function(e){return $t(e,al)},Vn.meanBy=function(e,t){return $t(e,di(t,2))},Vn.min=function(e){return e&&e.length?vr(e,al,Br):o},Vn.minBy=function(e,t){return e&&e.length?vr(e,di(t,2),Br):o},Vn.stubArray=yl,Vn.stubFalse=bl,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=El,Vn.nth=function(e,t){return e&&e.length?Ur(e,vs(t)):o},Vn.noConflict=function(){return ht._===this&&(ht._=Ke),this},Vn.noop=dl,Vn.now=Da,Vn.pad=function(e,t,n){e=xs(e);var r=(t=vs(t))?hn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return qo(vt(o),n)+e+qo(mt(o),n)},Vn.padEnd=function(e,t,n){e=xs(e);var r=(t=vs(t))?hn(e):0;return t&&r<t?e+qo(t-r,n):e},Vn.padStart=function(e,t,n){e=xs(e);var r=(t=vs(t))?hn(e):0;return t&&r<t?qo(t-r,n)+e:e},Vn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Sn(xs(e).replace(ae,""),t||0)},Vn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&_i(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=gs(e),t===o?(t=e,e=0):t=gs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Cn();return xn(e+i*(t-e+ct("1e-"+((i+"").length-1))),t)}return Yr(e,t)},Vn.reduce=function(e,t,n){var r=qa(e)?Ft:qt,o=arguments.length<3;return r(e,di(t,4),n,o,fr)},Vn.reduceRight=function(e,t,n){var r=qa(e)?Nt:qt,o=arguments.length<3;return r(e,di(t,4),n,o,mr)},Vn.repeat=function(e,t,n){return t=(n?_i(e,t,n):t===o)?1:vs(t),Xr(xs(e),t)},Vn.replace=function(){var e=arguments,t=xs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,n){var r=-1,i=(t=_o(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Bi(t[r])];a===o&&(r=i,a=n),e=es(a)?a.call(e):a}return e},Vn.round=kl,Vn.runInContext=e,Vn.sample=function(e){return(qa(e)?Jn:Jr)(e)},Vn.size=function(e){if(null==e)return 0;if(Wa(e))return us(e)?hn(e):e.length;var t=vi(e);return t==E||t==A?e.size:jr(e).length},Vn.snakeCase=Ys,Vn.some=function(e,t,n){var r=qa(e)?Ot:ao;return n&&_i(e,t,n)&&(t=o),r(e,di(t,3))},Vn.sortedIndex=function(e,t){return so(e,t)},Vn.sortedIndexBy=function(e,t,n){return lo(e,t,di(n,2))},Vn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=so(e,t);if(r<n&&Ha(e[r],t))return r}return-1},Vn.sortedLastIndex=function(e,t){return so(e,t,!0)},Vn.sortedLastIndexBy=function(e,t,n){return lo(e,t,di(n,2),!0)},Vn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=so(e,t,!0)-1;if(Ha(e[n],t))return n}return-1},Vn.startCase=Xs,Vn.startsWith=function(e,t,n){return e=xs(e),n=null==n?0:cr(vs(n),0,e.length),t=po(t),e.slice(n,n+t.length)==t},Vn.subtract=zl,Vn.sum=function(e){return e&&e.length?Gt(e,al):0},Vn.sumBy=function(e,t){return e&&e.length?Gt(e,di(t,2)):0},Vn.template=function(e,t,n){var r=Vn.templateSettings;n&&_i(e,t,n)&&(t=o),e=xs(e),t=Cs({},t,r,ti);var i,a,s=Cs({},t.imports,r.imports,ti),l=Rs(s),c=Qt(s,l),u=0,d=t.interpolate||_e,p="__p += '",h=Pe((t.escape||_e).source+"|"+d.source+"|"+(d===ee?fe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),f="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(h,(function(t,n,r,o,s,l){return r||(r=o),p+=e.slice(u,l).replace(Se,an),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var m=Ne.call(t,"variable")&&t.variable;if(m){if(pe.test(m))throw new Ce("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(U,""):p).replace(Z,"$1").replace(q,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=tl((function(){return Ee(l,f+"return "+p).apply(o,c)}));if(g.source=p,Ja(g))throw g;return g},Vn.times=function(e,t){if((e=vs(e))<1||e>f)return[];var n=g,r=xn(e,g);t=di(t),e-=g;for(var o=Wt(r,t);++n<e;)t(n);return o},Vn.toFinite=gs,Vn.toInteger=vs,Vn.toLength=ys,Vn.toLower=function(e){return xs(e).toLowerCase()},Vn.toNumber=bs,Vn.toSafeInteger=function(e){return e?cr(vs(e),-9007199254740991,f):0===e?e:0},Vn.toString=xs,Vn.toUpper=function(e){return xs(e).toUpperCase()},Vn.trim=function(e,t,n){if((e=xs(e))&&(n||t===o))return Yt(e);if(!e||!(t=po(t)))return e;var r=fn(e),i=fn(t);return Co(r,en(r,i),tn(r,i)+1).join("")},Vn.trimEnd=function(e,t,n){if((e=xs(e))&&(n||t===o))return e.slice(0,mn(e)+1);if(!e||!(t=po(t)))return e;var r=fn(e);return Co(r,0,tn(r,fn(t))+1).join("")},Vn.trimStart=function(e,t,n){if((e=xs(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=po(t)))return e;var r=fn(e);return Co(r,en(r,fn(t))).join("")},Vn.truncate=function(e,t){var n=30,r="...";if(rs(t)){var i="separator"in t?t.separator:i;n="length"in t?vs(t.length):n,r="omission"in t?po(t.omission):r}var a=(e=xs(e)).length;if(sn(e)){var s=fn(e);a=s.length}if(n>=a)return e;var l=n-hn(r);if(l<1)return r;var c=s?Co(s,0,l).join(""):e.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),ls(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Pe(i.source,xs(me.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===o?l:p)}}else if(e.indexOf(po(i),l)!=l){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},Vn.unescape=function(e){return(e=xs(e))&&Y.test(e)?e.replace(G,gn):e},Vn.uniqueId=function(e){var t=++Oe;return xs(e)+t},Vn.upperCase=Qs,Vn.upperFirst=Js,Vn.each=xa,Vn.eachRight=_a,Vn.first=Wi,ul(Vn,(Cl={},_r(Vn,(function(e,t){Ne.call(Vn.prototype,t)||(Cl[t]=e)})),Cl),{chain:!1}),Vn.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vn[e].placeholder=Vn})),zt(["drop","take"],(function(e,t){Zn.prototype[e]=function(n){n=n===o?1:wn(vs(n),0);var r=this.__filtered__&&!t?new Zn(this):this.clone();return r.__filtered__?r.__takeCount__=xn(n,r.__takeCount__):r.__views__.push({size:xn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},Zn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),zt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Zn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:di(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),zt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Zn.prototype[e]=function(){return this[n](1).value()[0]}})),zt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Zn.prototype[e]=function(){return this.__filtered__?new Zn(this):this[n](1)}})),Zn.prototype.compact=function(){return this.filter(al)},Zn.prototype.find=function(e){return this.filter(e).head()},Zn.prototype.findLast=function(e){return this.reverse().find(e)},Zn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Zn(this):this.map((function(n){return Ir(n,e,t)}))})),Zn.prototype.reject=function(e){return this.filter(ja(di(e)))},Zn.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Zn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Zn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Zn.prototype.toArray=function(){return this.take(g)},_r(Zn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Vn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Vn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Zn,c=s[0],u=l||qa(t),d=function(e){var t=i.apply(Vn,Rt([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=a&&!p,m=l&&!h;if(!a&&u){t=m?t:new Zn(this);var g=e.apply(t,s);return g.__actions__.push({func:ga,args:[d],thisArg:o}),new Un(g,p)}return f&&m?e.apply(this,s):(g=this.thru(d),f?r?g.value()[0]:g.value():g)})})),zt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),_r(Zn.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+"";Ne.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}})),Mn[Ho(o,2).name]=[{name:"wrapper",func:o}],Zn.prototype.clone=function(){var e=new Zn(this.__wrapped__);return e.__actions__=Io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Io(this.__views__),e},Zn.prototype.reverse=function(){if(this.__filtered__){var e=new Zn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Zn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=xn(t,e+a);break;case"takeRight":e=wn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,p=0,h=xn(l,this.__takeCount__);if(!n||!r&&o==l&&h==l)return vo(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}f[p++]=g}return f},Vn.prototype.at=va,Vn.prototype.chain=function(){return ma(this)},Vn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Vn.prototype.next=function(){this.__values__===o&&(this.__values__=ms(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,n=this;n instanceof $n;){var r=Vi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Zn){var t=e;return this.__actions__.length&&(t=new Zn(this)),(t=t.reverse()).__actions__.push({func:ga,args:[ra],thisArg:o}),new Un(t,this.__chain__)}return this.thru(ra)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,et&&(Vn.prototype[et]=function(){return this}),Vn}();ht._=vn,(r=function(){return vn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},35161:(e,t,n)=>{var r=n(29932),o=n(67206),i=n(69199),a=n(1469);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},88306:(e,t,n)=>{var r=n(83369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},82492:(e,t,n)=>{var r=n(42980),o=n(21463)((function(e,t,n){r(e,t,n)}));e.exports=o},30236:(e,t,n)=>{var r=n(42980),o=n(21463)((function(e,t,n,o){r(e,t,n,o)}));e.exports=o},7771:(e,t,n)=>{var r=n(55639);e.exports=function(){return r.Date.now()}},57557:(e,t,n)=>{var r=n(29932),o=n(85990),i=n(57406),a=n(71811),s=n(98363),l=n(60696),c=n(99021),u=n(46904),d=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,u(e),n),c&&(n=o(n,7,l));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},39601:(e,t,n)=>{var r=n(40371),o=n(79152),i=n(15403),a=n(40327);e.exports=function(e){return i(e)?r(a(e)):o(e)}},70479:e=>{e.exports=function(){return[]}},95062:e=>{e.exports=function(){return!1}},23493:(e,t,n)=>{var r=n(23279),o=n(13218);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},14841:(e,t,n)=>{var r=n(27561),o=n(13218),i=n(33448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},59881:(e,t,n)=>{var r=n(98363),o=n(81704);e.exports=function(e){return r(e,o(e))}},79833:(e,t,n)=>{var r=n(80531);e.exports=function(e){return null==e?"":r(e)}},52628:(e,t,n)=>{var r=n(47415),o=n(3674);e.exports=function(e){return null==e?[]:r(e,o(e))}},30845:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(o=e[n],i=t[n],!(o===i||r(o)&&r(i)))return!1;var o,i;return!0}function i(e,t){void 0===t&&(t=o);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}},37672:e=>{e.exports={general:"PSPDFKit-au2y6ump4kfh59dxhzebebxuk",default:"PSPDFKit-rnby3kbjng3wxrprufma34mec",primary:"PSPDFKit-2pntgtgpg8fsv3qg8w5fqacy4h",disabled:"PSPDFKit-8gpjtx5az7b1eem7nk5gvydakg",inverted:"PSPDFKit-268tqp6xe3scp42vzy5s2eg3gw",danger:"PSPDFKit-948yzas5m1v89qgwznr168uzt",group:"PSPDFKit-3k3q1afeauc3dkyydsfhd7rcnf",groupAlignStart:"PSPDFKit-5rgcz4b9h8c8cna578xznnvwj9",groupAlignEnd:"PSPDFKit-7hx4xwaavengsmnusu1bgqjqxm",groupSpacer:"PSPDFKit-5s4by7ab9qyy27f25vvhggw9a1"}},7232:e=>{e.exports={controlButton:"PSPDFKit-2vhjpczqartzetc7h7a1xe2swv",contentHidden:"PSPDFKit-2nr4hbrfacpy6asgcy579kavvy",wrapper:"PSPDFKit-54fzg7z8tvnck7852u5y8tje7y",pickerWidget:"PSPDFKit-6e5m92eu677mvmp8771tt8vjp4",picker:"PSPDFKit-4z6z5fvcvgzmwxqzw9312q7pbd",firefoxDatePicker:"PSPDFKit-ggstmpcjv8fc924cxp4hqu6cx"}},19290:e=>{e.exports={center:"PSPDFKit-38tjaczw7mwm22y3raq5wmyy1j"}},5612:e=>{e.exports={label:"PSPDFKit-4x5dznaux2fnhttuhjv8qpnrxj",root:"PSPDFKit-79691ssynn76fuqcjks69dk3ms",input:"PSPDFKit-7sgqtcguswky89v7b7fn8q2nc4"}},81454:e=>{e.exports={container:"PSPDFKit-8gjpn8p7xvprbe81bs4qegz9b5",dragPreview:"PSPDFKit-49jnx4hscrumgdkjrg64zuk14q",item:"PSPDFKit-7ax9upudu4ydm6jd89kdj7c6yp",content:"PSPDFKit-2x9bkxefr59ns3waswhn3y72cg"}},78599:e=>{e.exports={}},58729:e=>{e.exports={wrapper:"PSPDFKit-65g4dzzwf1baxctk21rdyms5mr",trigger:"PSPDFKit-8argm94ptuprgj7y3vhw6dr8au",triggerNative:"PSPDFKit-8bsn2442emy52wh8sckmyyq3b6",triggerIcon:"PSPDFKit-4e1fn8va5ecagrevznyumqpt8k",content:"PSPDFKit-5mvfn68qgpc7atqubnfuc3f4b4",contentNative:"PSPDFKit-8bk7wp33b8n1aehgs8mmv32j4t",item:"PSPDFKit-399auf99f4y73aujcw9743yw3g",checkboxItem:"PSPDFKit-59ey17e4mhkgymzb2eu552tv9e",itemCheckmark:"PSPDFKit-6pvqs8xmu549e8xwas52rsdn3a",separatorItem:"PSPDFKit-23nsg5e8wvhgwkuwtf7s7yajjk",itemNative:"PSPDFKit-7hgwsfrfptbsjff1w8wp3vs3fh",itemHelperText:"PSPDFKit-8319n6q61cgvbywqraddyzzq4g"}},23629:e=>{e.exports={richTextEditor:"PSPDFKit-5dmn7sg6ek1rhdxkvkqcbqh9k",wrapper:"PSPDFKit-5uzk3qfr7fcvb4g9gra8chacg8"}},7764:e=>{e.exports={controlButton:"PSPDFKit-4nwgurkrevp1yuf43kw3pw6n4x",contentHidden:"PSPDFKit-617nrrn3mfmnddnq1twgtfg8r6"}},90315:e=>{e.exports={wrapper:"PSPDFKit-2sdtmn12dteusjwrjqrdg811d9"}},35840:e=>{e.exports={dialog:"PSPDFKit-72w9tuwnjsamr2knxvc63vmsar",squareCorners:"PSPDFKit-4xwm59bykq6v7gwcyxwek1ydrn",backdropContainer:"PSPDFKit-3284fys8g583pzu3bk5ga8zefu",backdropFixed:"PSPDFKit-6hden7azu9tyt1ymku7cdkfkat",section:"PSPDFKit-7765ngjsv6cemmhcayzhemjc2z",divider:"PSPDFKit-3mw4zj9p2e4tyy78h5yqq4qax7",dividerSpaced:"PSPDFKit-47ev9d7dyk4ccum2tcjz3a3r35",sectionSpaced:"PSPDFKit-z6uw3esrcxb9v43jgpz5fvnmt",shaking:"PSPDFKit-38d49zqp894x7hvhpr4zu4cbhn",shake:"PSPDFKit-73sp85tuvq7xtryqz19u273z9z"}},64550:e=>{e.exports={progress:"PSPDFKit-7ed17gy5t5hdnc4rekhbhwue9z",appear:"PSPDFKit-28ac9mfnscmu7fw7gy316sv7bn",progressBar:"PSPDFKit-35yq8vgyqdkq1cwb6v94z64det",progressFill:"PSPDFKit-4dwvz8ana6tddzhfs85f6mnnp8",progressText:"PSPDFKit-c8eg9u7nftba2p6d1jj8d8kzb",loader:"PSPDFKit-7ndmeze8gd8de3z4btdkfg1dtd",loaderDot:"PSPDFKit-3kawgqfqrbzkay9qu26fpcdsef",loading:"PSPDFKit-58k69thdd3ken25z2cjaqd7zx3"}},47963:e=>{e.exports={radioGroup:"PSPDFKit-f9rncje5vypsb5267rnrdcs85",iconLabel:"PSPDFKit-3uur2bmk3hqenhtsm6vtpkds4a",iconLabelIsActive:"PSPDFKit-6xcnmm7jxc3re1cmuv5z4j6sk7",icon:"PSPDFKit-8c6mhtrbbsa2js16uaq25bwfa1",selectedLabel:"PSPDFKit-7xbq3geyeftt96vccbps1yn6n7",radioGroupLabel:"PSPDFKit-6d1dypxk3mwh24wj647gqjdppa",fullWidthRadio:"PSPDFKit-4psvp5qh3p6sm4qkr5q2ax9kw5",radioGroupIcon:"PSPDFKit-57yjxnefe1fy6tdx3g76jf6qzv"}},24470:e=>{e.exports={default:"PSPDFKit-38cjpvxsadupm25h2qyxa7n5gd",error:"PSPDFKit-6x4yhy9ph7pfrk6h8kw9utwu6",success:"PSPDFKit-2ymexjhtn4dy2ktzjafxvn4mcm"}},8134:e=>{e.exports={h1:"PSPDFKit-8t7e487v5yhvt5nw4msux95yx4",p:"PSPDFKit-4u8kmkyf5hdjhe4qvnt5a975a7"}},70118:e=>{e.exports={}},92619:e=>{e.exports={treeView:"PSPDFKit-ydd8cegvmd6regsgpmcgpjavb",textWithOverflowEllipsis:"PSPDFKit-5ut2mzy5pm9dnbz7ja1zst4yn2",title:"PSPDFKit-2rfzkq6tdmadkygrfktbk5dv6h",treeItemContainer:"PSPDFKit-4fvzv33kkp5365eup7k2z8g2uv",treeItem:"PSPDFKit-54acf21hdpzkaxsw4swhxn23be",notLocked:"PSPDFKit-2n4dy8ne2zanmq1sp3a24av7j1",selected:"PSPDFKit-4674xx3wq5atu14x3amc4taev3",childRoot:"PSPDFKit-41pkx32asvdjt6wkzw79g1wrxz","icon-eye-open":"PSPDFKit-6uas11jy8s88sc3e3ya6z8ud3d",hiddenChildRoot:"PSPDFKit-8f8u5sdz1zn1xx15x5czq3f5rq",list:"PSPDFKit-6928zz3253n8zmwwxzbfm4gnar",visibilityIcon:"PSPDFKit-86gcd8xxhutnfcqpteyvv1y3e",itemContainer:"PSPDFKit-bxggf97x1sqaeqjt8fdxsymen",icon:"PSPDFKit-4m2n36dgsyk38wswut9tppx4cd",arrowIcon:"PSPDFKit-37j14254rfgde16q2ndmgytjqd",hidden:"PSPDFKit-55tte6ysse2zym23stes4hx5u7",iconContainer:"PSPDFKit-7r73uu3zuph6p89dbz5hjwb15k",itemContainerWithChildren:"PSPDFKit-kqc5fs14zg179hps3hqywya7s",noOcgId:"PSPDFKit-7gya8mn8mystvwa3qb5te8k64b",visibilityIconLocked:"PSPDFKit-8j6zbad6ngwwmbuncnzs1pnhp6"}},42164:e=>{e.exports={visuallyHidden:"PSPDFKit-8aptmp24g12z3cd4gbhkz59kk"}},11147:e=>{e.exports={container:"PSPDFKit-37y8jyguj8pacvfe5xhztdrrvh",hoverContainer:"PSPDFKit-5wkfpeyned7c4yt1mthjm2byaz",innerHoverContainer:"PSPDFKit-273bhz15uvme1jcsnfahrnpqhm",innerContainer:"PSPDFKit-6c7xfncwch6xyvu2c9ht4628jr",title:"PSPDFKit-7pv18yphuz8xnmy775ru1vhcxe",label:"PSPDFKit-35atxysv8qfd3f8r6vuxhqfqdg",content:"PSPDFKit-3771qspwv8ehjtp2dy2fzju48j",contentRow:"PSPDFKit-2yrnzfc2gx8w1fwmkqaw1avw1e",radioGroupWrapper:"PSPDFKit-88mdrcgzvp2729thzbev99hpvr"}},66780:e=>{e.exports={wrapper:"PSPDFKit-3g9zhcucr422ntc7f1j5r7d642",handles:"PSPDFKit-5jju3cq115q7jyhsr5tbbc9k5v",handleBottom:"PSPDFKit-7crnzth1tunbc1y11dsmm25d3d",handleTop:"PSPDFKit-6jhwapspg9juffwvb74ngnheyk",vertical:"PSPDFKit-72wh5syb1qx2wkvnqjh2ts7ghz",handleLeft:"PSPDFKit-3532cjnqew5bhzac79j6tsgba9",handleRight:"PSPDFKit-2mzfwjn4a49rq62m884wpsqvwe",horizontal:"PSPDFKit-4xstjgjt6yzwy52577u1uxmq58",handleTopLeft:"PSPDFKit-75mze7fkqv4saep8aun4y1qf7n",handleTopRight:"PSPDFKit-q2hk1mcaqqvf11djfan91yrhz",handleBottomLeft:"PSPDFKit-7w3jyr3yvfr7hpbmmha8uc2wr7",handleBottomRight:"PSPDFKit-3n3x1jyrwpd789w22qhc6nrscf",cropBox:"PSPDFKit-7mmux7swq1uq9t5m59se9qu3u4"}},74268:e=>{e.exports={wrapper:"PSPDFKit-5eynqxckhbqrz8a4f77yujbh2k",tooltipFont:"PSPDFKit-42pbth2eu2zrmgpae4jhg6h8en",arrow:"PSPDFKit-6nx2uf6vhf6v33bnb1j4ganvvd"}},89306:e=>{e.exports={textBlock:"PSPDFKit-nxtuykwdsyjh6y7z8brn21b7",activeTextBlock:"PSPDFKit-7qanggak6kh1whzh64vrkx4krz",focusIn:"PSPDFKit-6jc5m1b3ck8fqehqqd9b7th6gt",movingTextBlock:"PSPDFKit-7mzzrbnpvegtq3qm6jswkervc3",selectedTextBlock:"PSPDFKit-f7jcky6yaxh4m5617uaekk3cj",tooltipButton:"PSPDFKit-3mngkstqybyrr7k8f5kgqf5ksn",tooltipSVG:"PSPDFKit-7eywttjpush5dwpejjm2b1edg3",blinkingCaret:"PSPDFKit-4tgb9n39czt6qk8ajacqjv5xdj",blinkEffect:"PSPDFKit-7kwgpn262dubfp6s5nxvyrt295",resizeHandle:"PSPDFKit-7mpkqw7nbbw6tju4s46mm141sc",resizeHandleCircle:"PSPDFKit-3wksyn2d8kqsw1kg6b3vqztpfr",resizeHandleRight:"PSPDFKit-2dv6u2bf1w5g4e17qeenc78qhu",resizeHandleLeft:"PSPDFKit-4fvhxnqd5sg3bad4pr5gsqshv2"}},50439:e=>{e.exports={label:"PSPDFKit-5w3r6933jce2abq346fpwgue51",input:"PSPDFKit-45ug7rn2wuu9n7de4t3y1vuqwa"}},86378:e=>{e.exports={wrapper:"PSPDFKit-9kt28ket9qkhevfbz7cbbw1hb",controlContent:"PSPDFKit-4qbtrs7uku7m1vc5hra33bpuyg",icon:"PSPDFKit-3wag8ffkyv8h2tybvhe7amk9nm",content:"PSPDFKit-5sx5qx4udha76yjmqjkh932ffg"}},17777:e=>{e.exports={wrapper:"PSPDFKit-5ndr2a8v593wmzbkugj7mhpkx6",title:"PSPDFKit-8a1r68duucnwazuve1yp3nbng9",option:"PSPDFKit-4wma8z492shc4ep1hmy6t4vqut",icon:"PSPDFKit-4tmeja8e4gtumrdf83gvhyrcc4",button:"PSPDFKit-2ajb1c5391tmr11mqhaytx273m",optionContent:"PSPDFKit-42c2zme6zggmdzdxcpyafgegx3",deleteButton:"PSPDFKit-4muygv9es2v72qv85d9qdw6e96",deleteIcon:"PSPDFKit-7qr7fr949c5zy3chtgst1aqgnh",addOptionButton:"PSPDFKit-2ds9qudjp9zf1adda74rdu1zrf",addOptionInputWrapper:"PSPDFKit-4h68nb316qa6qx4sztcx3gjhnt",addOptionInput:"PSPDFKit-7squ9wp4ashk5qmgwbchusb3aq",hamburger:"PSPDFKit-62ry3uufpzt87bj49pdg2g3nbm",preview:"PSPDFKit-35d4wvwwd43nxvufv3g9vaexbe",invalidOptionInput:"PSPDFKit-2qjmywkp4vpcrjshnshk8bang7",addOptionInputWrapperInvalid:"PSPDFKit-2jz3pq39c872g9k317nqj88ts4"}},30549:e=>{e.exports={item:"PSPDFKit-6zammky19ps21racepzhy8rr4j",itemIcon:"PSPDFKit-2973scygnut2d1y23dq3gdzwkg",itemLabel:"PSPDFKit-257gq35az6dtxxmtvu6h8s17rt",advancedItemLabel:"PSPDFKit-4jkuv1k2kb5b4d6b929psybced",colorDropdown:"PSPDFKit-5n1c5d9upb23g6mdj3vrzdqj7c",colorDropdownMenu:"PSPDFKit-78jtbtb2j2q11tpjx4jn1wvwvk",sliderDropdown:"PSPDFKit-6s5q3xcggvrp6jet4dfsc14pgv",colorSvg:"PSPDFKit-6gk4p1adjfr1kg7hjpk3dgvtwc",colorItem:"PSPDFKit-4eqdajsqgt941vw7crd9u82kmt",nativeDropdown:"PSPDFKit-837ytb7vykc59sv5yrbgvzw1yp",dropdownGroupComponent:"PSPDFKit-6u23tbh3mu8cm8awxqyzn1zyru",dropdownGroupMenu:"PSPDFKit-5rw15mhzf9ycre4r1g7q2ptv9h",selectBox:"PSPDFKit-3691qqtsdq1317y5z7k3ak5jgk",advancedItem:"PSPDFKit-68nrp97epj74ah3dwvjg79nfmr",advancedItemValue:"PSPDFKit-5fqyghhu3ajdj6t464j4ufdk6q",radioButtonWarning:"PSPDFKit-7qt3uxz4r5wpssw2bbe778ga4g",radioButtonWarningIcon:"PSPDFKit-edsr1ac3tdhjwcufzhwq9jz98",radioButtonWarningLabel:"PSPDFKit-8fdb8fsm3rux9gpz8ggdyhhsyb",formFieldNameReadOnly:"PSPDFKit-71h65asx9k85mdns4n8j2kt3ag",inputReadOnly:"PSPDFKit-8drrc5pnvxucen4e82mywhscj3",lastInputField:"PSPDFKit-6eg6h7jnq9b1wjwv6kf3eqsd7b",footerButton:"PSPDFKit-7kqbgjh4u33aw27zwkrtu57p2e",deleteButton:"PSPDFKit-68w1xn1tjp178f46bwdhvjg7f1",doneButton:"PSPDFKit-8jb23wpy76fvg2x2vsvwy4rwvx"}},8643:e=>{e.exports={wrapper:"PSPDFKit-4q6rf47rhqhrpm9gdfefxt7qxa",label:"PSPDFKit-nt12adttbyb52awsgj2pvucxy",dateSelect:"PSPDFKit-3wx3w3pvjj3upy6569x74y56pt",formatSelect:"PSPDFKit-gcyutzqwxqe8x4u9j7mbfz1ub",input:"PSPDFKit-3yju2u277834cy3gahr2r5pxwa",inputError:"PSPDFKit-42bq6cs954sqg5h9qybewg7j71",errorLabel:"PSPDFKit-m39r8ehbhmf2d2t2fhn5emy6h",formatSelectWrapper:"PSPDFKit-ef4eqctrqnwdwaphd17x3zhbd",disabled:"PSPDFKit-u8tjzsmapgm69zq2qzyaxhxkn"}},96213:e=>{e.exports={wrapper:"PSPDFKit-21tdya9vwjkb9467d89dpj3dz5",guide:"PSPDFKit-6hysu1r6uydnrqrhfk1pps1pr8",hGuide:"PSPDFKit-7dhdpumpuhp8jg295a51ffsd9j",vGuide:"PSPDFKit-8csd1vhppnqgu7uyk8b5mf7czf",buttonWidget:"PSPDFKit-68un8hbc6qvj9x9s9g5q6t21ve",checkboxWidget:"PSPDFKit-5ah6dzjmznmmkdumesdneq7wz7",comboBoxWidget:"PSPDFKit-6fnpakckpk47tsnm8uz3m17u6y",dateWidget:"PSPDFKit-4yuxudxn8gpqg5ask3mtg2zakk",listBoxWidget:"PSPDFKit-51yew4ehdjn7cbsyfq5njb69ma",radioWidget:"PSPDFKit-41fvab9cypgzqfakdc8v95dcb3",signWidget:"PSPDFKit-7w2dawdet2j2kdxg5sat88d5bq",textWidget:"PSPDFKit-ecnxn5u4wzb7hzydwhayukxj",widgets:"PSPDFKit-737nkwy7w9s6vc4dtbb23bs54a"}},11568:e=>{e.exports={hintLineSvg:"PSPDFKit-34rw6dd52chrrk7xv2jr6zquew",line:"PSPDFKit-3eg3ptc58eu1dbczvddeqqmn75"}},37253:e=>{e.exports={root:"PSPDFKit-6eekmx2r3rzpn49557vdt2e5tj"}},44380:e=>{e.exports={colorDeleteButton:"PSPDFKit-996xvngvf7q6px5aesbyjcvt5",colorItemContainer:"PSPDFKit-43z4uam4dc2twts8dzzjr863sc"}},8087:e=>{e.exports={root:"PSPDFKit-8yyas95udks18p394fepzz4n9c",expanded:"PSPDFKit-4a4w8vxdz3qm2pcgsdreydv72t",content:"PSPDFKit-4xrf431ss37nqh76k5db3ja96w",left:"PSPDFKit-7s5tce8pp2hsk5huzfuxez1gr9",right:"PSPDFKit-53fgdvrhz6gw1hw6bdctgq1t9y",mobileTextMarkup:"PSPDFKit-5cjsnmyjcke6b1v12yfgbz41gg",stickToBottom:"PSPDFKit-6kfdt35ea6cx8yeepx58n36vmj",fixedHeight:"PSPDFKit-5f5bztx4e8cyvfqegfp7b8wthw",control:"PSPDFKit-443h9wb93vz3ncxwx1m5fdwczf",selectBox:"PSPDFKit-7m8dfjh7avxk6eweakkjyh6xyd",textFormatControls:"PSPDFKit-713qj5u5gbp169rww4vvs3uac",controlWrapper:"PSPDFKit-4h4nb13c68hupg148pgyvzqd9f",controlWrapperAutoWidth:"PSPDFKit-6xaanvujukmusu5r1tv594b12u",separator:"PSPDFKit-3vb4yamdnmg7g9xnhd6yk22phr",form:"PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y",formGroup:"PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn",button:"PSPDFKit-nwjc4czbh63dp4kvymek1fa3e",rotateButton:"PSPDFKit-sja59fxys18kkmu18xy6hph1s",measurementToolbarButton:"PSPDFKit-c3779mg2s6295w7bzec9269ub",iconOnlyMobile:"PSPDFKit-3xypkvwg7p8nvzw3r5s1buz9ej",blendModeSelect:"PSPDFKit-7gmgduz1enf1gxbhyfgf6e75hf",fontFamilySelect:"PSPDFKit-5r3wt2zcuevj4sv3duqd61jwmv",fontSizeSelect:"PSPDFKit-6wmznmmpnx14v21nf84mdrgcjn",colorSelect:"PSPDFKit-s6seujr5t4rukk7rxf3xkz55e",endLineCapSelect:"PSPDFKit-3g7scgbk9uy7r46ajp7k1jjfbv",startLineCapSelect:"PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv",strokeDashArraySelect:"PSPDFKit-c55swym84na3uj8cbws3nfkvk",colorSelectButton:"PSPDFKit-7eqxqzsm46bunvt6wn6a96cph7",controlIsDisabled:"PSPDFKit-54dwj7qcngkpxsybb6fqkr7y51",textAnnotationOpacitySlider:"PSPDFKit-2mcx41qn64buedadzqmun4x439",annotationNoteButton:"PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59",deleteButton:"PSPDFKit-64vjbtpmt1hrduq893ygvk8vse",buttonNoBorder:"PSPDFKit-v8tqx1qvfp1vbwuttpp622dr3",noteIconLabel:"PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs",applyRedactionsButton:"PSPDFKit-2hdx47smz78g3s16p3r4j4dgty",formDesignerButton:"PSPDFKit-2annhwtak67ncv4t85ctg2y3mz",isActive:"PSPDFKit-2vn1euub4mwbphwqwgfs1891h9",disableEditing:"PSPDFKit-p1au3zb7x12z2rhdhxt23urrf",disabledButton:"PSPDFKit-3jfra6hbvv4uav6ycenbqaya53",icon:"PSPDFKit-4qyrxjw4v89xuqdkqa4k8ztzzu",focusRing:"PSPDFKit-21r1nktvgb352rd4c4yy57pz9g",fontFamily:"PSPDFKit-7gzw1kmadbfq1tnmw7d1w7zxd1",dropdownMenu:"PSPDFKit-3ytv364gpnrm7x19bnbmeyg8f8",warningButton:"PSPDFKit-46sarmfrc8jg6s66bqgfefbjjh",warningButtonIcon:"PSPDFKit-4zhmsmuwkhtpwtruurtrcn2q8j",radioButtonWarningLabel:"PSPDFKit-54kg6hjakpubj7vt368nk674tz",colorPickerDropdownMenu:"PSPDFKit-2nazf4z9xd7xjtyhnbhe7rqgep",colorItem:"PSPDFKit-2kf3vca84fgs4vq9s7zs1gpcmp",deleteButtonIsVisibleInTouchDevices:"PSPDFKit-8gqc3tnvh9jka9muq4a9t5ahej",colorSvg:"PSPDFKit-5c7qnuw3hacprzg2xwyca31kpu",lineCapsDashArrayMenu:"PSPDFKit-46k4525rumt3dyxruh7yn6ftbe",strokeDashArrayMenu:"PSPDFKit-2ujy7afe1awfhuh9ymbm6bme7t",nativeDropdown:"PSPDFKit-4prbc6dhxp9ma6y7x5bw6vwpyu",fontFamilyNativeFlexbox:"PSPDFKit-2kq3mk8tfsg87ukm5zvcxchay3",fontSizeNativeFlexbox:"PSPDFKit-77brcq5bxx44kv6p84cffgnrfh",fontColorControl:"PSPDFKit-5frf4ykayzzn33hp3c5h7em7an",overlayTextInput:"PSPDFKit-2skb7mhe9t63pg2ukxcsw49xsr",overlayTextMargin:"PSPDFKit-3rsn1zkbd3dgwrjegb8g9hvhhg",groupWrapper:"PSPDFKit-2jq33zcqjvm19mjme567rvfrrm",groupDescription:"PSPDFKit-3xk6qkbjafwv7228ck9bx347w6",overlayInput:"PSPDFKit-7jwg5rgcerucffvtbsmxvfb7zk",radioInput:"PSPDFKit-4e75mg661j3ax96qwbdmpzpsb4",applyRedactionsWrapper:"PSPDFKit-2u9q2pe1ftds2f7qj2g4w622vw",customIconSvg:"PSPDFKit-6jesjcs8hzf3yy3bqdg9kv3hk7",snappingCheckbox:"PSPDFKit-7bm2dwvsr17e373y82u42rsemg",radioGroupWrapper:"PSPDFKit-2x6urux4z76dkhv9azjrwtw1r6",reverseRow:"PSPDFKit-41f3k1r3a4wcjyvwb632qbpsar",measurementToolbar:"PSPDFKit-8an6xzj8dczndqf5kkqj5bmdbb",measurementBackButton:"PSPDFKit-5zh4b5sq7ky7hj92aqd24n3cec",pointSnappingToggleButtonWrapper:"PSPDFKit-5y5uj8j53b14ftvfmra5n2fyyy",pointSnappingToggleButton:"PSPDFKit-6rhfuqge1pjsww21nyns7uzwz3",textInput:"PSPDFKit-28p9qe5v9wa12h9abqanj7759r",textInputField:"PSPDFKit-2dbzger7c772nf61kqx2yj1snn",inputDisabled:"PSPDFKit-37jqdeb6j87paw3ang9yrcet45",wrapper:"PSPDFKit-6pxk5ky2kj8jh4j1mw616vg41d",arrowDropdownBtn:"PSPDFKit-pynbrvdg7hats6u5gzc58czkp",fontSizeDropdownBtn:"PSPDFKit-8uffc57cupxw72ujvccyd5u75q",item:"PSPDFKit-4v7qu3gbmmmxc2v2hdycthse1t"}},89107:e=>{e.exports={calibration:"PSPDFKit-2s9j7gu6ht55v3fyhb7xkheuuq",item:"PSPDFKit-fn2f5n9d9n8sgj4djs9y86gau",scale:"PSPDFKit-3jgnu7ag1ffzarpqmuquune258",itemIcon:"PSPDFKit-nmsane1s7x9rp49pa42tzpgya",itemLabel:"PSPDFKit-2r48s2je9bp19zqfbs8mgk7184",advancedItemLabel:"PSPDFKit-24yucwgnrz6dxz6nmkt9jremkb",areaLabel:"PSPDFKit-4cuxks564t1dxgzbv7nvjy4yuc",colorDropdown:"PSPDFKit-9rhw3adf6wbfa7qrq615fjqaf",colorDropdownMenu:"PSPDFKit-6e6bk97ea2ucn9vbtxktfajm2p",sliderDropdown:"PSPDFKit-82a458mhumnurhq39us7zu6hyz",colorSvg:"PSPDFKit-5nmcjw7r4p1h2nd2mexfegg2rt",colorItem:"PSPDFKit-3cbxsq6nmh9r4f5756r6c95c7m",nativeDropdown:"PSPDFKit-86jxsd27b1jv4t4ubqhrx633pn",dropdownGroupComponent:"PSPDFKit-6ts2t8acharjbuq54t5wy2eb74",dropdownGroupMenu:"PSPDFKit-u1vpgqn2y5rje53z63f7mq5er",selectBox:"PSPDFKit-51c4fjecxrh9h4tcuygx1te5q8",advancedItem:"PSPDFKit-ncuqwmdusv2msxq73z6fzb24z",advancedItemValue:"PSPDFKit-4ua7xnacac2pm8hhds1kq2me5u",radioButtonWarning:"PSPDFKit-2abxjf7c5m54s1fbpjybj51p2m",radioButtonWarningIcon:"PSPDFKit-4enmf2wc85hnr4743bkg1tyeer",radioButtonWarningLabel:"PSPDFKit-6z22nmct2crec69qf41ena61ub",formFieldNameReadOnly:"PSPDFKit-4nrcak3ru32krpendekckcwwv8",inputReadOnly:"PSPDFKit-5x7gnppfkuuynrhwnep13pak49",lastInputField:"PSPDFKit-8zzdqsxn1q94q3wn44vjes6g2r",footerButton:"PSPDFKit-71vy88q3wndydgre2e58gj53rd",deleteButton:"PSPDFKit-5np2yc2xrsd6y7kt22abt9hb6d",doneButton:"PSPDFKit-4n879bzvk8q7g195cmz6yr433b",calibrationTop:"PSPDFKit-6ckerwnts2h4dqbxrjurcef6dc",scaleTop:"PSPDFKit-4fbe83fym7dgut61w2nf74r473",calibrationBottom:"PSPDFKit-7j9yftqvyfsbxszyryvg4tugmg",scaleBottom:"PSPDFKit-5naa93y6vbhdeeygcvssv2w99g",calibrateRight:"PSPDFKit-83b7zxjm332wqcc4s5gvrxfucj",nativeButton:"PSPDFKit-5xp4qfj9u68z92e75mcf5nqkcg",scaleDropdownContainer:"PSPDFKit-3bdhuh7gr82rtyrxt33vmpj2hk",itemHeader:"PSPDFKit-76y3uq9zy9ugrnh25fwthbtxdy",spacer:"PSPDFKit-4kxzb9uytx6jnhjtkwnzccwcb1",icon:"PSPDFKit-29u9ktdbpp3nysqgxn6naha4m8"}},87301:e=>{e.exports={modal:"PSPDFKit-52vp1wxnkrwaqvutwh9kdyma98",contentRow:"PSPDFKit-5rsrw7ak9xvqnc7bwahsasngx9",spaceBetweenRow:"PSPDFKit-6zjmyma75e4rfma6ujstg3d11u",scaleRow:"PSPDFKit-2ybdx86p6v4nqn1zrarhep8fhd",scaleRowContent:"PSPDFKit-6xaquyhkgnnz83eh3tcntmwpqp",addNewScale:"PSPDFKit-7zz1pa7xv6wgt2y9szvhke9935",rowSeparator:"PSPDFKit-4smtt8g7weze8w3e3n9ht93ak4",scaleMiddleSection:"PSPDFKit-37dv4qsruvxu93evjeh9gtqdna",scaleContent:"PSPDFKit-3766zw48tmq7b2dbzcgstgzxpt",footer:"PSPDFKit-43ubpyc1q299xrwh4k5xrxtk4m",header:"PSPDFKit-32yn21p1rhkx6139tfee43rskf",sectionTitle:"PSPDFKit-88em62dff33bjz4dpcz217kgw1",title:"PSPDFKit-5dpchy3cupj5bxucqn5nt8anr5",scale:"PSPDFKit-8cfu1mwm1ccfxda8tyh14s93v5",signatureValidationCloseIcon:"PSPDFKit-7ypv327ggsprw7wtqh3ggzwtt5",closeButton:"PSPDFKit-6t3gx31kbfuvg7pvvv3m4y2ud6",isActive:"PSPDFKit-7u52vd8vcqhwm46mqm3f6x3u4n",error:"PSPDFKit-4mb9ffzr14xj4f7cmnqkgcrcmq",scalesDropdownItem:"PSPDFKit-65q27ak2bn51hh1r3q8bw6pvrm",calibrationSuccessModal:"PSPDFKit-27a27t78xjc4pkkn8fs1enm4up",calibrationSuccessModalContainer:"PSPDFKit-6g6xvejv8dd1pf35kx6ba8gp5e",calibrationSuccessRow:"PSPDFKit-41haxjcx7ed6crwc23x62ewb7t",calibrationSuccessTitle:"PSPDFKit-68duutqz7ut9qftzm7ns95kbsg",nativeDropdown:"PSPDFKit-6zd1ytwjwxzumcawqamehzyaqs",dropdownGroupComponent:"PSPDFKit-49whdesn68fq294wzdzda443yx",dropdownGroupMenu:"PSPDFKit-3xxzytnemnzg22awfk9rymr2m7",scaleError:"PSPDFKit-75ga4kp46pkcv4peqbsu45nk79",icon:"PSPDFKit-5d5cb99rrfftnfraj6ve1wxtcw",activeScaleRadio:"PSPDFKit-5ypdmxk3tukb91thbuegtp28ry"}},29538:e=>{e.exports={container:"PSPDFKit-7d2gpuvu6pf58ndvvr6gvsje7q",warningIcon:"PSPDFKit-89fc7eud4xcjy12ca7j2haddwk",modalRoot:"PSPDFKit-47ced6qn4nruzv5vuz287qtd7z",heading:"PSPDFKit-2cqd842dczj7tmreu8ur1v9s39",description:"PSPDFKit-yuc41qrmjjetqv8krhsnx78k4",closeButton:"PSPDFKit-6xed4xk58tjqt3b2cq9x86gehh",closeIcon:"PSPDFKit-5zfc76hv99gw27ybkmbk7ebzep",buttonsGroupSection:"PSPDFKit-5wvh17kef4x55jrrzkh3hkaga3",buttonsGroup:"PSPDFKit-4qu4e2qh9g4wt4vaj7wc7rek98",button:"PSPDFKit-8etcg5412u6jyxe6wcw49n4eev",dropdownSection:"PSPDFKit-3hxqujdr5scngtpmjesahhytzq",mainSection:"PSPDFKit-3nd9gpwyygjwssm1a6vvyp2m5n",mobileWrapper:"PSPDFKit-8p7rfubnucmdpxjpsw31xbf5mm",formWrapper:"PSPDFKit-v7ryn5whw1cfrp237m7h2y2mz"}},98891:e=>{e.exports={wrapper:"PSPDFKit-6zm9nnbwvmtst5hnt9v1yhtmta",selectionBox:"PSPDFKit-4rqhxj4gybrps8vxa7fy7a3ssd"}},39270:e=>{e.exports={root:"PSPDFKit-8ffg9gawq78kbmz1r4tzjvvqc9",button:"PSPDFKit-8xy9jsj7mkgjmn242vthsdvebm"}},43165:e=>{e.exports={root:"PSPDFKit-8ehcbhz241z1tfyhjztbe12ube",isDisabled:"PSPDFKit-86bf3wbtmfc5xa3yfd4fazea9y",withLabel:"PSPDFKit-5734rhbbfgd613g81qs13md49y",disabledWrapper:"PSPDFKit-2n6h3jcy1kke81pjgewmpnqa34"}},13099:e=>{e.exports={root:"PSPDFKit-7kgnbhpp26m2rect3yjw1u1693",disabled:"PSPDFKit-314s1es5hfe28mgs9tnhkzb1de",annotationToolbar:"PSPDFKit-812ak3qykd2u5n22qxdy661rhr"}},99879:e=>{e.exports={root:"PSPDFKit-32xak74au7weyz9ycbwytr2c3f",item:"PSPDFKit-5j1459s9zq1zket63h26xjmr1j"}},59003:e=>{e.exports={container:"PSPDFKit-8cswfxve74abt7a5ua2r512q67",empty:"PSPDFKit-7ukwuhzxh3rd8yp7euuxw4jn9b",annotationCounter:"PSPDFKit-4qgb7hxxn2r4g3fdet5bn1pzv8",pageNumber:"PSPDFKit-7pcrw4sjytqdrvwzpes48axkkj",annotations:"PSPDFKit-4uh3zdrahzskzstfsa5v48m76w",icon:"PSPDFKit-65qjuaube253zzcqdz1q4ku4y9",layout:"PSPDFKit-6dxjd7dzqt7trrg39dqjupckv3",layoutNavigationDisabled:"PSPDFKit-6ek4wb89x2x5x1vhr1s1xdux9n",layoutContent:"PSPDFKit-7uyteqpmrzbvazvysj6dcy32h8",footer:"PSPDFKit-5c6ug4g42fqed2454e7qctd4sn",delete:"PSPDFKit-3jftjfjas9mc5fnfn3nvfw9rbs",lock:"PSPDFKit-52gz8466br5ea9fb7c841e2syj",flagsContainer:"PSPDFKit-8wr83uqbdd33rfwu128mj5gnh2",flagWrapper:"PSPDFKit-8d9gtv8zjahaxqn3hdsa2t7tea",label:"PSPDFKit-6qg835argr8knewku8zy5hfyqv"}},72313:e=>{e.exports={root:"PSPDFKit-3g5zqud1wjmcd71kwst6gjbcds",main:"PSPDFKit-6qc6bjvev7sffhewvpkas9njsf",mainContent:"PSPDFKit-2f9xn5bkkrt3h6fsmstdexegkk",mainContentResizing:"PSPDFKit-61bk1385h5ss7vmr9n4d26y7wj",viewportContent:"PSPDFKit-ejvfc31fwjv43pf6dxbymn8xw",overscrollDisabled:"PSPDFKit-gec7bey8wdz7abca1kbpqjncb",progressSpinner:"PSPDFKit-677uxd34863fgw6v55c3187a5v"}},25217:e=>{e.exports={container:"PSPDFKit-3794mza67b1yg72kafrt5hb5ne",wrapper:"PSPDFKit-82vfq7tmnvc7msfc9e69vvteqg",fullWidth:"PSPDFKit-74mdazdfzvch29s6gw4fvdanw9",layoutSmallWidth:"PSPDFKit-3fv5zkg97n3mu687rszsbq2vap",layoutWidth:"PSPDFKit-6n1ufy9m7k6kddjekzx8ra9equ",loading:"PSPDFKit-8ar7rzebgg8hmscpa7e7zunr9c",heading:"PSPDFKit-425nu4nkcgh6mxxdgbc94tfnnh",pageNumber:"PSPDFKit-7q4jhntpw5ww3s7967h4fxawb9",nameEllipsis:"PSPDFKit-25cnnvzt1zat453758mcudxsca",buttonContainer:"PSPDFKit-39x22bdb75a1huszgc6wehk4n2",name:"PSPDFKit-8qwj35jvzfa59ztz98a439e6uy",layout:"PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1",selected:"PSPDFKit-3xvextg3pac89n7ybnha6syffx",edit:"PSPDFKit-2msvy6g19deemzxgx9xvgw7c57",editVisible:"PSPDFKit-3gpkhfqvs5pqtr4r9ry6e3jwjq",editor:"PSPDFKit-5j54uxjtt11g68z45aykeapv6x",editorControls:"PSPDFKit-5zwbu9g714rrbrfqc66ep7t3cs",editorEditButtons:"PSPDFKit-2b313c5ajnt3v97v7xqyj8k9ag",bookmarkDeleteButton:"PSPDFKit-426mdzb7nn1fr9xdajcg4c1cqv",bookmarkSaveCancelButtonsContainer:"PSPDFKit-2bfgwcaxtth9w1jg88tzb46hy7"}},69462:e=>{e.exports={loader:"PSPDFKit-7386u3hksvwqrk1txdsf6yjwh7"}},87161:e=>{e.exports={root:"PSPDFKit-rmf34nztrfgm2bcf7ccec8zhz",header:"PSPDFKit-3xkskd39bk5c2rsxpw7jwbmnn6",textarea:"PSPDFKit-8m2ghddxnzm27ad3jnnphw522j"}},22945:e=>{e.exports={root:"PSPDFKit-59dey26v49qmxgx7zfh1ehxqag",message:"PSPDFKit-4dct27k6q3q9d4c4atrzr75u79",icon:"PSPDFKit-6pphz7vq2cfumupsmn27tmjjzb"}},93952:e=>{e.exports={container:"PSPDFKit-5wp751jqbxpbbwkus9rbbddxgu",empty:"PSPDFKit-38m3bpj83kumpugydqecgvfb87",content:"PSPDFKit-6thyvskwj8bhtjt43bjv7r2tv3",controlContainer:"PSPDFKit-2wc1eg8pv5bz8rp1599q8cfpf",controlContainerNavigationDisabled:"PSPDFKit-8q6pak6zvt1x45sh6b8f91pb5g",controlContainerNoIcon:"PSPDFKit-8ea69n5pavewcwdnwuxcsvwz4",control:"PSPDFKit-83geqxjybeyf3vmtnwsfwrkpk1",icon:"PSPDFKit-8hs25mq46u5e54udrwp52hzqxc",iconExpanded:"PSPDFKit-6dv6mkjhdzxrbje2fu49pke6cy"}},84691:e=>{e.exports={root:"PSPDFKit-61pwj551swb751vsvtncfs97hr",hiddenMenu:"PSPDFKit-3txgs1brv6djswfx9c7deps2u2",hiddenMenuEdge:"PSPDFKit-8f8f78v7f3wp5n55qwjfz6qd98",item:"PSPDFKit-33kurg23vuastg415g558n9d74",selectBox:"PSPDFKit-4dvm3x8wyss7tgunnpgjqt7f8r",dropdownIcon:"PSPDFKit-2npkau1bttsh6zan1r4gdrzpzd",disabled:"PSPDFKit-2dk2qm9asz7my783w1r6n44gcq",isSelected:"PSPDFKit-5nr9hus8pqrwezzkgpd829srq5",isOpen:"PSPDFKit-5qky4ks8vy64a1wucbs25k86sv",measurementDropdownText:"PSPDFKit-7e9vp9ptc17dn5jtjsppjv8j8d"}},46632:e=>{e.exports={root:"PSPDFKit-5y28nfkmugyqqwevkxsjrpvq3c",box:"PSPDFKit-3gr2ksq6zccy3zdrbnfy8nh55j",error:"PSPDFKit-6eb3kcqgd5y9q8r7d8xtqz4649",errorMessage:"PSPDFKit-scv92vgvrnxnyc284zcn6hjk3",icon:"PSPDFKit-4wf98g1ha47f4tw6p5xpr51nn7"}},84008:e=>{e.exports={root:"PSPDFKit-6wak7k5y4nxmyh4g8xnd4zxf8d"}},16989:e=>{e.exports={row:"PSPDFKit-69gywaa9k96ge1hvked74ez5n1",column:"PSPDFKit-83vux4k1ev4t7s9g2qxwew634a",columnPreview:"PSPDFKit-42kn3f7jwfc8upuf4bdwgdyxcg",moveCursor:"PSPDFKit-7x2bqjhgdt551w3v3y37gv3yub",moveCursorDisabled:"PSPDFKit-78m832wbg6e9vmp1jz7knc9yk2",moveCursorPreview:"PSPDFKit-6bd8y61brzkav8gpvce127azsv",moveCursorPreviewEnd:"PSPDFKit-7b8eq949hpzkc8q3qh9tv8nxbp",thumbnail:"PSPDFKit-8vr6stqqbzz9z9n2w721sczcmz",thumbnailClickDisabled:"PSPDFKit-213q4dhe5s5dzr5zeyuf11xun6",thumbnailSelected:"PSPDFKit-4vvz95aegtycng8362mk8x2u2f",thumbnailBeingDragged:"PSPDFKit-7w3scq2qsd5h5g3fxuj2wccn4t",label:"PSPDFKit-2y5u2mcg8a7zhnfwfbbcfhnxcx",labelSelected:"PSPDFKit-3q3ydy7h9pcgtbpzqngpf8cet1","engine-blink":"PSPDFKit-38dx8eye5za2p9zfprek3a6fmu"}},80054:e=>{e.exports={layer:"PSPDFKit-2z5hjphww7fvh1z69wxptsw1b9",cursorPointer:"PSPDFKit-3hfxfy9zqj8jprbtu9vf3epp17",cursorText:"PSPDFKit-3p9u592y96exhe2r2ntk5vbyxu"}},16522:e=>{e.exports={imageAnnotation:"PSPDFKit-5jn8feeuubm369vnx3evcba1rp",stampAnnotation:"PSPDFKit-5b8wstcs14vckqa7tw77vr685r","imageAnnotation-error":"PSPDFKit-6anvx47kar5w253fz6rqg9hxcr","imageAnnotation-loading":"PSPDFKit-rfgw2ucjvptvmzh7zu271n4x2",wrapper:"PSPDFKit-4jv7s61cvh1pcgqnvbxqubx8xv",errorIcon:"PSPDFKit-3z5svj219typgks4atm97b4y6h",notContainedImg:"PSPDFKit-7kevtqukx2j121vwemdz3hztp6",containedImg:"PSPDFKit-56vfsb9q6rq86j9dwdwt9edsp5",wideImg:"PSPDFKit-7yuetahtedwdfmawkggfhnmc8",highImg:"PSPDFKit-4bu7pjnhzjnq6m5wh7z589mw3t",placeHolder:"PSPDFKit-4dw6z4dcs45pn73rp3uakt52q2"}},47460:e=>{e.exports={layer:"PSPDFKit-26jegsvp6ufypbu8pxdv7fr1zz",deadCenter:"PSPDFKit-2wjxpeaermrgg7maxgnqmz9nc3",selectable:"PSPDFKit-3g43gj4at3dwbty7y7kctavd8b",withLayers:"PSPDFKit-85dfpszurcp74kqrua8y455s3x",relativeContainer:"PSPDFKit-247rksk7kd3gvyvzwg1npvhbdy"}},44032:e=>{e.exports={loader:"PSPDFKit-xe2ftya3wdjvwwhx6d5stmz59",loaderDot:"PSPDFKit-6wzqbae66q9h6nya7ye8mvy8kt",loaderShown:"PSPDFKit-64xwysuhvuuphryhjd9kj5nvy3",loading:"PSPDFKit-3u75qfne74tt2wqf8tq6zfy48n"}},2998:e=>{e.exports={canvas:"PSPDFKit-3tr6q51qastpckz1pg3zrtz3rw",svg:"PSPDFKit-2t63tjx7ps8wa34htwyhg1avhr",rect:"PSPDFKit-zxyvguvek2ym1z7dekdnq5v1z",rectStrokeBetween:"PSPDFKit-brx4byv7qnas5ky1tfgt6ba6x"}},14578:e=>{e.exports={OCGsContainer:"PSPDFKit-7w1nxb8aashzh6vn7hwaahzr8r",title:"PSPDFKit-5q31p223rz3j4rbvjs1pf1t3p5"}},98861:e=>{e.exports={layer:"PSPDFKit-4vgck46zhyuscqkznsp8pabh68",isPanning:"PSPDFKit-4cbfb2m7vt4aq7g21z3gxtzzde"}},16085:e=>{e.exports={root:"PSPDFKit-6m9gupd1vyy1fr4bpfheg6wwdk",progress:"PSPDFKit-8nwc6qm7s426c5g16sqaykh38n",progressBar:"PSPDFKit-3mu82vxhmw13y36qrsu6ya81cc",progressText:"PSPDFKit-489xz3n1mhssjcqb9fqcbey276"}},57193:e=>{e.exports={root:"PSPDFKit-5w2de1uyy445puycu46qkgmvar",message:"PSPDFKit-6w84556468p7ssdr8cqmyn8mjr",icon:"PSPDFKit-75vqhz2zk4qrae8pgcsegd1jf9"}},58288:e=>{e.exports={root:"PSPDFKit-6mny4jk3t426w24d83deht33rn"}},89939:e=>{e.exports={selectionRect:"PSPDFKit-41x845wgwdrzef1yhewvdke7jq",isDragging:"PSPDFKit-4xr8ttj6ez7ht327cw29e7egf4",draggingRect:"PSPDFKit-3zx2hhrb4ywt7dnp33xe4gkwb3",resizeAnchor:"PSPDFKit-dhbnhykfyudwqtjr6bkvb411g",rotateAnchor:"PSPDFKit-m9u6yjwr7kv5hrxj2edskfkgq",nwseCursor:"PSPDFKit-39325679hnnu7x4wvxu6tbzens",neswCursor:"PSPDFKit-4d596dtje8pvaa57j35a6jumtj",ewCursor:"PSPDFKit-24ebukh9y4t3vv23sz65xrazp3",nsCursor:"PSPDFKit-3vgs6mrf1dabs2kb4pj7s49g45",rotationLine:"PSPDFKit-h4n5vrr4a9j6mcbt75ygqk7hf",svg:"PSPDFKit-8edbp12fj3btvvzys6786f1fgj",rotationHandleSvg:"PSPDFKit-cb345hgmyvpuvgnewsbd7dmq6"}},97838:e=>{e.exports={container:"PSPDFKit-62axfp2anyb8xpk75p9y1ex6p9",empty:"PSPDFKit-7jkmh5d31sfmdb3qmnnkp6a7fa",header:"PSPDFKit-3zs2wgyxgxdfjh9gpg7wspausy",itemList:"PSPDFKit-2crjcengr1ceqrunvecud8qq94",item:"PSPDFKit-7wa9h3ptey4wt56e8y9w94736m",title:"PSPDFKit-35h6ezfp489wdhvnnpt5mhpkw9",icon:"PSPDFKit-8vqyb7s2ww33zaax9tzz18gfwb",iconUnsigned:"PSPDFKit-7mkxxp5qgadfweavgqfx3f87tv",iconSigned:"PSPDFKit-87hht5q4ypqsrmw4k7stqxv4w1",iconValid:"PSPDFKit-2xxan7ne4sertfng4p9e9m9wu9",iconWarning:"PSPDFKit-86zqb11dkjaszvm3c7cdnwkcgh",iconError:"PSPDFKit-47uqz9mnbhc3j74nzn3bhbq28m"}},5017:e=>{e.exports={root:"PSPDFKit-7dzbfgjr5hhbb3rc1z1j74nw53",signatureInfoContainer:"PSPDFKit-67qcupwvpz7h59x97s5hu3w8y9",signatureValidationStatusIconContainer:"PSPDFKit-5hnd1py888z6q6dqpr2kp2cq2e",signatureValidationStatusIcon:"PSPDFKit-6ee193drjzesd61tu19hcvekb6",signatureValidationCloseButton:"PSPDFKit-67meud5692v5j5a61jw2681xzk",signatureValidationCloseIcon:"PSPDFKit-6u1j5sk8ayvj3gvkxqkswrcet2","status-valid":"PSPDFKit-44csr6tj4teuj9fhfz8ee71tfx","status-valid-icon":"PSPDFKit-2e9udw15t4gp8scnfddhxz9hsd","status-warning":"PSPDFKit-4ppb4buhu7rwnjufcn6ajpkskn","status-warning-icon":"PSPDFKit-86f3yc46j85tr3gsnftm482dk","status-error":"PSPDFKit-2c4pxuv49a7x173nj5nzfauxbt","status-error-icon":"PSPDFKit-8zs1teqnye2ksnaxmemgknn6pv"}},27895:e=>{e.exports={root:"PSPDFKit-6rzkyc987bqyetscyfvr4nf3f2",stickToBottom:"PSPDFKit-2fwepfwm4jpbvv9evy3bh2cmsu"}},53328:e=>{e.exports={slideDownEnter:"PSPDFKit-7q656qfg6merpmvr8kzt9szzpm",slideDownEnterActive:"PSPDFKit-2uctbmt9nj99yrpxdk24951hsm",slideDownExit:"PSPDFKit-5v5jfhfemf1mxc5ret8j9wh9sh",slideDownExitActive:"PSPDFKit-3a46uu7aytzncpnz4ppsu1ucnd",slideUpEnter:"PSPDFKit-7yg9b82v4xahqj93wys6tpbu1f",slideUpEnterActive:"PSPDFKit-44rpp3fvbs9mj6uu6g6my1392",slideUpExit:"PSPDFKit-4pjqt364whvu7b81yv22fwa1ve",slideUpExitActive:"PSPDFKit-4sea6h8efz1kfffbq87vcmq3qu",moveDownSignatureBarEnter:"PSPDFKit-6hdgn11y1ecgvxga69t6p78b9a",moveDownSignatureBarEnterActive:"PSPDFKit-2b6tmwyq1x3rcswb7k71f8vurh",moveDownSignatureBarExit:"PSPDFKit-7hwkgbqv2uvce8qyhqnq7n9vdp",moveDownSignatureBarExitActive:"PSPDFKit-4b3k2aksgt8h7qfz8vz5nbnvfz",moveUpSignatureBarEnter:"PSPDFKit-6rtd66rsbcpdy21mbkethcajk1",moveUpSignatureBarEnterActive:"PSPDFKit-6jy41y1rpnd5deemk7hqpbq4m1",moveUpSignatureBarExit:"PSPDFKit-21nc3yzh856bkm3mw7smrrzb5w",moveUpSignatureBarExitActive:"PSPDFKit-4zmvpm3c2adfnu8qnuw79cjh3s",fadeEnter:"PSPDFKit-79rm2zddjaxgzdkx4w8mqnqa8c",fadeEnterActive:"PSPDFKit-7trwsc5j1bg69wa1vf9qt5e2ve",fadeExit:"PSPDFKit-8t2qrt9phw91wb7a8wwmgdce7p",fadeExitActive:"PSPDFKit-7e9n9mfhw378wrt55c2j4gpdxm",scaleInEnter:"PSPDFKit-67d6x1qnthds5d58mamrx9qpu3",scaleInEnterTop:"PSPDFKit-3dfszxf6jpx5tm2y1gn1ehxgtw",scaleInEnterBottom:"PSPDFKit-8kb8kruw3xcx17v1486van1ttq",scaleInEnterActive:"PSPDFKit-3c4mxzjgy4m6n8r275v2uyp4we",scaleInExit:"PSPDFKit-3uce8apgqwt65tqd63cq5zuvpm",scaleInExitTop:"PSPDFKit-3hsvwu5hjq1a44vcrtkv5fhpnr",scaleInExitBottom:"PSPDFKit-5r2r1t3f6q5zqjq84zbr69ejuk",scaleInExitActive:"PSPDFKit-35xj9c4azp7m511gxuzzvr1k5d",scaleInExitActiveTop:"PSPDFKit-t8mvndx8cr8ydw9bm2vyh2wgw",scaleInExitActiveBottom:"PSPDFKit-378kvahbp4zr42u1gb4cqyxsad"}},5871:e=>{e.exports={container:"PSPDFKit-5b8n6ax7uyfq7q2zt9n9en17ab",wrapper:"PSPDFKit-2jffvae4wwchr5476dpvz5z5ch",header:"PSPDFKit-2ehyk369yxm1zk369m6mttkt22",hideButton:"PSPDFKit-7agv7htc7d2j2xf6ugmwrw1ppu",hint:"PSPDFKit-6qzybrgcrc8sfgmwkc749exk9n",icon:"PSPDFKit-32x2pcstxyeubux789j773s9rc"}},98416:e=>{e.exports={root:"PSPDFKit-8jp8nm1hj7szh4vv5aurdvd5j9"}},11471:e=>{e.exports={placeholder:"PSPDFKit-611629rcz14kzt4fxq9cun8r55",stampAnnotation:"PSPDFKit-291h7cpg24qsc3uyjkzbr88w1y",widgetAnnotation:"PSPDFKit-3k8pvf98ypg7cfxdw2h4s9hks8",error:"PSPDFKit-6kn9fwrhmcn5ws8thfmrbawkps",loading:"PSPDFKit-4668kvbgmy9yr757xzersy788h",wrapper:"PSPDFKit-3gs4z9rtc1a83dstvmn7mamwfd",errorIcon:"PSPDFKit-4vsf7ppa6vgpu72s69w4p6cheb",APStreamParent:"PSPDFKit-6gjytkd24fh19g96hp4rxaukmu",focusWithinOutline:"PSPDFKit-7duaya572p1aupn3x6vrce4kb8"}},93408:e=>{e.exports={annotation:"PSPDFKit-6nx1rtuadk913zxen95pax5hz5",icon:"PSPDFKit-8qpben4cgdt355xztxuqcrcxvg",iconActive:"PSPDFKit-5ty8mmke3as9vprwxv67knqxcc",noteIndicator:"PSPDFKit-4cgbq7rdg2pm33fadjsppnpuux",noteIndicatorActive:"PSPDFKit-2aywxsct3x3wxc4d46re3nssxu"}},2928:e=>{e.exports={btn:"PSPDFKit-7ynwexufv1hs2a9qe2gqaegb69",btnFormDesigner:"PSPDFKit-4cfxcba5wt87u69f2dw7v6xter"}},36401:e=>{e.exports={checkradio:"PSPDFKit-24sm6mv9bd2n715byv1c75x3p1",input:"PSPDFKit-8zz118e9x2cbq64jj7xe4juhtg",checked:"PSPDFKit-5d2c15vj7t3amwwn2yqea1bcas",inputRadio:"PSPDFKit-yun3fvwa7cmcs36wxdpy8barj",check:"PSPDFKit-5kxx5vfzwztr2mwa4mzj18jqrq"}},68850:e=>{e.exports={layer:"PSPDFKit-5pebxrpmqgkrf7vcxe4371geyh",comboBox:"PSPDFKit-7fyvzesvuhuugesmttmj91m4nm",expanded:"PSPDFKit-2a2g4zggqmewex1vm5v4zpgb56",comboBoxTop:"PSPDFKit-6s31a1f931synspdjrnvzxnfgc",valueBtn:"PSPDFKit-4bd1e6vbjnuczspgvgas5tb4us",arrowBtn:"PSPDFKit-3hahgu1xkd2v4363x5d3e6rryn",menu:"PSPDFKit-3vaw2awbbx1p5zjtdh9v5dhtts",comboBoxInput:"PSPDFKit-89gzhtz3mw6xunsgtyr2eum9s6",comboBoxList:"PSPDFKit-88t5fcsjadwffxkef3gfkzaksk",comboBoxListItem:"PSPDFKit-844vbxfxwv5rq9arab8e8gd5de",comboBoxListItemSelected:"PSPDFKit-rrhtfqn9ehag1af8v4xkdd8au",comboBoxListItemActive:"PSPDFKit-49532ws826dtcr1m8n5e4dcjzu",empty:"PSPDFKit-57p3ubjwqmm7d4cs2pftzys4tx",listContainer:"PSPDFKit-s2y6sy6212w5uexa3d23a5asn",list:"PSPDFKit-2waaja9crmechfes91ghkmsmbj"}},97008:e=>{e.exports={annotation:"PSPDFKit-6mcjw1j7tzm5hepajxw83pzakp",icon:"PSPDFKit-5cbbkpsrtp7h1aheyyz5jh553f",iconActive:"PSPDFKit-gfh2n7ye6agxztvft95yj26j6"}},51491:e=>{e.exports={layer:"PSPDFKit-334y8gbu8r2jjjn87nzvuevc59"}},89407:e=>{e.exports={canvas:"PSPDFKit-3w2n2qdrr23cmdk4q8whx3tsxf",container:"PSPDFKit-2gh7qt7mp38bkn5x9qf3y99zu3",path:"PSPDFKit-39tt5mrp55ku7xxg9u7mh41a33",selectable:"PSPDFKit-6wrq4aekz4kq4fgt2pvnb9w6a3",rect:"PSPDFKit-57qn9qb3ug1rpk9v33hd5cxd1d",svg:"PSPDFKit-5q9h4djx3kcxba1qj815pdz3fs",cursorNotAllowed:"PSPDFKit-252bad36x484xaffc25n3h9thg"}},18661:e=>{e.exports={layer:"PSPDFKit-3ncb69xb2ve1sqjjdtyc6cd8g4",annotationRect:"PSPDFKit-5mur5qgg6vwc2wpggzustr83j9"}},55338:e=>{e.exports={listBoxRotated:"PSPDFKit-4epuuwuap9pk3ntjcv5zf9djsb",listBox:"PSPDFKit-7xq92qy48k696v9kfs77d7f216"}},64131:e=>{e.exports={layer:"PSPDFKit-2wu94uj3duvdnqa6qcf42ezs6d",annotation:"PSPDFKit-54pg5n9qt6pj2u219my1yv9v14",wrapper:"PSPDFKit-4ywhmukc4gwqac7ntzy2uz9x6h",content:"PSPDFKit-8tznpz6dg1zmer4mxt1kj4d367",fullScreen:"PSPDFKit-77mpcyuxmy88vcuvt1qbfqn1bg",button:"PSPDFKit-4sup5zkzxcndck1xbaquyw5tat",hidden:"PSPDFKit-3zbd56btxsp72du8mq44gc68pf",header:"PSPDFKit-7t4t5t39c8gj689nypcn8sy1n4",title:"PSPDFKit-8jdq4qfwqhh5yzunhf1nvu3sxs",tools:"PSPDFKit-5ns5z6cwaq7uvb37ejfqcck6cj",tool:"PSPDFKit-28m2z472nqzne4jhz5hvqkzp78",footer:"PSPDFKit-53wjfdyupu3zpctpt74eumsq2b",label:"PSPDFKit-39sru8fstgk9ukw59vdxw6fxkm",icon:"PSPDFKit-2rbb4rpjnbmgu1bj6enchp1549",noteIconInPage:"PSPDFKit-6zth72zst4nvzumuemnjxzum5p"}},29211:e=>{e.exports={container:"PSPDFKit-87g1wera6smataxregkeucdz7u",wrapper:"PSPDFKit-7nzf5ygyxf3ft1vwqded1vys1c",canvas:"PSPDFKit-7ckwm8p8x63jumkemns7vefj6u",rectContainer:"PSPDFKit-8629afaazd1efzub8c3z1qfnae",active:"PSPDFKit-4vzt6kbkqqcu93437rphdgn7xj",selectable:"PSPDFKit-8qst6ht79xb7qug95szm7j35vv",textContainer:"PSPDFKit-86f9zgw71s8n95n7rxd3uqn3c",textSpan:"PSPDFKit-82f4yxbm2u7ssyqxr8sztm7qzb",svg:"PSPDFKit-7vkn9dyk6rhen2hjabdgskypgp"}},99721:e=>{e.exports={canvas:"PSPDFKit-86u6qqcu5qd2p78j3sasqcq3r4",container:"PSPDFKit-6euxnwumsrs547zhsd467cw4p9",visible:"PSPDFKit-2gqt93vqwz7akw64wyn6tk2eqn",cloudy:"PSPDFKit-67t1bptsfdkkkbpn6jgsm9ktd9",selectable:"PSPDFKit-xydzth3k7ns3nahap4gpxayej",strokeDashArray:"PSPDFKit-3zmy52u71trzxmdvbycck28tg7",svg:"PSPDFKit-68femat6jd47qrav117uen51r",cursorNotAllowed:"PSPDFKit-btun3r6cqwxytpv1u8kdyngqc"}},70101:e=>{e.exports={sign:"PSPDFKit-6b7je6w7pq8q3htgsu22kkv6jy",signReadOnly:"PSPDFKit-7181s3qkmmn7fdexydqff3quq3",modal:"PSPDFKit-4kv9rhr6nzpkdjsr5xsjyfaqju",editorCanvasContainer:"PSPDFKit-3nvj481sp2nd9z1gjhvh4xnak2",signaturePickerContainer:"PSPDFKit-3v4b4f9nkt7wjjd26afq8763k5",viewRoot:"PSPDFKit-2g5n99kjfbnxh1che778jg7tjb",viewSignaturePicker:"PSPDFKit-6qtbckagb6bfbdepc3443v6ywj",header:"PSPDFKit-4su78ec7s1c5mkz65pjuq22xsv",footer:"PSPDFKit-5ru14aj6muejw948tvdz1gb3ks",colorPicker:"PSPDFKit-3bexu72w84xp6s2e361sj7711b",title:"PSPDFKit-5r5vdeqd1th8znbb9ygk279qt7",button:"PSPDFKit-8c4vuvw13bebs9s1s79remb5de",group:"PSPDFKit-4kzbv64jk7wgnrp27w38k26bj3",editorCanvas:"PSPDFKit-5ngq82qgx5cxz4uz5mzjkchjr4",signHere:"PSPDFKit-2ju133936zwp42hg96a2f41uec",signHereHidden:"PSPDFKit-2ttca3yjnqndu3nqu48x21jqwz",checkbox:"PSPDFKit-6uvk92p73etnn6mk5qcbqwj9yx",checkboxLabel:"PSPDFKit-642395esq5512gt252k1kx6gg2",signaturePickerList:"PSPDFKit-6p71pj5wv5hqqjxncy9s2zhp6z",signaturePickerListItem:"PSPDFKit-4yhszj3k6pkfr9qjx6zw41fd3g",selectSignatureButton:"PSPDFKit-4nbyd35stvtu3bz3kk4yr18ed3",imageAnnotation:"PSPDFKit-353zxjn4cwq7f5trcamndrkw3j",deleteSignatureButton:"PSPDFKit-7urkar9j36rp4ztzeaqz3jjm6x"}},74038:e=>{e.exports={readOnlyOutline:"PSPDFKit-4rfp7ee9191kd8ynnn3bq8u33p"}},50647:e=>{e.exports={layer:"PSPDFKit-4dwy35ce5zzs8fcuzm4z5qyj9j",annotation:"PSPDFKit-4rhmvvkqbbeztw9z4seq55hdh4",editorWrapper:"PSPDFKit-5sgjnpxkms74d5uhcrs1xnpjkh",editor:"PSPDFKit-c8up8r9n155axqjtb8dat8e5t",richEditor:"PSPDFKit-3g965ce6b38z92kn57ymc33d93",readOnlyOutline:"PSPDFKit-4f28b7qs5h6nk9v4ngh8xr9zsb"}},90255:e=>{e.exports={annotationRect:"PSPDFKit-8py43zrk8tdwczbp1rgu5zkpcc",activeTextMarkup:"PSPDFKit-4111jnwhknt7c61pjq82hshdjm",highlight:"PSPDFKit-68rke3v2mwfersk9s87pby4xqz",active:"PSPDFKit-2wyzkwftushgxqvheqv9gc1qz7",markup:"PSPDFKit-6jx1pd841ynqrzk4be2rtgtwnc",strikeout:"PSPDFKit-4hm8gjadpcvqnu18qte7mqnfey",underline:"PSPDFKit-8hws43jkrgjxj8tajvc3qfhyfr",squiggle:"PSPDFKit-78vd6wa19gxf1ecyped1w9etsw"}},39213:e=>{e.exports={layer:"PSPDFKit-73459dse4nv5d9mqecpwp57s3d",annotation:"PSPDFKit-8wsgnacdwb75d488xzar24jqkq"}},561:e=>{e.exports={widget:"PSPDFKit-7fx816mm5dnp6e45vtkbeu7u6h",readOnly:"PSPDFKit-53uhn3hvzxffzgk8gjs3fbkn19",focusedWidget:"PSPDFKit-2j44z8y92gejua2pwvgm8sjhm4",onFocus:"PSPDFKit-2kwn8pyc4wfu8r2pfah6fq7qfx",combNoPaddingLeftOnFocus:"PSPDFKit-x9z86ubc4peun53ye7m7udhyp",flexText:"PSPDFKit-cr6q4n8xfg6vtzd5q658psukz"}},80389:e=>{e.exports={docComparison:"PSPDFKit-6xbbtf8p2qcsg9fyy1cuyj7gw5",source:"PSPDFKit-5vy62kz7ms89nk2k2k3swztwdt",sourceTouch:"PSPDFKit-2bqfqmutsr41ycmfq7rs53uqxa",referencePoint:"PSPDFKit-3r5sb26jgasuxhwabq3dunx45u",crosshair:"PSPDFKit-83td1duhyv22mhv3yff4qtza4s",selectPoint:"PSPDFKit-4fgfk59wcke21gwwxhuq8mm7n7",hidden:"PSPDFKit-3dkk2vqpcthpdtrchghtj4ssn4",comparisonPin:"PSPDFKit-7kr3xjykvj7fr643ccby96g62n",page:"PSPDFKit-76gy17tgphy3rkqc839s5j1pzc","deg-0":"PSPDFKit-5pzb826nhfhqp1g5p1ks17fq77","deg-90":"PSPDFKit-427zszzm3g9rt685w6err79657","deg-180":"PSPDFKit-2ymsd6xds9g7m3tn384wexbs7d","deg-270":"PSPDFKit-36rheuktx5sb8ecxck9vutfh9y",magnifierContainer:"PSPDFKit-4y67gffktarr3dzsdm3be4tkxg",magnifier:"PSPDFKit-5dnneume1xfsb52nce5gmkwws3",magnifierGridContainer:"PSPDFKit-5vm17u78a9y73z4fns92w8pcmh",magnifierGridStroke:"PSPDFKit-5r343876m2a2k85cus2jjxh8fw",magnifierCenterOutlineStroke:"PSPDFKit-54zz8rzg9jq31dvzq91d2qkgg5",magnifierCenterStroke:"PSPDFKit-5ct94rndvza9jt8fdk5kj434wf",magnifierZoomValueBackground:"PSPDFKit-jyeb8qr8rp75utm5jpsrrw1xb",magnifierZoomValueText:"PSPDFKit-41ur68urabv2z38jg19c3pcx39",documentComparisonPageLoading:"PSPDFKit-4kmrm9dhgkuczunfzmxs26b83p",pointerLayer:"PSPDFKit-4t23dm96wzfwsfr5116ky9f96y"}},36572:e=>{e.exports={docEditor:"PSPDFKit-5jknctefe1bdrcw8ckp4c84xxz",moveButtonContainer:"PSPDFKit-4pkhpangb13n8mmvw8ukdfhw4n",moveDialog:"PSPDFKit-8am6zresjtqzubaax3ncbdkk65",moveToolbarButton:"PSPDFKit-4m35g8jgpcwck6gzgr9fx9sj37",moveDialogDetached:"PSPDFKit-7wm68x153yxrzfku2ccv6bng6w",moveDialogShown:"PSPDFKit-78jn9e1vjnny6e5w7kbswqahdm",moveDialogForm:"PSPDFKit-8h6fy8n1ae1b2jzvx2bx945q5p",moveDialogFormLabel:"PSPDFKit-2q7tsdrjbypfd7mwu6hbfdnmqn",moveDialogFormInput:"PSPDFKit-7ja4pzq1aasqwczs6cw41n68nw",moveDialogMoveButton:"PSPDFKit-86an2z1e8c3rstpug6xhqbrz92",moveDialogHint:"PSPDFKit-7nbf67rhjsg7k4gsdmg33muhjb",moveDialogHintText:"PSPDFKit-2mh89kckyg3qpesbhuwrcrw9rd",pagesView:"PSPDFKit-4qc12j3k5rawv8wqf56u3q8k4b",pagesTitle:"PSPDFKit-87xjjuqyeg5kxzvrh4nak5jkrs",tileContainer:"PSPDFKit-832dwy6tmpr3u59345n392d5kp",newPage:"PSPDFKit-ufnr5vdahbxdpe2583xyak7wk",importedDocument:"PSPDFKit-36mc2jhmhw8s6j455stsmh6k7t",importedDocumentIconCircle:"PSPDFKit-7mtmexx6nf2jzpxs9vv5ukyjhk",importedDocumentMovePreview:"PSPDFKit-bx6vky4fzf7e375qv4fgmyffe",importedDocumentInfo:"PSPDFKit-3hs8zjffpgsz41nr4dp7ybdkt5",pagesGridLargeThumbnails:"PSPDFKit-5yvxb7rnpjz9pacz8czkc32f8y",pagesGridLargeThumbnailsIconCircle:"PSPDFKit-491vbmcbxhae4fwryx7hsht2wh",pagesGridLargeThumbnailsInfo:"PSPDFKit-2q199y39wutn5mwnfxjd4juxqq",pageEntrySelected:"PSPDFKit-8cajckh5v3zfxfj9hpdytffrv9",page:"PSPDFKit-5nnn6safhgnqp45k1gnacbs5b9",pageLabel:"PSPDFKit-7hskkg7c42g4u1gxydpvnhrare",pagesSelectedIndicator:"PSPDFKit-267ekkrqhchqasjegw4gdy4gr3",pagesSelectedIndicatorShown:"PSPDFKit-7dep96m3dt6f6m6ggtsdvejn1b",pagesSelectedIcon:"PSPDFKit-czbss4f5tejzb3s7rydnxdc6g",bottomBar:"PSPDFKit-8rq6e51mxrxdrszuexbb2cnxhy",spacer:"PSPDFKit-397h62jvayz1wt2xp2cz2ekmmw",toolbarRoot:"PSPDFKit-7egcdrn8t9zxr4h4f3tqd6a6q9",toolbarContainer:"PSPDFKit-5mgaebuj6tj1kbvvkf42rphvab",movePreview:"PSPDFKit-7mbngz46jn2pabmnth6t7hsds1",movePreviewPages:"PSPDFKit-7bbxybqv7gn2ruj7drnnj7fqgj",movePreviewCount:"PSPDFKit-339r3xtmjz8gs5vpsy5ncb75nb"}},65575:e=>{e.exports={modal:"PSPDFKit-3jpjxq56vk2un8ub8pje71u85a",withIframe:"PSPDFKit-5dqa12x5zkbqjvjdekehdmb32n",fallback:"PSPDFKit-68rzfs8a4kxm2sv4wxbhvjjsk4",fallbackPagesView:"PSPDFKit-8a6esc3kchamvphrc23c4bjcxn"}},45639:e=>{e.exports={root:"PSPDFKit-er87znp11z8wa56gmt1nr1adc"}},68938:e=>{e.exports={root:"PSPDFKit-8ytejk69dm72arac6kecrv7jgs",input:"PSPDFKit-4mck9x4g933qtvsqa6g63nq21j",focusRing:"PSPDFKit-5z85yf9u7uzqx732cjqehyhd3s",swatch:"PSPDFKit-7899cbm2djcuh9uzvh8y9mhq12",inputIsActive:"PSPDFKit-7m6c5mvk9zc3ccp4w9ckt76p5q",swatchIsTransparent:"PSPDFKit-6ge99vaebv8tjqjjwz2pg1qzd6",swatchIsWhite:"PSPDFKit-3eaf5m5zxe8hsj1wptbbs2ru3r"}},74076:e=>{e.exports={nativeColorInputWrapper:"PSPDFKit-3rtr4tx6y919hj63k8j6veyfvu",nativeColorInput:"PSPDFKit-2f2ahvz6xw42cz6ppqg7qrnv5w"}},60210:e=>{e.exports={root:"PSPDFKit-4knn6qcs6mfzubc11j3jn3kdh9",label:"PSPDFKit-5sa85wwcx2g58bvnwu3e9vxux8",input:"PSPDFKit-27139754tezpaj4xtjvqyqphqa",value:"PSPDFKit-6b7xgm3nqzh79vcp4knygzskc2"}},65927:e=>{e.exports={root:"PSPDFKit-877ty5wd8zf2uk8mwxy3vm7ra1",slider:"PSPDFKit-8mewb5unfae7pfb8a3vhx2pfe4",label:"PSPDFKit-7s1evqenghjbnmpkjx46g7aj7a",value:"PSPDFKit-4tsachwba3d2gug8ut8n2k7kw2",dropdownItems:"PSPDFKit-339qy9bx9b7sqbvd31hpseqnhm",dropDownItemsUp:"PSPDFKit-86g1a3rfhteap5bxhyrt2js27u",button:"PSPDFKit-7dtmrym3urvgecwht2mvnd78yn",toggle:"PSPDFKit-4ukn6hggdcjm9mj167e7f6hqx1",flexContainer:"PSPDFKit-7bepqp75z28r5jat89hqdhcjva",show:"PSPDFKit-9f949cfpq924euep2ae47njjm",dropdownItem:"PSPDFKit-5zut7thxsf86fddq8rgtbtrenu",isFocused:"PSPDFKit-5bqkg9v7er35bgbtaqq2vnq3z8",selected:"PSPDFKit-y9nzknrtb2kq52c2xfb4715p7",disabled:"PSPDFKit-6baefa9vw8uyyrsvfez7h3ewrq",dropdown:"PSPDFKit-4xjmg49gjvk5zp5p42ms81uw4h",srLabel:"PSPDFKit-2cuzr66tz354vn9dgkzb1pwq4b"}},16165:e=>{e.exports={root:"PSPDFKit-6pk75qzdg2ukj6fscjncywz97r",input:"PSPDFKit-5nhvbbak97n275vs6wmzzmeuwc"}},37922:e=>{e.exports={magnifierContainer:"PSPDFKit-5u5zg1p821mpfkbnn2k5uwyj5f",magnifierContainerMobile:"PSPDFKit-8wd7v7mnz2rcxvt87ua26mzc6b",magnifier:"PSPDFKit-5nkfqsjv5yud4v1dqua4t23fay",magnifierGridContainer:"PSPDFKit-4ucp3vtq371cyq6rjfnyr48ke9",magnifierGridStroke:"PSPDFKit-2mrwgj2fjj6868616ds613yrym",magnifierCenterOutlineStroke:"PSPDFKit-7sk5hhk6ycrf96cdxc48xy41us",magnifierCenterStroke:"PSPDFKit-4cc9nv4wau5sr77yxnn4p9c6vn",magnifierLabelBackground:"PSPDFKit-61a71yusrshwesstskqk1ts821",magnifierLabelText:"PSPDFKit-zd3q5csyfkc4sst1n5gwd6ynd"}},91414:e=>{e.exports={confirmGroup:"PSPDFKit-6sv7sqb53n124u6fj1tms89hna",content:"PSPDFKit-654mqarkz9bpasgehzef4652nz",button:"PSPDFKit-3db8msn3nmbe95zjws8yr4m8q6"}},25534:e=>{e.exports={noLicenseTimeoutModal:"PSPDFKit-4uccwfpffynm27eb199wcvgfa6",content:"PSPDFKit-6duc25m5r8gy5rgntee7kp4489",header:"PSPDFKit-3fuuhwa21xs9tcx2tz4png1tpx",text:"PSPDFKit-3176nt5ytqfasruqx2cb7426zk",link:"PSPDFKit-321y6pgcakckhny2k21wpdad3b",button:"PSPDFKit-4ujhjvq5wfhu2712d8utd4h7kb",icon:"PSPDFKit-4rbfyr87rf5tqtuqbp52tvzdkj",modalSeparator:"PSPDFKit-5g75rf83wkybmsqshvx3hx9gf9",topSection:"PSPDFKit-k2d9eapy94sjetk94kep995vs",bottomSection:"PSPDFKit-8727zt9sqkbkpmkyjv42frxabg",signUpButton:"PSPDFKit-77ehu16zxj84xk3794yaypyfn"}},83181:e=>{e.exports={container:"PSPDFKit-87k1yb2m56xugj11pvrn2epwmr",icon:"PSPDFKit-3s4vm3fcksqsg2getabuj9bha4","icon-regular":"PSPDFKit-g3g187c7zezz65j88wexd218w","icon-error":"PSPDFKit-568kqv9a573y6cm3j1y6xs5v62","icon-success":"PSPDFKit-287v657mcme5ewwt57t23w5qyh",iconBox:"PSPDFKit-3m2rqse7rv63dfkwgvcjy19997",alert:"PSPDFKit-3eq8gr4w2wkxz8kcemn3feckgz",dialogButtons:"PSPDFKit-7qjt9yezkrce9kdkn11wwk7ntz",unlockEnter:"PSPDFKit-5r5qzyzhnat22bqdytrnu5ageu",unlockEnterActive:"PSPDFKit-678vkyyxar4zfmqvz19pk1gg7c",unlockExit:"PSPDFKit-g25477hjsg4skgtpfrw93sj7u",unlockExitActive:"PSPDFKit-3vp9fnny3e7hxta8yxd6jaxea4"}},1079:e=>{e.exports={blockContainer:"PSPDFKit-8am3xt8zzjm64r49rez8ukprpf"}},40573:e=>{e.exports={element:"PSPDFKit-5adgrb7yvngqk7tujcpr5rc3aj"}},40193:e=>{e.exports={root:"PSPDFKit-5e6tnwkxw9ka415svsdkkptcvx","deg-0":"PSPDFKit-5scxecvmyvz7wahnvpvhqf1u6n","deg-90":"PSPDFKit-4f127napxmw48wj78u1h4t24d5","deg-180":"PSPDFKit-6ncgj8zzkc4v2az5nh5414n95b","deg-270":"PSPDFKit-2a2y9pvb8su899gfj1wsz2ta6n",image:"PSPDFKit-863nmkfmtuh7z8chsq5cfw6y9h",textHighlighterMode:"PSPDFKit-q7ejbjhybhuyqgmj1yb6a4f56",focusPage:"PSPDFKit-8hbgq8hdkhtfm5abztpkrkdp87",hideCursor:"PSPDFKit-87pd6mukheqbugejr1g1n3es7w"}},26564:e=>{e.exports={layer:"PSPDFKit-7v6us4bgaesz3ux74pvm4adq66",overlay:"PSPDFKit-3p1jq2xuq7kt61btvzbmcvfsdg",linePadding:"PSPDFKit-4sqvdfhz56pzjs657n5gmfjv4t",preventUserSelect:"PSPDFKit-7mqrwx6ruetyxx1crt7g8tj53b",lineSelection:"PSPDFKit-87rsspmjgdj1nr79j5xt1zpxef",line:"PSPDFKit-8ayy4hjz5h5sb5mqfjxzpc42zw",chromeSelectionWorkaround:"PSPDFKit-55tte6u6fczpks4kxqrywvkhcv",lineTextCursor:"PSPDFKit-3npj2ht4kppfp95hepqhfjb49x",vertical:"PSPDFKit-68wd7m2jrz9c462vgy6yvba62f",enableTextSelection:"PSPDFKit-2tg9p1utsyyke5vpebq5gc3413",debug:"PSPDFKit-3a9hp6ezp9vyzwpeksepg43552",selectableText:"PSPDFKit-6fq5ysqkmc2gc1fek9b659qfh8"}},15743:e=>{e.exports={tile:"PSPDFKit-2ef7r6efsekvzma2acw68z2wsd",tileChrome:"PSPDFKit-74yvexyjr8t4ns42jhvu6euzjz",crispTile:"PSPDFKit-8qymj2kknqsa216hrbd9qhuh5b",tileSafari:"PSPDFKit-8yevkzm64ywt19z5trdgvvvu8n",tileFirefox:"PSPDFKit-43q2x5xuukayeyf9pnsf3s8vxv",tilePlaceholder:"PSPDFKit-4uahg5akq9ua7h3n6r45t9pnv1"}},89359:e=>{e.exports={tooltip:"PSPDFKit-818uepd2971vwf3fmcn6tbacgg",arrow:"PSPDFKit-5zd14p1pfpmy1ny1f8skcknw3j"}},66645:e=>{e.exports={popover:"PSPDFKit-538wj3bujswdrqewakmmxa9fyf",popoverHidden:"PSPDFKit-8ahxg2rbtxn2ubnutukzs28dqn",container:"PSPDFKit-4jrgdk842q6nrzgfag4cvz7hsa",innerContainer:"PSPDFKit-7bx43nrztecej9c1j8qw9tshdy",title:"PSPDFKit-7w1dhbtytq2jfdb48gs1ywe8jm",content:"PSPDFKit-7dajp2vmg4zxw9ambet64n9umu",footer:"PSPDFKit-2wtzexryxvzwm2ffu1e1vh391u",footerButton:"PSPDFKit-239sjtxdzvwfjbe3ass6aqfp77",shakeEffect:"PSPDFKit-41mt66hwvjgy4qa89c1mtspd1a",shake:"PSPDFKit-7y3ggnb1s18b42w9z9msgq8hr6",centeredTitle:"PSPDFKit-79jfh5ner7hhtyf4y5s4u8az38"}},54146:e=>{e.exports={root:"PSPDFKit-8djq2v9hms33ptxdax4spyth66",arrow:"PSPDFKit-3msp5htb4zsdjjpxv5m6zezhpm",arrowTop:"PSPDFKit-6b9stttuxax9qewr2yxczpv3yz",arrowBottom:"PSPDFKit-6zjksunaugtab91x5bucrc5pa6",arrowLeft:"PSPDFKit-6bfp163dnjfdkd9f9m84znw1uj",arrowRight:"PSPDFKit-7es6pryn4pwz64rxf4payggfh1"}},23514:e=>{e.exports={root:"PSPDFKit-twmttjfcv6j7rzbc8ybn7jhdf",inner:"PSPDFKit-6stgnz1576bk1x1pc2nvf8mswa",separator:"PSPDFKit-47apua2t9uqk8xayrhg2x6bxwp",button:"PSPDFKit-dcqzrnymm6bk9dm2mrhum7xwe"}},14883:e=>{e.exports={root:"PSPDFKit-m8vcznd3skqsshg6rhqg119mc"}},48731:e=>{e.exports={root:"PSPDFKit-5m6rrz61wj3npfybbf6bf7n132",noToolbar:"PSPDFKit-kygm1cgnwkp9bv59ggpqfyv9j",searchBox:"PSPDFKit-3zeygmv635dt4bunbqaw9pc4vc",input:"PSPDFKit-882tgx1vetesc36x9va6ha65fk",results:"PSPDFKit-8eacsmz4utrfkj8dhzhdh842ct",resultsDisabled:"PSPDFKit-4ysp4ac7wzfr8k1j96hrpb6232",button:"PSPDFKit-3mm3z68vbg9jrrv8ctujsff2j",control:"PSPDFKit-6jsphwggasn3qhq6cpukr87kyp",next:"PSPDFKit-the91ha3x5196stsyerdyzwb2",previous:"PSPDFKit-8sbnka5652yjkubedgurz66zwq",icon:"PSPDFKit-6p53nwyvjc1gsacy8fr4fac4q4",iconLeft:"PSPDFKit-5q7decz5hdban3tfadcauvj14t",iconRight:"PSPDFKit-7uhhgqhkvcnxbwk9kfhjy9v9yt"}},99135:e=>{e.exports={loader:"PSPDFKit-5e2eu5vu2edrbusdw9chj1k5ya",searchPosition:"PSPDFKit-qrb6rv4vd7m34wj2w85zjxjfu"}},63124:e=>{e.exports={layer:"PSPDFKit-4hndx219v53cj6xkbemwdxxfbp",highlight:"PSPDFKit-6q1j1fe91dp7b7uxu21ghbjvam",focused:"PSPDFKit-2m3zj91uw1smew17zjaj1g3xfx"}},78055:e=>{e.exports={sidebar:"PSPDFKit-wqnk7x3sp9sp2zkcvbfawsb6r",sidebarHeader:"PSPDFKit-6zdf5v5224wp5vu92pkacn6sx3",dragger:"PSPDFKit-4bvu69j78qa67c4wqqxaxrqbs5",draggerHandle:"PSPDFKit-6dtj44vm5qz5vw1njqxgaem7na",container:"PSPDFKit-2x4gzue77m9rd4f4ax5y9e5wj1"}},44170:e=>{e.exports={root:"PSPDFKit-6r17fy6uh5kqy3cfjb73vq9v1v",expanded:"PSPDFKit-2uhz161knhrkpzrb5mn5na3aqr",content:"PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3",left:"PSPDFKit-4hphv7cb89h1ffw9ptvmg9xjt8",right:"PSPDFKit-86nhzcde1runqybnpjzcykq7ex",mobileTextMarkup:"PSPDFKit-2qbav5sard6dxefsy6p5gufajq",stickToBottom:"PSPDFKit-318vz1kpftbtjp8eccy824g4m6",fixedHeight:"PSPDFKit-78mpt2swt4apfep3ag7quqq6me",control:"PSPDFKit-2uws3ww83fja6b3syxj88szuvh",selectBox:"PSPDFKit-532n3mbvmujvwmv3zweh7u59u7",textFormatControls:"PSPDFKit-8b7caq86m7x4bkzf3ecjwqesrz",controlWrapper:"PSPDFKit-xmyz8vgna6pqfkw4wx1twayf1",controlWrapperAutoWidth:"PSPDFKit-559g7qqwsyx86ydrj6d8x6kwqz",separator:"PSPDFKit-4cjwhud83czuezgnpqtt8t1g4y",form:"PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s",formGroup:"PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x",button:"PSPDFKit-5qha63wcjhyk977pmb11w183gf",rotateButton:"PSPDFKit-3zswrctphfm56abme3mhe89x7j",measurementToolbarButton:"PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng",iconOnlyMobile:"PSPDFKit-56zcn74uwt3jmwt9eqt4nkmm3w",blendModeSelect:"PSPDFKit-7tafq9cxvp7fp9488nkv4gt1q2",fontFamilySelect:"PSPDFKit-6panjxae2rqax33e2x13v8zhd7",fontSizeSelect:"PSPDFKit-4aap34xg2exyha2wvgep2kbrsr",colorSelect:"PSPDFKit-63mkqz864gr762bjh37u3z33ks",endLineCapSelect:"PSPDFKit-7ahby6faw9zgpdmzru1qdud52z",startLineCapSelect:"PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1",strokeDashArraySelect:"PSPDFKit-64yekz19k5s2s3kk34sutarr9w",colorSelectButton:"PSPDFKit-6e37e5hxgedzhdzpj3bgcfw8wg",controlIsDisabled:"PSPDFKit-4b2dydfrvtffvsbyz6hjmmskx3",textAnnotationOpacitySlider:"PSPDFKit-xjmpbe2ndu31ngzn7k6thcce2",annotationNoteButton:"PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b",deleteButton:"PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k",buttonNoBorder:"PSPDFKit-7hhujt42dfa3wavves9fezeqju",noteIconLabel:"PSPDFKit-6kwwztxzkww77985knzv4yj25t",applyRedactionsButton:"PSPDFKit-dh9zgevasabjjq92gftvq7d1s",formDesignerButton:"PSPDFKit-6hwd5kb669g2rktq8z7tch8zey",isActive:"PSPDFKit-7hajh57r86sbfab9agdabjpdus",disableEditing:"PSPDFKit-qq4v7j3ztmbsu7sszn7n6eedz",disabledButton:"PSPDFKit-53qj5y7xwpxf385e5qupnueez4",icon:"PSPDFKit-67g1s4jvmu1dwuq693983pavtq",focusRing:"PSPDFKit-p3fhayknwfc2wy838mm6uf6ts",fontFamily:"PSPDFKit-7pxe4xgby27sg3gch3hgymc65k",dropdownMenu:"PSPDFKit-3fr3j3qzhb8zms4ha22gf8ap4w",warningButton:"PSPDFKit-7vux3363c2h5bhhue8x2tgc2d8",warningButtonIcon:"PSPDFKit-55tsnvt1cbusd6n1b314embzfj",radioButtonWarningLabel:"PSPDFKit-ve8hjm9h24pnag6snsj5hqyba",colorPickerDropdownMenu:"PSPDFKit-364rxkqcrexqk43jvg479qt5us",colorItem:"PSPDFKit-7fb12eurd4ysp5ys7tc9wgnuqm",deleteButtonIsVisibleInTouchDevices:"PSPDFKit-5rx1gxu9ku1pmjedwxt4bb8tcs",colorSvg:"PSPDFKit-2v57cb7nenh6qvs2r55dm7ftbf",lineCapsDashArrayMenu:"PSPDFKit-42uwtdws1bb24aernmbsz8ndnc",strokeDashArrayMenu:"PSPDFKit-8497hrdu98kjamf5s4gjf2bqmd",nativeDropdown:"PSPDFKit-3c6frtkm4xmn7hkv9bmpghx53j",fontFamilyNativeFlexbox:"PSPDFKit-3smmwjpf56cyb4zkshtg21jz2s",fontSizeNativeFlexbox:"PSPDFKit-7bwhutmv5jg6hggz6hp8kfcaxy",fontColorControl:"PSPDFKit-2zvhj3he31vtfrqjkjpsjb1694",overlayTextInput:"PSPDFKit-823r5gtrunhm37br45pwje8e5c",overlayTextMargin:"PSPDFKit-65ynqjj3xqcettebe26255q3ky",groupWrapper:"PSPDFKit-j3u5td7da5d2g12j3qb8kpqeq",groupDescription:"PSPDFKit-74acavk6n23dwq957gtnmbyyrf",overlayInput:"PSPDFKit-6dqybwsyjvqprdkfh1d5t3w2yj",radioInput:"PSPDFKit-87t3tq755fdm56p5111u2h5a4g",applyRedactionsWrapper:"PSPDFKit-4ssbr6rxv19yz6yh7bjp4pfgeq",customIconSvg:"PSPDFKit-p9ftrww9ym9pd2eqpps4xf6fp",snappingCheckbox:"PSPDFKit-68jg3chhe27v2qnds97q2btw4c",radioGroupWrapper:"PSPDFKit-3hf9zjqgg3t2aehba45fzmw9nc",reverseRow:"PSPDFKit-4g9caken58dfxv7snyka36rppq",measurementToolbar:"PSPDFKit-4pfvumqbpr5cct3yusfvsb8cza",measurementBackButton:"PSPDFKit-5mpcapg77fbdwa2sj3mz1x79hy",pointSnappingToggleButtonWrapper:"PSPDFKit-8bdhrea5ynkgph4wjuf7eenccs",pointSnappingToggleButton:"PSPDFKit-3jwjxf3q3tc2mjebw5qwnndfvn"}},17448:e=>{e.exports={root:"PSPDFKit-369qag2kn88x7fd7hzmy37u7jj",expanded:"PSPDFKit-s88hmm2u6mr4p6a34q6p5x97j",content:"PSPDFKit-2xkt2dmssjrt1zt3392unparpj",left:"PSPDFKit-22vuhdxbyg68mzx1mpbw51te8s",right:"PSPDFKit-8yz513hepw5dtea8yuyyc36z3g",mobileTextMarkup:"PSPDFKit-7p5sgv4my75nm8c7s61pavhw9k",stickToBottom:"PSPDFKit-4s922kjq16ky2tuz2stu8cmevf",fixedHeight:"PSPDFKit-3yctv5gp7m63pzzfqmcn2vwzsu",control:"PSPDFKit-5c3edpftcxt25778bnf8dge8wm",selectBox:"PSPDFKit-2td3u6fzb1juvzark5t2sx4q2k",textFormatControls:"PSPDFKit-5aqdkx2cvj2jkgvavhn63b9ng2",controlWrapper:"PSPDFKit-56wa92tpx7h9ndndf4p4ntj594",controlWrapperAutoWidth:"PSPDFKit-7yq1g1auatabjgr9redkv9mw4z",separator:"PSPDFKit-4dbdwzw5vf7q7u9tzye7tg1nrb",form:"PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv",formGroup:"PSPDFKit-6daq73jrkrpvw8as2bjg158s14",button:"PSPDFKit-fcgb4uy1g1393vcttkd834zya",rotateButton:"PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd",measurementToolbarButton:"PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h",iconOnlyMobile:"PSPDFKit-57jstkypwesnde2vkmqgh9jdhc",blendModeSelect:"PSPDFKit-8925upm91judwppvv9p55bukww",fontFamilySelect:"PSPDFKit-6j8484gf6zuru867h7zbjhwpsr",fontSizeSelect:"PSPDFKit-47dkg274amuhtuvgmphaa3qbp8",colorSelect:"PSPDFKit-6kf14wyby256uusycuansuqden",endLineCapSelect:"PSPDFKit-496rvwdezqxaryf6ba6wew6ysj",startLineCapSelect:"PSPDFKit-628jqdm82emd3wd8ywct68fvp2",strokeDashArraySelect:"PSPDFKit-6fdkgc1bgv67zv1wegm6hsq355",colorSelectButton:"PSPDFKit-58854re4pgbwg56mdaznmjjscz",controlIsDisabled:"PSPDFKit-5z4at4466ca8t6dkug1bqpq81",textAnnotationOpacitySlider:"PSPDFKit-8uywmag1h1x3ypdz5b98crr775",annotationNoteButton:"PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r",deleteButton:"PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q",buttonNoBorder:"PSPDFKit-5gsachaj1r6ar3h4ru679tq718",noteIconLabel:"PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4",applyRedactionsButton:"PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9",formDesignerButton:"PSPDFKit-3pymza1pztyu17t83dfx3cmmsm",isActive:"PSPDFKit-382u1rdjb1tf6tnk2q2g7kgvgp",disableEditing:"PSPDFKit-48d85wg1rgb1utxa2a4fvw2vth",disabledButton:"PSPDFKit-cmgrqrz9uxy4sb9vg43t341c1",icon:"PSPDFKit-8xb3dqw6xuht2n573uhuknfp2k",focusRing:"PSPDFKit-52c5dtm21r4933mu2fkpjpe6uk",fontFamily:"PSPDFKit-5kgz7sh1trs8k2a4xw51qvusej",dropdownMenu:"PSPDFKit-psd9e4tcte8ac4k6jmkt1wfeu",warningButton:"PSPDFKit-8zkbczvhbtdyv5utgdt42896wt",warningButtonIcon:"PSPDFKit-2bmrfq7hm8z4thd49fdtpzxewe",radioButtonWarningLabel:"PSPDFKit-6q2rpnx5br9xmymy4hxdvc9atg",colorPickerDropdownMenu:"PSPDFKit-mjt1a3qgrvvxan7b2eet56kkt",colorItem:"PSPDFKit-3radjttaddx7fe6dnnreugbam2",deleteButtonIsVisibleInTouchDevices:"PSPDFKit-7uud28jq3crfqs4f4edufdekkf",colorSvg:"PSPDFKit-5jpt4x4a9kj7rf7d24shsfp48k",lineCapsDashArrayMenu:"PSPDFKit-3fweswjpkq7dt55fw6t438rgun",strokeDashArrayMenu:"PSPDFKit-3hmu51e1ur6hrmfyzz2cru1c48",nativeDropdown:"PSPDFKit-5fwcr59aaugp5fp73hthrqwxw9",fontFamilyNativeFlexbox:"PSPDFKit-5p5hpd3y1t7kjkjpn6cyqaqptj",fontSizeNativeFlexbox:"PSPDFKit-3v6m9ae9v1gsx87x46mg6kjmzf",fontColorControl:"PSPDFKit-67wu3hjpwubg5cqg8c94vydj5a",overlayTextInput:"PSPDFKit-41gfyk1yj6dkqvg8px6c7j3sec",overlayTextMargin:"PSPDFKit-43q9sy7pzu933w9kdbph2ahftx",groupWrapper:"PSPDFKit-77hntfhrv9fmz6c5684u5bkz7s",groupDescription:"PSPDFKit-7kmmurpd341ujzyvezu9ecj88h",overlayInput:"PSPDFKit-3fu4z9m4y47mmezmqbsmsg6u6f",radioInput:"PSPDFKit-8pbq1nn2qbdp1czxjuu7bjw2ks",applyRedactionsWrapper:"PSPDFKit-6w6h956ezp7gtq4cmy2r5mkyhu",customIconSvg:"PSPDFKit-6ep9xddvqffd53nu5e72pbdbgj",snappingCheckbox:"PSPDFKit-717y4rg4qa1pc652h8cg793m4d",radioGroupWrapper:"PSPDFKit-4xdm97phakaezcxf6wpdxn2tjm",reverseRow:"PSPDFKit-62hyggwkdx954k8f821btn7zeh",measurementToolbar:"PSPDFKit-2wv2dfhgdk3dpbha4mv9u16vs",measurementBackButton:"PSPDFKit-6dpm8fme3awumu6c44rktfucs2",pointSnappingToggleButtonWrapper:"PSPDFKit-4y4mzezsayhjmmtm9qqkgywcsh",pointSnappingToggleButton:"PSPDFKit-8grpnn6cc1r855m2st438et1tg",container:"PSPDFKit-zmwf99thxv6fcrc5fedznzzbf",buttonContainer:"PSPDFKit-5xkwu35z1pdufxyge2fpn149wt",contentEditorButton:"PSPDFKit-8p5cvevhmuv7u5wjndvwnbnu5w",saveButton:"PSPDFKit-2aekynqmf5d2unsgpe2a63pqe7",fontStyleBtn:"PSPDFKit-tb2p4fkm5haam7ptsvqb6c982",fontStyleBtnBorderless:"PSPDFKit-5hv5vgzkpzspks749ufhhvfz1k",activeFontStyleBtn:"PSPDFKit-3y1g2avp88swge652xu9nj312z",iconButton:"PSPDFKit-792vfa9s6t83dgghq4y7ghk2fj"}},17223:e=>{e.exports={root:"PSPDFKit-6wj1ne12vnarkud1xme1m8q59e",expanded:"PSPDFKit-8dvj6jpqdurcexw9s38nyrdusm",content:"PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w",left:"PSPDFKit-2nxj8qm7t143fbftj5wc5fkpmh",right:"PSPDFKit-8hmxpj5ufr2dmugsrzsfj5w24w",mobileTextMarkup:"PSPDFKit-5whgpdfnjnj445bw24d7d2eepu",stickToBottom:"PSPDFKit-qg3hbxzy2wa7d7kn2kyb5hfg6",fixedHeight:"PSPDFKit-fw1d4hymsqsunxnj7htn2vejg",control:"PSPDFKit-cvx8h4gvhqzqc8bb9wcmvaxnc",selectBox:"PSPDFKit-8p1jwd1vdxc1uu5kv9x8p6kgp5",textFormatControls:"PSPDFKit-4tf1hj3ua2348x3vfjq2ckjdzj",controlWrapper:"PSPDFKit-698j5mv28ddfb1zzrmuuvu4bgt",controlWrapperAutoWidth:"PSPDFKit-8rw1bsyhe4kbrshjzkbxn2pxt9",separator:"PSPDFKit-2p1w8qyfeab7u2r61e5xm9basn",form:"PSPDFKit-7x5nveetga7f3u3eyhc2y9z693",formGroup:"PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan",button:"PSPDFKit-8sgpeb7apq77q6pg14srm485gf",rotateButton:"PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh",cancelButton:"PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376",measurementToolbarButton:"PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn",iconOnlyMobile:"PSPDFKit-2rtyr394stgbvv5j9jd2mrzx4w",blendModeSelect:"PSPDFKit-56zf8cu97f7wx6varc1jbjbc1t",fontFamilySelect:"PSPDFKit-322qz987bpbdyu82atqpttzvvy",fontSizeSelect:"PSPDFKit-3spwsrcuq4a58mafezc2hew2hm",colorSelect:"PSPDFKit-4evwmwkh2v68zx97dy8htnw1he",endLineCapSelect:"PSPDFKit-5g195rx1hwggkduwfaghaguwp8",startLineCapSelect:"PSPDFKit-4h81esfk99wjjw1j1e4evv86k6",strokeDashArraySelect:"PSPDFKit-8vcucy3gdsu18nrccy3sfz6e8e",colorSelectButton:"PSPDFKit-47tvrbutrws584y86zkht7ugrh",controlIsDisabled:"PSPDFKit-3z6z4mnx2mybf2dduwbnu4ghbx",textAnnotationOpacitySlider:"PSPDFKit-7dcpygp7ucqsxtt8jqu8wqaek8",annotationNoteButton:"PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6",deleteButton:"PSPDFKit-74uqksjtt33kw457gbgm6cjhar",buttonNoBorder:"PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt",noteIconLabel:"PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp",applyRedactionsButton:"PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b",formDesignerButton:"PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc",isActive:"PSPDFKit-36xa88kvhztmqf3w9bw4r5ux2b",disableEditing:"PSPDFKit-7ksmq2q9vqb2a84h6pknr59vq",disabledButton:"PSPDFKit-4frspfy8ydaf2dspz1w2fe24sm",icon:"PSPDFKit-6a17y1zq5nmhnd7rsvvnnp3u82",focusRing:"PSPDFKit-2kd6b54vbgtjvjpw1vfjnz3gxa",fontFamily:"PSPDFKit-5ju67k328yc7tj3jx5vxn2tn9q",dropdownMenu:"PSPDFKit-4rm6x2vr78j36rwf82x8zcfxaf",warningButton:"PSPDFKit-2jdyb25hw79fahb16kjd7nuauu",warningButtonIcon:"PSPDFKit-6gnk29arwa3bmx79suwfyneh29",radioButtonWarningLabel:"PSPDFKit-76w7jmjqqnsz53a6hk7gjuqjfv",colorPickerDropdownMenu:"PSPDFKit-7xact8a8nm7egrfqd6jm8dexja",colorItem:"PSPDFKit-5swkhzjuhg7a1yzus1srcazf4",deleteButtonIsVisibleInTouchDevices:"PSPDFKit-6j136ndjfdbtgth4w1223r3b8v",colorSvg:"PSPDFKit-53pmrz6mhqkv25rduwt3r74tdf",lineCapsDashArrayMenu:"PSPDFKit-6kht9xjauanscqhyehtvh2m7kf",strokeDashArrayMenu:"PSPDFKit-64qwd21qw14a1hs2qywq9dktfv",nativeDropdown:"PSPDFKit-51ppvqecyde7wtftnkhpvreywa",fontFamilyNativeFlexbox:"PSPDFKit-47ujkffabzpr19w6jed6s7rn8s",fontSizeNativeFlexbox:"PSPDFKit-79wa34vt8h1dey55mwshznckvh",fontColorControl:"PSPDFKit-59kfug1yak6p54pbhwzyzp8nqv",overlayTextInput:"PSPDFKit-2bv4uu555xwcfzm4cbz9xw1575",overlayTextMargin:"PSPDFKit-7y73pgnyhcbyab2r86s5wpf3tq",groupWrapper:"PSPDFKit-3n3jywv8np58aypaxcq1dxaka4",groupDescription:"PSPDFKit-7h2nqj8dz99huxsdvz85vzqtkv",overlayInput:"PSPDFKit-3sskmdn9q2pttd7gnbgtfx1svm",radioInput:"PSPDFKit-5161whx8v77nvzdxwn92nren7h",applyRedactionsWrapper:"PSPDFKit-35zv6qfn2dk55st59jvbvkebe4",customIconSvg:"PSPDFKit-6zcvxqm7p1fu6peaqcvy1ggxur",snappingCheckbox:"PSPDFKit-87rtaenbkbsa4vh76fdk49yn3",radioGroupWrapper:"PSPDFKit-7n79z1dfc6drdkd4q859desfw4",reverseRow:"PSPDFKit-7h73prxvatb9v6feg135wrgpnu",measurementToolbar:"PSPDFKit-7ftvxz7pwnjfrf9p9bvx4kdaem",measurementBackButton:"PSPDFKit-5zxmaq2rs3z7z1ycb76vnfp8s7",pointSnappingToggleButtonWrapper:"PSPDFKit-54tjnzkmwp6xxxj9x2w181zxyx",pointSnappingToggleButton:"PSPDFKit-4jxexvux8xqt39asa2n5j1bhaz",container:"PSPDFKit-2zcrcumxc9rs6exf4ygg6wxhud",buttonContainer:"PSPDFKit-4su7z3fj53danm9m8sfmsun6mh",cropButton:"PSPDFKit-3fqbszrmhfm53fj9m672rspbb9",cropButtonDisabled:"PSPDFKit-3yfe86869dr14nnq3hdqmpstt3",cancelDesktop:"PSPDFKit-5q4w3drt2wva22st2m2zv3jdy9",cancelMobile:"PSPDFKit-46c99tbpsdnq21yere2qsvz9cs",desktopButtonText:"PSPDFKit-5uhy32eduhqeagjxsx8v1dsupn",mobileButtonText:"PSPDFKit-89hzg3dmpqdp1bb33by963n2me"}},92294:e=>{e.exports={toolbarReferencePoints:"PSPDFKit-3j4jdq7qz2dwxa1279k9vazwef",documentTabActive:"PSPDFKit-69m56fu4j9n82gdbujywja2gvt",toolbarReferencePointsSet:"PSPDFKit-8eej8fpcv5wjeexf54uv82ajge",referencePointParent:"PSPDFKit-5ryk8gx2yq84us8ukyczpsxy3m",documentText:"PSPDFKit-8rqw29ppj2w4yuvy43x1xrr11j",mobileText:"PSPDFKit-2we2fxduv62wzemn8q1msf1mgz",documentTabActiveText:"PSPDFKit-4dxpfmdzs1ahjnhcn4j2824q7j",separator:"PSPDFKit-xy1ab3hf7etfk3xyw2jg4queq",toolbarReferencePoint:"PSPDFKit-3wymx3u415ps1255jfa43bguba",documentTab:"PSPDFKit-4a9v7b75g9brahh3mp79eahacf",toolbarReferencePointMobile:"PSPDFKit-4negp1qnzp2hght5fzzkb948bq",second:"PSPDFKit-4aha149mn5fr2qf7nm9vv3s1e8",checkMarkSvg:"PSPDFKit-8vq8197jb1dah7zkt2cj4puza6",checkMark:"PSPDFKit-5vyjan5cx19u6zqmpkyk5y6n4m",documentCheckMark:"PSPDFKit-8y45regm71axdj29fvpdnyyqw9",referencePoint:"PSPDFKit-8kjh85hafnnbaywytk891yszzy",referencePointSet:"PSPDFKit-5u4fqe6u9h9335r2untkufbfcj",autoCompareTab:"PSPDFKit-3a6ss6w8kz4a9bg1ppdxs9wfjn",mobileTab:"PSPDFKit-4ws5865r8ddf7waw5w994xbgka",resultTab:"PSPDFKit-63wgvxgkew5y5nngyepzsvu4me",root:"PSPDFKit-5g2uumfazey6jk28fuu62t1ku1",content:"PSPDFKit-49apg3ban7f6z5tha93nkbxpj4",left:"PSPDFKit-46dnp15jxsmbmfb4w9u1ffee2p",right:"PSPDFKit-3bsbcmmu6v14v6bf89hvv51u6r",mobileTextMarkup:"PSPDFKit-54wvq7waj941tcr6uq8dg63zsm",stickToBottom:"PSPDFKit-84kxsxx785v52177eqww89wnfu",controlButtonContainer:"PSPDFKit-7vccbh9nhre14pssj1cjg5ykph",tabsContainer:"PSPDFKit-6q2z53f1kt5u3frhayfupey174",buttonAlignDocuments:"PSPDFKit-6qd7xqnwwt5spedkqzrq2xxd1y",buttonExport:"PSPDFKit-v7w7h5tnf2m47yzqtd84h1drm",buttonReset:"PSPDFKit-kfexhdzwencygrragmhzwd8v3",mobileButton:"PSPDFKit-67ced71xr6v9qcqegyjdb8f9h2",buttonAlignDocumentsActive:"PSPDFKit-2wue8e3wfu7w9cxehmz4e88ktt",buttonExportActive:"PSPDFKit-5p1uejfqckjn5s61nuatmaqbme",buttonResetActive:"PSPDFKit-5jfgm1cjfd1sp4z1fkd6a1hcc7",form:"PSPDFKit-6s9dcaafj7ab6mc6ktq5xn5tw6"}},40775:e=>{e.exports={root:"PSPDFKit-8mw7cgx9nrd1yg35kkhqyhksqy",expanded:"PSPDFKit-3e1ymauppttrz41jzw3mzc2t65",content:"PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2",left:"PSPDFKit-768zuvadpfp2s99ztcwnaee5jp",right:"PSPDFKit-263brxaxc464ym7sfe4phds8ah",mobileTextMarkup:"PSPDFKit-39d47rs5fq7kcjer959hp5rx8d",stickToBottom:"PSPDFKit-8y6ce6n5884k7zrpr3uqnz7htb",fixedHeight:"PSPDFKit-pqz79rmnz1jk37ra4q9jr8t33",control:"PSPDFKit-628h193kd9qu5d9hhsg3cdnuza",selectBox:"PSPDFKit-6nbc7qagvqu9yd6yet13hb6rhj",textFormatControls:"PSPDFKit-48x8nkebmfpqss6a3u7rs8g9q5",controlWrapper:"PSPDFKit-5m1cnawh6718mpdfvfzbb11abd",controlWrapperAutoWidth:"PSPDFKit-7ntyew6gjjyyu8e3azuddfrhnp",separator:"PSPDFKit-6c1mz88rtks35wu1xhbrekd71a",form:"PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8",formGroup:"PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn",button:"PSPDFKit-39fu85k99jh2maw1gkthhh4pas",rotateButton:"PSPDFKit-6usxmcuq89wy8smur4v8ryhswg",cancelButton:"PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3",formDesignerButton:"PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj",measurementToolbarButton:"PSPDFKit-8tz941rhqxq9a7km8terwandnm",iconOnlyMobile:"PSPDFKit-21jwyumejben4aqq13bksg3xh8",blendModeSelect:"PSPDFKit-75ttad8xww9mpzzprak2aac974",fontFamilySelect:"PSPDFKit-6ft5xhbubs9uamqn8s4zfnq4b4",fontSizeSelect:"PSPDFKit-w47nwqgy1154yrmztu2mnwzpm",colorSelect:"PSPDFKit-2bnqvejyfcr2xpnvmzxrzqhapp",endLineCapSelect:"PSPDFKit-zxa6uqty5r8s91cyrkfmxkc93",startLineCapSelect:"PSPDFKit-275wshr5dpqatccw8ux11qqk9s",strokeDashArraySelect:"PSPDFKit-3hxmaadpfcejwvjvjd3srb4nq4",colorSelectButton:"PSPDFKit-7ub6g8tsdw1g86bt2kvn83wa7p",controlIsDisabled:"PSPDFKit-48byv3uppm1nzjqfybkzwnzjf",textAnnotationOpacitySlider:"PSPDFKit-8j3bg3d3dbcpkjba4qpgt6mtwx",annotationNoteButton:"PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz",deleteButton:"PSPDFKit-4fg19pph8cyagbqvnfr8fms11",buttonNoBorder:"PSPDFKit-769hazgdc7wc335k78212j8emp",noteIconLabel:"PSPDFKit-73qv358utjtrzr85ky96uevmtg",applyRedactionsButton:"PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g",isActive:"PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz",disableEditing:"PSPDFKit-fts7hzse3qdkgfmxd89z1sxgg",disabledButton:"PSPDFKit-4q6ah6p4esufmffveqzpjh47b",icon:"PSPDFKit-2s797jk128ay8vfscex2bv7kfe",focusRing:"PSPDFKit-4nuygfwr1ru425pyg3yjydvr61",fontFamily:"PSPDFKit-3fzefd39fwgk1qdbxv6jdjs8f7",dropdownMenu:"PSPDFKit-5cn9vbp8wrnrmnk914jdmynjve",warningButton:"PSPDFKit-88kdpafyrs8h3rj4zjbrrted2p",warningButtonIcon:"PSPDFKit-6yj82gkzhm3npm9qtbttnwhvqs",radioButtonWarningLabel:"PSPDFKit-5kx5x5nrf9ffzpw127n7tdvrqw",colorPickerDropdownMenu:"PSPDFKit-6m8awubd892h2q7bxq6ucu9yx5",colorItem:"PSPDFKit-5z24bvabee7axqkv39se95kj79",deleteButtonIsVisibleInTouchDevices:"PSPDFKit-5uu5r98quqvpyqqvmhf7eqx6n8",colorSvg:"PSPDFKit-7sx7anuampjzrt9mnvv7zccdny",lineCapsDashArrayMenu:"PSPDFKit-84hychtak5eqe99svt8mp3g7gq",strokeDashArrayMenu:"PSPDFKit-3wpt6233mxj93ajtgz97kkfp95",nativeDropdown:"PSPDFKit-75syshz3pwrn5szey2w1zrbwhq",fontFamilyNativeFlexbox:"PSPDFKit-5wjc8qvxn2shc717ghes4hwe4r",fontSizeNativeFlexbox:"PSPDFKit-4axb3jsn3p35zcvz2qkf1627s1",fontColorControl:"PSPDFKit-3gbc7z42ncvpe6ecjsfvekn6bf",overlayTextInput:"PSPDFKit-25fpzkeppwbvrayjgduw8retb5",overlayTextMargin:"PSPDFKit-8q8cpk21u1e4cgjxkuetq25ac5",groupWrapper:"PSPDFKit-2syhxbxpfgp19jpz3z5x49q224",groupDescription:"PSPDFKit-7eua9n76z6wh9hyqtrgxabwhyp",overlayInput:"PSPDFKit-8san6jac5e16c3cmp3udzsyzq9",radioInput:"PSPDFKit-2bhr7dx4y8a6z7s598sms29ggb",applyRedactionsWrapper:"PSPDFKit-uqsh2mfe72fsz9emybm4vb6u9",customIconSvg:"PSPDFKit-6s24914j26xzdhgmaqjbdae7a8",snappingCheckbox:"PSPDFKit-7kdp2eku1rven1vm3eug4x6su9",radioGroupWrapper:"PSPDFKit-5mud2pd31puwn1df9zjr639yy4",reverseRow:"PSPDFKit-84kcnetmpfg2e64pd3wmwkkbud",measurementToolbar:"PSPDFKit-2f6g3rm6gpedqtnwpk94cu5b6q",measurementBackButton:"PSPDFKit-2q1r39e1v2u5ekry3v7vbc9yr7",pointSnappingToggleButtonWrapper:"PSPDFKit-4g2ngud8r3s5zduhf5fa58c69y",pointSnappingToggleButton:"PSPDFKit-7bbcwaht73ggqqhpqdhb435dan",container:"PSPDFKit-48mktwcp2g29yu9eg22p2pbvmh",formDesignerContainer:"PSPDFKit-8dznuywttgafn2v7zy61c6ctg4",buttonContainer:"PSPDFKit-5t9fk8ex9uwch2qhza7wa1pacw",cropButton:"PSPDFKit-2x4tn85f3krgk9xb8r993atjue",cropButtonDisabled:"PSPDFKit-6uhymu5y17pjr47gp9zdvgf3bd",cancelDesktop:"PSPDFKit-4wcvaawwq3jw743mwnp8vtf9df",cancelMobile:"PSPDFKit-7tretxh1ue798paef14ryrb6q6",desktopButtonText:"PSPDFKit-649k7389pwcsgmvwdt2yuhu7n3",mobileButtonText:"PSPDFKit-3uxhzwe7ph1xrpb89482k7hrd",formDesignerButtonActive:"PSPDFKit-7dgtuxjugwv9wr6k94pfvchgzt",spacer:"PSPDFKit-3nf3mgqa1mk6xs968ztk8n1ped",measurementValue:"PSPDFKit-7kz6k3947em3q3sp47s5cd3u3m"}},37103:e=>{e.exports={dropdownMenu:"PSPDFKit-2nvh838hnrmj6tjpctafyh5x7m",dropdownMenuUp:"PSPDFKit-5xzg6bg1qbsb5nyd5qtnxyygh4",arrow:"PSPDFKit-7m14b5a6nxx7rywstpkcac66jh",arrowFill:"PSPDFKit-3m2a5gvruf8k4he7qc4zjkr6ph",arrowFillUp:"PSPDFKit-8eerxut5n95np3tqrj71w5e222",arrowUp:"PSPDFKit-5b9jgmbtab9q2nsf1et2wzayps",table:"PSPDFKit-6nefwc9ww2a6bdsknb6pf9xqyf",button:"PSPDFKit-441mq6m2ewd76vee95v9fr7my2",icon:"PSPDFKit-6f7sarp7tsa7umn4f92wvj1bfv",activeIcon:"PSPDFKit-36mkhhuvsv1c4uvf7vtkhpvmrp",highlightedIcon:"PSPDFKit-h975nt1b2sjwtx24fkebaskvu"}},61533:e=>{e.exports={root:"PSPDFKit-ueuej8dv753zvbk6mp828mzsr",desktop:"PSPDFKit-5k4sr6w4zxhd2hs9mbp6s6pzny",mobile:"PSPDFKit-4mcfrdfta1gqurpt3wsxjc97a",label:"PSPDFKit-bc9txuev7gse3pp84ajq62vmt",control:"PSPDFKit-7tngmuaurbw9evq3vhsmqhb79y",input:"PSPDFKit-6akg5tb3pdjbrjepp4y44p6w6w",next:"PSPDFKit-8eqdrxrxh6w15npezgfrhr5xaw",prev:"PSPDFKit-218fbh46vhgjukxda9q16dva61",icon:"PSPDFKit-4k74zzdsrvasvyyh48kjpdwb69",inputLabel:"PSPDFKit-6fnzgpjer6z7ca9jecfhk8hdsy"}},13608:e=>{e.exports={root:"PSPDFKit-7y27utzt66zv3mqf62v5b93bkj",left:"PSPDFKit-39uutbqvjcmpw86wegd169emzw",right:"PSPDFKit-7kw269a3q1nnm4e8q7ph8skd1y",toolbarButton:"PSPDFKit-yzpfzw9bfd9ejp1k7kgdacu7d",separator:"PSPDFKit-4z9qs61q4s33nvuwafvrr69p27",buttonGroup:"PSPDFKit-2znbjv3uzcg3sd8kby58ara78y",dropdownButton:"PSPDFKit-6uq6r7dsfrgrfk6e7j9247tmjh",dropdownButtonSelected:"PSPDFKit-4w5v8zc35y6mjqvgzm7h29yxjz",dropdownButtonDisabled:"PSPDFKit-3esgz77hvs295449651j22wfqe",dropdownButtonFocused:"PSPDFKit-7afsq6jcreh7h5cqqjrdd1xq87"}},17722:e=>{e.exports={dropdown:"PSPDFKit-2h6u1uvepb29aceyswrhabn442",root:"PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz",withDropdown:"PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5",icon:"PSPDFKit-3dcfza4a2zm1e2eg4echhrm6g5",isDisabled:"PSPDFKit-43cceb3p2mywgnc9ah1q5apjh4",withDropdownDisabled:"PSPDFKit-5wps7sscy34hpgrmzwbrb2k8h8",wrapper:"PSPDFKit-8nyvpcm5qq23nzqvwdfzqayryh",disabledWrapper:"PSPDFKit-8mq4c412r44dvy4qtvyfp64p1k",discreteDropdown:"PSPDFKit-32j2tkxs7yf83d9vrqs2np1xja",dropdownIcon:"PSPDFKit-6511p928m8fcbcd7nb8arydjxe",withDropdownIcon:"PSPDFKit-7t6uf3numwbvg2qg3x9sx7rkjx",withDropdownIdle:"PSPDFKit-6s8pjz7ybfkbm9j34ce4qsz32w",withLabel:"PSPDFKit-67e5xx7a8j97ze41fv1th56sbu",isActive:"PSPDFKit-yyu2s7s1tuqk1ww7hvgfnef81",disabledDropdownIcon:"PSPDFKit-7mpjdpbxyc5gttymwetaz47j3q"}},13524:e=>{e.exports={responsiveGroup:"PSPDFKit-7s54nnph7yayfgqvb7rcy9q2r9",primary:"PSPDFKit-6zy881tctu9r8st5vfwvpcfxja",stickToBottom:"PSPDFKit-2sm51vztwj4mjbhd5pehvnauwk",secondary:"PSPDFKit-272tn91arpsx8j7fngtk874eyz",button:"PSPDFKit-8tf4984hks13xr145qxkvqh5x2",animatedArrow:"PSPDFKit-3skkbnpn3gm9d5fp6b75tc96pe",isActive:"PSPDFKit-3jvcxjeemxp6228839um72qy4t",items:"PSPDFKit-2n3akw6g2m6zcpdwrxfqcdm28q","arrow-left":"PSPDFKit-6t665x89dpp83cptuahpm823v9","arrow-bottom":"PSPDFKit-3ta9x8afg61d6nxtq9yhdeq5k2",slideRightEnter:"PSPDFKit-5g7enmsbf45swnff2zwyxdwmd8",slideRightEnterActive:"PSPDFKit-h2x5j64f4qrks9ntdqzgenamu",slideRightExit:"PSPDFKit-4hcst5bakcb11gphagzdemmaj2",slideRightExitActive:"PSPDFKit-2f4rg8arx4myttw4gnp6m4cj6f",slideRightEnterDone:"PSPDFKit-3zhxpze9bhbrk5wqq7cnx6rrcz"}},94683:e=>{e.exports={focusVisible:"PSPDFKit-224gyk59mnmuy1j6u58s8bcf2p",focusedFocusVisible:"PSPDFKit-3mxmx3p3whct5a2qk5bsb3v7rg"}},52923:()=>{},27418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))n.call(a,u)&&(l[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},92703:(e,t,n)=>{"use strict";var r=n(50414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},45697:(e,t,n)=>{e.exports=n(92703)()},50414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},45688:(e,t,n)=>{"use strict";n.d(t,{D6:()=>y.D,Dr:()=>s.Dr,E6:()=>z.E,E_:()=>i.E,Fb:()=>p.Fb,Fc:()=>u.Fc,Fv:()=>f.Fv,Fx:()=>l.Fx,H9:()=>m.H9,HJ:()=>k.hp,Hb:()=>z.H,IB:()=>v.IB,IL:()=>g.I,J4:()=>s.J4,L0:()=>c.L0,L7:()=>x.L7,LW:()=>s.LW,MG:()=>x.MG,MT:()=>l.MT,Me:()=>A.Me,NE:()=>v.NE,NP:()=>d.N,O:()=>o.O,QM:()=>D.Q,Rh:()=>a.R,Sv:()=>v.Sv,TV:()=>f.TV,TX:()=>T.T,U$:()=>d.U,U4:()=>v.U4,UW:()=>r.U,Ux:()=>c.Ux,VP:()=>s.VP,WE:()=>k.WE,XI:()=>u.XI,Xe:()=>c.Xe,Xu:()=>s.Xu,_Y:()=>u._Y,aQ:()=>c.aQ,aV:()=>v.aV,ar:()=>b.a,bO:()=>l.bO,bU:()=>c.bU,bd:()=>c.bd,c:()=>p.c,co:()=>f.co,dG:()=>A.dG,dp:()=>_.dp,fQ:()=>p.fQ,h9:()=>E.h,hO:()=>s.hO,hR:()=>P.E,hX:()=>c.hX,iX:()=>m.iX,kI:()=>r.k,lL:()=>D.l,nB:()=>h.n,oN:()=>C.o,pS:()=>C.p,r7:()=>u.r7,r_:()=>u.r_,tJ:()=>w.t,tN:()=>v.tN,u4:()=>m.u4,v5:()=>u.v5,vI:()=>s.vI,x7:()=>m.x7,xD:()=>k.xD,xL:()=>b.x,zA:()=>S.z,zw:()=>s.zw});n(1437);var r=n(9864),o=(n(77656),n(16827)),i=n(4064),a=(n(6028),n(61230)),s=n(84992),l=n(21722),c=n(44608),u=n(14147),d=n(31111),p=n(64669),h=n(41746),f=n(40297),m=n(54254),g=(n(45772),n(94866)),v=n(65363),y=n(22423),b=n(34263),w=n(60918),x=n(99116),_=n(16752),S=n(15016),C=(n(97480),n(82137)),E=n(43032),k=(n(21965),n(85634)),z=n(59743),P=n(96382),D=n(83040),A=n(13807),T=n(4366)},53441:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebounceInput=void 0;var r=i(n(67294)),o=i(n(91296));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(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=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&&d(e,t)}(l,e);var t,n,i,a=p(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),g(f(t=a.call(this,e)),"onChange",(function(e){e.persist();var n=t.state.value,r=t.props.minLength;t.setState({value:e.target.value},(function(){var o=t.state.value;o.length>=r?t.notify(e):n.length>o.length&&t.notify(c(c({},e),{},{target:c(c({},e.target),{},{value:""})}))}))})),g(f(t),"onKeyDown",(function(e){"Enter"===e.key&&t.forceNotify(e);var n=t.props.onKeyDown;n&&(e.persist(),n(e))})),g(f(t),"onBlur",(function(e){t.forceNotify(e);var n=t.props.onBlur;n&&(e.persist(),n(e))})),g(f(t),"createNotifier",(function(e){if(e<0)t.notify=function(){return null};else if(0===e)t.notify=t.doNotify;else{var n=(0,o.default)((function(e){t.isDebouncing=!1,t.doNotify(e)}),e);t.notify=function(e){t.isDebouncing=!0,n(e)},t.flush=function(){return n.flush()},t.cancel=function(){t.isDebouncing=!1,n.cancel()}}})),g(f(t),"doNotify",(function(){var e=t.props.onChange;e.apply(void 0,arguments)})),g(f(t),"forceNotify",(function(e){var n=t.props.debounceTimeout;if(t.isDebouncing||!(n>0)){t.cancel&&t.cancel();var r=t.state.value,o=t.props.minLength;r.length>=o?t.doNotify(e):t.doNotify(c(c({},e),{},{target:c(c({},e.target),{},{value:r})}))}})),t.isDebouncing=!1,t.state={value:void 0===e.value||null===e.value?"":e.value};var n=t.props.debounceTimeout;return t.createNotifier(n),t}return t=l,(n=[{key:"componentDidUpdate",value:function(e){if(!this.isDebouncing){var t=this.props,n=t.value,r=t.debounceTimeout,o=e.debounceTimeout,i=e.value,a=this.state.value;void 0!==n&&i!==n&&a!==n&&this.setState({value:n}),r!==o&&this.createNotifier(r)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var e,t,n=this.props,o=n.element,i=(n.onChange,n.value,n.minLength,n.debounceTimeout,n.forceNotifyByEnter),a=n.forceNotifyOnBlur,l=n.onKeyDown,u=n.onBlur,d=n.inputRef,p=s(n,["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"]),h=this.state.value;e=i?{onKeyDown:this.onKeyDown}:l?{onKeyDown:l}:{},t=a?{onBlur:this.onBlur}:u?{onBlur:u}:{};var f=d?{ref:d}:{};return r.default.createElement(o,c(c(c(c({},p),{},{onChange:this.onChange,value:h},e),t),f))}}])&&u(t.prototype,n),i&&u(t,i),l}(r.default.PureComponent);t.DebounceInput=v,g(v,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0})},775:(e,t,n)=>{"use strict";var r=n(53441).DebounceInput;r.DebounceInput=r,e.exports=r},2245:(e,t,n)=>{"use strict";n.d(t,{WG:()=>ve,c0:()=>Ve,f$:()=>qe,LW:()=>Ze});var r=n(67294);const o=(0,r.createContext)({dragDropManager:void 0});var i,a=n(85893);function s(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,(function(){return n[r++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(i||(i={}));const l="dnd-core/INIT_COORDS",c="dnd-core/BEGIN_DRAG",u="dnd-core/PUBLISH_DRAG_SOURCE",d="dnd-core/HOVER",p="dnd-core/DROP",h="dnd-core/END_DRAG";function f(e,t){return{type:l,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function m(e){return"object"==typeof e}const g={type:l,payload:{clientOffset:null,sourceClientOffset:null}};function v(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),l=e.getRegistry();e.dispatch(f(o)),function(e,t,n){s(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){s(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,l);const u=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==u)return void e.dispatch(g);let d=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){s("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),d=i(u)}e.dispatch(f(o,d));const p=l.getSource(u).beginDrag(a,u);if(null==p)return;!function(e){s(m(e),"Item must be an object.")}(p),l.pinSource(u);const h=l.getSourceType(u);return{type:c,payload:{itemType:h,item:p,sourceId:u,clientOffset:o||null,sourceClientOffset:d||null,isSourcePublic:!!r}}}}function y(e){return function(){if(e.getMonitor().isDragging())return{type:u}}}function b(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function w(e){return function(t,{clientOffset:n}={}){!function(e){s(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();!function(e,t,n){s(t.isDragging(),"Cannot call hover while not dragging."),s(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const r=e[t];s(e.lastIndexOf(r)===t,"Expected targetIds to be unique in the passed array.");s(n.getTarget(r),"Expected targetIds to be registered.")}}(r,o,i);return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];b(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:d,payload:{targetIds:r,clientOffset:n||null}}}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){x(e,t,n[t])}))}return e}function S(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){s(e.isDragging(),"Cannot call drop while not dragging."),s(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(((o,i)=>{const a=function(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;(function(e){s(void 0===e||m(e),"Drop result must either be an object or undefined.")})(i),void 0===i&&(i=0===t?{}:r.getDropResult());return i}(o,i,r,n),l={type:p,payload:{dropResult:_({},t,a)}};e.dispatch(l)}))}}function C(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){s(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(t,r),n.unpinSource()}return{type:h}}}class E{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:v(e),publishDragSource:y(e),hover:w(e),drop:S(e),endDrag:C(e)}}(this);return Object.keys(n).reduce(((r,o)=>{const i=n[o];var a;return r[o]=(a=i,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function k(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var z="function"==typeof Symbol&&Symbol.observable||"@@observable",P=function(){return Math.random().toString(36).substring(7).split("").join(".")},D={INIT:"@@redux/INIT"+P(),REPLACE:"@@redux/REPLACE"+P(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+P()}};function A(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function T(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(k(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(k(1));return n(T)(e,t)}if("function"!=typeof e)throw new Error(k(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(k(3));return i}function d(e){if("function"!=typeof e)throw new Error(k(4));if(l)throw new Error(k(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(k(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!A(e))throw new Error(k(7));if(void 0===e.type)throw new Error(k(8));if(l)throw new Error(k(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:D.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(k(10));o=e,p({type:D.REPLACE})}})[z]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(k(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[z]=function(){return this},e},r}const I=(e,t)=>e===t;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}const R={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function F(e=R,t){const{payload:n}=t;switch(t.type){case l:case c:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case d:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){M(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case h:case p:return R;default:return e}var r,o}const N="dnd-core/ADD_SOURCE",O="dnd-core/ADD_TARGET",j="dnd-core/REMOVE_SOURCE",L="dnd-core/REMOVE_TARGET";function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){B(e,t,n[t])}))}return e}const V={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function H(e=V,t){const{payload:n}=t;switch(t.type){case c:return K({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case u:return K({},e,{isSourcePublic:!0});case d:return K({},e,{targetIds:n.targetIds});case L:return-1===e.targetIds.indexOf(n.targetId)?e:K({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter((e=>e!==o)))});case p:return K({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case h:return K({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function $(e=0,t){switch(t.type){case N:case O:return e+1;case j:case L:return e-1;default:return e}}const U=[],Z=[];function q(e=U,t){switch(t.type){case d:break;case N:case O:case L:case j:return U;default:return Z}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach(((e,t)=>{1===e&&o.push(t)})),o}(n,r);if(!(o.length>0||!function(e,t,n=I){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r)))return U;const i=r[r.length-1],a=n[n.length-1];return i!==a&&(i&&o.push(i),a&&o.push(a)),o}function G(e=0){return e+1}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}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){W(e,t,n[t])}))}return e}function X(e={},t){return{dirtyHandlerIds:q(e.dirtyHandlerIds,{type:t.type,payload:Y({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:o||null),n))})}),dragOffset:F(e.dragOffset,t),refCount:$(e.refCount,t),dragOperation:H(e.dragOperation,t),stateId:G(e.stateId)};var n,r,o}function Q(e,t){return{x:e.x-t.x,y:e.y-t.y}}U.__IS_NONE__=!0,Z.__IS_ALL__=!0;class J{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;s("function"==typeof e,"listener must be a function."),s(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),o=t.stateId;try{const i=o===r||o===r+1&&!function(e,t){return e!==U&&(e===Z||void 0===t||(n=e,t.filter((e=>n.indexOf(e)>-1))).length>0);var n}(t.dirtyHandlerIds,n);i||e()}finally{r=o}}))}subscribeToOffsetChange(e){s("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return s(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(s(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return b(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(s(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!b(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?Q((i=r,{x:(o=t).x+i.x,y:o.y+i.y}),n):null;var o,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?Q(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}let ee=0;function te(e,t){t&&Array.isArray(e)?e.forEach((e=>te(e,!1))):s("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const ne=void 0!==n.g?n.g:self,re=ne.MutationObserver||ne.WebKitMutationObserver;function oe(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const ie="function"==typeof re?function(e){let t=1;const n=new re(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:oe;class ae{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const se=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=ie(this.flush),this.requestErrorThrow=oe((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},le=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new ae(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(se.registerPendingError);function ce(e){const t=(ee++).toString();switch(e){case i.SOURCE:return`S${t}`;case i.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function ue(e){switch(e[0]){case"S":return i.SOURCE;case"T":return i.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function de(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}class pe{addSource(e,t){te(e),function(e){s("function"==typeof e.canDrag,"Expected canDrag to be a function."),s("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),s("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(i.SOURCE,e,t);return this.store.dispatch(function(e){return{type:N,payload:{sourceId:e}}}(n)),n}addTarget(e,t){te(e,!0),function(e){s("function"==typeof e.canDrop,"Expected canDrop to be a function."),s("function"==typeof e.hover,"Expected hover to be a function."),s("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(i.TARGET,e,t);return this.store.dispatch(function(e){return{type:O,payload:{targetId:e}}}(n)),n}containsHandler(e){return de(this.dragSources,e)||de(this.dropTargets,e)}getSource(e,t=!1){s(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return ue(e)===i.SOURCE}isTargetId(e){return ue(e)===i.TARGET}removeSource(e){var t;s(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:j,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},se.enqueueTask(le.create(t))}removeTarget(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:L,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);s(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=ce(e);return this.types.set(r,t),e===i.SOURCE?this.dragSources.set(r,n):e===i.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}function he(e,t,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return T(X,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new J(o,new pe(o)),a=new E(o,i),s=e(a,t,n);return a.receiveBackend(s),a}function fe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}let me=0;const ge=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ve=(0,r.memo)((function(e){var{children:t}=e,n=fe(e,["children"]);const[i,s]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=ye(),n,r){const o=t;o[ge]||(o[ge]={dragDropManager:he(e,t,n,r)});return o[ge]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return(0,r.useEffect)((()=>{if(s){const e=ye();return++me,()=>{0==--me&&(e[ge]=null)}}}),[]),(0,a.jsx)(o.Provider,{value:i,children:t})}));function ye(){return void 0!==n.g?n.g:window}(0,r.memo)((function({connect:e,src:t}){return(0,r.useEffect)((()=>{if("undefined"==typeof Image)return;let n=!1;const r=new Image;return r.src=t,r.onload=()=>{e(r),n=!0},()=>{n&&e(null)}})),null}));let be=!1,we=!1;class xe{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){s(!be,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return be=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{be=!1}}isDragging(){if(!this.sourceId)return!1;s(!we,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return we=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{we=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let _e=!1;class Se{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;s(!_e,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return _e=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{_e=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function Ce(e){return(t=null,n=null)=>{if(!(0,r.isValidElement)(t)){const r=t;return e(r,n),r}const o=t;!function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(o);return function(e,t){const n=e.ref;return s("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,r.cloneElement)(e,{ref:e=>{ke(n,e),ke(t,e)}}):(0,r.cloneElement)(e,{ref:t})}(o,n?t=>e(t,n):e)}}function Ee(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=Ce(r);t[n]=()=>e}})),t}function ke(e,t){"function"==typeof e?e(t):e.current=t}function ze(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Pe(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a<i.length;a++){const l=i[a];if(!s(l))return!1;const c=e[l],u=t[l];if(o=n?n.call(r,c,u,l):void 0,!1===o||void 0===o&&c!==u)return!1}return!0}class De{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Pe(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Pe(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Ee({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,ze(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,ze(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Ae{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Pe(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Ee({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,ze(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}const Te="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;class Ie{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function Me(){const{dragDropManager:e}=(0,r.useContext)(o);return s(null!=e,"Expected drag drop context"),e}function Re(e,t,n){const o=Me(),i=function(e,t,n){const o=(0,r.useMemo)((()=>new Ie(e,t,n)),[t,n]);return(0,r.useEffect)((()=>{o.spec=e}),[e]),o}(e,t,n),a=function(e){return(0,r.useMemo)((()=>{const t=e.type;return s(null!=t,"spec.type must be defined"),t}),[e])}(e);Te((function(){if(null!=a){const[e,r]=function(e,t,n){const r=n.getRegistry(),o=r.addSource(e,t);return[o,()=>r.removeSource(o)]}(a,i,o);return t.receiveHandlerId(e),n.receiveHandlerId(e),r}}),[o,t,n,i,a])}function Fe(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),(0,r.useMemo)((()=>"function"==typeof e?e():e),n)}var Ne=n(64063),Oe=n.n(Ne);function je(e,t,n){const[o,i]=(0,r.useState)((()=>t(e))),a=(0,r.useCallback)((()=>{const r=t(e);Oe()(o,r)||(i(r),n&&n())}),[o,e,n]);return Te(a),[o,a]}function Le(e,t,n){return function(e,t,n){const[r,o]=je(e,t,n);return Te((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),r}(t,e||(()=>({})),(()=>n.reconnect()))}function Be(e){return(0,r.useMemo)((()=>e.hooks.dragSource()),[e])}function Ke(e){return(0,r.useMemo)((()=>e.hooks.dragPreview()),[e])}function Ve(e,t){const n=Fe(e,t);s(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const o=function(){const e=Me();return(0,r.useMemo)((()=>new xe(e)),[e])}(),i=function(e,t){const n=Me(),o=(0,r.useMemo)((()=>new De(n.getBackend())),[n]);return Te((()=>(o.dragSourceOptions=e||null,o.reconnect(),()=>o.disconnectDragSource())),[o,e]),Te((()=>(o.dragPreviewOptions=t||null,o.reconnect(),()=>o.disconnectDragPreview())),[o,t]),o}(n.options,n.previewOptions);return Re(n,o,i),[Le(n.collect,o,i),Be(i),Ke(i)]}class He{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function $e(e,t,n){const o=Me(),i=function(e,t){const n=(0,r.useMemo)((()=>new He(e,t)),[t]);return(0,r.useEffect)((()=>{n.spec=e}),[e]),n}(e,t),a=function(e){const{accept:t}=e;return(0,r.useMemo)((()=>(s(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);Te((function(){const[e,r]=function(e,t,n){const r=n.getRegistry(),o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}(a,i,o);return t.receiveHandlerId(e),n.receiveHandlerId(e),r}),[o,t,i,n,a.map((e=>e.toString())).join("|")])}function Ue(e){return(0,r.useMemo)((()=>e.hooks.dropTarget()),[e])}function Ze(e,t){const n=Fe(e,t),o=function(){const e=Me();return(0,r.useMemo)((()=>new Se(e)),[e])}(),i=function(e){const t=Me(),n=(0,r.useMemo)((()=>new Ae(t.getBackend())),[t]);return Te((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return $e(n,o,i),[Le(n.collect,o,i),Ue(i)]}function qe(e){const t=Me().getMonitor(),[n,o]=je(t,e);return(0,r.useEffect)((()=>t.subscribeToOffsetChange(o))),(0,r.useEffect)((()=>t.subscribeToStateChange(o))),n}},64448:(e,t,n)=>{"use strict";var r=n(67294),o=n(27418),i=n(54142);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,f={},m={};function g(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!h.call(m,e)||!h.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,S=60106,C=60107,E=60108,k=60114,z=60109,P=60110,D=60112,A=60113,T=60120,I=60115,M=60116,R=60121,F=60128,N=60129,O=60130,j=60131;if("function"==typeof Symbol&&Symbol.for){var L=Symbol.for;_=L("react.element"),S=L("react.portal"),C=L("react.fragment"),E=L("react.strict_mode"),k=L("react.profiler"),z=L("react.provider"),P=L("react.context"),D=L("react.forward_ref"),A=L("react.suspense"),T=L("react.suspense_list"),I=L("react.memo"),M=L("react.lazy"),R=L("react.block"),L("react.scope"),F=L("react.opaque.id"),N=L("react.debug_trace_mode"),O=L("react.offscreen"),j=L("react.legacy_hidden")}var B,K="function"==typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=K&&e[K]||e["@@iterator"])?e:null}function H(e){if(void 0===B)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var $=!1;function U(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function Z(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 22:return e=U(e.type._render,!1);case 1:return e=U(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case S:return"Portal";case k:return"Profiler";case E:return"StrictMode";case A:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case z:return(e._context.displayName||"Context")+".Provider";case D:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case I:return q(e.type);case R:return q(e._render);case M:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ce(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",pe="http://www.w3.org/2000/svg";function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ge,ve=(ge=function(e,t){if(e.namespaceURI!==pe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function _e(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Se=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ce(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Ee(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ze=null,Pe=null,De=null;function Ae(e){if(e=ro(e)){if("function"!=typeof ze)throw Error(a(280));var t=e.stateNode;t&&(t=io(t),ze(e.stateNode,e.type,t))}}function Te(e){Pe?De?De.push(e):De=[e]:Pe=e}function Ie(){if(Pe){var e=Pe,t=De;if(De=Pe=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Me(e,t){return e(t)}function Re(e,t,n,r,o){return e(t,n,r,o)}function Fe(){}var Ne=Me,Oe=!1,je=!1;function Le(){null===Pe&&null===De||(Fe(),Ie())}function Be(e,t){var n=e.stateNode;if(null===n)return null;var r=io(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ke=!1;if(d)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){Ke=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(ge){Ke=!1}function He(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var $e=!1,Ue=null,Ze=!1,qe=null,Ge={onError:function(e){$e=!0,Ue=e}};function We(e,t,n,r,o,i,a,s,l){$e=!1,Ue=null,He.apply(Ge,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Qe(e){if(Ye(e)!==e)throw Error(a(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Qe(o),e;if(i===r)return Qe(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,it=!1,at=[],st=null,lt=null,ct=null,ut=new Map,dt=new Map,pt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ft(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function gt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ft(t,n,r,o,i),null!==t&&(null!==(t=ro(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function vt(e){var t=no(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ro(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){yt(e)&&n.delete(t)}function wt(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ro(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==st&&yt(st)&&(st=null),null!==lt&&yt(lt)&&(lt=null),null!==ct&&yt(ct)&&(ct=null),ut.forEach(bt),dt.forEach(bt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,wt)))}function _t(e){function t(t){return xt(t,e)}if(0<at.length){xt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&xt(st,e),null!==lt&&xt(lt,e),null!==ct&&xt(ct,e),ut.forEach(t),dt.forEach(t),n=0;n<pt.length;n++)(r=pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<pt.length&&null===(n=pt[0]).blockedOn;)vt(n),null===n.blockedOn&&pt.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ct={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},Et={},kt={};function zt(e){if(Et[e])return Et[e];if(!Ct[e])return e;var t,n=Ct[e];for(t in n)if(n.hasOwnProperty(t)&&t in kt)return Et[e]=n[t];return e}d&&(kt=document.createElement("div").style,"AnimationEvent"in window||(delete Ct.animationend.animation,delete Ct.animationiteration.animation,delete Ct.animationstart.animation),"TransitionEvent"in window||delete Ct.transitionend.transition);var Pt=zt("animationend"),Dt=zt("animationiteration"),At=zt("animationstart"),Tt=zt("transitionend"),It=new Map,Mt=new Map,Rt=["abort","abort",Pt,"animationEnd",Dt,"animationIteration",At,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Tt,"transitionEnd","waiting","waiting"];function Ft(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Mt.set(r,t),It.set(r,o),c(o,[r])}}(0,i.unstable_now)();var Nt=8;function Ot(e){if(0!=(1&e))return Nt=15,1;if(0!=(2&e))return Nt=14,2;if(0!=(4&e))return Nt=13,4;var t=24&e;return 0!==t?(Nt=12,t):0!=(32&e)?(Nt=11,32):0!==(t=192&e)?(Nt=10,t):0!=(256&e)?(Nt=9,256):0!==(t=3584&e)?(Nt=8,t):0!=(4096&e)?(Nt=7,4096):0!==(t=4186112&e)?(Nt=6,t):0!==(t=62914560&e)?(Nt=5,t):67108864&e?(Nt=4,67108864):0!=(134217728&e)?(Nt=3,134217728):0!==(t=805306368&e)?(Nt=2,t):0!=(1073741824&e)?(Nt=1,1073741824):(Nt=8,e)}function jt(e,t){var n=e.pendingLanes;if(0===n)return Nt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,o=Nt=15;else if(0!==(i=134217727&n)){var l=i&~a;0!==l?(r=Ot(l),o=Nt):0!==(s&=i)&&(r=Ot(s),o=Nt)}else 0!==(i=n&~a)?(r=Ot(i),o=Nt):0!==s&&(r=Ot(s),o=Nt);if(0===r)return 0;if(r=n&((0>(r=31-$t(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Ot(t),o<=Nt)return t;Nt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-$t(t)),r|=e[n],t&=~o;return r}function Lt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Bt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Kt(24&~t))?Bt(10,t):e;case 10:return 0===(e=Kt(192&~t))?Bt(8,t):e;case 8:return 0===(e=Kt(3584&~t))&&(0===(e=Kt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Kt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Kt(e){return e&-e}function Vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-$t(t)]=n}var $t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ut(e)/Zt|0)|0},Ut=Math.log,Zt=Math.LN2;var qt=i.unstable_UserBlockingPriority,Gt=i.unstable_runWithPriority,Wt=!0;function Yt(e,t,n,r){Oe||Fe();var o=Qt,i=Oe;Oe=!0;try{Re(o,e,t,n,r)}finally{(Oe=i)||Le()}}function Xt(e,t,n,r){Gt(qt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var o;if(Wt)if((o=0==(4&t))&&0<at.length&&-1<ht.indexOf(e))e=ft(null,e,t,n,r),at.push(e);else{var i=Jt(e,t,n,r);if(null===i)o&&mt(e,r);else{if(o){if(-1<ht.indexOf(e))return e=ft(i,e,t,n,r),void at.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return st=gt(st,e,t,n,r,o),!0;case"dragenter":return lt=gt(lt,e,t,n,r,o),!0;case"mouseover":return ct=gt(ct,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ut.set(i,gt(ut.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,dt.set(i,gt(dt.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;mt(e,r)}Fr(e,t,r,null,n)}}}function Jt(e,t,n,r){var o=ke(r);if(null!==(o=no(o))){var i=Ye(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Xe(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Fr(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return nn=o.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function sn(){return!1}function ln(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?an:sn,this.isPropagationStopped=sn,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn,un,dn,pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=ln(pn),fn=o({},pn,{view:0,detail:0}),mn=ln(fn),gn=o({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dn&&(dn&&"mousemove"===e.type?(cn=e.screenX-dn.screenX,un=e.screenY-dn.screenY):un=cn=0,dn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),vn=ln(gn),yn=ln(o({},gn,{dataTransfer:0})),bn=ln(o({},fn,{relatedTarget:0})),wn=ln(o({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=o({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_n=ln(xn),Sn=ln(o({},pn,{data:0})),Cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Pn(){return zn}var Dn=o({},fn,{key:function(e){if(e.key){var t=Cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=ln(Dn),Tn=ln(o({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=ln(o({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),Mn=ln(o({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=o({},gn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Fn=ln(Rn),Nn=[9,13,27,32],On=d&&"CompositionEvent"in window,jn=null;d&&"documentMode"in document&&(jn=document.documentMode);var Ln=d&&"TextEvent"in window&&!jn,Bn=d&&(!On||jn&&8<jn&&11>=jn),Kn=String.fromCharCode(32),Vn=!1;function Hn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var Zn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Zn[e.type]:"textarea"===t}function Gn(e,t,n,r){Te(r),0<(t=Or(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Yn=null;function Xn(e){Dr(e,0)}function Qn(e){if(X(oo(e)))return e}function Jn(e,t){if("change"===e)return t}var er=!1;if(d){var tr;if(d){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"==typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function or(){Wn&&(Wn.detachEvent("onpropertychange",ir),Yn=Wn=null)}function ir(e){if("value"===e.propertyName&&Qn(Yn)){var t=[];if(Gn(t,Yn,e,ke(e)),e=Xn,Oe)e(t);else{Oe=!0;try{Me(e,t)}finally{Oe=!1,Le()}}}}function ar(e,t,n){"focusin"===e?(or(),Yn=n,(Wn=t).attachEvent("onpropertychange",ir)):"focusout"===e&&or()}function sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Yn)}function lr(e,t){if("click"===e)return Qn(t)}function cr(e,t){if("input"===e||"change"===e)return Qn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},dr=Object.prototype.hasOwnProperty;function pr(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!dr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=hr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hr(r)}}function mr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?mr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var yr=d&&"documentMode"in document&&11>=document.documentMode,br=null,wr=null,xr=null,_r=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_r||null==br||br!==Q(r)||("selectionStart"in(r=br)&&vr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},xr&&pr(xr,r)||(xr=r,0<(r=Or(wr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}Ft("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ft("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ft(Rt,2);for(var Cr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<Cr.length;Er++)Mt.set(Cr[Er],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Pr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,c){if(We.apply(this,arguments),$e){if(!$e)throw Error(a(198));var u=Ue;$e=!1,Ue=null,Ze||(Ze=!0,qe=u)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Pr(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Pr(o,s,c),i=l}}}if(Ze)throw e=qe,Ze=!1,qe=null,e}function Ar(e,t){var n=ao(t),r=e+"__bubble";n.has(r)||(Rr(t,e,2,!1),n.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Ir(e){e[Tr]||(e[Tr]=!0,s.forEach((function(t){zr.has(t)||Mr(t,!1,e,null),Mr(t,!0,e,null)})))}function Mr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&zr.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=ao(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),Rr(i,e,o,t),a.add(s))}function Rr(e,t,n,r){var o=Mt.get(t);switch(void 0===o?2:o){case 0:o=Yt;break;case 1:o=Xt;break;default:o=Qt}n=o.bind(null,t,n,e),o=void 0,!Ke||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Fr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=no(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(je)return e(t,n);je=!0;try{Ne(e,t,n)}finally{je=!1,Le()}}((function(){var r=i,o=ke(n),a=[];e:{var s=It.get(e);if(void 0!==s){var l=hn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":c="focus",l=bn;break;case"focusout":c="blur",l=bn;break;case"beforeblur":case"afterblur":l=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=In;break;case Pt:case Dt:case At:l=wn;break;case Tt:l=Mn;break;case"scroll":l=mn;break;case"wheel":l=Fn;break;case"copy":case"cut":case"paste":l=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var h,f=r;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==p&&(null!=(m=Be(f,p))&&u.push(Nr(f,m,h)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(c=n.relatedTarget||n.fromElement)||!no(c)&&!c[eo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?no(c):null)&&(c!==(d=Ye(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=vn,m="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,m="onPointerLeave",p="onPointerEnter",f="pointer"),d=null==l?s:oo(l),h=null==c?s:oo(c),(s=new u(m,f+"leave",l,n,o)).target=d,s.relatedTarget=h,m=null,no(o)===r&&((u=new u(p,f+"enter",c,n,o)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,f=0,h=u=l;h;h=jr(h))f++;for(h=0,m=p;m;m=jr(m))h++;for(;0<f-h;)u=jr(u),f--;for(;0<h-f;)p=jr(p),h--;for(;f--;){if(u===p||null!==p&&u===p.alternate)break e;u=jr(u),p=jr(p)}u=null}else u=null;null!==l&&Lr(a,s,l,u,!1),null!==c&&null!==d&&Lr(a,d,c,u,!0)}if("select"===(l=(s=r?oo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Jn;else if(qn(s))if(er)g=cr;else{g=sr;var v=ar}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=lr);switch(g&&(g=g(e,r))?Gn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&oe(s,"number",s.value)),v=r?oo(r):window,e){case"focusin":(qn(v)||"true"===v.contentEditable)&&(br=v,wr=r,xr=null);break;case"focusout":xr=wr=br=null;break;case"mousedown":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,Sr(a,n,o);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":Sr(a,n,o)}var y;if(On)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Un?Hn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Bn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==b?"onCompositionEnd"===b&&Un&&(y=rn()):(tn="value"in(en=o)?en.value:en.textContent,Un=!0)),0<(v=Or(r,b)).length&&(b=new Sn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=$n(n))&&(b.data=y))),(y=Ln?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Vn=!0,Kn);case"textInput":return(e=t.data)===Kn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!On&&Hn(e,t)?(e=rn(),nn=tn=en=null,Un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Or(r,"onBeforeInput")).length&&(o=new Sn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Dr(a,t)}))}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Or(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Be(e,n))&&r.unshift(Nr(e,i,o)),null!=(i=Be(e,t))&&r.push(Nr(e,i,o))),e=e.return}return r}function jr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Lr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Be(n,i))&&a.unshift(Nr(n,l,s)):o||null!=(l=Be(n,i))&&a.push(Nr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Br(){}var Kr=null,Vr=null;function Hr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function $r(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"==typeof setTimeout?setTimeout:void 0,Zr="function"==typeof clearTimeout?clearTimeout:void 0;function qr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Wr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Yr=0;var Xr=Math.random().toString(36).slice(2),Qr="__reactFiber$"+Xr,Jr="__reactProps$"+Xr,eo="__reactContainer$"+Xr,to="__reactEvents$"+Xr;function no(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eo]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Wr(e);null!==e;){if(n=e[Qr])return n;e=Wr(e)}return t}n=(e=n).parentNode}return null}function ro(e){return!(e=e[Qr]||e[eo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function io(e){return e[Jr]||null}function ao(e){var t=e[to];return void 0===t&&(t=e[to]=new Set),t}var so=[],lo=-1;function co(e){return{current:e}}function uo(e){0>lo||(e.current=so[lo],so[lo]=null,lo--)}function po(e,t){lo++,so[lo]=e.current,e.current=t}var ho={},fo=co(ho),mo=co(!1),go=ho;function vo(e,t){var n=e.type.contextTypes;if(!n)return ho;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yo(e){return null!=(e=e.childContextTypes)}function bo(){uo(mo),uo(fo)}function wo(e,t,n){if(fo.current!==ho)throw Error(a(168));po(fo,t),po(mo,n)}function xo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,q(t)||"Unknown",i));return o({},n,r)}function _o(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ho,go=fo.current,po(fo,e),po(mo,mo.current),!0}function So(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=xo(e,t,go),r.__reactInternalMemoizedMergedChildContext=e,uo(mo),uo(fo),po(fo,e)):uo(mo),po(mo,n)}var Co=null,Eo=null,ko=i.unstable_runWithPriority,zo=i.unstable_scheduleCallback,Po=i.unstable_cancelCallback,Do=i.unstable_shouldYield,Ao=i.unstable_requestPaint,To=i.unstable_now,Io=i.unstable_getCurrentPriorityLevel,Mo=i.unstable_ImmediatePriority,Ro=i.unstable_UserBlockingPriority,Fo=i.unstable_NormalPriority,No=i.unstable_LowPriority,Oo=i.unstable_IdlePriority,jo={},Lo=void 0!==Ao?Ao:function(){},Bo=null,Ko=null,Vo=!1,Ho=To(),$o=1e4>Ho?To:function(){return To()-Ho};function Uo(){switch(Io()){case Mo:return 99;case Ro:return 98;case Fo:return 97;case No:return 96;case Oo:return 95;default:throw Error(a(332))}}function Zo(e){switch(e){case 99:return Mo;case 98:return Ro;case 97:return Fo;case 96:return No;case 95:return Oo;default:throw Error(a(332))}}function qo(e,t){return e=Zo(e),ko(e,t)}function Go(e,t,n){return e=Zo(e),zo(e,t,n)}function Wo(){if(null!==Ko){var e=Ko;Ko=null,Po(e)}Yo()}function Yo(){if(!Vo&&null!==Bo){Vo=!0;var e=0;try{var t=Bo;qo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Bo=null}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),zo(Mo,Wo),t}finally{Vo=!1}}}var Xo=x.ReactCurrentBatchConfig;function Qo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Jo=co(null),ei=null,ti=null,ni=null;function ri(){ni=ti=ei=null}function oi(e){var t=Jo.current;uo(Jo),e.type._context._currentValue=t}function ii(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ai(e,t){ei=e,ni=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Oa=!0),e.firstContext=null)}function si(e,t){if(ni!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ni=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(a(308));ti=t,ei.dependencies={lanes:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var li=!1;function ci(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ui(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function hi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fi(e,t,n,r){var i=e.updateQueue;li=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var p=(d=d.updateQueue).lastBaseUpdate;p!==s&&(null===p?d.firstBaseUpdate=u:p.next=u,d.lastBaseUpdate=c)}}if(null!==a){for(p=i.baseState,s=0,d=u=c=null;;){l=a.lane;var h=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,m=a;switch(l=t,h=n,m.tag){case 1:if("function"==typeof(f=m.payload)){p=f.call(h,p,l);break e}p=f;break e;case 3:f.flags=-4097&f.flags|64;case 0:if(null==(l="function"==typeof(f=m.payload)?f.call(h,p,l):f))break e;p=o({},p,l);break e;case 2:li=!0}}null!==a.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[a]:l.push(a))}else h={eventTime:h,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=h,c=p):d=d.next=h,s|=l;if(null===(a=a.next)){if(null===(l=i.shared.pending))break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===d&&(c=p),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,Ks|=s,e.lanes=s,e.memoizedState=p}}function mi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var gi=(new r.Component).refs;function vi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yi={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pl(),o=hl(e),i=di(r,o);i.payload=t,null!=n&&(i.callback=n),pi(e,i),fl(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pl(),o=hl(e),i=di(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),pi(e,i),fl(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pl(),r=hl(e),o=di(n,r);o.tag=2,null!=t&&(o.callback=t),pi(e,o),fl(e,r,n)}};function bi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!pr(n,r)||!pr(o,i))}function wi(e,t,n){var r=!1,o=ho,i=t.contextType;return"object"==typeof i&&null!==i?i=si(i):(o=yo(t)?go:fo.current,i=(r=null!=(r=t.contextTypes))?vo(e,o):ho),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function xi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yi.enqueueReplaceState(t,t.state,null)}function _i(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=gi,ci(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=si(i):(i=yo(t)?go:fo.current,o.context=vo(e,i)),fi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(vi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&yi.enqueueReplaceState(o,o.state,null),fi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var Si=Array.isArray;function Ci(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===gi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ei(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ki(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Zl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Yl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ci(e,t,n),r.return=e,r):((r=ql(n.type,n.key,n.props,null,e.mode,r)).ref=Ci(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Gl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Yl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=ql(t.type,t.key,t.props,null,e.mode,n)).ref=Ci(e,null,t),n.return=e,n;case S:return(t=Xl(t,e.mode,n)).return=e,t}if(Si(t)||V(t))return(t=Gl(t,e.mode,n,null)).return=e,t;Ei(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===o?n.type===C?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null}if(Si(n)||V(n))return null!==o?null:d(e,t,n,r,null);Ei(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?n:r.key)||null,r.type===C?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Si(r)||V(r))return d(t,e=e.get(n)||null,r,o,null);Ei(t,r)}return null}function m(o,a,s,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=h(o,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(o,d),c;if(null===d){for(;m<s.length;m++)null!==(d=p(o,s[m],l))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(o,d);m<s.length;m++)null!==(g=f(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),c}function g(o,s,l,c){var u=V(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=h(o,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=p(o,y.value,c))&&(s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return u}for(m=r(o,m);!y.done;g++,y=l.next())null!==(y=f(m,o,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,i,l){var c="object"==typeof i&&null!==i&&i.type===C&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case _:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===C){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}}else if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=Ci(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===C?((r=Gl(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=ql(i.type,i.key,i.props,null,e.mode,l)).ref=Ci(e,r,i),l.return=e,e=l)}return s(e);case S:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xl(i,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Yl(i,e.mode,l)).return=e,e=r),s(e);if(Si(i))return m(e,r,i,l);if(V(i))return g(e,r,i,l);if(u&&Ei(e,i),void 0===i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,q(e.type)||"Component"))}return n(e,r)}}var zi=ki(!0),Pi=ki(!1),Di={},Ai=co(Di),Ti=co(Di),Ii=co(Di);function Mi(e){if(e===Di)throw Error(a(174));return e}function Ri(e,t){switch(po(Ii,t),po(Ti,e),po(Ai,Di),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fe(null,"");break;default:t=fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}uo(Ai),po(Ai,t)}function Fi(){uo(Ai),uo(Ti),uo(Ii)}function Ni(e){Mi(Ii.current);var t=Mi(Ai.current),n=fe(t,e.type);t!==n&&(po(Ti,e),po(Ai,n))}function Oi(e){Ti.current===e&&(uo(Ai),uo(Ti))}var ji=co(0);function Li(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bi=null,Ki=null,Vi=!1;function Hi(e,t){var n=$l(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function $i(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ui(e){if(Vi){var t=Ki;if(t){var n=t;if(!$i(e,t)){if(!(t=Gr(n.nextSibling))||!$i(e,t))return e.flags=-1025&e.flags|2,Vi=!1,void(Bi=e);Hi(Bi,n)}Bi=e,Ki=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,Vi=!1,Bi=e}}function Zi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Bi=e}function qi(e){if(e!==Bi)return!1;if(!Vi)return Zi(e),Vi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!$r(t,e.memoizedProps))for(t=Ki;t;)Hi(e,t),t=Gr(t.nextSibling);if(Zi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ki=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ki=null}}else Ki=Bi?Gr(e.stateNode.nextSibling):null;return!0}function Gi(){Ki=Bi=null,Vi=!1}var Wi=[];function Yi(){for(var e=0;e<Wi.length;e++)Wi[e]._workInProgressVersionPrimary=null;Wi.length=0}var Xi=x.ReactCurrentDispatcher,Qi=x.ReactCurrentBatchConfig,Ji=0,ea=null,ta=null,na=null,ra=!1,oa=!1;function ia(){throw Error(a(321))}function aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function sa(e,t,n,r,o,i){if(Ji=i,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=null===e||null===e.memoizedState?Ma:Ra,e=n(r,o),oa){i=0;do{if(oa=!1,!(25>i))throw Error(a(301));i+=1,na=ta=null,t.updateQueue=null,Xi.current=Fa,e=n(r,o)}while(oa)}if(Xi.current=Ia,t=null!==ta&&null!==ta.next,Ji=0,na=ta=ea=null,ra=!1,t)throw Error(a(300));return e}function la(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===na?ea.memoizedState=na=e:na=na.next=e,na}function ca(){if(null===ta){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=ta.next;var t=null===na?ea.memoizedState:na.next;if(null!==t)na=t,ta=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ta=e).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===na?ea.memoizedState=na=e:na=na.next=e}return na}function ua(e,t){return"function"==typeof t?t(e):t}function da(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ta,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,c=o;do{var u=c.lane;if((Ji&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=r):l=l.next=d,ea.lanes|=u,Ks|=u}c=c.next}while(null!==c&&c!==o);null===l?i=r:l.next=s,ur(r,t.memoizedState)||(Oa=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function pa(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);ur(i,t.memoizedState)||(Oa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ha(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ji&e)===e)&&(t._workInProgressVersionPrimary=r,Wi.push(t))),e)return n(t._source);throw Wi.push(t),Error(a(350))}function fa(e,t,n,r){var o=Ms;if(null===o)throw Error(a(349));var i=t._getVersion,s=i(t._source),l=Xi.current,c=l.useState((function(){return ha(o,t,n)})),u=c[1],d=c[0];c=na;var p=e.memoizedState,h=p.refs,f=h.getSnapshot,m=p.source;p=p.subscribe;var g=ea;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect((function(){h.getSnapshot=n,h.setSnapshot=u;var e=i(t._source);if(!ur(s,e)){e=n(t._source),ur(d,e)||(u(e),e=hl(g),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var l=31-$t(a),c=1<<l;r[l]|=e,a&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=hl(g);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ur(f,n)&&ur(m,t)&&ur(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:d}).dispatch=u=Ta.bind(null,ea,e),c.queue=e,c.baseQueue=null,d=ha(o,t,n),c.memoizedState=c.baseState=d),d}function ma(e,t,n){return fa(ca(),e,t,n)}function ga(e){var t=la();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e}).dispatch=Ta.bind(null,ea,e),[t.memoizedState,e]}function va(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null},ea.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ya(e){return e={current:e},la().memoizedState=e}function ba(){return ca().memoizedState}function wa(e,t,n,r){var o=la();ea.flags|=e,o.memoizedState=va(1|t,n,void 0,void 0===r?null:r)}function xa(e,t,n,r){var o=ca();r=void 0===r?null:r;var i=void 0;if(null!==ta){var a=ta.memoizedState;if(i=a.destroy,null!==r&&aa(r,a.deps))return void va(t,n,i,r)}ea.flags|=e,o.memoizedState=va(1|t,n,i,r)}function _a(e,t){return wa(516,4,e,t)}function Sa(e,t){return xa(516,4,e,t)}function Ca(e,t){return xa(4,2,e,t)}function Ea(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ka(e,t,n){return n=null!=n?n.concat([e]):null,xa(4,2,Ea.bind(null,t,e),n)}function za(){}function Pa(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Da(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Aa(e,t){var n=Uo();qo(98>n?98:n,(function(){e(!0)})),qo(97<n?97:n,(function(){var n=Qi.transition;Qi.transition=1;try{e(!1),t()}finally{Qi.transition=n}}))}function Ta(e,t,n){var r=pl(),o=hl(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===ea||null!==a&&a===ea)oa=ra=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(i.eagerReducer=a,i.eagerState=l,ur(l,s))return}catch(e){}fl(e,o,r)}}var Ia={readContext:si,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useOpaqueIdentifier:ia,unstable_isNewReconciler:!1},Ma={readContext:si,useCallback:function(e,t){return la().memoizedState=[e,void 0===t?null:t],e},useContext:si,useEffect:_a,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wa(4,2,Ea.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(4,2,e,t)},useMemo:function(e,t){var n=la();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=la();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ta.bind(null,ea,e),[r.memoizedState,e]},useRef:ya,useState:ga,useDebugValue:za,useDeferredValue:function(e){var t=ga(e),n=t[0],r=t[1];return _a((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=ga(!1),t=e[0];return ya(e=Aa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=la();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fa(r,e,t,n)},useOpaqueIdentifier:function(){if(Vi){var e=!1,t=function(e){return{$$typeof:F,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Yr++).toString(36))),Error(a(355))})),n=ga(t)[1];return 0==(2&ea.mode)&&(ea.flags|=516,va(5,(function(){n("r:"+(Yr++).toString(36))}),void 0,null)),t}return ga(t="r:"+(Yr++).toString(36)),t},unstable_isNewReconciler:!1},Ra={readContext:si,useCallback:Pa,useContext:si,useEffect:Sa,useImperativeHandle:ka,useLayoutEffect:Ca,useMemo:Da,useReducer:da,useRef:ba,useState:function(){return da(ua)},useDebugValue:za,useDeferredValue:function(e){var t=da(ua),n=t[0],r=t[1];return Sa((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=da(ua)[0];return[ba().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return da(ua)[0]},unstable_isNewReconciler:!1},Fa={readContext:si,useCallback:Pa,useContext:si,useEffect:Sa,useImperativeHandle:ka,useLayoutEffect:Ca,useMemo:Da,useReducer:pa,useRef:ba,useState:function(){return pa(ua)},useDebugValue:za,useDeferredValue:function(e){var t=pa(ua),n=t[0],r=t[1];return Sa((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=pa(ua)[0];return[ba().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return pa(ua)[0]},unstable_isNewReconciler:!1},Na=x.ReactCurrentOwner,Oa=!1;function ja(e,t,n,r){t.child=null===e?Pi(t,null,n,r):zi(t,e.child,n,r)}function La(e,t,n,r,o){n=n.render;var i=t.ref;return ai(t,o),r=sa(e,t,n,r,i,o),null===e||Oa?(t.flags|=1,ja(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,is(e,t,o))}function Ba(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Ul(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ql(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ka(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:pr)(o,r)&&e.ref===t.ref)?is(e,t,i):(t.flags|=1,(e=Zl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ka(e,t,n,r,o,i){if(null!==e&&pr(e.memoizedProps,r)&&e.ref===t.ref){if(Oa=!1,0==(i&o))return t.lanes=e.lanes,is(e,t,i);0!=(16384&e.flags)&&(Oa=!0)}return $a(e,t,n,r,i)}function Va(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},_l(t,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},_l(t,e),null;t.memoizedState={baseLanes:0},_l(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,_l(t,r);return ja(e,t,o,n),t.child}function Ha(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function $a(e,t,n,r,o){var i=yo(n)?go:fo.current;return i=vo(t,i),ai(t,o),n=sa(e,t,n,r,i,o),null===e||Oa?(t.flags|=1,ja(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,is(e,t,o))}function Ua(e,t,n,r,o){if(yo(n)){var i=!0;_o(t)}else i=!1;if(ai(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wi(t,n,r),_i(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=si(c):c=vo(t,c=yo(n)?go:fo.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&xi(t,a,r,c),li=!1;var p=t.memoizedState;a.state=p,fi(t,r,a,o),l=t.memoizedState,s!==r||p!==l||mo.current||li?("function"==typeof u&&(vi(t,n,u,r),l=t.memoizedState),(s=li||bi(t,n,s,r,p,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ui(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Qo(t.type,s),a.props=c,d=t.pendingProps,p=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=si(l):l=vo(t,l=yo(n)?go:fo.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&xi(t,a,r,l),li=!1,p=t.memoizedState,a.state=p,fi(t,r,a,o);var f=t.memoizedState;s!==d||p!==f||mo.current||li?("function"==typeof h&&(vi(t,n,h,r),f=t.memoizedState),(c=li||bi(t,n,c,r,p,f,l))?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Za(e,t,n,r,i,o)}function Za(e,t,n,r,o,i){Ha(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&So(t,n,!1),is(e,t,i);r=t.stateNode,Na.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=zi(t,e.child,null,i),t.child=zi(t,null,s,i)):ja(e,t,s,i),t.memoizedState=r.state,o&&So(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?wo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wo(0,t.context,!1),Ri(e,t.containerInfo)}var Ga,Wa,Ya,Xa={dehydrated:null,retryLane:0};function Qa(e,t,n){var r,o=t.pendingProps,i=ji.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),po(ji,1&i),null===e?(void 0!==o.fallback&&Ui(t),e=o.children,i=o.fallback,a?(e=Ja(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,e):"number"==typeof o.unstable_expectedLoadTime?(e=Ja(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,t.lanes=33554432,e):((n=Wl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=ts(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Xa,o):(n=es(e,t,o.children,n),t.memoizedState=null,n))}function Ja(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Wl(t,o,0,null),n=Gl(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function es(e,t,n,r){var o=e.child;return e=o.sibling,n=Zl(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ts(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Zl(a,s),null!==e?r=Zl(e,r):(r=Gl(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ii(e.return,t)}function rs(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function os(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ja(e,t,r.children,n),0!=(2&(r=ji.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(po(ji,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Li(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rs(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Li(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rs(t,!0,n,null,i,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function is(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ks|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Zl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Zl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!Vi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ss(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return yo(t.type)&&bo(),null;case 3:return Fi(),uo(mo),uo(fo),Yi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Oi(t);var i=Mi(Ii.current);if(n=t.type,null!==e&&null!=t.stateNode)Wa(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Mi(Ai.current),qi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Qr]=t,r[Jr]=s,n){case"dialog":Ar("cancel",r),Ar("close",r);break;case"iframe":case"object":case"embed":Ar("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)Ar(kr[e],r);break;case"source":Ar("error",r);break;case"img":case"image":case"link":Ar("error",r),Ar("load",r);break;case"details":Ar("toggle",r);break;case"input":ee(r,s),Ar("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ar("invalid",r);break;case"textarea":le(r,s),Ar("invalid",r)}for(var c in Ce(n,s),e=null,s)s.hasOwnProperty(c)&&(i=s[c],"children"===c?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&Ar("scroll",r));switch(n){case"input":Y(r),re(r,s,!0);break;case"textarea":Y(r),ue(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Br)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===de&&(e=he(n)),e===de?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Qr]=t,e[Jr]=r,Ga(e,t),t.stateNode=e,c=Ee(n,r),n){case"dialog":Ar("cancel",e),Ar("close",e),i=r;break;case"iframe":case"object":case"embed":Ar("load",e),i=r;break;case"video":case"audio":for(i=0;i<kr.length;i++)Ar(kr[i],e);i=r;break;case"source":Ar("error",e),i=r;break;case"img":case"image":case"link":Ar("error",e),Ar("load",e),i=r;break;case"details":Ar("toggle",e),i=r;break;case"input":ee(e,r),i=J(e,r),Ar("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Ar("invalid",e);break;case"textarea":le(e,r),i=se(e,r),Ar("invalid",e);break;default:i=r}Ce(n,i);var u=i;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?_e(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ve(e,d):"children"===s?"string"==typeof d?("textarea"!==n||""!==d)&&ye(e,d):"number"==typeof d&&ye(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Ar("scroll",e):null!=d&&w(e,s,d,c))}switch(n){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Br)}Hr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ya(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Mi(Ii.current),Mi(Ai.current),qi(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return uo(ji),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&ji.current)?0===js&&(js=3):(0!==js&&3!==js||(js=4),null===Ms||0==(134217727&Ks)&&0==(134217727&Vs)||yl(Ms,Fs))),(r||n)&&(t.flags|=4),null);case 4:return Fi(),null===e&&Ir(t.stateNode.containerInfo),null;case 10:return oi(t),null;case 19:if(uo(ji),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(c=r.rendering))if(s)as(r,!1);else{if(0!==js||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Li(e))){for(t.flags|=64,as(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return po(ji,1&ji.current|2),t.child}e=e.sibling}null!==r.tail&&$o()>Zs&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Li(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Vi)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*$o()-r.renderingStartTime>Zs&&1073741824!==n&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=$o(),n.sibling=null,t=ji.current,po(ji,s?1&t|2:1&t),n):null;case 23:case 24:return Sl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function ls(e){switch(e.tag){case 1:yo(e.type)&&bo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Fi(),uo(mo),uo(fo),Yi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Oi(e),null;case 13:return uo(ji),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return uo(ji),null;case 4:return Fi(),null;case 10:return oi(e),null;case 23:case 24:return Sl(),null;default:return null}}function cs(e,t){try{var n="",r=t;do{n+=Z(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function us(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ga=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Wa=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Mi(Ai.current);var a,s=null;switch(n){case"input":i=J(e,i),r=J(e,r),s=[];break;case"option":i=ie(e,i),r=ie(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":i=se(e,i),r=se(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Br)}for(d in Ce(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var c=i[d];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(c=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Ar("scroll",e),s||c===u||(s=[])):"object"==typeof u&&null!==u&&u.$$typeof===F?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Ya=function(e,t,n,r){n!==r&&(t.flags|=4)};var ds="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=di(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Xs=r),us(0,t)},n}function hs(e,t,n){(n=di(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return us(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Qs?Qs=new Set([this]):Qs.add(this),us(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"==typeof WeakSet?WeakSet:Set;function ms(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Bl(e,t)}else t.current=null}function gs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo))}throw Error(a(163))}function vs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Ol(n,e),Nl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&mi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}mi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Hr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&_t(n)))))}throw Error(a(163))}function ys(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=xe("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bs(e,t){if(Eo&&"function"==typeof Eo.onCommitFiberUnmount)try{Eo.onCommitFiberUnmount(Co,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Ol(t,n);else{r=t;try{o()}catch(e){Bl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Bl(t,e)}break;case 5:ms(t);break;case 4:Es(e,t)}}function ws(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function xs(e){return 5===e.tag||3===e.tag||4===e.tag}function _s(e){e:{for(var t=e.return;null!==t;){if(xs(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||xs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Ss(e,n,t):Cs(e,n,t)}function Ss(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Br));else if(4!==r&&null!==(e=e.child))for(Ss(e,t,n),e=e.sibling;null!==e;)Ss(e,t,n),e=e.sibling}function Cs(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Cs(e,t,n),e=e.sibling;null!==e;)Cs(e,t,n),e=e.sibling}function Es(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var s=e,l=o,c=l;;)if(bs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=o.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(bs(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function ks(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ee(e,o),t=Ee(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?_e(n,l):"dangerouslySetInnerHTML"===s?ve(n,l):"children"===s?ye(n,l):w(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,_t(n.containerInfo)));case 13:return null!==t.memoizedState&&(Us=$o(),ys(t.child,!0)),void zs(t);case 19:return void zs(t);case 23:case 24:return void ys(t,null!==t.memoizedState)}throw Error(a(163))}function zs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=Vl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ps(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ds=Math.ceil,As=x.ReactCurrentDispatcher,Ts=x.ReactCurrentOwner,Is=0,Ms=null,Rs=null,Fs=0,Ns=0,Os=co(0),js=0,Ls=null,Bs=0,Ks=0,Vs=0,Hs=0,$s=null,Us=0,Zs=1/0;function qs(){Zs=$o()+500}var Gs,Ws=null,Ys=!1,Xs=null,Qs=null,Js=!1,el=null,tl=90,nl=[],rl=[],ol=null,il=0,al=null,sl=-1,ll=0,cl=0,ul=null,dl=!1;function pl(){return 0!=(48&Is)?$o():-1!==sl?sl:sl=$o()}function hl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Uo()?1:2;if(0===ll&&(ll=Bs),0!==Xo.transition){0!==cl&&(cl=null!==$s?$s.pendingLanes:0),e=ll;var t=4186112&~cl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Uo(),0!=(4&Is)&&98===e?e=Bt(12,ll):e=Bt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ll),e}function fl(e,t,n){if(50<il)throw il=0,al=null,Error(a(185));if(null===(e=ml(e,t)))return null;Ht(e,t,n),e===Ms&&(Vs|=t,4===js&&yl(e,Fs));var r=Uo();1===t?0!=(8&Is)&&0==(48&Is)?bl(e):(gl(e,n),0===Is&&(qs(),Wo())):(0==(4&Is)||98!==r&&99!==r||(null===ol?ol=new Set([e]):ol.add(e)),gl(e,n)),$s=e}function ml(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function gl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-$t(s),c=1<<l,u=i[l];if(-1===u){if(0==(c&r)||0!=(c&o)){u=t,Ot(c);var d=Nt;i[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=jt(e,e===Ms?Fs:0),t=Nt,0===r)null!==n&&(n!==jo&&Po(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==jo&&Po(n)}15===t?(n=bl.bind(null,e),null===Bo?(Bo=[n],Ko=zo(Mo,Yo)):Bo.push(n),n=jo):14===t?n=Go(99,bl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=Go(n,vl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function vl(e){if(sl=-1,cl=ll=0,0!=(48&Is))throw Error(a(327));var t=e.callbackNode;if(Fl()&&e.callbackNode!==t)return null;var n=jt(e,e===Ms?Fs:0);if(0===n)return null;var r=n,o=Is;Is|=16;var i=kl();for(Ms===e&&Fs===r||(qs(),Cl(e,r));;)try{Dl();break}catch(t){El(e,t)}if(ri(),As.current=i,Is=o,null!==Rs?r=0:(Ms=null,Fs=0,r=js),0!=(Bs&Vs))Cl(e,0);else if(0!==r){if(2===r&&(Is|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=Lt(e))&&(r=zl(e,n))),1===r)throw t=Ls,Cl(e,0),yl(e,n),gl(e,$o()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Il(e);break;case 3:if(yl(e,n),(62914560&n)===n&&10<(r=Us+500-$o())){if(0!==jt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){pl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ur(Il.bind(null,e),r);break}Il(e);break;case 4:if(yl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var s=31-$t(n);i=1<<s,(s=r[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=$o()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ds(n/1960))-n)){e.timeoutHandle=Ur(Il.bind(null,e),n);break}Il(e);break;default:throw Error(a(329))}}return gl(e,$o()),e.callbackNode===t?vl.bind(null,e):null}function yl(e,t){for(t&=~Hs,t&=~Vs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$t(t),r=1<<n;e[n]=-1,t&=~r}}function bl(e){if(0!=(48&Is))throw Error(a(327));if(Fl(),e===Ms&&0!=(e.expiredLanes&Fs)){var t=Fs,n=zl(e,t);0!=(Bs&Vs)&&(n=zl(e,t=jt(e,t)))}else n=zl(e,t=jt(e,0));if(0!==e.tag&&2===n&&(Is|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=Lt(e))&&(n=zl(e,t))),1===n)throw n=Ls,Cl(e,0),yl(e,t),gl(e,$o()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Il(e),gl(e,$o()),null}function wl(e,t){var n=Is;Is|=1;try{return e(t)}finally{0===(Is=n)&&(qs(),Wo())}}function xl(e,t){var n=Is;Is&=-2,Is|=8;try{return e(t)}finally{0===(Is=n)&&(qs(),Wo())}}function _l(e,t){po(Os,Ns),Ns|=t,Bs|=t}function Sl(){Ns=Os.current,uo(Os)}function Cl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Zr(n)),null!==Rs)for(n=Rs.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&bo();break;case 3:Fi(),uo(mo),uo(fo),Yi();break;case 5:Oi(r);break;case 4:Fi();break;case 13:case 19:uo(ji);break;case 10:oi(r);break;case 23:case 24:Sl()}n=n.return}Ms=e,Rs=Zl(e.current,null),Fs=Ns=Bs=t,js=0,Ls=null,Hs=Vs=Ks=0}function El(e,t){for(;;){var n=Rs;try{if(ri(),Xi.current=Ia,ra){for(var r=ea.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ra=!1}if(Ji=0,na=ta=ea=null,oa=!1,Ts.current=null,null===n||null===n.return){js=1,Ls=t,Rs=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=Fs,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l;if(0==(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!=(1&ji.current),p=a;do{var h;if(h=13===p.tag){var f=p.memoizedState;if(null!==f)h=null!==f.dehydrated;else{var m=p.memoizedProps;h=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(h){var g=p.updateQueue;if(null===g){var v=new Set;v.add(c),p.updateQueue=v}else g.add(c);if(0==(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=di(-1,1);y.tag=2,pi(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new ds,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var w=Kl.bind(null,i,c,s);c.then(w,w)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);l=Error((q(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==js&&(js=2),l=cs(l,s),p=a;do{switch(p.tag){case 3:i=l,p.flags|=4096,t&=-t,p.lanes|=t,hi(p,ps(0,i,t));break e;case 1:i=l;var x=p.type,_=p.stateNode;if(0==(64&p.flags)&&("function"==typeof x.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===Qs||!Qs.has(_)))){p.flags|=4096,t&=-t,p.lanes|=t,hi(p,hs(p,i,t));break e}}p=p.return}while(null!==p)}Tl(n)}catch(e){t=e,Rs===n&&null!==n&&(Rs=n=n.return);continue}break}}function kl(){var e=As.current;return As.current=Ia,null===e?Ia:e}function zl(e,t){var n=Is;Is|=16;var r=kl();for(Ms===e&&Fs===t||Cl(e,t);;)try{Pl();break}catch(t){El(e,t)}if(ri(),Is=n,As.current=r,null!==Rs)throw Error(a(261));return Ms=null,Fs=0,js}function Pl(){for(;null!==Rs;)Al(Rs)}function Dl(){for(;null!==Rs&&!Do();)Al(Rs)}function Al(e){var t=Gs(e.alternate,e,Ns);e.memoizedProps=e.pendingProps,null===t?Tl(e):Rs=t,Ts.current=null}function Tl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ss(n,t,Ns)))return void(Rs=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ns)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ls(t)))return n.flags&=2047,void(Rs=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Rs=t);Rs=t=e}while(null!==t);0===js&&(js=5)}function Il(e){var t=Uo();return qo(99,Ml.bind(null,e,t)),null}function Ml(e,t){do{Fl()}while(null!==el);if(0!=(48&Is))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<i;){var c=31-$t(i),u=1<<c;o[c]=0,s[c]=-1,l[c]=-1,i&=~u}if(null!==ol&&0==(24&r)&&ol.has(e)&&ol.delete(e),e===Ms&&(Rs=Ms=null,Fs=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Is,Is|=32,Ts.current=null,Kr=Wt,vr(s=gr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,i=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(e){l=null;break e}var d=0,p=-1,h=-1,f=0,m=0,g=s,v=null;t:for(;;){for(var y;g!==l||0!==i&&3!==g.nodeType||(p=d+i),g!==c||0!==u&&3!==g.nodeType||(h=d+u),3===g.nodeType&&(d+=g.nodeValue.length),null!==(y=g.firstChild);)v=g,g=y;for(;;){if(g===s)break t;if(v===l&&++f===i&&(p=d),v===c&&++m===u&&(h=d),null!==(y=g.nextSibling))break;v=(g=v).parentNode}g=y}l=-1===p||-1===h?null:{start:p,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;Vr={focusedElem:s,selectionRange:l},Wt=!1,ul=null,dl=!1,Ws=r;do{try{Rl()}catch(e){if(null===Ws)throw Error(a(330));Bl(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);ul=null,Ws=r;do{try{for(s=e;null!==Ws;){var b=Ws.flags;if(16&b&&ye(Ws.stateNode,""),128&b){var w=Ws.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:_s(Ws),Ws.flags&=-3;break;case 6:_s(Ws),Ws.flags&=-3,ks(Ws.alternate,Ws);break;case 1024:Ws.flags&=-1025;break;case 1028:Ws.flags&=-1025,ks(Ws.alternate,Ws);break;case 4:ks(Ws.alternate,Ws);break;case 8:Es(s,l=Ws);var _=l.alternate;ws(l),null!==_&&ws(_)}Ws=Ws.nextEffect}}catch(e){if(null===Ws)throw Error(a(330));Bl(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);if(x=Vr,w=gr(),b=x.focusedElem,s=x.selectionRange,w!==b&&b&&b.ownerDocument&&mr(b.ownerDocument.documentElement,b)){null!==s&&vr(b)&&(w=s.start,void 0===(x=s.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=b.textContent.length,_=Math.min(s.start,l),s=void 0===s.end?_:Math.min(s.end,l),!x.extend&&_>s&&(l=s,s=_,_=l),l=fr(b,_),i=fr(b,s),l&&i&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),_>s?(x.addRange(w),x.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Wt=!!Kr,Vr=Kr=null,e.current=n,Ws=r;do{try{for(b=e;null!==Ws;){var S=Ws.flags;if(36&S&&vs(b,Ws.alternate,Ws),128&S){w=void 0;var C=Ws.ref;if(null!==C){var E=Ws.stateNode;Ws.tag,w=E,"function"==typeof C?C(w):C.current=w}}Ws=Ws.nextEffect}}catch(e){if(null===Ws)throw Error(a(330));Bl(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);Ws=null,Lo(),Is=o}else e.current=n;if(Js)Js=!1,el=e,tl=t;else for(Ws=r;null!==Ws;)t=Ws.nextEffect,Ws.nextEffect=null,8&Ws.flags&&((S=Ws).sibling=null,S.stateNode=null),Ws=t;if(0===(r=e.pendingLanes)&&(Qs=null),1===r?e===al?il++:(il=0,al=e):il=0,n=n.stateNode,Eo&&"function"==typeof Eo.onCommitFiberRoot)try{Eo.onCommitFiberRoot(Co,n,void 0,64==(64&n.current.flags))}catch(e){}if(gl(e,$o()),Ys)throw Ys=!1,e=Xs,Xs=null,e;return 0!=(8&Is)||Wo(),null}function Rl(){for(;null!==Ws;){var e=Ws.alternate;dl||null===ul||(0!=(8&Ws.flags)?et(Ws,ul)&&(dl=!0):13===Ws.tag&&Ps(e,Ws)&&et(Ws,ul)&&(dl=!0));var t=Ws.flags;0!=(256&t)&&gs(e,Ws),0==(512&t)||Js||(Js=!0,Go(97,(function(){return Fl(),null}))),Ws=Ws.nextEffect}}function Fl(){if(90!==tl){var e=97<tl?97:tl;return tl=90,qo(e,jl)}return!1}function Nl(e,t){nl.push(t,e),Js||(Js=!0,Go(97,(function(){return Fl(),null})))}function Ol(e,t){rl.push(t,e),Js||(Js=!0,Go(97,(function(){return Fl(),null})))}function jl(){if(null===el)return!1;var e=el;if(el=null,0!=(48&Is))throw Error(a(331));var t=Is;Is|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],s=o.destroy;if(o.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===i)throw Error(a(330));Bl(i,e)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var l=o.create;o.destroy=l()}catch(e){if(null===i)throw Error(a(330));Bl(i,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Is=t,Wo(),!0}function Ll(e,t,n){pi(e,t=ps(0,t=cs(n,t),1)),t=pl(),null!==(e=ml(e,1))&&(Ht(e,1,t),gl(e,t))}function Bl(e,t){if(3===e.tag)Ll(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ll(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r))){var o=hs(n,e=cs(t,e),1);if(pi(n,o),o=pl(),null!==(n=ml(n,1)))Ht(n,1,o),gl(n,o);else if("function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Kl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=pl(),e.pingedLanes|=e.suspendedLanes&n,Ms===e&&(Fs&n)===n&&(4===js||3===js&&(62914560&Fs)===Fs&&500>$o()-Us?Cl(e,0):Hs|=n),gl(e,t)}function Vl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Uo()?1:2:(0===ll&&(ll=Bs),0===(t=Kt(62914560&~ll))&&(t=4194304))),n=pl(),null!==(e=ml(e,t))&&(Ht(e,t,n),gl(e,n))}function Hl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function $l(e,t,n,r){return new Hl(e,t,n,r)}function Ul(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Zl(e,t){var n=e.alternate;return null===n?((n=$l(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ql(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Ul(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case C:return Gl(n.children,o,i,t);case N:s=8,o|=16;break;case E:s=8,o|=1;break;case k:return(e=$l(12,n,t,8|o)).elementType=k,e.type=k,e.lanes=i,e;case A:return(e=$l(13,n,t,o)).type=A,e.elementType=A,e.lanes=i,e;case T:return(e=$l(19,n,t,o)).elementType=T,e.lanes=i,e;case O:return Wl(n,o,i,t);case j:return(e=$l(24,n,t,o)).elementType=j,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case z:s=10;break e;case P:s=9;break e;case D:s=11;break e;case I:s=14;break e;case M:s=16,r=null;break e;case R:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=$l(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Gl(e,t,n,r){return(e=$l(7,e,r,t)).lanes=n,e}function Wl(e,t,n,r){return(e=$l(23,e,r,t)).elementType=O,e.lanes=n,e}function Yl(e,t,n){return(e=$l(6,e,null,t)).lanes=n,e}function Xl(e,t,n){return(t=$l(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ql(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function Jl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function ec(e,t,n,r){var o=t.current,i=pl(),s=hl(o);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(yo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(yo(c)){n=xo(n,c,l);break e}}n=l}else n=ho;return null===t.context?t.context=n:t.pendingContext=n,(t=di(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),pi(o,t),fl(o,s,i),s}function tc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rc(e,t){nc(e,t),(e=e.alternate)&&nc(e,t)}function oc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Ql(e,t,null!=n&&!0===n.hydrate),t=$l(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ci(t),e[eo]=n.current,Ir(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ic(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ac(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=tc(a);s.call(e)}}ec(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new oc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=tc(a);l.call(e)}}xl((function(){ec(t,a,e,o)}))}return tc(a)}function sc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ic(t))throw Error(a(200));return Jl(e,t,null,n)}Gs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||mo.current)Oa=!0;else{if(0==(n&r)){switch(Oa=!1,t.tag){case 3:qa(t),Gi();break;case 5:Ni(t);break;case 1:yo(t.type)&&_o(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;po(Jo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qa(e,t,n):(po(ji,1&ji.current),null!==(t=is(e,t,n))?t.sibling:null);po(ji,1&ji.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return os(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),po(ji,ji.current),r)break;return null;case 23:case 24:return t.lanes=0,Va(e,t,n)}return is(e,t,n)}Oa=0!=(16384&e.flags)}else Oa=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=vo(t,fo.current),ai(t,n),o=sa(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yo(r)){var i=!0;_o(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ci(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&vi(t,r,s,e),o.updater=yi,t.stateNode=o,o._reactInternals=t,_i(t,r,e,n),t=Za(null,t,r,!0,i,n)}else t.tag=0,ja(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Ul(e)?1:0;if(null!=e){if((e=e.$$typeof)===D)return 11;if(e===I)return 14}return 2}(o),e=Qo(o,e),i){case 0:t=$a(null,t,o,e,n);break e;case 1:t=Ua(null,t,o,e,n);break e;case 11:t=La(null,t,o,e,n);break e;case 14:t=Ba(null,t,o,Qo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,$a(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 3:if(qa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ui(e,t),fi(t,r,null,n),(r=t.memoizedState.element)===o)Gi(),t=is(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Ki=Gr(t.stateNode.containerInfo.firstChild),Bi=t,i=Vi=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Wi.push(i);for(n=Pi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else ja(e,t,r,n),Gi();t=t.child}return t;case 5:return Ni(t),null===e&&Ui(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,$r(r,o)?s=null:null!==i&&$r(r,i)&&(t.flags|=16),Ha(e,t),ja(e,t,s,n),t.child;case 6:return null===e&&Ui(t),null;case 13:return Qa(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=zi(t,null,r,n):ja(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,La(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 7:return ja(e,t,t.pendingProps,n),t.child;case 8:case 12:return ja(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var l=t.type._context;if(po(Jo,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=ur(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!mo.current){t=is(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===l.tag&&((u=di(-1,n&-n)).tag=2,pi(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ii(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}ja(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ai(t,n),r=r(o=si(o,i.unstable_observedBits)),t.flags|=1,ja(e,t,r,n),t.child;case 14:return i=Qo(o=t.type,t.pendingProps),Ba(e,t,o,i=Qo(o.type,i),r,n);case 15:return Ka(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,yo(r)?(e=!0,_o(t)):e=!1,ai(t,n),wi(t,r,o),_i(t,r,o,n),Za(null,t,r,!0,e,n);case 19:return os(e,t,n);case 23:case 24:return Va(e,t,n)}throw Error(a(156,t.tag))},oc.prototype.render=function(e){ec(e,this._internalRoot,null,null)},oc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ec(null,e,null,(function(){t[eo]=null}))},tt=function(e){13===e.tag&&(fl(e,4,pl()),rc(e,4))},nt=function(e){13===e.tag&&(fl(e,67108864,pl()),rc(e,67108864))},rt=function(e){if(13===e.tag){var t=pl(),n=hl(e);fl(e,n,t),rc(e,n)}},ot=function(e,t){return t()},ze=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=io(r);if(!o)throw Error(a(90));X(r),ne(r,o)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Me=wl,Re=function(e,t,n,r,o){var i=Is;Is|=4;try{return qo(98,e.bind(null,t,n,r,o))}finally{0===(Is=i)&&(qs(),Wo())}},Fe=function(){0==(49&Is)&&(function(){if(null!==ol){var e=ol;ol=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,gl(e,$o())}))}Wo()}(),Fl())},Ne=function(e,t){var n=Is;Is|=2;try{return e(t)}finally{0===(Is=n)&&(qs(),Wo())}};var lc={Events:[ro,oo,io,Te,Ie,Fl,{current:!1}]},cc={findFiberByHostInstance:no,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uc={bundleType:cc.bundleType,version:cc.version,rendererPackageName:cc.rendererPackageName,rendererConfig:cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:cc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(void 0!=={isDisabled:!0}){var dc={isDisabled:!0};if(!dc.isDisabled&&dc.supportsFiber)try{Co=dc.inject(uc),Eo=dc}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lc,t.createPortal=sc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Is;if(0!=(48&n))return e(t);Is|=1;try{if(e)return qo(99,e.bind(null,t))}finally{Is=n,Wo()}},t.hydrate=function(e,t,n){if(!ic(t))throw Error(a(200));return ac(null,e,t,!0,n)},t.render=function(e,t,n){if(!ic(t))throw Error(a(200));return ac(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ic(e))throw Error(a(40));return!!e._reactRootContainer&&(xl((function(){ac(null,null,e,!1,(function(){e._reactRootContainer=null,e[eo]=null}))})),!0)},t.unstable_batchedUpdates=wl,t.unstable_createPortal=function(e,t){return sc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ic(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ac(e,t,n,!1,r)},t.version="17.0.2"},73935:(e,t,n)=>{"use strict";!function e(){if(void 0!=={isDisabled:!0}&&"function"==typeof{isDisabled:!0}.checkDCE)try{({isDisabled:!0}).checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(64448)},54203:(e,t)=>{"use strict";var n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,u=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(d,0))},r=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var f=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,v=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,x=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();b=e+y;try{g(!0,e)?x.postMessage(null):(m=!1,g=null)}catch(e){throw x.postMessage(null),e}}else m=!1},n=function(e){g=e,m||(m=!0,x.postMessage(null))},r=function(e,n){v=p((function(){e(t.unstable_now())}),n)},o=function(){h(v),v=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<E(o,t)))break e;e[r]=t,e[n]=o,n=r}}function S(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>E(a,n))void 0!==l&&0>E(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>E(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],z=[],P=1,D=null,A=3,T=!1,I=!1,M=!1;function R(e){for(var t=S(z);null!==t;){if(null===t.callback)C(z);else{if(!(t.startTime<=e))break;C(z),t.sortIndex=t.expirationTime,_(k,t)}t=S(z)}}function F(e){if(M=!1,R(e),!I)if(null!==S(k))I=!0,n(N);else{var t=S(z);null!==t&&r(F,t.startTime-e)}}function N(e,n){I=!1,M&&(M=!1,o()),T=!0;var i=A;try{for(R(n),D=S(k);null!==D&&(!(D.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=D.callback;if("function"==typeof a){D.callback=null,A=D.priorityLevel;var s=a(D.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?D.callback=s:D===S(k)&&C(k),R(n)}else C(k);D=S(k)}if(null!==D)var l=!0;else{var c=S(z);null!==c&&r(F,c.startTime-n),l=!1}return l}finally{D=null,A=i,T=!1}}var O=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||T||(I=!0,n(N))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return S(k)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=O,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:P++,callback:i,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,_(z,e),null===S(k)&&e===S(z)&&(M?o():M=!0,r(F,a-s))):(e.sortIndex=l,_(k,e),I||T||(I=!0,n(N))),e},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},54142:(e,t,n)=>{"use strict";e.exports=n(54203)},75668:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=p(n(45697)),i=p(n(73935)),a=p(n(47980)),s=n(81825),l=n(2849),c=n(9280),u=p(n(80783)),d=p(n(55904));function p(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function f(e){return f="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},f(e)}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(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,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function C(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=z(e);if(t){var o=z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?k(e):t}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}function P(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=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&&S(e,t)}(n,e);var t=C(n);function n(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),P(k(r=t.call(this,e)),"onDragStart",(function(e,t){if((0,d.default)("Draggable: onDragStart: %j",t),!1===r.props.onStart(e,(0,l.createDraggableData)(k(r),t)))return!1;r.setState({dragging:!0,dragged:!0})})),P(k(r),"onDrag",(function(e,t){if(!r.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",t);var n=(0,l.createDraggableData)(k(r),t),o={x:n.x,y:n.y};if(r.props.bounds){var i=o.x,a=o.y;o.x+=r.state.slackX,o.y+=r.state.slackY;var s=v((0,l.getBoundPosition)(k(r),o.x,o.y),2),c=s[0],u=s[1];o.x=c,o.y=u,o.slackX=r.state.slackX+(i-o.x),o.slackY=r.state.slackY+(a-o.y),n.x=o.x,n.y=o.y,n.deltaX=o.x-r.state.x,n.deltaY=o.y-r.state.y}if(!1===r.props.onDrag(e,n))return!1;r.setState(o)})),P(k(r),"onDragStop",(function(e,t){if(!r.state.dragging)return!1;if(!1===r.props.onStop(e,(0,l.createDraggableData)(k(r),t)))return!1;(0,d.default)("Draggable: onDragStop: %j",t);var n={dragging:!1,slackX:0,slackY:0};if(Boolean(r.props.position)){var o=r.props.position,i=o.x,a=o.y;n.x=i,n.y=a}r.setState(n)})),r.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:w({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),r}return _(n,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:w({},n)})}}]),_(n,[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),o=t.defaultPosition,i=t.defaultClassName,c=t.defaultClassNameDragging,d=t.defaultClassNameDragged,p=t.position,h=t.positionOffset,f=(t.scale,g(t,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"])),v={},y=null,b=!Boolean(p)||this.state.dragging,x=p||o,_={x:(0,l.canDragX)(this)&&b?this.state.x:x.x,y:(0,l.canDragY)(this)&&b?this.state.y:x.y};this.state.isElementSVG?y=(0,s.createSVGTransform)(_,h):v=(0,s.createCSSTransform)(_,h);var S=(0,a.default)(n.props.className||"",i,(P(e={},c,this.state.dragging),P(e,d,this.state.dragged),e));return r.createElement(u.default,m({},f,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:S,style:w(w({},n.props.style),v),transform:y}))}}]),n}(r.Component);t.default=D,P(D,"displayName","Draggable"),P(D,"propTypes",w(w({},u.default.propTypes),{},{axis:o.default.oneOf(["both","x","y","none"]),bounds:o.default.oneOfType([o.default.shape({left:o.default.number,right:o.default.number,top:o.default.number,bottom:o.default.number}),o.default.string,o.default.oneOf([!1])]),defaultClassName:o.default.string,defaultClassNameDragging:o.default.string,defaultClassNameDragged:o.default.string,defaultPosition:o.default.shape({x:o.default.number,y:o.default.number}),positionOffset:o.default.shape({x:o.default.oneOfType([o.default.number,o.default.string]),y:o.default.oneOfType([o.default.number,o.default.string])}),position:o.default.shape({x:o.default.number,y:o.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),P(D,"defaultProps",w(w({},u.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}))},80783:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=u(n(45697)),i=u(n(73935)),a=n(81825),s=n(2849),l=n(9280),c=u(n(55904));function u(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function p(e){return p="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},p(e)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||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)||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){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x(e);if(t){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S={start:"touchstart",move:"touchmove",stop:"touchend"},C={start:"mousedown",move:"mousemove",stop:"mouseup"},E=C,k=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&&v(e,t)}(u,e);var t,n,o,l=y(u);function u(){var e;m(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(w(e=l.call.apply(l,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),_(w(e),"mounted",!1),_(w(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,a.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,a.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var o=(0,a.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var i=(0,s.getControlPosition)(t,o,w(e));if(null!=i){var l=i.x,u=i.y,d=(0,s.createCoreData)(w(e),l,u);(0,c.default)("DraggableCore: handleDragStart: %j",d),(0,c.default)("calling",e.props.onStart),!1!==e.props.onStart(t,d)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(r),e.setState({dragging:!0,lastX:l,lastY:u}),(0,a.addEvent)(r,E.move,e.handleDrag),(0,a.addEvent)(r,E.stop,e.handleDragStop))}}})),_(w(e),"handleDrag",(function(t){var n=(0,s.getControlPosition)(t,e.state.touchIdentifier,w(e));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(e.props.grid)){var i=r-e.state.lastX,a=o-e.state.lastY,l=h((0,s.snapToGrid)(e.props.grid,i,a),2);if(i=l[0],a=l[1],!i&&!a)return;r=e.state.lastX+i,o=e.state.lastY+a}var u=(0,s.createCoreData)(w(e),r,o);if((0,c.default)("DraggableCore: handleDrag: %j",u),!1!==e.props.onDrag(t,u)&&!1!==e.mounted)e.setState({lastX:r,lastY:o});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var d=document.createEvent("MouseEvents");d.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(d)}}})),_(w(e),"handleDragStop",(function(t){if(e.state.dragging){var n=(0,s.getControlPosition)(t,e.state.touchIdentifier,w(e));if(null!=n){var r=n.x,o=n.y,i=(0,s.createCoreData)(w(e),r,o);if(!1===e.props.onStop(t,i)||!1===e.mounted)return!1;var l=e.findDOMNode();l&&e.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(l.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",i),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),l&&((0,c.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(l.ownerDocument,E.move,e.handleDrag),(0,a.removeEvent)(l.ownerDocument,E.stop,e.handleDragStop))}}})),_(w(e),"onMouseDown",(function(t){return E=C,e.handleDragStart(t)})),_(w(e),"onMouseUp",(function(t){return E=C,e.handleDragStop(t)})),_(w(e),"onTouchStart",(function(t){return E=S,e.handleDragStart(t)})),_(w(e),"onTouchEnd",(function(t){return E=S,e.handleDragStop(t)})),e}return t=u,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,a.addEvent)(e,S.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,a.removeEvent)(t,C.move,this.handleDrag),(0,a.removeEvent)(t,S.move,this.handleDrag),(0,a.removeEvent)(t,C.stop,this.handleDragStop),(0,a.removeEvent)(t,S.stop,this.handleDragStop),(0,a.removeEvent)(e,S.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this)}},{key:"render",value:function(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&g(t.prototype,n),o&&g(t,o),u}(r.Component);t.default=k,_(k,"displayName","DraggableCore"),_(k,"propTypes",{allowAnyClick:o.default.bool,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),_(k,"defaultProps",{allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},61193:(e,t,n)=>{"use strict";var r=n(75668),o=r.default,i=r.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=i},81825:(e,t,n)=>{"use strict";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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchesSelector=d,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(d(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.addEvent=function(e,t,n,r){if(!e)return;var o=l({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.removeEvent=function(e,t,n,r){if(!e)return;var o=l({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderTopWidth),t+=(0,o.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderLeftWidth),t+=(0,o.int)(n.borderRightWidth)},t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingTop),t-=(0,o.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingLeft),t-=(0,o.int)(n.paddingRight)},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},t.createCSSTransform=function(e,t){var n=p(e,t,"px");return c({},(0,i.browserPrefixToKey)("transform",i.default),n)},t.createSVGTransform=function(e,t){return p(e,t,"")},t.getTranslation=p,t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&h(e.body,"react-draggable-transparent-selection")},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&f(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}},t.addClassName=h,t.removeClassName=f;var o=n(9280),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(38650));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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}var u="";function d(e,t){return u||(u=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,o.isFunction)(e[t])}))),!!(0,o.isFunction)(e[u])&&e[u](t)}function p(e,t,n){var r=e.x,o=e.y,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){var a="".concat("string"==typeof t.x?t.x:t.x+n),s="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(a,", ").concat(s,")")+i}return i}function h(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function f(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},38650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPrefix=r,t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0;var n=["Moz","Webkit","O","ms"];function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var r=0;r<n.length;r++)if(o(e,n[r])in t)return n[r];return""}function o(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}var i=r();t.default=i},55904:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){0}},2849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var a=e.props.bounds;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);var s=i(e);if("string"==typeof a){var l,c=s.ownerDocument,u=c.defaultView;if(!((l="parent"===a?s.parentNode:c.querySelector(a))instanceof u.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var d=u.getComputedStyle(s),p=u.getComputedStyle(l);a={left:-s.offsetLeft+(0,r.int)(p.paddingLeft)+(0,r.int)(d.marginLeft),top:-s.offsetTop+(0,r.int)(p.paddingTop)+(0,r.int)(d.marginTop),right:(0,o.innerWidth)(l)-(0,o.outerWidth)(s)-s.offsetLeft+(0,r.int)(p.paddingRight)-(0,r.int)(d.marginRight),bottom:(0,o.innerHeight)(l)-(0,o.outerHeight)(s)-s.offsetTop+(0,r.int)(p.paddingBottom)-(0,r.int)(d.marginBottom)}}(0,r.isNum)(a.right)&&(t=Math.min(t,a.right));(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom));(0,r.isNum)(a.left)&&(t=Math.max(t,a.left));(0,r.isNum)(a.top)&&(n=Math.max(n,a.top));return[t,n]},t.snapToGrid=function(e,t,n){var r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]},t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.getControlPosition=function(e,t,n){var r="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;var a=i(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,s,n.props.scale)},t.createCoreData=function(e,t,n){var o=e.state,a=!(0,r.isNum)(o.lastX),s=i(e);return a?{node:s,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:s,deltaX:t-o.lastX,deltaY:n-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:n}},t.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}};var r=n(9280),o=n(81825);function i(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},9280:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findInArray=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)},t.int=function(e){return parseInt(e,10)},t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}},47980:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},69921:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,h=60116,f=60121,m=60122,g=60117,v=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),p=b("react.memo"),h=b("react.lazy"),f=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e.type){case o:case a:case i:case u:case d:return e;default:switch(e&&e.$$typeof){case l:case c:case h:case p:case s:return e;default:return t}}case r:return t}}}},59864:(e,t,n)=>{"use strict";n(69921)},67665:(e,t,n)=>{"use strict";n.d(t,{P:()=>h,m:()=>f});var r=n(67294),o=n(73935),i=(0,r.createContext)(),a=i.Provider,s=i.Consumer,l=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=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)},p=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},h=function(e){function t(){var e,n,o;l(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),o.root=r.createRef(),o.host=r.createRef(),o.state={root:o.root.current,host:o.host.current},p(o,n)}return d(t,e),c(t,[{key:"componentDidMount",value:function(){this.setState({root:this.root.current,host:this.host.current})}},{key:"render",value:function(){return r.createElement(a,{value:this.state},r.createElement("div",{ref:this.root,style:{opacity:.9999999}},this.props.children),r.createElement("div",{ref:this.host,style:{opacity:.9999999}}))}}]),t}(r.Component),f=function(e){return r.createElement(s,null,(function(t){var n=t.host,o=t.root;return n&&o&&r.createElement(m,u({},e,{host:n,root:o}))}))},m=function(e){function t(){var e,n,r;l(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={container:null},p(r,n)}return d(t,e),c(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.host,n=e.index,r=e.onMount,o=e.root,i=t.ownerDocument.createElement("div"),a="number"==typeof n&&t.children[n];a?t.insertBefore(i,a):t.appendChild(i),this.setState({container:i},(function(){o&&r&&r(o)}))}},{key:"componentWillUnmount",value:function(){var e=this.state.container,t=this.props,n=t.root,r=t.host,o=t.onUnmount;n&&o&&o(n),r&&e&&r.removeChild(e)}},{key:"render",value:function(){var e=this.state.container;return e&&(0,o.createPortal)(this.props.children,e)}}]),t}(r.Component)},67366:(e,t,n)=>{"use strict";n.d(t,{zt:()=>H,dC:()=>i.unstable_batchedUpdates,$j:()=>V,wU:()=>N,I0:()=>q,v9:()=>b});var r=n(61688),o=n(52798),i=n(73935);let a=function(e){e()};const s=()=>a;var l=n(67294);const c=Symbol.for("react-redux-context"),u="undefined"!=typeof globalThis?globalThis:{};function d(){var e;if(!l.createContext)return{};const t=null!=(e=u[c])?e:u[c]=new Map;let n=t.get(l.createContext);return n||(n=l.createContext(null),t.set(l.createContext,n)),n}const p=d();function h(e=p){return function(){return(0,l.useContext)(e)}}const f=h(),m=()=>{throw new Error("uSES not initialized!")};let g=m;const v=(e,t)=>e===t;function y(e=p){const t=e===p?f:h(e);return function(e,n={}){const{equalityFn:r=v,stabilityCheck:o,noopCheck:i}="function"==typeof n?{equalityFn:n}:n;const{store:a,subscription:s,getServerState:c,stabilityCheck:u,noopCheck:d}=t(),p=((0,l.useRef)(!0),(0,l.useCallback)({[e.name]:t=>e(t)}[e.name],[e,u,o])),h=g(s.addNestedSub,a.getState,c||a.getState,p,r);return(0,l.useDebugValue)(h),h}}const b=y();function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}function x(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var _=n(8679),S=n.n(_),C=n(72973);const E=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function k(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,l,c,u,d,p=!1;function h(p,h){const f=!i(h,l),m=!o(p,s,h,l);return s=p,l=h,f&&m?(c=e(s,l),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):f?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):m?function(){const t=e(s,l),r=!a(t,c);return c=t,r&&(d=n(c,u,l)),d}():d}return function(o,i){return p?h(o,i):(s=o,l=i,c=e(s,l),u=t(r,l),d=n(c,u,l),p=!0,d)}}function z(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function P(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function D(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=P(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=P(o),o=r(t,n)),o},r}}function A(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function T(e,t,n){return w({},n,e,t)}const I={notify(){},get:()=>[]};function M(e,t){let n,r=I,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){const e=s();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=I)}const u={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,l())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}const R=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?l.useLayoutEffect:l.useEffect;function F(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function N(e,t){if(F(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!F(e[n[r]],t[n[r]]))return!1;return!0}const O=["reactReduxForwardedRef"];let j=m;const L=[null,null];function B(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function K(e,t){return e===t}const V=function(e,t,n,{pure:r,areStatesEqual:o=K,areOwnPropsEqual:i=N,areStatePropsEqual:a=N,areMergedPropsEqual:s=N,forwardRef:c=!1,context:u=p}={}){const d=u,h=function(e){return e?"function"==typeof e?D(e):A(e,"mapStateToProps"):z((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?z((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?D(e):A(e,"mapDispatchToProps"):z((e=>({dispatch:e})))}(t),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):A(e,"mergeProps"):()=>T}(n),g=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:g,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:h,initMapDispatchToProps:f,initMergeProps:m,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){const[n,o,i]=l.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=x(t,O);return[t.context,e,n]}),[t]),a=l.useMemo((()=>n&&n.Consumer&&(0,C.isContextConsumer)(l.createElement(n.Consumer,null))?n:d),[n,d]),s=l.useContext(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store);const p=c?t.store:s.store,h=u?s.getServerState:p.getState,f=l.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,i=x(t,E);return k(n(e,i),r(e,i),o(e,i),e,i)}(p.dispatch,r)),[p]),[m,v]=l.useMemo((()=>{if(!g)return L;const e=M(p,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,c,s]),y=l.useMemo((()=>c?s:w({},s,{subscription:m})),[c,s,m]),b=l.useRef(),_=l.useRef(i),S=l.useRef(),z=l.useRef(!1),P=(l.useRef(!1),l.useRef(!1)),D=l.useRef();R((()=>(P.current=!0,()=>{P.current=!1})),[]);const A=l.useMemo((()=>()=>S.current&&i===_.current?S.current:f(p.getState(),i)),[p,i]),T=l.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,s,l,c,u){if(!e)return()=>{};let d=!1,p=null;const h=()=>{if(d||!s.current)return;const e=t.getState();let n,h;try{n=r(e,o.current)}catch(e){h=e,p=e}h||(p=null),n===i.current?a.current||c():(i.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(g,p,m,f,_,b,z,P,S,v,e):()=>{}),[m]);var I,F,N;let K;I=B,F=[_,b,z,i,S,v],R((()=>I(...F)),N);try{K=j(T,A,h?()=>f(h(),i):A)}catch(e){throw D.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${D.current.stack}\n\n`),e}R((()=>{D.current=void 0,S.current=void 0,b.current=K}));const V=l.useMemo((()=>l.createElement(e,w({},K,{ref:o}))),[o,e,K]);return l.useMemo((()=>g?l.createElement(a.Provider,{value:y},V):V),[a,V,y])}const p=l.memo(u);if(p.WrappedComponent=e,p.displayName=u.displayName=n,c){const t=l.forwardRef((function(e,t){return l.createElement(p,w({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,S()(t,e)}return S()(p,e)}};const H=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:i="once"}){const a=l.useMemo((()=>{const t=M(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:i}}),[e,r,o,i]),s=l.useMemo((()=>e.getState()),[e]);R((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const c=t||p;return l.createElement(c.Provider,{value:a},n)};function $(e=p){const t=e===p?f:h(e);return function(){const{store:e}=t();return e}}const U=$();function Z(e=p){const t=e===p?U:$(e);return function(){return t().dispatch}}const q=Z();var G,W;G=o.useSyncExternalStoreWithSelector,g=G,(e=>{j=e})(r.useSyncExternalStore),W=i.unstable_batchedUpdates,a=W},88359:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case f:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return v(e)===c}},72973:(e,t,n)=>{"use strict";e.exports=n(88359)},26353:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(54337),o=n(73949),i=n(6531);n(45697);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(67294),l=n(73935);const c=!1;var u=n(220),d="unmounted",p="exited",h="entering",f="entered",m="exiting",g=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=p,r.appearStatus=h):o=f:o=t.unmountOnExit||t.mountOnEnter?d:p,r.state={status:o},r.nextCallback=null,r}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===d?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==f&&(t=h):n!==h&&n!==f||(t=m)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===h?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===p&&this.setState({status:d})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[l.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:f},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:h},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:f},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:m},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===d)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,o.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(u.Z.Provider,{value:null},"function"==typeof n?n(e,r):s.cloneElement(s.Children.only(n),r))},t}(s.Component);function v(){}g.contextType=u.Z,g.propTypes={},g.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},g.UNMOUNTED=d,g.EXITED=p,g.ENTERING=h,g.ENTERED=f,g.EXITING=m;const y=g;var b=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,i.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&b(e,r),o&&b(e,o),i&&b(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,o.Z)(e,["classNames"]));return s.createElement(y,(0,r.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);w.defaultProps={classNames:""},w.propTypes={};const x=w},84013:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(73949),o=n(54337);var i=n(6531),a=(n(45697),n(67294)),s=n(220);function l(e,t){var n=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,a.isValidElement)(e)?t(e):e}(e)})),n}function c(e,t,n){return null!=n[t]?n[t]:e.props[t]}function u(e,t,n){var r=l(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var s=o[i];if((0,a.isValidElement)(s)){var l=i in t,u=i in r,d=t[i],p=(0,a.isValidElement)(d)&&!d.props.in;!u||l&&!p?u||!l||p?u&&l&&(0,a.isValidElement)(d)&&(o[i]=(0,a.cloneElement)(s,{onExited:n.bind(null,s),in:d.props.in,exit:c(s,"exit",e),enter:c(s,"enter",e)})):o[i]=(0,a.cloneElement)(s,{in:!1}):o[i]=(0,a.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:c(s,"exit",e),enter:c(s,"enter",e)})}})),o}var d=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},p=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,i.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,l(n.children,(function(e){return(0,a.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:c(e,"appear",n),enter:c(e,"enter",n),exit:c(e,"exit",n)})}))):u(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=l(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,o.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,r.Z)(e,["component","childFactory"]),i=this.state.contextValue,l=d(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?a.createElement(s.Z.Provider,{value:i},l):a.createElement(s.Z.Provider,{value:i},a.createElement(t,o,l))},t}(a.Component);p.propTypes={},p.defaultProps={component:"div",childFactory:function(e){return e}};const h=p},220:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(67294).createContext(null)},54337:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},6531:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>o})},73949:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},75251:(e,t,n)=>{"use strict";n(27418);var r=n(67294),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},72408:(e,t,n)=>{"use strict";var r=n(27418),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var b=y.prototype=new v;b.constructor=y,r(b,g.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!_.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:w.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var E=/\/+/g;function k(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function z(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+k(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(E,"$&/")+"/"),z(a,t,n,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+k(s=e[c],c);l+=z(s,t,n,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=z(s=s.value,t,n,u=r+k(s,c++),a);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function P(e,t,n){if(null==e)return e;var r=[],o=0;return z(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function D(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var A={current:null};function T(){var e=A.current;if(null===e)throw Error(h(321));return e}var I={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error(h(143));return e}},t.Component=g,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)x.call(t,u)&&!_.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return T().useCallback(e,t)},t.useContext=function(e,t){return T().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return T().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return T().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return T().useLayoutEffect(e,t)},t.useMemo=function(e,t){return T().useMemo(e,t)},t.useReducer=function(e,t,n){return T().useReducer(e,t,n)},t.useRef=function(e){return T().useRef(e)},t.useState=function(e){return T().useState(e)},t.version="17.0.2"},67294:(e,t,n)=>{"use strict";e.exports=n(72408)},85893:(e,t,n)=>{"use strict";e.exports=n(75251)},76438:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{DE:()=>d,LG:()=>f,MT:()=>l,PO:()=>s,UY:()=>c,md:()=>h,qC:()=>p});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function s(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(l)(e,t)}let i=e,c=t,u=new Map,d=u,p=0,h=!1;function f(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function m(){if(h)throw new Error(r(3));return c}function g(e){if("function"!=typeof e)throw new Error(r(4));if(h)throw new Error(r(5));let t=!0;f();const n=p++;return d.set(n,e),function(){if(t){if(h)throw new Error(r(6));t=!1,f(),d.delete(n),u=null}}}function v(e){if(!s(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(h)throw new Error(r(9));try{h=!0,c=i(c,e)}finally{h=!1}return(u=d).forEach((e=>{e()})),e}function y(e){if("function"!=typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})}function b(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}n();return{unsubscribe:e(n)}},[o](){return this}}}v({type:a.INIT});const w={dispatch:v,subscribe:g,getState:m,replaceReducer:y,[o]:b};return w}function c(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const s={};for(let i=0;i<o.length;i++){const l=o[i],c=n[l],u=e[l],d=c(u,t);if(void 0===d){t&&t.type;throw new Error(r(14))}s[l]=d,a=a||d!==u}return a=a||o.length!==Object.keys(e).length,a?s:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=u(o,t))}return n}function p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function h(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const s={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map((e=>e(s)));return a=p(...l)(i.dispatch),{...i,dispatch:a}}}function f(e){return s(e)&&"type"in e&&"string"==typeof e.type}},60053:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,h=3,f=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,M(_);else{var t=r(u);null!==t&&R(x,t.startTime-e)}}function _(e,n){m=!1,g&&(g=!1,y(k),k=-1),f=!0;var i=h;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!D());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&o(c),w(n)}else o(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&R(x,d.startTime-n),l=!1}return l}finally{p=null,h=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,C=!1,E=null,k=-1,z=5,P=-1;function D(){return!(t.unstable_now()-P<z)}function A(){if(null!==E){var e=t.unstable_now();P=e;var n=!0;try{n=E(!0,e)}finally{n?S():(C=!1,E=null)}}else C=!1}if("function"==typeof b)S=function(){b(A)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,I=T.port2;T.port1.onmessage=A,S=function(){I.postMessage(null)}}else S=function(){v(A,0)};function M(e){E=e,C||(C=!0,S())}function R(e,n){k=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,M(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(y(k),k=-1):g=!0,R(x,i-a))):(e.sortIndex=s,n(c,e),m||f||(m=!0,M(_))),e},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},63840:(e,t,n)=>{"use strict";n(60053)},4345:(e,t,n)=>{"use strict";n.d(t,{CX:()=>Ct,F3:()=>we,mH:()=>Mt,BU:()=>Lt});var r=n(6907),o=n.n(r),i=n(23279),a=n.n(i),s=n(23493),l=n.n(s),c=n(67294);function u(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function d(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function p(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return d(n.overflowY,t)||d(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function h(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var f=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!u(e))throw new TypeError("Invalid target");for(var c,d,f=document.scrollingElement||document.documentElement,m=[],g=e;u(g)&&l(g);){if((g=null==(d=(c=g).parentElement)?c.getRootNode().host||null:d)===f){m.push(g);break}null!=g&&g===document.body&&p(g)&&!p(document.documentElement)||null!=g&&p(g,s)&&m.push(g)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,y=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),_=x.height,S=x.width,C=x.top,E=x.right,k=x.bottom,z=x.left,P="start"===o||"nearest"===o?C:"end"===o?k:C+_/2,D="center"===i?z+S/2:"end"===i?E:z,A=[],T=0;T<m.length;T++){var I=m[T],M=I.getBoundingClientRect(),R=M.height,F=M.width,N=M.top,O=M.right,j=M.bottom,L=M.left;if("if-needed"===r&&C>=0&&z>=0&&k<=y&&E<=v&&C>=N&&k<=j&&z>=L&&E<=O)return A;var B=getComputedStyle(I),K=parseInt(B.borderLeftWidth,10),V=parseInt(B.borderTopWidth,10),H=parseInt(B.borderRightWidth,10),$=parseInt(B.borderBottomWidth,10),U=0,Z=0,q="offsetWidth"in I?I.offsetWidth-I.clientWidth-K-H:0,G="offsetHeight"in I?I.offsetHeight-I.clientHeight-V-$:0,W="offsetWidth"in I?0===I.offsetWidth?0:F/I.offsetWidth:0,Y="offsetHeight"in I?0===I.offsetHeight?0:R/I.offsetHeight:0;if(f===I)U="start"===o?P:"end"===o?P-y:"nearest"===o?h(w,w+y,y,V,$,w+P,w+P+_,_):P-y/2,Z="start"===i?D:"center"===i?D-v/2:"end"===i?D-v:h(b,b+v,v,K,H,b+D,b+D+S,S),U=Math.max(0,U+w),Z=Math.max(0,Z+b);else{U="start"===o?P-N-V:"end"===o?P-j+$+G:"nearest"===o?h(N,j,R,V,$+G,P,P+_,_):P-(N+R/2)+G/2,Z="start"===i?D-L-K:"center"===i?D-(L+F/2)+q/2:"end"===i?D-O+H+q:h(L,O,F,K,H+q,D,D+S,S);var X=I.scrollLeft,Q=I.scrollTop;P+=Q-(U=Math.max(0,Math.min(Q+U/Y,I.scrollHeight-R/Y+G))),D+=X-(Z=Math.max(0,Math.min(X+Z/W,I.scrollWidth-F/W+q)))}A.push({el:I,top:U,left:Z})}return A};function m(e){return e===Object(e)&&0!==Object.keys(e).length}const g=function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(m(t)&&"function"==typeof t.behavior)return t.behavior(n?f(e,t):[]);if(n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:m(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(f(e,r),r.behavior)}};var v=n(77493),y=n(86254),b=n(48321),w=n(73935);function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var S=0;class C{constructor(){x(this,"id",void 0),this.id="".concat(S++)}}var E=new WeakMap,k=new WeakMap,z=new WeakMap,P=new WeakMap,D=new WeakMap,A=new WeakMap,T=new WeakMap,I=new WeakMap,M=new WeakMap,R=new WeakMap,F=new WeakMap,N=new WeakMap,O=new WeakMap,j=new WeakMap,L=new WeakMap,B=new WeakMap,K=new WeakMap,V=new WeakMap,H=new WeakMap,$=new WeakMap,U=new WeakMap,Z=Symbol("placeholder"),q=Symbol("mark-placeholder"),G=globalThis.Text,W=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,Y=e=>X(e)&&1===e.nodeType,X=e=>{var t=W(e);return!!t&&e instanceof t.Node},Q=e=>!!(e&&e.anchorNode&&W(e.anchorNode)),J=e=>X(e)&&3===e.nodeType,ee=(e,t,n)=>{for(var r,{childNodes:o}=e,i=o[t],a=t,s=!1,l=!1;(X(r=i)&&8===r.nodeType||Y(i)&&0===i.childNodes.length||Y(i)&&"false"===i.getAttribute("contenteditable"))&&(!s||!l);)a>=o.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},te=(e,t,n)=>{var[r]=ee(e,t,n);return r},ne=e=>{var t="";if(J(e)&&e.nodeValue)return e.nodeValue;if(Y(e)){for(var n of Array.from(e.childNodes))t+=ne(n);var r=getComputedStyle(e).getPropertyValue("display");"block"!==r&&"list"!==r&&"BR"!==e.tagName||(t+="\n")}return t},re=/data-slate-fragment="(.+?)"/m,oe=e=>{var t=e.getData("text/html"),[,n]=t.match(re)||[];return n},ie=(e,t,n)=>{var{target:r}=t;if(Y(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=we.getWindow(e);if(o.contains(r))return we.hasDOMNode(e,r,{editable:!0});var i=n.find((e=>{var{addedNodes:t,removedNodes:n}=e;for(var o of t)if(o===r||o.contains(r))return!0;for(var i of n)if(i===r||i.contains(r))return!0}));return!(!i||i===t)&&ie(e,i,n)};var ae=parseInt(c.version.split(".")[0],10)>=17,se="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,le="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),ce="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),ue="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),de="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),pe="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),he="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),fe="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),me="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),ge="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),ve="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),ye=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),be=!fe&&!pe&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,we={isComposing:e=>!!N.get(e),getWindow(e){var t=z.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var n=I.get(t);return n||(n=new C,I.set(t,n)),n},findPath(e,t){for(var n=[],r=t;;){var o=k.get(r);if(null==o){if(v.ML.isEditor(r))return n;break}var i=E.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: ".concat(v.o4.stringify(t)))},findDocumentOrShadowRoot(e){var t=we.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},isFocused:e=>!!F.get(e),isReadOnly:e=>!!R.get(e),blur(e){var t=we.toDOMNode(e,e),n=we.findDocumentOrShadowRoot(e);F.set(e,!1),n.activeElement===t&&t.blur()},focus(e){var t=we.toDOMNode(e,e),n=we.findDocumentOrShadowRoot(e);F.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,n=we.findDocumentOrShadowRoot(e).getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&v.YR.deselect(e)},hasDOMNode(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:o=!1}=r,i=we.toDOMNode(e,e);try{n=Y(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&!(n.closest("[data-slate-editor]")!==i||o&&!n.isContentEditable&&("boolean"!=typeof n.isContentEditable||n.closest('[contenteditable="false"]')!==i)&&!n.getAttribute("data-slate-zero-width"))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t,n){e.setFragmentData(t,n)},toDOMNode(e,t){var n=M.get(e),r=v.ML.isEditor(t)?P.get(e):null==n?void 0:n.get(we.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(v.o4.stringify(t)));return r},toDOMPoint(e,t){var n,[r]=v.ML.node(e,t.path),o=we.toDOMNode(e,r);v.ML.void(e,{at:t})&&(t={path:t.path,offset:0});for(var i=Array.from(o.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,s=0;s<i.length;s++){var l=i[s],c=l.childNodes[0];if(null!=c&&null!=c.textContent){var{length:u}=c.textContent,d=l.getAttribute("data-slate-length"),p=a+(null==d?u:parseInt(d,10)),h=i[s+1];if(t.offset===p&&null!=h&&h.hasAttribute("data-slate-mark-placeholder")){var f,m=h.childNodes[0];n=[m instanceof G?m:h,null!==(f=h.textContent)&&void 0!==f&&f.startsWith("\ufeff")?1:0];break}if(t.offset<=p){n=[c,Math.min(u,Math.max(0,t.offset-a))];break}a=p}}if(!n)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(v.o4.stringify(t)));return n},toDOMRange(e,t){var{anchor:n,focus:r}=t,o=v.e6.isBackward(t),i=we.toDOMPoint(e,n),a=v.e6.isCollapsed(t)?i:we.toDOMPoint(e,r),s=we.getWindow(e).document.createRange(),[l,c]=o?a:i,[u,d]=o?i:a,p=!!(Y(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(Y(u)?u:u.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,p?1:c),s.setEnd(u,h?1:d),s},toSlateNode(e,t){var n=Y(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?A.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:o}=t;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,a=we.toSlateNode(e,t.target),s=we.findPath(e,a);if(v.W_.isElement(a)&&v.ML.isVoid(e,a)){var l=o.getBoundingClientRect(),c=e.isInline(a)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,u=v.ML.point(e,s,{edge:c?"start":"end"}),d=c?v.ML.before(e,u):v.ML.after(e,u);if(d)return v.ML.range(e,d)}var{document:p}=we.getWindow(e);if(p.caretRangeFromPoint)i=p.caretRangeFromPoint(n,r);else{var h=p.caretPositionFromPoint(n,r);h&&((i=p.createRange()).setStart(h.offsetNode,h.offset),i.setEnd(h.offsetNode,h.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return we.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlatePoint(e,t,n){var{exactMatch:r,suppressThrow:o}=n,[i,a]=r?t:(e=>{var[t,n]=e;if(Y(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=ee(t,o,r?"backward":"forward"),r=o<n;Y(t)&&t.childNodes.length;){var i=r?t.childNodes.length-1:0;t=te(t,i,r?"backward":"forward")}n=r&&null!=t.textContent?t.textContent.length:0}return[t,n]})(t),s=i.parentNode,l=null,c=0;if(s){var u,d,p=we.toDOMNode(e,e),h=s.closest('[data-slate-void="true"]'),f=h&&p.contains(h)?h:null,m=s.closest("[data-slate-leaf]"),g=null;if(m){if(l=m.closest('[data-slate-node="text"]')){var y=we.getWindow(e).document.createRange();y.setStart(l,0),y.setEnd(i,a);var b=y.cloneContents();[...Array.prototype.slice.call(b.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(b.querySelectorAll("[contenteditable=false]"))].forEach((e=>{ce&&!r&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)})),c=b.textContent.length,g=l}}else if(f){for(var w=f.querySelectorAll("[data-slate-leaf]"),x=0;x<w.length;x++){var _=w[x];if(we.hasDOMNode(e,_)){m=_;break}}m?(l=m.closest('[data-slate-node="text"]'),c=(g=m).textContent.length,g.querySelectorAll("[data-slate-zero-width]").forEach((e=>{c-=e.textContent.length}))):c=1}g&&c===g.textContent.length&&ce&&"z"===g.getAttribute("data-slate-zero-width")&&null!==(u=g.textContent)&&void 0!==u&&u.startsWith("\ufeff")&&(s.hasAttribute("data-slate-zero-width")||ue&&null!==(d=g.textContent)&&void 0!==d&&d.endsWith("\n\n"))&&c--}if(ce&&!l&&!r){var S=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(S&&we.hasDOMNode(e,S,{editable:!0})){var C=we.toSlateNode(e,S),{path:E,offset:k}=v.ML.start(e,we.findPath(e,C));return S.querySelector("[data-slate-leaf]")||(k=a),{path:E,offset:k}}}if(!l){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var z=we.toSlateNode(e,l);return{path:we.findPath(e,z),offset:c}},toSlateRange(e,t,n){var r,o,i,a,s,{exactMatch:l,suppressThrow:c}=n;if((Q(t)?t.anchorNode:t.startContainer)&&(Q(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=he&&(e=>{for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1})(r)?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,s=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var u=we.toSlatePoint(e,[r,o],{exactMatch:l,suppressThrow:c});if(!u)return null;var d=s?u:we.toSlatePoint(e,[i,a],{exactMatch:l,suppressThrow:c});if(!d)return null;if(ue&&!s&&r!==i){var p=v.ML.isEnd(e,u,u.path),h=v.ML.isStart(e,d,d.path);if(p)u=v.ML.after(e,u)||u;if(h)d=v.ML.before(e,d)||d}var f={anchor:u,focus:d};return v.e6.isExpanded(f)&&v.e6.isForward(f)&&Y(i)&&v.ML.void(e,{at:f.focus,mode:"highest"})&&(f=v.ML.unhangRange(e,f,{voids:!0})),f},hasRange(e,t){var{anchor:n,focus:r}=t;return v.ML.hasPath(e,n.path)&&v.ML.hasPath(e,r.path)},hasTarget:(e,t)=>X(t)&&we.hasDOMNode(e,t),hasEditableTarget:(e,t)=>X(t)&&we.hasDOMNode(e,t,{editable:!0}),hasSelectableTarget:(e,t)=>we.hasEditableTarget(e,t)||we.isTargetInsideNonReadonlyVoid(e,t),isTargetInsideNonReadonlyVoid(e,t){if(R.get(e))return!1;var n=we.hasTarget(e,t)&&we.toSlateNode(e,t);return v.W_.isElement(n)&&v.ML.isVoid(e,n)},androidScheduleFlush(e){var t;null===(t=L.get(e))||void 0===t||t()},androidPendingDiffs:e=>V.get(e)},xe=ye?c.useLayoutEffect:c.useEffect,_e=["anchor","focus"],Se=["anchor","focus"],Ce=(e,t)=>{var n,r,o=_(e,_e),i=_(t,Se);return e[Z]===t[Z]&&(n=o,r=i,Object.keys(n).length===Object.keys(r).length&&Object.keys(n).every((e=>r.hasOwnProperty(e)&&n[e]===r[e])))};function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ke=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,i=Ae(),a=we.findPath(i,o),s=v.y$.parent(a),l=!0===n[q];return i.isVoid(r)?c.createElement(Pe,{length:v.NB.string(r).length}):""!==n.text||r.children[r.children.length-1]!==o||i.isInline(r)||""!==v.ML.string(i,s)?""===n.text?c.createElement(Pe,{isMarkPlaceholder:l}):t&&"\n"===n.text.slice(-1)?c.createElement(ze,{isTrailing:!0,text:n.text}):c.createElement(ze,{text:n.text}):c.createElement(Pe,{isLineBreak:!0,isMarkPlaceholder:l})},ze=e=>{var{text:t,isTrailing:n=!1}=e,r=(0,c.useRef)(null),o=()=>"".concat(null!=t?t:"").concat(n?"\n":"");return xe((()=>{var e=o();r.current&&r.current.textContent!==e&&(r.current.textContent=e)})),r.current?c.createElement("span",{"data-slate-string":!0,ref:r}):c.createElement("span",{"data-slate-string":!0,ref:r},o())},Pe=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,o={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(o["data-slate-mark-placeholder"]=!0),c.createElement("span",function(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){x(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}({},o),ce&&n?null:"\ufeff",n?c.createElement("br",null):null)},De=(0,c.createContext)(null),Ae=()=>{var e=(0,c.useContext)(De);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e};function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Me=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:i,renderLeaf:a=(e=>c.createElement(Fe,Ie({},e)))}=e,s=(0,c.useRef)(null),l=(0,c.useRef)(null),u=Ae(),d=(0,c.useRef)(null);(0,c.useEffect)((()=>()=>{d.current&&d.current.disconnect()}),[]),(0,c.useEffect)((()=>{var e=null==l?void 0:l.current;if(e?D.set(u,e):D.delete(u),d.current)d.current.disconnect(),e&&d.current.observe(e);else if(e){var t=window.ResizeObserver||y.do;d.current=new t((()=>{var e=U.get(u);null==e||e()})),d.current.observe(e)}if(!e&&s.current){var n=U.get(u);null==n||n()}return s.current=l.current,()=>{D.delete(u)}}),[l,t]);var p=c.createElement(ke,{isLast:n,leaf:t,parent:o,text:r});if(t[Z]){var h={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:l}};p=c.createElement(c.Fragment,null,i(h),p)}return a({attributes:{"data-slate-leaf":!0},children:p,leaf:t,text:r})},Re=c.memo(Me,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&v.xv.equals(t.leaf,e.leaf)&&t.leaf[Z]===e.leaf[Z])),Fe=e=>{var{attributes:t,children:n}=e;return c.createElement("span",Ie({},t),n)},Ne=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:i,text:a}=e,s=Ae(),l=(0,c.useRef)(null),u=v.xv.decorations(a,t),d=we.findKey(s,a),p=[],h=0;h<u.length;h++){var f=u[h];p.push(c.createElement(Re,{isLast:n&&h===u.length-1,key:"".concat(d.id,"-").concat(h),renderPlaceholder:o,leaf:f,text:a,parent:r,renderLeaf:i}))}return xe((()=>{var e=M.get(s);l.current?(null==e||e.set(d,l.current),T.set(a,l.current),A.set(l.current,a)):(null==e||e.delete(d),T.delete(a))})),c.createElement("span",{"data-slate-node":"text",ref:l},p)},Oe=c.memo(Ne,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&((e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(r.anchor.offset!==o.anchor.offset||r.focus.offset!==o.focus.offset||!Ce(r,o))return!1}return!0})(t.decorations,e.decorations)));function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Be=e=>{var{decorations:t,element:n,renderElement:r=(e=>c.createElement(Ve,Le({},e))),renderPlaceholder:i,renderLeaf:a,selection:s}=e,l=Ae(),u=qe(),d=l.isInline(n),p=we.findKey(l,n),h=(0,c.useCallback)((e=>{var t=M.get(l);e?(null==t||t.set(p,e),T.set(n,e),A.set(e,n)):(null==t||t.delete(p),T.delete(n))}),[l,p,n]),f=Ue({decorations:t,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:s}),m={"data-slate-node":"element",ref:h};if(d&&(m["data-slate-inline"]=!0),!d&&v.ML.hasInlines(l,n)){var g=v.NB.string(n),y=o()(g);"rtl"===y&&(m.dir=y)}if(v.ML.isVoid(l,n)){m["data-slate-void"]=!0,!u&&d&&(m.contentEditable=!1);var b=d?"span":"div",[[w]]=v.NB.texts(n);f=c.createElement(b,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},c.createElement(Oe,{renderPlaceholder:i,decorations:[],isLast:!1,parent:n,text:w})),E.set(w,0),k.set(w,n)}return r({attributes:m,children:f,element:n})},Ke=c.memo(Be,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&((e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(!v.e6.equals(r,o)||!Ce(r,o))return!1}return!0})(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&v.e6.equals(e.selection,t.selection)))),Ve=e=>{var{attributes:t,children:n,element:r}=e,o=Ae().isInline(r)?"span":"div";return c.createElement(o,Le(Le({},t),{},{style:{position:"relative"}}),n)},He=(0,c.createContext)((()=>[])),$e=(0,c.createContext)(!1),Ue=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:a}=e,s=(0,c.useContext)(He),l=Ae(),u=we.findPath(l,n),d=[],p=v.W_.isElement(n)&&!l.isInline(n)&&v.ML.hasInlines(l,n),h=0;h<n.children.length;h++){var f=u.concat(h),m=n.children[h],g=we.findKey(l,m),y=v.ML.range(l,f),b=a&&v.e6.intersection(y,a),w=s([m,f]);for(var x of t){var _=v.e6.intersection(x,y);_&&w.push(_)}v.W_.isElement(m)?d.push(c.createElement($e.Provider,{key:"provider-".concat(g.id),value:!!b},c.createElement(Ke,{decorations:w,element:m,key:g.id,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:b}))):d.push(c.createElement(Oe,{decorations:w,key:g.id,isLast:p&&h===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:i,text:m})),E.set(m,h),k.set(m,n)}return d},Ze=(0,c.createContext)(!1),qe=()=>(0,c.useContext)(Ze),Ge=(0,c.createContext)(null),We={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",extendWordBackward:"opt+shift+left",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},Ye={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",extendWordBackward:"opt+shift+left",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Xe={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Qe=e=>{var t=We[e],n=Ye[e],r=Xe[e],o=t&&(0,b.TB)(t),i=n&&(0,b.TB)(n),a=r&&(0,b.TB)(r);return e=>!(!o||!o(e))||(!!(le&&i&&i(e))||!(le||!a||!a(e)))},Je={isBold:Qe("bold"),isCompose:Qe("compose"),isMoveBackward:Qe("moveBackward"),isMoveForward:Qe("moveForward"),isDeleteBackward:Qe("deleteBackward"),isDeleteForward:Qe("deleteForward"),isDeleteLineBackward:Qe("deleteLineBackward"),isDeleteLineForward:Qe("deleteLineForward"),isDeleteWordBackward:Qe("deleteWordBackward"),isDeleteWordForward:Qe("deleteWordForward"),isExtendBackward:Qe("extendBackward"),isExtendForward:Qe("extendForward"),isExtendLineBackward:Qe("extendLineBackward"),isExtendLineForward:Qe("extendLineForward"),isExtendWordBackward:Qe("extendWordBackward"),isItalic:Qe("italic"),isMoveLineBackward:Qe("moveLineBackward"),isMoveLineForward:Qe("moveLineForward"),isMoveWordBackward:Qe("moveWordBackward"),isMoveWordForward:Qe("moveWordForward"),isRedo:Qe("redo"),isSoftBreak:Qe("insertSoftBreak"),isSplitBlock:Qe("splitBlock"),isTransposeCharacter:Qe("transposeCharacter"),isUndo:Qe("undo")},et={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class tt extends c.Component{constructor(){super(...arguments),x(this,"context",null),x(this,"manager",null),x(this,"mutationObserver",null)}observe(){var e,{node:t}=this.props;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,et)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=((e,t)=>{var n=[],r=()=>{n=[]};return{registerMutations:r=>{if(t.current){var o=r.filter((t=>ie(e,t,r)));n.push(...o)}},restoreDOM:function(){n.reverse().forEach((e=>{"characterData"!==e.type?(e.removedNodes.forEach((t=>{e.target.insertBefore(t,e.nextSibling)})),e.addedNodes.forEach((t=>{e.target.removeChild(t)}))):e.target.textContent=e.oldValue})),r()},clear:r}})(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,n,r,o=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();null!=o&&o.length&&(null===(r=this.manager)||void 0===r||r.registerMutations(o));return null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}x(tt,"contextType",De);var nt=ce?tt:e=>{var{children:t}=e;return c.createElement(c.Fragment,null,t)};function rt(e,t){var{path:n,diff:r}=t;if(!v.ML.hasPath(e,n))return!1;var o=v.NB.get(e,n);if(!v.xv.isText(o))return!1;if(r.start!==o.text.length||0===r.text.length)return o.text.slice(r.start,r.start+r.text.length)===r.text;var i=v.y$.next(n);if(!v.ML.hasPath(e,i))return!1;var a=v.NB.get(e,i);return v.xv.isText(a)&&a.text.startsWith(r.text)}function ot(e,t){var{start:n,end:r,text:o}=t,i=e.slice(n,r),a=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}(i,o),s=function(e,t,n){for(var r=Math.min(e.length,t.length,n),o=0;o<r;o++)if(e.charAt(e.length-o-1)!==t.charAt(t.length-o-1))return o;return r}(i,o,Math.min(i.length-a,o.length-a)),l={start:n+a,end:r-s,text:o.slice(a,o.length-s)};return l.start===l.end&&0===l.text.length?null:l}function it(e,t,n){var r=Math.min(t.start,n.start),o=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end)),e)}(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-o),s=i.slice(r,a);return ot(e,{start:r,end:Math.max(t.end,n.end-t.text.length+(t.end-t.start)),text:s})}function at(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function st(e,t){var{path:n,offset:r}=t;if(!v.ML.hasPath(e,n))return null;var o=v.NB.get(e,n);if(!v.xv.isText(o))return null;var i=v.ML.above(e,{match:t=>v.W_.isElement(t)&&v.ML.isBlock(e,t),at:n});if(!i)return null;for(;r>o.text.length;){var a=v.ML.next(e,{at:n,match:v.xv.isText});if(!a||!v.y$.isDescendant(a[1],i[1]))return null;r-=o.text.length,o=a[0],n=a[1]}return{path:n,offset:r}}function lt(e,t){var n=st(e,t.anchor);if(!n)return null;if(v.e6.isCollapsed(t))return{anchor:n,focus:n};var r=st(e,t.focus);return r?{anchor:n,focus:r}:null}function ct(e,t,n){var r=V.get(e),o=null==r?void 0:r.find((e=>{var{path:n}=e;return v.y$.equals(n,t.path)}));if(!o||t.offset<=o.diff.start)return v.E9.transform(t,n,{affinity:"backward"});var{diff:i}=o;if(t.offset<=i.start+i.text.length){var a={path:t.path,offset:i.start},s=v.E9.transform(a,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-i.start}:null}var l={path:t.path,offset:t.offset-i.text.length+i.end-i.start},c=v.E9.transform(l,n,{affinity:"backward"});return c?"split_node"===n.type&&v.y$.equals(n.path,t.path)&&l.offset<n.position&&i.start<n.position?c:{path:c.path,offset:c.offset+i.text.length-i.end+i.start}:null}function ut(e,t,n){var r=ct(e,t.anchor,n);if(!r)return null;if(v.e6.isCollapsed(t))return{anchor:r,focus:r};var o=ct(e,t.focus,n);return o?{anchor:r,focus:o}:null}function dt(e,t){var{path:n,diff:r,id:o}=e;switch(t.type){case"insert_text":return!v.y$.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:o,path:n};case"remove_text":return!v.y$.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:o,path:n};case"split_node":return!v.y$.equals(t.path,n)||t.position>=r.end?{diff:r,id:o,path:v.y$.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:o,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:o,path:v.y$.transform(n,t,{affinity:"forward"})};case"merge_node":return v.y$.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:o,path:v.y$.transform(n,t)}:{diff:r,id:o,path:v.y$.transform(n,t)}}var i=v.y$.transform(n,t);return i?{diff:r,path:i,id:o}:null}function pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ft(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,i=null,a=null,s=null,l=0,c=!1,u=()=>{var e=$.get(t);if($.delete(t),e){var{selection:n}=t,r=lt(t,e);!r||n&&v.e6.equals(r,n)||v.YR.select(t,r)}},d=()=>{var e;if(a&&(clearTimeout(a),a=null),s&&(clearTimeout(s),s=null),g()||m()){o||(o=!0,setTimeout((()=>o=!1))),m()&&(o="action");var i=t.selection&&v.ML.rangeRef(t,t.selection,{affinity:"forward"});K.set(t,t.marks),H.get(t),V.get(t);for(var l,d=!(null===(e=V.get(t))||void 0===e||!e.length);l=null===(p=V.get(t))||void 0===p?void 0:p[0];){var p,h,f=B.get(t);void 0!==f&&(B.delete(t),t.marks=f),f&&!1===c&&(c=null);var y=at(l);t.selection&&v.e6.equals(t.selection,y)||v.YR.select(t,y),l.diff.text?v.ML.insertText(t,l.diff.text):v.ML.deleteFragment(t),V.set(t,null===(h=V.get(t))||void 0===h?void 0:h.filter((e=>{var{id:t}=e;return t!==l.id}))),rt(t,l)||(d=!1,H.delete(t),K.delete(t),o="action",$.delete(t),n.cancel(),r.cancel(),null==i||i.unref())}var b=null==i?void 0:i.unref();if(!b||$.get(t)||t.selection&&v.e6.equals(b,t.selection)||v.YR.select(t,b),m())(()=>{var e=H.get(t);if(H.delete(t),e){if(e.at){var n=v.E9.isPoint(e.at)?st(t,e.at):lt(t,e.at);if(!n)return;var r=v.ML.range(t,n);t.selection&&v.e6.equals(t.selection,r)||v.YR.select(t,n)}e.run()}})();else{d&&n(),n.flush(),r.flush(),u();var w=K.get(t);K.delete(t),void 0!==w&&(t.marks=w,t.onChange())}}else u()},p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=D.get(t);n&&(g()||e?n.style.display="none":n.style.removeProperty("display"))},h=(e,n)=>{var r,o=null!==(r=V.get(t))&&void 0!==r?r:[];V.set(t,o);var i=v.NB.leaf(t,e),a=o.findIndex((t=>v.y$.equals(t.path,e)));if(a<0)return ot(i.text,n)&&o.push({path:e,diff:n,id:l++}),void p();var s=it(i.text,o[a].diff,n);if(!s)return o.splice(a,1),void p();o[a]=ht(ht({},o[a]),{},{diff:s})},f=function(e){var{at:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c=!1,$.delete(t),n.cancel(),r.cancel(),m()&&d(),H.set(t,{at:o,run:e}),s=setTimeout(d)},m=()=>!!H.get(t),g=()=>{var e;return!(null===(e=V.get(t))||void 0===e||!e.length)},y=e=>{$.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var r=!n||!v.y$.equals(n.anchor.path,e.anchor.path),o=!n||!v.y$.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(r&&c||o)&&(c=!1),!r&&g()||(a=setTimeout(d,200))}},b=()=>{m()||(s=setTimeout(d))};return{flush:d,scheduleFlush:b,hasPendingDiffs:g,hasPendingAction:m,hasPendingChanges:()=>m()||g(),isFlushing:()=>o,handleUserSelect:y,handleCompositionEnd:e=>{i&&clearTimeout(i),i=setTimeout((()=>{N.set(t,!1),d()}),25)},handleCompositionStart:e=>{N.set(t,!0),i&&(clearTimeout(i),i=null)},handleDOMBeforeInput:e=>{var n;a&&(clearTimeout(a),a=null);var{inputType:r}=e,o=null,i=e.dataTransfer||e.data||void 0;!1!==c&&"insertText"!==r&&"insertCompositionText"!==r&&(c=!1);var[s]=e.getTargetRanges();s&&(o=we.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=we.getWindow(t).getSelection();if(!o&&l&&(s=l,o=we.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0})),o=null!==(n=o)&&void 0!==n?n:t.selection){if(v.e6.isExpanded(o)&&r.startsWith("delete")){var[u,d]=v.e6.edges(o);if(v.NB.leaf(t,u.path).text.length===u.offset&&0===d.offset){var p=v.ML.next(t,{at:u.path,match:v.xv.isText});p&&v.y$.equals(p[1],d.path)&&(o={anchor:d,focus:d})}}if(v.e6.isExpanded(o)&&r.startsWith("delete")){if(v.y$.equals(o.anchor.path,o.focus.path)){var[m,g]=v.e6.edges(o),w={path:o.anchor.path,offset:m.offset},x=v.ML.range(t,w,w);return y(x),h(o.anchor.path,{text:"",end:g.offset,start:m.offset})}var _=r.endsWith("Backward")?"backward":"forward";return f((()=>v.ML.deleteFragment(t,{direction:_})),{at:o})}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return f((()=>v.ML.deleteFragment(t)),{at:o});case"deleteContent":case"deleteContentForward":var{anchor:S}=o;if(v.e6.isCollapsed(o)){var C=v.NB.leaf(t,S.path);if(S.offset<C.text.length)return h(S.path,{text:"",start:S.offset,end:S.offset+1})}return f((()=>v.ML.deleteForward(t)),{at:o});case"deleteContentBackward":var E,{anchor:k}=o;return(Q(s)?s.isCollapsed:!(null===(E=s)||void 0===E||!E.collapsed))&&v.e6.isCollapsed(o)&&k.offset>0?h(k.path,{text:"",start:k.offset-1,end:k.offset}):f((()=>v.ML.deleteBackward(t)),{at:o});case"deleteEntireSoftLine":return f((()=>{v.ML.deleteBackward(t,{unit:"line"}),v.ML.deleteForward(t,{unit:"line"})}),{at:o});case"deleteHardLineBackward":return f((()=>v.ML.deleteBackward(t,{unit:"block"})),{at:o});case"deleteSoftLineBackward":return f((()=>v.ML.deleteBackward(t,{unit:"line"})),{at:o});case"deleteHardLineForward":return f((()=>v.ML.deleteForward(t,{unit:"block"})),{at:o});case"deleteSoftLineForward":return f((()=>v.ML.deleteForward(t,{unit:"line"})),{at:o});case"deleteWordBackward":return f((()=>v.ML.deleteBackward(t,{unit:"word"})),{at:o});case"deleteWordForward":return f((()=>v.ML.deleteForward(t,{unit:"word"})),{at:o});case"insertLineBreak":return f((()=>v.ML.insertSoftBreak(t)),{at:o});case"insertParagraph":return f((()=>v.ML.insertBreak(t)),{at:o});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("DataTransfer"===(null==i?void 0:i.constructor.name))return f((()=>we.insertData(t,i)),{at:o});if("string"==typeof i&&i.includes("\n"))return f((()=>v.ML.insertSoftBreak(t)),{at:v.e6.end(o)});var z=null!=i?i:"";if(B.get(t)&&(z=z.replace("\ufeff","")),v.y$.equals(o.anchor.path,o.focus.path)){var[P,D]=v.e6.edges(o),A={start:P.offset,end:D.offset,text:z};if(z&&c&&"insertCompositionText"===r){var T=c.start+c.text.search(/\S|$/);A.start+A.text.search(/\S|$/)===T+1&&A.end===c.start+c.text.length?(A.start-=1,c=null,b()):c=!1}else c="insertText"===r&&(null===c?A:!(!c||!v.e6.isCollapsed(o)||c.end+c.text.length!==P.offset)&&ht(ht({},c),{},{text:c.text+z}));return void h(P.path,A)}return f((()=>v.ML.insertText(t,z)),{at:o})}}},handleKeyDown:e=>{g()||(p(!0),setTimeout(p))},handleDomMutations:e=>{var n;g()||m()||e.some((n=>ie(t,n,e)))&&(null===(n=U.get(t))||void 0===n||n())},handleInput:()=>{!m()&&g()||d()}}}var mt=["node"];function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var vt={subtree:!0,childList:!0,characterData:!0};function yt(e){var{node:t}=e,n=_(e,mt);if(!ce)return null;var r,o=Ae(),i=(r=(0,c.useRef)(!1),(0,c.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[]),r.current),[a]=(0,c.useState)((()=>ft(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({editor:o},n))));return function(e,t,n){var[r]=(0,c.useState)((()=>new MutationObserver(t)));xe((()=>{r.takeRecords()})),(0,c.useEffect)((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()}),[])}(t,a.handleDomMutations,vt),L.set(o,a.scheduleFlush),i&&a.flush(),a}var bt=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],wt=["text"];function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var St=e=>c.createElement(c.Fragment,null,Ue(e)),Ct=e=>{var t,n,{autoFocus:r,decorate:i=kt,onDOMBeforeInput:s,placeholder:u,readOnly:d=!1,renderElement:p,renderLeaf:h,renderPlaceholder:f=(e=>c.createElement(Et,_t({},e))),scrollSelectionIntoView:m=zt,style:g={},as:y="div",disableDefaultStyles:b=!1}=e,w=_(e,bt),x=(()=>{var e=(0,c.useContext)(Ge);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t})(),[S,C]=(0,c.useState)(!1),E=(0,c.useRef)(null),k=(0,c.useRef)([]),I=(0,c.useRef)(!1),{onUserInput:M,receivedUserInput:j}=function(){var e=Ae(),t=(0,c.useRef)(!1),n=(0,c.useRef)(0),r=(0,c.useCallback)((()=>{if(!t.current){t.current=!0;var r=we.getWindow(e);r.cancelAnimationFrame(n.current),n.current=r.requestAnimationFrame((()=>{t.current=!1}))}}),[]);return(0,c.useEffect)((()=>()=>cancelAnimationFrame(n.current)),[]),{receivedUserInput:t,onUserInput:r}}(),[,L]=(0,c.useReducer)((e=>e+1),0);U.set(x,L),R.set(x,d);var V=(0,c.useMemo)((()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1})),[]);(0,c.useEffect)((()=>{E.current&&r&&E.current.focus()}),[r]);var H=(0,c.useCallback)(l()((()=>{var e=we.findDocumentOrShadowRoot(x),t=navigator.userAgent.match(/Version\/(\d+\.\d+)/),n=de&&t&&parseFloat(t[1])<17;if(!I.current&&de&&e instanceof ShadowRoot&&n)return I.current=!0,function(){for(var e=document.activeElement;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}()?document.execCommand("indent"):v.YR.deselect(x),void(I.current=!1);if((ce||!we.isComposing(x))&&(!V.isUpdatingSelection||null!=G&&G.isFlushing())&&!V.isDraggingInternally){var r=we.findDocumentOrShadowRoot(x),{activeElement:o}=r,i=we.toDOMNode(x,x),a=r.getSelection();if(o===i?(V.latestElement=o,F.set(x,!0)):F.delete(x),!a)return v.YR.deselect(x);var{anchorNode:s,focusNode:l}=a,c=we.hasEditableTarget(x,s)||we.isTargetInsideNonReadonlyVoid(x,s),u=we.hasEditableTarget(x,l)||we.isTargetInsideNonReadonlyVoid(x,l);if(c&&u){var p=we.toSlateRange(x,a,{exactMatch:!1,suppressThrow:!0});p&&(we.isComposing(x)||null!=G&&G.hasPendingChanges()||null!=G&&G.isFlushing()?null==G||G.handleUserSelect(p):v.YR.select(x,p))}!d||c&&u||v.YR.deselect(x)}}),100),[d]),$=(0,c.useMemo)((()=>a()(H,0)),[H]),G=yt({node:E,onDOMSelectionChange:H,scheduleOnDOMSelectionChange:$});xe((()=>{var e;E.current&&(e=W(E.current))?(z.set(x,e),P.set(x,E.current),T.set(x,E.current),A.set(E.current,x)):T.delete(x);var{selection:t}=x,n=we.findDocumentOrShadowRoot(x).getSelection();if(n&&we.isFocused(x)&&(null==G||!G.hasPendingAction())){var r=e=>{var r="None"!==n.type;if(t||r){var o=P.get(x),i=!1;if(o.contains(n.anchorNode)&&o.contains(n.focusNode)&&(i=!0),r&&i&&t&&!e){var a=we.toSlateRange(x,n,{exactMatch:!0,suppressThrow:!0});if(a&&v.e6.equals(a,t)){var s;if(!V.hasMarkPlaceholder)return;var{anchorNode:l}=n;if(null!=l&&null!==(s=l.parentElement)&&void 0!==s&&s.hasAttribute("data-slate-mark-placeholder"))return}}if(!t||we.hasRange(x,t)){V.isUpdatingSelection=!0;var c=t&&we.toDOMRange(x,t);return c?(v.e6.isBackward(t)?n.setBaseAndExtent(c.endContainer,c.endOffset,c.startContainer,c.startOffset):n.setBaseAndExtent(c.startContainer,c.startOffset,c.endContainer,c.endOffset),m(x,c)):n.removeAllRanges(),c}x.selection=we.toSlateRange(x,n,{exactMatch:!1,suppressThrow:!0})}},o=r(),i="action"===(null==G?void 0:G.isFlushing());if(ce&&i){var a=null,s=requestAnimationFrame((()=>{if(i){var e=e=>{try{we.toDOMNode(x,x).focus(),r(e)}catch(e){}};e(),a=setTimeout((()=>{e(!0),V.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(s),a&&clearTimeout(a)}}setTimeout((()=>{o&&ue&&we.toDOMNode(x,x).focus();V.isUpdatingSelection=!1}))}}));var Q=(0,c.useCallback)((e=>{var t=we.findDocumentOrShadowRoot(x),n=navigator.userAgent.match(/Version\/(\d+\.\d+)/),r=de&&n&&parseFloat(n[1])<17;if(null!=I&&I.current&&de&&t instanceof ShadowRoot&&r){var o=e.getTargetRanges()[0],i=new window.Range;i.setStart(o.startContainer,o.startOffset),i.setEnd(o.endContainer,o.endOffset);var a=we.toSlateRange(x,i,{exactMatch:!1,suppressThrow:!1});return v.YR.select(x,a),e.preventDefault(),void e.stopImmediatePropagation()}if(M(),!d&&we.hasEditableTarget(x,e.target)&&!Dt(e,s)){var l;if(G)return G.handleDOMBeforeInput(e);$.flush(),H.flush();var{selection:c}=x,{inputType:u}=e,p=e.dataTransfer||e.data||void 0,h="insertCompositionText"===u||"deleteCompositionText"===u;if(h&&we.isComposing(x))return;var f=!1;if("insertText"===u&&c&&v.e6.isCollapsed(c)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==c.anchor.offset){var m,g;f=!0,x.marks&&(f=!1);var{anchor:y}=c,[b,w]=we.toDOMPoint(x,y),_=null===(m=b.parentElement)||void 0===m?void 0:m.closest("a"),S=we.getWindow(x);if(f&&_&&we.hasDOMNode(x,_)){var E,z=null==S?void 0:S.document.createTreeWalker(_,NodeFilter.SHOW_TEXT).lastChild();z===b&&(null===(E=z.textContent)||void 0===E?void 0:E.length)===w&&(f=!1)}if(f&&b.parentElement&&"pre"===(null==S||null===(g=S.getComputedStyle(b.parentElement))||void 0===g?void 0:g.whiteSpace)){var P=v.ML.above(x,{at:y.path,match:e=>v.W_.isElement(e)&&v.ML.isBlock(x,e)});P&&v.NB.string(P[0]).includes("\t")&&(f=!1)}}if(!u.startsWith("delete")||u.startsWith("deleteBy")){var[D]=e.getTargetRanges();if(D){var A=we.toSlateRange(x,D,{exactMatch:!1,suppressThrow:!1});if(!c||!v.e6.equals(c,A)){f=!1;var T=!h&&x.selection&&v.ML.rangeRef(x,x.selection);v.YR.select(x,A),T&&O.set(x,T)}}}if(h)return;if(f||e.preventDefault(),c&&v.e6.isExpanded(c)&&u.startsWith("delete")){var R=u.endsWith("Backward")?"backward":"forward";return void v.ML.deleteFragment(x,{direction:R})}switch(u){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":v.ML.deleteFragment(x);break;case"deleteContent":case"deleteContentForward":v.ML.deleteForward(x);break;case"deleteContentBackward":v.ML.deleteBackward(x);break;case"deleteEntireSoftLine":v.ML.deleteBackward(x,{unit:"line"}),v.ML.deleteForward(x,{unit:"line"});break;case"deleteHardLineBackward":v.ML.deleteBackward(x,{unit:"block"});break;case"deleteSoftLineBackward":v.ML.deleteBackward(x,{unit:"line"});break;case"deleteHardLineForward":v.ML.deleteForward(x,{unit:"block"});break;case"deleteSoftLineForward":v.ML.deleteForward(x,{unit:"line"});break;case"deleteWordBackward":v.ML.deleteBackward(x,{unit:"word"});break;case"deleteWordForward":v.ML.deleteForward(x,{unit:"word"});break;case"insertLineBreak":v.ML.insertSoftBreak(x);break;case"insertParagraph":v.ML.insertBreak(x);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===u&&we.isComposing(x)&&(C(!1),N.set(x,!1)),"DataTransfer"===(null==p?void 0:p.constructor.name)?we.insertData(x,p):"string"==typeof p&&(f?k.current.push((()=>v.ML.insertText(x,p))):v.ML.insertText(x,p))}var F=null===(l=O.get(x))||void 0===l?void 0:l.unref();O.delete(x),!F||x.selection&&v.e6.equals(x.selection,F)||v.YR.select(x,F)}}),[d,s]);xe((()=>(E.current&&be&&E.current.addEventListener("beforeinput",Q),()=>{E.current&&be&&E.current.removeEventListener("beforeinput",Q)})),[Q]),xe((()=>{var e=we.getWindow(x);return e.document.addEventListener("selectionchange",$),()=>{e.document.removeEventListener("selectionchange",$)}}),[$]);var J=i([x,[]]);if(u&&1===x.children.length&&1===Array.from(v.NB.texts(x)).length&&""===v.NB.string(x)&&!S){var ee=v.ML.start(x,[]);J.push({[Z]:!0,placeholder:u,anchor:ee,focus:ee})}var{marks:te}=x;if(V.hasMarkPlaceholder=!1,x.selection&&v.e6.isCollapsed(x.selection)&&te){var{anchor:ne}=x.selection,re=v.NB.leaf(x,ne.path),oe=_(re,wt);if(!v.xv.equals(re,te,{loose:!0})){V.hasMarkPlaceholder=!0;var ie=Object.fromEntries(Object.keys(oe).map((e=>[e,null])));J.push(_t(_t(_t({[q]:!0},ie),te),{},{anchor:ne,focus:ne}))}}(0,c.useEffect)((()=>{setTimeout((()=>{var{selection:e}=x;if(e){var{anchor:t}=e,n=v.NB.leaf(x,t.path);if(te&&!v.xv.equals(n,te,{loose:!0}))return void B.set(x,te)}B.delete(x)}))}));var ae=null===(t=D.get(x))||void 0===t||null===(n=t.getBoundingClientRect())||void 0===n?void 0:n.height;return c.createElement(Ze.Provider,{value:d},c.createElement(He.Provider,{value:i},c.createElement(nt,{node:E,receivedUserInput:j},c.createElement(y,_t(_t({role:d?void 0:"textbox","aria-multiline":!d||void 0},w),{},{spellCheck:!(!be&&ye)&&w.spellCheck,autoCorrect:be||!ye?w.autoCorrect:"false",autoCapitalize:be||!ye?w.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!d,zindex:-1,suppressContentEditableWarning:!0,ref:E,style:_t(_t({},b?{}:_t({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},ae?{minHeight:ae}:{})),g),onBeforeInput:(0,c.useCallback)((e=>{if(!be&&!d&&!Pt(e,w.onBeforeInput)&&we.hasSelectableTarget(x,e.target)&&(e.preventDefault(),!we.isComposing(x))){var t=e.data;v.ML.insertText(x,t)}}),[d]),onInput:(0,c.useCallback)((e=>{if(G)G.handleInput();else{for(var t of k.current)t();k.current=[]}}),[]),onBlur:(0,c.useCallback)((e=>{if(!d&&!V.isUpdatingSelection&&we.hasSelectableTarget(x,e.target)&&!Pt(e,w.onBlur)){var t=we.findDocumentOrShadowRoot(x);if(V.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===we.toDOMNode(x,x)||Y(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&X(n)&&we.hasDOMNode(x,n)){var r=we.toSlateNode(x,n);if(v.W_.isElement(r)&&!x.isVoid(r))return}if(de){var o=t.getSelection();null==o||o.removeAllRanges()}F.delete(x)}}}}),[d,w.onBlur]),onClick:(0,c.useCallback)((e=>{if(we.hasTarget(x,e.target)&&!Pt(e,w.onClick)&&X(e.target)){var t=we.toSlateNode(x,e.target),n=we.findPath(x,t);if(!v.ML.hasPath(x,n)||v.NB.get(x,n)!==t)return;if(3===e.detail&&n.length>=1){var r=n;if(!v.W_.isElement(t)||!v.ML.isBlock(x,t)){var o,i=v.ML.above(x,{match:e=>v.W_.isElement(e)&&v.ML.isBlock(x,e),at:n});r=null!==(o=null==i?void 0:i[1])&&void 0!==o?o:n.slice(0,1)}var a=v.ML.range(x,r);return void v.YR.select(x,a)}if(d)return;var s=v.ML.start(x,n),l=v.ML.end(x,n),c=v.ML.void(x,{at:s}),u=v.ML.void(x,{at:l});if(c&&u&&v.y$.equals(c[1],u[1])){var p=v.ML.range(x,s);v.YR.select(x,p)}}}),[d,w.onClick]),onCompositionEnd:(0,c.useCallback)((e=>{if(we.hasSelectableTarget(x,e.target)){if(we.isComposing(x)&&(C(!1),N.set(x,!1)),null==G||G.handleCompositionEnd(e),Pt(e,w.onCompositionEnd)||ce)return;if(!de&&!me&&!se&&!ve&&!ge&&e.data){var t=B.get(x);B.delete(x),void 0!==t&&(K.set(x,x.marks),x.marks=t),v.ML.insertText(x,e.data);var n=K.get(x);K.delete(x),void 0!==n&&(x.marks=n)}}}),[w.onCompositionEnd]),onCompositionUpdate:(0,c.useCallback)((e=>{we.hasSelectableTarget(x,e.target)&&!Pt(e,w.onCompositionUpdate)&&(we.isComposing(x)||(C(!0),N.set(x,!0)))}),[w.onCompositionUpdate]),onCompositionStart:(0,c.useCallback)((e=>{if(we.hasSelectableTarget(x,e.target)){if(null==G||G.handleCompositionStart(e),Pt(e,w.onCompositionStart)||ce)return;C(!0);var{selection:t}=x;if(t){if(v.e6.isExpanded(t))return void v.ML.deleteFragment(x);var n=v.ML.above(x,{match:e=>v.W_.isElement(e)&&v.ML.isInline(x,e),mode:"highest"});if(n){var[,r]=n;if(v.ML.isEnd(x,t.anchor,r)){var o=v.ML.after(x,r);v.YR.setSelection(x,{anchor:o,focus:o})}}}}}),[w.onCompositionStart]),onCopy:(0,c.useCallback)((e=>{we.hasSelectableTarget(x,e.target)&&!Pt(e,w.onCopy)&&(e.preventDefault(),we.setFragmentData(x,e.clipboardData,"copy"))}),[w.onCopy]),onCut:(0,c.useCallback)((e=>{if(!d&&we.hasSelectableTarget(x,e.target)&&!Pt(e,w.onCut)){e.preventDefault(),we.setFragmentData(x,e.clipboardData,"cut");var{selection:t}=x;if(t)if(v.e6.isExpanded(t))v.ML.deleteFragment(x);else{var n=v.NB.parent(x,t.anchor.path);v.ML.isVoid(x,n)&&v.YR.delete(x)}}}),[d,w.onCut]),onDragOver:(0,c.useCallback)((e=>{if(we.hasTarget(x,e.target)&&!Pt(e,w.onDragOver)){var t=we.toSlateNode(x,e.target);v.W_.isElement(t)&&v.ML.isVoid(x,t)&&e.preventDefault()}}),[w.onDragOver]),onDragStart:(0,c.useCallback)((e=>{if(!d&&we.hasTarget(x,e.target)&&!Pt(e,w.onDragStart)){var t=we.toSlateNode(x,e.target),n=we.findPath(x,t);if(v.W_.isElement(t)&&v.ML.isVoid(x,t)||v.ML.void(x,{at:n,voids:!0})){var r=v.ML.range(x,n);v.YR.select(x,r)}V.isDraggingInternally=!0,we.setFragmentData(x,e.dataTransfer,"drag")}}),[d,w.onDragStart]),onDrop:(0,c.useCallback)((e=>{if(!d&&we.hasTarget(x,e.target)&&!Pt(e,w.onDrop)){e.preventDefault();var t=x.selection,n=we.findEventRange(x,e),r=e.dataTransfer;v.YR.select(x,n),V.isDraggingInternally&&(!t||v.e6.equals(t,n)||v.ML.void(x,{at:n,voids:!0})||v.YR.delete(x,{at:t})),we.insertData(x,r),we.isFocused(x)||we.focus(x)}V.isDraggingInternally=!1}),[d,w.onDrop]),onDragEnd:(0,c.useCallback)((e=>{!d&&V.isDraggingInternally&&w.onDragEnd&&we.hasTarget(x,e.target)&&w.onDragEnd(e),V.isDraggingInternally=!1}),[d,w.onDragEnd]),onFocus:(0,c.useCallback)((e=>{if(!d&&!V.isUpdatingSelection&&we.hasEditableTarget(x,e.target)&&!Pt(e,w.onFocus)){var t=we.toDOMNode(x,x),n=we.findDocumentOrShadowRoot(x);if(V.latestElement=n.activeElement,ue&&e.target!==t)return void t.focus();F.set(x,!0)}}),[d,w.onFocus]),onKeyDown:(0,c.useCallback)((e=>{if(!d&&we.hasEditableTarget(x,e.target)){null==G||G.handleKeyDown(e);var{nativeEvent:t}=e;if(we.isComposing(x)&&!1===t.isComposing&&(N.set(x,!1),C(!1)),Pt(e,w.onKeyDown)||we.isComposing(x))return;var{selection:n}=x,r=x.children[null!==n?n.focus.path[0]:0],i="rtl"===o()(v.NB.string(r));if(Je.isRedo(t)){e.preventDefault();var a=x;return void("function"==typeof a.redo&&a.redo())}if(Je.isUndo(t)){e.preventDefault();var s=x;return void("function"==typeof s.undo&&s.undo())}if(Je.isMoveLineBackward(t))return e.preventDefault(),void v.YR.move(x,{unit:"line",reverse:!0});if(Je.isMoveLineForward(t))return e.preventDefault(),void v.YR.move(x,{unit:"line"});if(Je.isExtendLineBackward(t))return e.preventDefault(),void v.YR.move(x,{unit:"line",edge:"focus",reverse:!0});if(Je.isExtendLineForward(t))return e.preventDefault(),void v.YR.move(x,{unit:"line",edge:"focus"});if(Je.isMoveBackward(t))return e.preventDefault(),void(n&&v.e6.isCollapsed(n)?v.YR.move(x,{reverse:!i}):v.YR.collapse(x,{edge:"start"}));if(Je.isMoveForward(t))return e.preventDefault(),void(n&&v.e6.isCollapsed(n)?v.YR.move(x,{reverse:i}):v.YR.collapse(x,{edge:"end"}));if(Je.isMoveWordBackward(t))return e.preventDefault(),n&&v.e6.isExpanded(n)&&v.YR.collapse(x,{edge:"focus"}),void v.YR.move(x,{unit:"word",reverse:!i});if(Je.isMoveWordForward(t))return e.preventDefault(),n&&v.e6.isExpanded(n)&&v.YR.collapse(x,{edge:"focus"}),void v.YR.move(x,{unit:"word",reverse:i});if(be){if((he||de)&&n&&(Je.isDeleteBackward(t)||Je.isDeleteForward(t))&&v.e6.isCollapsed(n)){var l=v.NB.parent(x,n.anchor.path);if(v.W_.isElement(l)&&v.ML.isVoid(x,l)&&(v.ML.isInline(x,l)||v.ML.isBlock(x,l)))return e.preventDefault(),void v.ML.deleteBackward(x,{unit:"block"})}}else{if(Je.isBold(t)||Je.isItalic(t)||Je.isTransposeCharacter(t))return void e.preventDefault();if(Je.isSoftBreak(t))return e.preventDefault(),void v.ML.insertSoftBreak(x);if(Je.isSplitBlock(t))return e.preventDefault(),void v.ML.insertBreak(x);if(Je.isDeleteBackward(t))return e.preventDefault(),void(n&&v.e6.isExpanded(n)?v.ML.deleteFragment(x,{direction:"backward"}):v.ML.deleteBackward(x));if(Je.isDeleteForward(t))return e.preventDefault(),void(n&&v.e6.isExpanded(n)?v.ML.deleteFragment(x,{direction:"forward"}):v.ML.deleteForward(x));if(Je.isDeleteLineBackward(t))return e.preventDefault(),void(n&&v.e6.isExpanded(n)?v.ML.deleteFragment(x,{direction:"backward"}):v.ML.deleteBackward(x,{unit:"line"}));if(Je.isDeleteLineForward(t))return e.preventDefault(),void(n&&v.e6.isExpanded(n)?v.ML.deleteFragment(x,{direction:"forward"}):v.ML.deleteForward(x,{unit:"line"}));if(Je.isDeleteWordBackward(t))return e.preventDefault(),void(n&&v.e6.isExpanded(n)?v.ML.deleteFragment(x,{direction:"backward"}):v.ML.deleteBackward(x,{unit:"word"}));if(Je.isDeleteWordForward(t))return e.preventDefault(),void(n&&v.e6.isExpanded(n)?v.ML.deleteFragment(x,{direction:"forward"}):v.ML.deleteForward(x,{unit:"word"}))}}}),[d,w.onKeyDown]),onPaste:(0,c.useCallback)((e=>{d||!we.hasSelectableTarget(x,e.target)||Pt(e,w.onPaste)||be&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||(e.preventDefault(),we.insertData(x,e.clipboardData))}),[d,w.onPaste])}),c.createElement(St,{decorations:J,node:x,renderElement:p,renderPlaceholder:f,renderLeaf:h,selection:x.selection})))))},Et=e=>{var{attributes:t,children:n}=e;return c.createElement("span",_t({},t),n,ce&&c.createElement("br",null))},kt=()=>[],zt=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&v.e6.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),g(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},Pt=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},Dt=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},At=(0,c.createContext)(!1);var Tt=(0,c.createContext)({});var It=["editor","children","onChange","value"],Mt=e=>{var{editor:t,children:n,onChange:r,value:o}=e,i=_(e,It),a=(0,c.useRef)(!1),[s,l]=c.useState((()=>{if(!v.NB.isNodeList(o))throw new Error("[Slate] value is invalid! Expected a list of elements but got: ".concat(v.o4.stringify(o)));if(!v.ML.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(v.o4.stringify(t)));return t.children=o,Object.assign(t,i),{v:0,editor:t}})),{selectorContext:u,onChange:d}=function(e){var t=(0,c.useRef)([]).current,n=(0,c.useRef)({editor:e}).current,r=(0,c.useCallback)((e=>{n.editor=e,t.forEach((t=>t(e)))}),[]);return{selectorContext:(0,c.useMemo)((()=>({getSlate:()=>n.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,n]),onChange:r}}(t),p=(0,c.useCallback)((()=>{r&&r(t.children),l((e=>({v:e.v+1,editor:t}))),d(t)}),[r]);(0,c.useEffect)((()=>(j.set(t,p),()=>{j.set(t,(()=>{})),a.current=!0})),[]);var[h,f]=(0,c.useState)(we.isFocused(t));return(0,c.useEffect)((()=>{f(we.isFocused(t))})),xe((()=>{var e=()=>f(we.isFocused(t));return ae?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),c.createElement(Tt.Provider,{value:u},c.createElement(Ge.Provider,{value:s},c.createElement(De.Provider,{value:s.editor},c.createElement(At.Provider,{value:h},n))))},Rt=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Ft=(e,t,n)=>{var r=we.toDOMRange(e,t).getBoundingClientRect(),o=we.toDOMRange(e,n).getBoundingClientRect();return Rt(r,o)&&Rt(o,r)},Nt=(e,t)=>{var n=v.ML.range(e,v.e6.end(t)),r=Array.from(v.ML.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(Ft(e,v.ML.range(e,r[o]),n))return v.ML.range(e,r[o],n);if(r.length<2)return v.ML.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)Ft(e,v.ML.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return v.ML.range(e,r[i],n)};function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",n=e,{apply:r,onChange:o,deleteBackward:i,addMark:a,removeMark:s}=n;return M.set(n,new WeakMap),n.addMark=(e,t)=>{var r,o;null===(r=L.get(n))||void 0===r||r(),!B.get(n)&&null!==(o=V.get(n))&&void 0!==o&&o.length&&B.set(n,null),K.delete(n),a(e,t)},n.removeMark=e=>{var t;!B.get(n)&&null!==(t=V.get(n))&&void 0!==t&&t.length&&B.set(n,null),K.delete(n),s(e)},n.deleteBackward=e=>{if("line"!==e)return i(e);if(n.selection&&v.e6.isCollapsed(n.selection)){var t=v.ML.above(n,{match:e=>v.W_.isElement(e)&&v.ML.isBlock(n,e),at:n.selection});if(t){var[,r]=t,o=v.ML.range(n,r,n.selection.anchor),a=Nt(n,o);v.e6.isCollapsed(a)||v.YR.delete(n,{at:a})}}},n.apply=e=>{var t=[],o=V.get(n);if(null!=o&&o.length){var i=o.map((t=>dt(t,e))).filter(Boolean);V.set(n,i)}var a=$.get(n);a&&$.set(n,ut(n,a,e));var s=H.get(n);if(null!=s&&s.at){var l=v.E9.isPoint(null==s?void 0:s.at)?ct(n,s.at,e):ut(n,s.at,e);H.set(n,l?jt(jt({},s),{},{at:l}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":t.push(...Bt(n,e.path));break;case"set_selection":var c;null===(c=O.get(n))||void 0===c||c.unref(),O.delete(n);break;case"insert_node":case"remove_node":t.push(...Bt(n,v.y$.parent(e.path)));break;case"merge_node":var u=v.y$.previous(e.path);t.push(...Bt(n,u));break;case"move_node":var d=v.y$.common(v.y$.parent(e.path),v.y$.parent(e.newPath));t.push(...Bt(n,d))}for(var[p,h]of(r(e),t)){var[f]=v.ML.node(n,p);I.set(f,h)}},n.setFragmentData=e=>{var{selection:r}=n;if(r){var[o,i]=v.e6.edges(r),a=v.ML.void(n,{at:o.path}),s=v.ML.void(n,{at:i.path});if(!v.e6.isCollapsed(r)||a){var l=we.toDOMRange(n,r),c=l.cloneContents(),u=c.childNodes[0];if(c.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(u=e)})),s){var[d]=s,p=l.cloneRange(),h=we.toDOMNode(n,d);p.setEndAfter(h),c=p.cloneContents()}if(a&&(u=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),J(u)){var f=u.ownerDocument.createElement("span");f.style.whiteSpace="pre",f.appendChild(u),c.appendChild(f),u=f}var m=n.getFragment(),g=JSON.stringify(m),y=window.btoa(encodeURIComponent(g));u.setAttribute("data-slate-fragment",y),e.setData("application/".concat(t),y);var b=c.ownerDocument.createElement("div");return b.appendChild(c),b.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(b),e.setData("text/html",b.innerHTML),e.setData("text/plain",ne(b)),c.ownerDocument.body.removeChild(b),e}}},n.insertData=e=>{n.insertFragmentData(e)||n.insertTextData(e)},n.insertFragmentData=e=>{var r=e.getData("application/".concat(t))||oe(e);if(r){var o=decodeURIComponent(window.atob(r)),i=JSON.parse(o);return n.insertFragment(i),!0}return!1},n.insertTextData=e=>{var t=e.getData("text/plain");if(t){var r=t.split(/\r\n|\r|\n/),o=!1;for(var i of r)o&&v.YR.splitNodes(n,{always:!0}),n.insertText(i),o=!0;return!0}return!1},n.onChange=()=>{w.unstable_batchedUpdates((()=>{var e=j.get(n);e&&e(),o()}))},n},Bt=(e,t)=>{var n=[];for(var[r,o]of v.ML.levels(e,{at:t})){var i=we.findKey(e,r);n.push([o,i])}return n}},48321:(e,t)=>{"use strict";for(var n="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),r={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=1;a<20;a++)i["f"+a]=111+a;function s(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return l(e,t)})),o=function(e){return r.some((function(t){return c(t,e)}))};return null==n?o:o(n)}function l(e,t){var n=t&&t.byKey,o={},i=(e=e.replace("++","+add")).split("+"),a=i.length;for(var s in r)o[r[s]]=!1;var l=!0,c=!1,p=void 0;try{for(var h,f=i[Symbol.iterator]();!(l=(h=f.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=d(m),y=r[v];1!==a&&y||(n?o.key=v:o.which=u(m)),y&&(o[y]=!g||null)}}catch(e){c=!0,p=e}finally{try{!l&&f.return&&f.return()}finally{if(c)throw p}}return o}function c(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&((null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r))return!1}return!0}function u(e){return e=d(e),i[e]||e.toUpperCase().charCodeAt(0)}function d(e){return e=e.toLowerCase(),e=o[e]||e}t.TB=function(e,t){return s(e,{byKey:!0},t)}},57645:(e,t,n)=>{"use strict";n.d(t,{VC:()=>c});var r=n(35583),o=n(77493),i={isHistory:e=>(0,r.P)(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||o.OX.isOperationList(e.redos[0].operations))&&(0===e.undos.length||o.OX.isOperationList(e.undos[0].operations))},a=(new WeakMap,new WeakMap),s=new WeakMap,l={isHistoryEditor:e=>i.isHistory(e.history)&&o.ML.isEditor(e),isMerging:e=>s.get(e),isSaving:e=>a.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=l.isMerging(e);s.set(e,!1),t(),s.set(e,n)},withoutSaving(e,t){var n=l.isSaving(e);a.set(e,!1),t(),a.set(e,n)}},c=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];r.selectionBefore&&o.YR.setSelection(t,r.selectionBefore),l.withoutSaving(t,(()=>{o.ML.withoutNormalizing(t,(()=>{for(var e of r.operations)t.apply(e)}))})),e.redos.pop(),t.writeHistory("undos",r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];l.withoutSaving(t,(()=>{o.ML.withoutNormalizing(t,(()=>{var e=r.operations.map(o.OX.inverse).reverse();for(var n of e)t.apply(n);r.selectionBefore&&o.YR.setSelection(t,r.selectionBefore)}))})),t.writeHistory("redos",r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],s=a&&a.operations[a.operations.length-1],c=l.isSaving(t),p=l.isMerging(t);if(null==c&&(c=d(e)),c){if(null==p&&(p=null!=a&&(0!==r.length||u(e,s))),a&&p)a.operations.push(e);else{var h={operations:[e],selectionBefore:t.selection};t.writeHistory("undos",h)}for(;i.length>100;)i.shift();o.redos=[]}n(e)},t.writeHistory=(e,n)=>{t.history[e].push(n)},t},u=(e,t)=>!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!o.y$.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!o.y$.equals(e.path,t.path)),d=(e,t)=>"set_selection"!==e.type},71815:(e,t,n)=>{"use strict";n.d(t,{tZ:()=>E});var r=n(35583),o=n(77493);function i(e){return i="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},i(e)}function a(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=new WeakMap,c=new WeakMap;class u{}class d extends u{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),s(this,"offset",void 0),s(this,"path",void 0);var{offset:t,path:n}=e;this.offset=t,this.path=n}}class p extends u{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),s(this,"offset",void 0),s(this,"path",void 0);var{offset:t,path:n}=e;this.offset=t,this.path=n}}var h=e=>c.get(e);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=new WeakSet,v=e=>{var t=[],n=e=>{if(null!=e){var r=t[t.length-1];if("string"==typeof e){var i={text:e};g.add(i),e=i}if(o.xv.isText(e)){var a=e;o.xv.isText(r)&&g.has(r)&&g.has(a)&&o.xv.equals(r,a,{loose:!0})?r.text+=a.text:t.push(a)}else if(o.W_.isElement(e))t.push(e);else{if(!(e instanceof u))throw new Error("Unexpected hyperscript child object: ".concat(e));var s=t[t.length-1];o.xv.isText(s)||(n(""),s=t[t.length-1]),e instanceof d?((e,t)=>{var n=e.text.length;l.set(e,[n,t])})(s,e):e instanceof p&&((e,t)=>{var n=e.text.length;c.set(e,[n,t])})(s,e)}}};for(var r of e.flat(1/0))n(r);return t};function y(e,t,n){return m(m({},t),{},{children:v(n)})}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x,_={anchor:function(e,t,n){return new d(t)},cursor:function(e,t,n){return[new d(t),new p(t)]},editor:(x=o.Jh,(e,t,n)=>{var r,i=[];for(var a of n)o.e6.isRange(a)?r=a:i.push(a);var s,c=v(i),u={},d=x();for(var[p,f]of(Object.assign(d,t),d.children=c,o.NB.texts(d))){var m=(s=p,l.get(s)),g=h(p);if(null!=m){var[y]=m;u.anchor={path:f,offset:y}}if(null!=g){var[b]=g;u.focus={path:f,offset:b}}}if(u.anchor&&!u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.");if(!u.anchor&&u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />`. For collapsed selections, use `<cursor />` instead.");return null!=r?d.selection=r:o.e6.isRange(u)&&(d.selection=u),d}),element:y,focus:function(e,t,n){return new p(t)},fragment:function(e,t,n){return v(n)},selection:function(e,t,n){var r=n.find((e=>e instanceof d)),o=n.find((e=>e instanceof p));if(!r||null==r.offset||null==r.path)throw new Error("The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.");if(!o||null==o.offset||null==o.path)throw new Error("The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.");return m({anchor:{offset:r.offset,path:r.path},focus:{offset:o.offset,path:o.path}},t)},text:function(e,t,n){var r=v(n);if(r.length>1)throw new Error("The <text> hyperscript tag must only contain a single node's worth of children.");var[i]=r;if(null==i&&(i={text:""}),!o.xv.isText(i))throw new Error("\n    The <text> hyperscript tag can only contain text content as children.");return g.delete(i),Object.assign(i,t),i}},S=e=>function(t,n){for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];var s=e[t];if(!s)throw new Error("No hyperscript creator found for tag: <".concat(t,">"));null==n&&(n={}),(0,r.P)(n)||(i=[n].concat(i),n={});var l=s(t,n,i=i.filter((e=>Boolean(e))).flat());return l},C=e=>{var t={},n=function(){var n=e[r];if("object"!=typeof n)throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(r,">  tag you passed: ").concat(n));t[r]=(e,t,r)=>y(0,w(w({},n),t),r)};for(var r in e)n();return t},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:t={}}=e,n=C(t),r=w(w(w({},_),n),e.creators),o=S(r);return o}()},77493:(e,t,n)=>{"use strict";n.d(t,{E9:()=>H,Jh:()=>zn,ML:()=>L,NB:()=>R,OX:()=>O,W_:()=>A,YR:()=>Ae,e6:()=>P,kR:()=>Qt,o4:()=>U,r4:()=>yn,xv:()=>X,y$:()=>m});var r=n(35583),o=n(28623),i={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=m.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},a={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=H.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},s={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=P.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,m={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=m.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return m.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return m.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return m.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===m.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===m.compare(e,t),isBefore:(e,t)=>-1===m.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===m.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===m.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===m.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===m.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&m.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!m.isAncestor(t,e)&&!m.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:o="forward"}=n;if(0===e.length)return r;switch(t.type){case"insert_node":var{path:i}=t;(m.equals(i,r)||m.endsBefore(i,r)||m.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(m.equals(a,r)||m.isAncestor(a,r))return null;m.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;m.equals(s,r)||m.endsBefore(s,r)?r[s.length-1]-=1:m.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:c,position:u}=t;if(m.equals(c,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else m.endsBefore(c,r)?r[c.length-1]+=1:m.isAncestor(c,r)&&e[c.length]>=u&&(r[c.length-1]+=1,r[c.length]-=u);break;case"move_node":var{path:d,newPath:p}=t;if(m.equals(d,p))return r;if(m.isAncestor(d,r)||m.equals(d,r)){var h=p.slice();return m.endsBefore(d,p)&&d.length<p.length&&(h[d.length-1]-=1),h.concat(r.slice(d.length))}m.isSibling(d,p)&&(m.isAncestor(p,r)||m.equals(p,r))?m.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:m.endsBefore(p,r)||m.equals(p,r)||m.isAncestor(p,r)?(m.endsBefore(d,r)&&(r[d.length-1]-=1),r[p.length-1]+=1):m.endsBefore(d,r)&&(m.equals(p,r)&&(r[p.length-1]+=1),r[d.length-1]-=1)}return r}};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},g(e)}function v(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===g(t)?t:String(t)}function y(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x={transform(e,t){e.children=(0,o.P2)(e.children);var n=e.selection&&(0,o.P2)(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=R.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[s,l]of P.points(t))t[l]=H.transform(s,n);break;case"insert_text":var{path:c,offset:u,text:d}=n;if(0===d.length)break;var p=R.leaf(e,c),h=p.text.slice(0,u),f=p.text.slice(u);if(p.text=h+d+f,t)for(var[g,v]of P.points(t))t[v]=H.transform(g,n);break;case"merge_node":var{path:y}=n,b=R.get(e,y),x=m.previous(y),_=R.get(e,x),S=R.parent(e,y),C=y[y.length-1];if(X.isText(b)&&X.isText(_))_.text+=b.text;else{if(X.isText(b)||X.isText(_))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(U.stringify(b)," ").concat(U.stringify(_)));_.children.push(...b.children)}if(S.children.splice(C,1),t)for(var[E,k]of P.points(t))t[k]=H.transform(E,n);break;case"move_node":var{path:z,newPath:D}=n;if(m.isAncestor(z,D))throw new Error("Cannot move a path [".concat(z,"] to new path [").concat(D,"] because the destination is inside itself."));var A=R.get(e,z),T=R.parent(e,z),I=z[z.length-1];T.children.splice(I,1);var M=m.transform(z,n),F=R.get(e,m.parent(M)),N=M[M.length-1];if(F.children.splice(N,0,A),t)for(var[O,j]of P.points(t))t[j]=H.transform(O,n);break;case"remove_node":var{path:L}=n,B=L[L.length-1];if(R.parent(e,L).children.splice(B,1),t)for(var[K,V]of P.points(t)){var $=H.transform(K,n);if(null!=t&&null!=$)t[V]=$;else{var Z=void 0,q=void 0;for(var[G,W]of R.texts(e)){if(-1!==m.compare(W,L)){q=[G,W];break}Z=[G,W]}var Y=!1;Z&&q&&(Y=m.equals(q[1],L)?!m.hasPrevious(q[1]):m.common(Z[1],L).length<m.common(q[1],L).length),Z&&!Y?(K.path=Z[1],K.offset=Z[0].text.length):q?(K.path=q[1],K.offset=0):t=null}}break;case"remove_text":var{path:Q,offset:J,text:ee}=n;if(0===ee.length)break;var te=R.leaf(e,Q),ne=te.text.slice(0,J),re=te.text.slice(J+ee.length);if(te.text=ne+re,t)for(var[oe,ie]of P.points(t))t[ie]=H.transform(oe,n);break;case"set_node":var{path:ae,properties:se,newProperties:le}=n;if(0===ae.length)throw new Error("Cannot set properties on the root node!");var ce=R.get(e,ae);for(var ue in le){if("children"===ue||"text"===ue)throw new Error('Cannot set the "'.concat(ue,'" property of nodes!'));var de=le[ue];null==de?delete ce[ue]:ce[ue]=de}for(var pe in se)le.hasOwnProperty(pe)||delete ce[pe];break;case"set_selection":var{newProperties:he}=n;if(null==he)t=he;else{if(null==t){if(!P.isRange(he))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(U.stringify(he)," when there is no current selection."));t=w({},he)}for(var fe in he){var me=he[fe];if(null==me){if("anchor"===fe||"focus"===fe)throw new Error('Cannot remove the "'.concat(fe,'" selection property'));delete t[fe]}else t[fe]=me}}break;case"split_node":var{path:ge,position:ve,properties:ye}=n;if(0===ge.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ge,"] because the root node cannot be split."));var be,we=R.get(e,ge),xe=R.parent(e,ge),_e=ge[ge.length-1];if(X.isText(we)){var Se=we.text.slice(0,ve),Ce=we.text.slice(ve);we.text=Se,be=w(w({},ye),{},{text:Ce})}else{var Ee=we.children.slice(0,ve),ke=we.children.slice(ve);we.children=Ee,be=w(w({},ye),{},{children:ke})}if(xe.children.splice(_e+1,0,be),t)for(var[ze,Pe]of P.points(t))t[Pe]=H.transform(ze,n)}return t})(e,n,t)}finally{e.children=(0,o._x)(e.children),e.selection=n?(0,o.mv)(n)?(0,o._x)(n):n:null}}},_={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},S={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},C=(e,t)=>{for(var n in e){var o=e[n],i=t[n];if((0,r.P)(o)&&(0,r.P)(i)){if(!C(o,i))return!1}else if(Array.isArray(o)&&Array.isArray(i)){if(o.length!==i.length)return!1;for(var a=0;a<o.length;a++)if(o[a]!==i[a])return!1}else if(o!==i)return!1}for(var s in t)if(void 0===e[s]&&void 0!==t[s])return!1;return!0};function E(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var k=["anchor","focus"];function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var P={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return P.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=P.edges(e);return t},equals:(e,t)=>H.equals(e.anchor,t.anchor)&&H.equals(e.focus,t.focus),includes(e,t){if(P.isRange(t)){if(P.includes(e,t.anchor)||P.includes(e,t.focus))return!0;var[n,r]=P.edges(e),[o,i]=P.edges(t);return H.isBefore(n,o)&&H.isAfter(r,i)}var[a,s]=P.edges(e),l=!1,c=!1;return H.isPoint(t)?(l=H.compare(t,a)>=0,c=H.compare(t,s)<=0):(l=m.compare(t,a.path)>=0,c=m.compare(t,s.path)<=0),l&&c},intersection(e,t){var n=E(e,k),[r,o]=P.edges(e),[i,a]=P.edges(t),s=H.isBefore(r,i)?i:r,l=H.isBefore(o,a)?o:a;return H.isBefore(l,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return H.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return H.equals(t,n)},isExpanded:e=>!P.isCollapsed(e),isForward:e=>!P.isBackward(e),isRange:e=>(0,r.P)(e)&&H.isPoint(e.anchor)&&H.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=P.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,o.Uy)(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=P.isCollapsed(e);P.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?P.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var s=H.transform(e.anchor,t,{affinity:r}),l=H.transform(e.focus,t,{affinity:o});if(!s||!l)return null;e.anchor=s,e.focus=l}))}},D=e=>(0,r.P)(e)&&R.isNodeList(e.children)&&!L.isEditor(e),A={isAncestor:e=>(0,r.P)(e)&&R.isNodeList(e.children),isElement:D,isElementList:e=>Array.isArray(e)&&e.every((e=>A.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return D(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},T=["children"],I=["text"],M=new WeakMap,R={ancestor(e,t){var n=R.get(e,t);if(X.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(U.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of m.ancestors(t,n)){var o=[R.ancestor(e,r),r];yield o}}()},child(e,t){if(X.isText(e))throw new Error("Cannot get the child of a text node: ".concat(U.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(U.stringify(e)));return n},children(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var{reverse:r=!1}=n,o=R.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var s=R.child(o,a),l=t.concat(a);yield[s,l],a=r?a-1:a+1}}()},common(e,t,n){var r=m.common(t,n);return[R.get(e,r),r]},descendant(e,t){var n=R.get(e,t);if(L.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(U.stringify(n)));return n},descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of R.nodes(e,t))0!==r.length&&(yield[n,r])}()},elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of R.nodes(e,t))A.isElement(n)&&(yield[n,r])}()},extractProps:e=>A.isAncestor(e)?E(e,T):E(e,I),first(e,t){for(var n=t.slice(),r=R.get(e,n);r&&!X.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(X.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(U.stringify(e)));var n=(0,o.Uy)({children:e.children},(e=>{var[n,r]=P.edges(t),o=R.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!P.includes(t,n)}});for(var[,i]of o){if(!P.includes(t,i)){var a=R.parent(e,i),s=i[i.length-1];a.children.splice(s,1)}if(m.equals(i,r.path)){var l=R.leaf(e,i);l.text=l.text.slice(0,r.offset)}if(m.equals(i,n.path)){var c=R.leaf(e,i);c.text=c.text.slice(n.offset)}}L.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(X.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(U.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(X.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>X.isText(e)||A.isElement(e)||L.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=M.get(e);if(void 0!==t)return t;var n=e.every((e=>R.isNode(e)));return M.set(e,n),n},last(e,t){for(var n=t.slice(),r=R.get(e,n);r&&!X.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=R.get(e,t);if(!X.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(U.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of m.levels(t,n)){var o=R.get(e,r);yield[o,r]}}()},matches:(e,t)=>A.isElement(e)&&A.isElementProps(t)&&A.matches(e,t)||X.isText(e)&&X.isTextProps(t)&&X.matches(e,t),nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,s=[],l=e;!i||!(r?m.isBefore(s,i):m.isAfter(s,i));)if(a.has(l)||(yield[l,s]),a.has(l)||X.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!r){var c=m.next(s);if(R.has(e,c)){s=c,l=R.get(e,s);continue}}if(r&&0!==s[s.length-1])s=m.previous(s),l=R.get(e,s);else s=m.parent(s),l=R.get(e,s),a.add(l)}else{a.add(l);var u=r?l.children.length-1:0;m.isAncestor(s,o)&&(u=o[s.length]),s=s.concat(u),l=R.get(e,s)}}()},parent(e,t){var n=m.parent(t),r=R.get(e,n);if(X.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>X.isText(e)?e.text:e.children.map(R.string).join(""),texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of R.nodes(e,t))X.isText(n)&&(yield[n,r])}()}};function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O={isNodeOperation:e=>O.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!(0,r.P)(e))return!1;switch(e.type){case"insert_node":case"remove_node":return m.isPath(e.path)&&R.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&m.isPath(e.path);case"merge_node":return"number"==typeof e.position&&m.isPath(e.path)&&(0,r.P)(e.properties);case"move_node":return m.isPath(e.path)&&m.isPath(e.newPath);case"set_node":return m.isPath(e.path)&&(0,r.P)(e.properties)&&(0,r.P)(e.newProperties);case"set_selection":return null===e.properties&&P.isRange(e.newProperties)||null===e.newProperties&&P.isRange(e.properties)||(0,r.P)(e.properties)&&(0,r.P)(e.newProperties);case"split_node":return m.isPath(e.path)&&"number"==typeof e.position&&(0,r.P)(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>O.isOperation(e))),isSelectionOperation:e=>O.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>O.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return N(N({},e),{},{type:"remove_node"});case"insert_text":return N(N({},e),{},{type:"remove_text"});case"merge_node":return N(N({},e),{},{type:"split_node",path:m.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(m.equals(t,n))return e;if(m.isSibling(n,t))return N(N({},e),{},{path:t,newPath:n});var r=m.transform(n,e),o=m.transform(m.next(n),e);return N(N({},e),{},{path:r,newPath:o});case"remove_node":return N(N({},e),{},{type:"insert_node"});case"remove_text":return N(N({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return N(N({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:l}=e;return N(N({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return N(N({},e),{},{type:"merge_node",path:m.next(e.path)})}}},j=new WeakMap,L={above:(e,t)=>e.above(t),addMark(e,t,n){e.addMark(t,n)},after:(e,t,n)=>e.after(t,n),before:(e,t,n)=>e.before(t,n),deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges:(e,t)=>e.edges(t),elementReadOnly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:(e,t)=>e.end(t),first:(e,t)=>e.first(t),fragment:(e,t)=>e.fragment(t),hasBlocks:(e,t)=>e.hasBlocks(t),hasInlines:(e,t)=>e.hasInlines(t),hasPath:(e,t)=>e.hasPath(t),hasTexts:(e,t)=>e.hasTexts(t),insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>e.isBlock(t),isEdge:(e,t,n)=>e.isEdge(t,n),isEditor:e=>(e=>{var t=j.get(e);if(void 0!==t)return t;if(!(0,r.P)(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isInline&&"function"==typeof e.isSelectable&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||(0,r.P)(e.marks))&&(null===e.selection||P.isRange(e.selection))&&R.isNodeList(e.children)&&O.isOperationList(e.operations);return j.set(e,n),n})(e),isElementReadOnly:(e,t)=>e.isElementReadOnly(t),isEmpty:(e,t)=>e.isEmpty(t),isEnd:(e,t,n)=>e.isEnd(t,n),isInline:(e,t)=>e.isInline(t),isNormalizing:e=>e.isNormalizing(),isSelectable:(e,t)=>e.isSelectable(t),isStart:(e,t,n)=>e.isStart(t,n),isVoid:(e,t)=>e.isVoid(t),last:(e,t)=>e.last(t),leaf:(e,t,n)=>e.leaf(t,n),levels:(e,t)=>e.levels(t),marks:e=>e.getMarks(),next:(e,t)=>e.next(t),node:(e,t,n)=>e.node(t,n),nodes:(e,t)=>e.nodes(t),normalize(e,t){e.normalize(t)},parent:(e,t,n)=>e.parent(t,n),path:(e,t,n)=>e.path(t,n),pathRef:(e,t,n)=>e.pathRef(t,n),pathRefs:e=>e.pathRefs(),point:(e,t,n)=>e.point(t,n),pointRef:(e,t,n)=>e.pointRef(t,n),pointRefs:e=>e.pointRefs(),positions:(e,t)=>e.positions(t),previous:(e,t)=>e.previous(t),range:(e,t,n)=>e.range(t,n),rangeRef:(e,t,n)=>e.rangeRef(t,n),rangeRefs:e=>e.rangeRefs(),removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start:(e,t)=>e.start(t),string:(e,t,n)=>e.string(t,n),unhangRange:(e,t,n)=>e.unhangRange(t,n),void:(e,t)=>e.void(t),withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)},B={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(m.isPath)};function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var H={compare(e,t){var n=m.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===H.compare(e,t),isBefore:(e,t)=>-1===H.compare(e,t),equals:(e,t)=>e.offset===t.offset&&m.equals(e.path,t.path),isPoint:e=>(0,r.P)(e)&&"number"==typeof e.offset&&m.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,o.Uy)(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=m.transform(o,t,n);break;case"insert_text":m.equals(t.path,o)&&(t.offset<i||t.offset===i&&"forward"===r)&&(e.offset+=t.text.length);break;case"merge_node":m.equals(t.path,o)&&(e.offset+=t.position),e.path=m.transform(o,t,n);break;case"remove_text":m.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(m.equals(t.path,o)||m.isAncestor(t.path,o))return null;e.path=m.transform(o,t,n);break;case"split_node":if(m.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=m.transform(o,t,V(V({},n),{},{affinity:"forward"})))}else e.path=m.transform(o,t,n)}}))}},$=void 0,U={setScrubber(e){$=e},stringify:e=>JSON.stringify(e,$)},Z=["text"],q=["anchor","focus"];function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Y,X={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return E(e,Z)}return C(r?o(e):e,r?o(t):t)},isText:e=>(0,r.P)(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>X.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[W({},e)];for(var r of t){var o=E(r,q),[i,a]=P.edges(r),s=[],l=0,c=i.offset,u=a.offset;for(var d of n){var{length:p}=d.text,h=l;if(l+=p,c<=h&&l<=u)Object.assign(d,o),s.push(d);else if(c!==u&&(c===l||u===h)||c>l||u<h||u===h&&0!==h)s.push(d);else{var f=d,m=void 0,g=void 0;if(u<l){var v=u-h;g=W(W({},f),{},{text:f.text.slice(v)}),f=W(W({},f),{},{text:f.text.slice(0,v)})}if(c>h){var y=c-h;m=W(W({},f),{},{text:f.text.slice(0,y)}),f=W(W({},f),{},{text:f.text.slice(y)})}Object.assign(f,o),m&&s.push(m),s.push(f),g&&s.push(g)}}n=s}return n}},Q=e=>e.selection?e.selection:e.children.length>0?L.end(e,[]):[0],J=(e,t)=>{var[n]=L.node(e,t);return e=>e===n},ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?se(e):e,o=Y.None,i=Y.None,a=0,s=null;for(var l of r){var c=l.codePointAt(0);if(!c)break;var u=be(l,c);if([o,i]=n?[i,u]:[u,o],we(o,Y.ZWJ)&&we(i,Y.ExtPict)&&!Ce(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(we(o,Y.RI)&&we(i,Y.RI)&&!(s=null!==s?!s:!!n||ke(e.substring(0,e.length-a))))break;if(o!==Y.None&&i!==Y.None&&_e(o,i))break;a+=l.length}return a||1},te=/\s/,ne=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,re=/['\u2018\u2019]/,oe=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=ee(e,t),[i,a]=ie(e,o,t);if(ae(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n},ie=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},ae=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(te.test(t))return!1;if(re.test(t)){var o=ee(n,r),[i,a]=ie(n,o,r);if(e(i,a,r))return!0}return!ne.test(t)},se=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(ce(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(le(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},le=e=>e>=55296&&e<=56319,ce=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Y||(Y={}));var ue=/^(?:[\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\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,de=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,pe=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,he=/^[\u1100-\u115F\uA960-\uA97C]$/,fe=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,me=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ge=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,ve=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,ye=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,be=(e,t)=>{var n=Y.Any;return-1!==e.search(ue)&&(n|=Y.Extend),8205===t&&(n|=Y.ZWJ),t>=127462&&t<=127487&&(n|=Y.RI),-1!==e.search(de)&&(n|=Y.Prepend),-1!==e.search(pe)&&(n|=Y.SpacingMark),-1!==e.search(he)&&(n|=Y.L),-1!==e.search(fe)&&(n|=Y.V),-1!==e.search(me)&&(n|=Y.T),-1!==e.search(ge)&&(n|=Y.LV),-1!==e.search(ve)&&(n|=Y.LVT),-1!==e.search(ye)&&(n|=Y.ExtPict),n};function we(e,t){return 0!=(e&t)}var xe=[[Y.L,Y.L|Y.V|Y.LV|Y.LVT],[Y.LV|Y.V,Y.V|Y.T],[Y.LVT|Y.T,Y.T],[Y.Any,Y.Extend|Y.ZWJ],[Y.Any,Y.SpacingMark],[Y.Prepend,Y.Any],[Y.ZWJ,Y.ExtPict],[Y.RI,Y.RI]];function _e(e,t){return-1===xe.findIndex((n=>we(e,n[0])&&we(t,n[1])))}var Se=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\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\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Ce=e=>-1!==e.search(Se),Ee=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,ke=e=>{var t=e.match(Ee);return null!==t&&t[0].length/2%2==1},ze={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};L.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=Q(e)}=n;if(m.isPath(o)&&(o=L.range(e,o)),P.isRange(o))if(P.isCollapsed(o))o=o.anchor;else{var i=P.end(o);if(!r&&L.void(e,{at:i}))return;var a=P.start(o),s=L.pointRef(e,a),l=L.pointRef(e,i);Ae.delete(e,{at:o,voids:r});var c=s.unref(),u=l.unref();o=c||u,Ae.setSelection(e,{anchor:o,focus:o})}if(!(!r&&L.void(e,{at:o})||L.elementReadOnly(e,{at:o}))){var{path:d,offset:p}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:p,text:t})}}))}};function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ae=De(De(De(De({},x),_),S),ze),Te=new WeakMap,Ie=(e,t,n)=>{var r=Te.get(e)||!1;Te.set(e,!0);try{t(),n()}finally{Te.set(e,r)}};function Me(e,t,n){var r,o,i=l.get(e)||[],a=c.get(e)||new Set,s=e=>{if(e){var t=e.join(",");o.has(t)||(o.add(t),r.push(e))}};if(n)for(var u of(r=[],o=new Set,i)){s(n(u))}else r=i,o=a;for(var d of t)s(d);l.set(e,r),c.set(e,o)}var Re=(e,t)=>{for(var n of L.pathRefs(e))i.transform(n,t);for(var r of L.pointRefs(e))a.transform(r,t);for(var o of L.rangeRefs(e))s.transform(o,t);if(!(e=>Te.get(e)||!1)(e)){var l=m.operationCanTransformPath(t)?e=>m.transform(e,t):void 0;Me(e,e.getDirtyPaths(t),l)}Ae.transform(e,t),e.operations.push(t),L.normalize(e,{operation:t}),"set_selection"===t.type&&(e.marks=null),u.get(e)||(u.set(e,!0),Promise.resolve().then((()=>{u.set(e,!1),e.onChange({operation:t}),e.operations=[]})))},Fe=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:n}=t;return m.levels(n);case"insert_node":var{node:r,path:o}=t,i=m.levels(o),a=X.isText(r)?[]:Array.from(R.nodes(r),(e=>{var[,t]=e;return o.concat(t)}));return[...i,...a];case"merge_node":var{path:s}=t;return[...m.ancestors(s),m.previous(s)];case"move_node":var{path:l,newPath:c}=t;if(m.equals(l,c))return[];var u=[],d=[];for(var p of m.ancestors(l)){var h=m.transform(p,t);u.push(h)}for(var f of m.ancestors(c)){var g=m.transform(f,t);d.push(g)}var v=d[d.length-1],y=c[c.length-1],b=v.concat(y);return[...u,...d,b];case"remove_node":var{path:w}=t;return[...m.ancestors(w)];case"split_node":var{path:x}=t;return[...m.levels(x),m.next(x)];default:return[]}},Ne=e=>{var{selection:t}=e;return t?R.fragment(e,t):[]},Oe=(e,t)=>{var[n,r]=t;if(!X.isText(n))if(A.isElement(n)&&0===n.children.length){Ae.insertNodes(e,{text:""},{at:r.concat(0),voids:!0})}else for(var o=!L.isEditor(n)&&(A.isElement(n)&&(e.isInline(n)||0===n.children.length||X.isText(n.children[0])||e.isInline(n.children[0]))),i=0,a=0;a<n.children.length;a++,i++){var s=R.get(e,r);if(!X.isText(s)){var l=s.children[i],c=s.children[i-1],u=a===n.children.length-1;if((X.isText(l)||A.isElement(l)&&e.isInline(l))!==o)Ae.removeNodes(e,{at:r.concat(i),voids:!0}),i--;else if(A.isElement(l)){if(e.isInline(l))if(null!=c&&X.isText(c)){if(u){Ae.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++}}else{Ae.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++}}else{if(!X.isText(l)&&!("children"in l))l.children=[];null!=c&&X.isText(c)&&(X.equals(l,c,{loose:!0})?(Ae.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===c.text?(Ae.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===l.text&&(Ae.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}}},je=(e,t)=>{var{iteration:n,initialDirtyPathsLength:r}=t,o=42*r;if(n>o)throw new Error("Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=L.path(e,o),s="lowest"===r;for(var[l,c]of L.levels(e,{at:a,voids:n,match:i,reverse:s}))if(!X.isText(l))if(P.isRange(o)){if(m.isAncestor(c,o.anchor.path)&&m.isAncestor(c,o.focus.path))return[l,c]}else if(!m.equals(a,c))return[l,c]}};function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ve=(e,t,n)=>{var{selection:r}=e;if(r){var o=(t,n)=>{if(!X.isText(t))return!1;var[r,o]=L.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},i=P.isExpanded(r),a=!1;if(!i){var[s,l]=L.node(e,r);if(s&&o(s,l)){var[c]=L.parent(e,l);a=c&&e.markableVoid(c)}}if(i||a)Ae.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var d=Ke(Ke({},L.marks(e)||{}),{},{[t]:n});e.marks=d,u.get(e)||e.onChange()}}};function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ue=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=L.point(e,t,{edge:"end"}),i=L.end(e,[]),a={anchor:o,focus:i},{distance:s=1}=r,l=0;for(var c of L.positions(e,$e($e({},r),{},{at:a}))){if(l>s)break;0!==l&&(n=c),l++}return n};function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ge=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=L.start(e,[]),i=L.point(e,t,{edge:"start"}),a={anchor:o,focus:i},{distance:s=1}=r,l=0;for(var c of L.positions(e,qe(qe({},r),{},{at:a,reverse:!0}))){if(l>s)break;0!==l&&(n=c),l++}return n},We=(e,t)=>{var{selection:n}=e;n&&P.isCollapsed(n)&&Ae.delete(e,{unit:t,reverse:!0})},Ye=(e,t)=>{var{selection:n}=e;n&&P.isCollapsed(n)&&Ae.delete(e,{unit:t})},Xe=function(e){var{direction:t="forward"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e;n&&P.isExpanded(n)&&Ae.delete(e,{reverse:"backward"===t})},Qe=(e,t)=>[L.start(e,t),L.end(e,t)];function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return L.above(e,et(et({},t),{},{match:t=>A.isElement(t)&&L.isElementReadOnly(e,t)}))},nt=(e,t)=>L.point(e,t,{edge:"end"}),rt=(e,t)=>{var n=L.path(e,t,{edge:"start"});return L.node(e,n)},ot=(e,t)=>{var n=L.range(e,t);return R.fragment(e,n)};function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var st=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return L.above(e,at(at({},t),{},{match:t=>A.isElement(t)&&L.isVoid(e,t)}))},lt=(e,t)=>t.children.some((t=>A.isElement(t)&&L.isBlock(e,t))),ct=(e,t)=>t.children.some((t=>X.isText(t)||L.isInline(e,t))),ut=(e,t)=>R.has(e,t),dt=(e,t)=>t.children.every((e=>X.isText(e))),pt=e=>{Ae.splitNodes(e,{always:!0})},ht=(e,t,n)=>{Ae.insertNodes(e,t,n)},ft=e=>{Ae.splitNodes(e,{always:!0})};function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r,marks:o}=e;if(r){if(o){var i=gt({text:t},o);Ae.insertNodes(e,i,{at:n.at,voids:n.voids})}else Ae.insertText(e,t,n);e.marks=null}},yt=(e,t)=>!e.isInline(t),bt=(e,t,n)=>L.isStart(e,t,n)||L.isEnd(e,t,n),wt=(e,t)=>{var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&X.isText(r)&&""===r.text&&!e.isVoid(t)},xt=(e,t,n)=>{var r=L.end(e,n);return H.equals(t,r)},_t=e=>{var t=d.get(e);return void 0===t||t},St=(e,t,n)=>{if(0!==t.offset)return!1;var r=L.start(e,n);return H.equals(t,r)},Ct=(e,t)=>{var n=L.path(e,t,{edge:"end"});return L.node(e,n)},Et=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=L.path(e,t,n),o=R.leaf(e,r);return[o,r]};function kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],s=L.path(e,n);for(var[l,c]of R.levels(e,s))if(i(l,c)&&(a.push([l,c]),!o&&A.isElement(l)&&L.isVoid(e,l)))break;r&&a.reverse(),yield*a}}()}var zt=["text"],Pt=["text"],Dt=function(e){var{marks:t,selection:n}=e;if(!n)return null;var{anchor:r,focus:o}=n;if(t)return t;if(P.isExpanded(n)){if(L.isEnd(e,r,r.path)){var i=L.after(e,r);i&&(r=i)}var[a]=L.nodes(e,{match:X.isText,at:{anchor:r,focus:o}});if(a){var[s]=a;return E(s,zt)}return{}}var{path:l}=r,[c]=L.leaf(e,l);if(0===r.offset){var u=L.previous(e,{at:l,match:X.isText});if(!L.above(e,{match:t=>A.isElement(t)&&L.isVoid(e,t)&&e.markableVoid(t)})){var d=L.above(e,{match:t=>A.isElement(t)&&L.isBlock(e,t)});if(u&&d){var[p,h]=u,[,f]=d;m.isAncestor(f,h)&&(c=p)}}}return E(c,Pt)},At=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=L.after(e,i,{voids:r});if(a){var[,s]=L.last(e,[]),l=[a.path,s];if(m.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(m.isPath(i)){var[c]=L.parent(e,i);o=e=>c.children.includes(e)}else o=()=>!0;var[u]=L.nodes(e,{at:l,match:o,mode:n,voids:r});return u}}},Tt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=L.path(e,t,n),o=R.get(e,r);return[o,r]};function It(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1,ignoreNonSelectable:s=!1}=t,{match:l}=t;if(l||(l=()=>!0),n){var c,u;if(B.isSpan(n))c=n[0],u=n[1];else{var d=L.path(e,n,{edge:"start"}),p=L.path(e,n,{edge:"end"});c=i?p:d,u=i?d:p}var h,f=R.nodes(e,{reverse:i,from:c,to:u,pass:t=>{var[n]=t;return!!A.isElement(n)&&(!(a||!L.isVoid(e,n)&&!L.isElementReadOnly(e,n))||!(!s||L.isSelectable(e,n)))}}),g=[];for(var[v,y]of f)if(!s||!A.isElement(v)||L.isSelectable(e,v)){var b=h&&0===m.compare(y,h[1]);if("highest"!==r||!b)if(l(v,y))if("lowest"===r&&b)h=[v,y];else{var w="lowest"===r?h:[v,y];w&&(o?g.push(w):yield w),h=[v,y]}else if(o&&!b&&X.isText(v))return}"lowest"===r&&h&&(o?g.push(h):yield h),o&&(yield*g)}}()}var Mt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1,operation:r}=t,o=e=>l.get(e)||[],i=e=>c.get(e)||new Set,a=e=>{var t=o(e).pop(),n=t.join(",");return i(e).delete(n),t};if(L.isNormalizing(e)){if(n){var s=Array.from(R.nodes(e),(e=>{var[,t]=e;return t})),u=new Set(s.map((e=>e.join(","))));l.set(e,s),c.set(e,u)}0!==o(e).length&&L.withoutNormalizing(e,(()=>{for(var t of o(e))if(R.has(e,t)){var n=L.node(e,t),[i,s]=n;A.isElement(i)&&0===i.children.length&&e.normalizeNode(n,{operation:r})}for(var l=o(e),c=l.length,u=0;0!==l.length;){if(!e.shouldNormalize({dirtyPaths:l,iteration:u,initialDirtyPathsLength:c,operation:r}))return;var d=a(e);if(R.has(e,d)){var p=L.node(e,d);e.normalizeNode(p,{operation:r})}u++,l=o(e)}}))}},Rt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=L.path(e,t,n),o=m.parent(r),i=L.node(e,o);return i},Ft=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return L.pathRefs(e).delete(o),o.current=null,t}},i=L.pathRefs(e);return i.add(o),o},Nt=e=>{var t=p.get(e);return t||(t=new Set,p.set(e,t)),t},Ot=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(m.isPath(t))if("start"===o){var[,i]=R.first(e,t);t=i}else if("end"===o){var[,a]=R.last(e,t);t=a}return P.isRange(t)&&(t="start"===o?P.start(t):"end"===o?P.end(t):m.common(t.anchor.path,t.focus.path)),H.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},jt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return L.pointRefs(e).delete(o),o.current=null,t}},i=L.pointRefs(e);return i.add(o),o},Lt=e=>{var t=h.get(e);return t||(t=new Set,h.set(e,t)),t},Bt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(m.isPath(t)){var o;if("end"===r){var[,i]=R.last(e,t);o=i}else{var[,a]=R.first(e,t);o=a}var s=R.get(e,o);if(!X.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?s.text.length:0}}if(P.isRange(t)){var[l,c]=P.edges(t);return"start"===r?l:c}return t};function Kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1,ignoreNonSelectable:a=!1}=t;if(n){var s=L.range(e,n),[l,c]=P.edges(s),u=o?c:l,d=!1,p="",h=0,f=0,g=0;for(var[v,y]of L.nodes(e,{at:n,reverse:o,voids:i,ignoreNonSelectable:a})){if(A.isElement(v)){if(!i&&(e.isVoid(v)||e.isElementReadOnly(v))){yield L.start(e,y);continue}if(e.isInline(v))continue;if(L.hasInlines(e,v)){var b=m.isAncestor(y,c.path)?c:L.end(e,y),w=m.isAncestor(y,l.path)?l:L.start(e,y);p=L.string(e,{anchor:w,focus:b},{voids:i}),d=!0}}if(X.isText(v)){var x=m.equals(y,u.path);for(x?(f=o?u.offset:v.text.length-u.offset,g=u.offset):(f=v.text.length,g=o?f:0),(x||d||"offset"===r)&&(yield{path:y,offset:g},d=!1);;){if(0===h){if(""===p)break;h=_(p,r,o),p=ie(p,h,o)[1]}if(g=o?g-h:g+h,(f-=h)<0){h=-f;break}h=0,yield{path:y,offset:g}}}}}function _(e,t,n){return"character"===t?ee(e,n):"word"===t?oe(e,n):"line"===t||"block"===t?e.length:1}}()}var Vt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=L.before(e,i,{voids:r});if(a){var[,s]=L.first(e,[]),l=[a.path,s];if(m.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(m.isPath(i)){var[c]=L.parent(e,i);o=e=>c.children.includes(e)}else o=()=>!0;var[u]=L.nodes(e,{reverse:!0,at:l,match:o,mode:n,voids:r});return u}}},Ht=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return L.rangeRefs(e).delete(o),o.current=null,t}},i=L.rangeRefs(e);return i.add(o),o},$t=e=>{var t=f.get(e);return t||(t=new Set,f.set(e,t)),t},Ut=(e,t,n)=>P.isRange(t)&&!n?t:{anchor:L.start(e,t),focus:L.end(e,n||t)};function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var qt=(e,t)=>{var{selection:n}=e;if(n){var r=(t,n)=>{if(!X.isText(t))return!1;var[r,o]=L.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},o=P.isExpanded(n),i=!1;if(!o){var[a,s]=L.node(e,n);if(a&&r(a,s)){var[l]=L.parent(e,s);i=l&&e.markableVoid(l)}}if(o||i)Ae.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},L.marks(e)||{});delete c[t],e.marks=c,u.get(e)||e.onChange()}}},Gt=(e,t)=>{d.set(e,t)},Wt=(e,t)=>L.point(e,t,{edge:"start"}),Yt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=L.range(e,t),[i,a]=P.edges(o),s="";for(var[l,c]of L.nodes(e,{at:o,match:X.isText,voids:r})){var u=l.text;m.equals(c,a.path)&&(u=u.slice(0,a.offset)),m.equals(c,i.path)&&(u=u.slice(i.offset)),s+=u}return s},Xt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=P.edges(t);if(0!==o.offset||0!==i.offset||P.isCollapsed(t)||m.hasPrevious(i.path))return t;var a=L.above(e,{at:i,match:t=>A.isElement(t)&&L.isBlock(e,t),voids:r}),s=a?a[1]:[],l=L.start(e,o),c={anchor:l,focus:i},u=!0;for(var[d,p]of L.nodes(e,{at:c,match:X.isText,reverse:!0,voids:r}))if(u)u=!1;else if(""!==d.text||m.isBefore(p,s)){i={path:p,offset:d.text.length};break}return{anchor:o,focus:i}},Qt=(e,t)=>{var n=L.isNormalizing(e);L.setNormalizing(e,!1);try{t()}finally{L.setNormalizing(e,n)}L.normalize(e)},Jt=(e,t,n)=>{var[r,o]=t;return A.isElement(r)&&L.isEmpty(e,r)||X.isText(r)&&""===r.text&&0!==o[o.length-1]},en=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L.withoutNormalizing(e,(()=>{var n,r,{reverse:o=!1,unit:i="character",distance:a=1,voids:s=!1}=t,{at:l=e.selection,hanging:c=!1}=t;if(l){var u=!1;if(P.isRange(l)&&P.isCollapsed(l)&&(u=!0,l=l.anchor),H.isPoint(l)){var d=L.void(e,{at:l,mode:"highest"});if(!s&&d){var[,p]=d;l=p}else{var h={unit:i,distance:a};l={anchor:l,focus:o?L.before(e,l,h)||L.start(e,[]):L.after(e,l,h)||L.end(e,[])},c=!0}}if(m.isPath(l))Ae.removeNodes(e,{at:l,voids:s});else if(!P.isCollapsed(l)){if(!c){var[,f]=P.edges(l),g=L.end(e,[]);H.equals(f,g)||(l=L.unhangRange(e,l,{voids:s}))}var[v,y]=P.edges(l),b=L.above(e,{match:t=>A.isElement(t)&&L.isBlock(e,t),at:v,voids:s}),w=L.above(e,{match:t=>A.isElement(t)&&L.isBlock(e,t),at:y,voids:s}),x=b&&w&&!m.equals(b[1],w[1]),_=m.equals(v.path,y.path),S=s?null:null!==(n=L.void(e,{at:v,mode:"highest"}))&&void 0!==n?n:L.elementReadOnly(e,{at:v,mode:"highest"}),C=s?null:null!==(r=L.void(e,{at:y,mode:"highest"}))&&void 0!==r?r:L.elementReadOnly(e,{at:y,mode:"highest"});if(S){var E=L.before(e,v);E&&b&&m.isAncestor(b[1],E.path)&&(v=E)}if(C){var k=L.after(e,y);k&&w&&m.isAncestor(w[1],k.path)&&(y=k)}var z,D=[];for(var T of L.nodes(e,{at:l,voids:s})){var[I,M]=T;z&&0===m.compare(M,z)||(!s&&A.isElement(I)&&(L.isVoid(e,I)||L.isElementReadOnly(e,I))||!m.isCommon(M,v.path)&&!m.isCommon(M,y.path))&&(D.push(T),z=M)}var R=Array.from(D,(t=>{var[,n]=t;return L.pathRef(e,n)})),F=L.pointRef(e,v),N=L.pointRef(e,y),O="";if(!_&&!S){var j=F.current,[B]=L.leaf(e,j),{path:K}=j,{offset:V}=v,$=B.text.slice(V);$.length>0&&(e.apply({type:"remove_text",path:K,offset:V,text:$}),O=$)}if(R.reverse().map((e=>e.unref())).filter((e=>null!==e)).forEach((t=>Ae.removeNodes(e,{at:t,voids:s}))),!C){var U=N.current,[Z]=L.leaf(e,U),{path:q}=U,G=_?v.offset:0,W=Z.text.slice(G,y.offset);W.length>0&&(e.apply({type:"remove_text",path:q,offset:G,text:W}),O=W)}!_&&x&&N.current&&F.current&&Ae.mergeNodes(e,{at:N.current,hanging:!0,voids:s}),u&&o&&"character"===i&&O.length>1&&O.match(/[\u0E00-\u0E7F]+/)&&Ae.insertText(e,O.slice(0,O.length-a));var Y=F.unref(),X=N.unref(),Q=o?Y||X:X||Y;null==t.at&&Q&&Ae.select(e,Q)}}}))},tn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};L.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=Q(e),batchDirty:a=!0}=n;if(t.length){if(P.isRange(i))if(r||(i=L.unhangRange(e,i,{voids:o})),P.isCollapsed(i))i=i.anchor;else{var[,s]=P.edges(i);if(!o&&L.void(e,{at:s}))return;var l=L.pointRef(e,s);Ae.delete(e,{at:i}),i=l.unref()}else m.isPath(i)&&(i=L.start(e,i));if(o||!L.void(e,{at:i})){var c=L.above(e,{at:i,match:t=>A.isElement(t)&&L.isInline(e,t),mode:"highest",voids:o});if(c){var[,u]=c;if(L.isEnd(e,i,u))i=L.after(e,u);else if(L.isStart(e,i,u)){i=L.before(e,u)}}var d=L.above(e,{match:t=>A.isElement(t)&&L.isBlock(e,t),at:i,voids:o}),[,p]=d,h=L.isStart(e,i,p),f=L.isEnd(e,i,p),g=h&&f,v=!h||h&&f,y=!f,[,b]=R.first({children:t},[]),[,w]=R.last({children:t},[]),x=[],_=t=>{var[n,r]=t;return!(0===r.length)&&(!!g||!(v&&m.isAncestor(r,b)&&A.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(y&&m.isAncestor(r,w)&&A.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var S of R.nodes({children:t},{pass:_}))_(S)&&x.push(S);var C=[],E=[],k=[],z=!0,D=!1;for(var[T]of x)A.isElement(T)&&!e.isInline(T)?(z=!1,D=!0,E.push(T)):z?C.push(T):k.push(T);var[I]=L.nodes(e,{at:i,match:t=>X.isText(t)||L.isInline(e,t),mode:"highest",voids:o}),[,M]=I,F=L.isStart(e,i,M),N=L.isEnd(e,i,M),O=L.pathRef(e,f&&!k.length?m.next(p):p),j=L.pathRef(e,N?m.next(M):M);Ae.splitNodes(e,{at:i,match:t=>D?A.isElement(t)&&L.isBlock(e,t):X.isText(t)||L.isInline(e,t),mode:D?"lowest":"highest",always:D&&(!h||C.length>0)&&(!f||k.length>0),voids:o});var B,K=L.pathRef(e,!F||F&&N?m.next(M):M);if(Ae.insertNodes(e,C,{at:K.current,match:t=>X.isText(t)||L.isInline(e,t),mode:"highest",voids:o,batchDirty:a}),g&&!C.length&&E.length&&!k.length&&Ae.delete(e,{at:p,voids:o}),Ae.insertNodes(e,E,{at:O.current,match:t=>A.isElement(t)&&L.isBlock(e,t),mode:"lowest",voids:o,batchDirty:a}),Ae.insertNodes(e,k,{at:j.current,match:t=>X.isText(t)||L.isInline(e,t),mode:"highest",voids:o,batchDirty:a}),!n.at)if(k.length>0&&j.current?B=m.previous(j.current):E.length>0&&O.current?B=m.previous(O.current):K.current&&(B=m.previous(K.current)),B){var V=L.end(e,B);Ae.select(e,V)}K.unref(),O.unref(),j.unref()}}}))},nn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)Ae.select(e,r.anchor);else if("focus"===n)Ae.select(e,r.focus);else if("start"===n){var[o]=P.edges(r);Ae.select(e,o)}else if("end"===n){var[,i]=P.edges(r);Ae.select(e,i)}},rn=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},on=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=P.isBackward(n)?"focus":"anchor"),"end"===a&&(a=P.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,c={distance:r,unit:o,ignoreNonSelectable:!0},u={};if(null==a||"anchor"===a){var d=i?L.before(e,s,c):L.after(e,s,c);d&&(u.anchor=d)}if(null==a||"focus"===a){var p=i?L.before(e,l,c):L.after(e,l,c);p&&(u.focus=p)}Ae.setSelection(e,u)}},an=(e,t)=>{var{selection:n}=e;if(t=L.range(e,t),n)Ae.setSelection(e,t);else{if(!P.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(U.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}};function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=P.isBackward(r)?"focus":"anchor"),"end"===o&&(o=P.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,s="anchor"===o?i:a;Ae.setSelection(e,{["anchor"===o?"anchor":"focus"]:ln(ln({},s),t)})}},un=(e,t)=>{var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!H.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!H.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}},dn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};L.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest",batchDirty:a=!0}=n,{at:s,match:l,select:c}=n;if(R.isNode(t)&&(t=[t]),0!==t.length){var[u]=t;if(s||(s=Q(e),!1!==c&&(c=!0)),null==c&&(c=!1),P.isRange(s))if(r||(s=L.unhangRange(e,s,{voids:o})),P.isCollapsed(s))s=s.anchor;else{var[,d]=P.edges(s),p=L.pointRef(e,d);Ae.delete(e,{at:s}),s=p.unref()}if(H.isPoint(s)){null==l&&(l=X.isText(u)?e=>X.isText(e):e.isInline(u)?t=>X.isText(t)||L.isInline(e,t):t=>A.isElement(t)&&L.isBlock(e,t));var[h]=L.nodes(e,{at:s.path,match:l,mode:i,voids:o});if(!h)return;var[,f]=h,g=L.pathRef(e,f),v=L.isEnd(e,s,f);Ae.splitNodes(e,{at:s,match:l,mode:i,voids:o});var y=g.unref();s=v?m.next(y):y}var b=m.parent(s),w=s[s.length-1];if(o||!L.void(e,{at:b})){if(a){var x=[],_=m.levels(b);Ie(e,(()=>{var n=function(){var t=b.concat(w);w++;var n={type:"insert_node",path:t,node:r};e.apply(n),s=m.next(s),x.push(n),X.isText?_.push(...Array.from(R.nodes(r),(e=>{var[,n]=e;return t.concat(n)}))):_.push(t)};for(var r of t)n()}),(()=>{Me(e,_,(e=>{var t=e;for(var n of x)if(m.operationCanTransformPath(n)&&!(t=m.transform(t,n)))return null;return t}))}))}else for(var S of t){var C=b.concat(w);w++,e.apply({type:"insert_node",path:C,node:S}),s=m.next(s)}if(s=m.previous(s),c){var E=L.end(e,s);E&&Ae.select(e,E)}}}}))},pn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=m.isPath(n)?J(e,n):t=>A.isElement(t)&&L.isBlock(e,t)),n){var a=L.nodes(e,{at:n,match:i,mode:r,voids:o}),s=Array.from(a,(t=>{var[,n]=t;return L.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var u=L.node(e,m.parent(c)),[d,p]=u,h=c[c.length-1],{length:f}=d.children;if(1===f){var g=m.next(p);Ae.moveNodes(e,{at:c,to:g,voids:o}),Ae.removeNodes(e,{at:p,voids:o})}else if(0===h)Ae.moveNodes(e,{at:c,to:p,voids:o});else if(h===f-1){var v=m.next(p);Ae.moveNodes(e,{at:c,to:v,voids:o})}else{var y=m.next(c),b=m.next(p);Ae.splitNodes(e,{at:y,voids:o}),Ae.moveNodes(e,{at:c,to:b,voids:o})}}}}))},hn=["text"],fn=["children"],mn=(e,t)=>{if(A.isElement(t)){var n=t;return!!L.isVoid(e,t)||1===n.children.length&&mn(e,n.children[0])}return!L.isEditor(t)},gn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(m.isPath(r)){var[s]=L.parent(e,r);n=e=>s.children.includes(e)}else n=t=>A.isElement(t)&&L.isBlock(e,t);if(!o&&P.isRange(r)&&(r=L.unhangRange(e,r,{voids:i})),P.isRange(r))if(P.isCollapsed(r))r=r.anchor;else{var[,l]=P.edges(r),c=L.pointRef(e,l);Ae.delete(e,{at:r}),r=c.unref(),null==t.at&&Ae.select(e,r)}var[u]=L.nodes(e,{at:r,match:n,voids:i,mode:a}),d=L.previous(e,{at:r,match:n,voids:i,mode:a});if(u&&d){var[p,h]=u,[f,g]=d;if(0!==h.length&&0!==g.length){var v,y,b=m.next(g),w=m.common(h,g),x=m.isSibling(h,g),_=Array.from(L.levels(e,{at:h}),(e=>{var[t]=e;return t})).slice(w.length).slice(0,-1),S=L.above(e,{at:h,mode:"highest",match:t=>_.includes(t)&&mn(e,t)}),C=S&&L.pathRef(e,S[1]);if(X.isText(p)&&X.isText(f)){var k=E(p,hn);y=f.text.length,v=k}else{if(!A.isElement(p)||!A.isElement(f))throw new Error("Cannot merge the node at path [".concat(h,"] with the previous sibling because it is not the same kind: ").concat(U.stringify(p)," ").concat(U.stringify(f)));k=E(p,fn);y=f.children.length,v=k}x||Ae.moveNodes(e,{at:h,to:b,voids:i}),C&&Ae.removeNodes(e,{at:C.current,voids:i}),L.shouldMergeNodesRemovePrevNode(e,d,u)?Ae.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:b,position:y,properties:v}),C&&C.unref()}}}}))},vn=(e,t)=>{L.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=m.isPath(r)?J(e,r):t=>A.isElement(t)&&L.isBlock(e,t));var s=L.pathRef(e,n),l=L.nodes(e,{at:r,match:a,mode:o,voids:i}),c=Array.from(l,(t=>{var[,n]=t;return L.pathRef(e,n)}));for(var u of c){var d=u.unref(),p=s.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:p}),s.current&&m.isSibling(p,d)&&m.isAfter(p,d)&&(s.current=m.next(s.current))}s.unref()}}))},yn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=m.isPath(i)?J(e,i):t=>A.isElement(t)&&L.isBlock(e,t)),!n&&P.isRange(i)&&(i=L.unhangRange(e,i,{voids:r}));var s=L.nodes(e,{at:i,match:a,mode:o,voids:r}),l=Array.from(s,(t=>{var[,n]=t;return L.pathRef(e,n)}));for(var c of l){var u=c.unref();if(u){var[d]=L.node(e,u);e.apply({type:"remove_node",path:u,node:d})}}}}))},bn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};L.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection,compare:i,merge:a}=n,{hanging:s=!1,mode:l="lowest",split:c=!1,voids:u=!1}=n;if(o){if(null==r&&(r=m.isPath(o)?J(e,o):t=>A.isElement(t)&&L.isBlock(e,t)),!s&&P.isRange(o)&&(o=L.unhangRange(e,o,{voids:u})),c&&P.isRange(o)){if(P.isCollapsed(o)&&L.leaf(e,o.anchor)[0].text.length>0)return;var d=L.rangeRef(e,o,{affinity:"inward"}),[p,h]=P.edges(o),f="lowest"===l?"lowest":"highest",g=L.isEnd(e,h,h.path);Ae.splitNodes(e,{at:h,match:r,mode:f,voids:u,always:!g});var v=L.isStart(e,p,p.path);Ae.splitNodes(e,{at:p,match:r,mode:f,voids:u,always:!v}),o=d.unref(),null==n.at&&Ae.select(e,o)}for(var[y,b]of(i||(i=(e,t)=>e!==t),L.nodes(e,{at:o,match:r,mode:l,voids:u}))){var w={},x={};if(0!==b.length){var _=!1;for(var S in t)"children"!==S&&"text"!==S&&i(t[S],y[S])&&(_=!0,y.hasOwnProperty(S)&&(w[S]=y[S]),a?null!=t[S]&&(x[S]=a(y[S],t[S])):null!=t[S]&&(x[S]=t[S]));_&&e.apply({type:"set_node",path:b,properties:w,newProperties:x})}}}}))},wn=(e,t)=>{if(P.isCollapsed(t))return t.anchor;var[,n]=P.edges(t),r=L.pointRef(e,n);return Ae.delete(e,{at:t}),r.unref()},xn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:s=!1}=t;if(null==o&&(o=t=>A.isElement(t)&&L.isBlock(e,t)),P.isRange(i)&&(i=wn(e,i)),m.isPath(i)){var l=i,c=L.point(e,l),[u]=L.parent(e,l);o=e=>e===u,a=c.path.length-l.length+1,i=c,s=!0}if(i){var d,p=L.pointRef(e,i,{affinity:"backward"});try{var[h]=L.nodes(e,{at:i,match:o,mode:n,voids:r});if(!h)return;var f=L.void(e,{at:i,mode:"highest"});if(!r&&f){var[g,v]=f;if(A.isElement(g)&&e.isInline(g)){var y=L.after(e,v);if(!y){var b=m.next(v);Ae.insertNodes(e,{text:""},{at:b,voids:r}),y=L.point(e,b)}i=y,s=!0}a=i.path.length-v.length+1,s=!0}d=L.pointRef(e,i);var w=i.path.length-a,[,x]=h,_=i.path.slice(0,w),S=0===a?i.offset:i.path[w]+0;for(var[C,E]of L.levels(e,{at:_,reverse:!0,voids:r})){var k=!1;if(E.length<x.length||0===E.length||!r&&A.isElement(C)&&L.isVoid(e,C))break;var z=p.current,D=L.isEnd(e,z,E);if(s||!p||!L.isEdge(e,z,E)){k=!0;var T=R.extractProps(C);e.apply({type:"split_node",path:E,position:S,properties:T})}S=E[E.length-1]+(k||D?1:0)}if(null==t.at){var I=d.current||L.end(e,[]);Ae.select(e,I)}}finally{var M;p.unref(),null===(M=d)||void 0===M||M.unref()}}}))},_n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;Ae.setNodes(e,r,n)},Sn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=m.isPath(i)?J(e,i):t=>A.isElement(t)&&L.isBlock(e,t)),m.isPath(i)&&(i=L.range(e,i));var s=P.isRange(i)?L.rangeRef(e,i):null,l=L.nodes(e,{at:i,match:a,mode:n,voids:o}),c=Array.from(l,(t=>{var[,n]=t;return L.pathRef(e,n)})).reverse(),u=function(){var t=d.unref(),[n]=L.node(e,t),i=L.range(e,t);r&&s&&(i=P.intersection(s.current,i)),Ae.liftNodes(e,{at:i,match:e=>A.isAncestor(n)&&n.children.includes(e),voids:o})};for(var d of c)u();s&&s.unref()}}))};function Cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};L.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=m.isPath(s)?J(e,s):e.isInline(t)?t=>A.isElement(t)&&L.isInline(e,t)||X.isText(t):t=>A.isElement(t)&&L.isBlock(e,t)),o&&P.isRange(s)){var[l,c]=P.edges(s),u=L.rangeRef(e,s,{affinity:"inward"});Ae.splitNodes(e,{at:c,match:a,voids:i}),Ae.splitNodes(e,{at:l,match:a,voids:i}),s=u.unref(),null==n.at&&Ae.select(e,s)}var d=Array.from(L.nodes(e,{at:s,match:e.isInline(t)?t=>A.isElement(t)&&L.isBlock(e,t):e=>L.isEditor(e),mode:"lowest",voids:i})),p=function(){var n=P.isRange(s)?P.intersection(s,L.range(e,h)):s;if(!n)return 0;var o=Array.from(L.nodes(e,{at:n,match:a,mode:r,voids:i}));if(o.length>0){var[l]=o,c=o[o.length-1],[,u]=l,[,d]=c;if(0===u.length&&0===d.length)return 0;var p=m.equals(u,d)?m.parent(u):m.common(u,d),f=L.range(e,u,d),g=L.node(e,p),[v]=g,y=p.length+1,b=m.next(d.slice(0,y)),w=En(En({},t),{},{children:[]});Ae.insertNodes(e,w,{at:b,voids:i}),Ae.moveNodes(e,{at:f,match:e=>A.isAncestor(v)&&v.children.includes(e),to:b.concat(0),voids:i})}};for(var[,h]of d)p()}}))},zn=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Re(e,...n)},addMark:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ve(e,...n)},deleteBackward:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return We(e,...n)},deleteForward:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ye(e,...n)},deleteFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Xe(e,...n)},getFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ne(e,...n)},insertBreak:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return pt(e,...n)},insertSoftBreak:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ft(e,...n)},insertFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return tn(e,...n)},insertNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ht(e,...n)},insertText:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return vt(e,...n)},normalizeNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Oe(e,...n)},removeMark:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return qt(e,...n)},getDirtyPaths:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Fe(e,...n)},shouldNormalize:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return je(e,...n)},above:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Le(e,...n)},after:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ue(e,...n)},before:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ge(e,...n)},collapse:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nn(e,...n)},delete:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return en(e,...n)},deselect:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rn(e,...n)},edges:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Qe(e,...n)},elementReadOnly:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return tt(e,...n)},end:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nt(e,...n)},first:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rt(e,...n)},fragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ot(e,...n)},getMarks:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Dt(e,...n)},hasBlocks:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return lt(e,...n)},hasInlines:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ct(e,...n)},hasPath:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ut(e,...n)},hasTexts:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dt(e,...n)},insertNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dn(e,...n)},isBlock:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return yt(e,...n)},isEdge:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bt(e,...n)},isEmpty:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return wt(e,...n)},isEnd:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xt(e,...n)},isNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _t(e,...n)},isStart:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return St(e,...n)},last:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ct(e,...n)},leaf:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Et(e,...n)},levels:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return kt(e,...n)},liftNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return pn(e,...n)},mergeNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gn(e,...n)},move:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return on(e,...n)},moveNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return vn(e,...n)},next:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return At(e,...n)},node:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Tt(e,...n)},nodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return It(e,...n)},normalize:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Mt(e,...n)},parent:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Rt(e,...n)},path:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ot(e,...n)},pathRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ft(e,...n)},pathRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Nt(e,...n)},point:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Bt(e,...n)},pointRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return jt(e,...n)},pointRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Lt(e,...n)},positions:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Kt(e,...n)},previous:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Vt(e,...n)},range:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ut(e,...n)},rangeRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ht(e,...n)},rangeRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $t(e,...n)},removeNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return yn(e,...n)},select:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return an(e,...n)},setNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bn(e,...n)},setNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gt(e,...n)},setPoint:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return cn(e,...n)},setSelection:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return un(e,...n)},splitNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xn(e,...n)},start:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Wt(e,...n)},string:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Yt(e,...n)},unhangRange:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Xt(e,...n)},unsetNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _n(e,...n)},unwrapNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Sn(e,...n)},void:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return st(e,...n)},withoutNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Qt(e,...n)},wrapNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return kn(e,...n)},shouldMergeNodesRemovePrevNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Jt(e,...n)}};return e}},95189:e=>{e.exports='<svg viewBox="0 0 16 5" fill="black" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="2" r="1.5" transform="rotate(-180 8 2)"></circle><circle cx="14.5" cy="2" r="1.5" transform="rotate(-180 14.5 2)"></circle><circle cx="1.5" cy="2" r="1.5" transform="rotate(-180 1.5 2)"></circle></svg>'},33150:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M4 4.25c-.41 0-.75.34-.75.75v2.73c0 .41.34.75.75.75s.75-.34.75-.75V5.75h5.5v13.5H8.2c-.41 0-.75.34-.75.75s.34.75.75.75h5.6c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.05V5.75h5.5v1.98c0 .41.34.75.75.75s.75-.34.75-.75V5c0-.41-.34-.75-.75-.75H4ZM20.75 17c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H17c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V23c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H23c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25V17Z"></path></svg>'},84768:e=>{e.exports='<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><path d="M20 12.043v17.204m8.602-8.602H11.398" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><circle cx="20" cy="20" r="19" stroke="currentColor" stroke-width="2"></circle></svg>'},41725:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="31" height="31" viewBox="-6 -6 37 37" fill="currentColor"><path fill-rule="evenodd" d="M10.5 2c0-.83.67-1.5 1.5-1.5h6c.4 0 .78.16 1.06.44l4 4c.28.28.44.66.44 1.06v10c0 .83-.67 1.5-1.5 1.5H12c-.83 0-1.5-.67-1.5-1.5V2ZM12 16V2h6v3c0 .55.45 1 1 1h3v10H12ZM7 3.5h2V5H7v14h11.5c0 .83-.67 1.5-1.5 1.5H7c-.83 0-1.5-.67-1.5-1.5V5c0-.83.67-1.5 1.5-1.5Zm-5 3h2V8H2v14h11.5c0 .83-.67 1.5-1.5 1.5H2c-.83 0-1.5-.67-1.5-1.5V8c0-.83.67-1.5 1.5-1.5Z" clip-rule="evenodd"></path></svg>'},58817:e=>{e.exports='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="4" fill="currentColor" fill-opacity="0.5"></circle></svg>'},87779:e=>{e.exports='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="4" fill="currentColor" fill-opacity="0.5"></circle></svg>'},83104:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m20.12 5.063-.68-.68a2.746 2.746 0 0 0-3.88 0l-12.8 12.8c-.33.32-.51.77-.51 1.23v3.34h4.34c.46 0 .91-.18 1.23-.51l12.3-12.3a2.746 2.746 0 0 0 0-3.88ZM6.76 20.183s-.11.07-.17.07H3.75v-1.84c0-.06.03-.13.07-.17L14 8.063l2.44 2.44-9.68 9.68Zm12.3-12.3-1.56 1.56-2.44-2.44 1.56-1.56c.48-.48 1.28-.48 1.76 0l.68.68c.48.48.48 1.28 0 1.76ZM23 21.753H9.43l1.5-1.5H23c.41 0 .75.34.75.75s-.34.75-.75.75Z" clip-rule="evenodd"></path></svg>'},33751:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M14.12 1.101c1.65-1.16 3.95-.48 4.72 1.38l2.11 5.11h1.56c.5 0 .9.4.9.9s-.4.9-.9.9H1.5c-.5 0-.9-.4-.9-.9s.4-.9.9-.9h1.56l2.11-5.11c.76-1.86 3.06-2.53 4.71-1.38l1.17.82c.57.4 1.32.4 1.89 0l1.17-.82h.01Zm3.33 1.96 1.87 4.54H4.68l1.87-4.54c.4-.98 1.61-1.33 2.47-.72l1.17.82c1.08.76 2.53.76 3.61 0l1.17-.82c.87-.61 2.07-.25 2.47.72h.01Zm-13.7 7.69h16.5v1c0 2.21-1.79 4-4 4-2.04 0-3.72-1.53-3.97-3.5h-.56a4.007 4.007 0 0 1-3.97 3.5c-2.21 0-4-1.79-4-4v-1Zm1.55 1.5a2.5 2.5 0 0 0 4.9 0H5.3Zm8.5 0a2.5 2.5 0 0 0 4.9 0h-4.9Zm-11.8 5a.76.76 0 0 0-.67.41c-.13.25-.11.55.06.78l2.03 2.84-1.8 1.08c-.36.21-.47.67-.26 1.03.21.36.67.47 1.03.26l2.5-1.5c.18-.11.31-.29.35-.49.04-.2 0-.42-.12-.59l-1.65-2.31h7.79v4.25c0 .41.34.75.75.75s.75-.34.75-.75v-4.25h7.79l-1.65 2.31c-.12.17-.17.38-.12.59.04.2.17.38.35.49l2.5 1.5c.36.21.82.1 1.03-.26.21-.36.1-.82-.26-1.03l-1.8-1.08 2.03-2.84c.16-.23.19-.53.06-.78a.76.76 0 0 0-.67-.41H2Z" clip-rule="evenodd"></path></svg>'},497:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.97 3.97a.75.75 0 0 1 1.06 0L20.06 12l-8.03 8.03a.75.75 0 1 1-1.06-1.06l6.22-6.22H4a.75.75 0 0 1 0-1.5h13.19l-6.22-6.22a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"></path></svg>'},96421:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.47 12.53a.75.75 0 0 0 1.06 0l6.22-6.22V19.5a.75.75 0 0 0 1.5 0V6.31l6.22 6.22a.75.75 0 1 0 1.06-1.06L11.5 3.44l-8.03 8.03a.75.75 0 0 0 0 1.06Z" clip-rule="evenodd"></path></svg>'},1291:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M15.25 2a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V3.81L2.53 22.53a.75.75 0 0 1-1.06-1.06L20.19 2.75H16a.75.75 0 0 1-.75-.75Z" clip-rule="evenodd"></path></svg>'},1126:e=>{e.exports='<svg width="9" height="14" viewBox="0 0 9 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path id="Vector 527" d="M1 1L7 7L1 13" stroke="currentColor" stroke-width="2"></path></svg>'},39127:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.5 3.5v12H7V8a1 1 0 0 1 1-1h7.5V3.5h-12ZM3 17h4v4a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-4V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1Zm17.5-8.5H17V16a1 1 0 0 1-1 1H8.5v3.5h12v-12Zm-5 1.94V8.5h-1.94l1.94 1.94Zm0 2.06-.03.03-4-4 .03-.03H9.56l5.94 5.94V12.5Zm-1.06 3L8.5 9.56v1.94l.03-.03 4 4-.03.03h1.94Zm-4 0L8.5 13.56v1.94h1.94Z" clip-rule="evenodd"></path></svg>'},6274:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M6 18.74c0 .696.564 1.26 1.26 1.26h5.79c3.321 0 5.357-1.586 5.357-4.221 0-1.8-1.028-3.172-2.871-3.579 1.543-.579 2.293-1.693 2.293-3.321C17.829 6.543 16.093 5 13.22 5H7.26A1.26 1.26 0 0 0 6 6.26v12.48Zm3.6-7.89V8h2.807c1.136 0 1.757.557 1.757 1.393 0 .921-.685 1.457-1.693 1.457H9.6Zm0 6.15v-3.15h3.171c1.286 0 1.993.6 1.993 1.564 0 1.029-.793 1.586-1.928 1.586H9.6Z"></path></svg>'},79439:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M9 1.25A2.75 2.75 0 0 0 6.25 4v18a.75.75 0 0 0 1.296.515L12 17.793l4.454 4.722A.75.75 0 0 0 17.75 22V4A2.75 2.75 0 0 0 15 1.25H9Z"></path></svg>'},57462:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.5 14.5v-11h11v11h-11ZM2 3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3Zm13 14.5a2.5 2.5 0 0 0 2.5-2.5V8H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-3.5h7Z" clip-rule="evenodd"></path></svg>'},64772:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 5.25a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0V6A.75.75 0 0 1 2 5.25Zm8 0a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0V6a.75.75 0 0 1 .75-.75Zm8.75.75a.75.75 0 0 0-1.5 0v8a.75.75 0 0 0 1.5 0V6ZM6 9.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4A.75.75 0 0 1 6 9.25Zm8.75.75a.75.75 0 0 0-1.5 0v4a.75.75 0 0 0 1.5 0v-4ZM22 9.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4a.75.75 0 0 1 .75-.75ZM15.584 21H8.416a.2.2 0 0 1-.156-.325l3.584-4.48a.2.2 0 0 1 .312 0l3.584 4.48a.2.2 0 0 1-.156.325Z" clip-rule="evenodd"></path></svg>'},14623:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M11 4.24c-.41 0-.75.34-.75.75s.34.75.75.75h2.25v5.25c0 .41.34.75.75.75s.75-.34.75-.75V5.74H17c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-6Zm8-4H9c-2.62 0-4.75 2.13-4.75 4.75v6c0 2.62 2.13 4.75 4.75 4.75h10c2.62 0 4.75-2.13 4.75-4.75v-6c0-2.62-2.13-4.75-4.75-4.75Zm3.25 10.75c0 1.79-1.46 3.25-3.25 3.25H9c-1.79 0-3.25-1.46-3.25-3.25v-6C5.75 3.2 7.21 1.74 9 1.74h10c1.79 0 3.25 1.46 3.25 3.25v6Zm-9 6h1.5v3c0 .37-.27.68-.63.74l-10.17 1.7c-.2.9-1 1.57-1.95 1.57-1.1 0-2-.9-2-2s.9-2 2-2c.72 0 1.35.38 1.71.96l9.54-1.59v-2.38Z"></path></svg>'},42451:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17l9-9H3z" fill="currentColor"></path></svg>'},52904:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" viewBox="0 0 12 12"><path fill-rule="evenodd" d="M9.53 3.97a.75.75 0 0 0-1.06 0L6 6.44 3.53 3.97a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l3-3a.75.75 0 0 0 0-1.06Z" clip-rule="evenodd"></path></svg>'},10190:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" viewBox="0 0 12 12"><path fill-rule="evenodd" d="M8.03 9.53a.75.75 0 0 0 0-1.06L5.56 6l2.47-2.47a.75.75 0 0 0-1.06-1.06l-3 3a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06 0Z" clip-rule="evenodd"></path></svg>'},92122:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" viewBox="0 0 12 12"><path fill-rule="evenodd" d="M3.97 2.47a.75.75 0 0 0 0 1.06L6.44 6 3.97 8.47a.75.75 0 0 0 1.06 1.06l3-3a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 0 0-1.06 0Z" clip-rule="evenodd"></path></svg>'},19201:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" viewBox="0 0 12 12"><path fill-rule="evenodd" d="M2.47 8.03a.75.75 0 0 0 1.06 0L6 5.56l2.47 2.47a.75.75 0 0 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 0 0 0 1.06Z" clip-rule="evenodd"></path></svg>'},74777:e=>{e.exports='<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 8l4 4m0 0l-4 4m4-4H7" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path></svg>'},97468:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Zm5.07-13.512a.75.75 0 0 0-1.14-.976l-5.422 6.326-1.932-2.318a.75.75 0 0 0-1.152.96l2.374 2.849a.917.917 0 0 0 1.4.01l5.872-6.85Z" clip-rule="evenodd"></path></svg>'},46154:e=>{e.exports='<svg width="12" height="12" viewBox="0 0 10 10" style="fill: none;" xmlns="http://www.w3.org/2000/svg"><path d="M1 5L3.5 8.5C3.5 8.5 5.5 5.5 9 1.5" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path></svg>'},94556:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><circle cx="8" cy="8" r="7.5" stroke="currentColor"></circle><circle cx="8" cy="8" r="4" fill="currentColor"></circle></svg>'},79579:e=>{e.exports='<svg width="12" height="12" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.5 5L3.5 8L9.5 2" stroke="currentColor" stroke-width="1.25"></path></svg>'},49612:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="none"><path d="M0 1L8 1L4 7L0 1Z" fill="currentColor"></path></svg>'},67018:e=>{e.exports='<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path id="icon" d="M1 8L1 0L7 4L1 8Z" fill="currentColor"></path></svg>'},35077:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M11.006 2.564a.75.75 0 0 1 .988-1.128l4 3.5a.75.75 0 0 1 0 1.128l-4 3.5a.75.75 0 0 1-.988-1.128l2.558-2.239a6.25 6.25 0 1 0 4.686 6.053.75.75 0 0 1 1.5 0 7.75 7.75 0 1 1-6.397-7.632l-2.347-2.054Z"></path></svg>'},2256:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11ZM9.03 7.97a.75.75 0 0 0-1.06 1.06L10.94 12l-2.97 2.97a.75.75 0 1 0 1.06 1.06L12 13.06l2.97 2.97a.75.75 0 1 0 1.06-1.06L13.06 12l2.97-2.97a.75.75 0 0 0-1.06-1.06L12 10.94 9.03 7.97Z" clip-rule="evenodd"></path></svg>'},66361:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M5.105 18.894a.75.75 0 0 1 0-1.06L10.94 12 5.105 6.166a.75.75 0 0 1 1.061-1.06L12 10.939l5.833-5.833a.75.75 0 0 1 1.061 1.06L13.06 12l5.834 5.834a.75.75 0 1 1-1.06 1.06L12 13.061l-5.834 5.833a.75.75 0 0 1-1.06 0Z" clip-rule="evenodd"></path></svg>'},80224:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M6.5 9.75a2.75 2.75 0 0 0-2.75 2.75.75.75 0 0 1-1.5 0 4.25 4.25 0 0 1 7-3.24A4.235 4.235 0 0 1 12 8.25a4.23 4.23 0 0 1 2.75 1.01 4.25 4.25 0 0 1 5.724 6.276.75.75 0 1 1-1.05-1.072 2.75 2.75 0 0 0-3.72-4.048 4.23 4.23 0 0 1 .546 2.084 4.24 4.24 0 0 1-1.275 3.036.75.75 0 1 1-1.05-1.072c.51-.5.825-1.194.825-1.964 0-.612-.2-1.177-.538-1.634a.75.75 0 0 1-.104-.132A2.744 2.744 0 0 0 12 9.75c-.686 0-1.313.25-1.795.666a4.23 4.23 0 0 1 .545 2.084 4.24 4.24 0 0 1-1.276 3.036.75.75 0 1 1-1.05-1.072c.51-.5.826-1.194.826-1.964 0-.572-.175-1.103-.474-1.543l-.005-.004a.747.747 0 0 1-.229-.294A2.743 2.743 0 0 0 6.5 9.75Z"></path></svg>'},10669:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" fill="currentColor" viewBox="0 0 26 26"><path fill-rule="evenodd" d="M10.021 2.148a3.576 3.576 0 0 1 1.487-1.136 3.56 3.56 0 0 1 1.38-.262 3.45 3.45 0 0 1 2.846 1.414 3.607 3.607 0 0 1 2.585-.146 3.61 3.61 0 0 1 2.486 3.05 3.669 3.669 0 0 1 2.663 1.713 3.49 3.49 0 0 1 .173 3.19 3.561 3.561 0 0 1 1.2 1.537c.178.438.266.908.26 1.381a3.45 3.45 0 0 1-1.479 2.886 3.62 3.62 0 0 1-2.835 4.99 3.62 3.62 0 0 1-4.982 2.926 3.562 3.562 0 0 1-1.504 1.145 3.55 3.55 0 0 1-1.39.254 3.62 3.62 0 0 1-2.89-1.463 3.67 3.67 0 0 1-3.179-.203l-.003-.002a3.61 3.61 0 0 1-1.787-2.64 3.62 3.62 0 0 1-2.894-4.976 3.578 3.578 0 0 1-1.149-1.503A3.56 3.56 0 0 1 .75 12.92a3.46 3.46 0 0 1 1.453-2.87 3.667 3.667 0 0 1 .182-3.206l.004-.005a3.61 3.61 0 0 1 2.68-1.793l.012-.085a3.62 3.62 0 0 1 4.94-2.813Zm2.885.102a1.95 1.95 0 0 1 1.618.8 3.61 3.61 0 0 0-.445.619.75.75 0 1 0 1.303.742c.12-.21.273-.395.453-.551a.745.745 0 0 0 .166-.13 2.11 2.11 0 0 1 3.308 1.458 3.67 3.67 0 0 0-.754.317.75.75 0 1 0 .732 1.31 2.17 2.17 0 0 1 2.892.733 1.99 1.99 0 0 1 .09 1.815 3.55 3.55 0 0 0-.795-.073.75.75 0 0 0 .032 1.5 2.05 2.05 0 0 1 2.095 2.115 1.95 1.95 0 0 1-.835 1.639 3.621 3.621 0 0 0-.595-.454.75.75 0 1 0-.781 1.28 2.12 2.12 0 0 1-.743 3.9 3.613 3.613 0 0 0-.316-.723.75.75 0 1 0-1.3.746c.134.235.222.492.26.757 0 .048.005.095.014.141a2.123 2.123 0 0 1-1.946 2.27 2.12 2.12 0 0 1-.917-.13c.064-.28.094-.566.089-.854a.75.75 0 0 0-1.5.027 2.05 2.05 0 0 1-2.094 2.086h-.014a2.12 2.12 0 0 1-1.654-.801 3.66 3.66 0 0 0 .488-.622.75.75 0 0 0-1.273-.794 2.17 2.17 0 0 1-2.903.744 2.11 2.11 0 0 1-1.03-1.462c.26-.078.513-.187.752-.324a.75.75 0 0 0-.746-1.302 2.118 2.118 0 0 1-.648.242.746.746 0 0 0-.398.04 2.125 2.125 0 0 1-1.56-.676 2.12 2.12 0 0 1-.432-2.193c.28.063.567.093.855.088a.75.75 0 0 0-.027-1.5 2.06 2.06 0 0 1-2.097-2.124 1.96 1.96 0 0 1 .803-1.619c.179.172.376.325.59.459a.75.75 0 1 0 .795-1.272 2.17 2.17 0 0 1-.745-2.895 2.11 2.11 0 0 1 1.5-1.036c.079.263.188.519.327.76a.75.75 0 1 0 1.3-.746A2.12 2.12 0 0 1 9.382 3.51a3.56 3.56 0 0 0-.09.865.75.75 0 1 0 1.5-.027 2.058 2.058 0 0 1 2.115-2.097Z" clip-rule="evenodd"></path></svg>'},13830:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M21.79 11.552c-.08-.77-.42-1.51-.95-2.08-.53-.56-1.24-.95-2-1.08-.45-.08-.92-.06-1.36.03-.09-.27-.22-.54-.38-.78-.32-.5-.75-.91-1.25-1.19-.51-.3-1.08-.47-1.67-.49-.28-.01-.55.01-.82.06-.09-.26-.2-.52-.34-.76-.32-.48-.75-.9-1.26-1.19-.51-.29-1.08-.46-1.67-.49-.3-.02-.6.01-.9.07a3.54 3.54 0 0 0-1.9-2.06c-.62-.3-1.3-.4-1.97-.31-.66.09-1.29.36-1.81.78-.53.43-.92.99-1.14 1.63-.21.64-.25 1.33-.1 1.98.13.57.4 1.09.81 1.57-.17.2-.32.43-.45.66-.26.52-.4 1.1-.4 1.68 0 .58.14 1.16.42 1.71.14.24.3.47.49.67-.19.21-.36.44-.5.7-.26.52-.4 1.1-.4 1.68 0 .58.14 1.16.41 1.7.14.25.3.48.5.69-.22.24-.41.51-.56.81-.3.61-.43 1.29-.36 1.98.07.67.32 1.3.73 1.84s.97.96 1.6 1.2c.41.16.84.23 1.28.23.24 0 .48-.02.72-.07.65-.14 1.26-.45 1.75-.9.45-.42.78-.95.98-1.55.23.05.47.08.71.08h.17c.58-.03 1.15-.2 1.67-.5.51-.31.94-.74 1.24-1.24.14-.22.25-.46.34-.71.22.04.44.07.66.07h.16c.59-.03 1.16-.2 1.67-.49a3.715 3.715 0 0 0 1.62-1.96c.23.04.45.07.68.07.31 0 .63-.04.94-.12.84-.23 1.56-.75 2.05-1.47.49-.72.7-1.59.61-2.44l-.02-.01Zm-1.85 1.6c-.29.42-.72.73-1.2.86-.44.12-.9.09-1.33-.08-.43-.17-.78-.46-1.03-.84a.747.747 0 0 0-1.04-.22c-.35.22-.45.69-.22 1.04.26.41.6.75 1 1.02-.06.2-.13.39-.25.56-.19.29-.44.53-.74.71-.3.17-.64.27-.98.29-.27.01-.54-.04-.8-.13-.03-.03-.06-.06-.1-.08 0 0-.02-.01-.03-.02-.38-.21-.71-.51-.93-.88a.748.748 0 0 0-1.29.76c.26.46.62.86 1.04 1.16-.06.19-.14.37-.25.55-.19.3-.45.56-.73.74-.3.17-.64.27-.98.29-.34.01-.68-.05-.99-.2-.25-.14-.48-.32-.67-.53a.746.746 0 0 0-1.06-.06c-.31.27-.34.75-.06 1.06.18.21.39.39.61.56v.04c-.11.39-.32.73-.61 1s-.66.46-1.04.54c-.39.08-.79.04-1.17-.1-.37-.14-.7-.38-.94-.7-.24-.32-.39-.7-.43-1.09-.04-.4.04-.8.21-1.15.18-.36.46-.65.8-.86.34-.21.73-.32 1.13-.32.41 0 .75-.34.75-.75 0-.02-.01-.04-.01-.06v-.02c0-.41-.33-.74-.74-.75-.53 0-1.06.1-1.54.32-.13-.13-.24-.28-.33-.44-.16-.31-.24-.66-.24-1 0-.35.08-.69.22-.97.17-.3.4-.56.68-.75.05-.04.08-.08.12-.13.34-.18.7-.29 1.09-.3.41 0 .74-.35.73-.76 0-.41-.34-.74-.75-.74-.53 0-1.05.11-1.53.33-.13-.14-.25-.28-.33-.44a2.21 2.21 0 0 1-.24-1.01c0-.35.08-.69.24-.99.15-.29.37-.54.63-.74.25-.14.52-.25.8-.29a.76.76 0 0 0 .62-.86.76.76 0 0 0-.86-.62c-.31.05-.61.14-.89.26-.26-.28-.45-.62-.53-1-.09-.39-.07-.79.06-1.16.13-.37.36-.7.66-.95a2.14 2.14 0 0 1 2.22-.29c.36.16.66.42.89.76.22.32.34.7.35 1.11 0 .19-.01.37-.06.55-.02.09-.06.17-.09.25-.04.1-.07.21-.13.31a.752.752 0 1 0 1.3.76l.03-.06s.01 0 .01-.02c.02-.04.04-.09.06-.13.06-.12.11-.23.16-.35.13-.32.23-.65.26-1 .19-.04.38-.06.57-.05.35.02.69.12.99.29.3.18.56.42.73.69.17.29.27.62.29.95 0 .44-.1.87-.31 1.25-.2.36-.07.81.29 1.01.36.2.81.08 1.02-.28.26-.46.43-.96.48-1.48.19-.05.4-.07.6-.06.34.01.68.11.98.29.3.17.55.41.74.7.18.29.29.61.33.95 0 .3-.05.59-.13.87a.75.75 0 0 0 .72.97c.32 0 .62-.21.72-.53.08-.25.12-.5.16-.76.31-.09.63-.14.95-.08.45.08.86.31 1.17.63.31.33.5.76.55 1.21a2.1 2.1 0 0 1-.36 1.44h-.02Z"></path></svg>'},64874:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M19.143 1.25a3.74 3.74 0 0 0-2.381.86 3.739 3.739 0 0 0-2.38-.86c-.854 0-1.726.306-2.382.86a3.739 3.739 0 0 0-2.38-.86c-.854 0-1.726.306-2.382.86a3.739 3.739 0 0 0-2.38-.86c-2.034 0-3.608 1.574-3.608 3.607 0 .853.306 1.726.86 2.381a3.739 3.739 0 0 0-.86 2.381c0 .853.306 1.725.86 2.381a3.739 3.739 0 0 0-.86 2.38c0 .854.306 1.726.86 2.382a3.739 3.739 0 0 0-.86 2.38c0 2.034 1.574 3.608 3.607 3.608.853 0 1.726-.306 2.381-.86.656.554 1.528.86 2.381.86.853 0 1.726-.306 2.381-.86.656.554 1.528.86 2.381.86.853 0 1.725-.306 2.38-.86.657.554 1.529.86 2.382.86 2.033 0 3.607-1.574 3.607-3.607a3.74 3.74 0 0 0-.861-2.381c.555-.656.86-1.528.86-2.381 0-.853-.305-1.725-.86-2.381.555-.656.86-1.528.86-2.38 0-.854-.305-1.726-.86-2.382.555-.655.86-1.528.86-2.38 0-2.034-1.573-3.608-3.606-3.608Zm-3.024 2.375c-.323-.508-1.013-.875-1.738-.875-.572 0-1.121.228-1.486.573.2.436.331.924.331 1.534a.75.75 0 0 1-1.5 0c0-.41-.139-.85-.368-1.232-.324-.508-1.013-.875-1.739-.875a2.21 2.21 0 0 0-1.486.573c.2.436.332.924.332 1.534a.75.75 0 1 1-1.5 0c0-.405-.136-.839-.36-1.218l-.003-.003c-.32-.514-1.015-.886-1.745-.886-1.205 0-2.107.902-2.107 2.107 0 .572.228 1.121.573 1.487.436-.2.924-.332 1.534-.332a.75.75 0 1 1 0 1.5c-.408 0-.845.138-1.227.366-.51.322-.88 1.013-.88 1.741 0 .572.228 1.121.573 1.487.436-.2.924-.332 1.534-.332a.75.75 0 0 1 0 1.5c-.408 0-.845.138-1.227.366-.51.322-.88 1.013-.88 1.74 0 .573.228 1.122.573 1.487.436-.2.924-.331 1.534-.331a.75.75 0 0 1 0 1.5c-.408 0-.845.138-1.227.365-.51.323-.88 1.014-.88 1.742 0 1.205.902 2.107 2.107 2.107a2.21 2.21 0 0 0 1.487-.573 3.558 3.558 0 0 1-.332-1.534.75.75 0 0 1 1.5 0c0 .405.136.839.36 1.219l.002.002c.321.514 1.015.886 1.745.886a2.21 2.21 0 0 0 1.487-.573 3.558 3.558 0 0 1-.332-1.534.75.75 0 1 1 1.5 0c0 .41.14.85.369 1.232.323.508 1.013.875 1.738.875a2.21 2.21 0 0 0 1.487-.573 3.556 3.556 0 0 1-.332-1.534.75.75 0 1 1 1.5 0c0 .41.14.85.369 1.232.323.508 1.012.875 1.738.875 1.205 0 2.107-.902 2.107-2.107 0-.572-.228-1.121-.574-1.487-.435.2-.923.332-1.533.332a.75.75 0 0 1 0-1.5c.407 0 .842-.137 1.223-.363.512-.322.884-1.015.884-1.744 0-.572-.228-1.121-.574-1.487-.435.2-.923.332-1.533.332a.75.75 0 0 1 0-1.5c.408 0 .845-.138 1.227-.366.51-.322.88-1.013.88-1.74 0-.573-.228-1.122-.574-1.488-.435.2-.923.332-1.533.332a.75.75 0 0 1 0-1.5c.41 0 .848-.138 1.23-.367.509-.324.877-1.014.877-1.74 0-1.205-.902-2.107-2.107-2.107a2.21 2.21 0 0 0-1.487.573c.2.436.332.924.332 1.534a.75.75 0 0 1-1.5 0c0-.41-.14-.85-.369-1.232Z" clip-rule="evenodd"></path></svg>'},23944:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M5 3.25A2.75 2.75 0 0 0 2.25 6v10A2.75 2.75 0 0 0 5 18.75h1.25V22a.75.75 0 0 0 1.248.56l4.287-3.81H19A2.75 2.75 0 0 0 21.75 16V6A2.75 2.75 0 0 0 19 3.25H5ZM3.75 6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v10c0 .69-.56 1.25-1.25 1.25h-7.5a.75.75 0 0 0-.498.19L7.75 20.33V18a.75.75 0 0 0-.75-.75H5c-.69 0-1.25-.56-1.25-1.25V6ZM8 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm9-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd"></path></svg>'},80259:e=>{e.exports='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_8282_94801)"><g filter="url(#filter0_d_8282_94801)"><path d="M3 6C3 4.89543 3.89543 4 5 4H19C20.1046 4 21 4.89543 21 6V16C21 17.1046 20.1046 18 19 18H11.5L7 22V18H5C3.89543 18 3 17.1046 3 16V6Z" fill="#FFEB84"></path><path d="M3 6C3 4.89543 3.89543 4 5 4H19C20.1046 4 21 4.89543 21 6V16C21 17.1046 20.1046 18 19 18H11.5L7 22V18H5C3.89543 18 3 17.1046 3 16V6Z" stroke="#E8B500" stroke-width="1.5" stroke-linejoin="round"></path></g><circle cx="8" cy="11" r="1" fill="black"></circle><circle cx="16" cy="11" r="1" fill="black"></circle><circle cx="12" cy="11" r="1" fill="black"></circle></g><defs><filter id="filter0_d_8282_94801" x="1.25" y="3.25" width="21.5" height="21.5" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="1"></feOffset><feGaussianBlur stdDeviation="0.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_8282_94801"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_8282_94801" result="shape"></feBlend></filter><clipPath id="clip0_8282_94801"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},53063:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M5 3.25A2.75 2.75 0 0 0 2.25 6v10A2.75 2.75 0 0 0 5 18.75h1.25V22a.75.75 0 0 0 1.248.56l4.287-3.81H19A2.75 2.75 0 0 0 21.75 16V6A2.75 2.75 0 0 0 19 3.25H5ZM3.75 6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v10c0 .69-.56 1.25-1.25 1.25h-7.5a.75.75 0 0 0-.498.19L7.75 20.33V18a.75.75 0 0 0-.75-.75H5c-.69 0-1.25-.56-1.25-1.25V6ZM8 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm9-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd"></path></svg>'},28735:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M7 2.25a.75.75 0 0 0-.75.75v.558a2.75 2.75 0 0 0 1.88 2.61l.789.262a.25.25 0 0 1 .165.288l-.752 3.615A6.745 6.745 0 0 0 5.25 16c0 .414.336.75.75.75h5.25V22l.75 1.75.75-1.75v-5.25H18a.75.75 0 0 0 .75-.75 6.745 6.745 0 0 0-3.082-5.667l-.752-3.615a.25.25 0 0 1 .165-.288l.789-.263a2.75 2.75 0 0 0 1.88-2.609V3a.75.75 0 0 0-.75-.75H7Zm10.197 13a5.253 5.253 0 0 0-7.821-3.798 5.253 5.253 0 0 0-2.573 3.798h10.394ZM12 9.25a6.75 6.75 0 0 0-1.972.293l.525-2.519a1.75 1.75 0 0 0-1.16-2.017l-.788-.263a1.25 1.25 0 0 1-.84-.994h8.47a1.25 1.25 0 0 1-.84.994l-.788.263a1.75 1.75 0 0 0-1.16 2.017l.525 2.519A6.75 6.75 0 0 0 12 9.25Z" clip-rule="evenodd"></path></svg>'},23874:e=>{e.exports='<svg width="84" height="84" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M40 42H0M84 42H44M42 84V44M42 40V0M3 12V0M81 72v12M72 3h11M12 81H1M12 3H1M72 81h11M81 12V0M3 72v12" stroke="#fff" stroke-width="6"></path><path d="M40 42H1M83 42H44M42 83V44M42 40V1M3 11V1M81 73v10M73 3h10M11 81H1M11 3H1M73 81h10M81 11V1M3 73v10" stroke="#000" stroke-width="4"></path></svg>'},10346:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M3.5 6H2V2h4v1.5H3.5V6Zm2.75 2c0-.41.34-.75.75-.75h10c.41 0 .75.34.75.75s-.34.75-.75.75H7c-.41 0-.75-.34-.75-.75Zm0 4c0-.41.34-.75.75-.75h10c.41 0 .75.34.75.75s-.34.75-.75.75H7c-.41 0-.75-.34-.75-.75ZM7 15.25c-.41 0-.75.34-.75.75s.34.75.75.75h6c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H7ZM18 2v1.5h2.5V6H22V2h-4ZM3.5 18H2v4h4v-1.5H3.5V18ZM18 22v-1.5h2.5V18H22v4h-4Zm-9 0v-1.5h6V22H9ZM9 2v1.5h6V2H9ZM2 9h1.5v6H2V9Zm20 0h-1.5v6H22V9Z"></path></svg>'},84539:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12.994 2.564a.75.75 0 0 0-.988-1.128l-4 3.5a.75.75 0 0 0 0 1.128l4 3.5a.75.75 0 0 0 .988-1.128l-2.558-2.239A6.25 6.25 0 1 1 5.75 12.25a.75.75 0 0 0-1.5 0 7.75 7.75 0 1 0 6.397-7.632l2.347-2.054Z"></path></svg>'},95482:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m21.878 13.565-1.482-.233a8.583 8.583 0 0 0 0-2.664l1.482-.233a10.079 10.079 0 0 1 0 3.13Zm-.54-5.15-1.4.538a8.489 8.489 0 0 0-1.331-2.302l1.165-.944a9.991 9.991 0 0 1 1.566 2.708Zm-3.045-4.187-.944 1.165a8.49 8.49 0 0 0-2.302-1.331l.538-1.4a10 10 0 0 1 2.708 1.566Zm-4.728-2.106-.233 1.482a8.575 8.575 0 0 0-2.664 0l-.233-1.482a10.075 10.075 0 0 1 3.13 0Zm-5.15.54.538 1.4a8.49 8.49 0 0 0-2.302 1.331l-.944-1.165a9.99 9.99 0 0 1 2.708-1.566ZM4.228 5.707l1.165.944a8.49 8.49 0 0 0-1.331 2.302l-1.4-.538a9.99 9.99 0 0 1 1.566-2.708Zm-2.106 4.728a10.075 10.075 0 0 0 0 3.13l1.482-.233a8.575 8.575 0 0 1 0-2.664l-1.482-.233Zm.54 5.15 1.4-.538a8.49 8.49 0 0 0 1.331 2.302l-1.165.944a9.99 9.99 0 0 1-1.566-2.708Zm3.045 4.187.944-1.165a8.49 8.49 0 0 0 2.302 1.331l-.538 1.4a9.991 9.991 0 0 1-2.708-1.566Zm4.728 2.106.233-1.482a8.583 8.583 0 0 0 2.664 0l.233 1.482a10.079 10.079 0 0 1-3.13 0Zm5.15-.54-.538-1.4a8.49 8.49 0 0 0 2.302-1.331l.944 1.165a9.992 9.992 0 0 1-2.708 1.566Zm4.187-3.045-1.165-.944a8.49 8.49 0 0 0 1.331-2.302l1.4.538a10 10 0 0 1-1.566 2.708Z" clip-rule="evenodd"></path></svg>'},10801:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="m6.72 4.594.73-1.3-2.71-1.53c-1-.56-2.24.16-2.24 1.31v2.99H4v-3l2.72 1.53Zm4.35 2.45-2.61-1.47.74-1.31 2.61 1.47-.74 1.31Zm9.68 3.72c1.02.57 1.02 2.04 0 2.61l-2.84 1.6-.73-1.31 2.84-1.59-2.84-1.6.73-1.31 2.84 1.59v.01Zm-4.58 5.2-2.61 1.47-.74-1.31 2.61-1.47.74 1.31Zm-6.97 3.92 2.61-1.47-.74-1.31-2.61 1.47.74 1.31Zm-1.75.98-2.71 1.53c-1 .56-2.24-.16-2.24-1.31v-3.02H4v3.02l2.72-1.53.73 1.31Zm5.37-12.83 2.61 1.47.74-1.31-2.61-1.47-.74 1.31ZM4 16.064v-3H2.5v3H4Zm0-8v3H2.5v-3H4Z"></path></svg>'},43472:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M21 6h-1.5V4.5H18V3h2c.55 0 1 .45 1 1v2ZM3 18h1.5v1.5H6V21H4c-.55 0-1-.45-1-1v-2ZM4.5 6H3V4c0-.55.45-1 1-1h2v1.5H4.5V6ZM21 18h-1.5v1.5H18V21h2c.55 0 1-.45 1-1v-2ZM8 4.5V3h3v1.5H8Zm0 15V21h3v-1.5H8ZM3 8h1.5v3H3V8Zm18 0h-1.5v3H21V8Zm-8-3.5V3h3v1.5h-3Zm0 15V21h3v-1.5h-3ZM3 13h1.5v3H3v-3Zm18 0h-1.5v3H21v-3Z"></path></svg>'},41828:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M15.03 11.8c-.47-.18-.78-.64-.78-1.15V6.41c0-.64-.52-1.16-1.16-1.16h-.34v-1h.75a1.25 1.25 0 0 0 0-2.5h-.75V1.5c0-.69-.56-1.25-1.25-1.25h-3c-.69 0-1.25.56-1.25 1.25v3.75h-.34c-.64 0-1.16.52-1.16 1.16v4.24c0 .51-.31.97-.78 1.15a2.75 2.75 0 0 0-1.72 2.55v5.24c0 2.3 1.86 4.16 4.16 4.16h5.18c2.3 0 4.16-1.86 4.16-4.16v-5.24c0-1.12-.68-2.13-1.72-2.55ZM8.75 1.75h2.5v3.5h-2.5v-3.5Zm6.5 17.84c0 1.47-1.19 2.66-2.66 2.66H7.41c-1.47 0-2.66-1.19-2.66-2.66v-5.24c0-.51.31-.97.78-1.15a2.75 2.75 0 0 0 1.72-2.55v-3.9h5.5v3.9c0 1.12.68 2.13 1.72 2.55.47.18.78.64.78 1.15v5.24Zm1.72-15.62c.29-.29.77-.29 1.06 0l.5.5c.26.26.68.26.94 0 .85-.85 2.22-.85 3.06 0l.5.5c.29.29.29.77 0 1.06-.29.29-.77.29-1.06 0l-.5-.5a.664.664 0 0 0-.94 0c-.85.85-2.22.85-3.06 0l-.5-.5a.754.754 0 0 1 0-1.06Zm1.06-3a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l.5.5c.85.85 2.22.85 3.06 0 .26-.26.68-.26.94 0l.5.5c.29.29.77.29 1.06 0 .29-.29.29-.77 0-1.06l-.5-.5c-.85-.85-2.22-.85-3.06 0-.26.26-.68.26-.94 0l-.5-.5Z" clip-rule="evenodd"></path></svg>'},63949:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.75 4a2.25 2.25 0 0 1 4.5 0v.25h-4.5V4Zm6 0a3.75 3.75 0 1 0-7.5 0v.25H3a.75.75 0 0 0 0 1.5h1.25V20A2.75 2.75 0 0 0 7 22.75h10A2.75 2.75 0 0 0 19.75 20V5.75H21a.75.75 0 0 0 0-1.5h-5.25V4Zm-10 16V5.75h12.5V20c0 .69-.56 1.25-1.25 1.25H7c-.69 0-1.25-.56-1.25-1.25Zm7-11a.75.75 0 0 0-1.5 0v9a.75.75 0 0 0 1.5 0V9ZM8.5 8.25a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm7.75.75a.75.75 0 0 0-1.5 0v9a.75.75 0 0 0 1.5 0V9Z" clip-rule="evenodd"></path></svg>'},40825:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Zm4.03-13.97a.75.75 0 0 0-1.06-1.06l-7 7a.75.75 0 1 0 1.06 1.06l7-7Z" clip-rule="evenodd"></path></svg>'},3572:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Zm5.07-13.512a.75.75 0 0 0-1.14-.976l-5.422 6.326-1.932-2.318a.75.75 0 0 0-1.152.96l2.374 2.849a.917.917 0 0 0 1.4.01l5.872-6.85Z" clip-rule="evenodd"></path></svg>'},13864:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M.75 5.25A.75.75 0 0 1 1.5 6v5.996l4.466-4.523a.75.75 0 1 1 1.068 1.054l-2.69 2.723h15.311l-2.689-2.723a.75.75 0 1 1 1.068-1.054l4.466 4.523V6A.75.75 0 0 1 24 6v12a.75.75 0 0 1-1.5 0v-5.996l-4.466 4.523a.75.75 0 0 1-1.067-1.054l2.689-2.723H4.345l2.689 2.723a.75.75 0 0 1-1.068 1.054L1.5 12.004V18A.75.75 0 0 1 0 18V6a.75.75 0 0 1 .75-.75Z"></path></svg>'},65829:e=>{e.exports='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M23 11.25C17.34 11.25 12.75 6.66 12.75 1C12.75 0.59 12.41 0.25 12 0.25C11.59 0.25 11.25 0.59 11.25 1C11.25 6.66 6.66 11.25 1 11.25C0.59 11.25 0.25 11.59 0.25 12C0.25 12.41 0.59 12.75 1 12.75C6.66 12.75 11.25 17.34 11.25 23C11.25 23.41 11.59 23.75 12 23.75C12.41 23.75 12.75 23.41 12.75 23C12.75 17.34 17.34 12.75 23 12.75C23.41 12.75 23.75 12.41 23.75 12C23.75 11.59 23.41 11.25 23 11.25ZM12 18.86C10.81 15.7 8.3 13.19 5.14 12C8.3 10.81 10.81 8.3 12 5.14C13.19 8.3 15.7 10.81 18.86 12C15.7 13.19 13.19 15.7 12 18.86Z" fill="currentColor"></path></svg>'},66308:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.5 19.75A1.75 1.75 0 0 0 11.25 18v-3h-1.5v3a.25.25 0 0 1-.25.25H2a.25.25 0 0 1-.25-.25V6A.25.25 0 0 1 2 5.75h7.5a.25.25 0 0 1 .25.25v3h1.5V6A1.75 1.75 0 0 0 9.5 4.25H2A1.75 1.75 0 0 0 .25 6v12c0 .966.784 1.75 1.75 1.75h7.5ZM12.75 6c0-.966.784-1.75 1.75-1.75H22c.966 0 1.75.784 1.75 1.75v12A1.75 1.75 0 0 1 22 19.75h-7.5A1.75 1.75 0 0 1 12.75 18v-3h1.5v3c0 .138.112.25.25.25H22a.25.25 0 0 0 .25-.25V6a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25v3h-1.5V6ZM7.53 8.47a.75.75 0 0 1 0 1.06l-1.72 1.72h12.38l-1.72-1.72a.75.75 0 0 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06l1.72-1.72H5.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 0Z" clip-rule="evenodd"></path></svg>'},58645:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M7 3a.75.75 0 0 0-1.5 0v13.5c0 .966.784 1.75 1.75 1.75H16v-1.5H7.25A.25.25 0 0 1 7 16.5V3Zm10.5 17.5a.75.75 0 0 0 1.5 0V7a1.75 1.75 0 0 0-1.75-1.75H8.5v1.5h8.75a.25.25 0 0 1 .25.25v13.5Zm5.5-2.25h-2.5v-1.5H23a.75.75 0 0 1 0 1.5Zm-19-13H1a.75.75 0 0 0 0 1.5h3v-1.5Z" clip-rule="evenodd"></path></svg>'},20574:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2.5 2A1.5 1.5 0 0 1 4 .5h8a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 17.5 6v.366a4.024 4.024 0 0 0-.293.266L16 7.84V6h-3a1 1 0 0 1-1-1V2H4v16h2.093c-.22.463-.325.979-.298 1.5H4A1.5 1.5 0 0 1 2.5 18V2Zm20.363 6.782a2.48 2.48 0 0 1 0 3.507L12.32 22.833a1.615 1.615 0 0 1-1.142.473H7.25V19.38c0-.428.17-.839.473-1.142L18.267 7.693a2.48 2.48 0 0 1 3.507 0l1.09 1.09Zm-1.06 2.446a.98.98 0 0 0 0-1.385l-1.09-1.09a.98.98 0 0 0-1.385 0l-1.075 1.075 2.475 2.475 1.075-1.075Zm-2.136 2.136-2.475-2.475-8.408 8.409a.115.115 0 0 0-.034.081v2.427h2.427a.12.12 0 0 0 .082-.033l8.408-8.409Z" clip-rule="evenodd"></path></svg>'},48947:e=>{e.exports='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="28.5" cy="28.5" r="3" fill="black" stroke="white"></circle><circle cx="5.99992" cy="5.99992" r="4.99992" fill="white"></circle><circle cx="5.99992" cy="5.99992" r="4.24992" stroke="#4537DE" stroke-width="1.5"></circle><g filter="url(#filter0_d_9235_307392)"><path fill-rule="evenodd" clip-rule="evenodd" d="M22.0852 19.2713C23.2183 17.0319 22.8204 14.35 20.8917 12.4213C18.9965 10.5262 16.6054 9.96035 14.0173 9.34793C11.4553 8.74167 8.70028 8.08975 6.04248 6.05731C8.07492 8.71512 8.72683 11.4702 9.33307 14.0322C9.94547 16.6203 10.5113 19.0115 12.4064 20.9066C14.3352 22.8354 17.0173 23.2332 19.2568 22.0999L21.5991 24.4421L24.4276 21.6137L22.0852 19.2713Z" fill="white"></path><path d="M22.0852 19.2713L21.4903 18.9704L21.2723 19.4013L21.6138 19.7427L22.0852 19.2713ZM14.0173 9.34793L14.1709 8.69918L14.0173 9.34793ZM6.04248 6.05731L6.44745 5.52774L5.51291 6.46228L6.04248 6.05731ZM9.33307 14.0322L9.98182 13.8787L9.33307 14.0322ZM19.2568 22.0999L19.7283 21.6285L19.3868 21.2869L18.9558 21.505L19.2568 22.0999ZM21.5991 24.4421L21.1277 24.9135L21.5991 25.3849L22.0705 24.9135L21.5991 24.4421ZM24.4276 21.6137L24.899 22.0851L25.3704 21.6137L24.899 21.1423L24.4276 21.6137ZM20.4203 12.8927C22.1507 14.6231 22.4899 16.9948 21.4903 18.9704L22.6801 19.5723C23.9466 17.0691 23.4901 14.077 21.3631 11.9499L20.4203 12.8927ZM13.8638 9.99668C16.4809 10.616 18.6795 11.1519 20.4203 12.8927L21.3631 11.9499C19.3136 9.90044 16.7299 9.30474 14.1709 8.69918L13.8638 9.99668ZM5.63751 6.58688C8.42122 8.7156 11.3074 9.39175 13.8638 9.99668L14.1709 8.69918C11.6032 8.0916 8.97935 7.4639 6.44745 5.52774L5.63751 6.58688ZM9.98182 13.8787C9.3769 11.3223 8.70077 8.43605 6.57205 5.65235L5.51291 6.46228C7.44907 8.99419 8.07675 11.6181 8.68432 14.1857L9.98182 13.8787ZM12.8778 20.4352C11.137 18.6944 10.6011 16.4958 9.98182 13.8787L8.68432 14.1857C9.28986 16.7448 9.88554 19.3285 11.935 21.378L12.8778 20.4352ZM18.9558 21.505C16.9802 22.5048 14.6083 22.1657 12.8778 20.4352L11.935 21.378C14.0622 23.5052 17.0545 23.9615 19.5579 22.6947L18.9558 21.505ZM22.0705 23.9707L19.7283 21.6285L18.7854 22.5713L21.1277 24.9135L22.0705 23.9707ZM23.9562 21.1423L21.1277 23.9707L22.0705 24.9135L24.899 22.0851L23.9562 21.1423ZM21.6138 19.7427L23.9562 22.0851L24.899 21.1423L22.5566 18.7999L21.6138 19.7427Z" fill="black"></path><path d="M6.74951 6.7644L15.9419 15.9568" stroke="black" stroke-width="1.33333"></path><circle cx="16.6492" cy="16.6639" r="2" transform="rotate(-45 16.6492 16.6639)" fill="black"></circle></g><defs><filter id="filter0_d_9235_307392" x="2.84603" y="4.63882" width="25.1912" height="25.1906" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="1.77778"></feOffset><feGaussianBlur stdDeviation="1.33333"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_9235_307392"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_9235_307392" result="shape"></feBlend></filter></defs></svg>'},37390:e=>{e.exports='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="5.99992" cy="5.99992" r="4.99992" fill="white"></circle><circle cx="5.99992" cy="5.99992" r="4.24992" stroke="#4537DE" stroke-width="1.5"></circle><g filter="url(#filter0_d_9235_307392)"><path fill-rule="evenodd" clip-rule="evenodd" d="M22.0852 19.2713C23.2183 17.0319 22.8204 14.35 20.8917 12.4213C18.9965 10.5262 16.6054 9.96035 14.0173 9.34793C11.4553 8.74167 8.70028 8.08975 6.04248 6.05731C8.07492 8.71512 8.72683 11.4702 9.33307 14.0322C9.94547 16.6203 10.5113 19.0115 12.4064 20.9066C14.3352 22.8354 17.0173 23.2332 19.2568 22.0999L21.5991 24.4421L24.4276 21.6137L22.0852 19.2713Z" fill="white"></path><path d="M22.0852 19.2713L21.4903 18.9704L21.2723 19.4013L21.6138 19.7427L22.0852 19.2713ZM14.0173 9.34793L14.1709 8.69918L14.0173 9.34793ZM6.04248 6.05731L6.44745 5.52774L5.51291 6.46228L6.04248 6.05731ZM9.33307 14.0322L9.98182 13.8787L9.33307 14.0322ZM19.2568 22.0999L19.7283 21.6285L19.3868 21.2869L18.9558 21.505L19.2568 22.0999ZM21.5991 24.4421L21.1277 24.9135L21.5991 25.3849L22.0705 24.9135L21.5991 24.4421ZM24.4276 21.6137L24.899 22.0851L25.3704 21.6137L24.899 21.1423L24.4276 21.6137ZM20.4203 12.8927C22.1507 14.6231 22.4899 16.9948 21.4903 18.9704L22.6801 19.5723C23.9466 17.0691 23.4901 14.077 21.3631 11.9499L20.4203 12.8927ZM13.8638 9.99668C16.4809 10.616 18.6795 11.1519 20.4203 12.8927L21.3631 11.9499C19.3136 9.90044 16.7299 9.30474 14.1709 8.69918L13.8638 9.99668ZM5.63751 6.58688C8.42122 8.7156 11.3074 9.39175 13.8638 9.99668L14.1709 8.69918C11.6032 8.0916 8.97935 7.4639 6.44745 5.52774L5.63751 6.58688ZM9.98182 13.8787C9.3769 11.3223 8.70077 8.43605 6.57205 5.65235L5.51291 6.46228C7.44907 8.99419 8.07675 11.6181 8.68432 14.1857L9.98182 13.8787ZM12.8778 20.4352C11.137 18.6944 10.6011 16.4958 9.98182 13.8787L8.68432 14.1857C9.28986 16.7448 9.88554 19.3285 11.935 21.378L12.8778 20.4352ZM18.9558 21.505C16.9802 22.5048 14.6083 22.1657 12.8778 20.4352L11.935 21.378C14.0622 23.5052 17.0545 23.9615 19.5579 22.6947L18.9558 21.505ZM22.0705 23.9707L19.7283 21.6285L18.7854 22.5713L21.1277 24.9135L22.0705 23.9707ZM23.9562 21.1423L21.1277 23.9707L22.0705 24.9135L24.899 22.0851L23.9562 21.1423ZM21.6138 19.7427L23.9562 22.0851L24.899 21.1423L22.5566 18.7999L21.6138 19.7427Z" fill="black"></path><path d="M6.74951 6.7644L15.9419 15.9568" stroke="black" stroke-width="1.33333"></path><circle cx="16.6492" cy="16.6639" r="2" transform="rotate(-45 16.6492 16.6639)" fill="black"></circle></g><defs><filter id="filter0_d_9235_307392" x="2.84603" y="4.63882" width="25.1912" height="25.1906" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="1.77778"></feOffset><feGaussianBlur stdDeviation="1.33333"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_9235_307392"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_9235_307392" result="shape"></feBlend></filter></defs></svg>'},61802:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M15.556 3.384a2.75 2.75 0 0 1 3.889 0l1.171 1.171a2.75 2.75 0 0 1 0 3.89L7.823 21.236a1.75 1.75 0 0 1-1.237.513H2.25v-4.336c0-.464.184-.91.513-1.237L15.556 3.384Zm2.828 1.06a1.25 1.25 0 0 0-1.768 0L15.061 6 18 8.94l1.555-1.556a1.25 1.25 0 0 0 0-1.768l-1.171-1.172ZM16.939 10 14 7.06 3.823 17.238a.25.25 0 0 0-.073.177v2.836h2.836a.25.25 0 0 0 .177-.073L16.939 10Z" clip-rule="evenodd"></path></svg>'},69558:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12.75 12c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H9c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V18c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H15c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25V12Zm7.78-6.03-5.5-5.5a.75.75 0 0 0-.53-.22H5c-.97 0-1.75.78-1.75 1.75v20c0 .97.78 1.75 1.75 1.75h14c.97 0 1.75-.78 1.75-1.75V6.5c0-.2-.08-.39-.22-.53ZM19.25 22c0 .14-.11.25-.25.25H5c-.14 0-.25-.11-.25-.25V2c0-.14.11-.25.25-.25h8.75V6.5c0 .41.34.75.75.75h4.75V22Z"></path></svg>'},24388:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M10 .5c-.83 0-1.5.67-1.5 1.5v1H10V2h8v3c0 .55.45 1 1 1h3v12h-3v1.5h3c.83 0 1.5-.67 1.5-1.5V6c0-.4-.16-.78-.44-1.06l-4-4C18.78.66 18.4.5 18 .5h-8Zm.75 12.5c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H7c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V19c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H13c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25V13Zm6.31-4.06-4-4c-.28-.28-.66-.44-1.06-.44H4c-.83 0-1.5.67-1.5 1.5v16c0 .83.67 1.5 1.5 1.5h12c.83 0 1.5-.67 1.5-1.5V10c0-.4-.16-.78-.44-1.06ZM16 22H4V6h8v3c0 .55.45 1 1 1h3v12Z"></path></svg>'},88105:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M.25 13.06c0 .41.34.75.75.75s.75-.34.75-.75v-2c0-.69.56-1.25 1.25-1.25h18c.69 0 1.25.56 1.25 1.25v2c0 .41.34.75.75.75s.75-.34.75-.75v-2c0-1.52-1.23-2.75-2.75-2.75h-8.25V2.87l1.72 1.72c.29.29.77.29 1.06 0 .29-.29.29-.77 0-1.06L12 0 8.47 3.53c-.29.29-.29.77 0 1.06.29.29.77.29 1.06 0l1.72-1.72v5.44H3C1.48 8.31.25 9.54.25 11.06v2ZM2 23.81c-.97 0-1.75-.78-1.75-1.75v-5c0-.97.78-1.75 1.75-1.75h3c.97 0 1.75.78 1.75 1.75v5c0 .97-.78 1.75-1.75 1.75H2Zm-.25-1.75c0 .14.11.25.25.25h3c.14 0 .25-.11.25-.25v-5c0-.14-.11-.25-.25-.25H2c-.14 0-.25.11-.25.25v5Zm7 0c0 .97.78 1.75 1.75 1.75h3c.97 0 1.75-.78 1.75-1.75v-5c0-.97-.78-1.75-1.75-1.75h-3c-.97 0-1.75.78-1.75 1.75v5Zm1.75.25c-.14 0-.25-.11-.25-.25v-5c0-.14.11-.25.25-.25h3c.14 0 .25.11.25.25v5c0 .14-.11.25-.25.25h-3Zm8.5 1.5c-.97 0-1.75-.78-1.75-1.75v-5c0-.97.78-1.75 1.75-1.75h3c.97 0 1.75.78 1.75 1.75v5c0 .97-.78 1.75-1.75 1.75h-3Zm-.25-1.75c0 .14.11.25.25.25h3c.14 0 .25-.11.25-.25v-5c0-.14-.11-.25-.25-.25h-3c-.14 0-.25.11-.25.25v5Z"></path></svg>'},9451:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 21.5a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19Zm0 1.5c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Zm1.25-5.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM9.75 9a2.25 2.25 0 1 1 2.986 2.127c-.678.235-1.486.87-1.486 1.873v.5a.75.75 0 0 0 1.5 0V13c0-.056.02-.13.102-.219a.92.92 0 0 1 .375-.237A3.751 3.751 0 0 0 12 5.25 3.75 3.75 0 0 0 8.25 9a.75.75 0 0 0 1.5 0Z" clip-rule="evenodd"></path></svg>'},48982:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M.25 10.94c0-.41.34-.75.75-.75s.75.34.75.75v2c0 .69.56 1.25 1.25 1.25h18c.69 0 1.25-.56 1.25-1.25v-2c0-.41.34-.75.75-.75s.75.34.75.75v2c0 1.52-1.23 2.75-2.75 2.75h-8.25v5.44l1.72-1.72c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06L12 24l-3.53-3.53a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l1.72 1.72v-5.44H3c-1.52 0-2.75-1.23-2.75-2.75v-2ZM2 .19C1.03.19.25.97.25 1.94v5c0 .97.78 1.75 1.75 1.75h3c.97 0 1.75-.78 1.75-1.75v-5C6.75.97 5.97.19 5 .19H2Zm-.25 1.75c0-.14.11-.25.25-.25h3c.14 0 .25.11.25.25v5c0 .14-.11.25-.25.25H2c-.14 0-.25-.11-.25-.25v-5Zm7 0c0-.97.78-1.75 1.75-1.75h3c.97 0 1.75.78 1.75 1.75v5c0 .97-.78 1.75-1.75 1.75h-3c-.97 0-1.75-.78-1.75-1.75v-5Zm1.75-.25c-.14 0-.25.11-.25.25v5c0 .14.11.25.25.25h3c.14 0 .25-.11.25-.25v-5c0-.14-.11-.25-.25-.25h-3ZM19 .19c-.97 0-1.75.78-1.75 1.75v5c0 .97.78 1.75 1.75 1.75h3c.97 0 1.75-.78 1.75-1.75v-5c0-.97-.78-1.75-1.75-1.75h-3Zm-.25 1.75c0-.14.11-.25.25-.25h3c.14 0 .25.11.25.25v5c0 .14-.11.25-.25.25h-3c-.14 0-.25-.11-.25-.25v-5Z"></path></svg>'},6058:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M18.53 7.47a.75.75 0 1 0-1.06 1.06l2.72 2.72H3.81l2.72-2.72a.75.75 0 1 0-1.06-1.06L.94 12l4.53 4.53a.75.75 0 0 0 1.06-1.06l-2.72-2.72h16.38l-2.72 2.72a.75.75 0 1 0 1.06 1.06L23.06 12l-4.53-4.53Z"></path></svg>'},91288:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.5 4A1.5 1.5 0 0 1 11 2.5h7a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 23.5 8v12a1.5 1.5 0 0 1-1.5 1.5H11A1.5 1.5 0 0 1 9.5 20v-2H11v2h11V8h-4V4h-7v6H9.5V4ZM5.591 9.47a.75.75 0 0 0-1.06 0L0 14l4.53 4.53a.75.75 0 0 0 1.061-1.06l-2.72-2.72H16a.75.75 0 0 0 0-1.5H2.871l2.72-2.72a.75.75 0 0 0 0-1.06Z" clip-rule="evenodd"></path></svg>'},46018:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M.5 4c0-.83.67-1.5 1.5-1.5h7c.4 0 .78.16 1.06.44l4 4c.28.28.44.66.44 1.06v2H13V8H9V4H2v16h11v-2h1.5v2c0 .83-.67 1.5-1.5 1.5H2c-.83 0-1.5-.67-1.5-1.5V4Zm17.91 5.47c.29-.29.77-.29 1.06 0L24 14l-4.53 4.53c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l2.72-2.72H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h13.13l-2.72-2.72a.754.754 0 0 1 0-1.06Z"></path></svg>'},13006:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.5 2c0-.83.67-1.5 1.5-1.5h6c.4 0 .78.16 1.06.44l4 4c.28.28.44.66.44 1.06v10c0 .83-.67 1.5-1.5 1.5H12c-.83 0-1.5-.67-1.5-1.5V2ZM12 16V2h6v3c0 .55.45 1 1 1h3v10H12ZM7 3.5h2V5H7v14h11.5c0 .83-.67 1.5-1.5 1.5H7c-.83 0-1.5-.67-1.5-1.5V5c0-.83.67-1.5 1.5-1.5Zm-5 3h2V8H2v14h11.5c0 .83-.67 1.5-1.5 1.5H2c-.83 0-1.5-.67-1.5-1.5V8c0-.83.67-1.5 1.5-1.5Z" clip-rule="evenodd"></path></svg>'},52449:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M15.47 3.47a.75.75 0 0 0 0 1.06l2.72 2.72H10a6.75 6.75 0 0 0 0 13.5h2a.75.75 0 0 0 0-1.5h-2a5.25 5.25 0 1 1 0-10.5h8.19l-2.72 2.72a.75.75 0 1 0 1.06 1.06L21.06 8l-4.53-4.53a.75.75 0 0 0-1.06 0Z" clip-rule="evenodd"></path></svg>'},1562:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M8.25 15c0-.41.34-.75.75-.75h6c.41 0 .75.34.75.75s-.34.75-.75.75H9c-.41 0-.75-.34-.75-.75Zm12.28-9.03-5.5-5.5a.75.75 0 0 0-.53-.22H5c-.97 0-1.75.78-1.75 1.75v20c0 .97.78 1.75 1.75 1.75h14c.97 0 1.75-.78 1.75-1.75V6.5c0-.2-.08-.39-.22-.53ZM19.25 22c0 .14-.11.25-.25.25H5c-.14 0-.25-.11-.25-.25V2c0-.14.11-.25.25-.25h8.75V6.5c0 .41.34.75.75.75h4.75V22Z"></path></svg>'},52684:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12.994 2.564a.75.75 0 0 0-.988-1.128l-4 3.5a.75.75 0 0 0 0 1.128l4 3.5a.75.75 0 0 0 .988-1.128l-2.558-2.239A6.25 6.25 0 1 1 5.75 12.25a.75.75 0 0 0-1.5 0 7.75 7.75 0 1 0 6.397-7.632l2.347-2.054Z"></path></svg>'},58287:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M11.006 2.564a.75.75 0 0 1 .988-1.128l4 3.5a.75.75 0 0 1 0 1.128l-4 3.5a.75.75 0 0 1-.988-1.128l2.558-2.239a6.25 6.25 0 1 0 4.686 6.053.75.75 0 0 1 1.5 0 7.75 7.75 0 1 1-6.397-7.632l-2.347-2.054Z"></path></svg>'},57208:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M.5 4H2V2h2V.5H2C1.17.5.5 1.17.5 2v2Zm23 0H22V2h-2V.5h2c.83 0 1.5.67 1.5 1.5v2Zm0 3H22v3.5h1.5V7Zm0 6.5H22V17h1.5v-3.5Zm0 6.5H22v2h-2v1.5h2c.83 0 1.5-.67 1.5-1.5v-2ZM.5 7H2v3.5H.5V7Zm0 6.5H2V17H.5v-3.5Zm0 6.5H2v2h2v1.5H2c-.83 0-1.5-.67-1.5-1.5v-2ZM7 23.5V22h3.5v1.5H7Zm6.5 0V22H17v1.5h-3.5ZM17 .5V2h-3.5V.5H17Zm-6.5 0V2H7V.5h3.5ZM4 5.5C4 4.67 4.67 4 5.5 4h4c.83 0 1.5.67 1.5 1.5v4c0 .83-.67 1.5-1.5 1.5h-4C4.67 11 4 10.33 4 9.5v-4Zm1.5 0v4h4v-4h-4Zm-1.5 9c0-.83.67-1.5 1.5-1.5h4c.83 0 1.5.67 1.5 1.5v4c0 .83-.67 1.5-1.5 1.5h-4c-.83 0-1.5-.67-1.5-1.5v-4Zm1.5 0v4h4v-4h-4Zm9-10.5c-.83 0-1.5.67-1.5 1.5v4c0 .83.67 1.5 1.5 1.5h4c.83 0 1.5-.67 1.5-1.5v-4c0-.83-.67-1.5-1.5-1.5h-4Zm0 5.5v-4h4v4h-4Zm-1.5 5c0-.83.67-1.5 1.5-1.5h4c.83 0 1.5.67 1.5 1.5v4c0 .83-.67 1.5-1.5 1.5h-4c-.83 0-1.5-.67-1.5-1.5v-4Zm1.5 0v4h4v-4h-4Z"></path></svg>'},95119:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M.5 4H2V2h2V.5H2C1.17.5.5 1.17.5 2v2Zm23 0H22V2h-2V.5h2c.83 0 1.5.67 1.5 1.5v2Zm0 3H22v3.5h1.5V7Zm0 6.5H22V17h1.5v-3.5Zm0 6.5H22v2h-2v1.5h2c.83 0 1.5-.67 1.5-1.5v-2ZM.5 7H2v3.5H.5V7Zm0 6.5H2V17H.5v-3.5Zm0 6.5H2v2h2v1.5H2c-.83 0-1.5-.67-1.5-1.5v-2ZM7 23.5V22h3.5v1.5H7Zm6.5 0V22H17v1.5h-3.5ZM17 .5V2h-3.5V.5H17Zm-6.5 0V2H7V.5h3.5Zm6.03 8.03c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-8 8c-.29.29-.29.77 0 1.06.29.29.77.29 1.06 0l8-8Z"></path></svg>'},32428:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8.53 3.47a.75.75 0 0 1 0 1.06L5.81 7.25H14a6.75 6.75 0 0 1 0 13.5h-2a.75.75 0 0 1 0-1.5h2a5.25 5.25 0 1 0 0-10.5H5.81l2.72 2.72a.75.75 0 1 1-1.06 1.06L2.94 8l4.53-4.53a.75.75 0 0 1 1.06 0Z" clip-rule="evenodd"></path></svg>'},62475:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18.5 10c0 2.077-.745 3.98-1.983 5.457l.013.013 5 5a.75.75 0 0 1-1.06 1.06l-5-5-.013-.013A8.5 8.5 0 1 1 18.5 10ZM10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm.75-10a.75.75 0 0 0-1.5 0v2.25H7a.75.75 0 0 0 0 1.5h2.25V13a.75.75 0 0 0 1.5 0v-2.25H13a.75.75 0 0 0 0-1.5h-2.25V7Z" clip-rule="evenodd"></path></svg>'},75480:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18.5 10c0 2.077-.745 3.98-1.983 5.457l.013.013 5 5a.75.75 0 0 1-1.06 1.06l-5-5-.013-.013A8.5 8.5 0 1 1 18.5 10ZM10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14ZM7 9.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5H7Z" clip-rule="evenodd"></path></svg>'},5111:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2.003 2.889a8.503 8.503 0 0 1-9.492 5.48l9.492-5.48Zm.367-1.367-11.23 6.483a8.497 8.497 0 0 1-2.92-1.778l14.073-8.125a8.526 8.526 0 0 1 .077 3.42Zm-.366-4.408L5.504 17.482a8.49 8.49 0 0 1-1.502-2.597l14.494-8.368a8.492 8.492 0 0 1 1.502 2.597Zm-2.212-3.341L3.713 13.898a8.527 8.527 0 0 1-.077-3.42l11.229-6.483a8.499 8.499 0 0 1 2.92 1.778ZM13.495 3.63a8.503 8.503 0 0 0-9.491 5.48l9.49-5.48Z" clip-rule="evenodd"></path></svg>'},58439:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 20.5a8.5 8.5 0 1 0 0-17 8.5 8.5 0 0 0 0 17Zm0 1.5c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z" clip-rule="evenodd"></path></svg>'},5461:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 2.25a.75.75 0 0 1 .75.75v13.19l2.72-2.72a.75.75 0 1 1 1.06 1.06L12 19.06l-4.53-4.53a.75.75 0 1 1 1.06-1.06l2.72 2.72V3a.75.75 0 0 1 .75-.75Zm-9 14a.75.75 0 0 1 .75.75v3c0 .69.56 1.25 1.25 1.25h14c.69 0 1.25-.56 1.25-1.25v-3a.75.75 0 0 1 1.5 0v3A2.75 2.75 0 0 1 19 22.75H5A2.75 2.75 0 0 1 2.25 20v-3a.75.75 0 0 1 .75-.75Z" clip-rule="evenodd"></path></svg>'},1925:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.61 8.44001C15.85 8.11001 15.78 7.64001 15.45 7.39001C15.11 7.14001 14.65 7.22001 14.4 7.55001C14.37 7.59001 11.65 11.24 8.01002 11.24C4.37002 11.24 1.63002 7.59001 1.61002 7.56001C1.37002 7.23001 0.90002 7.15001 0.56002 7.40001C0.23002 7.64001 0.15002 8.11001 0.40002 8.45001C0.46002 8.54001 1.23002 9.57001 2.52002 10.61L1.17002 12.54C0.930019 12.88 1.01002 13.35 1.35002 13.58C1.48002 13.67 1.63002 13.72 1.78002 13.72C2.02002 13.72 2.25002 13.61 2.39002 13.4L3.74002 11.48C4.74002 12.09 5.92002 12.58 7.25002 12.72V15.01C7.25002 15.42 7.59002 15.76 8.00002 15.76C8.41002 15.76 8.75002 15.42 8.75002 15.01V12.72C10.08 12.58 11.26 12.08 12.26 11.48L13.61 13.4C13.76 13.61 13.99 13.72 14.23 13.72C14.38 13.72 14.53 13.68 14.66 13.58C15 13.34 15.08 12.87 14.84 12.54L13.49 10.61C14.78 9.58001 15.55 8.54001 15.61 8.45001V8.44001Z" fill="currentColor"></path></svg>'},16074:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.03899 8.16712C2.99322 8.10774 2.9511 8.05183 2.91276 8C2.9511 7.94817 2.99322 7.89226 3.03899 7.83288C3.31051 7.48064 3.70596 7.01225 4.20119 6.54615C5.21159 5.59519 6.5337 4.75 7.99967 4.75C9.46564 4.75 10.7878 5.59519 11.7981 6.54615C12.2934 7.01225 12.6888 7.48064 12.9604 7.83288C13.0061 7.89226 13.0482 7.94816 13.0866 8C13.0482 8.05183 13.0061 8.10774 12.9604 8.16712C12.6888 8.51936 12.2934 8.98775 11.7981 9.45385C10.7878 10.4048 9.46564 11.25 7.99967 11.25C6.5337 11.25 5.21159 10.4048 4.20119 9.45385C3.70596 8.98775 3.31051 8.51936 3.03899 8.16712ZM13.9997 8C14.6357 7.6025 14.6355 7.60229 14.6354 7.60206L13.9997 8ZM14.6354 7.60206L14.8841 8L14.6357 8.3975L13.9997 8C14.6357 8.3975 14.6352 8.39824 14.6351 8.39847L14.6342 8.3998L14.6319 8.40356L14.6243 8.41537L14.5984 8.4555C14.5762 8.48935 14.5445 8.5371 14.5034 8.59677C14.4214 8.71604 14.3021 8.88341 14.1484 9.08288C13.8418 9.48064 13.3935 10.0123 12.8262 10.5462C11.7116 11.5952 10.0337 12.75 7.99967 12.75C5.96564 12.75 4.28775 11.5952 3.17315 10.5462C2.60588 10.0123 2.15758 9.48064 1.85097 9.08288C1.69721 8.88341 1.57789 8.71604 1.4959 8.59677C1.45487 8.5371 1.42311 8.48935 1.40097 8.4555L1.37499 8.41537L1.36748 8.40356L1.36511 8.3998L1.36367 8.3975L1.99934 8.00021C1.36765 8.39501 1.36356 8.39726 1.36367 8.3975L1.11523 8L1.36367 7.6025L1.99934 8.00021C1.36334 7.60271 1.36413 7.60176 1.36428 7.60153L1.36511 7.6002L1.36748 7.59644L1.37499 7.58463L1.40097 7.5445C1.42311 7.51066 1.45487 7.4629 1.4959 7.40323C1.57789 7.28396 1.69721 7.11659 1.85097 6.91712C2.15758 6.51936 2.60588 5.98775 3.17315 5.45385C4.28775 4.40481 5.96564 3.25 7.99967 3.25C10.0337 3.25 11.7116 4.40481 12.8262 5.45385C13.3935 5.98775 13.8418 6.51936 14.1484 6.91712C14.3021 7.11659 14.4214 7.28396 14.5034 7.40323C14.5445 7.4629 14.5762 7.51066 14.5984 7.5445L14.6243 7.58463L14.6319 7.59644L14.6342 7.6002L14.6354 7.60206ZM8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z" fill="currentColor"></path></svg>'},92742:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3 2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H3Zm5 19v-3.5h1.5v3h11v-11h-3V8H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1Z" clip-rule="evenodd"></path></svg>'},44882:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M21 5a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h18Zm-4 1h4a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-4V6ZM7 18H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h4v12ZM8.5 6.5h7v11h-7v-11Z" clip-rule="evenodd"></path></svg>'},85449:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M0 6a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6Zm20.75-1H22a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-1.25V5Zm-1.5 0H4.75v14h14.5V5Zm-16 14V5H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h1.25Z" clip-rule="evenodd"></path></svg>'},14379:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m23.691 19.7-6-14a.758.758 0 0 0-.69-.45c-.3 0-.57.18-.69.45l-6 14c-.16.39.01.83.39.99.39.16.83-.01.99-.39l2.38-5.55h5.86l2.38 5.55c.16.38.6.55.99.39.38-.16.55-.6.39-.99Zm-8.98-6.45 2.29-5.35 2.29 5.35h-4.58Zm-6.01 6.48-3.5-9a.748.748 0 0 0-.7-.48c-.31 0-.59.19-.7.48l-3.5 9a.75.75 0 1 0 1.4.54l.79-2.02h4.02l.79 2.02a.75.75 0 1 0 1.4-.54Zm-5.63-2.98 1.43-3.68 1.43 3.68h-2.86Z" clip-rule="evenodd"></path></svg>'},81741:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M1 3.25c-.41 0-.75.34-.75.75s.34.75.75.75h5.25V15c0 .41.34.75.75.75s.75-.34.75-.75V4.75H13c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H1Zm21.75 7h-11.5V14c0 .41.34.75.75.75s.75-.34.75-.75v-2.25h3.5v8.5H14.5c-.41 0-.75.34-.75.75s.34.75.75.75h5c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-1.75v-8.5h3.5V14c0 .41.34.75.75.75s.75-.34.75-.75v-3.75Z"></path></svg>'},90686:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22 5H2C.9 5 0 5.9 0 7v10c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2Zm.5 12c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V7c0-.28.22-.5.5-.5h20c.28 0 .5.22.5.5v10ZM8.27 9.29c-1.68 0-2.84 1.3-2.84 2.91s1.16 2.91 2.84 2.91 2.84-1.3 2.84-2.91-1.16-2.91-2.84-2.91Zm0 4.62c-.97 0-1.46-.89-1.46-1.71s.49-1.71 1.46-1.71 1.47.89 1.47 1.71-.49 1.71-1.47 1.71ZM12.75 15V9.4h1.38v2.14l2.05-2.14h1.66l-2.06 2.18L17.92 15h-1.59l-1.53-2.48-.67.72V15h-1.38Z" clip-rule="evenodd"></path></svg>'},63357:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M16.53 10.03c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0L11 13.44l-1.97-1.97a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l2.38 2.38c.36.36.94.36 1.3 0l4.88-4.88ZM18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2Zm.5 14c0 .28-.22.5-.5.5H6c-.28 0-.5-.22-.5-.5V6c0-.28.22-.5.5-.5h12c.28 0 .5.22.5.5v12Z"></path></svg>'},97245:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M5 8.25c.41 0 .75.34.75.75v6c0 .41-.34.75-.75.75s-.75-.34-.75-.75V9c0-.41.34-.75.75-.75Zm9.21 2.25h5.59c.45 0 .67.54.35.85l-2.79 2.79c-.2.2-.51.2-.71 0l-2.79-2.79c-.32-.31-.09-.85.35-.85ZM22 5H2C.9 5 0 5.9 0 7v10c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2Zm.5 12c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V7c0-.28.22-.5.5-.5h20c.28 0 .5.22.5.5v10Z"></path></svg>'},8716:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9 6C7.34 6 6 7.34 6 9s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3Zm0 4.5c-.83 0-1.5-.67-1.5-1.5S8.17 7.5 9 7.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5Zm7 3.5H8c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-2c0-1.1-.9-2-2-2Zm.5 4c0 .28-.22.5-.5.5H8c-.28 0-.5-.22-.5-.5v-2c0-.28.22-.5.5-.5h8c.28 0 .5.22.5.5v2Zm4.03-12.03-5.5-5.5a.75.75 0 0 0-.53-.22H5c-.97 0-1.75.78-1.75 1.75v20c0 .97.78 1.75 1.75 1.75h14c.97 0 1.75-.78 1.75-1.75V6.5c0-.2-.08-.39-.22-.53ZM19.25 22c0 .14-.11.25-.25.25H5c-.14 0-.25-.11-.25-.25V2c0-.14.11-.25.25-.25h8.75V6.5c0 .41.34.75.75.75h4.75V22Z" clip-rule="evenodd"></path></svg>'},48358:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M19 17.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5Zm0-5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5Zm-5.5 5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5Zm0-5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5Zm-5.5 5c0 .83-.67 1.5-1.5 1.5S5 18.33 5 17.5 5.67 16 6.5 16s1.5.67 1.5 1.5Zm12-15h-1.75V1c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.5h-9.5V1c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.5H4C2.07 2.5.5 4.07.5 6v13c0 1.93 1.57 3.5 3.5 3.5h16c1.93 0 3.5-1.57 3.5-3.5V6c0-1.93-1.57-3.5-3.5-3.5ZM22 19c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9.25h20V19Zm0-11.25H2V6c0-1.1.9-2 2-2h1.75v2c0 .41.34.75.75.75s.75-.34.75-.75V4h9.5v2c0 .41.34.75.75.75s.75-.34.75-.75V4H20c1.1 0 2 .9 2 2v1.75Z"></path></svg>'},92070:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M19.75 7c0 .41-.34.75-.75.75h-9c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h9c.41 0 .75.34.75.75ZM19 17.75c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-9c-.41 0-.75.34-.75.75s.34.75.75.75h9Zm.75-5.75c0 .41-.34.75-.75.75h-9c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h9c.41 0 .75.34.75.75ZM5.5 8.5C6.33 8.5 7 7.83 7 7s-.67-1.5-1.5-1.5S4 6.17 4 7s.67 1.5 1.5 1.5ZM7 17c0 .83-.67 1.5-1.5 1.5S4 17.83 4 17s.67-1.5 1.5-1.5S7 16.17 7 17Zm-1.5-3.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5S4 11.17 4 12s.67 1.5 1.5 1.5ZM22 2H2C.9 2 0 2.9 0 4v16c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm.5 18c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V4c0-.28.22-.5.5-.5h20c.28 0 .5.22.5.5v16Z"></path></svg>'},60571:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12 15c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3Zm0-11c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8Zm0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13Z"></path></svg>'},50121:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M7.337 19H2a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9.351c-.2.698-.42 1.353-.655 1.936-.293.73-.624 1.386-.993 1.872-.341.45-.856.942-1.546.942-.816 0-1.29-.637-1.536-1.145-.264-.545-.419-1.235-.503-1.905a11.182 11.182 0 0 1-.079-1.7ZM2 6.5h20a.5.5 0 0 1 .5.5v10a.5.5 0 0 1-.5.5h-8.964a35.02 35.02 0 0 0 .378-1.872c.164-.947.288-1.902.361-2.806a12.627 12.627 0 0 1 1.573-.884l.056.143.128.325c.114.284.264.63.454.911.161.24.517.683 1.105.683 1.035 0 1.89-.59 2.49-1.386.6-.797 1.003-1.862 1.162-3.011a.75.75 0 1 0-1.486-.206c-.132.95-.457 1.76-.874 2.314-.37.49-.768.73-1.145.78l-.008-.011a3.71 3.71 0 0 1-.307-.636l-.098-.248a11.933 11.933 0 0 0-.228-.557 2.162 2.162 0 0 0-.224-.392c-.062-.083-.304-.397-.737-.397a.75.75 0 0 0-.27.05 11.9 11.9 0 0 0-1.517.723c-.002-.251-.01-.493-.023-.724-.044-.734-.155-1.422-.382-1.95-.223-.52-.667-1.099-1.444-1.099-.52 0-1.215.217-1.9.486-.718.282-1.539.67-2.358 1.1-1.623.853-3.322 1.917-4.239 2.727a.75.75 0 1 0 .994 1.124c.78-.69 2.353-1.688 3.943-2.523a23.18 23.18 0 0 1 2.21-1.032c.646-.255 1.088-.368 1.31-.38a.69.69 0 0 1 .106.188c.125.292.222.776.262 1.449.03.48.027 1.023-.002 1.609-.524.377-1.03.785-1.506 1.207-1.358 1.207-2.527 2.596-3.131 3.843a2.563 2.563 0 0 0-.163.452H2a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5ZM11.084 19c-.152.496-.314.96-.482 1.377-.27.675-.543 1.192-.796 1.526-.183.24-.299.315-.343.337-.035-.027-.104-.102-.194-.288-.162-.335-.29-.842-.364-1.439A9.678 9.678 0 0 1 8.838 19h2.246Zm.41-1.5H9.142c.518-.964 1.48-2.113 2.675-3.174.105-.094.212-.186.32-.278a32.415 32.415 0 0 1-.643 3.452Zm.442-8.77s.006.002.016.012c-.011-.005-.016-.01-.016-.011ZM9.488 22.257s-.003 0-.008-.003c.006.001.008.002.008.003Zm7.811-9.69-.01-.01.01.01Z" clip-rule="evenodd"></path></svg>'},29890:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8.25 2A.75.75 0 0 1 9 1.25c1.227 0 2.316.589 3 1.5a3.744 3.744 0 0 1 3-1.5.75.75 0 0 1 0 1.5A2.25 2.25 0 0 0 12.75 5H22a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9.25v.002A2.25 2.25 0 0 0 15 21.25a.75.75 0 0 1 0 1.5 3.744 3.744 0 0 1-3-1.5 3.744 3.744 0 0 1-3 1.5.75.75 0 0 1 0-1.5A2.25 2.25 0 0 0 11.25 19H2a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h9.25A2.25 2.25 0 0 0 9 2.75.75.75 0 0 1 8.25 2ZM2 6.5h9.25v4.75h-1.5a.75.75 0 0 0 0 1.5h1.5v4.75H2a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5Zm10.75 6.25v4.75H22a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5h-9.25v4.75h1.5a.75.75 0 0 1 0 1.5h-1.5Z" clip-rule="evenodd"></path></svg>'},66962:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11.255 5.002c0-.41.34-.75.75-.75h7.003c.41 0 .75.34.75.75v7.003c0 .41-.34.75-.75.75h-6.253v6.253c0 .41-.34.75-.75.75H5.002c-.41 0-.75-.34-.75-.75v-7.003c0-.41.34-.75.75-.75h6.253V5.002Zm1.5.75v5.503h5.503V5.752h-5.503Zm-7.003 7.003v5.503h5.503v-5.503H5.752ZM1.251 3.852A2.012 2.012 0 0 1 0 2C0 .9.9 0 2 0c.841 0 1.561.52 1.852 1.25h16.296C20.448.52 21.168 0 22 0c1.1 0 2 .9 2 2 0 .841-.52 1.561-1.25 1.852v16.296c.73.3 1.25 1.02 1.25 1.851C24 23.1 23.1 24 22 24c-.841 0-1.561-.52-1.852-1.25H3.852C3.552 23.48 2.832 24 2 24c-1.1 0-2-.9-2-2 0-.841.52-1.561 1.25-1.852V3.852Zm20.008 16.306c-.5.2-.9.6-1.1 1.1H3.851c-.2-.5-.6-.9-1.1-1.1V3.852c.5-.2.9-.6 1.1-1.1h16.296c.2.5.6.9 1.1 1.1v16.296l.01.01Z" clip-rule="evenodd"></path></svg>'},60967:e=>{e.exports='<svg width="16" height="15" viewBox="0 0 16 15" fill="none" xmlns="http://www.w3.org/2000/svg"><line x1="0.75" y1="1.44214" x2="15.25" y2="1.44214" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></line><line x1="0.75" y1="7.44214" x2="15.25" y2="7.44214" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></line><line x1="0.75" y1="13.4421" x2="15.25" y2="13.4421" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></line></svg>'},99319:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4 2.5a3 3 0 0 0-3 3v13a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3v-13a3 3 0 0 0-3-3H4Zm3 3.75a.75.75 0 0 0 0 1.5h4.25V18a.75.75 0 0 0 1.5 0V7.75H17a.75.75 0 0 0 0-1.5H7Z" clip-rule="evenodd"></path></svg>'},939:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M14.75 3.5a.75.75 0 0 0-1.085-.67l-4 2a.75.75 0 0 0-.415.67v2.75H9a.75.75 0 0 0-.75.75v2a7.25 7.25 0 0 1-2.9 5.8l-.8.6a.75.75 0 0 0-.3.6v4a.75.75 0 1 0 1.5 0v-3.625l.5-.375a8.75 8.75 0 0 0 3.5-7V9.75h4.5V11a8.75 8.75 0 0 0 3.5 7l.5.375V22a.75.75 0 1 0 1.5 0v-4a.75.75 0 0 0-.3-.6l-.8-.6a7.25 7.25 0 0 1-2.9-5.8V9a.75.75 0 0 0-.75-.75h-.25V3.5Z"></path></svg>'},71865:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M6.5 10C7.33 10 8 9.33 8 8.5S7.33 7 6.5 7 5 7.67 5 8.5 5.67 10 6.5 10ZM23 15.94V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-2l.03-.03-.03-.03ZM21.5 18c0 .28-.22.5-.5.5H3c-.12 0-.23-.04-.32-.12l3.82-3.82 2.47 2.47a.75.75 0 0 0 1.06 0L16 11.06l5.5 5.5V18Zm0-3.56-4.97-4.97a.75.75 0 0 0-1.06 0L9.5 15.44l-2.47-2.47a.754.754 0 0 0-1.06 0L2.5 16.44V6c0-.28.22-.5.5-.5h18c.28 0 .5.22.5.5v8.44Z"></path></svg>'},69241:e=>{e.exports='<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.5 8.99997C16.5 13.1421 13.1421 16.5 9 16.5C4.85786 16.5 1.5 13.1421 1.5 8.99997C1.5 4.85783 4.85786 1.49997 9 1.49997C13.1421 1.49997 16.5 4.85783 16.5 8.99997ZM9.92328 11.947V7.82272H6.96415V8.87572H8.38278V11.947H6.9154V13H11.2395V11.947H9.92328ZM9.6454 5.36084C9.4764 5.19509 9.25865 5.11222 8.99215 5.11222C8.7224 5.11222 8.5014 5.19509 8.32915 5.36084C8.16015 5.52659 8.07565 5.73297 8.07565 5.97997C8.07565 6.22697 8.16015 6.43497 8.32915 6.60397C8.5014 6.76972 8.7224 6.85259 8.99215 6.85259C9.25865 6.85259 9.4764 6.76972 9.6454 6.60397C9.8144 6.43497 9.8989 6.22697 9.8989 5.97997C9.8989 5.73297 9.8144 5.52659 9.6454 5.36084Z" fill="currentColor"></path></svg>'},94814:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m21.758 8.562-6.36-6.36c-.39-.39-1.02-.39-1.42 0l-12.02 12.02a3 3 0 0 0 0 4.24l3.54 3.54h4.24l12.02-12.02c.39-.39.39-1.02 0-1.42Zm-12.64 11.94h-3l-3.1-3.1c-.58-.58-.58-1.53 0-2.12l2.3-2.3 5.66 5.66-1.86 1.86Zm2.92-2.92-5.66-5.66 8.31-8.3 5.66 5.65-8.31 8.31Zm-.18 4.42 1.5-1.5h4.64c.41 0 .75.34.75.75s-.34.75-.75.75h-6.14Zm8.39-.75c0-.41.34-.75.75-.75h2c.41 0 .75.34.75.75s-.34.75-.75.75h-2c-.41 0-.75-.34-.75-.75Z" clip-rule="evenodd"></path></svg>'},79363:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M13 4a1 1 0 1 0-2 0v2.25h-1a.75.75 0 0 0-.75.75v2.671c0 1.357-.957 2.577-2.157 3.8A6.393 6.393 0 0 0 5.25 18v3a.75.75 0 0 0 1.5 0v-3c0-1.386.536-2.586 1.413-3.479 1.175-1.196 2.587-2.816 2.587-4.85V7.75h2.5v1.921c0 2.035 1.412 3.654 2.587 4.85A4.893 4.893 0 0 1 17.25 18v3a.75.75 0 0 0 1.5 0v-3a6.39 6.39 0 0 0-1.843-4.53c-1.2-1.222-2.157-2.442-2.157-3.799V7a.75.75 0 0 0-.75-.75h-1V4Z"></path></svg>'},22606:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2.85 8l1.27-1.32L6.74 9.3l5.15-5.13 1.26 1.27-6.41 6.39z" fill="currentColor"></path></svg>'},66311:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M9.75 7a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-1.901l-2.16 9.5H13a.75.75 0 0 1 0 1.5H8a.75.75 0 0 1 0-1.5h1.901l2.16-9.5H10.5A.75.75 0 0 1 9.75 7Z"></path></svg>'},91998:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M16.01 12c0 2.21-1.79 4-4 4s-4-1.79-4-4 1.79-4 4-4 4 1.79 4 4Zm-1.5 0a2.5 2.5 0 0 1-5 0 2.5 2.5 0 0 1 5 0ZM11.33 1.25c-.83 0-1.55.59-1.72 1.41l-.4 2c-.01.05-.06.13-.17.18-.11.05-.2.03-.24 0L7.1 3.71c-.69-.46-1.62-.37-2.21.22l-.96.96c-.59.59-.68 1.51-.22 2.21l1.13 1.7s.05.13 0 .24c-.05.11-.13.16-.18.17l-2 .4c-.82.16-1.41.88-1.41 1.72v1.36c0 .83.59 1.55 1.41 1.72l2 .4c.05.01.13.06.18.17.05.11.03.2 0 .24l-1.13 1.7c-.46.69-.37 1.62.22 2.21l.96.96c.59.59 1.51.68 2.21.22l1.7-1.13s.13-.05.24 0c.11.05.16.13.17.18l.4 2c.16.82.88 1.41 1.72 1.41h1.36c.83 0 1.55-.59 1.72-1.41l.4-2c.01-.05.06-.13.17-.18.11-.05.2-.03.24 0l1.7 1.13c.69.46 1.62.37 2.21-.22l.96-.96c.59-.59.68-1.51.22-2.21l-1.13-1.7s-.05-.13 0-.24c.05-.11.13-.16.18-.17l2-.4c.82-.16 1.41-.88 1.41-1.72v-1.36c0-.83-.59-1.55-1.41-1.72l-2-.4c-.05-.01-.13-.06-.18-.17-.05-.11-.03-.2 0-.24l1.13-1.7c.46-.69.37-1.62-.22-2.21l-.96-.96c-.59-.59-1.51-.68-2.21-.22l-1.7 1.13s-.13.05-.24 0c-.11-.05-.16-.13-.17-.18l-.4-2c-.16-.82-.88-1.41-1.72-1.41h-1.36Zm-.25 1.7c.02-.12.13-.2.25-.2h1.36c.12 0 .22.08.25.2l.4 2c.12.61.56 1.06 1.07 1.27.51.21 1.14.2 1.65-.14l1.7-1.13c.1-.07.23-.05.32.03l.96.96c.08.08.1.22.03.32l-1.13 1.7c-.34.51-.36 1.14-.14 1.65.21.51.66.95 1.27 1.07l2 .4c.12.02.2.13.2.25v1.36c0 .12-.08.22-.2.25l-2 .4c-.61.12-1.06.56-1.27 1.07-.21.51-.2 1.14.14 1.65l1.13 1.7c.07.1.05.23-.03.32l-.96.96c-.08.08-.22.1-.32.03l-1.7-1.13c-.51-.34-1.14-.36-1.65-.14-.51.21-.95.66-1.07 1.27l-.4 2c-.02.12-.13.2-.25.2h-1.36c-.12 0-.22-.08-.25-.2l-.4-2c-.12-.61-.56-1.06-1.07-1.27-.51-.21-1.14-.2-1.65.14l-1.7 1.13c-.1.07-.23.05-.32-.03l-.96-.96a.256.256 0 0 1-.03-.32l1.13-1.7c.34-.51.36-1.14.14-1.65-.21-.51-.66-.95-1.27-1.07l-2-.4a.248.248 0 0 1-.2-.25v-1.36c0-.12.08-.22.2-.25l2-.4c.61-.12 1.06-.56 1.27-1.07.21-.51.2-1.14-.14-1.65l-1.13-1.7c-.07-.1-.05-.23.03-.32l.96-.96c.08-.08.22-.1.32-.03l1.7 1.13c.51.34 1.14.36 1.65.14.51-.21.95-.66 1.07-1.27l.4-2Z" clip-rule="evenodd"></path></svg>'},46318:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12.69 1.31c-.11-.8-1.27-.8-1.39 0l-.25 1.74-1.74.25c-.8.11-.8 1.27 0 1.39l1.74.25.25 1.74c.11.8 1.27.8 1.39 0l.25-1.74 1.74-.25c.8-.11.8-1.27 0-1.39l-1.74-.25-.25-1.74Zm-7 10c-.11-.8-1.27-.8-1.39 0l-.25 1.74-1.74.25c-.8.11-.8 1.27 0 1.39l1.74.25.25 1.74c.11.8 1.27.8 1.39 0l.25-1.74 1.74-.25c.8-.11.8-1.27 0-1.39l-1.74-.25-.25-1.74Zm14 5c-.11-.8-1.27-.8-1.39 0l-.25 1.74-1.74.25c-.8.11-.8 1.27 0 1.39l1.74.25.25 1.74c.11.8 1.27.8 1.39 0l.25-1.74 1.74-.25c.8-.11.8-1.27 0-1.39l-1.74-.25-.25-1.74ZM20 8.99c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1Zm-8 5c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1Zm-8-8c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1Zm5 17c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1Z"></path></svg>'},1409:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M5.75 4V0h-1.5v4c0 .97.78 1.75 1.75 1.75h12c.97 0 1.75-.78 1.75-1.75V0h-1.5v4c0 .14-.11.25-.25.25H6c-.14 0-.25-.11-.25-.25Zm0 5c0-.14.11-.25.25-.25h12c.14 0 .25.11.25.25v15h1.5V9c0-.97-.78-1.75-1.75-1.75H6c-.97 0-1.75.78-1.75 1.75v15h1.5V9Z"></path></svg>'},63113:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 20.75A1.75 1.75 0 0 1 .25 19V5c0-.966.784-1.75 1.75-1.75h20c.966 0 1.75.784 1.75 1.75v14A1.75 1.75 0 0 1 22 20.75H2ZM1.75 5A.25.25 0 0 1 2 4.75h9.25v14.5H2a.25.25 0 0 1-.25-.25V5Zm11-.25v14.5H22a.25.25 0 0 0 .25-.25V5a.25.25 0 0 0-.25-.25h-9.25Z" clip-rule="evenodd"></path></svg>'},65558:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M5 1.75a.25.25 0 0 0-.25.25v20c0 .138.112.25.25.25h14a.25.25 0 0 0 .25-.25V2a.25.25 0 0 0-.25-.25H5ZM3.25 2c0-.966.784-1.75 1.75-1.75h14c.966 0 1.75.784 1.75 1.75v20A1.75 1.75 0 0 1 19 23.75H5A1.75 1.75 0 0 1 3.25 22V2Z" clip-rule="evenodd"></path></svg>'},58417:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12.994 2.564a.75.75 0 0 0-.988-1.128l-4 3.5a.75.75 0 0 0 0 1.128l4 3.5a.75.75 0 0 0 .988-1.128l-2.558-2.239A6.25 6.25 0 1 1 5.75 12.25a.75.75 0 0 0-1.5 0 7.75 7.75 0 1 0 6.397-7.632l2.347-2.054Z"></path></svg>'},54669:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M11.006 2.564a.75.75 0 0 1 .988-1.128l4 3.5a.75.75 0 0 1 0 1.128l-4 3.5a.75.75 0 0 1-.988-1.128l2.558-2.239a6.25 6.25 0 1 0 4.686 6.053.75.75 0 0 1 1.5 0 7.75 7.75 0 1 1-6.397-7.632l-2.347-2.054Z"></path></svg>'},20113:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 5.75h1.579v-1.5H2v1.5Zm3.684 0h1.58v-1.5h-1.58v1.5Zm3.684 0h1.58v-1.5h-1.58v1.5Zm3.685 0h1.579v-1.5h-1.58v1.5Zm3.684 0h1.579v-1.5h-1.58v1.5Zm3.684 0H22v-1.5h-1.579v1.5Zm-1.421 7h3v-1.5h-3v1.5Zm-17 7h20v-1.5H2v1.5Zm15-7h-4v-1.5h4v1.5Zm-10 0h4v-1.5H7v1.5Zm-2 0H2v-1.5h3v1.5Z" clip-rule="evenodd"></path></svg>'},41869:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22 5.5H2v-1h20v1Zm0 6.5H2v-2h20v2ZM2 19.5h20v-3H2v3Z" clip-rule="evenodd"></path></svg>'},66294:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22.53 1.47a.75.75 0 0 1 0 1.06l-20 20a.75.75 0 0 1-1.06-1.06l20-20a.75.75 0 0 1 1.06 0Z" clip-rule="evenodd"></path></svg>'},83553:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2.25 2a.75.75 0 0 1 1.5 0v4.25H21a.75.75 0 0 1 0 1.5H3.75V12a.75.75 0 0 1-1.5 0V2Zm14.28 9.47a.75.75 0 1 0-1.06 1.06l3.72 3.72H3a.75.75 0 0 0 0 1.5h16.19l-3.72 3.72a.75.75 0 1 0 1.06 1.06L22.06 17l-5.53-5.53Z" clip-rule="evenodd"></path></svg>'},61682:e=>{e.exports='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 5.75H3.57895V4.25H2V5.75ZM5.68421 5.75H7.26316V4.25H5.68421V5.75ZM9.36842 5.75H10.9474V4.25H9.36842V5.75ZM13.0526 5.75H14.6316V4.25H13.0526V5.75ZM16.7368 5.75H18.3158V4.25H16.7368V5.75ZM20.4211 5.75H22V4.25H20.4211V5.75ZM19 12.75H22V11.25H19V12.75ZM2 19.75H22V18.25H2V19.75ZM17 12.75H13V11.25H17V12.75ZM7 12.75H11V11.25H7V12.75ZM5 12.75H2V11.25H5V12.75Z" fill="currentColor"></path></svg>'},22243:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M17.834 11.677a.75.75 0 0 1-1.06-1.06l2.12-2.122a2.25 2.25 0 0 0 0-3.182l-.706-.707a2.25 2.25 0 0 0-3.182 0l-4.243 4.242a2.25 2.25 0 0 0 0 3.182l.354.354a.75.75 0 0 1-1.061 1.06l-.354-.353a3.75 3.75 0 0 1 0-5.303l4.243-4.243a3.75 3.75 0 0 1 5.303 0l.707.707a3.75 3.75 0 0 1 0 5.304l-2.121 2.12Zm-11.667-.354a.75.75 0 0 1 1.06 1.061l-2.12 2.121a2.25 2.25 0 0 0 0 3.182l.706.707a2.25 2.25 0 0 0 3.182 0l4.243-4.242a2.25 2.25 0 0 0 0-3.182l-.354-.354a.75.75 0 0 1 1.061-1.06l.354.353a3.75 3.75 0 0 1 0 5.303l-4.243 4.243a3.75 3.75 0 0 1-5.303 0l-.707-.707a3.75 3.75 0 0 1 0-5.303l2.12-2.122Z" clip-rule="evenodd"></path></svg>'},50308:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12.75 15.8c.45-.26.75-.74.75-1.3 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .56.3 1.04.75 1.3V18c0 .41.34.75.75.75s.75-.34.75-.75v-2.2ZM18 9h-1.25V6c0-2.62-2.13-4.75-4.75-4.75S7.25 3.38 7.25 6v3H6c-1.66 0-3 1.34-3 3v8c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3v-8c0-1.66-1.34-3-3-3ZM8.75 6c0-1.79 1.46-3.25 3.25-3.25S15.25 4.21 15.25 6v3h-6.5V6ZM19.5 20c0 .83-.67 1.5-1.5 1.5H6c-.83 0-1.5-.67-1.5-1.5v-8c0-.83.67-1.5 1.5-1.5h12c.83 0 1.5.67 1.5 1.5v8Z"></path></svg>'},35231:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M.5 4H2V2h2V.5H2C1.17.5.5 1.17.5 2v2Zm23 0H22V2h-2V.5h2c.83 0 1.5.67 1.5 1.5v2Zm0 3H22v3.5h1.5V7Zm0 6.5H22V17h1.5v-3.5ZM.5 7H2v3.5H.5V7Zm0 6.5H2V17H.5v-3.5Zm0 6.5H2v2h2v1.5H2c-.83 0-1.5-.67-1.5-1.5v-2ZM7 23.5V22h3.5v1.5H7Zm6.5 0V22H17v1.5h-3.5ZM17 .5V2h-3.5V.5H17Zm-6.5 0V2H7V.5h3.5ZM12 8.75c.41 0 .75.34.75.75v1.75h1.75c.41 0 .75.34.75.75s-.34.75-.75.75h-1.75v1.75c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-1.75H9.5c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h1.75V9.5c0-.41.34-.75.75-.75Zm10.53 12.72-4.72-4.72A7.482 7.482 0 0 0 19.5 12c0-4.14-3.36-7.5-7.5-7.5-4.14 0-7.5 3.36-7.5 7.5 0 4.14 3.36 7.5 7.5 7.5 1.8 0 3.45-.63 4.75-1.69l4.72 4.72c.29.29.77.29 1.06 0 .29-.29.29-.77 0-1.06ZM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6Z"></path></svg>'},45606:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M23 6H1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1ZM1.5 16.5v-9h3.75V11a.75.75 0 0 0 1.5 0V7.5h1.5V13a.75.75 0 0 0 1.5 0V7.5h1.5V11a.75.75 0 0 0 1.5 0V7.5h1.5V13a.75.75 0 0 0 1.5 0V7.5h1.5V11a.75.75 0 0 0 1.5 0V7.5h3.75v9h-21Z" clip-rule="evenodd"></path></svg>'},64701:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M15.25 12.43c.33-.19.33-.67 0-.87l-4.5-2.6a.502.502 0 0 0-.75.43v5.2c0 .38.42.63.75.43l4.5-2.6v.01ZM21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2Zm.5 14c0 .28-.22.5-.5.5H3c-.28 0-.5-.22-.5-.5V6c0-.28.22-.5.5-.5h18c.28 0 .5.22.5.5v12Z"></path></svg>'},10017:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 .45C5.62.45.45 5.62.45 12c0 6.38 5.17 11.55 11.55 11.55h6c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-6c-5.55 0-10.05-4.5-10.05-10.05C1.95 6.45 6.45 1.95 12 1.95h1.64a8.41 8.41 0 0 1 8.41 8.41v3.74c0 1.41-1.14 2.55-2.55 2.55s-2.55-1.14-2.55-2.55V6c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.43a5.25 5.25 0 0 0-9 3.67v1.8a5.25 5.25 0 0 0 9.48 3.11 4.057 4.057 0 0 0 3.57 2.14c2.24 0 4.05-1.81 4.05-4.05v-3.74c0-5.47-4.44-9.91-9.91-9.91H12Zm3.45 12.45v-1.8c0-2.07-1.68-3.75-3.75-3.75-2.07 0-3.75 1.68-3.75 3.75v1.8c0 2.07 1.68 3.75 3.75 3.75 2.07 0 3.75-1.68 3.75-3.75Z" clip-rule="evenodd"></path></svg>'},87394:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M17 12a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm-6.5 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm-5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z" clip-rule="evenodd"></path></svg>'},56034:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M21 6h-1.5V4.5H18V3h2c.55 0 1 .45 1 1v2ZM3 18h1.5v1.5H6V21H4c-.55 0-1-.45-1-1v-2ZM4.5 6H3V4c0-.55.45-1 1-1h2v1.5H4.5V6ZM21 18h-1.5v1.5H18V21h2c.55 0 1-.45 1-1v-2ZM8 4.5V3h3v1.5H8Zm0 15V21h3v-1.5H8ZM3 8h1.5v3H3V8Zm18 0h-1.5v3H21V8Zm-8-3.5V3h3v1.5h-3Zm0 15V21h3v-1.5h-3ZM3 13h1.5v3H3v-3Zm18 0h-1.5v3H21v-3Z"></path></svg>'},55079:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m21.28 20.218-18-18a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l6.47 6.47-6.18 6.18c-.33.32-.51.77-.51 1.23v4.34h4.34c.46 0 .91-.18 1.23-.51l6.18-6.18 6.47 6.47c.29.29.77.29 1.06 0 .29-.29.29-.77 0-1.06Zm-14.77-.29s-.11.07-.17.07H3.5v-2.84c0-.06.03-.13.07-.17l6.18-6.18 2.94 2.94-6.18 6.18Zm13.86-15.62-1.18-1.18a2.746 2.746 0 0 0-3.88 0l-4.59 4.59 1.06 1.06 1.97-1.97 2.94 2.94-1.97 1.97 1.06 1.06 4.59-4.59a2.746 2.746 0 0 0 0-3.88Zm-1.06 2.82-1.56 1.56-2.94-2.94 1.56-1.56c.48-.48 1.28-.48 1.76 0l1.18 1.18c.48.48.48 1.28 0 1.76Z" clip-rule="evenodd"></path></svg>'},28772:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12.75 8c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H9c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V14c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H15c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25V8ZM19 3.25H5C3.48 3.25 2.25 4.48 2.25 6v10c0 1.52 1.23 2.75 2.75 2.75h3.47c.4 0 .78.19 1.02.52l1.16 1.63c.66.92 2.01.98 2.75.12l1.57-1.83c.24-.28.59-.44.95-.44H19c1.52 0 2.75-1.23 2.75-2.75V6c0-1.52-1.23-2.75-2.75-2.75ZM20.25 16c0 .69-.56 1.25-1.25 1.25h-3.08c-.8 0-1.57.35-2.09.96l-1.57 1.83c-.1.13-.3.12-.39 0l-1.16-1.63a2.762 2.762 0 0 0-2.24-1.15H5c-.69 0-1.25-.56-1.25-1.25V6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v10Z"></path></svg>'},16302:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M7.25 9c0-.41.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75H8c-.41 0-.75-.34-.75-.75ZM8 12.25c-.41 0-.75.34-.75.75s.34.75.75.75h8c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H8Zm11-9H5C3.48 3.25 2.25 4.48 2.25 6v10c0 1.52 1.23 2.75 2.75 2.75h3.47c.4 0 .78.19 1.02.52l1.16 1.63c.66.92 2.01.98 2.75.12l1.57-1.83c.24-.28.59-.44.95-.44H19c1.52 0 2.75-1.23 2.75-2.75V6c0-1.52-1.23-2.75-2.75-2.75ZM20.25 16c0 .69-.56 1.25-1.25 1.25h-3.08c-.8 0-1.57.35-2.09.96l-1.57 1.83c-.1.13-.3.12-.39 0l-1.16-1.63a2.762 2.762 0 0 0-2.24-1.15H5c-.69 0-1.25-.56-1.25-1.25V6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v10Z"></path></svg>'},11248:e=>{e.exports='<svg viewBox="0 0 24 24" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0)"><g filter="url(#filter0_dd)"><path d="M5.5 1A1.5 1.5 0 004 2.5v12A1.5 1.5 0 005.5 16H9l3 4 3-4h3.5a1.5 1.5 0 001.5-1.5v-12A1.5 1.5 0 0018.5 1h-13z" fill="#FEE668"></path></g><path d="M7 11.25a.25.25 0 01.25-.25h6.375a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25H7.25a.25.25 0 01-.25-.25v-.5zm0-2A.25.25 0 017.25 9h9.5a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25h-9.5A.25.25 0 017 9.75v-.5zm0-2A.25.25 0 017.25 7h9.5a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25h-9.5A.25.25 0 017 7.75v-.5zm0-2A.25.25 0 017.25 5h9.5a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25h-9.5A.25.25 0 017 5.75v-.5z" fill="#000"></path></g><defs><clipPath id="clip0"><path fill="#fff" d="M0 0h24v24H0z"></path></clipPath><filter id="filter0_dd" x="0" y="-1" width="24" height="27" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset dy="2"></feOffset><feGaussianBlur stdDeviation="1"></feGaussianBlur><feColorMatrix values="0 0 0 0 0.166759 0 0 0 0 0.195057 0 0 0 0 0.231441 0 0 0 0.33 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset dy="2"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feColorMatrix values="0 0 0 0 0.168627 0 0 0 0 0.196078 0 0 0 0 0.231373 0 0 0 0.33 0"></feColorMatrix><feBlend in2="effect1_dropShadow" result="effect2_dropShadow"></feBlend><feBlend in="SourceGraphic" in2="effect2_dropShadow" result="shape"></feBlend></filter></defs></svg>'},9937:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M7.25 9c0-.41.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75H8c-.41 0-.75-.34-.75-.75ZM8 12.25c-.41 0-.75.34-.75.75s.34.75.75.75h8c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H8Zm11-9H5C3.48 3.25 2.25 4.48 2.25 6v10c0 1.52 1.23 2.75 2.75 2.75h3.47c.4 0 .78.19 1.02.52l1.16 1.63c.66.92 2.01.98 2.75.12l1.57-1.83c.24-.28.59-.44.95-.44H19c1.52 0 2.75-1.23 2.75-2.75V6c0-1.52-1.23-2.75-2.75-2.75ZM20.25 16c0 .69-.56 1.25-1.25 1.25h-3.08c-.8 0-1.57.35-2.09.96l-1.57 1.83c-.1.13-.3.12-.39 0l-1.16-1.63a2.762 2.762 0 0 0-2.24-1.15H5c-.69 0-1.25-.56-1.25-1.25V6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v10Z"></path></svg>'},91884:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M19 4.29a1 1 0 0 0-1.41 0l-8.1 8.14-2.95-3a1 1 0 0 0-1.42 0L2.29 12.3A1.05 1.05 0 0 0 2 13a1 1 0 0 0 .29.71l6.49 6.49a1.001 1.001 0 0 0 .71.3 1 1 0 0 0 .7-.3L21.86 8.54a1 1 0 0 0 0-1.42L19 4.29Z" clip-rule="evenodd"></path></svg>'},55108:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 14a4 4 0 1 1 0-8 4 4 0 0 1 0 8Z" clip-rule="evenodd"></path></svg>'},56610:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22 5v10a2 2 0 0 1-2 2H8.35l-4.73 3.78A1 1 0 0 1 2 20V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2Z" clip-rule="evenodd"></path></svg>'},64767:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m22.04 6.04-5.88 5.87 5.88 5.88a.998.998 0 0 1 0 1.42l-2.83 2.83a.997.997 0 0 1-1.095.219.998.998 0 0 1-.325-.22l-5.88-5.88-5.87 5.88a.998.998 0 0 1-1.42 0l-2.83-2.83a.999.999 0 0 1 0-1.42l5.88-5.88-5.88-5.87a1 1 0 0 1-.29-.71 1 1 0 0 1 .29-.71l2.83-2.83a1 1 0 0 1 .71-.29c.265.005.518.108.71.29l5.87 5.88 5.88-5.88a1 1 0 0 1 1.42 0l2.83 2.83a.998.998 0 0 1 0 1.42Z" clip-rule="evenodd"></path></svg>'},63359:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><g clip-path="url(#a)"><path fill-rule="evenodd" d="M10 8a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1 8 8 0 1 1 11.12 7.37l-.12.06v.07a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V15a5.82 5.82 0 0 1 3.78-5.16A2 2 0 1 0 10 8Zm2 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z" clip-rule="evenodd"></path></g><defs><clipPath id="a"><path d="M0 0h24v24H0z"></path></clipPath></defs></svg>'},81740:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11.293 1.179a1 1 0 0 1 1.414 0l7.864 7.864a1 1 0 0 1 0 1.414l-2.475 2.475a1 1 0 0 1-1.414 0L14.75 11v1.5c0 1.458.53 2.472 1.592 3.227 1.068.758 2.872 1.381 5.658 1.502.551.024 1 .469 1 1.021v3.5a.974.974 0 0 1-1 .983c-3.542-.123-6.576-.913-8.842-2.522A9.817 9.817 0 0 1 12 19.25a9.817 9.817 0 0 1-1.158.96c-2.265 1.61-5.3 2.4-8.842 2.523-.552.02-1-.43-1-.983v-3.5c0-.552.449-.997 1-1.021 2.786-.12 4.59-.744 5.658-1.502 1.062-.755 1.592-1.77 1.592-3.227V11l-1.932 1.932a1 1 0 0 1-1.414 0L3.43 10.457a1 1 0 0 1 0-1.414l7.864-7.864Z" clip-rule="evenodd"></path></svg>'},89559:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.07 3.55a7 7 0 0 0-11.39 7.7.3.3 0 0 1 0 .12l-6.8 6.83a2 2 0 0 0-.53.93l-.29 1.17a2 2 0 0 0 2.16 2.47l1.06-.12A2 2 0 0 0 6 21.15l.47-1.89.26-.25 2.88-.26a2 2 0 0 0 1.71-1.36l.78-2.34.12-.12a.303.303 0 0 1 .12 0 7 7 0 0 0 7.7-11.39l.03.01ZM18 7.79a1.5 1.5 0 1 1-2.122-2.12A1.5 1.5 0 0 1 18 7.79Z" clip-rule="evenodd"></path></svg>'},50371:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><g clip-path="url(#a)"><path fill-rule="evenodd" d="M12 0a1 1 0 0 1 .87.5l8 14A1 1 0 0 1 20 16H4a1 1 0 0 1-.86-1.5l8-14A1 1 0 0 1 12 0ZM4.48 17.42a.77.77 0 0 0-.8-.1.75.75 0 0 0-.43.68v5a.76.76 0 0 0 .75.75.76.76 0 0 0 .75-.75v-3.4l4.77 4a.77.77 0 0 0 .8.1.75.75 0 0 0 .43-.7v-5a.75.75 0 1 0-1.5 0v3.4l-4.77-3.98Zm9.52-.17h4.5a2.25 2.25 0 1 1 0 4.5h-3.75V23a.75.75 0 1 1-1.5 0v-5a.76.76 0 0 1 .75-.75Zm.75 3v-1.5h3.75a.75.75 0 1 1 0 1.5h-3.75Z" clip-rule="evenodd"></path></g><defs><clipPath id="a"><path d="M0 0h24v24H0z"></path></clipPath></defs></svg>'},58728:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M21.94 13.06 15 20v-7h7l-.06.06ZM22 11h-7a2 2 0 0 0-2 2v7H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5Z" clip-rule="evenodd"></path></svg>'},44542:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8 16h1v5a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V6.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5V21a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V6.5a.5.5 0 0 1 .5-.5H22a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H8a7 7 0 0 0 0 14Z" clip-rule="evenodd"></path></svg>'},98671:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M14.71 2.296a1 1 0 0 0-1.42 0l-2.83 2.83a1 1 0 0 0-.29.71c.004.265.107.518.29.71l2.3 2.29H2a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h10.76l-2.3 2.29a1.002 1.002 0 0 0 0 1.42l2.83 2.82a1.002 1.002 0 0 0 1.42 0l8.83-8.82a1.05 1.05 0 0 0 .29-.71 1 1 0 0 0-.29-.71l-8.83-8.83Z" clip-rule="evenodd"></path></svg>'},44741:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.858 10.159 4.985 2.226a2.06 2.06 0 0 0-2.738 2.799L5.943 12l-3.696 6.965a2.057 2.057 0 0 0 2.738 2.809l15.873-7.932a2.059 2.059 0 0 0 0-3.684Z" clip-rule="evenodd"></path></svg>'},99471:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m21.73 10.2-4.63 3.36L18.87 19a1.5 1.5 0 0 1-2.31 1.68l-4.63-3.37-4.64 3.38A1.5 1.5 0 0 1 4.99 19l1.77-5.45-4.64-3.35A1.5 1.5 0 0 1 3 7.48h5.73L10.5 2a1.5 1.5 0 0 1 2.85 0l1.77 5.44h5.73a1.5 1.5 0 0 1 .88 2.76Z" clip-rule="evenodd"></path></svg>'},24808:e=>{e.exports='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 8.75C8.41421 8.75 8.75 9.08579 8.75 9.5V11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5V9.5C7.25 9.08579 7.58579 8.75 8 8.75Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.75 5.75V4C4.75 2.20507 6.20507 0.75 8 0.75C9.79493 0.75 11.25 2.20507 11.25 4V5.75H12C12.9665 5.75 13.75 6.5335 13.75 7.5V13.5C13.75 14.4665 12.9665 15.25 12 15.25H4C3.0335 15.25 2.25 14.4665 2.25 13.5V7.5C2.25 6.5335 3.0335 5.75 4 5.75H4.75ZM6.25 4C6.25 3.0335 7.0335 2.25 8 2.25C8.9665 2.25 9.75 3.0335 9.75 4V5.75H6.25V4ZM12 7.25C12.1381 7.25 12.25 7.36193 12.25 7.5V13.5C12.25 13.6381 12.1381 13.75 12 13.75H4C3.86193 13.75 3.75 13.6381 3.75 13.5V7.5C3.75 7.36193 3.86193 7.25 4 7.25H12Z" fill="currentColor"></path></svg>'},83569:e=>{e.exports='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 8.75C7.91421 8.75 8.25 9.08579 8.25 9.5V11.5C8.25 11.9142 7.91421 12.25 7.5 12.25C7.08579 12.25 6.75 11.9142 6.75 11.5V9.5C6.75 9.08579 7.08579 8.75 7.5 8.75Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M10.75 4C10.75 3.0335 11.5335 2.25 12.5 2.25C13.4665 2.25 14.25 3.0335 14.25 4V5C14.25 5.41421 14.5858 5.75 15 5.75C15.4142 5.75 15.75 5.41421 15.75 5V4C15.75 2.20507 14.2949 0.75 12.5 0.75C10.7051 0.75 9.25 2.20507 9.25 4V5.75H3.5C2.5335 5.75 1.75 6.5335 1.75 7.5V13.5C1.75 14.4665 2.5335 15.25 3.5 15.25H11.5C12.4665 15.25 13.25 14.4665 13.25 13.5V7.5C13.25 6.5335 12.4665 5.75 11.5 5.75H10.75V4ZM3.5 7.25C3.36193 7.25 3.25 7.36193 3.25 7.5V13.5C3.25 13.6381 3.36193 13.75 3.5 13.75H11.5C11.6381 13.75 11.75 13.6381 11.75 13.5V7.5C11.75 7.36193 11.6381 7.25 11.5 7.25H3.5Z" fill="currentColor"></path></svg>'},22636:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M1.5 12c0 5.799 4.701 10.5 10.5 10.5S22.5 17.799 22.5 12 17.799 1.5 12 1.5 1.5 6.201 1.5 12ZM3 12a9 9 0 0 1 9-9h.005v18h.019H12a9 9 0 0 1-9-9Zm10.505 8.875a8.932 8.932 0 0 0 1.49-.385V3.51a8.937 8.937 0 0 0-1.49-.385v17.75ZM16.495 4.2v15.598a9.031 9.031 0 0 0 1.5-1.086V5.287a9.028 9.028 0 0 0-1.5-1.086Zm3 2.814v9.97A8.958 8.958 0 0 0 21 12a8.958 8.958 0 0 0-1.505-4.985Z" clip-rule="evenodd"></path></svg>'},29489:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.75 3.5a2.25 2.25 0 0 1 4.256-1.02A2.25 2.25 0 0 1 17.25 4.5v.878a2.25 2.25 0 0 1 3 2.122V16a6.75 6.75 0 0 1-6.75 6.75h-1.115a6.75 6.75 0 0 1-4.634-1.843l-5.92-5.59a2.55 2.55 0 0 1 3.43-3.773l1.489 1.303V6a2.25 2.25 0 0 1 3-2.122V3.5Zm1.5 7.5a.75.75 0 0 1-1.5 0V6a.75.75 0 0 0-1.5 0v7.735c0 .942-1.11 1.446-1.82.825l-2.157-1.887a1.05 1.05 0 0 0-1.412 1.553l5.92 5.59a5.25 5.25 0 0 0 3.604 1.434H13.5c2.9 0 5.25-2.35 5.25-5.25V7.5a.75.75 0 0 0-1.5 0V11a.75.75 0 0 1-1.5 0V4.5a.75.75 0 0 0-1.5 0V11a.75.75 0 0 1-1.5 0V3.5a.75.75 0 0 0-1.5 0V11Z" clip-rule="evenodd"></path></svg>'},60231:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M4.735 1.693A1.5 1.5 0 0 0 2.5 3v5.5H.75a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5H4V3l16 9-16 9v-6.33l1.002.89a.75.75 0 0 0 .996-1.12L3.25 11.995.502 14.44a.75.75 0 0 0 .996 1.122l1.002-.89V21a1.5 1.5 0 0 0 2.235 1.307l16-9a1.5 1.5 0 0 0 0-2.614l-16-9Z"></path></svg>'},45632:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 4.25a.75.75 0 0 1 .75.75v6.25H19a.75.75 0 0 1 0 1.5h-6.25V19a.75.75 0 0 1-1.5 0v-6.25H5a.75.75 0 0 1 0-1.5h6.25V5a.75.75 0 0 1 .75-.75Z" clip-rule="evenodd"></path></svg>'},91291:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4.735 1.693A1.5 1.5 0 0 0 2.5 3v18a1.5 1.5 0 0 0 2.235 1.307l16-9a1.5 1.5 0 0 0 0-2.614l-16-9ZM20 12 4 21v-3.34l12.861-7.426L20 12Zm-4.152-2.335L4 16.505v-3.464l8.81-5.086 3.038 1.71Zm-4.052-2.28L4 11.887V8.423l4.757-2.747 3.04 1.71ZM4 7.268l3.744-2.162L4 3v4.268Z" clip-rule="evenodd"></path></svg>'},72780:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.243 1.705a1.5 1.5 0 0 1 1.492-.012l16 9a1.5 1.5 0 0 1 0 2.614l-16 9A1.5 1.5 0 0 1 2.5 21V3a1.5 1.5 0 0 1 .743-1.295ZM4 21l16-9L4 3v18Z" clip-rule="evenodd"></path></svg>'},82748:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22.427 3.384a.75.75 0 0 1 .19 1.043l-7.62 11a.75.75 0 0 1-1.16.09l-4.126-4.333-7.094 10.243a.75.75 0 1 1-1.233-.854l7.619-11a.75.75 0 0 1 1.16-.09l4.126 4.333 7.095-10.243a.75.75 0 0 1 1.043-.19Z" clip-rule="evenodd"></path></svg>'},45989:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12.75 1a.75.75 0 0 0-1.5 0v.777a10.252 10.252 0 0 0-9.473 9.473H1a.75.75 0 0 0 0 1.5h.777a10.252 10.252 0 0 0 9.473 9.473V23a.75.75 0 0 0 1.5 0v-.777a10.252 10.252 0 0 0 9.473-9.473H23a.75.75 0 0 0 0-1.5h-.777a10.252 10.252 0 0 0-9.473-9.473V1Zm-1.5 2.282V4a.75.75 0 0 0 1.5 0v-.718a8.752 8.752 0 0 1 7.968 7.968H20a.75.75 0 0 0 0 1.5h.718a8.752 8.752 0 0 1-7.968 7.968V20a.75.75 0 0 0-1.5 0v.718a8.752 8.752 0 0 1-7.968-7.968H4a.75.75 0 0 0 0-1.5h-.718a8.752 8.752 0 0 1 7.968-7.968ZM12 8.25a.75.75 0 0 1 .75.75v2.25H15a.75.75 0 0 1 0 1.5h-2.25V15a.75.75 0 0 1-1.5 0v-2.25H9a.75.75 0 0 1 0-1.5h2.25V9a.75.75 0 0 1 .75-.75Z" clip-rule="evenodd"></path></svg>'},738:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M17.5 9c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1ZM10 15.25c-.41 0-.75.34-.75.75s.34.75.75.75h4c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-4Zm0 3c-.41 0-.75.34-.75.75s.34.75.75.75h4c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-4Zm11-13h-2.25V3.5c0-.97-.78-1.75-1.75-1.75H7c-.97 0-1.75.78-1.75 1.75v1.75H3C1.48 5.25.25 6.48.25 8v8c0 1.52 1.23 2.75 2.75 2.75h2.25V22c0 .97.78 1.75 1.75 1.75h10c.97 0 1.75-.78 1.75-1.75v-3.25H21c1.52 0 2.75-1.23 2.75-2.75V8c0-1.52-1.23-2.75-2.75-2.75ZM6.75 3.5c0-.14.11-.25.25-.25h10c.14 0 .25.11.25.25v1.75H6.75V3.5ZM17.25 22c0 .14-.11.25-.25.25H7c-.14 0-.25-.11-.25-.25v-9c0-.14.11-.25.25-.25h10c.14 0 .25.11.25.25v9Zm5-6c0 .69-.56 1.25-1.25 1.25h-2.25V13c0-.97-.78-1.75-1.75-1.75H7c-.97 0-1.75.78-1.75 1.75v4.25H3c-.69 0-1.25-.56-1.25-1.25V8c0-.69.56-1.25 1.25-1.25h18c.69 0 1.25.56 1.25 1.25v8Z"></path></svg>'},96816:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3 4a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4Zm1.5 3.554V4.5h5.553L4.5 7.554Zm0 1.141v2.86L17.326 4.5h-5.198L4.5 8.695ZM19.4 4.5 4.5 12.695v2.86l15-8.25V4.5h-.1Zm.1 3.945-15 8.25V19.5h.099L19.5 11.304V8.445Zm0 4L6.674 19.5h5.197l7.629-4.196v-2.858Zm0 4L13.946 19.5H19.5v-3.055Z" clip-rule="evenodd"></path></svg>'},7799:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4.5 4.5v15h15v-15h-15ZM4 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H4Z" clip-rule="evenodd"></path></svg>'},42741:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.75 1.25h-9.5v9.5h9.5v-9.5Zm-8 8v-6.5h6.5v6.5h-6.5Zm18.352-5.78a.75.75 0 0 1 0 1.06l-8.486 8.486a1.75 1.75 0 0 0 2.468 2.482l4.957-4.957a.75.75 0 0 1 1.06 1.06l-7.778 7.779a.75.75 0 0 1-.324.19L3.1 22.4a.75.75 0 0 1-.736-1.252L20.041 3.47a.75.75 0 0 1 1.06 0ZM5.47 20.16l5.209-5.209c.128.586.42 1.144.876 1.6a3.235 3.235 0 0 0 1.598.875l-.754.755-6.93 1.98Z" clip-rule="evenodd"></path></svg>'},11088:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.75 1.25h-9.5V4a.75.75 0 0 0 1.5 0V2.75h2.5v6.5H4.5a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-.75v-6.5h2.5V4a.75.75 0 0 0 1.5 0V1.25Zm10.352 2.22a.75.75 0 0 1 0 1.06l-8.486 8.486a1.75 1.75 0 0 0 2.468 2.482l4.957-4.957a.75.75 0 0 1 1.06 1.06l-4.95 4.95-.01.01-2.818 2.819a.75.75 0 0 1-.324.19L3.1 22.4a.75.75 0 0 1-.736-1.252L20.041 3.47a.75.75 0 0 1 1.06 0ZM5.47 20.16l5.209-5.209c.128.586.42 1.144.876 1.6a3.235 3.235 0 0 0 1.598.875l-.754.755-6.93 1.98Z" clip-rule="evenodd"></path></svg>'},97248:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M7 4a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM1 14a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-6Zm11.496-9.74h-1.222L9.01 10h1.205l.46-1.263h2.418L13.545 10h1.206l-2.255-5.74Zm-.615 1.132.852 2.337h-1.697l.845-2.337Zm6.845-1.132h-1.222L15.241 10h1.205l.46-1.263h2.418L19.775 10h1.206l-2.255-5.74Zm-.615 1.132.853 2.337h-1.698l.845-2.337Zm-.492 8.868h1.222L21.096 20H19.89l-.45-1.263h-2.42L16.561 20h-1.205l2.263-5.74Zm1.46 3.469-.853-2.337-.845 2.337h1.697ZM12.61 14.26h-1.222L9.126 20h1.205l.46-1.263h2.418L13.66 20h1.206l-2.255-5.74Zm-.615 1.132.852 2.337H11.15l.845-2.337ZM5.159 14.26H6.38L8.636 20H7.43l-.45-1.263H4.56L4.1 20H2.897l2.263-5.74Zm1.46 3.469-.853-2.337-.845 2.337h1.697Z" clip-rule="evenodd"></path></svg>'},80953:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8 3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H8Zm10.726 1.26h-1.222L15.241 10h1.205l.46-1.263h2.418L19.775 10h1.206l-2.255-5.74Zm-.615 1.132.853 2.337h-1.698l.845-2.337ZM11.274 4.26h1.222L14.75 10h-1.206l-.45-1.263h-2.42L10.216 10H9.011l2.263-5.74Zm1.46 3.469-.853-2.337-.845 2.337h1.697ZM2 13a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1H2Z" clip-rule="evenodd"></path></svg>'},20377:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M3.528 1.468a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l1.97 1.97-1.97 1.97c-.29.29-.29.77 0 1.06.29.29.77.29 1.06 0l1.97-1.97 1.97 1.97c.29.29.77.29 1.06 0 .29-.29.29-.77 0-1.06l-1.97-1.97 1.97-1.97c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-1.97 1.97-1.97-1.97Zm16.51 9.07-4.96 4.96c-.68.67-1.78.67-2.46-.01-.69-.68-.69-1.79 0-2.47l8.48-8.49c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-17.68 17.68a.74.74 0 0 0-.11.91c.17.29.52.43.85.34l9.9-2.83c.12-.03.23-.1.32-.19l7.78-7.78c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0Zm-7.64 7.64-6.93 1.98 5.21-5.21c.13.59.42 1.15.88 1.6.45.46 1.01.75 1.59.88l-.75.75Z"></path></svg>'},90194:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M15.47 3.47a.75.75 0 0 0 0 1.06l2.72 2.72H10a6.75 6.75 0 0 0 0 13.5h2a.75.75 0 0 0 0-1.5h-2a5.25 5.25 0 1 1 0-10.5h8.19l-2.72 2.72a.75.75 0 1 0 1.06 1.06L21.06 8l-4.53-4.53a.75.75 0 0 0-1.06 0Z" clip-rule="evenodd"></path></svg>'},50331:e=>{e.exports='<svg width="16" height="16" viewBox="0 0 16 16" fill="black" xmlns="http://www.w3.org/2000/svg"><path d="M8.00002 14.3333C11.4978 14.3333 14.3334 11.4978 14.3334 7.99996C14.3334 4.50216 11.4978 1.66663 8.00002 1.66663C4.50222 1.66663 1.66669 4.50216 1.66669 7.99996C1.66669 11.4978 4.50222 14.3333 8.00002 14.3333Z" fill="#D63960"></path><path d="M5.88 5.88L10.12 10.12M10.12 5.88L5.88 10.12" stroke="#D63960" strokeWidth="1.25" strokeMiterlimit="10" strokeLinecap="round"></path></svg>'},72938:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M11.006 2.564a.75.75 0 0 1 .988-1.128l4 3.5a.75.75 0 0 1 0 1.128l-4 3.5a.75.75 0 0 1-.988-1.128l2.558-2.239a6.25 6.25 0 1 0 4.686 6.053.75.75 0 0 1 1.5 0 7.75 7.75 0 1 1-6.397-7.632l-2.347-2.054Z"></path></svg>'},45983:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M7.25 1c0-.41.34-.75.75-.75h15c.41 0 .75.34.75.75v15c0 .41-.34.75-.75.75h-7.5c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h6.75V1.75H8.75V9c0 .41-.34.75-.75.75s-.75-.34-.75-.75V1Zm-7 12c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75s-.34.75-.75.75H1.75v8.5h8.5V18c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75H1c-.41 0-.75-.34-.75-.75V13ZM12.5 4.75c-.41 0-.75.34-.75.75s.34.75.75.75h4.19L4.47 18.47c-.29.29-.29.77 0 1.06.29.29.77.29 1.06 0L17.75 7.31v4.19c0 .41.34.75.75.75s.75-.34.75-.75V4.75H12.5Z" clip-rule="evenodd"></path></svg>'},98589:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.75 10.5a6.75 6.75 0 1 1 13.5 0 6.75 6.75 0 0 1-13.5 0Zm6.75-8.25a8.25 8.25 0 1 0 5.28 14.59l4.69 4.69a.75.75 0 0 0 1.06-1.06l-4.69-4.69A8.25 8.25 0 0 0 10.5 2.25Z" clip-rule="evenodd"></path></svg>'},62949:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m20.12 5.063-.68-.68a2.746 2.746 0 0 0-3.88 0l-12.8 12.8c-.33.32-.51.77-.51 1.23v3.34h4.34c.46 0 .91-.18 1.23-.51l12.3-12.3a2.746 2.746 0 0 0 0-3.88ZM6.76 20.183s-.11.07-.17.07H3.75v-1.84c0-.06.03-.13.07-.17L14 8.063l2.44 2.44-9.68 9.68Zm12.3-12.3-1.56 1.56-2.44-2.44 1.56-1.56c.48-.48 1.28-.48 1.76 0l.68.68c.48.48.48 1.28 0 1.76ZM23 21.753H9.43l1.5-1.5H23c.41 0 .75.34.75.75s-.34.75-.75.75Z" clip-rule="evenodd"></path></svg>'},59620:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9 2.75c-.69 0-1.25.56-1.25 1.25v16.112l3.704-3.927a.75.75 0 0 1 1.091 0l3.705 3.927V4c0-.69-.56-1.25-1.25-1.25H9ZM6.25 4A2.75 2.75 0 0 1 9 1.25h6A2.75 2.75 0 0 1 17.75 4v18a.75.75 0 0 1-1.296.515L12 17.793l-4.454 4.722A.75.75 0 0 1 6.25 22V4Z" clip-rule="evenodd"></path></svg>'},47082:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M4.5 6.5C5.33 6.5 6 5.83 6 5s-.67-1.5-1.5-1.5S3 4.17 3 5s.67 1.5 1.5 1.5Zm5-2.25c-.41 0-.75.34-.75.75s.34.75.75.75h11c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-11Zm0 7c-.41 0-.75.34-.75.75s.34.75.75.75h11c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-11ZM8.75 19c0-.41.34-.75.75-.75h11c.41 0 .75.34.75.75s-.34.75-.75.75h-11c-.41 0-.75-.34-.75-.75ZM6 12c0 .83-.67 1.5-1.5 1.5S3 12.83 3 12s.67-1.5 1.5-1.5S6 11.17 6 12Zm-1.5 8.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5S3 18.17 3 19s.67 1.5 1.5 1.5Z"></path></svg>'},80163:e=>{e.exports='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.2478 3.29211C12.0874 3.23596 11.9126 3.23596 11.7522 3.29211L1.75224 6.79211C1.45142 6.89739 1.25 7.18129 1.25 7.5C1.25 7.81871 1.45142 8.10261 1.75224 8.20789L6.87365 10.0004L1.75224 11.7929C1.45144 11.8982 1.25002 12.182 1.25 12.5007C1.24998 12.8194 1.45136 13.1033 1.75215 13.2086L6.86938 15.0004L1.75215 16.7921C1.45136 16.8975 1.24998 17.1814 1.25 17.5C1.25002 17.8187 1.45144 18.1026 1.75224 18.2079L11.7522 21.7079C11.9126 21.764 12.0874 21.764 12.2478 21.7079L22.2478 18.2079C22.5486 18.1026 22.75 17.8187 22.75 17.5C22.75 17.1814 22.5486 16.8975 22.2479 16.7921L17.1296 15L22.2479 13.2086C22.5486 13.1033 22.75 12.8194 22.75 12.5007C22.75 12.182 22.5486 11.8982 22.2478 11.7929L17.1263 10.0004L22.2478 8.20789C22.5486 8.10261 22.75 7.81871 22.75 7.5C22.75 7.18129 22.5486 6.89739 22.2478 6.79211L12.2478 3.29211ZM14.856 10.795L12.2478 11.7079C12.0874 11.764 11.9126 11.764 11.7522 11.7079L9.14397 10.795L4.26991 12.5009L9.35626 14.2819C9.36674 14.285 9.37717 14.2884 9.38754 14.292L12 15.2055L19.7301 12.5009L14.856 10.795ZM12 10.2054L4.27032 7.5L12 4.79461L19.7297 7.5L12 10.2054ZM11.7525 16.7088L9.13906 15.795L4.26991 17.4999L12 20.2054L19.7301 17.4999L14.8598 15.7946L12.2475 16.7088C12.0873 16.7648 11.9127 16.7648 11.7525 16.7088Z" fill="currentColor"></path></svg>'},12778:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22.5 15.75h-8.64c.31-1.16.59-2.39.81-3.62.22-1.24.39-2.48.49-3.66.64-.38 1.29-.72 1.95-1 .04.21.08.45.13.72.02.16.05.33.08.5.1.54.22 1.13.38 1.63.09.25.19.51.33.74.13.21.34.46.63.61.32.16.69.08.92-.19.87-1.05 2.74-3.88 3.16-6.87a.747.747 0 0 0-.63-.85.747.747 0 0 0-.85.63c-.29 2.02-1.36 4.02-2.19 5.26-.11-.35-.19-.77-.27-1.22-.02-.14-.05-.29-.07-.44-.07-.37-.13-.73-.19-1.02-.05-.2-.11-.42-.19-.61a1.25 1.25 0 0 0-.22-.33.85.85 0 0 0-.63-.28c-.09 0-.18.02-.26.05-.67.25-1.33.55-1.98.89.01-.57 0-1.11-.03-1.61-.06-.97-.21-1.86-.51-2.52-.29-.67-.83-1.31-1.72-1.31-.65 0-1.56.27-2.5.63-.98.37-2.1.88-3.22 1.45-2.22 1.14-4.53 2.54-5.77 3.6-.31.27-.35.74-.08 1.06.27.31.74.35 1.06.08 1.1-.94 3.28-2.28 5.48-3.4 1.08-.56 2.15-1.04 3.06-1.39.95-.36 1.62-.53 1.97-.53.03 0 .17 0 .35.41.19.43.33 1.11.38 2.01.05.72.04 1.54-.01 2.42-.85.54-1.65 1.14-2.39 1.78-1.74 1.48-3.19 3.18-4 4.79-.2.41-.33.98-.4 1.59H2c-.41 0-.75.34-.75.75s.34.75.75.75h4.86c.01.54.05 1.11.12 1.66.11.88.32 1.77.67 2.46.33.67.91 1.38 1.85 1.38.8 0 1.43-.56 1.9-1.15.48-.62.93-1.47 1.33-2.44.24-.58.47-1.23.69-1.91h9.08c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Zm-11.16 2.84c-.37.91-.76 1.62-1.13 2.09-.39.5-.63.57-.71.57-.06 0-.26-.04-.51-.55-.24-.48-.42-1.18-.53-1.99-.06-.48-.09-.98-.1-1.46h3.48c-.16.47-.33.92-.5 1.34Zm1.85-6.72c-.24 1.33-.54 2.66-.88 3.88H8.45c.06-.44.14-.75.22-.91.69-1.39 1.99-2.94 3.63-4.33.4-.34.81-.67 1.24-.98-.09.76-.21 1.55-.35 2.34ZM1.97 9.97c.29-.29.77-.29 1.06 0l.97.97.97-.97c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-.97.97.97.97c.29.29.29.77 0 1.06-.29.29-.77.29-1.06 0L4 13.06l-.97.97c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l.97-.97-.97-.97a.754.754 0 0 1 0-1.06Z" clip-rule="evenodd"></path></svg>'},9643:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10 4.25H5c-.41 0-.75.34-.75.75v5c0 .41.34.75.75.75h5c.41 0 .75-.34.75-.75V5c0-.41-.34-.75-.75-.75Zm-.75 5h-3.5v-3.5h3.5v3.5Zm.75 4H5c-.41 0-.75.34-.75.75v5c0 .41.34.75.75.75h5c.41 0 .75-.34.75-.75v-5c0-.41-.34-.75-.75-.75Zm-.75 5h-3.5v-3.5h3.5v3.5Zm9.75-5h-5c-.41 0-.75.34-.75.75v5c0 .41.34.75.75.75h5c.41 0 .75-.34.75-.75v-5c0-.41-.34-.75-.75-.75Zm-.75 5h-3.5v-3.5h3.5v3.5Zm.75-14h-5c-.41 0-.75.34-.75.75v5c0 .41.34.75.75.75h5c.41 0 .75-.34.75-.75V5c0-.41-.34-.75-.75-.75Zm-.75 5h-3.5v-3.5h3.5v3.5Z" clip-rule="evenodd"></path></svg>'},25899:e=>{e.exports='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.50011C5.33333 6.50011 12 2.99989 14 3C17.6401 3.0002 14 22.9999 10.5 22.9999C8.5 22.9999 8.25462 16.9906 9 15.4999C10.5 12.5 14.5 8.9999 18.5 7.4999C19 7.5 19 11.5 20 11.9999C20.8333 10.9999 22.6 8.29989 23 5.49989" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.5 14.5L5 13M6.5 11.5L5 13M5 13L3.5 11.5M5 13L6.5 14.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 17.5H23.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><g clip-path="url(#clip0_9189_304632)"><path fill-rule="evenodd" clip-rule="evenodd" d="M22 32C27.5228 32 32 27.5228 32 22C32 16.4772 27.5228 12 22 12C16.4772 12 12 16.4772 12 22C12 27.5228 16.4772 32 22 32ZM25.5303 19.5303C25.8232 19.2374 25.8232 18.7626 25.5303 18.4697C25.2374 18.1768 24.7626 18.1768 24.4697 18.4697L18.4697 24.4697C18.1768 24.7626 18.1768 25.2374 18.4697 25.5303C18.7626 25.8232 19.2374 25.8232 19.5303 25.5303L25.5303 19.5303Z" fill="currentColor"></path></g><defs><clipPath id="clip0_9189_304632"><rect width="20" height="20" fill="white" transform="translate(12 12)"></rect></clipPath></defs></svg>'},24089:e=>{e.exports='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.50011C5.33333 6.50011 12 2.99989 14 3C17.6401 3.0002 14 22.9999 10.5 22.9999C8.5 22.9999 8.25462 16.9906 9 15.4999C10.5 12.5 14.5 8.9999 18.5 7.4999C19 7.5 19 11.5 20 11.9999C20.8333 10.9999 22.6 8.29989 23 5.49989" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.5 14.5L5 13M6.5 11.5L5 13M5 13L3.5 11.5M5 13L6.5 14.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 17.5H23.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><g clip-path="url(#clip0_9187_304481)"><path fill-rule="evenodd" clip-rule="evenodd" d="M22 32C27.5228 32 32 27.5228 32 22C32 16.4772 27.5228 12 22 12C16.4772 12 12 16.4772 12 22C12 27.5228 16.4772 32 22 32ZM26.5301 20.0302C26.823 19.7373 26.823 19.2624 26.5301 18.9695C26.2372 18.6766 25.7623 18.6766 25.4694 18.9695L20.9997 23.4392L19.0302 21.4699C18.7373 21.177 18.2624 21.177 17.9695 21.4699C17.6766 21.7628 17.6767 22.2377 17.9696 22.5306L20.9998 25.5605L26.5301 20.0302Z" fill="currentColor"></path></g><defs><clipPath id="clip0_9187_304481"><rect width="20" height="20" fill="white" transform="translate(12 12)"></rect></clipPath></defs></svg>'},47630:e=>{e.exports='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.50011C5.33333 6.50011 12 2.99989 14 3C17.6401 3.0002 14 22.9999 10.5 22.9999C8.5 22.9999 8.25462 16.9906 9 15.4999C10.5 12.5 14.5 8.9999 18.5 7.4999C19 7.5 19 11.5 20 11.9999C20.8333 10.9999 22.6 8.29989 23 5.49989" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.5 14.5L5 13M6.5 11.5L5 13M5 13L3.5 11.5M5 13L6.5 14.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 17.5H23.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><g><path fill-rule="evenodd" clip-rule="evenodd" d="M31.5289 26.9662L24.0011 14.4193L23.0694 14.9783L24.0011 14.4193C23.0949 12.9088 20.9058 12.9087 19.9995 14.4192L12.4709 26.9661C11.5377 28.5213 12.658 30.5 14.4717 30.5H29.528C31.3417 30.5 32.462 28.5214 31.5289 26.9662ZM22 18.25C22.4142 18.25 22.75 18.5858 22.75 19V23C22.75 23.4142 22.4142 23.75 22 23.75C21.5858 23.75 21.25 23.4142 21.25 23V19C21.25 18.5858 21.5858 18.25 22 18.25ZM22 27.5C22.6904 27.5 23.25 26.9404 23.25 26.25C23.25 25.5596 22.6904 25 22 25C21.3096 25 20.75 25.5596 20.75 26.25C20.75 26.9404 21.3096 27.5 22 27.5Z" fill="currentColor"></path></g></svg>'},65936:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22.5 15.75h-8.64c.31-1.16.59-2.39.81-3.62.22-1.24.39-2.48.49-3.66.64-.38 1.29-.72 1.95-1 .04.21.08.45.13.72.02.16.05.33.08.5.1.54.22 1.13.38 1.63.09.25.19.51.33.74.13.21.34.46.63.61.32.16.69.08.92-.19.87-1.05 2.74-3.88 3.16-6.87a.747.747 0 0 0-.63-.85.747.747 0 0 0-.85.63c-.29 2.02-1.36 4.02-2.19 5.26-.11-.35-.19-.77-.27-1.22-.02-.14-.05-.29-.07-.44-.07-.37-.13-.73-.19-1.02-.05-.2-.11-.42-.19-.61a1.25 1.25 0 0 0-.22-.33.85.85 0 0 0-.63-.28c-.09 0-.18.02-.26.05-.67.25-1.33.55-1.98.89.01-.57 0-1.11-.03-1.61-.06-.97-.21-1.86-.51-2.52-.29-.67-.83-1.31-1.72-1.31-.65 0-1.56.27-2.5.63-.98.37-2.1.88-3.22 1.45-2.22 1.14-4.53 2.54-5.77 3.6-.31.27-.35.74-.08 1.06.27.31.74.35 1.06.08 1.1-.94 3.28-2.28 5.48-3.4 1.08-.56 2.15-1.04 3.06-1.39.95-.36 1.62-.53 1.97-.53.03 0 .17 0 .35.41.19.43.33 1.11.38 2.01.05.72.04 1.54-.01 2.42-.85.54-1.65 1.14-2.39 1.78-1.74 1.48-3.19 3.18-4 4.79-.2.41-.33.98-.4 1.59H2c-.41 0-.75.34-.75.75s.34.75.75.75h4.86c.01.54.05 1.11.12 1.66.11.88.32 1.77.67 2.46.33.67.91 1.38 1.85 1.38.8 0 1.43-.56 1.9-1.15.48-.62.93-1.47 1.33-2.44.24-.58.47-1.23.69-1.91h9.08c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Zm-11.16 2.84c-.37.91-.76 1.62-1.13 2.09-.39.5-.63.57-.71.57-.06 0-.26-.04-.51-.55-.24-.48-.42-1.18-.53-1.99-.06-.48-.09-.98-.1-1.46h3.48c-.16.47-.33.92-.5 1.34Zm1.85-6.72c-.24 1.33-.54 2.66-.88 3.88H8.45c.06-.44.14-.75.22-.91.69-1.39 1.99-2.94 3.63-4.33.4-.34.81-.67 1.24-.98-.09.76-.21 1.55-.35 2.34ZM1.97 9.97c.29-.29.77-.29 1.06 0l.97.97.97-.97c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-.97.97.97.97c.29.29.29.77 0 1.06-.29.29-.77.29-1.06 0L4 13.06l-.97.97c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l.97-.97-.97-.97a.754.754 0 0 1 0-1.06Z" clip-rule="evenodd"></path></svg>'},23717:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="31" height="31" viewBox="-6 -6 37 37" fill="currentColor"><path fill-rule="evenodd" d="M5 .25A1.75 1.75 0 0 0 3.25 2v20c0 .966.784 1.75 1.75 1.75h14A1.75 1.75 0 0 0 20.75 22V6.5a.75.75 0 0 0-.22-.53l-5.5-5.5a.75.75 0 0 0-.53-.22H5ZM4.75 2A.25.25 0 0 1 5 1.75h8.75V6.5c0 .414.336.75.75.75h4.75V22a.25.25 0 0 1-.25.25H5a.25.25 0 0 1-.25-.25V2Z" clip-rule="evenodd"></path></svg>'},10737:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M6.993 6.25c-.41 0-.75.34-.75.75s.34.75.75.75h4.25V18c0 .41.34.75.75.75s.75-.34.75-.75V7.75h4.25c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-10Zm1.09 15.22c.46-.61 1.37-.61 1.81-.02 1.05 1.4 3.15 1.4 4.2 0 .44-.59 1.35-.59 1.81.02 1.03 1.38 3.12 1.45 4.21.08l.46-.58c.26-.32.21-.8-.12-1.05a.738.738 0 0 0-1.05.12l-.46.58c-.46.58-1.38.57-1.84-.04-1.04-1.39-3.16-1.43-4.21-.02-.45.6-1.35.6-1.8 0-1.06-1.41-3.17-1.37-4.21.02-.46.61-1.37.63-1.84.04l-.46-.58a.748.748 0 0 0-1.17.93l.46.58c1.09 1.36 3.18 1.3 4.21-.08Z"></path></svg>'},54897:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18.75 15H14.5V9.62c1.21-.86 2-2.27 2-3.87C16.5 3.13 14.37 1 11.75 1S7 3.13 7 5.75c0 1.6.79 3.01 2 3.87V15H4.77c-1.5 0-2.73 1.2-2.75 2.7L2 18.74a.748.748 0 0 0 .75.76h18c.41 0 .75-.34.75-.75v-1c0-1.52-1.23-2.75-2.75-2.75ZM20 18H3.51v-.27c.02-.68.57-1.23 1.26-1.23h4.98c.41 0 .75-.34.75-.75V9.21c0-.27-.14-.52-.38-.65A3.24 3.24 0 0 1 8.5 5.75c0-1.8 1.45-3.25 3.25-3.25S15 3.95 15 5.75c0 1.2-.65 2.25-1.62 2.81-.24.13-.38.38-.38.65v6.54c0 .41.34.75.75.75h5c.69 0 1.25.56 1.25 1.25V18ZM2.75 21c-.41 0-.75.34-.75.75s.34.75.75.75h18c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-18Z" clip-rule="evenodd"></path></svg>'},13214:e=>{e.exports='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path id="Vector" opacity="0.15" d="M18.5 4H5.5C4.67157 4 4 4.67157 4 5.5V18.5C4 19.3284 4.67157 20 5.5 20H18.5C19.3284 20 20 19.3284 20 18.5V5.5C20 4.67157 19.3284 4 18.5 4Z" fill="currentColor"></path><path id="Vector_2" d="M10.94 16L7.81998 13.14C7.7228 13.0507 7.64417 12.9431 7.58856 12.8234C7.53295 12.7038 7.50146 12.5743 7.49589 12.4424C7.49032 12.3106 7.51077 12.1789 7.55609 12.055C7.6014 11.931 7.67068 11.8172 7.75998 11.72C7.94033 11.5237 8.19126 11.4072 8.45756 11.3959C8.58942 11.3903 8.72108 11.4108 8.84504 11.4561C8.96899 11.5014 9.0828 11.5707 9.17998 11.66L10.81 13.16L14.76 8.76C14.8425 8.6471 14.9477 8.55276 15.069 8.48306C15.1902 8.41336 15.3247 8.36986 15.4637 8.35536C15.6028 8.34087 15.7434 8.3557 15.8764 8.3989C16.0094 8.44211 16.1318 8.51272 16.2358 8.60618C16.3398 8.69965 16.4231 8.81388 16.4802 8.94151C16.5373 9.06915 16.567 9.20734 16.5674 9.34717C16.5678 9.487 16.5389 9.62535 16.4825 9.7533C16.4261 9.88126 16.3435 9.99596 16.24 10.09L10.94 16Z" fill="currentColor"></path></svg>'},60276:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M6.24 7c0-.41.34-.75.75-.75h10c.41 0 .75.34.75.75s-.34.75-.75.75h-4.25v2h-1.5v-2H6.99c-.41 0-.75-.34-.75-.75Zm5 11v-3.75h1.5V18c0 .41-.34.75-.75.75s-.75-.34-.75-.75Zm-6.25-6.75c-.41 0-.75.34-.75.75s.34.75.75.75h14c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-14Z"></path></svg>'},25615:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.5 14.5v-11h11v11h-11ZM2 3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3Zm13 14.5a2.5 2.5 0 0 0 2.5-2.5V8H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-3.5h7Z" clip-rule="evenodd"></path></svg>'},47952:e=>{e.exports='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.57889 18.881C6.18889 18.491 5.55889 18.491 5.16889 18.881C4.77889 19.271 4.77889 19.901 5.16889 20.291C5.55889 20.681 6.18889 20.681 6.57889 20.291C6.96889 19.901 6.96889 19.271 6.57889 18.881ZM21.6089 8.09103L20.5589 7.05103C20.5589 7.05103 20.5489 7.04103 20.5489 7.03103L19.1289 5.62103C19.1289 5.62103 19.1189 5.61103 19.1089 5.60103L14.1789 0.671026C13.9889 0.481026 13.7089 0.401026 13.4389 0.481026C13.1789 0.551026 12.9789 0.761026 12.9189 1.03103V1.07103C12.9189 1.07103 12.8889 1.15103 12.8689 1.21103C12.8389 1.33103 12.7889 1.52103 12.7189 1.74103C12.5889 2.20103 12.3689 2.84103 12.0689 3.57103C11.5489 4.84103 10.7789 6.33103 9.72889 7.56103C9.03889 7.06103 8.07889 7.12103 7.45889 7.74103L6.39889 8.80103C5.71889 9.48103 5.71889 10.591 6.39889 11.281L8.36889 13.241C8.47889 13.351 8.45889 13.541 8.32889 13.631L3.76889 16.661C1.86889 17.931 1.60889 20.621 3.21889 22.241C4.83889 23.851 7.52889 23.581 8.78889 21.681L11.8289 17.131C11.9189 16.991 12.1089 16.981 12.2189 17.091L14.1789 19.051C14.8689 19.741 15.9689 19.741 16.6589 19.051L17.7189 17.991C18.3389 17.371 18.3989 16.391 17.8789 15.711L21.6089 11.981C22.6789 10.911 22.6789 9.17103 21.6089 8.09103ZM16.6589 16.931L15.5989 17.991C15.4989 18.091 15.3389 18.091 15.2389 17.991L13.2789 16.031C12.4989 15.251 11.1989 15.371 10.5789 16.291L7.53889 20.851C6.79889 21.961 5.22889 22.121 4.27889 21.171C3.33889 20.231 3.48889 18.651 4.60889 17.911L9.15889 14.871C10.0789 14.261 10.2089 12.961 9.42889 12.181L7.45889 10.211C7.36889 10.121 7.36889 9.96103 7.45889 9.86103L8.52889 8.80103C8.61889 8.70103 8.77889 8.70103 8.87889 8.80103L9.20889 9.13103C9.20889 9.13103 9.20889 9.15103 9.22889 9.15103L16.2989 16.231C16.2989 16.231 16.3189 16.241 16.3289 16.251L16.6589 16.581C16.7489 16.681 16.7489 16.831 16.6589 16.931ZM20.5489 10.921L16.8289 14.631L10.7989 8.60103C12.0389 7.19103 12.8989 5.50103 13.4589 4.14103C13.6889 3.57103 13.8789 3.06103 14.0189 2.63103L17.9089 6.52103C17.9089 6.52103 17.9189 6.57103 17.9189 6.61103C17.9389 6.80103 17.9489 7.08103 17.9089 7.42103C17.8189 8.09103 17.5289 8.98103 16.6589 9.86103C16.3589 10.151 16.3589 10.631 16.6589 10.921C16.9489 11.211 17.4189 11.211 17.7189 10.921L20.0089 8.62103L20.5489 9.15103C21.0289 9.64103 21.0289 10.431 20.5489 10.921Z" fill="currentColor"></path></svg>'},60562:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3 3.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5H3Zm3 5a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5H6ZM2.25 14.5a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75ZM6 18.75a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5H6Z" clip-rule="evenodd"></path></svg>'},9984:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3 3.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5H3Zm0 5a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5H3Zm-.75 5.75a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75ZM3 18.75a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5H3Z" clip-rule="evenodd"></path></svg>'},7919:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3 3.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5H3Zm6 5a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5H9ZM2.25 14.5a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75ZM9 18.75a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5H9Z" clip-rule="evenodd"></path></svg>'},95155:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11.25 4a.75.75 0 0 1 1.5 0v10.156l1.713-1.757a.75.75 0 1 1 1.074 1.048L12 17.074l-3.537-3.627A.75.75 0 0 1 9.537 12.4l1.713 1.756V4Zm9.25 16.25a.75.75 0 0 0 0-1.5h-17a.75.75 0 0 0 0 1.5h17Z" clip-rule="evenodd"></path></svg>'},10070:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8.97 5.47a.75.75 0 0 1 1.06 0l1.22 1.22V2a.75.75 0 0 1 1.5 0v4.69l1.22-1.22a.75.75 0 1 1 1.06 1.06L12 9.56 8.97 6.53a.75.75 0 0 1 0-1.06ZM2.75 12a.75.75 0 0 1 .75-.75h17a.75.75 0 0 1 0 1.5h-17a.75.75 0 0 1-.75-.75Zm7.28 6.53a.75.75 0 1 1-1.06-1.06L12 14.44l3.03 3.03a.75.75 0 1 1-1.06 1.06l-1.22-1.22V22a.75.75 0 0 1-1.5 0v-4.69l-1.22 1.22Z" clip-rule="evenodd"></path></svg>'},68715:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.5 3.75a.75.75 0 0 0 0 1.5h17a.75.75 0 0 0 0-1.5h-17ZM12.75 20a.75.75 0 0 1-1.5 0V9.844L9.537 11.6a.75.75 0 1 1-1.074-1.048L12 6.926l3.537 3.627a.75.75 0 1 1-1.074 1.047L12.75 9.845V20Z" clip-rule="evenodd"></path></svg>'},34057:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4 3.25a.75.75 0 0 0 0 1.5h4.25V15a.75.75 0 0 0 1.5 0V4.75H14a.75.75 0 0 0 0-1.5H4ZM8 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1h-9.75v7A2.25 2.25 0 0 1 8 17.016V21Z" clip-rule="evenodd"></path></svg>'},86294:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4 2.5a3 3 0 0 0-3 3v13a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3v-13a3 3 0 0 0-3-3H4Zm3 3.75a.75.75 0 0 0 0 1.5h4.25V18a.75.75 0 0 0 1.5 0V7.75H17a.75.75 0 0 0 0-1.5H7Z" clip-rule="evenodd"></path></svg>'},63308:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M19.75 3c0-.41-.34-.75-.75-.75s-.75.34-.75.75v18c0 .41.34.75.75.75s.75-.34.75-.75V3ZM5 6.25c-.41 0-.75.34-.75.75s.34.75.75.75h4.25V18c0 .41.34.75.75.75s.75-.34.75-.75V7.75H15c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H5Z"></path></svg>'},3680:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><circle cx="8" cy="8" r="4" fill="currentColor" fill-opacity="0.5"></circle></svg>'},53159:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><circle cx="8" cy="8" r="7.5" stroke="currentColor"></circle></svg>'},1438:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M8.75 7c0-.41-.34-.75-.75-.75s-.75.34-.75.75v7c0 2.62 2.13 4.75 4.75 4.75s4.75-2.13 4.75-4.75V7c0-.41-.34-.75-.75-.75s-.75.34-.75.75v7c0 1.79-1.46 3.25-3.25 3.25S8.75 15.79 8.75 14V7ZM5 20.25c-.41 0-.75.34-.75.75s.34.75.75.75h14c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H5Z"></path></svg>'},21257:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8.53 3.47a.75.75 0 0 1 0 1.06L5.81 7.25H14a6.75 6.75 0 0 1 0 13.5h-2a.75.75 0 0 1 0-1.5h2a5.25 5.25 0 1 0 0-10.5H5.81l2.72 2.72a.75.75 0 1 1-1.06 1.06L2.94 8l4.53-4.53a.75.75 0 0 1 1.06 0Z" clip-rule="evenodd"></path></svg>'},9990:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M13 3.25c-.41 0-.75.34-.75.75v7c0 .41.34.75.75.75h7c.41 0 .75-.34.75-.75V4c0-.41-.34-.75-.75-.75h-7Zm.75 7v-5.5h5.5v5.5h-5.5Zm-9.75 2c-.41 0-.75.34-.75.75v7c0 .41.34.75.75.75h7c.41 0 .75-.34.75-.75v-7c0-.41-.34-.75-.75-.75H4Zm.75 7v-5.5h5.5v5.5h-5.5Z" clip-rule="evenodd"></path></svg>'},80790:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12.75 15.8c.45-.26.75-.74.75-1.3 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .56.3 1.04.75 1.3V18c0 .41.34.75.75.75s.75-.34.75-.75v-2.2ZM18 9h-1.25V5c0-2.62-2.13-4.75-4.75-4.75S7.25 2.38 7.25 5v.5c0 .41.34.75.75.75s.75-.34.75-.75V5c0-1.79 1.46-3.25 3.25-3.25S15.25 3.21 15.25 5v4H6c-1.66 0-3 1.34-3 3v8c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3v-8c0-1.66-1.34-3-3-3Zm1.5 11c0 .83-.67 1.5-1.5 1.5H6c-.83 0-1.5-.67-1.5-1.5v-8c0-.83.67-1.5 1.5-1.5h12c.83 0 1.5.67 1.5 1.5v8Z"></path></svg>'},52835:e=>{e.exports='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 11C4 10.4477 4.44772 10 5 10L23.3204 10C23.5777 10 23.8252 10.0992 24.0113 10.277L29.2435 15.277C29.6556 15.6709 29.6556 16.3291 29.2435 16.723L24.0113 21.723C23.8252 21.9008 23.5777 22 23.3204 22H5C4.44771 22 4 21.5523 4 21V11Z" fill="currentColor"></path></svg>'},33413:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M13.5 3.043a1.75 1.75 0 0 0-3 0L.266 20.1c-.7 1.166.14 2.65 1.5 2.65h20.468c1.36 0 2.2-1.484 1.5-2.65L13.502 3.043ZM12.75 9a.75.75 0 0 0-1.5 0v5a.75.75 0 0 0 1.5 0V9Zm.5 8.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z" clip-rule="evenodd"></path></svg>'},24544:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8.25 8.5a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0Zm6.78 4.289a5.25 5.25 0 1 0-6.058 0A8.754 8.754 0 0 0 3.249 21a.75.75 0 0 0 1.5 0 7.25 7.25 0 1 1 14.5 0 .75.75 0 0 0 1.5 0 8.754 8.754 0 0 0-5.72-8.211Z" clip-rule="evenodd"></path></svg>'},94072:e=>{e.exports='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.206 3.057a1.5 1.5 0 00-2.55.007L.406 19.714A1.5 1.5 0 001.685 22h20.614a1.5 1.5 0 001.273-2.293L13.206 3.057zm-2.38 6.241h2.353l-.28 6.132H11.12l-.294-6.132zm-.083 8.666c0-.686.56-1.26 1.26-1.26.714 0 1.26.574 1.26 1.26 0 .7-.546 1.274-1.26 1.274-.7 0-1.26-.574-1.26-1.274z" fill="currentColor"></path></svg>'},42744:e=>{e.exports='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="warning-2"><path id="Vector 324" d="M7.42834 2.28608L0.605798 13.657C0.339189 14.1013 0.659264 14.6666 1.17746 14.6666H14.8225C15.3407 14.6666 15.6608 14.1013 15.3942 13.657L8.57166 2.28608C8.31273 1.85452 7.68727 1.85452 7.42834 2.28608Z" stroke="black" stroke-linecap="round"></path><path id="Vector 325" d="M8 6V9.33333" stroke="black" stroke-linecap="round"></path><circle id="Ellipse 1085" cx="7.99999" cy="11.6666" r="0.833333" fill="currentColor"></circle></g></svg>'},8936:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M13.5 3.043a1.75 1.75 0 0 0-3 0L.266 20.1c-.7 1.166.14 2.65 1.5 2.65h20.468c1.36 0 2.2-1.484 1.5-2.65L13.502 3.043ZM12.75 9a.75.75 0 0 0-1.5 0v5a.75.75 0 0 0 1.5 0V9Zm.5 8.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z" clip-rule="evenodd"></path></svg>'},99939:e=>{e.exports='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_11043_393)"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.2062 3.05706C12.6174 2.11127 11.2394 2.1148 10.6554 3.0636L0.407199 19.7137C-0.207936 20.7131 0.511081 22 1.68462 22H22.2991C23.4761 22 24.1946 20.7064 23.5725 19.7072L13.2062 3.05706ZM12.8987 15.43L13.1787 9.298H10.8267L11.1137 15.43H12.8987ZM12.8987 17.082C12.6561 16.83 12.3574 16.704 12.0027 16.704C11.6574 16.704 11.3587 16.83 11.1067 17.082C10.8594 17.3293 10.7357 17.6257 10.7357 17.971C10.7357 18.3163 10.8594 18.615 11.1067 18.867C11.3587 19.1143 11.6574 19.238 12.0027 19.238C12.3574 19.238 12.6561 19.1143 12.8987 18.867C13.1461 18.615 13.2697 18.3163 13.2697 17.971C13.2697 17.6257 13.1461 17.3293 12.8987 17.082Z" fill="currentColor"></path></g><defs><clipPath id="clip0_11043_393"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},21619:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M11.992 8.247c.41 0 .75.34.75.75v5c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75Zm0 10.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm11.73 1.35-10.23-17.06a1.751 1.751 0 0 0-3 0L.262 20.097c-.7 1.17.14 2.65 1.5 2.65h20.46c1.36 0 2.2-1.48 1.5-2.65Zm-1.5 1.15H1.762c-.2 0-.32-.21-.22-.38l10.24-17.05c.09-.17.33-.17.42 0l10.24 17.05c.1.17-.02.38-.22.38Z"></path></svg>'},38256:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M4.747 9c0-2.35 1.9-4.25 4.25-4.25h4c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-4c-3.18 0-5.75 2.57-5.75 5.75v3.19l-1.72-1.72a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l3.53 3.53 3.53-3.53c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-1.72 1.72V9Zm15.25.25h-9c-.97 0-1.75.78-1.75 1.75v9c0 .97.78 1.75 1.75 1.75h9c.97 0 1.75-.78 1.75-1.75v-9c0-.97-.78-1.75-1.75-1.75Zm-9 1.5h9c.14 0 .25.11.25.25v9c0 .14-.11.25-.25.25h-9c-.14 0-.25-.11-.25-.25v-9c0-.14.11-.25.25-.25Z"></path></svg>'},3315:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M19.25 9c0-2.35-1.9-4.25-4.25-4.25h-4c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h4c3.18 0 5.75 2.57 5.75 5.75v3.19l1.72-1.72c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06L20 15.06l-3.53-3.53a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l1.72 1.72V9ZM4 9.25h9c.97 0 1.75.78 1.75 1.75v9c0 .97-.78 1.75-1.75 1.75H4c-.97 0-1.75-.78-1.75-1.75v-9c0-.97.78-1.75 1.75-1.75Zm9 1.5H4c-.14 0-.25.11-.25.25v9c0 .14.11.25.25.25h9c.14 0 .25-.11.25-.25v-9c0-.14-.11-.25-.25-.25Z"></path></svg>'},37961:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18.5 10c0 2.077-.745 3.98-1.983 5.457l.013.013 5 5a.75.75 0 0 1-1.06 1.06l-5-5-.013-.013A8.5 8.5 0 1 1 18.5 10ZM10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm.75-10a.75.75 0 0 0-1.5 0v2.25H7a.75.75 0 0 0 0 1.5h2.25V13a.75.75 0 0 0 1.5 0v-2.25H13a.75.75 0 0 0 0-1.5h-2.25V7Z" clip-rule="evenodd"></path></svg>'},85737:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18.5 10c0 2.077-.745 3.98-1.983 5.457l.013.013 5 5a.75.75 0 0 1-1.06 1.06l-5-5-.013-.013A8.5 8.5 0 1 1 18.5 10ZM10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14ZM7 9.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5H7Z" clip-rule="evenodd"></path></svg>'},54670:(e,t,n)=>{"use strict";e.exports=n(60385)},60385:(e,t)=>{"use strict";function n(e,t){if(void 0===t&&(t=""),!e)throw Error(t)}var r=Object.keys(TextMetrics.prototype),o=r.includes("actualBoundingBoxAscent")&&r.includes("actualBoundingBoxDescent");function i(e,t,n){for(var r=0;r<t;++r)if(0!==e.data[n*t*4+4*r+3])return!1;return!0}t.default=function(e){var t=this;if(void 0===e&&(e=""),this.calculateBoundingBox=function(e){n(t.ctx),t.ctx.fillText(e,0,0);for(var r=t.ctx.canvas,o=r.width,a=t.ctx.getImageData(0,0,o,r.height),s=0,l=a.height;s<l&&i(a,o,s);)++s;for(;l-1>s&&i(a,o,l-1);)--l;return l-s},this.measureText=function(e,r){void 0===r&&(r=t.font),n(t.ctx),t.ctx.font=r;var i=t.ctx.measureText(e),a=i.width,s=o?i.actualBoundingBoxAscent+i.actualBoundingBoxDescent:t.calculateBoundingBox(e);return{width:Math.round(a),height:Math.round(s)}},this.clean=function(){t.canvasElem&&document.body.removeChild(t.canvasElem)},"OffscreenCanvas"in window&&"function"==typeof OffscreenCanvas){var r=new OffscreenCanvas(1e3,100);this.ctx=r.getContext("2d")}else this.canvasElem=document.createElement("canvas"),document.body.appendChild(this.canvasElem),this.ctx=this.canvasElem.getContext("2d"),n(this.ctx),this.ctx.canvas.width=1e3,this.ctx.canvas.height=1e3;this.font=e,n(this.ctx),this.ctx.font=e}},70655:(e,t,n)=>{"use strict";n.d(t,{ZT:()=>o,_T:()=>a,ev:()=>s,pi:()=>i});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function s(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}Object.create},34997:(e,t,n)=>{"use strict";function r(e){var t=new Error(e);return t.source="ulid",t}n.d(t,{SK:()=>p});var o="0123456789ABCDEFGHJKMNPQRSTVWXYZ",i=o.length,a=Math.pow(2,48)-1;function s(e){var t=Math.floor(e()*i);return t===i&&(t=i-1),o.charAt(t)}function l(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>a)throw r("cannot encode time greater than "+a);if(e<0)throw r("time must be positive");if(!1===Number.isInteger(e))throw r("time must be an integer");for(var n=void 0,s="";t>0;t--)s=o.charAt(n=e%i)+s,e=(e-n)/i;return s}function c(e,t){for(var n="";e>0;e--)n=s(t)+n;return n}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];t||(t="undefined"!=typeof window?window:null);var o=t&&(t.crypto||t.msCrypto);if(o)return function(){var e=new Uint8Array(1);return o.getRandomValues(e),e[0]/255};try{var i=n(94788);return function(){return i.randomBytes(1).readUInt8()/255}}catch(e){}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch(e){}return function(){return Math.random()}}throw r("secure crypto unusable, insecure Math.random not allowed")}var d,p=(d||(d=u()),function(e){return isNaN(e)&&(e=Date.now()),l(e,10)+c(16,d)})},94788:()=>{},53250:(e,t,n)=>{"use strict";var r=n(67294);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},50139:(e,t,n)=>{"use strict";var r=n(67294),o=n(61688);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var h=a(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),u(h),h}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},77017:(e,t,n)=>{"use strict";let r;n.d(t,{v4:()=>w});const o=new Uint8Array(16);function i(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const s=function(e){return"string"==typeof e&&a.test(e)},l=[];for(let e=0;e<256;++e)l.push((e+256).toString(16).slice(1));function c(e,t=0){return l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]}const u=function(e){if(!s(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function d(e,t,n){function r(e,r,o,i){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=u(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),s=n(s),s[6]=15&s[6]|t,s[8]=63&s[8]|128,o){i=i||0;for(let e=0;e<16;++e)o[i+e]=s[e];return o}return c(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function p(e){return 14+(e+64>>>9<<4)+1}function h(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function f(e,t,n,r,o,i){return h((a=h(h(t,e),h(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function m(e,t,n,r,o,i,a){return f(t&n|~t&r,e,t,o,i,a)}function g(e,t,n,r,o,i,a){return f(t&r|n&~r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return f(t^n^r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return f(n^(t|~r),e,t,o,i,a)}d("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[p(t)-1]=t;let n=1732584193,r=-271733879,o=-1732584194,i=271733878;for(let t=0;t<e.length;t+=16){const a=n,s=r,l=o,c=i;n=m(n,r,o,i,e[t],7,-680876936),i=m(i,n,r,o,e[t+1],12,-389564586),o=m(o,i,n,r,e[t+2],17,606105819),r=m(r,o,i,n,e[t+3],22,-1044525330),n=m(n,r,o,i,e[t+4],7,-176418897),i=m(i,n,r,o,e[t+5],12,1200080426),o=m(o,i,n,r,e[t+6],17,-1473231341),r=m(r,o,i,n,e[t+7],22,-45705983),n=m(n,r,o,i,e[t+8],7,1770035416),i=m(i,n,r,o,e[t+9],12,-1958414417),o=m(o,i,n,r,e[t+10],17,-42063),r=m(r,o,i,n,e[t+11],22,-1990404162),n=m(n,r,o,i,e[t+12],7,1804603682),i=m(i,n,r,o,e[t+13],12,-40341101),o=m(o,i,n,r,e[t+14],17,-1502002290),r=m(r,o,i,n,e[t+15],22,1236535329),n=g(n,r,o,i,e[t+1],5,-165796510),i=g(i,n,r,o,e[t+6],9,-1069501632),o=g(o,i,n,r,e[t+11],14,643717713),r=g(r,o,i,n,e[t],20,-373897302),n=g(n,r,o,i,e[t+5],5,-701558691),i=g(i,n,r,o,e[t+10],9,38016083),o=g(o,i,n,r,e[t+15],14,-660478335),r=g(r,o,i,n,e[t+4],20,-405537848),n=g(n,r,o,i,e[t+9],5,568446438),i=g(i,n,r,o,e[t+14],9,-1019803690),o=g(o,i,n,r,e[t+3],14,-187363961),r=g(r,o,i,n,e[t+8],20,1163531501),n=g(n,r,o,i,e[t+13],5,-1444681467),i=g(i,n,r,o,e[t+2],9,-51403784),o=g(o,i,n,r,e[t+7],14,1735328473),r=g(r,o,i,n,e[t+12],20,-1926607734),n=v(n,r,o,i,e[t+5],4,-378558),i=v(i,n,r,o,e[t+8],11,-2022574463),o=v(o,i,n,r,e[t+11],16,1839030562),r=v(r,o,i,n,e[t+14],23,-35309556),n=v(n,r,o,i,e[t+1],4,-1530992060),i=v(i,n,r,o,e[t+4],11,1272893353),o=v(o,i,n,r,e[t+7],16,-155497632),r=v(r,o,i,n,e[t+10],23,-1094730640),n=v(n,r,o,i,e[t+13],4,681279174),i=v(i,n,r,o,e[t],11,-358537222),o=v(o,i,n,r,e[t+3],16,-722521979),r=v(r,o,i,n,e[t+6],23,76029189),n=v(n,r,o,i,e[t+9],4,-640364487),i=v(i,n,r,o,e[t+12],11,-421815835),o=v(o,i,n,r,e[t+15],16,530742520),r=v(r,o,i,n,e[t+2],23,-995338651),n=y(n,r,o,i,e[t],6,-198630844),i=y(i,n,r,o,e[t+7],10,1126891415),o=y(o,i,n,r,e[t+14],15,-1416354905),r=y(r,o,i,n,e[t+5],21,-57434055),n=y(n,r,o,i,e[t+12],6,1700485571),i=y(i,n,r,o,e[t+3],10,-1894986606),o=y(o,i,n,r,e[t+10],15,-1051523),r=y(r,o,i,n,e[t+1],21,-2054922799),n=y(n,r,o,i,e[t+8],6,1873313359),i=y(i,n,r,o,e[t+15],10,-30611744),o=y(o,i,n,r,e[t+6],15,-1560198380),r=y(r,o,i,n,e[t+13],21,1309151649),n=y(n,r,o,i,e[t+4],6,-145523070),i=y(i,n,r,o,e[t+11],10,-1120210379),o=y(o,i,n,r,e[t+2],15,718787259),r=y(r,o,i,n,e[t+9],21,-343485551),n=h(n,a),r=h(r,s),o=h(o,l),i=h(i,c)}return[n,r,o,i]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(p(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));const b={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const w=function(e,t,n){if(b.randomUUID&&!t&&!e)return b.randomUUID();const r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return c(r)};function x(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function _(e,t){return e<<t|e>>>32-t}d("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,o=Math.ceil(r/16),i=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];i[t]=n}i[o-1][14]=8*(e.length-1)/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=i[e][t];for(let e=16;e<80;++e)r[e]=_(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let o=n[0],a=n[1],s=n[2],l=n[3],c=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),i=_(o,5)+x(n,a,s,l)+c+t[n]+r[e]>>>0;c=l,l=s,s=_(a,30)>>>0,a=o,o=i}n[0]=n[0]+o>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+l>>>0,n[4]=n[4]+c>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))},87153:e=>{e.exports="428ce41756cbb3ca"},91117:e=>{e.exports="4fba0e2d92d49d53"},35349:e=>{e.exports="91fc6676a4a3c1b9"},9327:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},36403:(e,t,n)=>{var r={"./check.svg":91884,"./circle.svg":55108,"./comment.svg":56610,"./cross.svg":64767,"./help.svg":63359,"./insert.svg":81740,"./key.svg":89559,"./newParagraph.svg":50371,"./note.svg":58728,"./paragraph.svg":44542,"./rightArrow.svg":98671,"./rightPointer.svg":44741,"./star.svg":99471};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=36403},79230:(e,t,n)=>{var r={"./add-text-box.svg":33150,"./add.svg":84768,"./all-pages.svg":41725,"./ancestor-hidden.svg":58817,"./ancestor-locked.svg":87779,"./annotate.svg":83104,"./anonymous.svg":33751,"./arrow-right.svg":497,"./arrow-up.svg":96421,"./arrow.svg":1291,"./back.svg":1126,"./blend-mode.svg":39127,"./bold.svg":6274,"./bookmark-active.svg":79439,"./border-color.svg":57462,"./calibrate.svg":64772,"./callout.svg":14623,"./caret-down-variant.svg":42451,"./caret-down.svg":52904,"./caret-left.svg":10190,"./caret-right.svg":92122,"./caret-up.svg":19201,"./caret.svg":74777,"./check-circle.svg":97468,"./check.svg":46154,"./checked-radio-group.svg":94556,"./checkmark.svg":79579,"./chevron-down-filled.svg":49612,"./chevron-right-filled.svg":67018,"./clockwise.svg":35077,"./close-button.svg":2256,"./close.svg":66361,"./cloudy-border.svg":80224,"./cloudy-ellipse.svg":10669,"./cloudy-polygon.svg":13830,"./cloudy-rectangle.svg":64874,"./comment-filled.svg":23944,"./comment-indicator.svg":80259,"./comment.svg":53063,"./compare-pin-drop-cursor.svg":28735,"./compare-select-point-indicator-black.svg":23874,"./content-editor.svg":10346,"./counterclockwise.svg":84539,"./dashed-ellipse.svg":95482,"./dashed-polygon.svg":10801,"./dashed-rectangle.svg":43472,"./debug.svg":41828,"./delete.svg":63949,"./digital-signatures/signature-error.svg":40825,"./digital-signatures/signature-valid.svg":3572,"./distance.svg":13864,"./document-assistant.svg":65829,"./document-comparison.svg":66308,"./document-crop.svg":58645,"./document-editor.svg":20574,"./drawing-closing-cursor.svg":48947,"./drawing-cursor.svg":37390,"./edit.svg":61802,"./editor/add.svg":69558,"./editor/duplicate.svg":24388,"./editor/extractPages.svg":88105,"./editor/help.svg":9451,"./editor/importDocument.svg":48982,"./editor/move.svg":6058,"./editor/moveLeft.svg":91288,"./editor/moveRight.svg":46018,"./editor/multiplePages.svg":13006,"./editor/redo.svg":52449,"./editor/remove.svg":1562,"./editor/rotateLeft.svg":52684,"./editor/rotateRight.svg":58287,"./editor/selectAll.svg":57208,"./editor/selectNone.svg":95119,"./editor/undo.svg":32428,"./editor/zoomIn.svg":62475,"./editor/zoomOut.svg":75480,"./ellipse-area.svg":5111,"./ellipse.svg":58439,"./export-pdf.svg":5461,"./eye-close.svg":1925,"./eye-open.svg":16074,"./fill-color.svg":92742,"./fit-page.svg":44882,"./fit-width.svg":85449,"./font-size.svg":14379,"./font.svg":81741,"./form-button.svg":90686,"./form-checkbox.svg":63357,"./form-combobox.svg":97245,"./form-creator.svg":8716,"./form-date.svg":48358,"./form-listbox.svg":92070,"./form-radio.svg":60571,"./form-signature.svg":50121,"./form-text.svg":29890,"./group.svg":66962,"./hamburger.svg":60967,"./highlight.svg":99319,"./highlighter.svg":939,"./image.svg":71865,"./info.svg":69241,"./ink-eraser.svg":94814,"./ink.svg":79363,"./inpage-check-icon.svg":22606,"./italic.svg":66311,"./layout-config.svg":91998,"./layout-config/auto.svg":46318,"./layout-config/continuous.svg":1409,"./layout-config/double.svg":63113,"./layout-config/single.svg":65558,"./layout-config/view_rotate_left.svg":58417,"./layout-config/view_rotate_right.svg":54669,"./line-style.svg":20113,"./line-width.svg":41869,"./line.svg":66294,"./linecaps-dasharray.svg":83553,"./linestyle.svg":61682,"./link.svg":22243,"./lock.svg":50308,"./marquee-zoom.svg":35231,"./measure.svg":45606,"./media.svg":64701,"./mention.svg":10017,"./more.svg":87394,"./multi-annotations-selection.svg":56034,"./not-editable.svg":55079,"./note-add.svg":28772,"./note-icon.svg":16302,"./note-indicator.svg":11248,"./note.svg":9937,"./note/check.svg":91884,"./note/circle.svg":55108,"./note/comment.svg":56610,"./note/cross.svg":64767,"./note/help.svg":63359,"./note/insert.svg":81740,"./note/key.svg":89559,"./note/newParagraph.svg":50371,"./note/note.svg":58728,"./note/paragraph.svg":44542,"./note/rightArrow.svg":98671,"./note/rightPointer.svg":44741,"./note/star.svg":99471,"./ocg-lock.svg":24808,"./ocg-unlock.svg":83569,"./opacity.svg":22636,"./pan.svg":29489,"./perimeter.svg":60231,"./plus.svg":45632,"./polygon-area.svg":91291,"./polygon.svg":72780,"./polyline.svg":82748,"./precision.svg":45989,"./print.svg":738,"./rectangle-area.svg":96816,"./rectangle.svg":7799,"./redact-rectangle.svg":42741,"./redact-text-highlighter.svg":11088,"./redaction-text-repeating.svg":97248,"./redaction-text-single.svg":80953,"./redaction.svg":20377,"./redo.svg":90194,"./remove-circled.svg":50331,"./rotate.svg":72938,"./scale.svg":45983,"./search.svg":98589,"./sidebar-annotations.svg":62949,"./sidebar-bookmarks.svg":59620,"./sidebar-document-outline.svg":47082,"./sidebar-layers.svg":80163,"./sidebar-signatures.svg":12778,"./sidebar-thumbnails.svg":9643,"./signature-error.svg":25899,"./signature-valid.svg":24089,"./signature-warning.svg":47630,"./signature.svg":65936,"./single-page.svg":23717,"./squiggle.svg":10737,"./stamp.svg":54897,"./status-completed.svg":13214,"./strikeout.svg":60276,"./stroke-color.svg":25615,"./style.svg":47952,"./text-align-horizontal-center.svg":60562,"./text-align-horizontal-left.svg":9984,"./text-align-horizontal-right.svg":7919,"./text-align-vertical-bottom.svg":95155,"./text-align-vertical-center.svg":10070,"./text-align-vertical-top.svg":68715,"./text-color.svg":34057,"./text-highlighter.svg":86294,"./text.svg":63308,"./toggle-arrow.svg":3680,"./unchecked-radio-group.svg":53159,"./underline.svg":1438,"./undo.svg":21257,"./ungroup.svg":9990,"./unlock.svg":80790,"./unsigned-signature-field.svg":52835,"./user-hint.svg":33413,"./user.svg":24544,"./warning-2.svg":94072,"./warning-3.svg":42744,"./warning-filled.svg":8936,"./warning-triangle-full.svg":99939,"./warning.svg":21619,"./widget_ccw.svg":38256,"./widget_cw.svg":3315,"./zoom-in.svg":37961,"./zoom-out.svg":85737};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=79230},89457:(e,t,n)=>{var r={"./add-text-box.svg":33150,"./add.svg":84768,"./all-pages.svg":41725,"./ancestor-hidden.svg":58817,"./ancestor-locked.svg":87779,"./annotate.svg":83104,"./anonymous.svg":33751,"./arrow-right.svg":497,"./arrow-up.svg":96421,"./arrow.svg":1291,"./back.svg":1126,"./blend-mode.svg":39127,"./bold.svg":6274,"./bookmark-active.svg":79439,"./border-color.svg":57462,"./calibrate.svg":64772,"./callout.svg":14623,"./caret-down-variant.svg":42451,"./caret-down.svg":52904,"./caret-left.svg":10190,"./caret-right.svg":92122,"./caret-up.svg":19201,"./caret.svg":74777,"./check-circle.svg":97468,"./check.svg":46154,"./checked-radio-group.svg":94556,"./checkmark.svg":79579,"./chevron-down-filled.svg":49612,"./chevron-right-filled.svg":67018,"./clockwise.svg":35077,"./close-button.svg":2256,"./close.svg":66361,"./cloudy-border.svg":80224,"./cloudy-ellipse.svg":10669,"./cloudy-polygon.svg":13830,"./cloudy-rectangle.svg":64874,"./comment-filled.svg":23944,"./comment-indicator.svg":80259,"./comment.svg":53063,"./compare-pin-drop-cursor.svg":28735,"./compare-select-point-indicator-black.svg":23874,"./content-editor.svg":10346,"./counterclockwise.svg":84539,"./dashed-ellipse.svg":95482,"./dashed-polygon.svg":10801,"./dashed-rectangle.svg":43472,"./debug.svg":41828,"./delete.svg":63949,"./digital-signatures/signature-error.svg":40825,"./digital-signatures/signature-valid.svg":3572,"./distance.svg":13864,"./document-assistant.svg":65829,"./document-comparison.svg":66308,"./document-crop.svg":58645,"./document-editor.svg":20574,"./drawing-closing-cursor.svg":48947,"./drawing-cursor.svg":37390,"./edit.svg":61802,"./editor/add.svg":69558,"./editor/duplicate.svg":24388,"./editor/extractPages.svg":88105,"./editor/help.svg":9451,"./editor/importDocument.svg":48982,"./editor/move.svg":6058,"./editor/moveLeft.svg":91288,"./editor/moveRight.svg":46018,"./editor/multiplePages.svg":13006,"./editor/redo.svg":52449,"./editor/remove.svg":1562,"./editor/rotateLeft.svg":52684,"./editor/rotateRight.svg":58287,"./editor/selectAll.svg":57208,"./editor/selectNone.svg":95119,"./editor/undo.svg":32428,"./editor/zoomIn.svg":62475,"./editor/zoomOut.svg":75480,"./ellipse-area.svg":5111,"./ellipse.svg":58439,"./export-pdf.svg":5461,"./eye-close.svg":1925,"./eye-open.svg":16074,"./fill-color.svg":92742,"./fit-page.svg":44882,"./fit-width.svg":85449,"./font-size.svg":14379,"./font.svg":81741,"./form-button.svg":90686,"./form-checkbox.svg":63357,"./form-combobox.svg":97245,"./form-creator.svg":8716,"./form-date.svg":48358,"./form-listbox.svg":92070,"./form-radio.svg":60571,"./form-signature.svg":50121,"./form-text.svg":29890,"./group.svg":66962,"./hamburger.svg":60967,"./highlight.svg":99319,"./highlighter.svg":939,"./image.svg":71865,"./info.svg":69241,"./ink-eraser.svg":94814,"./ink.svg":79363,"./inpage-check-icon.svg":22606,"./italic.svg":66311,"./layout-config.svg":91998,"./layout-config/auto.svg":46318,"./layout-config/continuous.svg":1409,"./layout-config/double.svg":63113,"./layout-config/single.svg":65558,"./layout-config/view_rotate_left.svg":58417,"./layout-config/view_rotate_right.svg":54669,"./line-style.svg":20113,"./line-width.svg":41869,"./line.svg":66294,"./linecaps-dasharray.svg":83553,"./linestyle.svg":61682,"./link.svg":22243,"./lock.svg":50308,"./marquee-zoom.svg":35231,"./measure.svg":45606,"./media.svg":64701,"./mention.svg":10017,"./more.svg":87394,"./multi-annotations-selection.svg":56034,"./not-editable.svg":55079,"./note-add.svg":28772,"./note-icon.svg":16302,"./note-indicator.svg":11248,"./note.svg":9937,"./note/check.svg":91884,"./note/circle.svg":55108,"./note/comment.svg":56610,"./note/cross.svg":64767,"./note/help.svg":63359,"./note/insert.svg":81740,"./note/key.svg":89559,"./note/newParagraph.svg":50371,"./note/note.svg":58728,"./note/paragraph.svg":44542,"./note/rightArrow.svg":98671,"./note/rightPointer.svg":44741,"./note/star.svg":99471,"./ocg-lock.svg":24808,"./ocg-unlock.svg":83569,"./opacity.svg":22636,"./pan.svg":29489,"./perimeter.svg":60231,"./plus.svg":45632,"./polygon-area.svg":91291,"./polygon.svg":72780,"./polyline.svg":82748,"./precision.svg":45989,"./print.svg":738,"./rectangle-area.svg":96816,"./rectangle.svg":7799,"./redact-rectangle.svg":42741,"./redact-text-highlighter.svg":11088,"./redaction-text-repeating.svg":97248,"./redaction-text-single.svg":80953,"./redaction.svg":20377,"./redo.svg":90194,"./remove-circled.svg":50331,"./rotate.svg":72938,"./scale.svg":45983,"./search.svg":98589,"./sidebar-annotations.svg":62949,"./sidebar-bookmarks.svg":59620,"./sidebar-document-outline.svg":47082,"./sidebar-layers.svg":80163,"./sidebar-signatures.svg":12778,"./sidebar-thumbnails.svg":9643,"./signature-error.svg":25899,"./signature-valid.svg":24089,"./signature-warning.svg":47630,"./signature.svg":65936,"./single-page.svg":23717,"./squiggle.svg":10737,"./stamp.svg":54897,"./status-completed.svg":13214,"./strikeout.svg":60276,"./stroke-color.svg":25615,"./style.svg":47952,"./text-align-horizontal-center.svg":60562,"./text-align-horizontal-left.svg":9984,"./text-align-horizontal-right.svg":7919,"./text-align-vertical-bottom.svg":95155,"./text-align-vertical-center.svg":10070,"./text-align-vertical-top.svg":68715,"./text-color.svg":34057,"./text-highlighter.svg":86294,"./text.svg":63308,"./toggle-arrow.svg":3680,"./unchecked-radio-group.svg":53159,"./underline.svg":1438,"./undo.svg":21257,"./ungroup.svg":9990,"./unlock.svg":80790,"./unsigned-signature-field.svg":52835,"./user-hint.svg":33413,"./user.svg":24544,"./warning-2.svg":94072,"./warning-3.svg":42744,"./warning-filled.svg":8936,"./warning-triangle-full.svg":99939,"./warning.svg":21619,"./widget_ccw.svg":38256,"./widget_cw.svg":3315,"./zoom-in.svg":37961,"./zoom-out.svg":85737};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=89457},35982:(e,t,n)=>{var r={"./caret-down-variant.svg":42451,"./caret-down.svg":52904,"./caret-left.svg":10190,"./caret-right.svg":92122,"./caret-up.svg":19201};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=35982},58758:(e,t,n)=>{var r={"./text-align-horizontal-center.svg":60562,"./text-align-horizontal-left.svg":9984,"./text-align-horizontal-right.svg":7919};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=58758},29712:(e,t,n)=>{var r={"./text-align-vertical-bottom.svg":95155,"./text-align-vertical-center.svg":10070,"./text-align-vertical-top.svg":68715};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=29712},34988:(e,t,n)=>{var r;!function(o,i,a,s){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=i.createElement("div"),d=Math.round,p=Math.abs,h=Date.now;function f(e,t,n){return setTimeout(x(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function v(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var y=v((function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&e[r[o]]===s)&&(e[r[o]]=t[r[o]]),o++;return e}),"extend","Use `assign`."),b=v((function(e,t){return y(e,t,!0)}),"merge","Use `assign`.");function w(e,t,n){var r,o=t.prototype;(r=e.prototype=Object.create(o)).constructor=e,r._super=o,n&&l(r,n)}function x(e,t){return function(){return e.apply(t,arguments)}}function _(e,t){return"function"==typeof e?e.apply(t&&t[0]||s,t):e}function S(e,t){return e===s?t:e}function C(e,t,n){g(P(t),(function(t){e.addEventListener(t,n,!1)}))}function E(e,t,n){g(P(t),(function(t){e.removeEventListener(t,n,!1)}))}function k(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function z(e,t){return e.indexOf(t)>-1}function P(e){return e.trim().split(/\s+/g)}function D(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function A(e){return Array.prototype.slice.call(e,0)}function T(e,t,n){for(var r=[],o=[],i=0;i<e.length;){var a=t?e[i][t]:e[i];D(o,a)<0&&r.push(e[i]),o[i]=a,i++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function I(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),i=0;i<c.length;){if((r=(n=c[i])?n+o:t)in e)return r;i++}return s}var M=1;function R(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var F="ontouchstart"in o,N=I(o,"PointerEvent")!==s,O=F&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),j="touch",L="mouse",B=24,K=["x","y"],V=["clientX","clientY"];function H(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){_(e.options.enable,[e])&&n.handler(t)},this.init()}function $(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,i=1&t&&r-o==0,a=12&t&&r-o==0;n.isFirst=!!i,n.isFinal=!!a,i&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=U(t));o>1&&!n.firstMultiple?n.firstMultiple=U(t):1===o&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,l=a?a.center:i.center,c=t.center=Z(r);t.timeStamp=h(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=Y(l,c),t.distance=W(l,c),function(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},i=e.prevInput||{};1!==t.eventType&&4!==i.eventType||(o=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=o.x+(n.x-r.x),t.deltaY=o.y+(n.y-r.y)}(n,t),t.offsetDirection=G(t.deltaX,t.deltaY);var u=q(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=p(u.x)>p(u.y)?u.x:u.y,t.scale=a?(d=a.pointers,f=r,W(f[0],f[1],V)/W(d[0],d[1],V)):1,t.rotation=a?function(e,t){return Y(t[1],t[0],V)+Y(e[1],e[0],V)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,i,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(l>25||a.velocity===s)){var c=t.deltaX-a.deltaX,u=t.deltaY-a.deltaY,d=q(l,c,u);r=d.x,o=d.y,n=p(d.x)>p(d.y)?d.x:d.y,i=G(c,u),e.lastInterval=t}else n=a.velocity,r=a.velocityX,o=a.velocityY,i=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=i}(n,t);var d,f;var m=e.element;k(t.srcEvent.target,m)&&(m=t.srcEvent.target);t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function U(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:d(e.pointers[n].clientX),clientY:d(e.pointers[n].clientY)},n++;return{timeStamp:h(),pointers:t,center:Z(t),deltaX:e.deltaX,deltaY:e.deltaY}}function Z(e){var t=e.length;if(1===t)return{x:d(e[0].clientX),y:d(e[0].clientY)};for(var n=0,r=0,o=0;o<t;)n+=e[o].clientX,r+=e[o].clientY,o++;return{x:d(n/t),y:d(r/t)}}function q(e,t,n){return{x:t/e||0,y:n/e||0}}function G(e,t){return e===t?1:p(e)>=p(t)?e<0?2:4:t<0?8:16}function W(e,t,n){n||(n=K);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function Y(e,t,n){n||(n=K);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}H.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(R(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(R(this.element),this.evWin,this.domHandler)}};var X={mousedown:1,mousemove:2,mouseup:4},Q="mousedown",J="mousemove mouseup";function ee(){this.evEl=Q,this.evWin=J,this.pressed=!1,H.apply(this,arguments)}w(ee,H,{handler:function(e){var t=X[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:L,srcEvent:e}))}});var te={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ne={2:j,3:"pen",4:L,5:"kinect"},re="pointerdown",oe="pointermove pointerup pointercancel";function ie(){this.evEl=re,this.evWin=oe,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(re="MSPointerDown",oe="MSPointerMove MSPointerUp MSPointerCancel"),w(ie,H,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=te[r],i=ne[e.pointerType]||e.pointerType,a=i==j,s=D(t,e.pointerId,"pointerId");1&o&&(0===e.button||a)?(e.isPrimary&&t.length>0&&(this.store=this.manager.session.pointerEvents=[]),s<0&&(t.push(e),s=t.length-1)):12&o&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(s,1))}});var ae={touchstart:1,touchmove:2,touchend:4,touchcancel:8},se="touchstart",le="touchstart touchmove touchend touchcancel";function ce(){this.evTarget=se,this.evWin=le,this.started=!1,H.apply(this,arguments)}function ue(e,t){var n=A(e.touches),r=A(e.changedTouches);return 12&t&&(n=T(n.concat(r),"identifier",!0)),[n,r]}w(ce,H,{handler:function(e){var t=ae[e.type];if(1===t&&(this.started=!0),this.started){var n=ue.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:j,srcEvent:e})}}});var de={touchstart:1,touchmove:2,touchend:4,touchcancel:8},pe="touchstart touchmove touchend touchcancel";function he(){this.evTarget=pe,this.targetIds={},H.apply(this,arguments)}function fe(e,t){var n=A(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,i,a=A(e.changedTouches),s=[],l=this.target;if(i=n.filter((function(e){return k(e.target,l)})),1===t)for(o=0;o<i.length;)r[i[o].identifier]=!0,o++;for(o=0;o<a.length;)r[a[o].identifier]&&s.push(a[o]),12&t&&delete r[a[o].identifier],o++;return s.length?[T(i.concat(s),"identifier",!0),s]:void 0}w(he,H,{handler:function(e){var t=de[e.type],n=fe.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:j,srcEvent:e})}});function me(){H.apply(this,arguments);var e=x(this.handler,this);this.touch=new he(this.manager,e),this.mouse=new ee(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ge(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ve.call(this,t)):12&e&&ve.call(this,t)}function ve(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function ye(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var o=this.lastTouches[r],i=Math.abs(t-o.x),a=Math.abs(n-o.y);if(i<=25&&a<=25)return!0}return!1}w(me,H,{handler:function(e,t,n){var r=n.pointerType==j,o=n.pointerType==L;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ge.call(this,t,n);else if(o&&ye.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var be=I(u.style,"touchAction"),we=be!==s,xe="compute",_e="auto",Se="manipulation",Ce="none",Ee="pan-x",ke="pan-y",ze=function(){if(!we)return!1;var e={},t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||o.CSS.supports("touch-action",n)})),e}();function Pe(e,t){this.manager=e,this.set(t)}Pe.prototype={set:function(e){e==xe&&(e=this.compute()),we&&this.manager.element.style&&ze[e]&&(this.manager.element.style[be]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return g(this.manager.recognizers,(function(t){_(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(z(e,Ce))return Ce;var t=z(e,Ee),n=z(e,ke);if(t&&n)return Ce;if(t||n)return t?Ee:ke;if(z(e,Se))return Se;return _e}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,o=z(r,Ce)&&!ze.none,i=z(r,ke)&&!ze["pan-y"],a=z(r,Ee)&&!ze["pan-x"];if(o){var s=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(s&&l&&c)return}if(!a||!i)return o||i&&6&n||a&&n&B?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var De=32;function Ae(e){this.options=l({},this.defaults,e||{}),this.id=M++,this.manager=null,this.options.enable=S(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Te(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Ie(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Me(e,t){var n=t.manager;return n?n.get(e):e}function Re(){Ae.apply(this,arguments)}function Fe(){Re.apply(this,arguments),this.pX=null,this.pY=null}function Ne(){Re.apply(this,arguments)}function Oe(){Ae.apply(this,arguments),this._timer=null,this._input=null}function je(){Re.apply(this,arguments)}function Le(){Re.apply(this,arguments)}function Be(){Ae.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ke(e,t){return(t=t||{}).recognizers=S(t.recognizers,Ke.defaults.preset),new Ve(e,t)}Ae.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(m(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Me(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)||(e=Me(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===D(t,e=Me(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=Me(e,this);var t=D(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Te(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Te(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=De},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!_(this.options.enable,[this,t]))return this.reset(),void(this.state=De);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(Re,Ae,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,o=this.attrTest(e);return r&&(8&n||!o)?16|t:r||o?4&n?8|t:2&t?4|t:2:De}}),w(Fe,Re,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(ke),e&B&&t.push(Ee),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,o=e.direction,i=e.deltaX,a=e.deltaY;return o&t.direction||(6&t.direction?(o=0===i?1:i<0?2:4,n=i!=this.pX,r=Math.abs(e.deltaX)):(o=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=o,n&&r>t.threshold&&o&t.direction},attrTest:function(e){return Re.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ie(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Ne,Re,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ce]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(Oe,Ae,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[_e]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return De},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}}),w(je,Re,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ce]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Le,Re,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Fe.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&B&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&p(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Ie(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(Be,Ae,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Se]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&o&&n){if(4!=e.eventType)return this.failTimeout();var i=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||W(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&i?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=f((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return De},failTimeout:function(){return this._timer=f((function(){this.state=De}),this.options.interval,this),De},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ke.VERSION="2.0.7",Ke.defaults={domEvents:!1,touchAction:xe,enable:!0,inputTarget:null,inputClass:null,preset:[[je,{enable:!1}],[Ne,{enable:!1},["rotate"]],[Le,{direction:6}],[Fe,{direction:6},["swipe"]],[Be],[Be,{event:"doubletap",taps:2},["tap"]],[Oe]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ve(e,t){var n;this.options=l({},Ke.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(N?ie:O?he:F?me:ee))(n,$),this.touchAction=new Pe(this,this.options.touchAction),He(this,!0),g(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function He(e,t){var n,r=e.element;r.style&&(g(e.options.cssProps,(function(o,i){n=I(r.style,i),t?(e.oldCssProps[n]=r.style[n],r.style[n]=o):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Ve.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,o=t.curRecognizer;(!o||o&&8&o.state)&&(o=t.curRecognizer=null);for(var i=0;i<r.length;)n=r[i],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&14&n.state&&(o=t.curRecognizer=n),i++}},get:function(e){if(e instanceof Ae)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(m(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(m(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=D(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return g(P(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==s){var n=this.handlers;return g(P(e),(function(e){t?n[e]&&n[e].splice(D(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=i.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&He(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Ke,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:De,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:B,DIRECTION_ALL:30,Manager:Ve,Input:H,TouchAction:Pe,TouchInput:he,MouseInput:ee,PointerEventInput:ie,TouchMouseInput:me,SingleTouchInput:ce,Recognizer:Ae,AttrRecognizer:Re,Tap:Be,Pan:Fe,Swipe:Le,Pinch:Ne,Rotate:je,Press:Oe,on:C,off:E,each:g,merge:b,extend:y,assign:l,inherit:w,bindFn:x,prefixed:I}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=Ke,(r=function(){return Ke}.call(t,n,t,e))===s||(e.exports=r)}(window,document)}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}return a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>4098===e?"pspdfkit-lib/core-worker.js":2999===e?"pspdfkit-lib/gdpicture-worker.js":"pspdfkit-lib/chunk-"+{157:"locale-hr",407:"locale-tr",473:"locale-es",517:"locale-pt",752:"localedata-da",1009:"locale-de",1063:"localedata-th",1077:"localedata-sk",1089:"localedata-ko",1139:"locale-da",1145:"localedata-fr",1168:"locale-ko",1252:"localedata-es",1277:"localedata-sl",1305:"gdpicture",1323:"locale-el",1385:"localedata-ru",1391:"locale-ms",1517:"lazy-sha",1518:"localedata-ms",1843:"localedata-uk",1874:"locale-en",1882:"localedata-el",1945:"gdpicture-worker",2279:"localedata-nb",2333:"server-instant",2727:"localedata-sv",2916:"locale-fr-CA",3005:"localedata-cs",3095:"locale-uk",3360:"locale-fr",3424:"localedata-it",3463:"locale-ja",3579:"locale-cs",3610:"standalone",4072:"localedata-zh",4099:"server-rest",4132:"core-worker",4267:"standalone-server",4572:"lazy-de",4728:"localedata-ja",4899:"locale-pl",4932:"localedata-pt",4966:"locale-nb-NO",5014:"localedata-en",5192:"localedata-id",5431:"locale-pt-PT",5528:"localedata-fi",5595:"locale-sl",5666:"locale-th",5677:"locale-nl",6045:"locale-en-GB",6377:"server",6523:"localedata-pl",6530:"locale-sv",6678:"locale-zh-Hans",7050:"localedata-cy",7578:"locale-cy",7579:"locale-zh-Hant",8057:"locale-ru",8839:"locale-it",8869:"localedata-de",9384:"localedata-tr",9390:"locale-fi",9486:"localedata-nl",9677:"localedata-hr",9726:"locale-id",9971:"locale-sk"}[e]+"-"+{157:"f779f154e49379d6",407:"e3b49986ab32820b",473:"07f585dd44ef4e3c",517:"19b88584836e92f4",752:"d6a1b5bb2c6b0a26",1009:"049be45c48e69ad6",1063:"e64342a4027af57f",1077:"37acd695fb465acb",1089:"aee3fecd391356b3",1139:"c2e915b2b96d9aba",1145:"0dee072ed275597f",1168:"f72c660dc6c37b0f",1252:"34c06cc06f9f755e",1277:"3a31807164e27ea2",1305:"1275a85927f027bc",1323:"bbcab3d5fcfff9e1",1385:"77eedda1aebbee30",1391:"345cf9dc12e687c9",1517:"6138de61bff3d68e",1518:"4a706d5d7c0a7f8d",1843:"58cec84aacc8d6aa",1874:"289e974ede10a110",1882:"7fca105982293186",1945:"16aecf2bd9562e76",2279:"81f049deb23656b6",2333:"b13f93b90a3b3272",2727:"57869b59bb18e97f",2916:"bf56f7be4af0762f",3005:"97b965a5183b8de7",3095:"10913b2207ba5c56",3360:"479e7eb580209384",3424:"8f103b41a04b7c0c",3463:"5d95036e4e50a76b",3579:"258706f71bb3af26",3610:"096459f9cb8a7d87",4072:"fecead4e89820a0c",4099:"c3c97e56b9d22fd1",4132:"f0c22e8ff1f6312d",4267:"5db8ef35f54e9d78",4572:"1bfd89c3290e919d",4728:"57382aa0b95c3ccd",4899:"32f89f0373052e72",4932:"9a8f72e87582ed22",4966:"b97801f6c03a4bb6",5014:"25fea9a7e123335b",5192:"8cb657b7de4c654f",5431:"1c0cc0ad4c08ac2e",5528:"004c9c4d74f29773",5595:"3adc0339a82d19ee",5666:"451a226d14a8b478",5677:"d234b472d7fccafe",6045:"7ade3521fa31d1ac",6377:"bfc09e675b848d0c",6523:"61ec4fea22508817",6530:"2cef730cb183567c",6678:"f489718a501cc12a",7050:"219af77dca6ce4d8",7578:"0a49e710362a064c",7579:"b03af15af196edad",8057:"2d72f9271d2d3b3e",8839:"7a777553a30f583e",8869:"0ae2415c9c0c6120",9384:"18a492e267513011",9390:"72f5b8bf8b194a40",9486:"2695379e7c74be2f",9677:"a31da021795933d2",9726:"a08a2dc2ce8eca77",9971:"3740bb90876f3ee5"}[e]+".js",a.miniCssF=e=>{},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="PSPDFKit:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var p=(t,r)=>{s.onerror=s.onload=null,clearTimeout(h);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.p="",(()=>{a.b=document.baseURI||self.location.href;var e={1026:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,l]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(l)l(a)}for(t&&t(n);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=globalThis.webpackChunkPSPDFKit=globalThis.webpackChunkPSPDFKit||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0,a(88221)})()));