PageSourceSearch

https://excellentmoving.com/assets/index-CgS0pHcx.js

js excellentmoving.com collected 2026-09-26 15:48:46 UTC 1,472,908 bytes, 601 lines download raw bytes

vendor: 6,852 bytes, lines 1-9
1var lD=Object.defineProperty;var xS=e=>{throw TypeError(e)};var cD=(e,t,r)=>t in e?lD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var pr=(e,t,r)=>cD(e,typeof t!="symbol"?t+"":t,r),K1=(e,t,r)=>t.has(e)||xS("Cannot "+r);var Me=(e,t,r)=>(K1(e,t,"read from private field"),r?r.call(e):t.get(e)),or=(e,t,r)=>t.has(e)?xS("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),$t=(e,t,r,n)=>(K1(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ni=(e,t,r)=>(K1(e,t,"access private method"),r);var xg=(e,t,r,n)=>({set _(i){$t(e,t,i,r)},get _(){return Me(e,t,n)}});function zC(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var rd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ou(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dm(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var HC={exports:{}},ly={},VC={exports:{}},Gt={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var fm=Symbol.for("react.element"),uD=Symbol.for("react.portal"),dD=Symbol.for("react.fragment"),fD=Symbol.for("react.strict_mode"),hD=Symbol.for("react.profiler"),pD=Symbol.for("react.provider"),mD=Symbol.for("react.context"),gD=Symbol.for("react.forward_ref"),vD=Symbol.for("react.suspense"),yD=Symbol.for("react.memo"),bD=Symbol.for("react.lazy"),_S=Symbol.iterator;function wD(e){return e===null||typeof e!="object"?null:(e=_S&&e[_S]||e["@@iterator"],typeof e=="function"?e:null)}var WC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},KC=Object.assign,GC={};function If(e,t,r){this.props=e,this.context=t,this.refs=GC,this.updater=r||WC}If.prototype.isReactComponent={};If.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};If.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function YC(){}YC.prototype=If.prototype;function e5(e,t,r){this.props=e,this.context=t,this.refs=GC,this.updater=r||WC}var t5=e5.prototype=new YC;t5.constructor=e5;KC(t5,If.prototype);t5.isPureReactComponent=!0;var kS=Array.isArray,ZC=Object.prototype.hasOwnProperty,r5={current:null},XC={key:!0,ref:!0,__self:!0,__source:!0};function JC(e,t,r){var n,i={},s=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(s=""+t.key),t)ZC.call(t,n)&&!XC.hasOwnProperty(n)&&(i[n]=t[n]);var o=arguments.length-2;if(o===1)i.children=r;else if(1<o){for(var l=Array(o),c=0;c<o;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(n in o=e.defaultProps,o)i[n]===void 0&&(i[n]=o[n]);return{$$typeof:fm,type:e,key:s,ref:a,props:i,_owner:r5.current}}function xD(e,t){return{$$typeof:fm,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function n5(e){return typeof e=="object"&&e!==null&&e.$$typeof===fm}function _D(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var SS=/\/+/g;function G1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_D(""+e.key):t.toString(36)}function mv(e,t,r,n,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case fm:case uD:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+G1(a,0):n,kS(i)?(r="",e!=null&&(r=e.replace(SS,"$&/")+"/"),mv(i,t,r,"",function(c){return c})):i!=null&&(n5(i)&&(i=xD(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(SS,"$&/")+"/")+e)),t.push(i)),1;if(a=0,n=n===""?".":n+":",kS(e))for(var o=0;o<e.length;o++){s=e[o];var l=n+G1(s,o);a+=mv(s,t,r,l,i)}else if(l=wD(e),typeof l=="function")for(e=l.call(e),o=0;!(s=e.next()).done;)s=s.value,l=n+G1(s,o++),a+=mv(s,t,r,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function _g(e,t,r){if(e==null)return e;var n=[],i=0;return mv(e,n,"","",function(s){return t.call(r,s,i++)}),n}function kD(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ji={current:null},gv={transition:null},SD={ReactCurrentDispatcher:ji,ReactCurrentBatchConfig:gv,ReactCurrentOwner:r5};function QC(){throw Error("act(...) is not supported in production builds of React.")}Gt.Children={map:_g,forEach:function(e,t,r){_g(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return _g(e,function(){t++}),t},toArray:function(e){return _g(e,function(t){return t})||[]},only:function(e){if(!n5(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Gt.Component=If;Gt.Fragment=dD;Gt.Profiler=hD;Gt.PureComponent=e5;Gt.StrictMode=fD;Gt.Suspense=vD;
vendor: 4,668 bytes, lines 9-25
9Gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SD;Gt.act=QC;Gt.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=KC({},e.props),i=e.key,s=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,a=r5.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(l in t)ZC.call(t,l)&&!XC.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&o!==void 0?o[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){o=Array(l);for(var c=0;c<l;c++)o[c]=arguments[c+2];n.children=o}return{$$typeof:fm,type:e.type,key:i,ref:s,props:n,_owner:a}};Gt.createContext=function(e){return e={$$typeof:mD,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:pD,_context:e},e.Consumer=e};Gt.createElement=JC;Gt.createFactory=function(e){var t=JC.bind(null,e);return t.type=e,t};Gt.createRef=function(){return{current:null}};Gt.forwardRef=function(e){return{$$typeof:gD,render:e}};Gt.isValidElement=n5;Gt.lazy=function(e){return{$$typeof:bD,_payload:{_status:-1,_result:e},_init:kD}};Gt.memo=function(e,t){return{$$typeof:yD,type:e,compare:t===void 0?null:t}};Gt.startTransition=function(e){var t=gv.transition;gv.transition={};try{e()}finally{gv.transition=t}};Gt.unstable_act=QC;Gt.useCallback=function(e,t){return ji.current.useCallback(e,t)};Gt.useContext=function(e){return ji.current.useContext(e)};Gt.useDebugValue=function(){};Gt.useDeferredValue=function(e){return ji.current.useDeferredValue(e)};Gt.useEffect=function(e,t){return ji.current.useEffect(e,t)};Gt.useId=function(){return ji.current.useId()};Gt.useImperativeHandle=function(e,t,r){return ji.current.useImperativeHandle(e,t,r)};Gt.useInsertionEffect=function(e,t){return ji.current.useInsertionEffect(e,t)};Gt.useLayoutEffect=function(e,t){return ji.current.useLayoutEffect(e,t)};Gt.useMemo=function(e,t){return ji.current.useMemo(e,t)};Gt.useReducer=function(e,t,r){return ji.current.useReducer(e,t,r)};Gt.useRef=function(e){return ji.current.useRef(e)};Gt.useState=function(e){return ji.current.useState(e)};Gt.useSyncExternalStore=function(e,t,r){return ji.current.useSyncExternalStore(e,t,r)};Gt.useTransition=function(){return ji.current.useTransition()};Gt.version="18.3.1";VC.exports=Gt;var _=VC.exports;const qe=Ou(_),i5=zC({__proto__:null,default:qe},[_]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var ND=_,ED=Symbol.for("react.element"),CD=Symbol.for("react.fragment"),jD=Object.prototype.hasOwnProperty,AD=ND.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,TD={key:!0,ref:!0,__self:!0,__source:!0};function ej(e,t,r){var n,i={},s=null,a=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)jD.call(t,n)&&!TD.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:ED,type:e,key:s,ref:a,props:i,_owner:AD.current}}ly.Fragment=CD;ly.jsx=ej;ly.jsxs=ej;HC.exports=ly;var u=HC.exports,tj={exports:{}},ps={},rj={exports:{}},nj={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(F,D){var $=F.length;F.push(D);e:for(;0<$;){var M=$-1>>>1,j=F[M];if(0<i(j,D))F[M]=D,F[$]=j,$=M;else break e}}function r(F){return F.length===0?null:F[0]}function n(F){if(F.length===0)return null;var D=F[0],$=F.pop();if($!==D){F[0]=$;e:for(var M=0,j=F.length,U=j>>>1;M<U;){var H=2*(M+1)-1,re=F[H],te=H+1,Q=F[te];if(0>i(re,$))te<j&&0>i(Q,re)?(F[M]=Q,F[te]=$,M=te):(F[M]=re,F[H]=$,M=H);else if(te<j&&0>i(Q,$))F[M]=Q,F[te]=$,M=te;else break e}}return D}function i(F,D){var $=F.sortIndex-D.sortIndex;return $!==0?$:F.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,o=a.now();e.unstable_now=function(){return a.now()-o}}var l=[],c=[],d=1,h=null,p=3,f=!1,y=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);
vendor: 9,549 bytes, lines 25-34
25function S(F){for(var D=r(c);D!==null;){if(D.callback===null)n(c);else if(D.startTime<=F)n(c),D.sortIndex=D.expirationTime,t(l,D);else break;D=r(c)}}function E(F){if(v=!1,S(F),!y)if(r(l)!==null)y=!0,oe(T);else{var D=r(c);D!==null&&se(E,D.startTime-F)}}function T(F,D){y=!1,v&&(v=!1,w(B),B=-1),f=!0;var $=p;try{for(S(D),h=r(l);h!==null&&(!(h.expirationTime>D)||F&&!O());){var M=h.callback;if(typeof M=="function"){h.callback=null,p=h.priorityLevel;var j=M(h.expirationTime<=D);D=e.unstable_now(),typeof j=="function"?h.callback=j:h===r(l)&&n(l),S(D)}else n(l);h=r(l)}if(h!==null)var U=!0;else{var H=r(c);H!==null&&se(E,H.startTime-D),U=!1}return U}finally{h=null,p=$,f=!1}}var W=!1,z=null,B=-1,P=5,X=-1;function O(){return!(e.unstable_now()-X<P)}function A(){if(z!==null){var F=e.unstable_now();X=F;var D=!0;try{D=z(!0,F)}finally{D?K():(W=!1,z=null)}}else W=!1}var K;if(typeof x=="function")K=function(){x(A)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,le=R.port2;R.port1.onmessage=A,K=function(){le.postMessage(null)}}else K=function(){b(A,0)};function oe(F){z=F,W||(W=!0,K())}function se(F,D){B=b(function(){F(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){y||f||(y=!0,oe(T))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(F){switch(p){case 1:case 2:case 3:var D=3;break;default:D=p}var $=p;p=D;try{return F()}finally{p=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,D){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var $=p;p=F;try{return D()}finally{p=$}},e.unstable_scheduleCallback=function(F,D,$){var M=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?M+$:M):$=M,F){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=$+j,F={id:d++,callback:D,priorityLevel:F,startTime:$,expirationTime:j,sortIndex:-1},$>M?(F.sortIndex=$,t(c,F),r(l)===null&&F===r(c)&&(v?(w(B),B=-1):v=!0,se(E,$-M))):(F.sortIndex=j,t(l,F),y||f||(y=!0,oe(T))),F},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(F){var D=p;return function(){var $=p;p=D;try{return F.apply(this,arguments)}finally{p=$}}}})(nj);rj.exports=nj;var PD=rj.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var OD=_,ds=PD;function Ve(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 ij=new Set,bp={};function Ru(e,t){pf(e,t),pf(e+"Capture",t)}function pf(e,t){for(bp[e]=t,e=0;e<t.length;e++)ij.add(t[e])}var Do=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lw=Object.prototype.hasOwnProperty,RD=/^[: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]*$/,NS={},ES={};function LD(e){return Lw.call(ES,e)?!0:Lw.call(NS,e)?!1:RD.test(e)?ES[e]=!0:(NS[e]=!0,!1)}function ID(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function FD(e,t,r,n){if(t===null||typeof t>"u"||ID(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ai(e,t,r,n,i,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var ei={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ei[e]=new Ai(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ei[t]=new Ai(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ei[e]=new Ai(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ei[e]=new Ai(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){ei[e]=new Ai(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ei[e]=new Ai(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ei[e]=new Ai(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ei[e]=new Ai(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ei[e]=new Ai(e,5,!1,e.toLowerCase(),null,!1,!1)});var s5=/[\-:]([a-z])/g;function a5(e){return e[1].toUpperCase()}"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(s5,a5);ei[t]=new Ai(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(s5,a5);ei[t]=new Ai(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(s5,a5);ei[t]=new Ai(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ei[e]=new Ai(e,1,!1,e.toLowerCase(),null,!1,!1)});ei.xlinkHref=new Ai("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ei[e]=new Ai(e,1,!1,e.toLowerCase(),null,!0,!0)});function o5(e,t,r,n){var i=ei.hasOwnProperty(t)?ei[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(FD(t,r,i,n)&&(r=null),n||i===null?LD(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Vo=OD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,kg=Symbol.for("react.element"),Ad=Symbol.for("react.portal"),Td=Symbol.for("react.fragment"),l5=Symbol.for("react.strict_mode"),Iw=Symbol.for("react.profiler"),sj=Symbol.for("react.provider"),aj=Symbol.for("react.context"),c5=Symbol.for("react.forward_ref"),Fw=Symbol.for("react.suspense"),Dw=Symbol.for("react.suspense_list"),u5=Symbol.for("react.memo"),bl=Symbol.for("react.lazy"),oj=Symbol.for("react.offscreen"),CS=Symbol.iterator;function Nh(e){return e===null||typeof e!="object"?null:(e=CS&&e[CS]||e["@@iterator"],typeof e=="function"?e:null)}var Kr=Object.assign,Y1;function Hh(e){if(Y1===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Y1=t&&t[1]||""}return`
34`+Y1+e}var Z1=!1;function X1(e,t){if(!e||Z1)return"";Z1=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}
vendor: 15,951 bytes, lines 34-37
34catch(c){if(c&&n&&typeof c.stack=="string"){for(var i=c.stack.split(`
35`),s=n.stack.split(`
36`),a=i.length-1,o=s.length-1;1<=a&&0<=o&&i[a]!==s[o];)o--;for(;1<=a&&0<=o;a--,o--)if(i[a]!==s[o]){if(a!==1||o!==1)do if(a--,o--,0>o||i[a]!==s[o]){var l=`
37`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=o);break}}}finally{Z1=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Hh(e):""}function DD(e){switch(e.tag){case 5:return Hh(e.type);case 16:return Hh("Lazy");case 13:return Hh("Suspense");case 19:return Hh("SuspenseList");case 0:case 2:case 15:return e=X1(e.type,!1),e;case 11:return e=X1(e.type.render,!1),e;case 1:return e=X1(e.type,!0),e;default:return""}}function Mw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Td:return"Fragment";case Ad:return"Portal";case Iw:return"Profiler";case l5:return"StrictMode";case Fw:return"Suspense";case Dw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case aj:return(e.displayName||"Context")+".Consumer";case sj:return(e._context.displayName||"Context")+".Provider";case c5:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case u5:return t=e.displayName||null,t!==null?t:Mw(e.type)||"Memo";case bl:t=e._payload,e=e._init;try{return Mw(e(t))}catch{}}return null}function MD(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Mw(t);case 8:return t===l5?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ql(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lj(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $D(e){var t=lj(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sg(e){e._valueTracker||(e._valueTracker=$D(e))}function cj(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=lj(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Wv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function $w(e,t){var r=t.checked;return Kr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function jS(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ql(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function uj(e,t){t=t.checked,t!=null&&o5(e,"checked",t,!1)}function Bw(e,t){uj(e,t);var r=Ql(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?qw(e,t.type,r):t.hasOwnProperty("defaultValue")&&qw(e,t.type,Ql(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function AS(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function qw(e,t,r){(t!=="number"||Wv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Vh=Array.isArray;function Ud(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Ql(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Uw(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ve(91));return Kr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function TS(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Ve(92));if(Vh(r)){if(1<r.length)throw Error(Ve(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ql(r)}}function dj(e,t){var r=Ql(t.value),n=Ql(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function PS(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function fj(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 zw(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?fj(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ng,hj=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ng=Ng||document.createElement("div"),Ng.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ng.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var tp={animationIterationCount:!0,aspectRatio:!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},BD=["Webkit","ms","Moz","O"];Object.keys(tp).forEach(function(e){BD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),tp[t]=tp[e]})});function pj(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||tp.hasOwnProperty(e)&&tp[e]?(""+t).trim():t+"px"}function mj(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=pj(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var qD=Kr({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 Hw(e,t){if(t){if(qD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ve(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ve(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ve(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ve(62))}}function Vw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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}}var Ww=null;function d5(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kw=null,zd=null,Hd=null;function OS(e){if(e=mm(e)){if(typeof Kw!="function")throw Error(Ve(280));var t=e.stateNode;t&&(t=hy(t),Kw(e.stateNode,e.type,t))}}function gj(e){zd?Hd?Hd.push(e):Hd=[e]:zd=e}function vj(){if(zd){var e=zd,t=Hd;if(Hd=zd=null,OS(e),t)for(e=0;e<t.length;e++)OS(t[e])}}function yj(e,t){return e(t)}function bj(){}var J1=!1;function wj(e,t,r){if(J1)return e(t,r);J1=!0;try{return yj(e,t,r)}finally{J1=!1,(zd!==null||Hd!==null)&&(bj(),vj())}}function xp(e,t){var r=e.stateNode;if(r===null)return null;var n=hy(r);if(n===null)return null;r=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(Ve(231,t,typeof r));return r}var Gw=!1;if(Do)try{var Eh={};Object.defineProperty(Eh,"passive",{get:function(){Gw=!0}}),window.addEventListener("test",Eh,Eh),window.removeEventListener("test",Eh,Eh)}catch{Gw=!1}function UD(e,t,r,n,i,s,a,o,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var rp=!1,Kv=null,Gv=!1,Yw=null,zD={onError:function(e){rp=!0,Kv=e}};function HD(e,t,r,n,i,s,a,o,l){rp=!1,Kv=null,UD.apply(zD,arguments)}function VD(e,t,r,n,i,s,a,o,l){if(HD.apply(this,arguments),rp){if(rp){var c=Kv;rp=!1,Kv=null}else throw Error(Ve(198));Gv||(Gv=!0,Yw=c)}}function Lu(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function xj(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function RS(e){if(Lu(e)!==e)throw Error(Ve(188))}function WD(e){var t=e.alternate;if(!t){if(t=Lu(e),t===null)throw Error(Ve(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return RS(i),e;if(s===n)return RS(i),t;s=s.sibling}throw Error(Ve(188))}if(r.return!==n.return)r=i,n=s;else{for(var a=!1,o=i.child;o;){if(o===r){a=!0,r=i,n=s;break}if(o===n){a=!0,n=i,r=s;break}o=o.sibling}if(!a){for(o=s.child;o;){if(o===r){a=!0,r=s,n=i;break}if(o===n){a=!0,n=s,r=i;break}o=o.sibling}if(!a)throw Error(Ve(189))}}if(r.alternate!==n)throw Error(Ve(190))}if(r.tag!==3)throw Error(Ve(188));return r.stateNode.current===r?e:t}function _j(e){return e=WD(e),e!==null?kj(e):null}function kj(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=kj(e);if(t!==null)return t;e=e.sibling}return null}var Sj=ds.unstable_scheduleCallback,LS=ds.unstable_cancelCallback,KD=ds.unstable_shouldYield,GD=ds.unstable_requestPaint,fn=ds.unstable_now,YD=ds.unstable_getCurrentPriorityLevel,f5=ds.unstable_ImmediatePriority,Nj=ds.unstable_UserBlockingPriority,Yv=ds.unstable_NormalPriority,ZD=ds.unstable_LowPriority,Ej=ds.unstable_IdlePriority,cy=null,Wa=null;function XD(e){if(Wa&&typeof Wa.onCommitFiberRoot=="function")try{Wa.onCommitFiberRoot(cy,e,void 0,(e.current.flags&128)===128)}catch{}}var ca=Math.clz32?Math.clz32:eM,JD=Math.log,QD=Math.LN2;function eM(e){return e>>>=0,e===0?32:31-(JD(e)/QD|0)|0}var Eg=64,Cg=4194304;function Wh(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Zv(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,a=r&268435455;if(a!==0){var o=a&~i;o!==0?n=Wh(o):(s&=a,s!==0&&(n=Wh(s)))}else a=r&~i,a!==0?n=Wh(a):s!==0&&(n=Wh(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-ca(t),i=1<<r,n|=e[r],t&=~i;return n}function tM(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rM(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var a=31-ca(s),o=1<<a,l=i[a];l===-1?(!(o&r)||o&n)&&(i[a]=tM(o,t)):l<=t&&(e.expiredLanes|=o),s&=~o}}function Zw(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Cj(){var e=Eg;return Eg<<=1,!(Eg&4194240)&&(Eg=64),e}function Q1(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function hm(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ca(t),e[t]=r}function nM(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-ca(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}function h5(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ca(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var yr=0;function jj(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Aj,p5,Tj,Pj,Oj,Xw=!1,jg=[],$l=null,Bl=null,ql=null,_p=new Map,kp=new Map,_l=[],iM="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 IS(e,t){switch(e){case"focusin":case"focusout":$l=null;break;case"dragenter":case"dragleave":Bl=null;break;case"mouseover":case"mouseout":ql=null;break;case"pointerover":case"pointerout":_p.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kp.delete(t.pointerId)}}function Ch(e,t,r,n,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},t!==null&&(t=mm(t),t!==null&&p5(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function sM(e,t,r,n,i){switch(t){case"focusin":return $l=Ch($l,e,t,r,n,i),!0;case"dragenter":return Bl=Ch(Bl,e,t,r,n,i),!0;case"mouseover":return ql=Ch(ql,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return _p.set(s,Ch(_p.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,kp.set(s,Ch(kp.get(s)||null,e,t,r,n,i)
vendor: 12,643 bytes, line 37
37),!0}return!1}function Rj(e){var t=Zc(e.target);if(t!==null){var r=Lu(t);if(r!==null){if(t=r.tag,t===13){if(t=xj(r),t!==null){e.blockedOn=t,Oj(e.priority,function(){Tj(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vv(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Jw(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Ww=n,r.target.dispatchEvent(n),Ww=null}else return t=mm(r),t!==null&&p5(t),e.blockedOn=r,!1;t.shift()}return!0}function FS(e,t,r){vv(e)&&r.delete(t)}function aM(){Xw=!1,$l!==null&&vv($l)&&($l=null),Bl!==null&&vv(Bl)&&(Bl=null),ql!==null&&vv(ql)&&(ql=null),_p.forEach(FS),kp.forEach(FS)}function jh(e,t){e.blockedOn===t&&(e.blockedOn=null,Xw||(Xw=!0,ds.unstable_scheduleCallback(ds.unstable_NormalPriority,aM)))}function Sp(e){function t(i){return jh(i,e)}if(0<jg.length){jh(jg[0],e);for(var r=1;r<jg.length;r++){var n=jg[r];n.blockedOn===e&&(n.blockedOn=null)}}for($l!==null&&jh($l,e),Bl!==null&&jh(Bl,e),ql!==null&&jh(ql,e),_p.forEach(t),kp.forEach(t),r=0;r<_l.length;r++)n=_l[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<_l.length&&(r=_l[0],r.blockedOn===null);)Rj(r),r.blockedOn===null&&_l.shift()}var Vd=Vo.ReactCurrentBatchConfig,Xv=!0;function oM(e,t,r,n){var i=yr,s=Vd.transition;Vd.transition=null;try{yr=1,m5(e,t,r,n)}finally{yr=i,Vd.transition=s}}function lM(e,t,r,n){var i=yr,s=Vd.transition;Vd.transition=null;try{yr=4,m5(e,t,r,n)}finally{yr=i,Vd.transition=s}}function m5(e,t,r,n){if(Xv){var i=Jw(e,t,r,n);if(i===null)cb(e,t,n,Jv,r),IS(e,n);else if(sM(i,e,t,r,n))n.stopPropagation();else if(IS(e,n),t&4&&-1<iM.indexOf(e)){for(;i!==null;){var s=mm(i);if(s!==null&&Aj(s),s=Jw(e,t,r,n),s===null&&cb(e,t,n,Jv,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else cb(e,t,n,null,r)}}var Jv=null;function Jw(e,t,r,n){if(Jv=null,e=d5(n),e=Zc(e),e!==null)if(t=Lu(e),t===null)e=null;else if(r=t.tag,r===13){if(e=xj(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Jv=e,null}function Lj(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(YD()){case f5:return 1;case Nj:return 4;case Yv:case ZD:return 16;case Ej:return 536870912;default:return 16}default:return 16}}var Rl=null,g5=null,yv=null;function Ij(){if(yv)return yv;var e,t=g5,r=t.length,n,i="value"in Rl?Rl.value:Rl.textContent,s=i.length;for(e=0;e<r&&t[e]===i[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===i[s-n];n++);return yv=i.slice(e,1<n?1-n:void 0)}function bv(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ag(){return!0}function DS(){return!1}function ms(e){function t(r,n,i,s,a){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=a,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(r=e[o],this[o]=r?r(s):s[o]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ag:DS,this.isPropagationStopped=DS,this}return Kr(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ag)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ag)},persist:function(){},isPersistent:Ag}),t}var Ff={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},v5=ms(Ff),pm=Kr({},Ff,{view:0,detail:0}),cM=ms(pm),eb,tb,Ah,uy=Kr({},pm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:y5,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ah&&(Ah&&e.type==="mousemove"?(eb=e.screenX-Ah.screenX,tb=e.screenY-Ah.screenY):tb=eb=0,Ah=e),eb)},movementY:function(e){return"movementY"in e?e.movementY:tb}}),MS=ms(uy),uM=Kr({},uy,{dataTransfer:0}),dM=ms(uM),fM=Kr({},pm,{relatedTarget:0}),rb=ms(fM),hM=Kr({},Ff,{animationName:0,elapsedTime:0,pseudoElement:0}),pM=ms(hM),mM=Kr({},Ff,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gM=ms(mM),vM=Kr({},Ff,{data:0}),$S=ms(vM),yM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bM={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"},wM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xM(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wM[e])?!!t[e]:!1}function y5(){return xM}var _M=Kr({},pm,{key:function(e){if(e.key){var t=yM[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bv(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bM[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:y5,charCode:function(e){return e.type==="keypress"?bv(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bv(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kM=ms(_M),SM=Kr({},uy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),BS=ms(SM),NM=Kr({},pm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:y5}),EM=ms(NM),CM=Kr({},Ff,{propertyName:0,elapsedTime:0,pseudoElement:0}),jM=ms(CM),AM=Kr({},uy,{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}),TM=ms(AM),PM=[9,13,27,32],b5=Do&&"CompositionEvent"in window,np=null;Do&&"documentMode"in document&&(np=document.documentMode);var OM=Do&&"TextEvent"in window&&!np,Fj=Do&&(!b5||np&&8<np&&11>=np),qS=" ",US=!1;function Dj(e,t){switch(e){case"keyup":return PM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pd=!1;function RM(e,t){switch(e){case"compositionend":return Mj(t);case"keypress":return t.which!==32?null:(US=!0,qS);case"textInput":return e=t.data,e===qS&&US?null:e;default:return null}}function LM(e,t){if(Pd)return e==="compositionend"||!b5&&Dj(e,t)?(e=Ij(),yv=g5=Rl=null,Pd=!1,e):null;switch(e){case"paste":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 Fj&&t.locale!=="ko"?null:t.data;default:return null}}var IM={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 zS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!IM[e.type]:t==="textarea"}function $j(e,t,r,n){gj(n),t=Qv(t,"onChange"),0<t.length&&(r=new v5("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var ip=null,Np=null;function FM(e){Zj(e,0)}function dy(e){var t=Ld(e);if(cj(t))return e}function DM(e,t){if(e==="change")return t}var Bj=!1;if(Do){var nb;if(Do){var ib="oninput"in document;if(!ib){var HS=document.createElement("div");HS.setAttribute("oninput","return;"),ib=typeof HS.oninput=="function"}nb=ib}else nb=!1;Bj=nb&&(!document.documentMode||9<document.documentMode)}function VS(){ip&&(ip.detachEvent("onpropertychange",qj),Np=ip=null)}function qj(e){if(e.propertyName==="value"&&dy(Np)){var t=[];$j(t,Np,e,d5(e)),wj(FM,t)}}function MM(e,t,r){e==="focusin"?(VS(),ip=t,Np=r,ip.attachEvent("onpropertychange",qj)):e==="focusout"&&VS()}function $M(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return dy(Np)}function BM(e,t){if(e==="click")return dy(t)}function qM(e,t){if(e==="input"||e==="change")return dy(t)}function UM(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var da=typeof Object.is=="function"?Object.is:UM;function Ep(e,t){if(da(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!Lw.call(t,i)||!da(e[i],t[i]))return!1}return!0}function WS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function KS(e,t){var r=WS(e);e=0;for(var n;r;){if(r.nodeType===3){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=WS(r)}}function Uj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zj(){for(var e=window,t=Wv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Wv(e.document)}return t}function w5(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function zM(e){var t=zj(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Uj(r.ownerDocument.documentElement,r)){if(n!==null&&w5(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=KS(r,s);var a=KS(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var HM=Do&&"documentMode"in document&&11>=document.documentMode,Od=null,Qw=null,sp=null,e2=!1;function GS(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;e2||Od==null||Od!==Wv(n)||(n=Od,"selectionStart"in n&&w5(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,383 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),sp&&Ep(sp,n)||(sp=n,n=Qv(Qw,"onSelect"),0<n.length&&(t=new v5("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Od)))}function Tg(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Rd={animationend:Tg("Animation","AnimationEnd"),animationiteration:Tg("Animation","AnimationIteration"),animationstart:Tg("Animation","AnimationStart"),transitionend:Tg("Transition","TransitionEnd")},sb={},Hj={};Do&&(Hj=document.createElement("div").style,"AnimationEvent"in window||(delete Rd.animationend.animation,delete Rd.animationiteration.animation,delete Rd.animationstart.animation),"TransitionEvent"in window||delete Rd.transitionend.transition);function fy(e){if(sb[e])return sb[e];if(!Rd[e])return e;var t=Rd[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Hj)return sb[e]=t[r];return e}var Vj=fy("animationend"),Wj=fy("animationiteration"),Kj=fy("animationstart"),Gj=fy("transitionend"),Yj=new Map,YS="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function oc(e,t){Yj.set(e,t),Ru(t,[e])}for(var ab=0;ab<YS.length;ab++){var ob=YS[ab],VM=ob.toLowerCase(),WM=ob[0].toUpperCase()+ob.slice(1);oc(VM,"on"+WM)}oc(Vj,"onAnimationEnd");oc(Wj,"onAnimationIteration");oc(Kj,"onAnimationStart");oc("dblclick","onDoubleClick");oc("focusin","onFocus");oc("focusout","onBlur");oc(Gj,"onTransitionEnd");pf("onMouseEnter",["mouseout","mouseover"]);pf("onMouseLeave",["mouseout","mouseover"]);pf("onPointerEnter",["pointerout","pointerover"]);pf("onPointerLeave",["pointerout","pointerover"]);Ru("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ru("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ru("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ru("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ru("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ru("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),KM=new Set("cancel close invalid load scroll toggle".split(" ").concat(Kh));function ZS(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,VD(n,t,void 0,e),e.currentTarget=null}function Zj(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var a=n.length-1;0<=a;a--){var o=n[a],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==s&&i.isPropagationStopped())break e;ZS(i,o,c),s=l}else for(a=0;a<n.length;a++){if(o=n[a],l=o.instance,c=o.currentTarget,o=o.listener,l!==s&&i.isPropagationStopped())break e;ZS(i,o,c),s=l}}}if(Gv)throw e=Yw,Gv=!1,Yw=null,e}function Lr(e,t){var r=t[s2];r===void 0&&(r=t[s2]=new Set);var n=e+"__bubble";r.has(n)||(Xj(t,e,2,!1),r.add(n))}function lb(e,t,r){var n=0;t&&(n|=4),Xj(r,e,n,t)}var Pg="_reactListening"+Math.random().toString(36).slice(2);function Cp(e){if(!e[Pg]){e[Pg]=!0,ij.forEach(function(r){r!=="selectionchange"&&(KM.has(r)||lb(r,!1,e),lb(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pg]||(t[Pg]=!0,lb("selectionchange",!1,t))}}function Xj(e,t,r,n){switch(Lj(t)){case 1:var i=oM;break;case 4:i=lM;break;default:i=m5}r=i.bind(null,t,r,e),i=void 0,!Gw||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function cb(e,t,r,n,i){var s=n;
vendor: 4,335 bytes, line 37
37if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var o=n.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.parentNode===i)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;o!==null;){if(a=Zc(o),a===null)return;if(l=a.tag,l===5||l===6){n=s=a;continue e}o=o.parentNode}}n=n.return}wj(function(){var c=s,d=d5(r),h=[];e:{var p=Yj.get(e);if(p!==void 0){var f=v5,y=e;switch(e){case"keypress":if(bv(r)===0)break e;case"keydown":case"keyup":f=kM;break;case"focusin":y="focus",f=rb;break;case"focusout":y="blur",f=rb;break;case"beforeblur":case"afterblur":f=rb;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=MS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=dM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=EM;break;case Vj:case Wj:case Kj:f=pM;break;case Gj:f=jM;break;case"scroll":f=cM;break;case"wheel":f=TM;break;case"copy":case"cut":case"paste":f=gM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=BS}var v=(t&4)!==0,b=!v&&e==="scroll",w=v?p!==null?p+"Capture":null:p;v=[];for(var x=c,S;x!==null;){S=x;var E=S.stateNode;if(S.tag===5&&E!==null&&(S=E,w!==null&&(E=xp(x,w),E!=null&&v.push(jp(x,E,S)))),b)break;x=x.return}0<v.length&&(p=new f(p,y,null,r,d),h.push({event:p,listeners:v}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&r!==Ww&&(y=r.relatedTarget||r.fromElement)&&(Zc(y)||y[Mo]))break e;if((f||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,f?(y=r.relatedTarget||r.toElement,f=c,y=y?Zc(y):null,y!==null&&(b=Lu(y),y!==b||y.tag!==5&&y.tag!==6)&&(y=null)):(f=null,y=c),f!==y)){if(v=MS,E="onMouseLeave",w="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(v=BS,E="onPointerLeave",w="onPointerEnter",x="pointer"),b=f==null?p:Ld(f),S=y==null?p:Ld(y),p=new v(E,x+"leave",f,r,d),p.target=b,p.relatedTarget=S,E=null,Zc(d)===c&&(v=new v(w,x+"enter",y,r,d),v.target=S,v.relatedTarget=b,E=v),b=E,f&&y)t:{for(v=f,w=y,x=0,S=v;S;S=nd(S))x++;for(S=0,E=w;E;E=nd(E))S++;for(;0<x-S;)v=nd(v),x--;for(;0<S-x;)w=nd(w),S--;for(;x--;){if(v===w||w!==null&&v===w.alternate)break t;v=nd(v),w=nd(w)}v=null}else v=null;f!==null&&XS(h,p,f,v,!1),y!==null&&b!==null&&XS(h,b,y,v,!0)}}e:{if(p=c?Ld(c):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var T=DM;else if(zS(p))if(Bj)T=qM;else{T=$M;var W=MM}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(T=BM);if(T&&(T=T(e,c))){$j(h,T,r,d);break e}W&&W(e,p,c),e==="focusout"&&(W=p._wrapperState)&&W.controlled&&p.type==="number"&&qw(p,"number",p.value)}switch(W=c?Ld(c):window,e){case"focusin":(zS(W)||W.contentEditable==="true")&&(Od=W,Qw=c,sp=null);break;case"focusout":sp=Qw=Od=null;break;case"mousedown":e2=!0;break;case"contextmenu":case"mouseup":case"dragend":e2=!1,GS(h,r,d);break;case"selectionchange":if(HM)break;case"keydown":case"keyup":GS(h,r,d)}var z;if(b5)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 Pd?Dj(e,r)&&(B="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(B="onCompositionStart");B&&(Fj&&r.locale!=="ko"&&(Pd||B!=="onCompositionStart"?B==="onCompositionEnd"&&Pd&&(z=Ij()):(Rl=d,g5="value"in Rl?Rl.value:Rl.textContent,Pd=!0)),W=Qv(c,B),0<W.length&&(B=new $S(B,e,null,r,d),h.push({event:B,listeners:W}),z?B.data=z:(z=Mj(r),z!==null&&(B.data=z)))),(z=OM?RM(e,r):LM(e,r))&&(c=Qv(c,"onBeforeInput"),0<c.length&&(d=new $S("onBeforeInput","beforeinput",null,r,d),h.push({event:d,listeners:c}),d.data=z))}Zj(h,t)})}function jp(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Qv(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=xp(e,r),s!=null&&n.unshift(jp(e,s,i)),s=xp(e,t),s!=null&&n.push(jp(e,s,i))),e=e.return}return n}
vendor: 4,687 bytes, lines 37-38
37function nd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function XS(e,t,r,n,i){for(var s=t._reactName,a=[];r!==null&&r!==n;){var o=r,l=o.alternate,c=o.stateNode;if(l!==null&&l===n)break;o.tag===5&&c!==null&&(o=c,i?(l=xp(r,s),l!=null&&a.unshift(jp(r,l,o))):i||(l=xp(r,s),l!=null&&a.push(jp(r,l,o)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var GM=/\r\n?/g,YM=/\u0000|\uFFFD/g;function JS(e){return(typeof e=="string"?e:""+e).replace(GM,`
38`).replace(YM,"")}function Og(e,t,r){if(t=JS(t),JS(e)!==t&&r)throw Error(Ve(425))}function e0(){}var t2=null,r2=null;function n2(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var i2=typeof setTimeout=="function"?setTimeout:void 0,ZM=typeof clearTimeout=="function"?clearTimeout:void 0,QS=typeof Promise=="function"?Promise:void 0,XM=typeof queueMicrotask=="function"?queueMicrotask:typeof QS<"u"?function(e){return QS.resolve(null).then(e).catch(JM)}:i2;function JM(e){setTimeout(function(){throw e})}function ub(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Sp(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Sp(t)}function Ul(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function eN(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Df=Math.random().toString(36).slice(2),Da="__reactFiber$"+Df,Ap="__reactProps$"+Df,Mo="__reactContainer$"+Df,s2="__reactEvents$"+Df,QM="__reactListeners$"+Df,e7="__reactHandles$"+Df;function Zc(e){var t=e[Da];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Mo]||r[Da]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=eN(e);e!==null;){if(r=e[Da])return r;e=eN(e)}return t}e=r,r=e.parentNode}return null}function mm(e){return e=e[Da]||e[Mo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ld(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ve(33))}function hy(e){return e[Ap]||null}var a2=[],Id=-1;function lc(e){return{current:e}}function Fr(e){0>Id||(e.current=a2[Id],a2[Id]=null,Id--)}function jr(e,t){Id++,a2[Id]=e.current,e.current=t}var ec={},mi=lc(ec),zi=lc(!1),pu=ec;function mf(e,t){var r=e.type.contextTypes;if(!r)return ec;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Hi(e){return e=e.childContextTypes,e!=null}function t0(){Fr(zi),Fr(mi)}function tN(e,t,r){if(mi.current!==ec)throw Error(Ve(168));jr(mi,t),jr(zi,r)}function Jj(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(Ve(108,MD(e)||"Unknown",i));return Kr({},r,n)}function r0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ec,pu=mi.current,jr(mi,e),jr(zi,zi.current),!0}function rN(e,t,r){var n=e.stateNode;if(!n)throw Error(Ve(169));r?(e=Jj(e,t,pu),n.__reactInternalMemoizedMergedChildContext=e,Fr(zi),Fr(mi),jr(mi,e)):Fr(zi),jr(zi,r)}var Ao=null,py=!1,db=!1;function Qj(e){Ao===null?Ao=[e]:Ao.push(e)}function t7(e){py=!0,Qj(e)}function cc(){if(!db&&Ao!==null){db=!0;var e=0,t=yr;try{var r=Ao;for(yr=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Ao=null,py=!1}catch(i){throw Ao!==null&&(Ao=Ao.slice(e+1)),Sj(f5,cc),i}finally{yr=t,db=!1}}return null}var Fd=[],Dd=0,n0=null,i0=0,Ns=[],Es=0,mu=null,Ro=1,Lo="";function Mc(e,t){Fd[Dd++]=i0,Fd[Dd++]=n0,n0=e,i0=t}function eA(e,t,r){Ns[Es++]=Ro,Ns[Es++]=Lo,Ns[Es++]=mu,mu=e;var n=Ro;e=Lo;var i=32-ca(n)-1;n&=~(1<<i),r+=1;var s=32-ca(t)+i;if(30<s){var a=i-i%5;s=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Ro=1<<32-ca(t)+i|r<<i|n,Lo=s+e}else Ro=1<<s|r<<i|n,Lo=e}function x5(e){e.return!==null&&(Mc(e,1),eA(e,1,0))}function _5(e){for(;e===n0;)n0=Fd[--Dd],Fd[Dd]=null,i0=Fd[--Dd],Fd[Dd]=null;for(;e===mu;)mu=Ns[--Es],Ns[Es]=null,Lo=Ns[--Es],Ns[Es]=null,Ro=Ns[--Es],Ns[Es]=null}var cs=null,as=null,zr=!1,sa=null;function tA(e,t){var r=Ts(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function nN(e,t){switch(e.tag){case 5:var r=e.type;
vendor: 13,737 bytes, line 38
38return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,cs=e,as=Ul(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,cs=e,as=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=mu!==null?{id:Ro,overflow:Lo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Ts(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,cs=e,as=null,!0):!1;default:return!1}}function o2(e){return(e.mode&1)!==0&&(e.flags&128)===0}function l2(e){if(zr){var t=as;if(t){var r=t;if(!nN(e,t)){if(o2(e))throw Error(Ve(418));t=Ul(r.nextSibling);var n=cs;t&&nN(e,t)?tA(n,r):(e.flags=e.flags&-4097|2,zr=!1,cs=e)}}else{if(o2(e))throw Error(Ve(418));e.flags=e.flags&-4097|2,zr=!1,cs=e}}}function iN(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;cs=e}function Rg(e){if(e!==cs)return!1;if(!zr)return iN(e),zr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!n2(e.type,e.memoizedProps)),t&&(t=as)){if(o2(e))throw rA(),Error(Ve(418));for(;t;)tA(e,t),t=Ul(t.nextSibling)}if(iN(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ve(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){as=Ul(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}as=null}}else as=cs?Ul(e.stateNode.nextSibling):null;return!0}function rA(){for(var e=as;e;)e=Ul(e.nextSibling)}function gf(){as=cs=null,zr=!1}function k5(e){sa===null?sa=[e]:sa.push(e)}var r7=Vo.ReactCurrentBatchConfig;function Th(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(Ve(309));var n=r.stateNode}if(!n)throw Error(Ve(147,e));var i=n,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(a){var o=i.refs;a===null?delete o[s]:o[s]=a},t._stringRef=s,t)}if(typeof e!="string")throw Error(Ve(284));if(!r._owner)throw Error(Ve(290,e))}return e}function Lg(e,t){throw e=Object.prototype.toString.call(t),Error(Ve(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function sN(e){var t=e._init;return t(e._payload)}function nA(e){function t(w,x){if(e){var S=w.deletions;S===null?(w.deletions=[x],w.flags|=16):S.push(x)}}function r(w,x){if(!e)return null;for(;x!==null;)t(w,x),x=x.sibling;return null}function n(w,x){for(w=new Map;x!==null;)x.key!==null?w.set(x.key,x):w.set(x.index,x),x=x.sibling;return w}function i(w,x){return w=Wl(w,x),w.index=0,w.sibling=null,w}function s(w,x,S){return w.index=S,e?(S=w.alternate,S!==null?(S=S.index,S<x?(w.flags|=2,x):S):(w.flags|=2,x)):(w.flags|=1048576,x)}function a(w){return e&&w.alternate===null&&(w.flags|=2),w}function o(w,x,S,E){return x===null||x.tag!==6?(x=yb(S,w.mode,E),x.return=w,x):(x=i(x,S),x.return=w,x)}function l(w,x,S,E){var T=S.type;return T===Td?d(w,x,S.props.children,E,S.key):x!==null&&(x.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===bl&&sN(T)===x.type)?(E=i(x,S.props),E.ref=Th(w,x,S),E.return=w,E):(E=Ev(S.type,S.key,S.props,null,w.mode,E),E.ref=Th(w,x,S),E.return=w,E)}function c(w,x,S,E){return x===null||x.tag!==4||x.stateNode.containerInfo!==S.containerInfo||x.stateNode.implementation!==S.implementation?(x=bb(S,w.mode,E),x.return=w,x):(x=i(x,S.children||[]),x.return=w,x)}function d(w,x,S,E,T){return x===null||x.tag!==7?(x=du(S,w.mode,E,T),x.return=w,x):(x=i(x,S),x.return=w,x)}function h(w,x,S){if(typeof x=="string"&&x!==""||typeof x=="number")return x=yb(""+x,w.mode,S),x.return=w,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case kg:return S=Ev(x.type,x.key,x.props,null,w.mode,S),S.ref=Th(w,null,x),S.return=w,S;case Ad:return x=bb(x,w.mode,S),x.return=w,x;case bl:var E=x._init;return h(w,E(x._payload),S)}if(Vh(x)||Nh(x))return x=du(x,w.mode,S,null),x.return=w,x;Lg(w,x)}return null}function p(w,x,S,E){var T=x!==null?x.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return T!==null?null:o(w,x,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case kg:return S.key===T?l(w,x,S,E):null;case Ad:return S.key===T?c(w,x,S,E):null;case bl:return T=S._init,p(w,x,T(S._payload),E)}if(Vh(S)||Nh(S))return T!==null?null:d(w,x,S,E,null);Lg(w,S)}return null}function f(w,x,S,E,T){if(typeof E=="string"&&E!==""||typeof E=="number")return w=w.get(S)||null,o(x,w,""+E,T);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case kg:return w=w.get(E.key===null?S:E.key)||null,l(x,w,E,T);case Ad:return w=w.get(E.key===null?S:E.key)||null,c(x,w,E,T);case bl:var W=E._init;return f(w,x,S,W(E._payload),T)}if(Vh(E)||Nh(E))return w=w.get(S)||null,d(x,w,E,T,null);Lg(x,E)}return null}function y(w,x,S,E){for(var T=null,W=null,z=x,B=x=0,P=null;z!==null&&B<S.length;B++){z.index>B?(P=z,z=null):P=z.sibling;var X=p(w,z,S[B],E);if(X===null){z===null&&(z=P);break}e&&z&&X.alternate===null&&t(w,z),x=s(X,x,B),W===null?T=X:W.sibling=X,W=X,z=P}if(B===S.length)return r(w,z),zr&&Mc(w,B),T;if(z===null){for(;B<S.length;B++)z=h(w,S[B],E),z!==null&&(x=s(z,x,B),W===null?T=z:W.sibling=z,W=z);return zr&&Mc(w,B),T}for(z=n(w,z);B<S.length;B++)P=f(z,w,B,S[B],E),P!==null&&(e&&P.alternate!==null&&z.delete(P.key===null?B:P.key),x=s(P,x,B),W===null?T=P:W.sibling=P,W=P);return e&&z.forEach(function(O){return t(w,O)}),zr&&Mc(w,B),T}function v(w,x,S,E){var T=Nh(S);if(typeof T!="function")throw Error(Ve(150));if(S=T.call(S),S==null)throw Error(Ve(151));for(var W=T=null,z=x,B=x=0,P=null,X=S.next();z!==null&&!X.done;B++,X=S.next()){z.index>B?(P=z,z=null):P=z.sibling;var O=p(w,z,X.value,E);if(O===null){z===null&&(z=P);break}e&&z&&O.alternate===null&&t(w,z),x=s(O,x,B),W===null?T=O:W.sibling=O,W=O,z=P}if(X.done)return r(w,z),zr&&Mc(w,B),T;if(z===null){for(;!X.done;B++,X=S.next())X=h(w,X.value,E),X!==null&&(x=s(X,x,B),W===null?T=X:W.sibling=X,W=X);return zr&&Mc(w,B),T}for(z=n(w,z);!X.done;B++,X=S.next())X=f(z,w,B,X.value,E),X!==null&&(e&&X.alternate!==null&&z.delete(X.key===null?B:X.key),x=s(X,x,B),W===null?T=X:W.sibling=X,W=X);return e&&z.forEach(function(A){return t(w,A)}),zr&&Mc(w,B),T}function b(w,x,S,E){if(typeof S=="object"&&S!==null&&S.type===Td&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case kg:e:{for(var T=S.key,W=x;W!==null;){if(W.key===T){if(T=S.type,T===Td){if(W.tag===7){r(w,W.sibling),x=i(W,S.props.children),x.return=w,w=x;break e}}else if(W.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===bl&&sN(T)===W.type){r(w,W.sibling),x=i(W,S.props),x.ref=Th(w,W,S),x.return=w,w=x;break e}r(w,W);break}else t(w,W);W=W.sibling}S.type===Td?(x=du(S.props.children,w.mode,E,S.key),x.return=w,w=x):(E=Ev(S.type,S.key,S.props,null,w.mode,E),E.ref=Th(w,x,S),E.return=w,w=E)}return a(w);case Ad:e:{for(W=S.key;x!==null;){if(x.key===W)if(x.tag===4&&x.stateNode.containerInfo===S.containerInfo&&x.stateNode.implementation===S.implementation){r(w,x.sibling),x=i(x,S.children||[]),x.return=w,w=x;break e}else{r(w,x);break}else t(w,x);x=x.sibling}x=bb(S,w.mode,E),x.return=w,w=x}return a(w);case bl:return W=S._init,b(w,x,W(S._payload),E)}if(Vh(S))return y(w,x,S,E);if(Nh(S))return v(w,x,S,E);Lg(w,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,x!==null&&x.tag===6?(r(w,x.sibling),x=i(x,S),x.return=w,w=x):(r(w,x),x=yb(S,w.mode,E),x.return=w,w=x),a(w)):r(w,x)}return b}var vf=nA(!0),iA=nA(!1),s0=lc(null),a0=null,Md=null,S5=null;function N5(){S5=Md=a0=null}function E5(e){var t=s0.current;Fr(s0),e._currentValue=t}function c2(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Wd(e,t){a0=e,S5=Md=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qi=!0),e.firstContext=null)}function Rs(e){var t=e._currentValue;if(S5!==e)if(e={context:e,memoizedValue:t,next:null},Md===null){if(a0===null)throw Error(Ve(308));Md=e,a0.dependencies={lanes:0,firstContext:e}}else Md=Md.next=e;return t}var Xc=null;function C5(e){Xc===null?Xc=[e]:Xc.push(e)}function sA(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,C5(t)):(r.next=i.next,i.next=r),t.interleaved=r,$o(e,n)}function $o(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var wl=!1;function j5(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function aA(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 Io(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zl(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,sr&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,$o(e,r)}return i=n.interleaved,i===null?(t.next=t,C5(n)):(t.next=i.next,i.next=t),n.interleaved=t,$o(e,r)}function wv(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,h5(e,r)}}function aN(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=a:s=s.next=a,r=r.next}while(r!==null);s===null?i=s=t:s=s.next=t}else i=s=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function o0(e,t,r,n){var i=e.updateQueue;wl=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,c=l.next;l.next=null,a===null?s=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==a&&(o===null?d.firstBaseUpdate=c:o.next=c,d.lastBaseUpdate=l))}if(s!==null){var h=i.baseState;a=0,d=c=l=null,o=s;do{var p=o.lane,f=o.eventTime;if((n&p)===p){d!==null&&(d=d.next={eventTime:f,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var y=e,v=o;switch(p=t,f=r,v.tag){case 1:if(y=v.payload,typeof y=="function"){h=y.call(f,h,p);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,p=typeof y=="function"?y.call(f,h,p):y,p==null)break e;h=Kr({},h,p);break e;case 2:wl=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[o]:p.push(o))}else f={eventTime:f,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(c=d=f,l=h):d=d.next=f,a|=p;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;p=o,o=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);vu|=a,e.lanes=a,e.memoizedState=h}}function oN(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(Ve(191,i));i.call(n)}}}var gm={},Ka=lc(gm),Tp=lc(gm),Pp=lc(gm);function Jc(e){if(e===gm)throw Error(Ve(174));return e}function A5(e,t){switch(jr(Pp,t),jr(Tp,e),jr(Ka,gm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zw(t,e)}Fr(Ka),jr(Ka,t)}function yf(){Fr(Ka),Fr(Tp),Fr(Pp)}function oA(e){Jc(Pp.current);var t=Jc(Ka.current),r=zw(t,e.type);t!==r&&(jr(Tp,e),jr(Ka,r))}function T5(e){Tp.current===e&&(Fr(Ka),Fr(Tp))}var Vr=lc(0);function l0(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fb=[];function P5(){for(var e=0;e<fb.length;e++)fb[e]._workInProgressVersionPrimary=null;fb.length=0}var xv=Vo.ReactCurrentDispatcher,hb=Vo.ReactCurrentBatchConfig,gu=0,Wr=null,In=null,Bn=null,c0=!1,ap=!1,Op=0,n7=0;function ii(){throw Error(Ve(321))}function O5(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!da(e[r],t[r]))return!1;return!0}function R5(e,t,r,n,i,s){if(gu=s,Wr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xv.current=e===null||e.memoizedState===null?o7:l7,e=r(n,i),ap){s=0;do{if(ap=!1,Op=0,25<=s)throw Error(Ve(301));s+=1,Bn=In=null,t.updateQueue=null,xv.current=c7,e=r(n,i)}while(ap)}if(xv.current=u0,t=In!==null&&In.next!==null,gu=0,Bn=In=Wr=null,c0=!1,t)throw Error(Ve(300));return e}function L5(){var e=Op!==0;return Op=0,e}function Pa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bn===null?Wr.memoizedState=Bn=e:Bn=Bn.next=e,Bn}function Ls(){if(In===null){var e=Wr.alternate;e=e!==null?e.memoizedState:null}else e=In.next;var t=Bn===null?Wr.memoizedState:Bn.next;if(t!==null)Bn=t,In=e;else{if(e===null)throw Error(Ve(310));In=e,e={memoizedState:In.memoizedState,baseState:In.baseState,baseQueue:In.baseQueue,queue:In.queue,next:null},Bn===null?Wr.memoizedState=Bn=e:Bn=Bn.next=e}return Bn}function Rp(e,t){return typeof t=="function"?t(e):t}function pb(e){var t=Ls(),r=t.queue;if(r===null)throw Error(Ve(311));r.lastRenderedReducer=e;
vendor: 5,690 bytes, line 38
38var n=In,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var a=i.next;i.next=s.next,s.next=a}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var o=a=null,l=null,c=s;do{var d=c.lane;if((gu&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(o=l=h,a=n):l=l.next=h,Wr.lanes|=d,vu|=d}c=c.next}while(c!==null&&c!==s);l===null?a=n:l.next=o,da(n,t.memoizedState)||(qi=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do s=i.lane,Wr.lanes|=s,vu|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function mb(e){var t=Ls(),r=t.queue;if(r===null)throw Error(Ve(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do s=e(s,a.action),a=a.next;while(a!==i);da(s,t.memoizedState)||(qi=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function lA(){}function cA(e,t){var r=Wr,n=Ls(),i=t(),s=!da(n.memoizedState,i);if(s&&(n.memoizedState=i,qi=!0),n=n.queue,I5(fA.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||Bn!==null&&Bn.memoizedState.tag&1){if(r.flags|=2048,Lp(9,dA.bind(null,r,n,i,t),void 0,null),Un===null)throw Error(Ve(349));gu&30||uA(r,t,i)}return i}function uA(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Wr.updateQueue,t===null?(t={lastEffect:null,stores:null},Wr.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function dA(e,t,r,n){t.value=r,t.getSnapshot=n,hA(t)&&pA(e)}function fA(e,t,r){return r(function(){hA(t)&&pA(e)})}function hA(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!da(e,r)}catch{return!0}}function pA(e){var t=$o(e,1);t!==null&&ua(t,e,1,-1)}function lN(e){var t=Pa();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rp,lastRenderedState:e},t.queue=e,e=e.dispatch=a7.bind(null,Wr,e),[t.memoizedState,e]}function Lp(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Wr.updateQueue,t===null?(t={lastEffect:null,stores:null},Wr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function mA(){return Ls().memoizedState}function _v(e,t,r,n){var i=Pa();Wr.flags|=e,i.memoizedState=Lp(1|t,r,void 0,n===void 0?null:n)}function my(e,t,r,n){var i=Ls();n=n===void 0?null:n;var s=void 0;if(In!==null){var a=In.memoizedState;if(s=a.destroy,n!==null&&O5(n,a.deps)){i.memoizedState=Lp(t,r,s,n);return}}Wr.flags|=e,i.memoizedState=Lp(1|t,r,s,n)}function cN(e,t){return _v(8390656,8,e,t)}function I5(e,t){return my(2048,8,e,t)}function gA(e,t){return my(4,2,e,t)}function vA(e,t){return my(4,4,e,t)}function yA(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bA(e,t,r){return r=r!=null?r.concat([e]):null,my(4,4,yA.bind(null,t,e),r)}function F5(){}function wA(e,t){var r=Ls();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&O5(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function xA(e,t){var r=Ls();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&O5(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function _A(e,t,r){return gu&21?(da(r,t)||(r=Cj(),Wr.lanes|=r,vu|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qi=!0),e.memoizedState=r)}function i7(e,t){var r=yr;yr=r!==0&&4>r?r:4,e(!0);var n=hb.transition;hb.transition={};try{e(!1),t()}finally{yr=r,hb.transition=n}}function kA(){return Ls().memoizedState}function s7(e,t,r){var n=Vl(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},SA(e))NA(t,r);else if(r=sA(e,t,r,n),r!==null){var i=Ei();ua(r,e,n,i),EA(r,t,n)}}function a7(e,t,r){var n=Vl(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(SA(e))NA(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,o=s(a,r);if(i.hasEagerState=!0,i.eagerState=o,da(o,a)){var l=t.interleaved;l===null?(i.next=i,C5(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=sA(e,t,i,n),r!==null&&(i=Ei(),ua(r,e,n,i),EA(r,t,n))}}function SA(e){var t=e.alternate;return e===Wr||t!==null&&t===Wr}function NA(e,t){ap=c0=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function EA(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,h5(e,r)}}var u0={readContext:Rs,useCallback:ii,useContext:ii,useEffect:ii,useImperativeHandle:ii,useInsertionEffect:ii,useLayoutEffect:ii,useMemo:ii,useReducer:ii,useRef:ii,useState:ii,useDebugValue:ii,useDeferredValue:ii,useTransition:ii,useMutableSource:ii,useSyncExternalStore:ii,useId:ii,unstable_isNewReconciler:!1},o7={readContext:Rs,useCallback:function(e,t){return Pa().memoizedState=[e,t===void 0?null:t],e},useContext:Rs,useEffect:cN,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,_v(4194308,4,yA.bind(null,t,e),r)},useLayoutEffect:function(e,t){return _v(4194308,4,e,t)},useInsertionEffect:function(e,t){return _v(4,2,e,t)},useMemo:function(e,t){var r=Pa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Pa();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=s7.bind(null,Wr,e),[n.memoizedState,e]}
vendor: 7,433 bytes, lines 38-40
38,useRef:function(e){var t=Pa();return e={current:e},t.memoizedState=e},useState:lN,useDebugValue:F5,useDeferredValue:function(e){return Pa().memoizedState=e},useTransition:function(){var e=lN(!1),t=e[0];return e=i7.bind(null,e[1]),Pa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Wr,i=Pa();if(zr){if(r===void 0)throw Error(Ve(407));r=r()}else{if(r=t(),Un===null)throw Error(Ve(349));gu&30||uA(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,cN(fA.bind(null,n,s,e),[e]),n.flags|=2048,Lp(9,dA.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=Pa(),t=Un.identifierPrefix;if(zr){var r=Lo,n=Ro;r=(n&~(1<<32-ca(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Op++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=n7++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},l7={readContext:Rs,useCallback:wA,useContext:Rs,useEffect:I5,useImperativeHandle:bA,useInsertionEffect:gA,useLayoutEffect:vA,useMemo:xA,useReducer:pb,useRef:mA,useState:function(){return pb(Rp)},useDebugValue:F5,useDeferredValue:function(e){var t=Ls();return _A(t,In.memoizedState,e)},useTransition:function(){var e=pb(Rp)[0],t=Ls().memoizedState;return[e,t]},useMutableSource:lA,useSyncExternalStore:cA,useId:kA,unstable_isNewReconciler:!1},c7={readContext:Rs,useCallback:wA,useContext:Rs,useEffect:I5,useImperativeHandle:bA,useInsertionEffect:gA,useLayoutEffect:vA,useMemo:xA,useReducer:mb,useRef:mA,useState:function(){return mb(Rp)},useDebugValue:F5,useDeferredValue:function(e){var t=Ls();return In===null?t.memoizedState=e:_A(t,In.memoizedState,e)},useTransition:function(){var e=mb(Rp)[0],t=Ls().memoizedState;return[e,t]},useMutableSource:lA,useSyncExternalStore:cA,useId:kA,unstable_isNewReconciler:!1};function Js(e,t){if(e&&e.defaultProps){t=Kr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function u2(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Kr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var gy={isMounted:function(e){return(e=e._reactInternals)?Lu(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ei(),i=Vl(e),s=Io(n,i);s.payload=t,r!=null&&(s.callback=r),t=zl(e,s,i),t!==null&&(ua(t,e,i,n),wv(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ei(),i=Vl(e),s=Io(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=zl(e,s,i),t!==null&&(ua(t,e,i,n),wv(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ei(),n=Vl(e),i=Io(r,n);i.tag=2,t!=null&&(i.callback=t),t=zl(e,i,n),t!==null&&(ua(t,e,n,r),wv(t,e,n))}};function uN(e,t,r,n,i,s,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,a):t.prototype&&t.prototype.isPureReactComponent?!Ep(r,n)||!Ep(i,s):!0}function CA(e,t,r){var n=!1,i=ec,s=t.contextType;return typeof s=="object"&&s!==null?s=Rs(s):(i=Hi(t)?pu:mi.current,n=t.contextTypes,s=(n=n!=null)?mf(e,i):ec),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=gy,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function dN(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&gy.enqueueReplaceState(t,t.state,null)}function d2(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},j5(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Rs(s):(s=Hi(t)?pu:mi.current,i.context=mf(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(u2(e,t,s,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&gy.enqueueReplaceState(i,i.state,null),o0(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function bf(e,t){try{var r="",n=t;do r+=DD(n),n=n.return;while(n);var i=r}catch(s){i=`
39Error generating stack: `+s.message+`
40`+s.stack}return{value:e,source:t,stack:i,digest:null}}function gb(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function f2(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var u7=typeof WeakMap=="function"?WeakMap:Map;function jA(e,t,r){r=Io(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){f0||(f0=!0,_2=n),f2(e,t)},r}function AA(e,t,r){r=Io(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){f2(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){f2(e,t),typeof n!="function"&&(Hl===null?Hl=new Set([this]):Hl.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function fN(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new u7;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=S7.bind(null,e,t,r),t.then(e,e))}function hN(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function pN(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Io(-1,1),t.tag=2,zl(r,t,1))),r.lanes|=1),e)}var d7=Vo.ReactCurrentOwner,qi=!1;function _i(e,t,r,n){t.child=e===null?iA(t,null,r,n):vf(t,e.child,r,n)}function mN(e,t,r,n,i){r=r.render;var s=t.ref;return Wd(t,i),n=R5(e,t,r,n,s,i),r=L5(),e!==null&&!qi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bo(e,t,i)):(zr&&r&&x5(t),t.flags|=1,_i(e,t,n,i),t.child)}function gN(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!H5(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,TA(e,t,s,n,i)):(e=Ev(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var a=s.memoizedProps;if(r=r.compare,r=r!==null?r:Ep,r(a,n)&&e.ref===t.ref)return Bo(e,t,i)}return t.flags|=1,e=Wl(s,n),e.ref=t.ref,e.return=t,t.child=e}function TA(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Ep(s,n)&&e.ref===t.ref)if(qi=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(qi=!0);else return t.lanes=e.lanes,Bo(e,t,i)}return h2(e,t,r,n,i)}function PA(e,t,r){var n=t.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},jr(Bd,ns),ns|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,jr(Bd,ns),ns|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,jr(Bd,ns),ns|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,jr(Bd,ns),ns|=n;return _i(e,t,i,r),t.child}function OA(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 9,036 bytes, line 40
40function h2(e,t,r,n,i){var s=Hi(r)?pu:mi.current;return s=mf(t,s),Wd(t,i),r=R5(e,t,r,n,s,i),n=L5(),e!==null&&!qi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bo(e,t,i)):(zr&&n&&x5(t),t.flags|=1,_i(e,t,r,i),t.child)}function vN(e,t,r,n,i){if(Hi(r)){var s=!0;r0(t)}else s=!1;if(Wd(t,i),t.stateNode===null)kv(e,t),CA(t,r,n),d2(t,r,n,i),n=!0;else if(e===null){var a=t.stateNode,o=t.memoizedProps;a.props=o;var l=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Rs(c):(c=Hi(r)?pu:mi.current,c=mf(t,c));var d=r.getDerivedStateFromProps,h=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==n||l!==c)&&dN(t,a,n,c),wl=!1;var p=t.memoizedState;a.state=p,o0(t,n,a,i),l=t.memoizedState,o!==n||p!==l||zi.current||wl?(typeof d=="function"&&(u2(t,r,d,n),l=t.memoizedState),(o=wl||uN(t,r,o,n,p,l,c))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=c,n=o):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,aA(e,t),o=t.memoizedProps,c=t.type===t.elementType?o:Js(t.type,o),a.props=c,h=t.pendingProps,p=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=Rs(l):(l=Hi(r)?pu:mi.current,l=mf(t,l));var f=r.getDerivedStateFromProps;(d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==h||p!==l)&&dN(t,a,n,l),wl=!1,p=t.memoizedState,a.state=p,o0(t,n,a,i);var y=t.memoizedState;o!==h||p!==y||zi.current||wl?(typeof f=="function"&&(u2(t,r,f,n),y=t.memoizedState),(c=wl||uN(t,r,c,n,p,y,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,y,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,y,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=y),a.props=n,a.state=y,a.context=l,n=c):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return p2(e,t,r,n,s,i)}function p2(e,t,r,n,i,s){OA(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return i&&rN(t,r,!1),Bo(e,t,s);n=t.stateNode,d7.current=t;var o=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=vf(t,e.child,null,s),t.child=vf(t,null,o,s)):_i(e,t,o,s),t.memoizedState=n.state,i&&rN(t,r,!0),t.child}function RA(e){var t=e.stateNode;t.pendingContext?tN(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tN(e,t.context,!1),A5(e,t.containerInfo)}function yN(e,t,r,n,i){return gf(),k5(i),t.flags|=256,_i(e,t,r,n),t.child}var m2={dehydrated:null,treeContext:null,retryLane:0};function g2(e){return{baseLanes:e,cachePool:null,transitions:null}}function LA(e,t,r){var n=t.pendingProps,i=Vr.current,s=!1,a=(t.flags&128)!==0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),jr(Vr,i&1),e===null)return l2(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=n.children,e=n.fallback,s?(n=t.mode,s=t.child,a={mode:"hidden",children:a},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=a):s=by(a,n,0,null),e=du(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=g2(r),t.memoizedState=m2,e):D5(t,a));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return f7(e,t,a,n,o,i,r);if(s){s=n.fallback,a=t.mode,i=e.child,o=i.sibling;var l={mode:"hidden",children:n.children};return!(a&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Wl(i,l),n.subtreeFlags=i.subtreeFlags&14680064),o!==null?s=Wl(o,s):(s=du(s,a,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,a=e.child.memoizedState,a=a===null?g2(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=e.childLanes&~r,t.memoizedState=m2,n}return s=e.child,e=s.sibling,n=Wl(s,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function D5(e,t){return t=by({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ig(e,t,r,n){return n!==null&&k5(n),vf(t,e.child,null,r),e=D5(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function f7(e,t,r,n,i,s,a){if(r)return t.flags&256?(t.flags&=-257,n=gb(Error(Ve(422))),Ig(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=by({mode:"visible",children:n.children},i,0,null),s=du(s,i,a,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&vf(t,e.child,null,a),t.child.memoizedState=g2(a),t.memoizedState=m2,s);if(!(t.mode&1))return Ig(e,t,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var o=n.dgst;return n=o,s=Error(Ve(419)),n=gb(s,n,void 0),Ig(e,t,a,n)}if(o=(a&e.childLanes)!==0,qi||o){if(n=Un,n!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|a)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,$o(e,i),ua(n,e,i,-1))}return z5(),n=gb(Error(Ve(421))),Ig(e,t,a,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=N7.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,as=Ul(i.nextSibling),cs=t,zr=!0,sa=null,e!==null&&(Ns[Es++]=Ro,Ns[Es++]=Lo,Ns[Es++]=mu,Ro=e.id,Lo=e.overflow,mu=t),t=D5(t,n.children),t.flags|=4096,t)}function bN(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),c2(e.return,t,r)}function vb(e,t,r,n,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function IA(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(_i(e,t,n.children,r),n=Vr.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bN(e,r,t);else if(e.tag===19)bN(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(jr(Vr,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&l0(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),vb(t,!1,i,r,s);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&l0(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}vb(t,!0,r,null,s);break;case"together":vb(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function kv(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),vu|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ve(153));if(t.child!==null){for(e=t.child,r=Wl(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Wl(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function h7(e,t,r){switch(t.tag){case 3:RA(t),gf();break;case 5:oA(t);break;case 1:Hi(t.type)&&r0(t);break;case 4:A5(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;jr(s0,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(jr(Vr,Vr.current&1),t.flags|=128,null):r&t.child.childLanes?LA(e,t,r):(jr(Vr,Vr.current&1),e=Bo(e,t,r),e!==null?e.sibling:null);jr(Vr,Vr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return IA(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),jr(Vr,Vr.current),n)break;return null;
vendor: 4,598 bytes, line 40
40case 22:case 23:return t.lanes=0,PA(e,t,r)}return Bo(e,t,r)}var FA,v2,DA,MA;FA=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};v2=function(){};DA=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Jc(Ka.current);var s=null;switch(r){case"input":i=$w(e,i),n=$w(e,n),s=[];break;case"select":i=Kr({},i,{value:void 0}),n=Kr({},n,{value:void 0}),s=[];break;case"textarea":i=Uw(e,i),n=Uw(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=e0)}Hw(r,n);var a;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var o=i[c];for(a in o)o.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(bp.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in n){var l=n[c];if(o=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&l!==o&&(l!=null||o!=null))if(c==="style")if(o){for(a in o)!o.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&o[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(s||(s=[]),s.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,o=o?o.__html:void 0,l!=null&&o!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(bp.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Lr("scroll",e),s||o===l||(s=[])):(s=s||[]).push(c,l))}r&&(s=s||[]).push("style",r);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};MA=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ph(e,t){if(!zr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function si(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function p7(e,t,r){var n=t.pendingProps;switch(_5(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return si(t),null;case 1:return Hi(t.type)&&t0(),si(t),null;case 3:return n=t.stateNode,yf(),Fr(zi),Fr(mi),P5(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Rg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,sa!==null&&(N2(sa),sa=null))),v2(e,t),si(t),null;case 5:T5(t);var i=Jc(Pp.current);if(r=t.type,e!==null&&t.stateNode!=null)DA(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Ve(166));return si(t),null}if(e=Jc(Ka.current),Rg(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[Da]=t,n[Ap]=s,e=(t.mode&1)!==0,r){case"dialog":Lr("cancel",n),Lr("close",n);break;case"iframe":case"object":case"embed":Lr("load",n);break;case"video":case"audio":for(i=0;i<Kh.length;i++)Lr(Kh[i],n);break;case"source":Lr("error",n);break;case"img":case"image":case"link":Lr("error",n),Lr("load",n);break;case"details":Lr("toggle",n);break;case"input":jS(n,s),Lr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},Lr("invalid",n);break;case"textarea":TS(n,s),Lr("invalid",n)}Hw(r,s),i=null;for(var a in s)if(s.hasOwnProperty(a)){var o=s[a];a==="children"?typeof o=="string"?n.textContent!==o&&(s.suppressHydrationWarning!==!0&&Og(n.textContent,o,e),i=["children",o]):typeof o=="number"&&n.textContent!==""+o&&(s.suppressHydrationWarning!==!0&&Og(n.textContent,o,e),i=["children",""+o]):bp.hasOwnProperty(a)&&o!=null&&a==="onScroll"&&Lr("scroll",n)}switch(r){case"input":Sg(n),AS(n,s,!0);break;case"textarea":Sg(n),PS(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=e0)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fj(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Da]=t,e[Ap]=n,FA(e,t,!1,!1),t.stateNode=e;e:{switch(a=Vw(r,n),r){case"dialog":Lr("cancel",e),Lr("close",e),i=n;break;case"iframe":case"object":case"embed":Lr("load",e),i=n;break;case"video":case"audio":for(i=0;i<Kh.length;i++)Lr(Kh[i],e);i=n;break;case"source":Lr("error",e),i=n;break;case"img":case"image":case"link":Lr("error",e),Lr("load",e),i=n;break;case"details":Lr("toggle",e),i=n;break;case"input":jS(e,n),i=$w(e,n),Lr("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Kr({},n,{value:void 0}),Lr("invalid",e);break;case"textarea":TS(e,n),i=Uw(e,n),Lr("invalid",e);break;default:i=n}Hw(r,i),o=i;for(s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="style"?mj(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&hj(e,l)):s==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&wp(e,l):typeof l=="number"&&wp(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(bp.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Lr("scroll",e):l!=null&&o5(e,s,l,a))}switch(r){case"input":Sg(e),AS(e,n,!1);break;case"textarea":Sg(e),PS(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Ql(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?Ud(e,!!n.multiple,s,!1):n.defaultValue!=null&&Ud(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=e0)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return si(t),null;case 6:if(e&&t.stateNode!=null)MA(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Ve(166));if(r=Jc(Pp.current),Jc(Ka.current),Rg(t)){if(n=t.stateNode,r=t.memoizedProps,n[Da]=t,(s=n.nodeValue!==r)&&(e=cs,e!==null))switch(e.tag){case 3:Og(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Og(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Da]=t,t.stateNode=n}return si(t),null;case 13:if(Fr(Vr),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(zr&&as!==null&&t.mode&1&&!(t.flags&128))rA(),gf(),t.flags|=98560,s=!1;else if(s=Rg(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(Ve(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Ve(317));s[Da]=t}else gf(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;si(t),s=!1}else sa!==null&&(N2(sa),sa=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Vr.current&1?Dn===0&&(Dn=3):z5())),t.updateQueue!==null&&(t.flags|=4),si(t),null);case 4:return yf(),v2(e,t),e===null&&Cp(t.stateNode.containerInfo),si(t),null;case 10:return E5(t.type._context),si(t),null;case 17:return Hi(t.type)&&t0(),si(t),null;case 19:if(Fr(Vr),s=t.memoizedState,s===null)return si(t),null;if(n=(t.flags&128)!==0,a=s.rendering,a===null)if(n)Ph(s,!1);else{if(Dn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=l0(e),a!==null){for(t.flags|=128,Ph(s,!1),n=a.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)s=r,e=n,s.flags&=14680066,a=s.alternate,a===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=a.childLanes,s.lanes=a.lanes,s.child=a.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=a.memoizedProps,s.memoizedState=a.memoizedState,s.updateQueue=a.updateQueue,s.type=a.type,e=a.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return jr(Vr,Vr.current&1|2),t.child}e=e.sibling}s.tail!==null&&fn()>wf&&(t.flags|=128,n=!0,Ph(s,!1),t.lanes=4194304)}else{if(!n)if(e=l0(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ph(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!zr)return si(t),null}else 2*fn()-s.renderingStartTime>wf&&r!==1073741824&&(t.flags|=128,n=!0,Ph(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(r=s.last,r!==null?r.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=fn(),t.sibling=null,r=Vr.current,jr(Vr,n?r&1|2:r&1),t):(si(t),null);case 22:case 23:return U5(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ns&1073741824&&(si(t),t.subtreeFlags&6&&(t.flags|=8192)):si(t),null;case 24:return null;case 25:return null}throw Error(Ve(156,t.tag))}function m7(e,t){switch(_5(t),t.tag){case 1:return Hi(t.type)&&t0(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 26,970 bytes, line 40
40case 3:return yf(),Fr(zi),Fr(mi),P5(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return T5(t),null;case 13:if(Fr(Vr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ve(340));gf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fr(Vr),null;case 4:return yf(),null;case 10:return E5(t.type._context),null;case 22:case 23:return U5(),null;case 24:return null;default:return null}}var Fg=!1,fi=!1,g7=typeof WeakSet=="function"?WeakSet:Set,nt=null;function $d(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){nn(e,t,n)}else r.current=null}function y2(e,t,r){try{r()}catch(n){nn(e,t,n)}}var wN=!1;function v7(e,t){if(t2=Xv,e=zj(),w5(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var a=0,o=-1,l=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==r||i!==0&&h.nodeType!==3||(o=a+i),h!==s||n!==0&&h.nodeType!==3||(l=a+n),h.nodeType===3&&(a+=h.nodeValue.length),(f=h.firstChild)!==null;)p=h,h=f;for(;;){if(h===e)break t;if(p===r&&++c===i&&(o=a),p===s&&++d===n&&(l=a),(f=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=f}r=o===-1||l===-1?null:{start:o,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(r2={focusedElem:e,selectionRange:r},Xv=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){t=nt;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,b=y.memoizedState,w=t.stateNode,x=w.getSnapshotBeforeUpdate(t.elementType===t.type?v:Js(t.type,v),b);w.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ve(163))}}catch(E){nn(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}return y=wN,wN=!1,y}function op(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&y2(t,r,s)}i=i.next}while(i!==n)}}function vy(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function b2(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function $A(e){var t=e.alternate;t!==null&&(e.alternate=null,$A(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Da],delete t[Ap],delete t[s2],delete t[QM],delete t[e7])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function BA(e){return e.tag===5||e.tag===3||e.tag===4}function xN(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||BA(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function w2(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=e0));else if(n!==4&&(e=e.child,e!==null))for(w2(e,t,r),e=e.sibling;e!==null;)w2(e,t,r),e=e.sibling}function x2(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(x2(e,t,r),e=e.sibling;e!==null;)x2(e,t,r),e=e.sibling}var Xn=null,na=!1;function cl(e,t,r){for(r=r.child;r!==null;)qA(e,t,r),r=r.sibling}function qA(e,t,r){if(Wa&&typeof Wa.onCommitFiberUnmount=="function")try{Wa.onCommitFiberUnmount(cy,r)}catch{}switch(r.tag){case 5:fi||$d(r,t);case 6:var n=Xn,i=na;Xn=null,cl(e,t,r),Xn=n,na=i,Xn!==null&&(na?(e=Xn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Xn.removeChild(r.stateNode));break;case 18:Xn!==null&&(na?(e=Xn,r=r.stateNode,e.nodeType===8?ub(e.parentNode,r):e.nodeType===1&&ub(e,r),Sp(e)):ub(Xn,r.stateNode));break;case 4:n=Xn,i=na,Xn=r.stateNode.containerInfo,na=!0,cl(e,t,r),Xn=n,na=i;break;case 0:case 11:case 14:case 15:if(!fi&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&y2(r,t,a),i=i.next}while(i!==n)}cl(e,t,r);break;case 1:if(!fi&&($d(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(o){nn(r,t,o)}cl(e,t,r);break;case 21:cl(e,t,r);break;case 22:r.mode&1?(fi=(n=fi)||r.memoizedState!==null,cl(e,t,r),fi=n):cl(e,t,r);break;default:cl(e,t,r)}}function _N(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new g7),t.forEach(function(n){var i=E7.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Ws(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=e,a=t,o=a;e:for(;o!==null;){switch(o.tag){case 5:Xn=o.stateNode,na=!1;break e;case 3:Xn=o.stateNode.containerInfo,na=!0;break e;case 4:Xn=o.stateNode.containerInfo,na=!0;break e}o=o.return}if(Xn===null)throw Error(Ve(160));qA(s,a,i),Xn=null,na=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){nn(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)UA(t,e),t=t.sibling}function UA(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ws(t,e),ja(e),n&4){try{op(3,e,e.return),vy(3,e)}catch(v){nn(e,e.return,v)}try{op(5,e,e.return)}catch(v){nn(e,e.return,v)}}break;case 1:Ws(t,e),ja(e),n&512&&r!==null&&$d(r,r.return);break;case 5:if(Ws(t,e),ja(e),n&512&&r!==null&&$d(r,r.return),e.flags&32){var i=e.stateNode;try{wp(i,"")}catch(v){nn(e,e.return,v)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,a=r!==null?r.memoizedProps:s,o=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{o==="input"&&s.type==="radio"&&s.name!=null&&uj(i,s),Vw(o,a);var c=Vw(o,s);for(a=0;a<l.length;a+=2){var d=l[a],h=l[a+1];d==="style"?mj(i,h):d==="dangerouslySetInnerHTML"?hj(i,h):d==="children"?wp(i,h):o5(i,d,h,c)}switch(o){case"input":Bw(i,s);break;case"textarea":dj(i,s);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var f=s.value;f!=null?Ud(i,!!s.multiple,f,!1):p!==!!s.multiple&&(s.defaultValue!=null?Ud(i,!!s.multiple,s.defaultValue,!0):Ud(i,!!s.multiple,s.multiple?[]:"",!1))}i[Ap]=s}catch(v){nn(e,e.return,v)}}break;case 6:if(Ws(t,e),ja(e),n&4){if(e.stateNode===null)throw Error(Ve(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(v){nn(e,e.return,v)}}break;case 3:if(Ws(t,e),ja(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Sp(t.containerInfo)}catch(v){nn(e,e.return,v)}break;case 4:Ws(t,e),ja(e);break;case 13:Ws(t,e),ja(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(B5=fn())),n&4&&_N(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(fi=(c=fi)||d,Ws(t,e),fi=c):Ws(t,e),ja(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(nt=e,d=e.child;d!==null;){for(h=nt=d;nt!==null;){switch(p=nt,f=p.child,p.tag){case 0:case 11:case 14:case 15:op(4,p,p.return);break;case 1:$d(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){n=p,r=p.return;try{t=n,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(v){nn(n,r,v)}}break;case 5:$d(p,p.return);break;case 22:if(p.memoizedState!==null){SN(h);continue}}f!==null?(f.return=p,nt=f):SN(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{i=h.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(o=h.stateNode,l=h.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,o.style.display=pj("display",a))}catch(v){nn(e,e.return,v)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(v){nn(e,e.return,v)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Ws(t,e),ja(e),n&4&&_N(e);break;case 21:break;default:Ws(t,e),ja(e)}}function ja(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(BA(r)){var n=r;break e}r=r.return}throw Error(Ve(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(wp(i,""),n.flags&=-33);var s=xN(e);x2(e,s,i);break;case 3:case 4:var a=n.stateNode.containerInfo,o=xN(e);w2(e,o,a);break;default:throw Error(Ve(161))}}catch(l){nn(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function y7(e,t,r){nt=e,zA(e)}function zA(e,t,r){for(var n=(e.mode&1)!==0;nt!==null;){var i=nt,s=i.child;if(i.tag===22&&n){var a=i.memoizedState!==null||Fg;if(!a){var o=i.alternate,l=o!==null&&o.memoizedState!==null||fi;o=Fg;var c=fi;if(Fg=a,(fi=l)&&!c)for(nt=i;nt!==null;)a=nt,l=a.child,a.tag===22&&a.memoizedState!==null?NN(i):l!==null?(l.return=a,nt=l):NN(i);for(;s!==null;)nt=s,zA(s),s=s.sibling;nt=i,Fg=o,fi=c}kN(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,nt=s):kN(e)}}function kN(e){for(;nt!==null;){var t=nt;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:fi||vy(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!fi)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Js(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&oN(t,s,n);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}oN(t,a,r)}break;case 5:var o=t.stateNode;if(r===null&&t.flags&4){r=o;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Sp(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ve(163))}fi||t.flags&512&&b2(t)}catch(p){nn(t,t.return,p)}}if(t===e){nt=null;break}if(r=t.sibling,r!==null){r.return=t.return,nt=r;break}nt=t.return}}function SN(e){for(;nt!==null;){var t=nt;if(t===e){nt=null;break}var r=t.sibling;if(r!==null){r.return=t.return,nt=r;break}nt=t.return}}function NN(e){for(;nt!==null;){var t=nt;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{vy(4,t)}catch(l){nn(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){nn(t,i,l)}}var s=t.return;try{b2(t)}catch(l){nn(t,s,l)}break;case 5:var a=t.return;try{b2(t)}catch(l){nn(t,a,l)}}}catch(l){nn(t,t.return,l)}if(t===e){nt=null;break}var o=t.sibling;if(o!==null){o.return=t.return,nt=o;break}nt=t.return}}var b7=Math.ceil,d0=Vo.ReactCurrentDispatcher,M5=Vo.ReactCurrentOwner,Ps=Vo.ReactCurrentBatchConfig,sr=0,Un=null,Cn=null,Qn=0,ns=0,Bd=lc(0),Dn=0,Ip=null,vu=0,yy=0,$5=0,lp=null,$i=null,B5=0,wf=1/0,jo=null,f0=!1,_2=null,Hl=null,Dg=!1,Ll=null,h0=0,cp=0,k2=null,Sv=-1,Nv=0;function Ei(){return sr&6?fn():Sv!==-1?Sv:Sv=fn()}function Vl(e){return e.mode&1?sr&2&&Qn!==0?Qn&-Qn:r7.transition!==null?(Nv===0&&(Nv=Cj()),Nv):(e=yr,e!==0||(e=window.event,e=e===void 0?16:Lj(e.type)),e):1}function ua(e,t,r,n){if(50<cp)throw cp=0,k2=null,Error(Ve(185));hm(e,r,n),(!(sr&2)||e!==Un)&&(e===Un&&(!(sr&2)&&(yy|=r),Dn===4&&kl(e,Qn)),Vi(e,n),r===1&&sr===0&&!(t.mode&1)&&(wf=fn()+500,py&&cc()))}function Vi(e,t){var r=e.callbackNode;rM(e,t);var n=Zv(e,e===Un?Qn:0);if(n===0)r!==null&&LS(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&LS(r),t===1)e.tag===0?t7(EN.bind(null,e)):Qj(EN.bind(null,e)),XM(function(){!(sr&6)&&cc()}),r=null;else{switch(jj(n)){case 1:r=f5;break;case 4:r=Nj;break;case 16:r=Yv;break;case 536870912:r=Ej;break;default:r=Yv}r=XA(r,HA.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function HA(e,t){if(Sv=-1,Nv=0,sr&6)throw Error(Ve(327));var r=e.callbackNode;if(Kd()&&e.callbackNode!==r)return null;var n=Zv(e,e===Un?Qn:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=p0(e,n);else{t=n;var i=sr;sr|=2;var s=WA();(Un!==e||Qn!==t)&&(jo=null,wf=fn()+500,uu(e,t));do try{_7();break}catch(o){VA(e,o)}while(!0);N5(),d0.current=s,sr=i,Cn!==null?t=0:(Un=null,Qn=0,t=Dn)}if(t!==0){if(t===2&&(i=Zw(e),i!==0&&(n=i,t=S2(e,i))),t===1)throw r=Ip,uu(e,0),kl(e,n),Vi(e,fn()),r;if(t===6)kl(e,n);else{if(i=e.current.alternate,!(n&30)&&!w7(i)&&(t=p0(e,n),t===2&&(s=Zw(e),s!==0&&(n=s,t=S2(e,s))),t===1))throw r=Ip,uu(e,0),kl(e,n),Vi(e,fn()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(Ve(345));case 2:$c(e,$i,jo);break;case 3:if(kl(e,n),(n&130023424)===n&&(t=B5+500-fn(),10<t)){if(Zv(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Ei(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=i2($c.bind(null,e,$i,jo),t);break}$c(e,$i,jo);break;case 4:if(kl(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var a=31-ca(n);s=1<<a,a=t[a],a>i&&(i=a),n&=~s}if(n=i,n=fn()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*b7(n/1960))-n,10<n){e.timeoutHandle=i2($c.bind(null,e,$i,jo),n);break}$c(e,$i,jo);break;case 5:$c(e,$i,jo);break;default:throw Error(Ve(329))}}}return Vi(e,fn()),e.callbackNode===r?HA.bind(null,e):null}function S2(e,t){var r=lp;return e.current.memoizedState.isDehydrated&&(uu(e,t).flags|=256),e=p0(e,t),e!==2&&(t=$i,$i=r,t!==null&&N2(t)),e}function N2(e){$i===null?$i=e:$i.push.apply($i,e)}function w7(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!da(s(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function kl(e,t){for(t&=~$5,t&=~yy,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ca(t),n=1<<r;e[r]=-1,t&=~n}}function EN(e){if(sr&6)throw Error(Ve(327));Kd();var t=Zv(e,0);if(!(t&1))return Vi(e,fn()),null;var r=p0(e,t);if(e.tag!==0&&r===2){var n=Zw(e);n!==0&&(t=n,r=S2(e,n))}if(r===1)throw r=Ip,uu(e,0),kl(e,t),Vi(e,fn()),r;if(r===6)throw Error(Ve(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$c(e,$i,jo),Vi(e,fn()),null}function q5(e,t){var r=sr;sr|=1;try{return e(t)}finally{sr=r,sr===0&&(wf=fn()+500,py&&cc())}}function yu(e){Ll!==null&&Ll.tag===0&&!(sr&6)&&Kd();var t=sr;sr|=1;var r=Ps.transition,n=yr;try{if(Ps.transition=null,yr=1,e)return e()}finally{yr=n,Ps.transition=r,sr=t,!(sr&6)&&cc()}}function U5(){ns=Bd.current,Fr(Bd)}function uu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,ZM(r)),Cn!==null)for(r=Cn.return;r!==null;){var n=r;switch(_5(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&t0();break;case 3:yf(),Fr(zi),Fr(mi),P5();break;case 5:T5(n);break;case 4:yf();break;case 13:Fr(Vr);break;case 19:Fr(Vr);break;case 10:E5(n.type._context);break;case 22:case 23:U5()}r=r.return}if(Un=e,Cn=e=Wl(e.current,null),Qn=ns=t,Dn=0,Ip=null,$5=yy=vu=0,$i=lp=null,Xc!==null){for(t=0;t<Xc.length;t++)if(r=Xc[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var a=s.next;s.next=i,n.next=a}r.pending=n}Xc=null}return e}function VA(e,t){do{var r=Cn;try{if(N5(),xv.current=u0,c0){for(var n=Wr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}c0=!1}if(gu=0,Bn=In=Wr=null,ap=!1,Op=0,M5.current=null,r===null||r.return===null){Dn=1,Ip=t,Cn=null;break}e:{var s=e,a=r.return,o=r,l=t;if(t=Qn,o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=o,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=hN(a);if(f!==null){f.flags&=-257,pN(f,a,o,s,t),f.mode&1&&fN(s,c,t),t=f,l=c;var y=t.updateQueue;if(y===null){var v=new Set;v.add(l),t.updateQueue=v}else y.add(l);break e}else{if(!(t&1)){fN(s,c,t),z5();break e}l=Error(Ve(426))}}else if(zr&&o.mode&1){var b=hN(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),pN(b,a,o,s,t),k5(bf(l,o));break e}}s=l=bf(l,o),Dn!==4&&(Dn=2),lp===null?lp=[s]:lp.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var w=jA(s,l,t);aN(s,w);break e;case 1:o=l;var x=s.type,S=s.stateNode;if(!(s.flags&128)&&(typeof x.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Hl===null||!Hl.has(S)))){s.flags|=65536,t&=-t,s.lanes|=t;var E=AA(s,o,t);aN(s,E);break e}}s=s.return}while(s!==null)}GA(r)}catch(T){t=T,Cn===r&&r!==null&&(Cn=r=r.return);continue}break}while(!0)}function WA(){var e=d0.current;return d0.current=u0,e===null?u0:e}function z5(){(Dn===0||Dn===3||Dn===2)&&(Dn=4),Un===null||!(vu&268435455)&&!(yy&268435455)||kl(Un,Qn)}function p0(e,t){var r=sr;sr|=2;var n=WA();(Un!==e||Qn!==t)&&(jo=null,uu(e,t));do try{x7();break}catch(i){VA(e,i)}while(!0);if(N5(),sr=r,d0.current=n,Cn!==null)throw Error(Ve(261));return Un=null,Qn=0,Dn}function x7(){for(;Cn!==null;)KA(Cn)}function _7(){for(;Cn!==null&&!KD();)KA(Cn)}function KA(e){var t=ZA(e.alternate,e,ns);e.memoizedProps=e.pendingProps,t===null?GA(e):Cn=t,M5.current=null}function GA(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=m7(r,t),r!==null){r.flags&=32767,Cn=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Dn=6,Cn=null;return}}else if(r=p7(r,t,ns),r!==null){Cn=r;return}if(t=t.sibling,t!==null){Cn=t;return}Cn=t=e}while(t!==null);Dn===0&&(Dn=5)}function $c(e,t,r){var n=yr,i=Ps.transition;try{Ps.transition=null,yr=1,k7(e,t,r,n)}finally{Ps.transition=i,yr=n}return null}function k7(e,t,r,n){do Kd();while(Ll!==null);if(sr&6)throw Error(Ve(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Ve(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(nM(e,s),e===Un&&(Cn=Un=null,Qn=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Dg||(Dg=!0,XA(Yv,function(){return Kd(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=Ps.transition,Ps.transition=null;var a=yr;yr=1;var o=sr;sr|=4,M5.current=null,v7(e,r),UA(r,e),zM(r2),Xv=!!t2,r2=t2=null,e.current=r,y7(r),GD(),sr=o,yr=a,Ps.transition=s}else e.current=r;if(Dg&&(Dg=!1,Ll=e,h0=i),s=e.pendingLanes,s===0&&(Hl=null),XD(r.stateNode),Vi(e,fn()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(f0)throw f0=!1,e=_2,_2=null,e;return h0&1&&e.tag!==0&&Kd(),s=e.pendingLanes,s&1?e===k2?cp++:(cp=0,k2=e):cp=0,cc(),null}function Kd(){if(Ll!==null){var e=jj(h0),t=Ps.transition,r=yr;try{if(Ps.transition=null,yr=16>e?16:e,Ll===null)var n=!1;else{if(e=Ll,Ll=null,h0=0,sr&6)throw Error(Ve(331));var i=sr;for(sr|=4,nt=e.current;nt!==null;){var s=nt,a=s.child;if(nt.flags&16){var o=s.deletions;if(o!==null){for(var l=0;l<o.length;l++){var c=o[l];for(nt=c;nt!==null;){var d=nt;switch(d.tag){case 0:case 11:case 15:op(8,d,s)}var h=d.child;if(h!==null)h.return=d,nt=h;else for(;nt!==null;){d=nt;var p=d.sibling,f=d.return;if($A(d),d===c){nt=null;break}if(p!==null){p.return=f,nt=p;break}nt=f}}}var y=s.alternate;if(y!==null){var v=y.child;if(v!==null){y.child=null;do{var b=v.sibling;v.sibling=null,v=b}while(v!==null)}}nt=s}}if(s.subtreeFlags&2064&&a!==null)a.return=s,nt=a;else e:for(;nt!==null;){if(s=nt,s.flags&2048)switch(s.tag){case 0:case 11:case 15:op(9,s,s.return)}var w=s.sibling;if(w!==null){w.return=s.return,nt=w;break e}nt=s.return}}var x=e.current;for(nt=x;nt!==null;){a=nt;var S=a.child;if(a.subtreeFlags&2064&&S!==null)S.return=a,nt=S;else e:for(a=x;nt!==null;){if(o=nt,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:vy(9,o)}}catch(T){nn(o,o.return,T)}if(o===a){nt=null;break e}var E=o.sibling;if(E!==null){E.return=o.return,nt=E;break e}nt=o.return}}if(sr=i,cc(),Wa&&typeof Wa.onPostCommitFiberRoot=="function")try{Wa.onPostCommitFiberRoot(cy,e)}catch{}n=!0}return n}finally{yr=r,Ps.transition=t}}return!1}function CN(e,t,r){t=bf(r,t),t=jA(e,t,1),e=zl(e,t,1),t=Ei(),e!==null&&(hm(e,1,t),Vi(e,t))}function nn(e,t,r){if(e.tag===3)CN(e,e,r);else for(;t!==null;){if(t.tag===3){CN(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Hl===null||!Hl.has(n))){e=bf(r,e),e=AA(t,e,1),t=zl(t,e,1),e=Ei(),t!==null&&(hm(t,1,e),Vi(t,e));break}}t=t.return}}function S7(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Ei(),e.pingedLanes|=e.suspendedLanes&r,Un===e&&(Qn&r)===r&&(Dn===4||Dn===3&&(Qn&130023424)===Qn&&500>fn()-B5?uu(e,0):$5|=r),Vi(e,t)}function YA(e,t){t===0&&(e.mode&1?(t=Cg,Cg<<=1,!(Cg&130023424)&&(Cg=4194304)):t=1);var r=Ei();e=$o(e,t),e!==null&&(hm(e,t,r),Vi(e,r))}function N7(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),YA(e,r)}function E7(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ve(314))}n!==null&&n.delete(t),YA(e,r)}var ZA;ZA=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||zi.current)qi=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return qi=!1,h7(e,t,r);qi=!!(e.flags&131072)}else qi=!1,zr&&t.flags&1048576&&eA(t,i0,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;kv(e,t),e=t.pendingProps;var i=mf(t,mi.current);Wd(t,r),i=R5(null,t,n,e,i,r);var s=L5();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Hi(n)?(s=!0,r0(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,j5(t),i.updater=gy,t.stateNode=i,i._reactInternals=t,d2(t,n,e,r),t=p2(null,t,n,!0,s,r)):(t.tag=0,zr&&s&&x5(t),_i(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(kv(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=j7(n),e=Js(n,e),i){case 0:t=h2(null,t,n,e,r);break e;case 1:t=vN(null,t,n,e,r);break e;case 11:t=mN(null,t,n,e,r);break e;case 14:t=gN(null,t,n,Js(n.type,e),r);break e}throw Error(Ve(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Js(n,i),h2(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Js(n,i),vN(e,t,n,i,r);case 3:e:{if(RA(t),e===null)throw Error(Ve(387));n=t.pendingProps,s=t.memoizedState,i=s.element,aA(e,t),o0(t,n,null,r);var a=t.memoizedState;if(n=a.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=bf(Error(Ve(423)),t),t=yN(e,t,n,r,i);break e}else if(n!==i){i=bf(Error(Ve(424)),t),t=yN(e,t,n,r,i);break e}else for(as=Ul(t.stateNode.containerInfo.firstChild),cs=t,zr=!0,sa=null,r=iA(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(gf(),n===i){t=Bo(e,t,r);break e}_i(e,t,n,r)}t=t.child}return t;case 5:return oA(t),e===null&&l2(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,a=i.children,n2(n,i)?a=null:s!==null&&n2(n,s)&&(t.flags|=32),OA(e,t),_i(e,t,a,r),t.child;case 6:return e===null&&l2(t),null;case 13:return LA(e,t,r);case 4:return A5(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=vf(t,null,n,r):_i(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Js(n,i),mN(e,t,n,i,r);case 7:return _i(e,t,t.pendingProps,r),t.child;case 8:return _i(e,t,t.pendingProps.children,r),t.child;case 12:return _i(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value,jr(s0,n._currentValue),n._currentValue=a,s!==null)if(da(s.value,a)){if(s.children===i.children&&!zi.current){t=Bo(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){a=s.child;for(var l=o.firstContext;l!==null;){if(l.context===n){if(s.tag===1){l=Io(-1,r&-r),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),c2(s.return,r,t),o.lanes|=r;break}l=l.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(Ve(341));a.lanes|=r,o=a.alternate,o!==null&&(o.lanes|=r),c2(a,r,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}_i(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Wd(t,r),i=Rs(i),n=n(i),t.flags|=1,_i(e,t,n,r),t.child;case 14:return n=t.type,i=Js(n,t.pendingProps),i=Js(n.type,i),gN(e,t,n,i,r);case 15:return TA(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Js(n,i),kv(e,t),t.tag=1,Hi(n)?(e=!0,r0(t)):e=!1,Wd(t,r),CA(t,n,i),d2(t,n,i,r),p2(null,t,n,!0,e,r);case 19:return IA(e,t,r);case 22:return PA(e,t,r)}throw Error(Ve(156,t.tag))};function XA(e,t){return Sj(e,t)}function C7(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ts(e,t,r,n){return new C7(e,t,r,n)}function H5(e){return e=e.prototype,!(!e||!e.isReactComponent)}function j7(e){if(typeof e=="function")return H5(e)?1:0;if(e!=null){if(e=e.$$typeof,e===c5)return 11;if(e===u5)return 14}return 2}function Wl(e,t){var r=e.alternate;return r===null?(r=Ts(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.depen
vendor: 6,636 bytes, line 40
40dencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ev(e,t,r,n,i,s){var a=2;if(n=e,typeof e=="function")H5(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Td:return du(r.children,i,s,t);case l5:a=8,i|=8;break;case Iw:return e=Ts(12,r,t,i|2),e.elementType=Iw,e.lanes=s,e;case Fw:return e=Ts(13,r,t,i),e.elementType=Fw,e.lanes=s,e;case Dw:return e=Ts(19,r,t,i),e.elementType=Dw,e.lanes=s,e;case oj:return by(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case sj:a=10;break e;case aj:a=9;break e;case c5:a=11;break e;case u5:a=14;break e;case bl:a=16,n=null;break e}throw Error(Ve(130,e==null?e:typeof e,""))}return t=Ts(a,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function du(e,t,r,n){return e=Ts(7,e,n,t),e.lanes=r,e}function by(e,t,r,n){return e=Ts(22,e,n,t),e.elementType=oj,e.lanes=r,e.stateNode={isHidden:!1},e}function yb(e,t,r){return e=Ts(6,e,null,t),e.lanes=r,e}function bb(e,t,r){return t=Ts(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function A7(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Q1(0),this.expirationTimes=Q1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Q1(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function V5(e,t,r,n,i,s,a,o,l){return e=new A7(e,t,r,o,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ts(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},j5(s),e}function T7(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ad,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function JA(e){if(!e)return ec;e=e._reactInternals;e:{if(Lu(e)!==e||e.tag!==1)throw Error(Ve(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Hi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ve(171))}if(e.tag===1){var r=e.type;if(Hi(r))return Jj(e,r,t)}return t}function QA(e,t,r,n,i,s,a,o,l){return e=V5(r,n,!0,e,i,s,a,o,l),e.context=JA(null),r=e.current,n=Ei(),i=Vl(r),s=Io(n,i),s.callback=t??null,zl(r,s,i),e.current.lanes=i,hm(e,i,n),Vi(e,n),e}function wy(e,t,r,n){var i=t.current,s=Ei(),a=Vl(i);return r=JA(r),t.context===null?t.context=r:t.pendingContext=r,t=Io(s,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=zl(i,t,a),e!==null&&(ua(e,i,a,s),wv(e,i,a)),a}function m0(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function jN(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function W5(e,t){jN(e,t),(e=e.alternate)&&jN(e,t)}function P7(){return null}var eT=typeof reportError=="function"?reportError:function(e){console.error(e)};function K5(e){this._internalRoot=e}xy.prototype.render=K5.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ve(409));wy(e,t,null,null)};xy.prototype.unmount=K5.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yu(function(){wy(null,e,null,null)}),t[Mo]=null}};function xy(e){this._internalRoot=e}xy.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pj();e={blockedOn:null,target:e,priority:t};for(var r=0;r<_l.length&&t!==0&&t<_l[r].priority;r++);_l.splice(r,0,e),r===0&&Rj(e)}};function G5(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _y(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function AN(){}function O7(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var c=m0(a);s.call(c)}}var a=QA(t,n,e,0,null,!1,!1,"",AN);return e._reactRootContainer=a,e[Mo]=a.current,Cp(e.nodeType===8?e.parentNode:e),yu(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var o=n;n=function(){var c=m0(l);o.call(c)}}var l=V5(e,0,!1,null,null,!1,!1,"",AN);return e._reactRootContainer=l,e[Mo]=l.current,Cp(e.nodeType===8?e.parentNode:e),yu(function(){wy(t,l,r,n)}),l}function ky(e,t,r,n,i){var s=r._reactRootContainer;if(s){var a=s;if(typeof i=="function"){var o=i;i=function(){var l=m0(a);o.call(l)}}wy(t,a,e,i)}else a=O7(r,t,e,i,n);return m0(a)}Aj=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Wh(t.pendingLanes);r!==0&&(h5(t,r|1),Vi(t,fn()),!(sr&6)&&(wf=fn()+500,cc()))}break;case 13:yu(function(){var n=$o(e,1);if(n!==null){var i=Ei();ua(n,e,1,i)}}),W5(e,1)}};p5=function(e){if(e.tag===13){var t=$o(e,134217728);if(t!==null){var r=Ei();ua(t,e,134217728,r)}W5(e,134217728)}};Tj=function(e){if(e.tag===13){var t=Vl(e),r=$o(e,t);if(r!==null){var n=Ei();ua(r,e,t,n)}W5(e,t)}};Pj=function(){return yr};Oj=function(e,t){var r=yr;try{return yr=e,t()}finally{yr=r}};Kw=function(e,t,r){switch(t){case"input":if(Bw(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=hy(n);if(!i)throw Error(Ve(90));cj(n),Bw(n,i)}}}break;case"textarea":dj(e,r);break;case"select":t=r.value,t!=null&&Ud(e,!!r.multiple,t,!1)}};yj=q5;bj=yu;var R7={usingClientEntryPoint:!1,Events:[mm,Ld,hy,gj,vj,q5]},Oh={findFiberByHostInstance:Zc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},L7={bundleType:Oh.bundleType,version:Oh.version,rendererPackageName:Oh.rendererPackageName,rendererConfig:Oh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Vo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_j(e),e===null?null:e.stateNode},findFiberByHostInstance:Oh.findFiberByHostInstance||P7,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Mg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mg.isDisabled&&Mg.supportsFiber)try{cy=Mg.inject(L7),Wa=Mg}catch{}}ps.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R7;ps.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!G5(t))throw Error(Ve(200));return T7(e,t,null,r)};ps.createRoot=function(e,t){if(!G5(e))throw Error(Ve(299));var r=!1,n="",i=eT;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=V5(e,1,!1,null,null,r,!1,n,i),e[Mo]=t.current,Cp(e.nodeType===8?e.parentNode:e),new K5(t)};ps.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Ve(188)):(e=Object.keys(e).join(","),Error(Ve(268,e)));return e=_j(t),e=e===null?null:e.stateNode,e};ps.flushSync=function(e){return yu(e)};ps.hydrate=function(e,t,r){if(!_y(t))throw Error(Ve(200));return ky(null,e,t,!0,r)};ps.hydrateRoot=function(e,t,r){if(!G5(e))throw Error(Ve(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",a=eT;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=QA(t,null,e,1,r??null,i,!1,s,a),e[Mo]=t.current,Cp(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new xy(t)};ps.render=function(e,t,r){if(!_y(t))throw Error(Ve(200));return ky(null,e,t,!1,r)};ps.unmountComponentAtNode=function(e){if(!_y(e))throw Error(Ve(40));return e._reactRootContainer?(yu(function(){ky(null,null,e,!1,function(){e._reactRootContainer=null,e[Mo]=null})}),!0):!1};ps.unstable_batchedUpdates=q5;ps.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!_y(r))throw Error(Ve(200));if(e==null||e._reactInternals===void 0)throw Error(Ve(38));return ky(e,t,r,!1,n)};ps.version="18.3.1-next-f1338f8080-20240426";function tT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tT)}catch(e){console.error(e)}}tT(),tj.exports=ps;var Iu=tj.exports;const rT=Ou(Iu);var nT,TN=Iu;nT=TN.createRoot,TN.hydrateRoot;const I7=1,F7=1e6;let wb=0;function D7(){return wb=(wb+1)%Number.MAX_SAFE_INTEGER,wb.toString()}const xb=new Map,PN=e=>{if(xb.has(e))return;const t=setTimeout(()=>{xb.delete(e),up({type:"REMOVE_TOAST",toastId:e})},F7);xb.set(e,t)},M7=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,I7)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?PN(r):e.toasts.forEach(n=>{PN(n.id)}),{...e,toasts:e.toasts.map(n=>
vendor: 13,913 bytes, line 40
40n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},Cv=[];let jv={toasts:[]};function up(e){jv=M7(jv,e),Cv.forEach(t=>{t(jv)})}function $7({...e}){const t=D7(),r=i=>up({type:"UPDATE_TOAST",toast:{...i,id:t}}),n=()=>up({type:"DISMISS_TOAST",toastId:t});return up({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||n()}}}),{id:t,dismiss:n,update:r}}function Y5(){const[e,t]=_.useState(jv);return _.useEffect(()=>(Cv.push(t),()=>{const r=Cv.indexOf(t);r>-1&&Cv.splice(r,1)}),[e]),{...e,toast:$7,dismiss:r=>up({type:"DISMISS_TOAST",toastId:r})}}function Ge(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function ON(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Sy(...e){return t=>{let r=!1;const n=e.map(i=>{const s=ON(i,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<n.length;i++){const s=n[i];typeof s=="function"?s():ON(e[i],null)}}}}function qt(...e){return _.useCallback(Sy(...e),e)}function B7(e,t){const r=_.createContext(t),n=s=>{const{children:a,...o}=s,l=_.useMemo(()=>o,Object.values(o));return u.jsx(r.Provider,{value:l,children:a})};n.displayName=e+"Provider";function i(s){const a=_.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[n,i]}function gs(e,t=[]){let r=[];function n(s,a){const o=_.createContext(a),l=r.length;r=[...r,a];const c=h=>{var w;const{scope:p,children:f,...y}=h,v=((w=p==null?void 0:p[e])==null?void 0:w[l])||o,b=_.useMemo(()=>y,Object.values(y));return u.jsx(v.Provider,{value:b,children:f})};c.displayName=s+"Provider";function d(h,p){var v;const f=((v=p==null?void 0:p[e])==null?void 0:v[l])||o,y=_.useContext(f);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[c,d]}const i=()=>{const s=r.map(a=>_.createContext(a));return function(o){const l=(o==null?void 0:o[e])||s;return _.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return i.scopeName=e,[n,q7(i,...t)]}function q7(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const a=n.reduce((o,{useScope:l,scopeName:c})=>{const h=l(s)[`__scope${c}`];return{...o,...h}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function tc(e){const t=z7(e),r=_.forwardRef((n,i)=>{const{children:s,...a}=n,o=_.Children.toArray(s),l=o.find(V7);if(l){const c=l.props.children,d=o.map(h=>h===l?_.Children.count(c)>1?_.Children.only(null):_.isValidElement(c)?c.props.children:null:h);return u.jsx(t,{...a,ref:i,children:_.isValidElement(c)?_.cloneElement(c,void 0,d):null})}return u.jsx(t,{...a,ref:i,children:s})});return r.displayName=`${e}.Slot`,r}var U7=tc("Slot");function z7(e){const t=_.forwardRef((r,n)=>{const{children:i,...s}=r;if(_.isValidElement(i)){const a=K7(i),o=W7(s,i.props);return i.type!==_.Fragment&&(o.ref=n?Sy(n,a):a),_.cloneElement(i,o)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var iT=Symbol("radix.slottable");function H7(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=iT,t}function V7(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===iT}function W7(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...o)=>{const l=s(...o);return i(...o),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}function K7(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Ny(e){const t=e+"CollectionProvider",[r,n]=gs(t),[i,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:b,children:w}=v,x=qe.useRef(null),S=qe.useRef(new Map).current;return u.jsx(i,{scope:b,itemMap:S,collectionRef:x,children:w})};a.displayName=t;const o=e+"CollectionSlot",l=tc(o),c=qe.forwardRef((v,b)=>{const{scope:w,children:x}=v,S=s(o,w),E=qt(b,S.collectionRef);return u.jsx(l,{ref:E,children:x})});c.displayName=o;const d=e+"CollectionItemSlot",h="data-radix-collection-item",p=tc(d),f=qe.forwardRef((v,b)=>{const{scope:w,children:x,...S}=v,E=qe.useRef(null),T=qt(b,E),W=s(d,w);return qe.useEffect(()=>(W.itemMap.set(E,{ref:E,...S}),()=>void W.itemMap.delete(E))),u.jsx(p,{[h]:"",ref:T,children:x})});f.displayName=d;function y(v){const b=s(e+"CollectionConsumer",v);return qe.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort((W,z)=>S.indexOf(W.ref.current)-S.indexOf(z.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:c,ItemSlot:f},y,n]}var G7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nt=G7.reduce((e,t)=>{const r=tc(`Primitive.${t}`),n=_.forwardRef((i,s)=>{const{asChild:a,...o}=i,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...o,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Z5(e,t){e&&Iu.flushSync(()=>e.dispatchEvent(t))}function gn(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Y7(e,t=globalThis==null?void 0:globalThis.document){const r=gn(e);_.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Z7="DismissableLayer",E2="dismissableLayer.update",X7="dismissableLayer.pointerDownOutside",J7="dismissableLayer.focusOutside",RN,sT=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fu=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:o,...l}=e,c=_.useContext(sT),[d,h]=_.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=_.useState({}),y=qt(t,z=>h(z)),v=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(b),x=d?v.indexOf(d):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,E=x>=w,T=e9(z=>{const B=z.target,P=[...c.branches].some(X=>X.contains(B));!E||P||(i==null||i(z),a==null||a(z),z.defaultPrevented||o==null||o())},p),W=t9(z=>{const B=z.target;[...c.branches].some(X=>X.contains(B))||(s==null||s(z),a==null||a(z),z.defaultPrevented||o==null||o())},p);return Y7(z=>{x===c.layers.size-1&&(n==null||n(z),!z.defaultPrevented&&o&&(z.preventDefault(),o()))},p),_.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(RN=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),LN(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=RN)}},[d,p,r,c]),_.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),LN())},[d,c]),_.useEffect(()=>{const z=()=>f({});return document.addEventListener(E2,z),()=>document.removeEventListener(E2,z)},[]),u.jsx(Nt.div,{...l,ref:y,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:Ge(e.onFocusCapture,W.onFocusCapture),onBlurCapture:Ge(e.onBlurCapture,W.onBlurCapture),onPointerDownCapture:Ge(e.onPointerDownCapture,T.onPointerDownCapture)})});Fu.displayName=Z7;var Q7="DismissableLayerBranch",aT=_.forwardRef((e,t)=>{const r=_.useContext(sT),n=_.useRef(null),i=qt(t,n);return _.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),u.jsx(Nt.div,{...e,ref:i})});aT.displayName=Q7;function e9(e,t=globalThis==null?void 0:globalThis.document){const r=gn(e),n=_.useRef(!1),i=_.useRef(()=>{});return _.useEffect(()=>{const s=o=>{if(o.target&&!n.current){let l=function(){oT(X7,r,c,{discrete:!0})};const c={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function t9(e,t=globalThis==null?void 0:globalThis.document){const r=gn(e),n=_.useRef(!1);return _.useEffect(()=>{const i=s=>{s.target&&!n.current&&oT(J7,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function LN(){const e=new CustomEvent(E2);document.dispatchEvent(e)}function oT(e,t,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?Z5(i,s):i.dispatchEvent(s)}var r9=Fu,n9=aT,zn=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},i9="Portal",Mf=_.forwardRef((e,t)=>{var o;const{container:r,...n}=e,[i,s]=_.useState(!1);zn(()=>s(!0),[]);const a=r||i&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return a?rT.createPortal(u.jsx(Nt.div,{...n,ref:t}),a):null});Mf.displayName=i9;function s9(e,t){return _.useReducer((r,n)=>t[r][n]??r,e)}var ti=e=>{const{present:t,children:r}=e,n=a9(t),i=typeof r=="function"?r({present:n.isPresent}):_.Children.only(r),s=qt(n.ref,o9(i));return typeof r=="function"||n.isPresent?_.cloneElement(i,{ref:s}):null};ti.displayName="Presence";function a9(e){const[t,r]=_.useState(),n=_.useRef(null),i=_.useRef(e),s=_.useRef("none"),a=e?"mounted":"unmounted",[o,l]=s9(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const c=$g(n.current);s.current=o==="mounted"?c:"none"},[o]),zn(()=>{const c=n.current,d=i.current;if(d!==e){const p=s.current,f=$g(c);e?l("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==f?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),zn(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,h=f=>{const v=$g(n.current).includes(f.animationName);if(f.target===t&&v&&(l("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},p=f=>{f.target===t&&(s.current=$g(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:_.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function $g(e){return(e==null?void 0:e.animationName)||"none"}function o9(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var l9=i5[" useInsertionEffect ".trim().toString()]||zn;function qo({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,s,a]=c9({defaultProp:t,onChange:r}),o=e!==void 0,l=o?e:i;{const d=_.useRef(e!==void 0);_.useEffect(()=>{const h=d.current;h!==o&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=o},[o,n])}const c=_.useCallback(d=>{var h;if(o){const p=u9(d)?d(e):d;p!==e&&((h=a.current)==null||h.call(a,p))}else s(d)},[o,e,s,a]);return[l,c]}function c9({defaultProp:e,onChange:t}){const[r,n]=_.useState(e),i=_.useRef(r),s=_.useRef(t);return l9(()=>{s.current=t},[t]),_.useEffect(()=>{var a;i.current!==r&&((a=s.current)==null||a.call(s,r),i.current=r)},[r,i]),[r,n,s]}function u9(e){return typeof e=="function"}var lT=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),d9="VisuallyHidden",Ey=_.forwardRef((e,t)=>u.jsx(Nt.span,{...e,ref:t,style:{...lT,...e.style}}));Ey.displayName=d9;var f9=Ey,X5="ToastProvider",[J5,h9,p9]=Ny("Toast"),[cT,voe]=gs("Toast",[p9]),[m9,Cy]=cT(X5),uT=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:a}=e,[o,l]=_.useState(null),[c,d]=_.useState(0),h=_.useRef(!1),p=_.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${X5}\`. Expected non-empty \`string\`.`),u.jsx(J5.Provider,{scope:t,children:u.jsx(m9,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:s,toastCount:c,viewport:o,onViewportChange:l,onToastAdd:_.useCallback(()=>d(f=>f+1),[]),onToastRemove:_.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:a})})};uT.displayName=X5;var dT="ToastViewport",g9=["F8"],C2="toast.viewportPause",j2="toast.viewportResume",fT=_.forwardRef((e,t)=>
40{const{__scopeToast:r,hotkey:n=g9,label:i="Notifications ({hotkey})",...s}=e,a=Cy(dT,r),o=h9(r),l=_.useRef(null),c=_.useRef(null),d=_.useRef(null),h=_.useRef(null),p=qt(t,h,a.onViewportChange),f=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=a.toastCount>0;_.useEffect(()=>{const b=w=>{var S;n.length!==0&&n.every(E=>w[E]||w.code===E)&&((S=h.current)==null||S.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[n]),_.useEffect(()=>{const b=l.current,w=h.current;if(y&&b&&w){const x=()=>{if(!a.isClosePausedRef.current){const W=new CustomEvent(C2);w.dispatchEvent(W),a.isClosePausedRef.current=!0}},S=()=>{if(a.isClosePausedRef.current){const W=new CustomEvent(j2);w.dispatchEvent(W),a.isClosePausedRef.current=!1}},E=W=>{!b.contains(W.relatedTarget)&&S()},T=()=>{b.contains(document.activeElement)||S()};return b.addEventListener("focusin",x),b.addEventListener("focusout",E),b.addEventListener("pointermove",x),b.addEventListener("pointerleave",T),window.addEventListener("blur",x),window.addEventListener("focus",S),()=>{b.removeEventListener("focusin",x),b.removeEventListener("focusout",E),b.removeEventListener("pointermove",x),b.removeEventListener("pointerleave",T),window.removeEventListener("blur",x),window.removeEventListener("focus",S)}}},[y,a.isClosePausedRef]);const v=_.useCallback(({tabbingDirection:b})=>{const x=o().map(S=>{const E=S.ref.current,T=[E,...A9(E)];return b==="forwards"?T:T.reverse()});return(b==="forwards"?x.reverse():x).flat()},[o]);return _.useEffect(()=>{const b=h.current;if(b){const w=x=>{var T,W,z;const S=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!S){const B=document.activeElement,P=x.shiftKey;if(x.target===b&&P){(T=c.current)==null||T.focus();return}const A=v({tabbingDirection:P?"backwards":"forwards"}),K=A.findIndex(R=>R===B);_b(A.slice(K+1))?x.preventDefault():P?(W=c.current)==null||W.focus():(z=d.current)==null||z.focus()}};return b.addEventListener("keydown",w),()=>b.removeEventListener("keydown",w)}},[o,v]),u.jsxs(n9,{ref:l,role:"region","aria-label":i.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&u.jsx(A2,{ref:c,onFocusFromOutsideViewport:()=>{const b=v({tabbingDirection:"forwards"});_b(b)}}),u.jsx(J5.Slot,{scope:r,children:u.jsx(Nt.ol,{tabIndex:-1,...s,ref:p})}),y&&u.jsx(A2,{ref:d,onFocusFromOutsideViewport:()=>{const b=v({tabbingDirection:"backwards"});_b(b)}})]})});fT.displayName=dT;var hT="ToastFocusProxy",A2=_.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=e,s=Cy(hT,r);return u.jsx(Ey,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:a=>{var c;const o=a.relatedTarget;!((c=s.viewport)!=null&&c.contains(o))&&n()}})});A2.displayName=hT;var vm="Toast",v9="toast.swipeStart",y9="toast.swipeMove",b9="toast.swipeCancel",w9="toast.swipeEnd",pT=_.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:i,onOpenChange:s,...a}=e,[o,l]=qo({prop:n,defaultProp:i??!0,onChange:s,caller:vm});return u.jsx(ti,{present:r||o,children:u.jsx(k9,{open:o,...a,ref:t,onClose:()=>l(!1),onPause:gn(e.onPause),onResume:gn(e.onResume),onSwipeStart:Ge(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ge(e.onSwipeMove,c=>{const{x:d,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:Ge(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ge(e.onSwipeEnd,c=>{const{x:d,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});pT.displayName=vm;var[x9,_9]=cT(vm,{onClose(){}}),k9=_.forwardRef((e,t)=>
40{const{__scopeToast:r,type:n="foreground",duration:i,open:s,onClose:a,onEscapeKeyDown:o,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:p,onSwipeEnd:f,...y}=e,v=Cy(vm,r),[b,w]=_.useState(null),x=qt(t,R=>w(R)),S=_.useRef(null),E=_.useRef(null),T=i||v.duration,W=_.useRef(0),z=_.useRef(T),B=_.useRef(0),{onToastAdd:P,onToastRemove:X}=v,O=gn(()=>{var le;(b==null?void 0:b.contains(document.activeElement))&&((le=v.viewport)==null||le.focus()),a()}),A=_.useCallback(R=>{!R||R===1/0||(window.clearTimeout(B.current),W.current=new Date().getTime(),B.current=window.setTimeout(O,R))},[O]);_.useEffect(()=>{const R=v.viewport;if(R){const le=()=>{A(z.current),c==null||c()},oe=()=>{const se=new Date().getTime()-W.current;z.current=z.current-se,window.clearTimeout(B.current),l==null||l()};return R.addEventListener(C2,oe),R.addEventListener(j2,le),()=>{R.removeEventListener(C2,oe),R.removeEventListener(j2,le)}}},[v.viewport,T,l,c,A]),_.useEffect(()=>{s&&!v.isClosePausedRef.current&&A(T)},[s,T,v.isClosePausedRef,A]),_.useEffect(()=>(P(),()=>X()),[P,X]);const K=_.useMemo(()=>b?xT(b):null,[b]);return v.viewport?u.jsxs(u.Fragment,{children:[K&&u.jsx(S9,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),u.jsx(x9,{scope:r,onClose:O,children:Iu.createPortal(u.jsx(J5.ItemSlot,{scope:r,children:u.jsx(r9,{asChild:!0,onEscapeKeyDown:Ge(o,()=>{v.isFocusedToastEscapeKeyDownRef.current||O(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(Nt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":v.swipeDirection,...y,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ge(e.onKeyDown,R=>{R.key==="Escape"&&(o==null||o(R.nativeEvent),R.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,O()))}),onPointerDown:Ge(e.onPointerDown,R=>{R.button===0&&(S.current={x:R.clientX,y:R.clientY})}),onPointerMove:Ge(e.onPointerMove,R=>{if(!S.current)return;const le=R.clientX-S.current.x,oe=R.clientY-S.current.y,se=!!E.current,F=["left","right"].includes(v.swipeDirection),D=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,$=F?D(0,le):0,M=F?0:D(0,oe),j=R.pointerType==="touch"?10:2,U={x:$,y:M},H={originalEvent:R,delta:U};se?(E.current=U,Bg(y9,h,H,{discrete:!1})):IN(U,v.swipeDirection,j)?(E.current=U,Bg(v9,d,H,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(le)>j||Math.abs(oe)>j)&&(S.current=null)}),onPointerUp:Ge(e.onPointerUp,R=>{const le=E.current,oe=R.target;if(oe.hasPointerCapture(R.pointerId)&&oe.releasePointerCapture(R.pointerId),E.current=null,S.current=null,le){const se=R.currentTarget,F={originalEvent:R,delta:le};IN(le,v.swipeDirection,v.swipeThreshold)?Bg(w9,f,F,{discrete:!0}):Bg(b9,p,F,{discrete:!0}),se.addEventListener("click",D=>D.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),S9=e=>{const{__scopeToast:t,children:r,...n}=e,i=Cy(vm,t),[s,a]=_.useState(!1),[o,l]=_.useState(!1);return C9(()=>a(!0)),_.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),o?null:u.jsx(Mf,{asChild:!0,children:u.jsx(Ey,{...n,children:s&&u.jsxs(u.Fragment,{children:[i.label," ",r]})})})},N9="ToastTitle",mT=_.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(Nt.div,{...n,ref:t})});mT.displayName=N9;var E9="ToastDescription",gT=_.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(Nt.div,{...n,ref:t})});gT.displayName=E9;var vT="ToastAction",yT=_.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?u.jsx(wT,{altText:r,asChild:!0,children:u.jsx(Q5,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${vT}\`. Expected non-empty \`string\`.`),null)});yT.displayName=vT;var bT="ToastClose",Q5=_.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,i=_9(bT,r);return u.jsx(wT,{asChild:!0,children:u.jsx(Nt.button,{type:"button",...n,ref:t,onClick:Ge(e.onClick,i.onClose)})})});Q5.displayName=bT;var wT=_.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...i}=e;return u.jsx(Nt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...i,ref:t})});function xT(e){const t=[];
vendor: 7,960 bytes, lines 40-110
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),j9(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",s=n.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const a=n.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...xT(n))}}),t}function Bg(e,t,r,{discrete:n}){const i=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?Z5(i,s):i.dispatchEvent(s)}var IN=(e,t,r=0)=>{const n=Math.abs(e.x),i=Math.abs(e.y),s=n>i;return t==="left"||t==="right"?s&&n>r:!s&&i>r};function C9(e=()=>{}){const t=gn(e);zn(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function j9(e){return e.nodeType===e.ELEMENT_NODE}function A9(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function _b(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var T9=uT,_T=fT,kT=pT,ST=mT,NT=gT,ET=yT,CT=Q5;function jT(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=jT(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function AT(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=jT(e))&&(n&&(n+=" "),n+=t);return n}const FN=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,DN=AT,e_=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return DN(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:s}=t,a=Object.keys(i).map(c=>{const d=r==null?void 0:r[c],h=s==null?void 0:s[c];if(d===null)return null;const p=FN(d)||FN(h);return i[c][p]}),o=r&&Object.entries(r).reduce((c,d)=>{let[h,p]=d;return p===void 0||(c[h]=p),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:h,className:p,...f}=d;return Object.entries(f).every(y=>{let[v,b]=y;return Array.isArray(b)?b.includes({...s,...o}[v]):{...s,...o}[v]===b})?[...c,h,p]:c},[]);return DN(e,a,l,r==null?void 0:r.class,r==null?void 0:r.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const P9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),TT=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var O9={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.462.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const R9=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:s,iconNode:a,...o},l)=>_.createElement("svg",{ref:l,...O9,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:TT("lucide",i),...o},[...a.map(([c,d])=>_.createElement(c,d)),...Array.isArray(s)?s:[s]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const Ct=(e,t)=>{const r=_.forwardRef(({className:n,...i},s)=>_.createElement(R9,{ref:s,iconNode:t,className:TT(`lucide-${P9(e)}`,n),...i}));return r.displayName=`${e}`,r};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const kb=Ct("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
66 * @license lucide-react v0.462.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const MN=Ct("Armchair",[["path",{d:"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3",key:"irtipd"}],["path",{d:"M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"1qyhux"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]]);/**
71 * @license lucide-react v0.462.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const Ln=Ct("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
76 * @license lucide-react v0.462.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const Jr=Ct("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
81 * @license lucide-react v0.462.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const L9=Ct("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
86 * @license lucide-react v0.462.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const I9=Ct("Baby",[["path",{d:"M9 12h.01",key:"157uk2"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"5yv0yz"}]]);/**
91 * @license lucide-react v0.462.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const Sb=Ct("BedDouble",[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]]);/**
96 * @license lucide-react v0.462.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const F9=Ct("Bike",[["circle",{cx:"18.5",cy:"17.5",r:"3.5",key:"15x4ox"}],["circle",{cx:"5.5",cy:"17.5",r:"3.5",key:"1noe27"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["path",{d:"M12 17.5V14l-3-3 4-3 2 3h2",key:"1npguv"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const D9=Ct("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
106 * @license lucide-react v0.462.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const jy=Ct("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
110],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
111 * @license lucide-react v0.462.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const Cs=Ct("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
116 * @license lucide-react v0.462.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const ym=Ct("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
121 * @license lucide-react v0.462.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const PT=Ct("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
126 * @license lucide-react v0.462.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const OT=Ct("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
131 * @license lucide-react v0.462.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const g0=Ct("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
136 * @license lucide-react v0.462.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const M9=Ct("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
141 * @license lucide-react v0.462.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const T2=Ct("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
146 * @license lucide-react v0.462.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const t_=Ct("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
151 * @license lucide-react v0.462.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const $9=Ct("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
156 * @license lucide-react v0.462.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const RT=Ct("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
161 * @license lucide-react v0.462.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const B9=Ct("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
166 * @license lucide-react v0.462.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const q9=Ct("Dumbbell",[["path",{d:"M14.4 14.4 9.6 9.6",key:"ic80wn"}],["path",{d:"M18.657 21.485a2 2 0 1 1-2.829-2.828l-1.767 1.768a2 2 0 1 1-2.829-2.829l6.364-6.364a2 2 0 1 1 2.829 2.829l-1.768 1.767a2 2 0 1 1 2.828 2.829z",key:"nnl7wr"}],["path",{d:"m21.5 21.5-1.4-1.4",key:"1f1ice"}],["path",{d:"M3.9 3.9 2.5 2.5",key:"1evmna"}],["path",{d:"M6.404 12.768a2 2 0 1 1-2.829-2.829l1.768-1.767a2 2 0 1 1-2.828-2.829l2.828-2.828a2 2 0 1 1 2.829 2.828l1.767-1.768a2 2 0 1 1 2.829 2.829z",key:"yhosts"}]]);/**
171 * @license lucide-react v0.462.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const U9=Ct("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
176 * @license lucide-react v0.462.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const Du=Ct("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
181 * @license lucide-react v0.462.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const bu=Ct("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
186 * @license lucide-react v0.462.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const z9=Ct("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
191 * @license lucide-react v0.462.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const $N=Ct("Lamp",[["path",{d:"M8 2h8l4 10H4L8 2Z",key:"9dma5w"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M8 22v-2c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v2H8Z",key:"mwf4oh"}]]);/**
196 * @license lucide-react v0.462.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const H9=Ct("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/**
201 * @license lucide-react v0.462.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const r_=Ct("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
206 * @license lucide-react v0.462.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const v0=Ct("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
211 * @license lucide-react v0.462.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const Fp=Ct("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
216 * @license lucide-react v0.462.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const V9=Ct("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
221 * @license lucide-react v0.462.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const W9=Ct("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
226 * @license lucide-react v0.462.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const BN=Ct("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
231 * @license lucide-react v0.462.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const n_=Ct("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
236 * @license lucide-react v0.462.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const y0=Ct("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
241 * @license lucide-react v0.462.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const K9=Ct("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
246 * @license lucide-react v0.462.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const G9=Ct("Refrigerator",[["path",{d:"M5 6a4 4 0 0 1 4-4h6a4 4 0 0 1 4 4v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6Z",key:"fpq118"}
250],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M15 7v6",key:"1nx30x"}]]);/**
251 * @license lucide-react v0.462.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const LT=Ct("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
256 * @license lucide-react v0.462.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const Y9=Ct("Shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]]);/**
261 * @license lucide-react v0.462.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const qN=Ct("Sofa",[["path",{d:"M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3",key:"1dgpiv"}],["path",{d:"M2 16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"xacw8m"}],["path",{d:"M4 18v2",key:"jwo5n2"}],["path",{d:"M20 18v2",key:"1ar1qi"}],["path",{d:"M12 4v9",key:"oqhhn3"}]]);/**
266 * @license lucide-react v0.462.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const bm=Ct("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
271 * @license lucide-react v0.462.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const Z9=Ct("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
276 * @license lucide-react v0.462.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const IT=Ct("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/**
281 * @license lucide-react v0.462.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const UN=Ct("Tv",[["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",ry:"2",key:"10ag99"}],["polyline",{points:"17 2 12 7 7 2",key:"11pgbg"}]]);/**
286 * @license lucide-react v0.462.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const X9=Ct("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
291 * @license lucide-react v0.462.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const J9=Ct("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
296 * @license lucide-react v0.462.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const Nb=Ct("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/**
301 * @license lucide-react v0.462.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const wu=Ct("Warehouse",[["path",{d:"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z",key:"gksnxg"}],["path",{d:"M6 18h12",key:"9pbo8z"}],["path",{d:"M6 14h12",key:"4cwo0f"}],["rect",{width:"12",height:"12",x:"6",y:"10",key:"apd30q"}]]);/**
306 * @license lucide-react v0.462.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const i_=Ct("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 9,101 bytes, line 310
310],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),s_="-",Q9=e=>{const t=t$(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const o=a.split(s_);return o[0]===""&&o.length!==1&&o.shift(),FT(o,t)||e$(a)},getConflictingClassGroupIds:(a,o)=>{const l=r[a]||[];return o&&n[a]?[...l,...n[a]]:l}}},FT=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?FT(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(s_);return(a=t.validators.find(({validator:o})=>o(s)))==null?void 0:a.classGroupId},zN=/^\[(.+)\]$/,e$=e=>{if(zN.test(e)){const t=zN.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},t$=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return n$(Object.entries(e.classGroups),r).forEach(([s,a])=>{P2(a,n,s,t)}),n},P2=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:HN(t,i);s.classGroupId=r;return}if(typeof i=="function"){if(r$(i)){P2(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,a])=>{P2(a,HN(t,s),r,n)})})},HN=(e,t)=>{let r=e;return t.split(s_).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},r$=e=>e.isThemeGetter,n$=(e,t)=>t?e.map(([r,n])=>{const i=n.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,o])=>[t+a,o])):s);return[r,i]}):e,i$=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(s,a)=>{r.set(s,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=n.get(s))!==void 0)return i(s,a),a},set(s,a){r.has(s)?r.set(s,a):i(s,a)}}},DT="!",s$=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],s=t.length,a=o=>{const l=[];let c=0,d=0,h;for(let b=0;b<o.length;b++){let w=o[b];if(c===0){if(w===i&&(n||o.slice(b,b+s)===t)){l.push(o.slice(d,b)),d=b+s;continue}if(w==="/"){h=b;continue}}w==="["?c++:w==="]"&&c--}const p=l.length===0?o:o.substring(d),f=p.startsWith(DT),y=f?p.substring(1):p,v=h&&h>d?h-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:v}};return r?o=>r({className:o,parseClassName:a}):a},a$=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},o$=e=>({cache:i$(e.cacheSize),parseClassName:s$(e),...Q9(e)}),l$=/\s+/,c$=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,s=[],a=e.trim().split(l$);let o="";for(let l=a.length-1;l>=0;l-=1){const c=a[l],{modifiers:d,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:f}=r(c);let y=!!f,v=n(y?p.substring(0,f):p);if(!v){if(!y){o=c+(o.length>0?" "+o:o);continue}if(v=n(p),!v){o=c+(o.length>0?" "+o:o);continue}y=!1}const b=a$(d).join(":"),w=h?b+DT:b,x=w+v;if(s.includes(x))continue;s.push(x);const S=i(v,y);for(let E=0;E<S.length;++E){const T=S[E];s.push(w+T)}o=c+(o.length>0?" "+o:o)}return o};function u$(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=MT(t))&&(n&&(n+=" "),n+=r);return n}const MT=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=MT(e[n]))&&(r&&(r+=" "),r+=t);return r};function d$(e,...t){let r,n,i,s=a;function a(l){const c=t.reduce((d,h)=>h(d),e());return r=o$(c),n=r.cache.get,i=r.cache.set,s=o,o(l)}function o(l){const c=n(l);if(c)return c;const d=c$(l,r);return i(l,d),d}return function(){return s(u$.apply(null,arguments))}}const Rr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},$T=/^\[(?:([a-z-]+):)?(.+)\]$/i,f$=/^\d+\/\d+$/,h$=new Set(["px","full","screen"]),p$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,m$=/\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$/,g$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,v$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,y$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wo=e=>Gd(e)||h$.has(e)||f$.test(e),ul=e=>$f(e,"length",E$),Gd=e=>!!e&&!Number.isNaN(Number(e)),Eb=e=>$f(e,"number",Gd),Rh=e=>!!e&&Number.isInteger(Number(e)),b$=e=>e.endsWith("%")&&Gd(e.slice(0,-1)),Wt=e=>$T.test(e),dl=e=>p$.test(e),w$=new Set(["length","size","percentage"]),x$=e=>$f(e,w$,BT),_$=e=>$f(e,"position",BT),k$=new Set(["image","url"]),S$=e=>$f(e,k$,j$),N$=e=>$f(e,"",C$),Lh=()=>!0,$f=(e,t,r)=>{const n=$T.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},E$=e=>m$.test(e)&&!g$.test(e),BT=()=>!1,C$=e=>v$.test(e),j$=e=>y$.test(e),A$=()=>{const e=Rr("colors"),t=Rr("spacing"),r=Rr("blur"),n=Rr("brightness"),i=Rr("borderColor"),s=Rr("borderRadius"),a=Rr("borderSpacing"),o=Rr("borderWidth"),l=Rr("contrast"),c=Rr("grayscale"),d=Rr("hueRotate"),h=Rr("invert"),p=Rr("gap"),f=Rr("gradientColorStops"),y=Rr("gradientColorStopPositions"),v=Rr("inset"),b=Rr("margin"),w=Rr("opacity"),x=Rr("padding"),S=Rr("saturate"),E=Rr("scale"),T=Rr("sepia"),W=Rr("skew"),z=Rr("space"),B=Rr("translate"),P=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",Wt,t],A=()=>[Wt,t],K=()=>["",wo,ul],R=()=>["auto",Gd,Wt],le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],oe=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",Wt],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[Gd,Wt];return{cacheSize:500,separator:":",theme:{colors:[Lh],spacing:[wo,ul],blur:["none","",dl,Wt],brightness:M(),borderColor:[e],borderRadius:["none","","full",dl,Wt],borderSpacing:A(),borderWidth:K(),contrast:M(),grayscale:D(),hueRotate:M(),invert:D(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[b$,ul],inset:O(),margin:O(),opacity:M(),padding:A(),saturate:M(),scale:M(),sepia:D(),skew:M(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",Wt]}],container:["container"],columns:[{columns:[dl]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:[...le(),Wt]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Rh,Wt]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Wt]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",Rh,Wt]}],"grid-cols":[{"grid-cols":[Lh]}],"col-start-end":[{col:["auto",{span:["full",Rh,Wt]},Wt]}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":[Lh]}],"row-start-end":[{row:["auto",{span:[Rh,Wt]},Wt]}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Wt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Wt]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...F()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...F(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...F(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}
vendor: 8,346 bytes, line 310
310],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Wt,t]}],"min-w":[{"min-w":[Wt,t,"min","max","fit"]}],"max-w":[{"max-w":[Wt,t,"none","full","min","max","fit","prose",{screen:[dl]},dl]}],h:[{h:[Wt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Wt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Wt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Wt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",dl,ul]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Eb]}],"font-family":[{font:[Lh]}],"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-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Wt]}],"line-clamp":[{"line-clamp":["none",Gd,Eb]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",wo,Wt]}],"list-image":[{"list-image":["none",Wt]}],"list-style-type":[{list:["none","disc","decimal",Wt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",wo,ul]}],"underline-offset":[{"underline-offset":["auto",wo,Wt]}],"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:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Wt]}],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",Wt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...le(),_$]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",x$]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},S$]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...oe(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:oe()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...oe()]}],"outline-offset":[{"outline-offset":[wo,Wt]}],"outline-w":[{outline:[wo,ul]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[wo,ul]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",dl,N$]}],"shadow-color":[{shadow:[Lh]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",dl,Wt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[S]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"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",Wt]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",Wt]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",Wt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Rh,Wt]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[W]}],"skew-y":[{"skew-y":[W]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Wt]}],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",Wt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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"]}
vendor: 4,647 bytes, line 310
310],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",Wt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[wo,ul,Eb]}],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-s","border-color-e","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"]}}},T$=d$(A$);function Ue(...e){return T$(AT(e))}const P$=T9,qT=_.forwardRef(({className:e,...t},r)=>u.jsx(_T,{ref:r,className:Ue("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));qT.displayName=_T.displayName;const O$=e_("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),UT=_.forwardRef(({className:e,variant:t,...r},n)=>u.jsx(kT,{ref:n,className:Ue(O$({variant:t}),e),...r}));UT.displayName=kT.displayName;const R$=_.forwardRef(({className:e,...t},r)=>u.jsx(ET,{ref:r,className:Ue("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));R$.displayName=ET.displayName;const zT=_.forwardRef(({className:e,...t},r)=>u.jsx(CT,{ref:r,className:Ue("absolute right-2 top-2 rounded-md p-1 text-foreground
310/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(i_,{className:"h-4 w-4"})}));zT.displayName=CT.displayName;const HT=_.forwardRef(({className:e,...t},r)=>u.jsx(ST,{ref:r,className:Ue("text-sm font-semibold",e),...t}));HT.displayName=ST.displayName;const VT=_.forwardRef(({className:e,...t},r)=>u.jsx(NT,{ref:r,className:Ue("text-sm opacity-90",e),...t}));VT.displayName=NT.displayName;function L$(){const{toasts:e}=Y5();return u.jsxs(P$,{children:[e.map(function({id:t,title:r,description:n,action:i,...s}){return u.jsxs(UT,{...s,children:[u.jsxs("div",{className:"grid gap-1",children:[r&&u.jsx(HT,{children:r}),n&&u.jsx(VT,{children:n})]}),i,u.jsx(zT,{})]},t)}),u.jsx(qT,{})]})}var VN=["light","dark"],I$="(prefers-color-scheme: dark)",F$=_.createContext(void 0),D$={setTheme:e=>{},themes:[]},M$=()=>{var e;return(e=_.useContext(F$))!=null?e:D$};_.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:s,value:a,attrs:o,nonce:l})=>{let c=s==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${o.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=i?VN.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(y,v=!1,b=!0)=>{let w=a?a[y]:y,x=v?y+"|| ''":`'${w}'`,S="";return i&&b&&!v&&VN.includes(y)&&(S+=`d.style.colorScheme = '${y}';`),r==="class"?v||w?S+=`c.add(${x})`:S+="null":w&&(S+=`d[s](n,${x})`),S},f=e?`!function(){${d}${p(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${I$}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${p(a?"x[e]":"e",!0)}}${c?"":"else{"+p(s,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${p(a?"x[e]":"e",!0)}}else{${p(s,!1,!1)};}${h}}catch(t){}}();`;return _.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var $$=e=>{switch(e){case"success":return U$;case"info":return H$;case"warning":return z$;case"error":return V$;default:return null}},B$=Array(12).fill(0),q$=({visible:e,className:t})=>qe.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},qe.createElement("div",{className:"sonner-spinner"},B$.map((r,n)=>qe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),U$=qe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},qe.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),z$=qe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},qe.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),H$=qe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},qe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),V$=qe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},qe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),W$=qe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},qe.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),qe.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),K$=()=>{let[e,t]=qe.useState(document.hidden);return qe.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},O2=1,G$=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>
310{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;let{message:n,...i}=t,s=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:O2++,a=this.toasts.find(l=>l.id===s),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),a?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:n}),{...l,...t,id:s,dismissible:o,title:n}):l):this.addToast({title:n,...i,dismissible:o,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:t,dismiss:!0})),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let i=t instanceof Promise?t:t(),s=n!==void 0,a,o=i.then(async c=>{if(a=["resolve",c],qe.isValidElement(c))s=!1,this.create({id:n,type:"default",message:c});else if(Z$(c)&&!c.ok){s=!1;let d=typeof r.error=="function"?await r.error(`HTTP error! status: ${c.status}`):r.error,h=typeof r.description=="function"?await r.description(`HTTP error! status: ${c.status}`):r.description;this.create({id:n,type:"error",message:d,description:h})}else if(r.success!==void 0){s=!1;let d=typeof r.success=="function"?await r.success(c):r.success,h=typeof r.description=="function"?await r.description(c):r.description;this.create({id:n,type:"success",message:d,description:h})}}).catch(async c=>{if(a=["reject",c],r.error!==void 0){s=!1;let d=typeof r.error=="function"?await r.error(c):r.error,h=typeof r.description=="function"?await r.description(c):r.description;this.create({id:n,type:"error",message:d,description:h})}}).finally(()=>{var c;s&&(this.dismiss(n),n=void 0),(c=r.finally)==null||c.call(r)}),l=()=>new Promise((c,d)=>o.then(()=>a[0]==="reject"?d(a[1]):c(a[1])).catch(d));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(t,r)=>{let n=(r==null?void 0:r.id)||O2++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Mi=new G$,Y$=(e,t)=>{let r=(t==null?void 0:t.id)||O2++;return Mi.addToast({title:e,...t,id:r}),r},Z$=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",X$=Y$,J$=()=>Mi.toasts,Q$=()=>Mi.getActiveToasts();Object.assign(X$,{success:Mi.success,info:Mi.info,warning:Mi.warning,error:Mi.error,custom:Mi.custom,message:Mi.message,promise:Mi.promise,dismiss:Mi.dismiss,loading:Mi.loading},{getHistory:J$,getToasts:Q$});function eB(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}eB(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
310left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
310:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
310--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
311`);function qg(e){return e.label!==void 0}var tB=3,rB="32px",nB="16px",WN=4e3,iB=356,sB=14,aB=20,oB=200;function Ks(...e){return e.filter(Boolean).join(" ")}function lB(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var cB=e=>{var t,r,n,i,s,a,o,l,c,d,h;let{invert:p,toast:f,unstyled:y,interacting:v,setHeights:b,visibleToasts:w,heights:x,index:S,toasts:E,expanded:T,removeToast:W,defaultRichColors:z,closeButton:B,style:P,cancelButtonStyle:X,actionButtonStyle:O,className:A="",descriptionClassName:K="",duration:R,position:le,gap:oe,loadingIcon:se,expandByDefault:F,classNames:D,icons:$,closeButtonAriaLabel:M="Close toast",pauseWhenPageIsHidden:j}=e,[U,H]=qe.useState(null),[re,te]=qe.useState(null),[Q,ce]=qe.useState(!1),[de,he]=qe.useState(!1),[we,ve]=qe.useState(!1),[Le,je]=qe.useState(!1),[Z,Pe]=qe.useState(!1),[et,Ne]=qe.useState(0),[Ce,ee]=qe.useState(0),ue=qe.useRef(f.duration||R||WN),me=qe.useRef(null),Ee=qe.useRef(null),De=S===0,_e=S+1<=w,Oe=f.type,Ze=f.dismissible!==!1,Ke=f.className||"",ze=f.descriptionClassName||"",vt=qe.useMemo(()=>x.findIndex(G=>G.toastId===f.id)||0,[x,f.id]),Xe=qe.useMemo(()=>{var G;return(G=f.closeButton)!=null?G:B},[f.closeButton,B]),rr=qe.useMemo(()=>f.duration||R||WN,[f.duration,R]),be=qe.useRef(0),Ae=qe.useRef(0),Qe=qe.useRef(0),ut=qe.useRef(null),[tt,jt]=le.split("-"),wt=qe.useMemo(()=>x.reduce((G,Je,Ut)=>Ut>=vt?G:G+Je.height,0),[x,vt]),St=K$(),dr=f.invert||p,Lt=Oe==="loading";Ae.current=qe.useMemo(()=>vt*oe+wt,[vt,wt]),qe.useEffect(()=>{ue.current=rr},[rr]),qe.useEffect(()=>{ce(!0)},[]),qe.useEffect(()=>{let G=Ee.current;if(G){let Je=G.getBoundingClientRect().height;return ee(Je),b(Ut=>[{toastId:f.id,height:Je,position:f.position},...Ut]),()=>b(Ut=>Ut.filter(Tr=>Tr.toastId!==f.id))}},[b,f.id]),qe.useLayoutEffect(()=>{if(!Q)return;let G=Ee.current,Je=G.style.height;G.style.height="auto";let Ut=G.getBoundingClientRect().height;G.style.height=Je,ee(Ut),b(Tr=>Tr.find(it=>it.toastId===f.id)?Tr.map(it=>it.toastId===f.id?{...it,height:Ut}:it):[{toastId:f.id,height:Ut,position:f.position},...Tr])},[Q,f.title,f.description,b,f.id]);let ft=qe.useCallback(()=>{he(!0),Ne(Ae.current),b(G=>G.filter(Je=>Je.toastId!==f.id)),setTimeout(()=>{W(f)},oB)},[f,W,b,Ae]);qe.useEffect(()=>{if(f.promise&&Oe==="loading"||f.duration===1/0||f.type==="loading")return;let G;return T||v||j&&St?(()=>{if(Qe.current<be.current){let Je=new Date().getTime()-be.current;ue.current=ue.current-Je}
311Qe.current=new Date().getTime()})():ue.current!==1/0&&(be.current=new Date().getTime(),G=setTimeout(()=>{var Je;(Je=f.onAutoClose)==null||Je.call(f,f),ft()},ue.current)),()=>clearTimeout(G)},[T,v,f,Oe,j,St,ft]),qe.useEffect(()=>{f.delete&&ft()},[ft,f.delete]);function Qt(){var G,Je,Ut;return $!=null&&$.loading?qe.createElement("div",{className:Ks(D==null?void 0:D.loader,(G=f==null?void 0:f.classNames)==null?void 0:G.loader,"sonner-loader"),"data-visible":Oe==="loading"},$.loading):se?qe.createElement("div",{className:Ks(D==null?void 0:D.loader,(Je=f==null?void 0:f.classNames)==null?void 0:Je.loader,"sonner-loader"),"data-visible":Oe==="loading"},se):qe.createElement(q$,{className:Ks(D==null?void 0:D.loader,(Ut=f==null?void 0:f.classNames)==null?void 0:Ut.loader),visible:Oe==="loading"})}return qe.createElement("li",{tabIndex:0,ref:Ee,className:Ks(A,Ke,D==null?void 0:D.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,D==null?void 0:D.default,D==null?void 0:D[Oe],(r=f==null?void 0:f.classNames)==null?void 0:r[Oe]),"data-sonner-toast":"","data-rich-colors":(n=f.richColors)!=null?n:z,"data-styled":!(f.jsx||f.unstyled||y),"data-mounted":Q,"data-promise":!!f.promise,"data-swiped":Z,"data-removed":de,"data-visible":_e,"data-y-position":tt,"data-x-position":jt,"data-index":S,"data-front":De,"data-swiping":we,"data-dismissible":Ze,"data-type":Oe,"data-invert":dr,"data-swipe-out":Le,"data-swipe-direction":re,"data-expanded":!!(T||F&&Q),style:{"--index":S,"--toasts-before":S,"--z-index":E.length-S,"--offset":`${de?et:Ae.current}px`,"--initial-height":F?"auto":`${Ce}px`,...P,...f.style},onDragEnd:()=>{ve(!1),H(null),ut.current=null},onPointerDown:G=>{Lt||!Ze||(me.current=new Date,Ne(Ae.current),G.target.setPointerCapture(G.pointerId),G.target.tagName!=="BUTTON"&&(ve(!0),ut.current={x:G.clientX,y:G.clientY}))},onPointerUp:()=>{var G,Je,Ut,Tr;if(Le||!Ze)return;ut.current=null;let it=Number(((G=Ee.current)==null?void 0:G.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),sn=Number(((Je=Ee.current)==null?void 0:Je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),bn=new Date().getTime()-((Ut=me.current)==null?void 0:Ut.getTime()),br=U==="x"?it:sn,Dr=Math.abs(br)/bn;if(Math.abs(br)>=aB||Dr>.11){Ne(Ae.current),(Tr=f.onDismiss)==null||Tr.call(f,f),te(U==="x"?it>0?"right":"left":sn>0?"down":"up"),ft(),je(!0),Pe(!1);return}ve(!1),H(null)},onPointerMove:G=>{var Je,Ut,Tr,it;if(!ut.current||!Ze||((Je=window.getSelection())==null?void 0:Je.toString().length)>0)return;let sn=G.clientY-ut.current.y,bn=G.clientX-ut.current.x,br=(Ut=e.swipeDirections)!=null?Ut:lB(le);!U&&(Math.abs(bn)>1||Math.abs(sn)>1)&&H(Math.abs(bn)>Math.abs(sn)?"x":"y");let Dr={x:0,y:0};U==="y"?(br.includes("top")||br.includes("bottom"))&&(br.includes("top")&&sn<0||br.includes("bottom")&&sn>0)&&(Dr.y=sn):U==="x"&&(br.includes("left")||br.includes("right"))&&(br.includes("left")&&bn<0||br.includes("right")&&bn>0)&&(Dr.x=bn),(Math.abs(Dr.x)>0||Math.abs(Dr.y)>0)&&Pe(!0),(Tr=Ee.current)==null||Tr.style.setProperty("--swipe-amount-x",`${Dr.x}px`),(it=Ee.current)==null||it.style.setProperty("--swipe-amount-y",`${Dr.y}px`)}},Xe&&!f.jsx?qe.createElement("button",{"aria-label":M,"data-disabled":Lt,"data-close-button":!0,onClick:Lt||!Ze?()=>{}:()=>{var G;ft(),(G=f.onDismiss)==null||G.call(f,f)},className:Ks(D==null?void 0:D.closeButton,(i=f==null?void 0:f.classNames)==null?void 0:i.closeButton)},(s=$==null?void 0:$.close)!=null?s:W$):null,f.jsx||_.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:qe.createElement(qe.Fragment,null,Oe||f.icon||f.promise?qe.createElement("div",{"data-icon":"",className:Ks(D==null?void 0:D.icon,(a=f==null?void 0:f.classNames)==null?void 0:a.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Qt():null,f.type!=="loading"?f.icon||($==null?void 0:$[Oe])||$$(Oe):null):null,qe.createElement("div",{"data-content":"",className:Ks(D==null?void 0:D.content,(o=f==null?void 0:f.classNames)==null?void 0:o.content)},qe.createElement("div",{"data-title":"",className:Ks(D==null?void 0:D.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?qe.createElement("div",{"data-description":"",className:Ks(K,ze,D==null?void 0:D.description,(c=f==null?void 0:f.classNames)==null?void 0:c.description)},typeof f.description=="function"?f.description():f.description):null),_.isValidElement(f.cancel)?f.cancel:f.cancel&&qg(f.cancel)?qe.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||X,onClick:G=>{var Je,Ut;qg(f.cancel)&&Ze&&((Ut=(Je=f.cancel).onClick)==null||Ut.call(Je,G),ft())},className:Ks(D==null?void 0:D.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,_.isValidElement(f.action)?f.action:f.action&&qg(f.action)?qe.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||O,onClick:G=>{var Je,Ut;qg(f.action)&&((Ut=(Je=f.action).onClick)==null||Ut.call(Je,G),!G.defaultPrevented&&ft())},className:Ks(D==null?void 0:D.actionButton,(h=f==null?void 0:f.classNames)==null?void 0:h.actionButton)},f.action.label):null))};function KN(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function uB(e,t){let r={};return[e,t].forEach((n,i)=>{let s=i===1,a=s?"--mobile-offset":"--offset",o=s?nB:rB;function l(c){["top","right","bottom","left"].forEach(d=>{r[`${a}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(c=>{n[c]===void 0?r[`${a}-${c}`]=o:r[`${a}-${c}`]=typeof n[c]=="number"?`${n[c]}px`:n[c]}):l(o)}),r}var dB=_.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:a,className:o,offset:l,mobileOffset:c,theme:d="light",richColors:h,duration:p,style:f,visibleToasts:y=tB,toastOptions:v,dir:b=KN(),gap:w=sB,loadingIcon:x,icons:S,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:T}=e,[W,z]=qe.useState([]),B=qe.useMemo(()=>Array.from(new Set([n].concat(W.filter(j=>j.position).map(j=>j.position)))),[W,n]),[P,X]=qe.useState([]),[O,A]=qe.useState(!1),[K,R]=qe.useState(!1),[le,oe]=qe.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
311k":"light"),se=qe.useRef(null),F=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=qe.useRef(null),$=qe.useRef(!1),M=qe.useCallback(j=>{z(U=>{var H;return(H=U.find(re=>re.id===j.id))!=null&&H.delete||Mi.dismiss(j.id),U.filter(({id:re})=>re!==j.id)})},[]);return qe.useEffect(()=>Mi.subscribe(j=>{if(j.dismiss){z(U=>U.map(H=>H.id===j.id?{...H,delete:!0}:H));return}setTimeout(()=>{rT.flushSync(()=>{z(U=>{let H=U.findIndex(re=>re.id===j.id);return H!==-1?[...U.slice(0,H),{...U[H],...j},...U.slice(H+1)]:[j,...U]})})})}),[]),qe.useEffect(()=>{if(d!=="system"){oe(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?oe("dark"):oe("light")),typeof window>"u")return;let j=window.matchMedia("(prefers-color-scheme: dark)");try{j.addEventListener("change",({matches:U})=>{oe(U?"dark":"light")})}catch{j.addListener(({matches:H})=>{try{oe(H?"dark":"light")}catch(re){console.error(re)}})}},[d]),qe.useEffect(()=>{W.length<=1&&A(!1)},[W]),qe.useEffect(()=>{let j=U=>{var H,re;i.every(te=>U[te]||U.code===te)&&(A(!0),(H=se.current)==null||H.focus()),U.code==="Escape"&&(document.activeElement===se.current||(re=se.current)!=null&&re.contains(document.activeElement))&&A(!1)};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[i]),qe.useEffect(()=>{if(se.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,$.current=!1)}},[se.current]),qe.createElement("section",{ref:t,"aria-label":`${E} ${F}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},B.map((j,U)=>{var H;let[re,te]=j.split("-");return W.length?qe.createElement("ol",{key:j,dir:b==="auto"?KN():b,tabIndex:-1,ref:se,className:o,"data-sonner-toaster":!0,"data-theme":le,"data-y-position":re,"data-lifted":O&&W.length>1&&!s,"data-x-position":te,style:{"--front-toast-height":`${((H=P[0])==null?void 0:H.height)||0}px`,"--width":`${iB}px`,"--gap":`${w}px`,...f,...uB(l,c)},onBlur:Q=>{$.current&&!Q.currentTarget.contains(Q.relatedTarget)&&($.current=!1,D.current&&(D.current.focus({preventScroll:!0}),D.current=null))},onFocus:Q=>{Q.target instanceof HTMLElement&&Q.target.dataset.dismissible==="false"||$.current||($.current=!0,D.current=Q.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{K||A(!1)},onDragEnd:()=>A(!1),onPointerDown:Q=>{Q.target instanceof HTMLElement&&Q.target.dataset.dismissible==="false"||R(!0)},onPointerUp:()=>R(!1)},W.filter(Q=>!Q.position&&U===0||Q.position===j).map((Q,ce)=>{var de,he;return qe.createElement(cB,{key:Q.id,icons:S,index:ce,toast:Q,defaultRichColors:h,duration:(de=v==null?void 0:v.duration)!=null?de:p,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:r,visibleToasts:y,closeButton:(he=v==null?void 0:v.closeButton)!=null?he:a,interacting:K,position:j,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:M,toasts:W.filter(we=>we.position==Q.position),heights:P.filter(we=>we.position==Q.position),setHeights:X,expandByDefault:s,gap:w,loadingIcon:x,expanded:O,pauseWhenPageIsHidden:T,swipeDirections:e.swipeDirections})})):null}))});const fB=({...e})=>{const{theme:t="system"}=M$();return u.jsx(dB,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var hB=i5[" useId ".trim().toString()]||(()=>{}),pB=0;function Ga(e){const[t,r]=_.useState(hB());return zn(()=>{r(n=>n??String(pB++))},[e]),t?`radix-${t}`:""}const mB=["top","right","bottom","left"],rc=Math.min,is=Math.max,b0=Math.round,Ug=Math.floor,Ya=e=>({x:e,y:e}
vendor: 11,215 bytes, line 311
311),gB={left:"right",right:"left",bottom:"top",top:"bottom"},vB={start:"end",end:"start"};function R2(e,t,r){return is(e,rc(t,r))}function Uo(e,t){return typeof e=="function"?e(t):e}function zo(e){return e.split("-")[0]}function Bf(e){return e.split("-")[1]}function a_(e){return e==="x"?"y":"x"}function o_(e){return e==="y"?"height":"width"}const yB=new Set(["top","bottom"]);function qa(e){return yB.has(zo(e))?"y":"x"}function l_(e){return a_(qa(e))}function bB(e,t,r){r===void 0&&(r=!1);const n=Bf(e),i=l_(e),s=o_(i);let a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=w0(a)),[a,w0(a)]}function wB(e){const t=w0(e);return[L2(e),t,L2(t)]}function L2(e){return e.replace(/start|end/g,t=>vB[t])}const GN=["left","right"],YN=["right","left"],xB=["top","bottom"],_B=["bottom","top"];function kB(e,t,r){switch(e){case"top":case"bottom":return r?t?YN:GN:t?GN:YN;case"left":case"right":return t?xB:_B;default:return[]}}function SB(e,t,r,n){const i=Bf(e);let s=kB(zo(e),r==="start",n);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(L2)))),s}function w0(e){return e.replace(/left|right|bottom|top/g,t=>gB[t])}function NB(e){return{top:0,right:0,bottom:0,left:0,...e}}function WT(e){return typeof e!="number"?NB(e):{top:e,right:e,bottom:e,left:e}}function x0(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function ZN(e,t,r){let{reference:n,floating:i}=e;const s=qa(t),a=l_(t),o=o_(a),l=zo(t),c=s==="y",d=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,p=n[o]/2-i[o]/2;let f;switch(l){case"top":f={x:d,y:n.y-i.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:h};break;case"left":f={x:n.x-i.width,y:h};break;default:f={x:n.x,y:n.y}}switch(Bf(t)){case"start":f[a]-=p*(r&&c?-1:1);break;case"end":f[a]+=p*(r&&c?-1:1);break}return f}const EB=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:a}=r,o=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:h}=ZN(c,n,l),p=n,f={},y=0;for(let v=0;v<o.length;v++){const{name:b,fn:w}=o[v],{x,y:S,data:E,reset:T}=await w({x:d,y:h,initialPlacement:n,placement:p,strategy:i,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});d=x??d,h=S??h,f={...f,[b]:{...f[b],...E}},T&&y<=50&&(y++,typeof T=="object"&&(T.placement&&(p=T.placement),T.rects&&(c=T.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:d,y:h}=ZN(c,p,l)),v=-1)}return{x:d,y:h,placement:p,strategy:i,middlewareData:f}};async function Dp(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:a,elements:o,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=Uo(t,e),y=WT(f),b=o[p?h==="floating"?"reference":"floating":h],w=x0(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(o.floating)),boundary:c,rootBoundary:d,strategy:l})),x=h==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o.floating)),E=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},T=x0(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:x,offsetParent:S,strategy:l}):x);return{top:(w.top-T.top+y.top)/E.y,bottom:(T.bottom-w.bottom+y.bottom)/E.y,left:(w.left-T.left+y.left)/E.x,right:(T.right-w.right+y.right)/E.x}}const CB=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:s,platform:a,elements:o,middlewareData:l}=t,{element:c,padding:d=0}=Uo(e,t)||{};if(c==null)return{};const h=WT(d),p={x:r,y:n},f=l_(i),y=o_(f),v=await a.getDimensions(c),b=f==="y",w=b?"top":"left",x=b?"bottom":"right",S=b?"clientHeight":"clientWidth",E=s.reference[y]+s.reference[f]-p[f]-s.floating[y],T=p[f]-s.reference[f],W=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let z=W?W[S]:0;(!z||!await(a.isElement==null?void 0:a.isElement(W)))&&(z=o.floating[S]||s.floating[y]);const B=E/2-T/2,P=z/2-v[y]/2-1,X=rc(h[w],P),O=rc(h[x],P),A=X,K=z-v[y]-O,R=z/2-v[y]/2+B,le=R2(A,R,K),oe=!l.arrow&&Bf(i)!=null&&R!==le&&s.reference[y]/2-(R<A?X:O)-v[y]/2<0,se=oe?R<A?R-A:R-K:0;return{[f]:p[f]+se,data:{[f]:le,centerOffset:R-le-se,...oe&&{alignmentOffset:se}},reset:oe}}}),jB=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:s,rects:a,initialPlacement:o,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...b}=Uo(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const w=zo(i),x=qa(o),S=zo(o)===o,E=await(l.isRTL==null?void 0:l.isRTL(c.floating)),T=p||(S||!v?[w0(o)]:wB(o)),W=y!=="none";!p&&W&&T.push(...SB(o,v,y,E));const z=[o,...T],B=await Dp(t,b),P=[];let X=((n=s.flip)==null?void 0:n.overflows)||[];if(d&&P.push(B[w]),h){const R=bB(i,a,E);P.push(B[R[0]],B[R[1]])}if(X=[...X,{placement:i,overflows:P}],!P.every(R=>R<=0)){var O,A;const R=(((O=s.flip)==null?void 0:O.index)||0)+1,le=z[R];if(le&&(!(h==="alignment"?x!==qa(le):!1)||X.every(F=>F.overflows[0]>0&&qa(F.placement)===x)))return{data:{index:R,overflows:X},reset:{placement:le}};let oe=(A=X.filter(se=>se.overflows[0]<=0).sort((se,F)=>se.overflows[1]-F.overflows[1])[0])==null?void 0:A.placement;if(!oe)switch(f){case"bestFit":{var K;const se=(K=X.filter(F=>{if(W){const D=qa(F.placement);return D===x||D==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(D=>D>0).reduce((D,$)=>D+$,0)]).sort((F,D)=>F[1]-D[1])[0])==null?void 0:K[0];se&&(oe=se);break}case"initialPlacement":oe=o;break}if(i!==oe)return{reset:{placement:oe}}}return{}}}};function XN(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function JN(e){return mB.some(t=>e[t]>=0)}const AB=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=Uo(e,t);switch(n){case"referenceHidden":{const s=await Dp(t,{...i,elementContext:"reference"}),a=XN(s,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:JN(a)}}}case"escaped":{const s=await Dp(t,{...i,altBoundary:!0}),a=XN(s,r.floating);return{data:{escapedOffsets:a,escaped:JN(a)}}}default:return{}}}}},KT=new Set(["left","top"]);async function TB(e,t){const{placement:r,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=zo(r),o=Bf(r),l=qa(r)==="y",c=KT.has(a)?-1:1,d=s&&l?-1:1,h=Uo(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return o&&typeof y=="number"&&(f=o==="end"?y*-1:y),l?{x:f*d,y:p*c}:{x:p*c,y:f*d}}const PB=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:s,placement:a,middlewareData:o}=t,l=await TB(t,e);return a===((r=o.offset)==null?void 0:r.placement)&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:a}}}}},OB=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:o={fn:b=>{let{x:w,y:x}=b;return{x:w,y:x}}},...l}=Uo(e,t),c={x:r,y:n},d=await Dp(t,l),h=qa(zo(i)),p=a_(h);let f=c[p],y=c[h];if(s){const b=p==="y"?"top":"left",w=p==="y"?"bottom":"right",x=f+d[b],S=f-d[w];f=R2(x,f,S)}if(a){const b=h==="y"?"top":"left",w=h==="y"?"bottom":"right",x=y+d[b],S=y-d[w];y=R2(x,y,S)}const v=o.fn({...t,[p]:f,[h]:y});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[p]:s,[h]:a}}}}}},RB=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:s,middlewareData:a}=t,{offset:o=0,mainAxis:l=!0,crossAxis:c=!0}=Uo(e,t),d={x:r,y:n},h=qa(i),p=a_(h);let f=d[p],y=d[h];const v=Uo(o,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const S=p==="y"?"height":"width",E=s.reference[p]-s.floating[S]+b.mainAxis,T=s.reference[p]+s.reference[S]-b.mainAxis;f<E?f=E:f>T&&(f=T)}if(c){var w,x;const S=p==="y"?"width":"height",E=KT.has(zo(i)),T=s.reference[h]-s.floating[S]+(E&&((w=a.offset)==null?void 0:w[h])||0)+(E?0:b.crossAxis),W=s.reference[h]+s.reference[S]+(E?0:((x=a.offset)==null?void 0:x[h])||0)-(E?b.crossAxis:0);y<T?y=T:y>W&&(y=W)}return{[p]:f,[h]:y}}}},LB=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:s,platform:a,elements:o}=t,{apply:l=()=>{},...c}=Uo(e,t),d=await Dp(t,c),h=zo(i),p=Bf(i),f=qa(i)==="y",{width:y,height:v}=s.floating;let b,w;h==="top"||h==="bottom"?(b=h,w=p===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(w=h,b=p==="end"?"top":"bottom");const x=v-d.top-d.bottom,S=y-d.left-d.right,E=rc(v-d[b],x),T=rc(y-d[w],S),W=!t.middlewareData.shift;let z=E,B=T;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(B=S),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(z=x),W&&!p){const X=is(d.left,0),O=is(d.right,0),A=is(d.top,0),K=is(d.bottom,0);f?B=y-2*(X!==0||O!==0?X+O:is(d.left,d.right)):z=v-2*(A!==0||K!==0?A+K:is(d.top,d.bottom))}await l({...t,availableWidth:B,availableHeight:z});const P=await a.getDimensions(o.floating);return y!==P.width||v!==P.height?{reset:{rects:!0}}:{}}}};function Ay(){return typeof window<"u"}function qf(e){return GT(e)?(e.nodeName||"").toLowerCase():"#document"}function us(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function to(e){var t;return(t=(GT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function GT(e){return Ay()?e instanceof Node||e instanceof us(e).Node:!1}function fa(e){return Ay()?e instanceof Element||e instanceof us(e).Element:!1}function Qa(e){return Ay()?e instanceof HTMLElement||e instanceof us(e).HTMLElement:!1}function QN(e){return!Ay()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof us(e).ShadowRoot}const IB=new Set(["inline","contents"]);function wm(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=ha(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!IB.has(i)}const FB=new Set(["table","td","th"]);function DB(e){return FB.has(qf(e))}const MB=[":popover-open",":modal"];function Ty(e){return MB.some(t=>{try{return e.matches(t)}catch{return!1}})}const $B=["transform","translate","scale","rotate","perspective"],BB=["transform","translate","scale","rotate","perspective","filter"],qB=["paint","layout","strict","content"];function c_(e){const t=u_(),r=fa(e)?ha(e):e;return $B.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||BB.some(n=>(r.willChange||"").includes(n))||qB.some(n=>(r.contain||"").includes(n))}function UB(e){let t=nc(e);for(;Qa(t)&&!xf(t);){if(c_(t))return t;if(Ty(t))return null;t=nc(t)}return null}
vendor: 7,191 bytes, line 311
311function u_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zB=new Set(["html","body","#document"]);function xf(e){return zB.has(qf(e))}function ha(e){return us(e).getComputedStyle(e)}function Py(e){return fa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nc(e){if(qf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||QN(e)&&e.host||to(e);return QN(t)?t.host:t}function YT(e){const t=nc(e);return xf(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qa(t)&&wm(t)?t:YT(t)}function Mp(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=YT(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),a=us(i);if(s){const o=I2(a);return t.concat(a,a.visualViewport||[],wm(i)?i:[],o&&r?Mp(o):[])}return t.concat(i,Mp(i,[],r))}function I2(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ZT(e){const t=ha(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Qa(e),s=i?e.offsetWidth:r,a=i?e.offsetHeight:n,o=b0(r)!==s||b0(n)!==a;return o&&(r=s,n=a),{width:r,height:n,$:o}}function d_(e){return fa(e)?e:e.contextElement}function Yd(e){const t=d_(e);if(!Qa(t))return Ya(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:s}=ZT(t);let a=(s?b0(r.width):r.width)/n,o=(s?b0(r.height):r.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const HB=Ya(0);function XT(e){const t=us(e);return!u_()||!t.visualViewport?HB:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VB(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==us(e)?!1:t}function xu(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),s=d_(e);let a=Ya(1);t&&(n?fa(n)&&(a=Yd(n)):a=Yd(e));const o=VB(s,r,n)?XT(s):Ya(0);let l=(i.left+o.x)/a.x,c=(i.top+o.y)/a.y,d=i.width/a.x,h=i.height/a.y;if(s){const p=us(s),f=n&&fa(n)?us(n):n;let y=p,v=I2(y);for(;v&&n&&f!==y;){const b=Yd(v),w=v.getBoundingClientRect(),x=ha(v),S=w.left+(v.clientLeft+parseFloat(x.paddingLeft))*b.x,E=w.top+(v.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,h*=b.y,l+=S,c+=E,y=us(v),v=I2(y)}}return x0({width:d,height:h,x:l,y:c})}function f_(e,t){const r=Py(e).scrollLeft;return t?t.left+r:xu(to(e)).left+r}function JT(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:f_(e,n)),s=n.top+t.scrollTop;return{x:i,y:s}}function WB(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const s=i==="fixed",a=to(n),o=t?Ty(t.floating):!1;if(n===a||o&&s)return r;let l={scrollLeft:0,scrollTop:0},c=Ya(1);const d=Ya(0),h=Qa(n);if((h||!h&&!s)&&((qf(n)!=="body"||wm(a))&&(l=Py(n)),Qa(n))){const f=xu(n);c=Yd(n),d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}const p=a&&!h&&!s?JT(a,l,!0):Ya(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:r.y*c.y-l.scrollTop*c.y+d.y+p.y}}function KB(e){return Array.from(e.getClientRects())}function GB(e){const t=to(e),r=Py(e),n=e.ownerDocument.body,i=is(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=is(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+f_(e);const o=-r.scrollTop;return ha(n).direction==="rtl"&&(a+=is(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:a,y:o}}function YB(e,t){const r=us(e),n=to(e),i=r.visualViewport;let s=n.clientWidth,a=n.clientHeight,o=0,l=0;if(i){s=i.width,a=i.height;const c=u_();(!c||c&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:o,y:l}}const ZB=new Set(["absolute","fixed"]);function XB(e,t){const r=xu(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=Qa(e)?Yd(e):Ya(1),a=e.clientWidth*s.x,o=e.clientHeight*s.y,l=i*s.x,c=n*s.y;return{width:a,height:o,x:l,y:c}}function e4(e,t,r){let n;if(t==="viewport")n=YB(e,r);else if(t==="document")n=GB(to(e));else if(fa(t))n=XB(t,r);else{const i=XT(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return x0(n)}function QT(e,t){const r=nc(e);return r===t||!fa(r)||xf(r)?!1:ha(r).position==="fixed"||QT(r,t)}function JB(e,t){const r=t.get(e);if(r)return r;let n=Mp(e,[],!1).filter(o=>fa(o)&&qf(o)!=="body"),i=null;const s=ha(e).position==="fixed";let a=s?nc(e):e;for(;fa(a)&&!xf(a);){const o=ha(a),l=c_(a);!l&&o.position==="fixed"&&(i=null),(s?!l&&!i:!l&&o.position==="static"&&!!i&&ZB.has(i.position)||wm(a)&&!l&&QT(e,a))?n=n.filter(d=>d!==a):i=o,a=nc(a)}return t.set(e,n),n}function QB(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const a=[...r==="clippingAncestors"?Ty(t)?[]:JB(t,this._c):[].concat(r),n],o=a[0],l=a.reduce((c,d)=>{const h=e4(t,d,i);return c.top=is(h.top,c.top),c.right=rc(h.right,c.right),c.bottom=rc(h.bottom,c.bottom),c.left=is(h.left,c.left),c},e4(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function eq(e){const{width:t,height:r}=ZT(e);return{width:t,height:r}}function tq(e,t,r){const n=Qa(t),i=to(t),s=r==="fixed",a=xu(e,!0,s,t);let o={scrollLeft:0,scrollTop:0};const l=Ya(0);function c(){l.x=f_(i)}if(n||!n&&!s)if((qf(t)!=="body"||wm(i))&&(o=Py(t)),n){const f=xu(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&c();s&&!n&&i&&c();const d=i&&!n&&!s?JT(i,o):Ya(0),h=a.left+o.scrollLeft-l.x-d.x,p=a.top+o.scrollTop-l.y-d.y;return{x:h,y:p,width:a.width,height:a.height}}function Cb(e){return ha(e).position==="static"}function t4(e,t){if(!Qa(e)||ha(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return to(e)===r&&(r=r.ownerDocument.body),r}function eP(e,t){const r=us(e);if(Ty(e))return r;if(!Qa(e)){let i=nc(e);for(;i&&!xf(i);){if(fa(i)&&!Cb(i))return i;i=nc(i)}return r}let n=t4(e,t);for(;n&&DB(n)&&Cb(n);)n=t4(n,t);return n&&xf(n)&&Cb(n)&&!c_(n)?r:n||UB(e)||r}const rq=async function(e){const t=this.getOffsetParent||eP,r=this.getDimensions,n=await r(e.floating);return{reference:tq(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function nq(e){return ha(e).direction==="rtl"}const iq={convertOffsetParentRelativeRectToViewportRelativeRect:WB,getDocumentElement:to,getClippingRect:QB,getOffsetParent:eP,getElementRects:rq,getClientRects:KB,getDimensions:eq,getScale:Yd,isElement:fa,isRTL:nq};function tP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function sq(e,t){let r=null,n;const i=to(e);function s(){var o;clearTimeout(n),(o=r)==null||o.disconnect(),r=null}function a(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:d,top:h,width:p,height:f}=c;if(o||t(),!p||!f)return;const y=Ug(h),v=Ug(i.clientWidth-(d+p)),b=Ug(i.clientHeight-(h+f)),w=Ug(d),S={rootMargin:-y+"px "+-v+"px "+-b+"px "+-w+"px",threshold:is(0,rc(1,l))||1};let E=!0;function T(W){const z=W[0].intersectionRatio;if(z!==l){if(!E)return a();z?a(!1,z):n=setTimeout(()=>{a(!1,1e-7)},1e3)}z===1&&!tP(c,e.getBoundingClientRect())&&a(),E=!1}try{r=new IntersectionObserver(T,{...S,root:i.ownerDocument})}catch{r=new IntersectionObserver(T,S)}r.observe(e)}return a(!0),s}function aq(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}
vendor: 9,416 bytes, line 311
311=n,c=d_(e),d=i||s?[...c?Mp(c):[],...Mp(t)]:[];d.forEach(w=>{i&&w.addEventListener("scroll",r,{passive:!0}),s&&w.addEventListener("resize",r)});const h=c&&o?sq(c,r):null;let p=-1,f=null;a&&(f=new ResizeObserver(w=>{let[x]=w;x&&x.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=f)==null||S.observe(t)})),r()}),c&&!l&&f.observe(c),f.observe(t));let y,v=l?xu(e):null;l&&b();function b(){const w=xu(e);v&&!tP(v,w)&&r(),v=w,y=requestAnimationFrame(b)}return r(),()=>{var w;d.forEach(x=>{i&&x.removeEventListener("scroll",r),s&&x.removeEventListener("resize",r)}),h==null||h(),(w=f)==null||w.disconnect(),f=null,l&&cancelAnimationFrame(y)}}const oq=PB,lq=OB,cq=jB,uq=LB,dq=AB,r4=CB,fq=RB,hq=(e,t,r)=>{const n=new Map,i={platform:iq,...r},s={...i.platform,_c:n};return EB(e,t,{...i,platform:s})};var pq=typeof document<"u",mq=function(){},Av=pq?_.useLayoutEffect:mq;function _0(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!_0(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const s=i[n];if(!(s==="_owner"&&e.$$typeof)&&!_0(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function rP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function n4(e,t){const r=rP(e);return Math.round(t*r)/r}function jb(e){const t=_.useRef(e);return Av(()=>{t.current=e}),t}function gq(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:s,floating:a}={},transform:o=!0,whileElementsMounted:l,open:c}=e,[d,h]=_.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=_.useState(n);_0(p,n)||f(n);const[y,v]=_.useState(null),[b,w]=_.useState(null),x=_.useCallback(F=>{F!==W.current&&(W.current=F,v(F))},[]),S=_.useCallback(F=>{F!==z.current&&(z.current=F,w(F))},[]),E=s||y,T=a||b,W=_.useRef(null),z=_.useRef(null),B=_.useRef(d),P=l!=null,X=jb(l),O=jb(i),A=jb(c),K=_.useCallback(()=>{if(!W.current||!z.current)return;const F={placement:t,strategy:r,middleware:p};O.current&&(F.platform=O.current),hq(W.current,z.current,F).then(D=>{const $={...D,isPositioned:A.current!==!1};R.current&&!_0(B.current,$)&&(B.current=$,Iu.flushSync(()=>{h($)}))})},[p,t,r,O,A]);Av(()=>{c===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,h(F=>({...F,isPositioned:!1})))},[c]);const R=_.useRef(!1);Av(()=>(R.current=!0,()=>{R.current=!1}),[]),Av(()=>{if(E&&(W.current=E),T&&(z.current=T),E&&T){if(X.current)return X.current(E,T,K);K()}},[E,T,K,X,P]);const le=_.useMemo(()=>({reference:W,floating:z,setReference:x,setFloating:S}),[x,S]),oe=_.useMemo(()=>({reference:E,floating:T}),[E,T]),se=_.useMemo(()=>{const F={position:r,left:0,top:0};if(!oe.floating)return F;const D=n4(oe.floating,d.x),$=n4(oe.floating,d.y);return o?{...F,transform:"translate("+D+"px, "+$+"px)",...rP(oe.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:D,top:$}},[r,o,oe.floating,d.x,d.y]);return _.useMemo(()=>({...d,update:K,refs:le,elements:oe,floatingStyles:se}),[d,K,le,oe,se])}const vq=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?r4({element:n.current,padding:i}).fn(r):{}:n?r4({element:n,padding:i}).fn(r):{}}}},yq=(e,t)=>({...oq(e),options:[e,t]}),bq=(e,t)=>({...lq(e),options:[e,t]}),wq=(e,t)=>({...fq(e),options:[e,t]}),xq=(e,t)=>({...cq(e),options:[e,t]}),_q=(e,t)=>({...uq(e),options:[e,t]}),kq=(e,t)=>({...dq(e),options:[e,t]}),Sq=(e,t)=>({...vq(e),options:[e,t]});var Nq="Arrow",nP=_.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...s}=e;return u.jsx(Nt.svg,{...s,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});nP.displayName=Nq;var Eq=nP;function h_(e){const[t,r]=_.useState(void 0);return zn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let a,o;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,o=c.blockSize}else a=e.offsetWidth,o=e.offsetHeight;r({width:a,height:o})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var p_="Popper",[iP,uc]=gs(p_),[Cq,sP]=iP(p_),aP=e=>{const{__scopePopper:t,children:r}=e,[n,i]=_.useState(null);return u.jsx(Cq,{scope:t,anchor:n,onAnchorChange:i,children:r})};aP.displayName=p_;var oP="PopperAnchor",lP=_.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,s=sP(oP,r),a=_.useRef(null),o=qt(t,a);return _.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:u.jsx(Nt.div,{...i,ref:o})});lP.displayName=oP;var m_="PopperContent",[jq,Aq]=iP(m_),cP=_.forwardRef((e,t)=>{var Q,ce,de,he,we,ve;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:s="center",alignOffset:a=0,arrowPadding:o=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:y,...v}=e,b=sP(m_,r),[w,x]=_.useState(null),S=qt(t,Le=>x(Le)),[E,T]=_.useState(null),W=h_(E),z=(W==null?void 0:W.width)??0,B=(W==null?void 0:W.height)??0,P=n+(s!=="center"?"-"+s:""),X=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},O=Array.isArray(c)?c:[c],A=O.length>0,K={padding:X,boundary:O.filter(Pq),altBoundary:A},{refs:R,floatingStyles:le,placement:oe,isPositioned:se,middlewareData:F}=gq({strategy:"fixed",placement:P,whileElementsMounted:(...Le)=>aq(...Le,{animationFrame:f==="always"}),elements:{reference:b.anchor},middleware:[yq({mainAxis:i+B,alignmentAxis:a}),l&&bq({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?wq():void 0,...K}),l&&xq({...K}),_q({...K,apply:({elements:Le,rects:je,availableWidth:Z,availableHeight:Pe})=>{const{width:et,height:Ne}=je.reference,Ce=Le.floating.style;Ce.setProperty("--radix-popper-available-width",`${Z}px`),Ce.setProperty("--radix-popper-available-height",`${Pe}px`),Ce.setProperty("--radix-popper-anchor-width",`${et}px`),Ce.setProperty("--radix-popper-anchor-height",`${Ne}px`)}}),E&&Sq({element:E,padding:o}),Oq({arrowWidth:z,arrowHeight:B}),p&&kq({strategy:"referenceHidden",...K})]}),[D,$]=fP(oe),M=gn(y);zn(()=>{se&&(M==null||M())},[se,M]);const j=(Q=F.arrow)==null?void 0:Q.x,U=(ce=F.arrow)==null?void 0:ce.y,H=((de=F.arrow)==null?void 0:de.centerOffset)!==0,[re,te]=_.useState();return zn(()=>{w&&te(window.getComputedStyle(w).zIndex)},[w]),u.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...le,transform:se?le.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[(he=F.transformOrigin)==null?void 0:he.x,(we=F.transformOrigin)==null?void 0:we.y].join(" "),...((ve=F.hide)==null?void 0:ve.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(jq,{scope:r,placedSide:D,onArrowChange:T,arrowX:j,arrowY:U,shouldHideArrow:H,children:u.jsx(Nt.div,{"data-side":D,"data-align":$,...v,ref:S,style:{...v.style,animation:se?void 0:"none"}})})})});cP.displayName=m_;var uP="PopperArrow",Tq={top:"bottom",right:"left",bottom:"top",left:"right"},dP=_.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,s=Aq(uP,n),a=Tq[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(Eq,{...i,ref:r,style:{...i.style,display:"block"}})})});dP.displayName=uP;function Pq(e){return e!==null}var Oq=e=>({name:"transformOrigin",options:e,fn(t){var b,w,x;const{placement:r,rects:n,middlewareData:i}=t,a=((b=i.arrow)==null?void 0:b.centerOffset)!==0,o=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,d]=fP(r),h={start:"0%",center:"50%",end:"100%"}[d],p=(((w=i.arrow)==null?void 0:w.x)??0)+o/2,f=(((x=i.arrow)==null?void 0:x.y)??0)+l/2;let y="",v="";return c==="bottom"?(y=a?h:`${p}px`,v=`${-l}px`):c==="top"?(y=a?h:`${p}px`,v=`${n.floating.height+l}px`):c==="right"?(y=`${-l}px`,v=a?h:`${f}px`):c==="left"&&(y=`${n.floating.width+l}px`,v=a?h:`${f}px`),{data:{x:y,y:v}}}});function fP(e){const[t,r="center"]=e.split("-");return[t,r]}var g_=aP,xm=lP,Oy=cP,Ry=dP,[Ly,boe]=gs("Tooltip",[uc]),v_=uc(),hP="TooltipProvider",Rq=700,i4="tooltip.open",[Lq,pP]=Ly(hP),mP=e=>{const{__scopeTooltip:t,delayDuration:r=Rq,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:s}=e,a=_.useRef(!0),o=_.useRef(!1),l=_.useRef(0);return _.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(Lq,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:_.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:_.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:o,onPointerInTransitChange:_.useCallback(c=>{o.current=c}
vendor: 4,120 bytes, line 311
311,[]),disableHoverableContent:i,children:s})};mP.displayName=hP;var gP="Tooltip",[woe,Iy]=Ly(gP),F2="TooltipTrigger",Iq=_.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=Iy(F2,r),s=pP(F2,r),a=v_(r),o=_.useRef(null),l=qt(t,o,i.onTriggerChange),c=_.useRef(!1),d=_.useRef(!1),h=_.useCallback(()=>c.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(xm,{asChild:!0,...a,children:u.jsx(Nt.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:l,onPointerMove:Ge(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:Ge(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:Ge(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Ge(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:Ge(e.onBlur,i.onClose),onClick:Ge(e.onClick,i.onClose)})})});Iq.displayName=F2;var Fq="TooltipPortal",[xoe,Dq]=Ly(Fq,{forceMount:void 0}),_f="TooltipContent",vP=_.forwardRef((e,t)=>{const r=Dq(_f,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...s}=e,a=Iy(_f,e.__scopeTooltip);return u.jsx(ti,{present:n||a.open,children:a.disableHoverableContent?u.jsx(yP,{side:i,...s,ref:t}):u.jsx(Mq,{side:i,...s,ref:t})})}),Mq=_.forwardRef((e,t)=>{const r=Iy(_f,e.__scopeTooltip),n=pP(_f,e.__scopeTooltip),i=_.useRef(null),s=qt(t,i),[a,o]=_.useState(null),{trigger:l,onClose:c}=r,d=i.current,{onPointerInTransitChange:h}=n,p=_.useCallback(()=>{o(null),h(!1)},[h]),f=_.useCallback((y,v)=>{const b=y.currentTarget,w={x:y.clientX,y:y.clientY},x=zq(w,b.getBoundingClientRect()),S=Hq(w,x),E=Vq(v.getBoundingClientRect()),T=Kq([...S,...E]);o(T),h(!0)},[h]);return _.useEffect(()=>()=>p(),[p]),_.useEffect(()=>{if(l&&d){const y=b=>f(b,d),v=b=>f(b,l);return l.addEventListener("pointerleave",y),d.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",v)}}},[l,d,f,p]),_.useEffect(()=>{if(a){const y=v=>{const b=v.target,w={x:v.clientX,y:v.clientY},x=(l==null?void 0:l.contains(b))||(d==null?void 0:d.contains(b)),S=!Wq(w,a);x?p():S&&(p(),c())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,d,a,c,p]),u.jsx(yP,{...e,ref:s})}),[$q,Bq]=Ly(gP,{isInside:!1}),qq=H7("TooltipContent"),yP=_.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...o}=e,l=Iy(_f,r),c=v_(r),{onClose:d}=l;return _.useEffect(()=>(document.addEventListener(i4,d),()=>document.removeEventListener(i4,d)),[d]),_.useEffect(()=>{if(l.trigger){const h=p=>{const f=p.target;f!=null&&f.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),u.jsx(Fu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:u.jsxs(Oy,{"data-state":l.stateAttribute,...c,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(qq,{children:n}),u.jsx($q,{scope:r,isInside:!0,children:u.jsx(f9,{id:l.contentId,role:"tooltip",children:i||n})})]})})});vP.displayName=_f;var bP="TooltipArrow",Uq=_.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=v_(r);return Bq(bP,r).isInside?null:u.jsx(Ry,{...i,...n,ref:t})});Uq.displayName=bP;function zq(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,i,s)){case s:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Hq(e,t,r=5){const n=[];
311switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Vq(e){const{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function Wq(e,t){const{x:r,y:n}=e;let i=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const o=t[s],l=t[a],c=o.x,d=o.y,h=l.x,p=l.y;d>n!=p>n&&r<(h-c)*(n-d)/(p-d)+c&&(i=!i)}return i}function Kq(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Gq(t)}function Gq(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const i=e[n];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const i=e[n];for(;r.length>=2;){const s=r[r.length-1],a=r[r.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Yq=mP,wP=vP;const Zq=Yq,Xq=_.forwardRef(({className:e,sideOffset:t=4,...r},n)=>u.jsx(wP,{ref:n,sideOffset:t,className:Ue("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));Xq.displayName=wP.displayName;var Fy=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dy=typeof window>"u"||"Deno"in globalThis;function Qs(){}function Jq(e,t){return typeof e=="function"?e(t):e}function Qq(e){return typeof e=="number"&&e>=0&&e!==1/0}function eU(e,t){return Math.max(e+(t||0)-Date.now(),0)}function D2(e,t){return typeof e=="function"?e(t):e}function tU(e,t){return typeof e=="function"?e(t):e}function s4(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:s,queryKey:a,stale:o}=e;if(a){if(n){if(t.queryHash!==y_(a,t.options))return!1}else if(!Bp(t.queryKey,a))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||s&&!s(t))}function a4(e,t){const{exact:r,status:n,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if($p(t.options.mutationKey)!==$p(s))return!1}else if(!Bp(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function y_(e,t){return((t==null?void 0:t.queryKeyHashFn)||$p)(e)}function $p(e){return JSON.stringify(e,(t,r)=>M2(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Bp(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Bp(e[r],t[r])):!1}function xP(e,t){if(e===t)return e;const r=o4(e)&&o4(t);if(r||M2(e)&&M2(t)){const n=r?e:Object.keys(e),i=n.length,s=r?t:Object.keys(t),a=s.length,o=r?[]:{},l=new Set(n);let c=0;for(let d=0;d<a;d++){const h=r?d:s[d];(!r&&l.has(h)||r)&&e[h]===void 0&&t[h]===void 0?(o[h]=void 0,c++):(o[h]=xP(e[h],t[h]),o[h]===e[h]&&e[h]!==void 0&&c++)}return i===a&&c===i?e:o}return t}function o4(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function M2(e){if(!l4(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!l4(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function l4(e){return Object.prototype.toString.call(e)==="[object Object]"}function rU(e){return new Promise(t=>{setTimeout(t,e)})}function nU(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?xP(e,t):t}function iU(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function sU(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var b_=Symbol();function _P(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===b_?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var iu,jl,af,IC,aU=(IC=class extends Fy{constructor(){super();or(this,iu);or(this,jl);or(this,af);$t(this,af,t=>{if(!Dy&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){Me(this,jl)||this.setEventListener(Me(this,af))}onUnsubscribe(){var t;this.hasListeners()||((t=Me(this,jl))==null||t.call(this),$t(this,jl,void 0))}setEventListener(t){var r;$t(this,af,t),(r=Me(this,jl))==null||r.call(this),$t(this,jl,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){Me(this,iu)!==t&&($t(this,iu,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,942 bytes, line 311
311this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof Me(this,iu)=="boolean"?Me(this,iu):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},iu=new WeakMap,jl=new WeakMap,af=new WeakMap,IC),kP=new aU,of,Al,lf,FC,oU=(FC=class extends Fy{constructor(){super();or(this,of,!0);or(this,Al);or(this,lf);$t(this,lf,t=>{if(!Dy&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){Me(this,Al)||this.setEventListener(Me(this,lf))}onUnsubscribe(){var t;this.hasListeners()||((t=Me(this,Al))==null||t.call(this),$t(this,Al,void 0))}setEventListener(t){var r;$t(this,lf,t),(r=Me(this,Al))==null||r.call(this),$t(this,Al,t(this.setOnline.bind(this)))}setOnline(t){Me(this,of)!==t&&($t(this,of,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return Me(this,of)}},of=new WeakMap,Al=new WeakMap,lf=new WeakMap,FC),k0=new oU;function lU(){let e,t;const r=new Promise((i,s)=>{e=i,t=s});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}function cU(e){return Math.min(1e3*2**e,3e4)}function SP(e){return(e??"online")==="online"?k0.isOnline():!0}var NP=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ab(e){return e instanceof NP}function EP(e){let t=!1,r=0,n=!1,i;const s=lU(),a=v=>{var b;n||(p(new NP(v)),(b=e.abort)==null||b.call(e))},o=()=>{t=!0},l=()=>{t=!1},c=()=>kP.isFocused()&&(e.networkMode==="always"||k0.isOnline())&&e.canRun(),d=()=>SP(e.networkMode)&&e.canRun(),h=v=>{var b;n||(n=!0,(b=e.onSuccess)==null||b.call(e,v),i==null||i(),s.resolve(v))},p=v=>{var b;n||(n=!0,(b=e.onError)==null||b.call(e,v),i==null||i(),s.reject(v))},f=()=>new Promise(v=>{var b;i=w=>{(n||c())&&v(w)},(b=e.onPause)==null||b.call(e)}).then(()=>{var v;i=void 0,n||(v=e.onContinue)==null||v.call(e)}),y=()=>{if(n)return;let v;const b=r===0?e.initialPromise:void 0;try{v=b??e.fn()}catch(w){v=Promise.reject(w)}Promise.resolve(v).then(h).catch(w=>{var W;if(n)return;const x=e.retry??(Dy?0:3),S=e.retryDelay??cU,E=typeof S=="function"?S(r,w):S,T=x===!0||typeof x=="number"&&r<x||typeof x=="function"&&x(r,w);if(t||!T){p(w);return}r++,(W=e.onFail)==null||W.call(e,r,w),rU(E).then(()=>c()?void 0:f()).then(()=>{t?p(w):y()})})};return{promise:s,cancel:a,continue:()=>(i==null||i(),s),cancelRetry:o,continueRetry:l,canStart:d,start:()=>(d()?y():f().then(y),s)}}var uU=e=>setTimeout(e,0);function dU(){let e=[],t=0,r=o=>{o()},n=o=>{o()},i=uU;const s=o=>{t?e.push(o):i(()=>{r(o)})},a=()=>{const o=e;e=[],o.length&&i(()=>{n(()=>{o.forEach(l=>{r(l)})})})};return{batch:o=>{let l;t++;try{l=o()}finally{t--,t||a()}return l},batchCalls:o=>(...l)=>{s(()=>{o(...l)})},schedule:s,setNotifyFunction:o=>{r=o},setBatchNotifyFunction:o=>{n=o},setScheduler:o=>{i=o}}}var Si=dU(),su,DC,CP=(DC=class{constructor(){or(this,su)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qq(this.gcTime)&&$t(this,su,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Dy?1/0:5*60*1e3))}clearGcTimeout(){Me(this,su)&&(clearTimeout(Me(this,su)),$t(this,su,void 0))}},su=new WeakMap,DC),cf,au,Ss,ou,di,cm,lu,ta,Co,MC,fU=(MC=class extends CP{constructor(t){super();or(this,ta);or(this,cf);or(this,au);or(this,Ss);or(this,ou);or(this,di);or(this,cm);or(this,lu);$t(this,lu,!1),$t(this,cm,t.defaultOptions),this.setOptions(t.options),this.observers=[],$t(this,ou,t.client),$t(this,Ss,Me(this,ou).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,$t(this,cf,pU(this.options)),this.state=t.state??Me(this,cf),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Me(this,di))==null?void 0:t.promise}setOptions(t){this.options={...Me(this,cm),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Me(this,Ss).remove(this)}setData(t,r){const n=nU(this.state.data,t,this.options);return ni(this,ta,Co).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ni(this,ta,Co).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=Me(this,di))==null?void 0:n.promise;return(i=Me(this,di))==null||i.cancel(t),r?r.then(Qs).catch(Qs):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Me(this,cf))}isActive(){return this.observers.some(t=>tU(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===b_||this.state.dataUpdateCount+this.state.errorUpdate
311Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>D2(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!eU(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=Me(this,di))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=Me(this,di))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Me(this,Ss).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(Me(this,di)&&(Me(this,lu)?Me(this,di).cancel({revert:!0}):Me(this,di).cancelRetry()),this.scheduleGc()),Me(this,Ss).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ni(this,ta,Co).call(this,{type:"invalidate"})}fetch(t,r){var c,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(Me(this,di))return Me(this,di).continueRetry(),Me(this,di).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const n=new AbortController,i=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>($t(this,lu,!0),n.signal)})},s=()=>{const p=_P(this.options,r),y=(()=>{const v={client:Me(this,ou),queryKey:this.queryKey,meta:this.meta};return i(v),v})();return $t(this,lu,!1),this.options.persister?this.options.persister(p,y,this):p(y)},o=(()=>{const p={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:Me(this,ou),state:this.state,fetchFn:s};return i(p),p})();(c=this.options.behavior)==null||c.onFetch(o,this),$t(this,au,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=o.fetchOptions)==null?void 0:d.meta))&&ni(this,ta,Co).call(this,{type:"fetch",meta:(h=o.fetchOptions)==null?void 0:h.meta});const l=p=>{var f,y,v,b;Ab(p)&&p.silent||ni(this,ta,Co).call(this,{type:"error",error:p}),Ab(p)||((y=(f=Me(this,Ss).config).onError)==null||y.call(f,p,this),(b=(v=Me(this,Ss).config).onSettled)==null||b.call(v,this.state.data,p,this)),this.scheduleGc()};return $t(this,di,EP({initialPromise:r==null?void 0:r.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:p=>{var f,y,v,b;if(p===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(w){l(w);return}(y=(f=Me(this,Ss).config).onSuccess)==null||y.call(f,p,this),(b=(v=Me(this,Ss).config).onSettled)==null||b.call(v,p,this.state.error,this),this.scheduleGc()},onError:l,onFail:(p,f)=>{ni(this,ta,Co).call(this,{type:"failed",failureCount:p,error:f})},onPause:()=>{ni(this,ta,Co).call(this,{type:"pause"})},onContinue:()=>{ni(this,ta,Co).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),Me(this,di).start()}},cf=new WeakMap,au=new WeakMap,Ss=new WeakMap,ou=new WeakMap,di=new WeakMap,cm=new WeakMap,lu=new WeakMap,ta=new WeakSet,Co=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...hU(n.data,this.options),fetchMeta:t.meta??null};case"success":return $t(this,au,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Ab(i)&&i.revert&&Me(this,au)?{...Me(this,au),fetchStatus:"idle"}
vendor: 4,533 bytes, line 311
311:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Si.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),Me(this,Ss).notify({query:this,type:"updated",action:t})})},MC);function hU(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:SP(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function pU(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var La,$C,mU=($C=class extends Fy{constructor(t={}){super();or(this,La);this.config=t,$t(this,La,new Map)}build(t,r,n){const i=r.queryKey,s=r.queryHash??y_(i,r);let a=this.get(s);return a||(a=new fU({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){Me(this,La).has(t.queryHash)||(Me(this,La).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=Me(this,La).get(t.queryHash);r&&(t.destroy(),r===t&&Me(this,La).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Si.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Me(this,La).get(t)}getAll(){return[...Me(this,La).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>s4(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>s4(t,n)):r}notify(t){Si.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Si.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Si.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},La=new WeakMap,$C),Ia,xi,cu,Fa,gl,BC,gU=(BC=class extends CP{constructor(t){super();or(this,Fa);or(this,Ia);or(this,xi);or(this,cu);this.mutationId=t.mutationId,$t(this,xi,t.mutationCache),$t(this,Ia,[]),this.state=t.state||vU(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Me(this,Ia).includes(t)||(Me(this,Ia).push(t),this.clearGcTimeout(),Me(this,xi).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){$t(this,Ia,Me(this,Ia).filter(r=>r!==t)),this.scheduleGc(),Me(this,xi).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Me(this,Ia).length||(this.state.status==="pending"?this.scheduleGc():Me(this,xi).remove(this))}continue(){var t;return((t=Me(this,cu))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,o,l,c,d,h,p,f,y,v,b,w,x,S,E,T,W,z,B;const r=()=>{ni(this,Fa,gl).call(this,{type:"continue"})};$t(this,cu,EP({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,X)=>{ni(this,Fa,gl).call(this,{type:"failed",failureCount:P,error:X})},onPause:()=>{ni(this,Fa,gl).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Me(this,xi).canRun(this)}));const n=this.state.status==="pending",i=!Me(this,cu).canStart();try{if(n)r();else{ni(this,Fa,gl).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(s=Me(this,xi).config).onMutate)==null?void 0:a.call(s,t,this));const X=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));X!==this.state.context&&ni(this,Fa,gl).call(this,{type:"pending",context:X,variables:t,isPaused:i})}const P=await Me(this,cu).start();return await((d=(c=Me(this,xi).config).onSuccess)==null?void 0:d.call(c,P,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,P,t,this.state.context)),await((y=(f=Me(this,xi).config).onSettled)==null?void 0:y.call(f,P,null,this.state.variables,this.state.context,this)),await((b=(v=this.options).onSettled)==null?void 0:b.call(v,P,null,t,this.state.context)),ni(this,Fa,gl).call(this,{type:"success",data:P}),P}catch(P){try{throw await((x=(w=Me(this,xi).config).onError)==null?void 0:x.call(w,P,t,this.state.context,this)),await((E=(S=this.options).onError)==null?void 0:E.
311call(S,P,t,this.state.context)),await((W=(T=Me(this,xi).config).onSettled)==null?void 0:W.call(T,void 0,P,this.state.variables,this.state.context,this)),await((B=(z=this.options).onSettled)==null?void 0:B.call(z,void 0,P,t,this.state.context)),P}finally{ni(this,Fa,gl).call(this,{type:"error",error:P})}}finally{Me(this,xi).runNext(this)}}},Ia=new WeakMap,xi=new WeakMap,cu=new WeakMap,Fa=new WeakSet,gl=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Si.batch(()=>{Me(this,Ia).forEach(n=>{n.onMutationUpdate(t)}),Me(this,xi).notify({mutation:this,type:"updated",action:t})})},BC);function vU(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Oo,ra,um,qC,yU=(qC=class extends Fy{constructor(t={}){super();or(this,Oo);or(this,ra);or(this,um);this.config=t,$t(this,Oo,new Set),$t(this,ra,new Map),$t(this,um,0)}build(t,r,n){const i=new gU({mutationCache:this,mutationId:++xg(this,um)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){Me(this,Oo).add(t);const r=zg(t);if(typeof r=="string"){const n=Me(this,ra).get(r);n?n.push(t):Me(this,ra).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Me(this,Oo).delete(t)){const r=zg(t);if(typeof r=="string"){const n=Me(this,ra).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&Me(this,ra).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=zg(t);if(typeof r=="string"){const n=Me(this,ra).get(r),i=n==null?void 0:n.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=zg(t);if(typeof r=="string"){const i=(n=Me(this,ra).get(r))==null?void 0:n.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Si.batch(()=>{Me(this,Oo).forEach(t=>{this.notify({type:"removed",mutation:t})}),Me(this,Oo).clear(),Me(this,ra).clear()})}getAll(){return Array.from(Me(this,Oo))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>a4(r,n))}findAll(t={}){return this.getAll().filter(r=>a4(t,r))}notify(t){Si.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
vendor: 6,930 bytes, lines 311-320
311r.state.isPaused);return Si.batch(()=>Promise.all(t.map(r=>r.continue().catch(Qs))))}},Oo=new WeakMap,ra=new WeakMap,um=new WeakMap,qC);function zg(e){var t;return(t=e.options.scope)==null?void 0:t.id}function c4(e){return{onFetch:(t,r)=>{var d,h,p,f,y;const n=t.options,i=(p=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,s=((f=t.state.data)==null?void 0:f.pages)||[],a=((y=t.state.data)==null?void 0:y.pageParams)||[];let o={pages:[],pageParams:[]},l=0;const c=async()=>{let v=!1;const b=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},w=_P(t.options,t.fetchOptions),x=async(S,E,T)=>{if(v)return Promise.reject();if(E==null&&S.pages.length)return Promise.resolve(S);const z=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:E,direction:T?"backward":"forward",meta:t.options.meta};return b(O),O})(),B=await w(z),{maxPages:P}=t.options,X=T?sU:iU;return{pages:X(S.pages,B,P),pageParams:X(S.pageParams,E,P)}};if(i&&s.length){const S=i==="backward",E=S?bU:u4,T={pages:s,pageParams:a},W=E(n,T);o=await x(T,W,S)}else{const S=e??s.length;do{const E=l===0?a[0]??n.initialPageParam:u4(n,o);if(l>0&&E==null)break;o=await x(o,E),l++}while(l<S)}return o};t.options.persister?t.fetchFn=()=>{var v,b;return(b=(v=t.options).persister)==null?void 0:b.call(v,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=c}}}function u4(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function bU(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Xr,Tl,Pl,uf,df,Ol,ff,hf,UC,wU=(UC=class{constructor(e={}){or(this,Xr);or(this,Tl);or(this,Pl);or(this,uf);or(this,df);or(this,Ol);or(this,ff);or(this,hf);$t(this,Xr,e.queryCache||new mU),$t(this,Tl,e.mutationCache||new yU),$t(this,Pl,e.defaultOptions||{}),$t(this,uf,new Map),$t(this,df,new Map),$t(this,Ol,0)}mount(){xg(this,Ol)._++,Me(this,Ol)===1&&($t(this,ff,kP.subscribe(async e=>{e&&(await this.resumePausedMutations(),Me(this,Xr).onFocus())})),$t(this,hf,k0.subscribe(async e=>{e&&(await this.resumePausedMutations(),Me(this,Xr).onOnline())})))}unmount(){var e,t;xg(this,Ol)._--,Me(this,Ol)===0&&((e=Me(this,ff))==null||e.call(this),$t(this,ff,void 0),(t=Me(this,hf))==null||t.call(this),$t(this,hf,void 0))}isFetching(e){return Me(this,Xr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Me(this,Tl).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Me(this,Xr).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=Me(this,Xr).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(D2(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return Me(this,Xr).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=Me(this,Xr).get(n.queryHash),s=i==null?void 0:i.state.data,a=Jq(t,s);if(a!==void 0)return Me(this,Xr).build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return Si.batch(()=>Me(this,Xr).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Me(this,Xr).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=Me(this,Xr);Si.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=Me(this,Xr);return Si.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Si.batch(()=>Me(this,Xr).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(Qs).catch(Qs)}invalidateQueries(e,t={}){return Si.batch(()=>(Me(this,Xr).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Si.batch(()=>Me(this,Xr).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,r);return r.throwOnError||(s=s.catch(Qs)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(n).then(Qs)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=Me(this,Xr).build(this,t);return r.isStaleByTime(D2(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Qs).catch(Qs)}fetchInfiniteQuery(e){return e.behavior=c4(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Qs).catch(Qs)}ensureInfiniteQueryData(e){return e.behavior=c4(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return k0.isOnline()?Me(this,Tl).resumePausedMutations():Promise.resolve()}getQueryCache(){return Me(this,Xr)}getMutationCache(){return Me(this,Tl)}getDefaultOptions(){return Me(this,Pl)}setDefaultOptions(e){$t(this,Pl,e)}setQueryDefaults(e,t){Me(this,uf).set($p(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Me(this,uf).values()],r={};return t.forEach(n=>{Bp(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){Me(this,df).set($p(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Me(this,df).values()],r={};return t.forEach(n=>{Bp(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Me(this,Pl).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=y_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===b_&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Me(this,Pl).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Me(this,Xr).clear(),Me(this,Tl).clear()}},Xr=new WeakMap,Tl=new WeakMap,Pl=new WeakMap,uf=new WeakMap,df=new WeakMap,Ol=new WeakMap,ff=new WeakMap,hf=new WeakMap,UC),xU=_.createContext(void 0),_U=({client:e,children:t})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(xU.Provider,{value:e,children:t}));/**
312 * @remix-run/router v1.23.0
313 *
314 * Copyright (c) Remix Software Inc.
315 *
316 * This source code is licensed under the MIT license found in the
317 * LICENSE.md file in the root directory of this source tree.
318 *
319 * @license MIT
320 */function qp(){return qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 5,028 bytes, line 320
320for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qp.apply(this,arguments)}var Il;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Il||(Il={}));const d4="popstate";function kU(e){e===void 0&&(e={});function t(n,i){let{pathname:s,search:a,hash:o}=n.location;return $2("",{pathname:s,search:a,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:S0(i)}return NU(t,r,null,e)}function vn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jP(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function SU(){return Math.random().toString(36).substr(2,8)}function f4(e,t){return{usr:e.state,key:e.key,idx:t}}function $2(e,t,r,n){return r===void 0&&(r=null),qp({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Uf(t):t,{state:r,key:t&&t.key||n||SU()})}function S0(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Uf(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function NU(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,a=i.history,o=Il.Pop,l=null,c=d();c==null&&(c=0,a.replaceState(qp({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function h(){o=Il.Pop;let b=d(),w=b==null?null:b-c;c=b,l&&l({action:o,location:v.location,delta:w})}function p(b,w){o=Il.Push;let x=$2(v.location,b,w);c=d()+1;let S=f4(x,c),E=v.createHref(x);try{a.pushState(S,"",E)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(E)}s&&l&&l({action:o,location:v.location,delta:1})}function f(b,w){o=Il.Replace;let x=$2(v.location,b,w);c=d();let S=f4(x,c),E=v.createHref(x);a.replaceState(S,"",E),s&&l&&l({action:o,location:v.location,delta:0})}function y(b){let w=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof b=="string"?b:S0(b);return x=x.replace(/ $/,"%20"),vn(w,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,w)}let v={get action(){return o},get location(){return e(i,a)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(d4,h),l=b,()=>{i.removeEventListener(d4,h),l=null}},createHref(b){return t(i,b)},createURL:y,encodeLocation(b){let w=y(b);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:p,replace:f,go(b){return a.go(b)}};return v}var h4;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(h4||(h4={}));function EU(e,t,r){return r===void 0&&(r="/"),CU(e,t,r,!1)}function CU(e,t,r,n){let i=typeof t=="string"?Uf(t):t,s=w_(i.pathname||"/",r);if(s==null)return null;let a=AP(e);jU(a);let o=null;for(let l=0;o==null&&l<a.length;++l){let c=$U(s);o=DU(a[l],c,n)}return o}function AP(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(s,a,o)=>{let l={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};l.relativePath.startsWith("/")&&(vn(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Kl([n,l.relativePath]),d=r.concat(l);s.children&&s.children.length>0&&(vn(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),AP(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:IU(c,s.index),routesMeta:d})};return e.forEach((s,a)=>{var o;if(s.path===""||!((o=s.path)!=null&&o.includes("?")))i(s,a);else for(let l of TP(s.path))i(s,a,l)}),t}function TP(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let a=TP(n.join("/")),o=[];return o.push(...a.map(l=>l===""?s:[s,l].join("/"))),i&&o.push(...a),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function jU(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:FU(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const AU=/^:[\w-]+$/,TU=3,PU=2,OU=1,RU=10,LU=-2,p4=e=>e==="*";function IU(e,t){let r=e.split("/"),n=r.length;return r.some(p4)&&(n+=LU),t&&(n+=PU),r.filter(i=>!p4(i)).reduce((i,s)=>i+(AU.test(s)?TU:s===""?OU:RU),n)}function FU(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function DU(e,t,r){let{routesMeta:n}=e,i={},s="/",a=[];for(let o=0;o<n.length;++o){let l=n[o],c=o===n.length-1,d=s==="/"?t:t.slice(s.length)||"/",h=m4({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),p=l.route;if(!h&&c&&r&&!n[n.length-1].route.index&&(h=m4({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;
vendor: 9,180 bytes, lines 320-329
320Object.assign(i,h.params),a.push({params:i,pathname:Kl([s,h.pathname]),pathnameBase:zU(Kl([s,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(s=Kl([s,h.pathnameBase]))}return a}function m4(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=MU(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:n.reduce((c,d,h)=>{let{paramName:p,isOptional:f}=d;if(p==="*"){let v=o[h]||"";a=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const y=o[h];return f&&!y?c[p]=void 0:c[p]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:a,pattern:e}}function MU(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),jP(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,l)=>(n.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function $U(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jP(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function w_(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function BU(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Uf(e):e;return{pathname:r?r.startsWith("/")?r:qU(r,t):t,search:HU(n),hash:VU(i)}}function qU(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Tb(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function UU(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function x_(e,t){let r=UU(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function __(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Uf(e):(i=qp({},e),vn(!i.pathname||!i.pathname.includes("?"),Tb("?","pathname","search",i)),vn(!i.pathname||!i.pathname.includes("#"),Tb("#","pathname","hash",i)),vn(!i.search||!i.search.includes("#"),Tb("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,o;if(a==null)o=r;else{let h=t.length-1;if(!n&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}o=h>=0?t[h]:"/"}let l=BU(i,o),c=a&&a!=="/"&&a.endsWith("/"),d=(s||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Kl=e=>e.join("/").replace(/\/\/+/g,"/"),zU=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),HU=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,VU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function WU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const PP=["post","put","patch","delete"];new Set(PP);const KU=["get",...PP];new Set(KU);/**
321 * React Router v6.30.1
322 *
323 * Copyright (c) Remix Software Inc.
324 *
325 * This source code is licensed under the MIT license found in the
326 * LICENSE.md file in the root directory of this source tree.
327 *
328 * @license MIT
329 */function Up(){return Up=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Up.apply(this,arguments)}const k_=_.createContext(null),GU=_.createContext(null),dc=_.createContext(null),My=_.createContext(null),fc=_.createContext({outlet:null,matches:[],isDataRoute:!1}),OP=_.createContext(null);function YU(e,t){let{relative:r}=t===void 0?{}:t;zf()||vn(!1);let{basename:n,navigator:i}=_.useContext(dc),{hash:s,pathname:a,search:o}=LP(e,{relative:r}),l=a;return n!=="/"&&(l=a==="/"?n:Kl([n,a])),i.createHref({pathname:l,search:o,hash:s})}function zf(){return _.useContext(My)!=null}function Mu(){return zf()||vn(!1),_.useContext(My).location}function RP(e){_.useContext(dc).static||_.useLayoutEffect(e)}function $y(){let{isDataRoute:e}=_.useContext(fc);return e?lz():ZU()}function ZU(){zf()||vn(!1);let e=_.useContext(k_),{basename:t,future:r,navigator:n}=_.useContext(dc),{matches:i}=_.useContext(fc),{pathname:s}=Mu(),a=JSON.stringify(x_(i,r.v7_relativeSplatPath)),o=_.useRef(!1);return RP(()=>{o.current=!0}),_.useCallback(function(c,d){if(d===void 0&&(d={}),!o.current)return;if(typeof c=="number"){n.go(c);return}let h=__(c,JSON.parse(a),s,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Kl([t,h.pathname])),(d.replace?n.replace:n.push)(h,d.state,d)},[t,n,a,s,e])}function LP(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=_.useContext(dc),{matches:i}=_.useContext(fc),{pathname:s}=Mu(),a=JSON.stringify(x_(i,n.v7_relativeSplatPath));return _.useMemo(()=>__(e,JSON.parse(a),s,r==="path"),[e,a,s,r])}function XU(e,t){return JU(e,t)}function JU(e,t,r,n){zf()||vn(!1);let{navigator:i}=_.useContext(dc),{matches:s}=_.useContext(fc),a=s[s.length-1],o=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Mu(),d;if(t){var h;let b=typeof t=="string"?Uf(t):t;l==="/"||(h=b.pathname)!=null&&h.startsWith(l)||vn(!1),d=b}else d=c;let p=d.pathname||"/",f=p;if(l!=="/"){let b=l.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(b.length).join("/")}let y=EU(e,{pathname:f}),v=nz(y&&y.map(b=>Object.assign({},b,{params:Object.assign({},o,b.params),pathname:Kl([l,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:Kl([l,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,r,n);return t&&v?_.createElement(My.Provider,{value:{location:Up({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Il.Pop}},v):v}function QU(){let e=oz(),t=WU(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),r?_.createElement("pre",{style:i},r):null,null)}const ez=_.createElement(QU,null);class tz extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?_.createElement(fc.Provider,{value:this.props.routeContext},_.createElement(OP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function rz(e){let{routeContext:t,match:r,children:n}=e,i=_.useContext(k_);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),_.createElement(fc.Provider,{value:t},n)}function nz(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var s;if(!r)return null;if(r.errors)e=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,o=(i=r)==null?void 0:i.errors;if(o!=null){let d=a.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);d>=0||vn(!1),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<a.length;d++){let h=a[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=d),h.route.id){let{loaderData:p,errors:f}=r,y=h.route.loader&&p[h.route.id]===void 0&&(!f||f[h.route.id]===void 0);if(h.route.lazy||y){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,h,p)=>{let f,y=!1,v=null,b=null;r&&(f=o&&h.route.id?o[h.route.id]:void 0,v=h.route.errorElement||ez,l&&(c<0&&p===0?(y=!0,b=null):c===p&&(y=!0,b=h.route.hydrateFallbackElement||null)));let w=t.concat(a.slice(0,p+1)),x=()=>{let S;return f?S=v:y?S=b:h.route.Component?S=_.createElement(h.route.Component,null):h.route.element?S=h.route.element:S=d,_.createElement(rz,{match:h,routeC
329ontext:{outlet:d,matches:w,isDataRoute:r!=null},children:S})};return r&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?_.createElement(tz,{location:r.location,revalidation:r.revalidation,component:v,error:f,children:x(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):x()},null)}var IP=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(IP||{}),N0=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(N0||{});function iz(e){let t=_.useContext(k_);return t||vn(!1),t}function sz(e){let t=_.useContext(GU);return t||vn(!1),t}function az(e){let t=_.useContext(fc);return t||vn(!1),t}function FP(e){let t=az(),r=t.matches[t.matches.length-1];return r.route.id||vn(!1),r.route.id}function oz(){var e;let t=_.useContext(OP),r=sz(N0.UseRouteError),n=FP(N0.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function lz(){let{router:e}=iz(IP.UseNavigateStable),t=FP(N0.UseNavigateStable),r=_.useRef(!1);return RP(()=>{r.current=!0}),_.useCallback(function(i,s){s===void 0&&(s={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Up({fromRouteId:t},s)))},[e,t])}function cz(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function DP(e){let{to:t,replace:r,state:n,relative:i}=e;zf()||vn(!1);let{future:s,static:a}=_.useContext(dc),{matches:o}=_.useContext(fc),{pathname:l}=Mu(),c=$y(),d=__(t,x_(o,s.v7_relativeSplatPath),l,i==="path"),h=JSON.stringify(d);return _.useEffect(()=>c(JSON.parse(h),{replace:r,state:n,relative:i}),[c,h,i,r,n]),null}function Ys(e){vn(!1)}function uz(e){let{basename:t="/",children:r=null,location:n,navigationType:i=Il.Pop,navigator:s,static:a=!1,future:o}=e;zf()&&vn(!1);let l=t.replace(/^\/*/,"/"),c=_.useMemo(()=>({basename:l,navigator:s,static:a,future:Up({v7_relativeSplatPath:!1},o)}),[l,o,s,a]);typeof n=="string"&&(n=Uf(n));let{pathname:d="/",search:h="",hash:p="",state:f=null,key:y="default"}=n,v=_.useMemo(()=>{let b=w_(d,l);return b==null?null:{location:{pathname:b,search:h,hash:p,state:f,key:y},navigationType:i}},[l,d,h,p,f,y,i]);return v==null?null:_.createElement(dc.Provider,{value:c},_.createElement(My.Provider,{children:r,value:v}))}function dz(e){let{children:t,location:r}=e;return XU(B2(t),r)}new Promise(()=>{});function B2(e,t){t===void 0&&(t=[]);let r=[];return _.Children.forEach(e,(n,i)=>{if(!_.isValidElement(n))return;let s=[...t,i];if(n.type===_.Fragment){r.push.apply(r,B2(n.props.children,s));return}n.type!==Ys&&vn(!1),!n.props.index||!n.props.children||vn(!1);let a={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=B2(n.props.children,s)),r.push(a)}),r}/**
330 * React Router DOM v6.30.1
331 *
332 * Copyright (c) Remix Software Inc.
333 *
334 * This source code is licensed under the MIT license found in the
335 * LICENSE.md file in the root directory of this source tree.
336 *
337 * @license MIT
338 */function q2(){return q2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},q2.apply(this,arguments)}function fz(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function hz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pz(e,t){return e.button===0&&(!t||t==="_self")&&!hz(e)}const mz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],gz="6";try{window.__reactRouterVersion=gz}catch{}const vz="startTransition",g4=i5[vz];function yz(e){let{basename:t,children:r,future:n,window:i}=e,s=_.useRef();s.current==null&&(s.current=kU({window:i,v5Compat:!0}));let a=s.current,[o,l]=_.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},d=_.useCallback(h=>{c&&g4?g4(()=>l(h)):l(h)},[l,c]);return _.useLayoutEffect(()=>a.listen(d),[a,d]),_.useEffect(()=>cz(n),[n]),_.createElement(uz,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}const bz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,U2=_.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:s,replace:a,state:o,target:l,to:c,preventScrollReset:d,viewTransition:h}=t,p=fz(t,mz),{basename:f}=_.useContext(dc),y,v=!1;if(typeof c=="string"&&wz.test(c)&&(y=c,bz))try{let S=new URL(window.location.href),E=c.startsWith("//")?new URL(S.protocol+c):new URL(c),T=w_(E.pathname,f);E.origin===S.origin&&T!=null?c=T+E.search+E.hash:v=!0}catch{}let b=YU(c,{relative:i}),w=xz(c,{replace:a,state:o,target:l,preventScrollReset:d,relative:i,viewTransition:h});function x(S){n&&n(S),S.defaultPrevented||w(S)}return _.createElement("a",q2({},p,{href:y||b,onClick:v||s?n:x,ref:r,target:l}))});var v4;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(v4||(v4={}));var y4;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(y4||(y4={}));function xz(e,t){let{target:r,replace:n,state:i,preventScrollReset:s,relative:a,viewTransition:o}=t===void 0?{}:t,l=$y(),c=Mu(),d=LP(e,{relative:a});return _.useCallback(h=>{if(pz(h,r)){h.preventDefault();let p=n!==void 0?n:S0(c)===S0(d);l(e,{replace:p,state:i,preventScrollReset:s,relative:a,viewTransition:o})}},[c,l,d,n,i,r,e,s,a,o])}const Ot=e=>typeof e=="string",Ih=()=>{let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r},b4=e=>e==null?"":""+e,_z=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},kz=/###/g,w4=e=>e&&e.indexOf("###")>-1?e.replace(kz,"."):e,x4=e=>!e||Ot(e),dp=(e,t,r)=>{const n=Ot(t)?t.split("."):t;let i=0;for(;i<n.length-1;){if(x4(e))return{};const s=w4(n[i]);!e[s]&&r&&(e[s]=new r),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++i}return x4(e)?{}:{obj:e,k:w4(n[i])}},_4=(e,t,r)=>{const{obj:n,k:i}=dp(e,t,Object);if(n!==void 0||t.length===1){n[i]=r;return}let s=t[t.length-1],a=t.slice(0,t.length-1),o=dp(e,a,Object);for(;o.obj===void 0&&a.length;)s=`${a[a.length-1]}.${s}`,a=a.slice(0,a.length-1),o=dp(e,a,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${s}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${s}`]=r},Sz=(e,t,r,n)=>{const{obj:i,k:s}=dp(e,t,Object);i[s]=i[s]||[],i[s].push(r)},E0=(e,t)=>{const{obj:r,k:n}=dp(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},Nz=(e,t,r)=>{const n=E0(e,r);return n!==void 0?n:E0(t,r)},MP=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?Ot(e[n])||e[n]instanceof String||Ot(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):MP(e[n],t[n],r):e[n]=t[n]);return e},id=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ez={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Cz=e=>Ot(e)?e.replace(/[&<>
338"'\/]/g,t=>Ez[t]):e;class jz{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const Az=[" ",",","?","!",";"],Tz=new jz(20),Pz=(e,t,r)=>{t=t||"",r=r||"";const n=Az.filter(a=>t.indexOf(a)<0&&r.indexOf(a)<0);if(n.length===0)return!0;const i=Tz.getRegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`);let s=!i.test(e);if(!s){const a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(s=!0)}return s},z2=(e,t,r=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const n=t.split(r);let i=e;for(let s=0;s<n.length;){if(!i||typeof i!="object")return;let a,o="";for(let l=s;l<n.length;++l)if(l!==s&&(o+=r),o+=n[l],a=i[o],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<n.length-1)continue;s+=l-s+1;break}i=a}return i},zp=e=>e==null?void 0:e.replace("_","-"),Oz={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var r,n;(n=(r=console==null?void 0:console[e])==null?void 0:r.apply)==null||n.call(r,console,t)}};class C0{constructor(t,r={}){this.init(t,r)}init(t,r={}){this.prefix=r.prefix||"i18next:",this.logger=t||Oz,this.options=r,this.debug=r.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,i){return i&&!this.debug?null:(Ot(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new C0(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new C0(this.logger,t)}}var Ua=new C0;class By{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const i=this.observers[n].get(r)||0;this.observers[n].set(r,i+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t,...r){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,s])=>{for(let a=0;a<s;a++)i(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,s])=>{for(let a=0;a<s;a++)i.apply(i,[t,...r])})}}class k4 extends By{constructor(t,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n,i={}){var c,d;const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.indexOf(".")>-1?o=t.split("."):(o=[t,r],n&&(Array.isArray(n)?o.push(...n):Ot(n)&&s?o.push(...n.split(s)):o.push(n)));const l=E0(this.data,o);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=o[0],r=o[1],n=o.slice(2).join(".")),l||!a||!Ot(n)?l:z2((d=(c=this.data)==null?void 0:c[t])==null?void 0:d[r],n,s)}addResource(t,r,n,i,s={silent:!1}){const a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let o=[t,r];n&&(o=o.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(o=t.split("."),i=r,r=o[1]),this.addNamespaces(r),_4(this.data,o,i),s.silent||this.emit("added",t,r,n,i)}addResources(t,r,n,i={silent:!1}){for(const s in n)(Ot(n[s])||Array.isArray(n[s]))&&this.addResource(t,r,s,n[s],{silent:!0});i.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,i,s,a={silent:!1,skipCopy:!1}){let o=[t,r];t.indexOf(".")>-1&&(o=t.split("."),i=n,n=r,r=o[1]),this.addNamespaces(r);let l=E0(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?MP(l,n,s):l={...l,...n}
vendor: 1,272 bytes, line 338
338,_4(this.data,o,l),a.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(i=>r[i]&&Object.keys(r[i]).length>0)}toJSON(){return this.data}}var $P={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(s=>{var a;t=((a=this.processors[s])==null?void 0:a.process(t,r,n,i))??t}),t}};const BP=Symbol("i18next/PATH_KEY");function Rz(){const e=[],t=Object.create(null);let r;return t.get=(n,i)=>{var s;return(s=r==null?void 0:r.revoke)==null||s.call(r),i===BP?e:(e.push(i),r=Proxy.revocable(n,t),r.proxy)},Proxy.revocable(Object.create(null),t).proxy}function H2(e,t){const{[BP]:r}=e(Rz());return r.join((t==null?void 0:t.keySeparator)??".")}const S4={},Pb=e=>!Ot(e)&&typeof e!="boolean"&&typeof e!="number";class j0 extends By{constructor(t,r={}){super(),_z(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
338i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ua.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,r={interpolation:{}}){const n={...r};if(t==null)return!1;const i=this.resolve(t,n);if((i==null?void 0:i.res)===void 0)return!1;const s=Pb(i.res);return!(n.returnObjects===!1&&s)}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let s=r.ns||this.options.defaultNS||[];const a=n&&t.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Pz(t,n,i);if(a&&!o){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:Ot(s)?[s]:s};const c=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),t=c.join(i)}return{key:t,namespaces:Ot(s)?[s]:s}}translate(t,r,n){let i=typeof r=="object"?{...r}:r;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=H2(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]);const s=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],i),c=l[l.length-1];let d=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");const h=i.lng||this.language,p=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((h==null?void 0:h.toLowerCase())==="cimode")return p?s?{res:`${c}${d}${o}`,usedKey:o,exactUsedKey:o,usedLng:h,usedNS:c,usedParams:this.getUsedParamsDetails(i)}:`${c}${d}${o}`:s?{res:o,usedKey:o,exactUsedKey:o,usedLng:h,usedNS:c,usedParams:this.getUsedParamsDetails(i)}:o;const f=this.resolve(t,i);let y=f==null?void 0:f.res;const v=(f==null?void 0:f.usedKey)||o,b=(f==null?void 0:f.exactUsedKey)||o,w=["[object Number]","[object Function]","[object RegExp]"],x=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,E=i.count!==void 0&&!Ot(i.count),T=j0.hasDefaultValue(i),W=E?this.pluralResolver.getSuffix(h,i.count,i):"",z=i.ordinal&&E?this.pluralResolver.getSuffix(h,i.count,{ordinal:!1}):"",B=E&&!i.ordinal&&i.count===0,P=B&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${W}`]||i[`defaultValue${z}`]||i.defaultValue;let X=y;S&&!y&&T&&(X=P);const O=Pb(X),A=Object.prototype.toString.apply(X);if(S&&X&&O&&w.indexOf(A)<0&&!(Ot(x)&&Array.isArray(X))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const K=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,X,{...i,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(f.res=K,f.usedParams=this.getUsedParamsDetails(i),f):K}if(a){const K=Array.isArray(X),R=K?[]:{},le=K?b:v;for(const oe in X)if(Object.prototype.hasOwnProperty.call(X,oe)){const se=`${le}${a}${oe}`;T&&!y?R[oe]=this.translate(se,{...i,defaultValue:Pb(P)?P[oe]:void 0,joinArrays:!1,ns:l}):R[oe]=this.translate(se,{...i,joinArrays:!1,ns:l}),R[oe]===se&&(R[oe]=X[oe])}y=R}}else if(S&&Ot(x)&&Array.isArray(y))y=y.join(x),y&&(y=this.extendTranslation(y,t,i,n));else{let K=!1,R=!1;!this.isValidLookup(y)&&T&&(K=!0,y=P),this.isValidLookup(y)||(R=!0,y=o);const oe=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&R?void 0:y,se=T&&P!==y&&this.options.updateMissing;if(R||K||se){if(this.logger.log(se?"updateKey":"missingKey",h,c,o,se?P:y),a){const M=this.resolve(o,{...i,keySeparator:!1});M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let F=[];const D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&D&&D[0])for(let M=0;M<D.length;M++)F.push(D[M]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(i.lng||this.language):F.push(i.lng||this.language);const $=(M,j,U)=>{var re;const H=T&&U!==y?U:oe;this.options.missingKeyHandler?this.options.missingKeyHandler(M,c,j,H,se,i):(re=this.backendConnector)!=null&&re.saveMissing&&this.backendConnector.saveMissing(M,c,j,H,se,i),this.emit
vendor: 33,131 bytes, line 338
338("missingKey",M,c,j,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?F.forEach(M=>{const j=this.pluralResolver.getSuffixes(M,i);B&&i[`defaultValue${this.options.pluralSeparator}zero`]&&j.indexOf(`${this.options.pluralSeparator}zero`)<0&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(U=>{$([M],o+U,i[`defaultValue${U}`]||P)})}):$(F,o,P))}y=this.extendTranslation(y,t,i,f,n),R&&y===o&&this.options.appendNamespaceToMissingKey&&(y=`${c}${d}${o}`),(R||K)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${d}${o}`:o,K?y:void 0,i))}return s?(f.res=y,f.usedParams=this.getUsedParamsDetails(i),f):y}extendTranslation(t,r,n,i,s){var l,c;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const d=Ot(t)&&(((c=n==null?void 0:n.interpolation)==null?void 0:c.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(d){const f=t.match(this.interpolator.nestingRegexp);h=f&&f.length}let p=n.replace&&!Ot(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,n.lng||this.language||i.usedLng,n),d){const f=t.match(this.interpolator.nestingRegexp),y=f&&f.length;h<y&&(n.nest=!1)}!n.lng&&i&&i.res&&(n.lng=this.language||i.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,(...f)=>(s==null?void 0:s[0])===f[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${r[0]}`),null):this.translate(...f,r),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,o=Ot(a)?[a]:a;return t!=null&&(o!=null&&o.length)&&n.applyPostProcessor!==!1&&(t=$P.handle(o,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t,r={}){let n,i,s,a,o;return Ot(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(l,r),d=c.key;i=d;let h=c.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const p=r.count!==void 0&&!Ot(r.count),f=p&&!r.ordinal&&r.count===0,y=r.context!==void 0&&(Ot(r.context)||typeof r.context=="number")&&r.context!=="",v=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);h.forEach(b=>{var w,x;this.isValidLookup(n)||(o=b,!S4[`${v[0]}-${b}`]&&((w=this.utils)!=null&&w.hasLoadedNamespace)&&!((x=this.utils)!=null&&x.hasLoadedNamespace(o))&&(S4[`${v[0]}-${b}`]=!0,this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(S=>{var W;if(this.isValidLookup(n))return;a=S;const E=[d];if((W=this.i18nFormat)!=null&&W.addLookupKeys)this.i18nFormat.addLookupKeys(E,d,S,b,r);else{let z;p&&(z=this.pluralResolver.getSuffix(S,r.count,r));const B=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(r.ordinal&&z.indexOf(P)===0&&E.push(d+z.replace(P,this.options.pluralSeparator)),E.push(d+z),f&&E.push(d+B)),y){const X=`${d}${this.options.contextSeparator||"_"}${r.context}`;E.push(X),p&&(r.ordinal&&z.indexOf(P)===0&&E.push(X+z.replace(P,this.options.pluralSeparator)),E.push(X+z),f&&E.push(X+B))}}let T;for(;T=E.pop();)this.isValidLookup(n)||(s=T,n=this.getResource(S,b,T,r))}))})}),{res:n,usedKey:i,exactUsedKey:s,usedLng:a,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n,i={}){var s;return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(t,r,n,i):this.resourceStore.getResource(t,r,n,i)}getUsedParamsDetails(t={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!Ot(t.replace);let i=n?t.replace:t;if(n&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const s of r)delete i[s]}return i}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}class N4{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ua.create("languageUtils")}getScriptPartFromCode(t){if(t=zp(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=zp(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(Ot(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const i=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(i))&&(r=i)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const i=this.getScriptPartFromCode(n);if(this.isSupportedCode(i))return r=i;const s=this.getLanguagePartFromCode(n);if(this.isSupportedCode(s))return r=s;r=this.options.supportedLngs.find(a=>{if(a===s)return a;if(!(a.indexOf("-")<0&&s.indexOf("-")<0)&&(a.indexOf("-")>0&&s.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===s||a.indexOf(s)===0&&s.length>1))return a})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),Ot(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],t),i=[],s=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return Ot(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):Ot(t)&&s(this.formatLanguageCode(t)),n.forEach(a=>{i.indexOf(a)<0&&s(this.formatLanguageCode(a))}),i}}const E4={zero:0,one:1,two:2,few:3,many:4,other:5},C4={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Lz{constructor(t,r={}){this.languageUtils=t,this.options=r,this.logger=Ua.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t,r={}){const n=zp(t==="dev"?"en":t),i=r.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:n,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let a;try{a=new Intl.PluralRules(n,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),C4;if(!t.match(/-|_/))return C4;const l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,r)}return this.pluralRulesCache[s]=a,a}needsPlural(t,r={}){let n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,r,n={}){return this.getSuffixes(t,n).map(i=>`${r}${i}`)}getSuffixes(t,r={}){let n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((i,s)=>E4[i]-E4[s]).map(i=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,r,n={}){const i=this.getRule(t,n);return i?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,n))}}const j4=(e,t,r,n=".",i=!0)=>{let s=Nz(e,t,r);return!s&&i&&Ot(r)&&(s=z2(e,r,n),s===void 0&&(s=z2(t,r,n))),s},Ob=e=>e.replace(/\$/g,"$$$$");class A4{constructor(t={}){var r;this.logger=Ua.create("interpolator"),this.options=t,this.format=((r=t==null?void 0:t.interpolation)==null?void 0:r.format)||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:i,prefix:s,prefixEscaped:a,suffix:o,suffixEscaped:l,formatSeparator:c,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:p,nestingPrefixEscaped:f,nestingSuffix:y,nestingSuffixEscaped:v,nestingOptionsSeparator:b,maxReplaces:w,alwaysFormat:x}=t.interpolation;this.escape=r!==void 0?r:Cz,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?id(s):a||"{{",this.suffix=o?id(o):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?id(p):f||id("$t("),this.nestingSuffix=y?id(y):v||id(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=w||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>(r==null?void 0:r.source)===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,r,n,i){var f;let s,a,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=y=>{if(y.indexOf(this.formatSeparator)<0){const x=j4(r,l,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,n,{...i,...r,interpolationkey:y}):x}const v=y.split(this.formatSeparator),b=v.shift().trim(),w=v.join(this.formatSeparator).trim();return this.format(j4(r,l,b,this.options.keySeparator,this.options.ignoreJSONStructure),w,n,{...i,...r,interpolationkey:b})};this.resetRegExp();const d=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,h=((f=i==null?void 0:i.interpolation)==null?void 0:f.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>Ob(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?Ob(this.escape(y)):Ob(y)}].forEach(y=>{for(o=0;s=y.regex.exec(t);){const v=s[1].trim();if(a=c(v),a===void 0)if(typeof d=="function"){const w=d(t,s,i);a=Ot(w)?w:""}else if(i&&Object.prototype.hasOwnProperty.call(i,v))a="";else if(h){a=s[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),a="";else!Ot(a)&&!this.useRawValueToEscape&&(a=b4(a));const b=y.safeValue(a);if(t=t.replace(s[0],b),h?(y.regex.lastIndex+=a.length,y.regex.lastIndex-=s[0].length):y.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,r,n={}){let i,s,a;const o=(l,c)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const h=l.split(new RegExp(`${d}[ ]*{`));let p=`{${h[1]}`;l=h[0],p=this.interpolate(p,a);const f=p.match(/'/g),y=p.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!y||y.length%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),c&&(a={...c,...a})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,v),`${l}${d}${p}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];a={...n},a=a.replace&&!Ot(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const c=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(c!==-1&&(l=i[1].slice(c).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),i[1]=i[1].slice(0,c)),s=r(o.call(this,i[1].trim(),a),a),s&&i[0]===t&&!Ot(s))return s;Ot(s)||(s=b4(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),l.length&&(s=l.reduce((d,h)=>this.format(d,h,n.lng,{...n,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}const Iz=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);t==="currency"&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(a=>{if(a){const[o,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),d=o.trim();r[d]||(r[d]=c),c==="false"&&(r[d]=!1),c==="true"&&(r[d]=!0),isNaN(c)||(r[d]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},T4=e=>{const t={};return(r,n,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const a=n+JSON.stringify(s);let o=t[a];return o||(o=e(zp(n),i),t[a]=o),o(r)}},Fz=e=>(t,r,n)=>e(zp(r),n)(t);class Dz{constructor(t={}){this.logger=Ua.create("formatter"),this.options=t,this.init(t)}init(t,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const n=r.cacheInBuiltFormats?T4:Fz;this.formats={number:n((i,s)=>{const a=new Intl.NumberFormat(i,{...s});return o=>a.format(o)}),currency:n((i,s)=>{const a=new Intl.NumberFormat(i,{...s,style:"currency"});return o=>a.format(o)}),datetime:n((i,s)=>{const a=new Intl.DateTimeFormat(i,{...s});return o=>a.format(o)}),relativetime:n((i,s)=>{const a=new Intl.RelativeTimeFormat(i,{...s});return o=>a.format(o,s.range||"day")}),list:n((i,s)=>{const a=new Intl.ListFormat(i,{...s});return o=>a.format(o)})}}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=T4(r)}format(t,r,n,i={}){const s=r.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(o=>o.indexOf(")")>-1)){const o=s.findIndex(l=>l.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,o)].join(this.formatSeparator)}return s.reduce((o,l)=>{var h;const{formatName:c,formatOptions:d}=Iz(l);if(this.formats[c]){let p=o;try{const f=((h=i==null?void 0:i.formatParams)==null?void 0:h[i.interpolationkey])||{},y=f.locale||f.lng||i.locale||i.lng||n;p=this.formats[c](o,y,{...d,...i,...f})}catch(f){this.logger.warn(f)}return p}else this.logger.warn(`there was no format function for ${c}`);return o},t)}}const Mz=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class $z extends By{constructor(t,r,n,i={}){var s,a;super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=Ua.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(a=(s=this.backend)==null?void 0:s.init)==null||a.call(s,n,i.backend,i)}queueLoad(t,r,n,i){const s={},a={},o={},l={};return t.forEach(c=>{let d=!0;r.forEach(h=>{const p=`${c}|${h}`;!n.reload&&this.store.hasResourceBundle(c,h)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,d=!1,a[p]===void 0&&(a[p]=!0),s[p]===void 0&&(s[p]=!0),l[h]===void 0&&(l[h]=!0)))}),d||(o[c]=!0)}),(Object.keys(s).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const i=t.split("|"),s=i[0],a=i[1];r&&this.emit("failedLoading",s,a,r),!r&&n&&this.store.addResourceBundle(s,a,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const o={};this.queue.forEach(l=>{Sz(l.loaded,[s],a),Mz(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{o[c]||(o[c]={});const d=l.loaded[c];d.length&&d.forEach(h=>{o[c][h]===void 0&&(o[c][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n,i=0,s=this.retryTimeout,a){if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:i,wait:s,callback:a});return}this.readingCalls++;const o=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(c&&d&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,i+1,s*2,a)},s);return}a(c,d)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const c=l(t,r);c&&typeof c.then=="function"?c.then(d=>o(null,d)).catch(o):o(null,c)}catch(c){o(c)}return}return l(t,r,o)}prepareLoading(t,r,n={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Ot(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ot(r)&&(r=[r]);const s=this.queueLoad(t,r,n,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(a=>{this.loadOne(a)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t,r=""){const n=t.split("|"),i=n[0],s=n[1];this.read(i,s,"read",void 0,void 0,(a,o)=>{a&&this.logger.warn(`${r}loading namespace ${s} for language ${i} failed`,a),!a&&o&&this.logger.log(`${r}loaded namespace ${s} for language ${i}`,o),this.loaded(t,a,o)})}saveMissing(t,r,n,i,s,a={},o=()=>{}){var l,c,d,h,p;if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((h=(d=this.services)==null?void 0:d.utils)!=null&&h.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if((p=this.backend)!=null&&p.create){const f={...a,isUpdate:s},y=this.backend.create.bind(this.backend);if(y.length<6)try{let v;y.length===5?v=y(t,r,n,i,f):v=y(t,r,n,i),v&&typeof v.then=="function"?v.then(b=>o(null,b)).catch(o):o(null,v)}catch(v){o(v)}else y(t,r,n,i,o,f)}!t||!t[0]||this.store.addResource(t[0],r,n,i)}}}const P4=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Ot(e[1])&&(t.defaultValue=e[1]),Ot(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),O4=e=>{var t,r;return Ot(e.ns)&&(e.ns=[e.ns]),Ot(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ot(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((r=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:r.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Hg=()=>{},Bz=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class fp extends By{constructor(t={},r){if(super(),this.options=O4(t),this.services={},this.logger=Ua,this.modules={external:[]},Bz(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(t={},r){this.isInitializing=!0,typeof t=="function"&&(r=t,t={}),t.defaultNS==null&&t.ns&&(Ot(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=P4();this.options={...n,...this.options,...O4(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);const i=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Ua.init(i(this.modules.logger),this.options):Ua.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=Dz;const d=new N4(this.options);this.store=new k4(this.options.resources,this.options);const h=this.services;h.logger=Ua,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new Lz(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),c&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(h.formatter=i(c),h.formatter.init&&h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new A4(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new $z(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",(f,...y)=>{this.emit(f,...y)}),this.modules.languageDetector&&(h.languageDetector=i(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=i(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new j0(this.services,this.options),this.translator.on("*",(f,...y)=>{this.emit(f,...y)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Hg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...d)=>this.store[c](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...d)=>(this.store[c](...d),this)});const o=Ih(),l=()=>{const c=(d,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(h),r(d,h)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),o}loadResources(t,r=Hg){var s,a;let n=r;const i=Ot(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const o=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(h=>{h!=="cimode"&&o.indexOf(h)<0&&o.push(h)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),(a=(s=this.options.preload)==null?void 0:s.forEach)==null||a.call(s,c=>l(c)),this.services.backendConnector.load(o,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(c)})}else n(null)}reloadResources(t,r,n){const i=Ih();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=Hg),this.services.backendConnector.reload(t,r,s=>{i.resolve(),n(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&$P.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,r){this.isLanguageChangingTo=t;const n=Ih();this.emit("languageChanging",t);const i=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},s=(o,l)=>{l?this.isLanguageChangingTo===t&&(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,n.resolve((...c)=>this.t(...c)),r&&r(o,(...c)=>this.t(...c))},a=o=>{var d,h;!t&&!o&&this.services.languageDetector&&(o=[]);const l=Ot(o)?o:o&&o[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(Ot(o)?[o]:o);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),(h=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||h.call(d,c)),this.loadResources(c,p=>{s(p,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),n}getFixedT(t,r,n){const i=(s,a,...o)=>{let l;typeof a!="object"?l=this.options.overloadTranslationOptionHandler([s,a].concat(o)):l={...a},l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||i.keyPrefix);const c=this.options.keySeparator||".";let d;return l.keyPrefix&&Array.isArray(s)?d=s.map(h=>(typeof h=="function"&&(h=H2(h,{...this.options,...a})),`${l.keyPrefix}${c}${h}`)):(typeof s=="function"&&(s=H2(s,{...this.options,...a})),d=l.keyPrefix?`${l.keyPrefix}${c}${s}`:s),this.t(d,l)};return Ot(t)?i.lng=t:i.lngs=t,i.ns=r,i.keyPrefix=n,i}t(...t){var r;return(r=this.translator)==null?void 0:r.translate(...t)}exists(...t){var r;return(r=this.translator)==null?void 0:r.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const a=(o,l)=>{const c=this.services.backendConnector.state[`${o}|${l}`];return c===-1||c===0||c===2};if(r.precheck){const o=r.precheck(this,a);if(o!==void 0)return o}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,t)&&(!i||a(s,t)))}loadNamespaces(t,r){const n=Ih();return this.options.ns?(Ot(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Ih();Ot(t)&&(t=[t]);const i=this.options.preload||[],s=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return s.length?(this.options.preload=i.concat(s),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}dir(t){var i,s;if(t||(t=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const a=new Intl.Locale(t);if(a&&a.getTextInfo){const o=a.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((s=this.services)==null?void 0:s.languageUtils)||new N4(P4());return t.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},r){const n=new fp(t,r);return n.createInstance=fp.createInstance,n}cloneInstance(t={},r=Hg){const n=t.forkResourceStore;n&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new fp(i);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(o=>{s[o]=this[o]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},n){const o=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((d,h)=>(d[h]={...l[c][h]},d),l[c]),l),{});s.store=new k4(o,i),s.services.resourceStore=s.store}return t.interpolation&&(s.services.interpolator=new A4(i)),s.translator=new j0(s.services,i),s.translator.on("*",(o,...l)=>{s.emit(o,...l)}),s.init(i,r),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ti=fp.createInstance();Ti.createInstance;Ti.dir;Ti.init;Ti.loadResources;Ti.reloadResources;Ti.use;Ti.changeLanguage;Ti.getFixedT;Ti.t;Ti.exists;Ti.setDefaultNamespace;Ti.hasLoadedNamespace;Ti.loadNamespaces;Ti.loadLanguages;const qz=(e,t,r,n)=>{var s,a,o,l;const i=[r,{code:t,...n||{}}];if((a=(s=e==null?void 0:e.services)==null?void 0:s.logger)!=null&&a.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);_u(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(l=(o=e==null?void 0:e.services)==null?void 0:o.logger)!=null&&l.warn?e.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},R4={},qP=(e,t,r,n)=>{_u(r)&&R4[r]||(_u(r)&&(R4[r]=new Date),qz(e,t,r,n))},UP=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},V2=(e,t,r)=>{e.loadNamespaces(t,UP(e,r))},L4=(e,t,r,n)=>{if(_u(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return V2(e,r,n);r.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,UP(e,n))},Uz=(e,t,r={})=>
338!t.languages||!t.languages.length?(qP(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:r.lng,precheck:(n,i)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!i(n.isLanguageChangingTo,e))return!1}}),_u=e=>typeof e=="string",zz=e=>typeof e=="object"&&e!==null,Hz=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Vz={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Wz=e=>Vz[e],Kz=e=>e.replace(Hz,Wz);let W2={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Kz};const Gz=(e={})=>{W2={...W2,...e}},Yz=()=>W2;let zP;const Zz=e=>{zP=e},Xz=()=>zP,Jz={type:"3rdParty",init(e){Gz(e.options.react),Zz(e)}},Qz=_.createContext();class eH{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var HP={exports:{}},VP={};/**
339 * @license React
340 * use-sync-external-store-shim.production.js
341 *
342 * Copyright (c) Meta Platforms, Inc. and affiliates.
343 *
344 * This source code is licensed under the MIT license found in the
345 * LICENSE file in the root directory of this source tree.
346 */var kf=_;function tH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rH=typeof Object.is=="function"?Object.is:tH,nH=kf.useState,iH=kf.useEffect,sH=kf.useLayoutEffect,aH=kf.useDebugValue;function oH(e,t){var r=t(),n=nH({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return sH(function(){i.value=r,i.getSnapshot=t,Rb(i)&&s({inst:i})},[e,r,t]),iH(function(){return Rb(i)&&s({inst:i}),e(function(){Rb(i)&&s({inst:i})})},[e]),aH(r),r}function Rb(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!rH(e,r)}catch{return!0}}function lH(e,t){return t()}var cH=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?lH:oH;VP.useSyncExternalStore=kf.useSyncExternalStore!==void 0?kf.useSyncExternalStore:cH;HP.exports=VP;var uH=HP.exports;const dH=(e,t)=>_u(t)?t:zz(t)&&_u(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,fH={t:dH,ready:!1},hH=()=>()=>{},gi=(e,t={})=>{var P,X,O;const{i18n:r}=t,{i18n:n,defaultNS:i}=_.useContext(Qz)||{},s=r||n||Xz();s&&!s.reportNamespaces&&(s.reportNamespaces=new eH),s||qP(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const a=_.useMemo(()=>{var A;return{...Yz(),...(A=s==null?void 0:s.options)==null?void 0:A.react,...t}},[s,t]),{useSuspense:o,keyPrefix:l}=a,c=i||((P=s==null?void 0:s.options)==null?void 0:P.defaultNS),d=_u(c)?[c]:c||["translation"],h=_.useMemo(()=>d,d);(O=(X=s==null?void 0:s.reportNamespaces)==null?void 0:X.addUsedNamespaces)==null||O.call(X,h);const p=_.useRef(0),f=_.useCallback(A=>{if(!s)return hH;const{bindI18n:K,bindI18nStore:R}=a,le=()=>{p.current+=1,A()};return K&&s.on(K,le),R&&s.store.on(R,le),()=>{K&&K.split(" ").forEach(oe=>s.off(oe,le)),R&&R.split(" ").forEach(oe=>s.store.off(oe,le))}},[s,a]),y=_.useRef(),v=_.useCallback(()=>{if(!s)return fH;const A=!!(s.isInitialized||s.initializedStoreOnce)&&h.every(F=>Uz(F,s,a)),K=t.lng||s.language,R=p.current,le=y.current;if(le&&le.ready===A&&le.lng===K&&le.keyPrefix===l&&le.revision===R)return le;const se={t:s.getFixedT(K,a.nsMode==="fallback"?h:h[0],l),ready:A,lng:K,keyPrefix:l,revision:R};return y.current=se,se},[s,h,l,a,t.lng]),[b,w]=_.useState(0),{t:x,ready:S}=uH.useSyncExternalStore(f,v,v);_.useEffect(()=>{if(s&&!S&&!o){const A=()=>w(K=>K+1);t.lng?L4(s,t.lng,h,A):V2(s,h,A)}},[s,t.lng,h,S,o,b]);const E=s||{},T=_.useRef(null),W=_.useRef(),z=A=>{const K=Object.getOwnPropertyDescriptors(A);K.__original&&delete K.__original;const R=Object.create(Object.getPrototypeOf(A),K);if(!Object.prototype.hasOwnProperty.call(R,"__original"))try{Object.defineProperty(R,"__original",{value:A,writable:!1,enumerable:!1,
vendor: 5,574 bytes, line 346
346configurable:!1})}catch{}return R},B=_.useMemo(()=>{const A=E,K=A==null?void 0:A.language;let R=A;A&&(T.current&&T.current.__original===A?W.current!==K?(R=z(A),T.current=R,W.current=K):R=T.current:(R=z(A),T.current=R,W.current=K));const le=[x,R,S];return le.t=x,le.i18n=R,le.ready=S,le},[x,E,S,E.resolvedLanguage,E.language,E.languages]);if(s&&o&&!S)throw new Promise(A=>{const K=()=>A();t.lng?L4(s,t.lng,h,K):V2(s,h,K)});return B},K2=e_("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),gt=_.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},s)=>{const a=n?U7:"button";return u.jsx(a,{className:Ue(K2({variant:t,size:r,className:e})),ref:s,...i})});gt.displayName="Button";var pH=_.createContext(void 0);function qy(e){const t=_.useContext(pH);return e||t||"ltr"}var Lb=0;function Uy(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??I4()),document.body.insertAdjacentElement("beforeend",e[1]??I4()),Lb++,()=>{Lb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Lb--}},[])}function I4(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ib="focusScope.autoFocusOnMount",Fb="focusScope.autoFocusOnUnmount",F4={bubbles:!1,cancelable:!0},mH="FocusScope",_m=_.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=e,[o,l]=_.useState(null),c=gn(i),d=gn(s),h=_.useRef(null),p=qt(t,v=>l(v)),f=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(n){let v=function(S){if(f.paused||!o)return;const E=S.target;o.contains(E)?h.current=E:vl(h.current,{select:!0})},b=function(S){if(f.paused||!o)return;const E=S.relatedTarget;E!==null&&(o.contains(E)||vl(h.current,{select:!0}))},w=function(S){if(document.activeElement===document.body)for(const T of S)T.removedNodes.length>0&&vl(o)};document.addEventListener("focusin",v),document.addEventListener("focusout",b);const x=new MutationObserver(w);return o&&x.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",b),x.disconnect()}}},[n,o,f.paused]),_.useEffect(()=>{if(o){M4.add(f);const v=document.activeElement;if(!o.contains(v)){const w=new CustomEvent(Ib,F4);o.addEventListener(Ib,c),o.dispatchEvent(w),w.defaultPrevented||(gH(xH(WP(o)),{select:!0}),document.activeElement===v&&vl(o))}return()=>{o.removeEventListener(Ib,c),setTimeout(()=>{const w=new CustomEvent(Fb,F4);o.addEventListener(Fb,d),o.dispatchEvent(w),w.defaultPrevented||vl(v??document.body,{select:!0}),o.removeEventListener(Fb,d),M4.remove(f)},0)}}},[o,c,d,f]);const y=_.useCallback(v=>{if(!r&&!n||f.paused)return;const b=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,w=document.activeElement;if(b&&w){const x=v.currentTarget,[S,E]=vH(x);S&&E?!v.shiftKey&&w===E?(v.preventDefault(),r&&vl(S,{select:!0})):v.shiftKey&&w===S&&(v.preventDefault(),r&&vl(E,{select:!0})):w===x&&v.preventDefault()}},[r,n,f.paused]);return u.jsx(Nt.div,{tabIndex:-1,...a,ref:p,onKeyDown:y})});_m.displayName=mH;function gH(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(vl(n,{select:t}),document.activeElement!==r)return}function vH(e){const t=WP(e),r=D4(t,e),n=D4(t.reverse(),e);return[r,n]}function WP(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function D4(e,t){for(const r of e)if(!yH(r,{upTo:t}))return r}function yH(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function bH(e){return e instanceof HTMLInputElement&&"select"in e}function vl(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&bH(e)&&t&&e.select()}}var M4=wH();function wH(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=$4(e,t),e.unshift(t)},remove(t){var r;e=$4(e,t),(r=e[0])==null||r.resume()}}}function $4(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function xH(e){return e.filter(t=>t.tagName!=="A")}var Db="rovingFocusGroup.onEntryFocus",_H={bubbles:!1,cancelable:!0},km="RovingFocusGroup",[G2,KP,kH]=Ny(km),[SH,GP]=gs(km,[kH]),[NH,EH]=SH(km),YP=_.forwardRef((e,t)=>
vendor: 4,290 bytes, line 346
346u.jsx(G2.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(G2.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(CH,{...e,ref:t})})}));YP.displayName=km;var CH=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:o,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...h}=e,p=_.useRef(null),f=qt(t,p),y=qy(s),[v,b]=qo({prop:a,defaultProp:o??null,onChange:l,caller:km}),[w,x]=_.useState(!1),S=gn(c),E=KP(r),T=_.useRef(!1),[W,z]=_.useState(0);return _.useEffect(()=>{const B=p.current;if(B)return B.addEventListener(Db,S),()=>B.removeEventListener(Db,S)},[S]),u.jsx(NH,{scope:r,orientation:n,dir:y,loop:i,currentTabStopId:v,onItemFocus:_.useCallback(B=>b(B),[b]),onItemShiftTab:_.useCallback(()=>x(!0),[]),onFocusableItemAdd:_.useCallback(()=>z(B=>B+1),[]),onFocusableItemRemove:_.useCallback(()=>z(B=>B-1),[]),children:u.jsx(Nt.div,{tabIndex:w||W===0?-1:0,"data-orientation":n,...h,ref:f,style:{outline:"none",...e.style},onMouseDown:Ge(e.onMouseDown,()=>{T.current=!0}),onFocus:Ge(e.onFocus,B=>{const P=!T.current;if(B.target===B.currentTarget&&P&&!w){const X=new CustomEvent(Db,_H);if(B.currentTarget.dispatchEvent(X),!X.defaultPrevented){const O=E().filter(oe=>oe.focusable),A=O.find(oe=>oe.active),K=O.find(oe=>oe.id===v),le=[A,K,...O].filter(Boolean).map(oe=>oe.ref.current);JP(le,d)}}T.current=!1}),onBlur:Ge(e.onBlur,()=>x(!1))})})}),ZP="RovingFocusGroupItem",XP=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,children:a,...o}=e,l=Ga(),c=s||l,d=EH(ZP,r),h=d.currentTabStopId===c,p=KP(r),{onFocusableItemAdd:f,onFocusableItemRemove:y,currentTabStopId:v}=d;return _.useEffect(()=>{if(n)return f(),()=>y()},[n,f,y]),u.jsx(G2.ItemSlot,{scope:r,id:c,focusable:n,active:i,children:u.jsx(Nt.span,{tabIndex:h?0:-1,"data-orientation":d.orientation,...o,ref:t,onMouseDown:Ge(e.onMouseDown,b=>{n?d.onItemFocus(c):b.preventDefault()}),onFocus:Ge(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:Ge(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){d.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const w=TH(b,d.orientation,d.dir);if(w!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let S=p().filter(E=>E.focusable).map(E=>E.ref.current);if(w==="last")S.reverse();else if(w==="prev"||w==="next"){w==="prev"&&S.reverse();const E=S.indexOf(b.currentTarget);S=d.loop?PH(S,E+1):S.slice(E+1)}setTimeout(()=>JP(S))}}),children:typeof a=="function"?a({isCurrentTabStop:h,hasTabStop:v!=null}):a})})});XP.displayName=ZP;var jH={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function AH(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function TH(e,t,r){const n=AH(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return jH[n]}function JP(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function PH(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var OH=YP,RH=XP,LH=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},sd=new WeakMap,Vg=new WeakMap,Wg={},Mb=0,QP=function(e){return e&&(e.host||QP(e.parentNode))},IH=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=QP(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},FH=function(e,t,r,n){var i=IH(t,Array.isArray(e)?e:[e]);Wg[r]||(Wg[r]=new WeakMap);var s=Wg[r],a=[],o=new Set,l=new Set(i),c=function(h){!h||o.has(h)||(o.add(h),c(h.parentNode))};i.forEach(c);var d=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(p){if(o.has(p))d(p);else try{var f=p.getAttribute(n),y=f!==null&&f!=="false",v=(sd.get(p)||0)+1,b=(s.get(p)||0)+1;sd.set(p,v),s.set(p,b),a.push(p),v===1&&y&&Vg.set(p,!0),b===1&&p.setAttribute(r,"true"),y||p.setAttribute(n,"true")}catch(w){console.error("aria-hidden: cannot operate on ",p,w)}})};return d(t),o.clear(),Mb++,function(){a.forEach(function(h){var p=sd.get(h)-1,f=s.get(h)-1;
vendor: 4,665 bytes, line 346
346sd.set(h,p),s.set(h,f),p||(Vg.has(h)||h.removeAttribute(n),Vg.delete(h)),f||h.removeAttribute(r)}),Mb--,Mb||(sd=new WeakMap,sd=new WeakMap,Vg=new WeakMap,Wg={})}},zy=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=LH(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),FH(n,i,r,"aria-hidden")):function(){return null}},Y2=function(e,t){return Y2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Y2(e,t)};function e6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Y2(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var js=function(){return js=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},js.apply(this,arguments)};function hc(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function t6(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(i<3?a(s):i>3?a(t,r,s):a(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function r6(e,t){return function(r,n){t(r,n,e)}}function n6(e,t,r,n,i,s){function a(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}for(var o=n.kind,l=o==="getter"?"get":o==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),h,p=!1,f=r.length-1;f>=0;f--){var y={};for(var v in n)y[v]=v==="access"?{}:n[v];for(var v in n.access)y.access[v]=n.access[v];y.addInitializer=function(w){if(p)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(w||null))};var b=(0,r[f])(o==="accessor"?{get:d.get,set:d.set}:d[l],y);if(o==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(h=a(b.get))&&(d.get=h),(h=a(b.set))&&(d.set=h),(h=a(b.init))&&i.unshift(h)}else(h=a(b))&&(o==="field"?i.unshift(h):d[l]=h)}c&&Object.defineProperty(c,n.name,d),p=!0}function i6(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function s6(e){return typeof e=="symbol"?e:"".concat(e)}function a6(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function o6(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function at(e,t,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function o(d){try{c(n.next(d))}catch(h){a(h)}}function l(d){try{c(n.throw(d))}catch(h){a(h)}}function c(d){d.done?s(d.value):i(d.value).then(o,l)}c((n=n.apply(e,t||[])).next())})}function l6(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(d){return l([c,d])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(d){c=[6,d],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var Hy=Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
vendor: 4,713 bytes, line 346
346(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function c6(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Hy(t,e,r)}function A0(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function S_(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return s}function u6(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(S_(arguments[t]));return e}function d6(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var s=arguments[t],a=0,o=s.length;a<o;a++,i++)n[i]=s[a];return n}function N_(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function Sf(e){return this instanceof Sf?(this.v=e,this):new Sf(e)}function f6(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(f){return function(y){return Promise.resolve(y).then(f,h)}}function o(f,y){n[f]&&(i[f]=function(v){return new Promise(function(b,w){s.push([f,v,b,w])>1||l(f,v)})},y&&(i[f]=y(i[f])))}function l(f,y){try{c(n[f](y))}catch(v){p(s[0][3],v)}}function c(f){f.value instanceof Sf?Promise.resolve(f.value.v).then(d,h):p(s[0][2],f)}function d(f){l("next",f)}function h(f){l("throw",f)}function p(f,y){f(y),s.shift(),s.length&&l(s[0][0],s[0][1])}}function h6(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,s){t[i]=e[i]?function(a){return(r=!r)?{value:Sf(e[i](a)),done:!1}:s?s(a):a}:s}}function p6(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof A0=="function"?A0(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=e[s]&&function(a){return new Promise(function(o,l){a=e[s](a),i(o,l,a.done,a.value)})}}function i(s,a,o,l){Promise.resolve(l).then(function(c){s({value:c,done:o})},a)}}function m6(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var DH=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Z2=function(e){return Z2=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},Z2(e)};function g6(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Z2(e),n=0;n<r.length;n++)r[n]!=="default"&&Hy(t,e,r[n]);return DH(t,e),t}function v6(e){return e&&e.__esModule?e:{default:e}}function y6(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function b6(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function w6(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function x6(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");
vendor: 1,395 bytes, line 346
346i&&(n=function(){try{i.call(this)}catch(s){return Promise.reject(s)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var MH=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function _6(e){function t(s){e.error=e.hasError?new MH(s,e.error,"An error was suppressed during disposal."):s,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var s=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(s).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function k6(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,s,a){return n?t?".jsx":".js":i&&(!s||!a)?r:i+s+"."+a.toLowerCase()+"js"}):e}const $H={__extends:e6,__assign:js,__rest:hc,__decorate:t6,__param:r6,__esDecorate:n6,__runInitializers:i6,__propKey:s6,__setFunctionName:a6,__metadata:o6,__awaiter:at,__generator:l6,__createBinding:Hy,__exportStar:c6,__values:A0,__read:S_,__spread:u6,__spreadArrays:d6,__spreadArray:N_,__await:Sf,__asyncGenerator:f6,__asyncDelegator:h6,__asyncValues:p6,__makeTemplateOb
vendor: 5,741 bytes, lines 346-361
346ject:m6,__importStar:g6,__importDefault:v6,__classPrivateFieldGet:y6,__classPrivateFieldSet:b6,__classPrivateFieldIn:w6,__addDisposableResource:x6,__disposeResources:_6,__rewriteRelativeImportExtension:k6},BH=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:x6,get __assign(){return js},__asyncDelegator:h6,__asyncGenerator:f6,__asyncValues:p6,__await:Sf,__awaiter:at,__classPrivateFieldGet:y6,__classPrivateFieldIn:w6,__classPrivateFieldSet:b6,__createBinding:Hy,__decorate:t6,__disposeResources:_6,__esDecorate:n6,__exportStar:c6,__extends:e6,__generator:l6,__importDefault:v6,__importStar:g6,__makeTemplateObject:m6,__metadata:o6,__param:r6,__propKey:s6,__read:S_,__rest:hc,__rewriteRelativeImportExtension:k6,__runInitializers:i6,__setFunctionName:a6,__spread:u6,__spreadArray:N_,__spreadArrays:d6,__values:A0,default:$H},Symbol.toStringTag,{value:"Module"}));var Tv="right-scroll-bar-position",Pv="width-before-scroll-bar",qH="with-scroll-bars-hidden",UH="--removed-body-scroll-bar-size";function $b(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zH(e,t){var r=_.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var HH=typeof window<"u"?_.useLayoutEffect:_.useEffect,B4=new WeakMap;function VH(e,t){var r=zH(null,function(n){return e.forEach(function(i){return $b(i,n)})});return HH(function(){var n=B4.get(r);if(n){var i=new Set(n),s=new Set(e),a=r.current;i.forEach(function(o){s.has(o)||$b(o,null)}),s.forEach(function(o){i.has(o)||$b(o,a)})}B4.set(r,e)},[e]),r}function WH(e){return e}function KH(e,t){t===void 0&&(t=WH);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var a=t(s,n);return r.push(a),function(){r=r.filter(function(o){return o!==a})}},assignSyncMedium:function(s){for(n=!0;r.length;){var a=r;r=[],a.forEach(s)}r={push:function(o){return s(o)},filter:function(){return r}}},assignMedium:function(s){n=!0;var a=[];if(r.length){var o=r;r=[],o.forEach(s),a=r}var l=function(){var d=a;a=[],d.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(d){a.push(d),c()},filter:function(d){return a=a.filter(d),r}}}};return i}function GH(e){e===void 0&&(e={});var t=KH(null);return t.options=js({async:!0,ssr:!1},e),t}var S6=function(e){var t=e.sideCar,r=hc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return _.createElement(n,js({},r))};S6.isSideCarExport=!0;function YH(e,t){return e.useMedium(t),S6}var N6=GH(),Bb=function(){},Vy=_.forwardRef(function(e,t){var r=_.useRef(null),n=_.useState({onScrollCapture:Bb,onWheelCapture:Bb,onTouchMoveCapture:Bb}),i=n[0],s=n[1],a=e.forwardProps,o=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,f=e.noRelative,y=e.noIsolation,v=e.inert,b=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,S=e.gapMode,E=hc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=p,W=VH([r,t]),z=js(js({},E),i);return _.createElement(_.Fragment,null,d&&_.createElement(T,{sideCar:N6,removeScrollBar:c,shards:h,noRelative:f,noIsolation:y,inert:v,setCallbacks:s,allowPinchZoom:!!b,lockRef:r,gapMode:S}),a?_.cloneElement(_.Children.only(o),js(js({},z),{ref:W})):_.createElement(x,js({},z,{className:l,ref:W}),o))});Vy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vy.classNames={fullWidth:Pv,zeroRight:Tv};var ZH=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function XH(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZH();return t&&e.setAttribute("nonce",t),e}function JH(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function QH(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var eV=function(){var e=0,t=null;return{add:function(r){e==0&&(t=XH())&&(JH(t,r),QH(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tV=function(){var e=eV();return function(t,r){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},E6=function(){var e=tV(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},rV={left:0,top:0,right:0,gap:0},qb=function(e){return parseInt(e||"",10)||0},nV=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[qb(r),qb(n),qb(i)]},iV=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return rV;var t=nV(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},sV=E6(),Zd="data-scroll-locked",aV=function(e,t,r,n){var i=e.left,s=e.top,a=e.right,o=e.gap;return r===void 0&&(r="margin"),`
347  .`.concat(qH,` {
348   overflow: hidden `).concat(n,`;
349   padding-right: `).concat(o,"px ").concat(n,`;
350  }
351  body[`).concat(Zd,`] {
352    overflow: hidden `).concat(n,`;
353    overscroll-behavior: contain;
354    `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
355    padding-left: `.concat(i,`px;
356    padding-top: `).concat(s,`px;
357    padding-right: `).concat(a,`px;
358    margin-left:0;
359    margin-top:0;
360    margin-right: `).concat(o,"px ").concat(n,`;
361    `),r==="padding"&&"padding-right: ".concat(o,"px ").concat(n,";
361")].filter(Boolean).join(""),`
362  }
363  
364  .`).concat(Tv,` {
365    right: `).concat(o,"px ").concat(n,`;
366  }
367  
368  .`).concat(Pv,` {
369    margin-right: `).concat(o,"px ").concat(n,`;
370  }
371  
372  .`).concat(Tv," .").concat(Tv,` {
373    right: 0 `).concat(n,`;
374  }
375  
376  .`).concat(Pv," .").concat(Pv,` {
377    margin-right: 0 `).concat(n,`;
378  }
379  
380  body[`).concat(Zd,`] {
381    `).concat(UH,": ").concat(o,`px;
382  }
383`)},q4=function(){var e=parseInt(document.body.getAttribute(Zd)||"0",10);return isFinite(e)?e:0},oV=function(){_.useEffect(function(){return document.body.setAttribute(Zd,(q4()+1).toString()),function(){var e=q4()-1;e<=0?document.body.removeAttribute(Zd):document.body.setAttribute(Zd,e.toString())}},[])},lV=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;oV();var s=_.useMemo(function(){return iV(i)},[i]);return _.createElement(sV,{styles:aV(s,!t,i,r?"":"!important")})},X2=!1;if(typeof window<"u")try{var Kg=Object.defineProperty({},"passive",{get:function(){return X2=!0,!0}});window.addEventListener("test",Kg,Kg),window.removeEventListener("test",Kg,Kg)}catch{X2=!1}var ad=X2?{passive:!1}:!1,cV=function(e){return e.tagName==="TEXTAREA"},C6=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!cV(e)&&r[t]==="visible")},uV=function(e){return C6(e,"overflowY")},dV=function(e){return C6(e,"overflowX")},U4=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=j6(e,n);if(i){var s=A6(e,n),a=s[1],o=s[2];if(a>o)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},fV=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},hV=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},j6=function(e,t){return e==="v"?uV(t):dV(t)},A6=function(e,t){return e==="v"?fV(t):hV(t)},pV=function(e,t){return e==="h"&&t==="rtl"?-1:1},mV=function(e,t,r,n,i){var s=pV(e,window.getComputedStyle(t).direction),a=s*n,o=r.target,l=t.contains(o),c=!1,d=a>0,h=0,p=0;do{if(!o)break;var f=A6(e,o),y=f[0],v=f[1],b=f[2],w=v-b-s*y;(y||w)&&j6(e,o)&&(h+=w,p+=y);var x=o.parentNode;o=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(d&&(Math.abs(h)<1||!i)||!d&&(Math.abs(p)<1||!i))&&(c=!0),c},Gg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},z4=function(e){return[e.deltaX,e.deltaY]},H4=function(e){return e&&"current"in e?e.current:e},gV=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vV=function(e){return`
384  .block-interactivity-`.concat(e,` {pointer-events: none;}
385  .allow-interactivity-`).concat(e,` {pointer-events: all;}
386`)},yV=0,od=[];function bV(e){var t=_.useRef([]),r=_.useRef([0,0]),n=_.useRef(),i=_.useState(yV++)[0],s=_.useState(E6)[0],a=_.useRef(e);_.useEffect(function(){a.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=N_([e.lockRef.current],(e.shards||[]).map(H4),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=_.useCallback(function(v,b){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!a.current.allowPinchZoom;var w=Gg(v),x=r.current,S="deltaX"in v?v.deltaX:x[0]-w[0],E="deltaY"in v?v.deltaY:x[1]-w[1],T,W=v.target,z=Math.abs(S)>Math.abs(E)?"h":"v";if("touches"in v&&z==="h"&&W.type==="range")return!1;var B=U4(z,W);if(!B)return!0;if(B?T=z:(T=z==="v"?"h":"v",B=U4(z,W)),!B)return!1;if(!n.current&&"changedTouches"in v&&(S||E)&&(n.current=T),!T)return!0;var P=n.current||T;return mV(P,b,v,P==="h"?S:E,!0)},[]),l=_.useCallback(function(v){var b=v;if(!(!od.length||od[od.length-1]!==s)){var w="deltaY"in b?z4(b):Gg(b),x=t.current.filter(function(T){return T.name===b.type&&(T.target===b.target||b.target===T.shadowParent)&&gV(T.delta,w)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}
vendor: 4,478 bytes, line 386
386if(!x){var S=(a.current.shards||[]).map(H4).filter(Boolean).filter(function(T){return T.contains(b.target)}),E=S.length>0?o(b,S[0]):!a.current.noIsolation;E&&b.cancelable&&b.preventDefault()}}},[]),c=_.useCallback(function(v,b,w,x){var S={name:v,delta:b,target:w,should:x,shadowParent:wV(w)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(E){return E!==S})},1)},[]),d=_.useCallback(function(v){r.current=Gg(v),n.current=void 0},[]),h=_.useCallback(function(v){c(v.type,z4(v),v.target,o(v,e.lockRef.current))},[]),p=_.useCallback(function(v){c(v.type,Gg(v),v.target,o(v,e.lockRef.current))},[]);_.useEffect(function(){return od.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,ad),document.addEventListener("touchmove",l,ad),document.addEventListener("touchstart",d,ad),function(){od=od.filter(function(v){return v!==s}),document.removeEventListener("wheel",l,ad),document.removeEventListener("touchmove",l,ad),document.removeEventListener("touchstart",d,ad)}},[]);var f=e.removeScrollBar,y=e.inert;return _.createElement(_.Fragment,null,y?_.createElement(s,{styles:vV(i)}):null,f?_.createElement(lV,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function wV(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xV=YH(N6,bV);var Sm=_.forwardRef(function(e,t){return _.createElement(Vy,js({},e,{ref:t,sideCar:xV}))});Sm.classNames=Vy.classNames;var J2=["Enter"," "],_V=["ArrowDown","PageUp","Home"],T6=["ArrowUp","PageDown","End"],kV=[..._V,...T6],SV={ltr:[...J2,"ArrowRight"],rtl:[...J2,"ArrowLeft"]},NV={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Nm="Menu",[Hp,EV,CV]=Ny(Nm),[$u,P6]=gs(Nm,[CV,uc,GP]),Wy=uc(),O6=GP(),[jV,Bu]=$u(Nm),[AV,Em]=$u(Nm),R6=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:i,onOpenChange:s,modal:a=!0}=e,o=Wy(t),[l,c]=_.useState(null),d=_.useRef(!1),h=gn(s),p=qy(i);return _.useEffect(()=>{const f=()=>{d.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>d.current=!1;return document.addEventListener("keydown",f,{capture:!0}),()=>{document.removeEventListener("keydown",f,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),u.jsx(g_,{...o,children:u.jsx(jV,{scope:t,open:r,onOpenChange:h,content:l,onContentChange:c,children:u.jsx(AV,{scope:t,onClose:_.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:d,dir:p,modal:a,children:n})})})};R6.displayName=Nm;var TV="MenuAnchor",E_=_.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,i=Wy(r);return u.jsx(xm,{...i,...n,ref:t})});E_.displayName=TV;var C_="MenuPortal",[PV,L6]=$u(C_,{forceMount:void 0}),I6=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:i}=e,s=Bu(C_,t);return u.jsx(PV,{scope:t,forceMount:r,children:u.jsx(ti,{present:r||s.open,children:u.jsx(Mf,{asChild:!0,container:i,children:n})})})};I6.displayName=C_;var Os="MenuContent",[OV,j_]=$u(Os),F6=_.forwardRef((e,t)=>{const r=L6(Os,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,s=Bu(Os,e.__scopeMenu),a=Em(Os,e.__scopeMenu);return u.jsx(Hp.Provider,{scope:e.__scopeMenu,children:u.jsx(ti,{present:n||s.open,children:u.jsx(Hp.Slot,{scope:e.__scopeMenu,children:a.modal?u.jsx(RV,{...i,ref:t}):u.jsx(LV,{...i,ref:t})})})})}),RV=_.forwardRef((e,t)=>{const r=Bu(Os,e.__scopeMenu),n=_.useRef(null),i=qt(t,n);return _.useEffect(()=>{const s=n.current;if(s)return zy(s)},[]),u.jsx(A_,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Ge(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),LV=_.forwardRef((e,t)=>{const r=Bu(Os,e.__scopeMenu);return u.jsx(A_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),IV=tc("MenuContent.ScrollLock"),A_=_.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:p,onDismiss:f,disableOutsideScroll:y,...v}=e,b=Bu(Os,r),w=Em(Os,r),x=Wy(r),S=O6(r),E=EV(r),[T,W]=_.useState(null),z=_.useRef(null),B=qt(t,z,b.onContentChange),P=_.useRef(0),X=_.useRef(""),O=_.useRef(0),A=_.useRef(null),K=_.useRef("right"),R=_.useRef(0),le=y?Sm:_.Fragment,oe
vendor: 12,780 bytes, line 386
386=y?{as:IV,allowPinchZoom:!0}:void 0,se=D=>{var Q,ce;const $=X.current+D,M=E().filter(de=>!de.disabled),j=document.activeElement,U=(Q=M.find(de=>de.ref.current===j))==null?void 0:Q.textValue,H=M.map(de=>de.textValue),re=KV(H,$,U),te=(ce=M.find(de=>de.textValue===re))==null?void 0:ce.ref.current;(function de(he){X.current=he,window.clearTimeout(P.current),he!==""&&(P.current=window.setTimeout(()=>de(""),1e3))})($),te&&setTimeout(()=>te.focus())};_.useEffect(()=>()=>window.clearTimeout(P.current),[]),Uy();const F=_.useCallback(D=>{var M,j;return K.current===((M=A.current)==null?void 0:M.side)&&YV(D,(j=A.current)==null?void 0:j.area)},[]);return u.jsx(OV,{scope:r,searchRef:X,onItemEnter:_.useCallback(D=>{F(D)&&D.preventDefault()},[F]),onItemLeave:_.useCallback(D=>{var $;F(D)||(($=z.current)==null||$.focus(),W(null))},[F]),onTriggerLeave:_.useCallback(D=>{F(D)&&D.preventDefault()},[F]),pointerGraceTimerRef:O,onPointerGraceIntentChange:_.useCallback(D=>{A.current=D},[]),children:u.jsx(le,{...oe,children:u.jsx(_m,{asChild:!0,trapped:i,onMountAutoFocus:Ge(s,D=>{var $;D.preventDefault(),($=z.current)==null||$.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:u.jsx(Fu,{asChild:!0,disableOutsidePointerEvents:o,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:p,onDismiss:f,children:u.jsx(OH,{asChild:!0,...S,dir:w.dir,orientation:"vertical",loop:n,currentTabStopId:T,onCurrentTabStopIdChange:W,onEntryFocus:Ge(l,D=>{w.isUsingKeyboardRef.current||D.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Oy,{role:"menu","aria-orientation":"vertical","data-state":J6(b.open),"data-radix-menu-content":"",dir:w.dir,...x,...v,ref:B,style:{outline:"none",...v.style},onKeyDown:Ge(v.onKeyDown,D=>{const M=D.target.closest("[data-radix-menu-content]")===D.currentTarget,j=D.ctrlKey||D.altKey||D.metaKey,U=D.key.length===1;M&&(D.key==="Tab"&&D.preventDefault(),!j&&U&&se(D.key));const H=z.current;if(D.target!==H||!kV.includes(D.key))return;D.preventDefault();const te=E().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);T6.includes(D.key)&&te.reverse(),VV(te)}),onBlur:Ge(e.onBlur,D=>{D.currentTarget.contains(D.target)||(window.clearTimeout(P.current),X.current="")}),onPointerMove:Ge(e.onPointerMove,Vp(D=>{const $=D.target,M=R.current!==D.clientX;if(D.currentTarget.contains($)&&M){const j=D.clientX>R.current?"right":"left";K.current=j,R.current=D.clientX}}))})})})})})})});F6.displayName=Os;var FV="MenuGroup",T_=_.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return u.jsx(Nt.div,{role:"group",...n,ref:t})});T_.displayName=FV;var DV="MenuLabel",D6=_.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return u.jsx(Nt.div,{...n,ref:t})});D6.displayName=DV;var T0="MenuItem",V4="menu.itemSelect",Ky=_.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...i}=e,s=_.useRef(null),a=Em(T0,e.__scopeMenu),o=j_(T0,e.__scopeMenu),l=qt(t,s),c=_.useRef(!1),d=()=>{const h=s.current;if(!r&&h){const p=new CustomEvent(V4,{bubbles:!0,cancelable:!0});h.addEventListener(V4,f=>n==null?void 0:n(f),{once:!0}),Z5(h,p),p.defaultPrevented?c.current=!1:a.onClose()}};return u.jsx(M6,{...i,ref:l,disabled:r,onClick:Ge(e.onClick,d),onPointerDown:h=>{var p;(p=e.onPointerDown)==null||p.call(e,h),c.current=!0},onPointerUp:Ge(e.onPointerUp,h=>{var p;c.current||(p=h.currentTarget)==null||p.click()}),onKeyDown:Ge(e.onKeyDown,h=>{const p=o.searchRef.current!=="";r||p&&h.key===" "||J2.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});Ky.displayName=T0;var M6=_.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...s}=e,a=j_(T0,r),o=O6(r),l=_.useRef(null),c=qt(t,l),[d,h]=_.useState(!1),[p,f]=_.useState("");return _.useEffect(()=>{const y=l.current;y&&f((y.textContent??"").trim())},[s.children]),u.jsx(Hp.ItemSlot,{scope:r,disabled:n,textValue:i??p,children:u.jsx(RH,{asChild:!0,...o,focusable:!n,children:u.jsx(Nt.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...s,ref:c,onPointerMove:Ge(e.onPointerMove,Vp(y=>{n?a.onItemLeave(y):(a.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ge(e.onPointerLeave,Vp(y=>a.onItemLeave(y))),onFocus:Ge(e.onFocus,()=>h(!0)),onBlur:Ge(e.onBlur,()=>h(!1))})})})}),MV="MenuCheckboxItem",$6=_.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...i}=e;return u.jsx(H6,{scope:e.__scopeMenu,checked:r,children:u.jsx(Ky,{role:"menuitemcheckbox","aria-checked":P0(r)?"mixed":r,...i,ref:t,"data-state":O_(r),onSelect:Ge(i.onSelect,()=>n==null?void 0:n(P0(r)?!0:!r),{checkForDefaultPrevented:!1})})})});$6.displayName=MV;var B6="MenuRadioGroup",[$V,BV]=$u(B6,{value:void 0,onValueChange:()=>{}}),q6=_.forwardRef((e,t)=>{const{value:r,onValueChange:n,...i}=e,s=gn(n);return u.jsx($V,{scope:e.__scopeMenu,value:r,onValueChange:s,children:u.jsx(T_,{...i,ref:t})})});q6.displayName=B6;var U6="MenuRadioItem",z6=_.forwardRef((e,t)=>{const{value:r,...n}=e,i=BV(U6,e.__scopeMenu),s=r===i.value;return u.jsx(H6,{scope:e.__scopeMenu,checked:s,children:u.jsx(Ky,{role:"menuitemradio","aria-checked":s,...n,ref:t,"data-state":O_(s),onSelect:Ge(n.onSelect,()=>{var a;return(a=i.onValueChange)==null?void 0:a.call(i,r)},{checkForDefaultPrevented:!1})})})});z6.displayName=U6;var P_="MenuItemIndicator",[H6,qV]=$u(P_,{checked:!1}),V6=_.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...i}=e,s=qV(P_,r);return u.jsx(ti,{present:n||P0(s.checked)||s.checked===!0,children:u.jsx(Nt.span,{...i,ref:t,"data-state":O_(s.checked)})})});V6.displayName=P_;var UV="MenuSeparator",W6=_.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return u.jsx(Nt.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});W6.displayName=UV;var zV="MenuArrow",K6=_.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,i=Wy(r);return u.jsx(Ry,{...i,...n,ref:t})});K6.displayName=zV;var HV="MenuSub",[_oe,G6]=$u(HV),Gh="MenuSubTrigger",Y6=_.forwardRef((e,t)=>{const r=Bu(Gh,e.__scopeMenu),n=Em(Gh,e.__scopeMenu),i=G6(Gh,e.__scopeMenu),s=j_(Gh,e.__scopeMenu),a=_.useRef(null),{pointerGraceTimerRef:o,onPointerGraceIntentChange:l}=s,c={__scopeMenu:e.__scopeMenu},d=_.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return _.useEffect(()=>d,[d]),_.useEffect(()=>{const h=o.current;return()=>{window.clearTimeout(h),l(null)}},[o,l]),u.jsx(E_,{asChild:!0,...c,children:u.jsx(M6,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":J6(r.open),...e,ref:Sy(t,i.onTriggerChange),onClick:h=>{var p;(p=e.onClick)==null||p.call(e,h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Ge(e.onPointerMove,Vp(h=>{s.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!r.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:Ge(e.onPointerLeave,Vp(h=>{var f,y;d();const p=(f=r.content)==null?void 0:f.getBoundingClientRect();if(p){const v=(y=r.content)==null?void 0:y.dataset.side,b=v==="right",w=b?-5:5,x=p[b?"left":"right"],S=p[b?"right":"left"];s.onPointerGraceIntentChange({area:[{x:h.clientX+w,y:h.clientY},{x,y:p.top},{x:S,y:p.top},{x:S,y:p.bottom},{x,y:p.bottom}],side:v}),window.clearTimeout(o.current),o.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(h),h.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:Ge(e.onKeyDown,h=>{var f;const p=s.searchRef.current!=="";e.disabled||p&&h.key===" "||SV[n.dir].includes(h.key)&&(r.onOpenChange(!0),(f=r.content)==null||f.focus(),h.preventDefault())})})})});Y6.displayName=Gh;var Z6="MenuSubContent",X6=_.forwardRef((e,t)=>{const r=L6(Os,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,s=Bu(Os,e.__scopeMenu),a=Em(Os,e.__scopeMenu),o=G6(Z6,e.__scopeMenu),l=_.useRef(null),c=qt(t,l);return u.jsx(Hp.Provider,{scope:e.__scopeMenu,children:u.jsx(ti,{present:n||s.open,children:u.jsx(Hp.Slot,{scope:e.__scopeMenu,children:u.jsx(A_,{id:o.contentId,"aria-labelledby":o.triggerId,...i,ref:c,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var h;a.isUsingKeyboardRef.current&&((h=l.current)==null||h.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:Ge(e.onFocusOutside,d=>{d.target!==o.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:Ge(e.onEscapeKeyDown,d=>{a.onClose(),d.preventDefault()}),onKeyDown:Ge(e.onKeyDown,d=>{var f;const h=d.currentTarget.contains(d.target),p=NV[a.dir].includes(d.key);h&&p&&(s.onOpenChange(!1),(f=o.trigger)==null||f.focus(),d.preventDefault())})})})})})});X6.displayName=Z6;function J6(e){return e?"open":"closed"}function P0(e){return e==="indeterminate"}function O_(e){return P0(e)?"indeterminate":e?"checked":"unchecked"}function VV(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function WV(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function KV(e,t,r){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let a=WV(e,Math.max(s,0));i.length===1&&(a=a.filter(c=>c!==r));const l=a.find(c=>c.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function GV(e,t){const{x:r,y:n}=e;let i=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const o=t[s],l=t[a],c=o.x,d=o.y,h=l.x,p=l.y;d>n!=p>n&&r<(h-c)*(n-d)/(p-d)+c&&(i=!i)}return i}function YV(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return GV(r,t)}function Vp(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ZV=R6,XV=E_,JV=I6,QV=F6,eW=T_,tW=D6,rW=Ky,nW=$6,iW=q6,sW=z6,aW=V6,oW=W6,lW=K6,cW=Y6,uW=X6,Gy="DropdownMenu",[dW,koe]=gs(Gy,[P6]),Pi=P6(),[fW,Q6]=dW(Gy),eO=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:i,defaultOpen:s,onOpenChange:a,modal:o=!0}=e,l=Pi(t),c=_.useRef(null),[d,h]=qo({prop:i,defaultProp:s??!1,onChange:a,caller:Gy});return u.jsx(fW,{scope:t,triggerId:Ga(),triggerRef:c,contentId:Ga(),open:d,onOpenChange:h,onOpenToggle:_.useCallback(()=>h(p=>!p),[h]),modal:o,children:u.jsx(ZV,{...l,open:d,onOpenChange:h,dir:n,modal:o,children:r})})};eO.displayName=Gy;var tO="DropdownMenuTrigger",rO=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,s=Q6(tO,r),a=Pi(r);return u.jsx(XV,{asChild:!0,...a,children:u.jsx(Nt.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...i,ref:Sy(t,s.triggerRef),onPointerDown:Ge(e.onPointerDown,o=>{!n&&o.button===0&&o.ctrlKey===!1&&(s.onOpenToggle(),s.open||o.preventDefault())}),onKeyDown:Ge(e.onKeyDown,o=>{n||(["Enter"," "].includes(o.key)&&s.onOpenToggle(),o.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(o.key)&&o.preventDefault())})})})});rO.displayName=tO;var hW="DropdownMenuPortal",nO=e=>{const{__scopeDropdownMenu:t,...r}=e,n=Pi(t);return u.jsx(JV,{...n,...r})};nO.displayName=hW;var iO="DropdownMenuContent",sO=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Q6(iO,r),s=Pi(r),a=_.useRef(!1);return u.jsx(QV,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...n,ref:t,onCloseAutoFocus:Ge(e.onCloseAutoFocus,o=>{var l;a.current||(l=i.triggerRef.current)==null||l.focus(),a.current=!1,o.preventDefault()}),onInteractOutside:Ge(e.onInteractOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;(!i.modal||d)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});sO.displayName=iO;var pW="DropdownMenuGroup",mW=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Pi(r);return u.jsx(eW,{...i,...n,ref:t})});mW.displayName=pW;var gW="DropdownMenuLabel",aO=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Pi(r);return u.jsx(tW,{...i,...n,ref:t})});aO.displayName=gW;var vW="DropdownMenuItem",oO=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Pi(r);return u.jsx(rW,{...i,...n,ref:t})});oO.displayName=vW;var yW="DropdownMenuCheckboxItem",lO=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Pi(r);return u.jsx(nW,{...i,...n,ref:t})});lO.displayName=yW;var bW="DropdownMenuRadioGroup",wW=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Pi(r);return u.jsx(iW,{...i,...n,ref:t})});wW.displayName=bW;var xW="DropdownMenuRadioItem",cO=_.forwardRef((e,t)=>
386{const{__scopeDropdownMenu:r,...n}=e,i=Pi(r);return u.jsx(sW,{...i,...n,ref:t})});cO.displayName=xW;var _W="DropdownMenuItemIndicator",uO=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Pi(r);return u.jsx(aW,{...i,...n,ref:t})});uO.displayName=_W;var kW="DropdownMenuSeparator",dO=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Pi(r);return u.jsx(oW,{...i,...n,ref:t})});dO.displayName=kW;var SW="DropdownMenuArrow",NW=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Pi(r);return u.jsx(lW,{...i,...n,ref:t})});NW.displayName=SW;var EW="DropdownMenuSubTrigger",fO=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Pi(r);return u.jsx(cW,{...i,...n,ref:t})});fO.displayName=EW;var CW="DropdownMenuSubContent",hO=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Pi(r);return u.jsx(uW,{...i,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hO.displayName=CW;var jW=eO,AW=rO,TW=nO,pO=sO,mO=aO,gO=oO,vO=lO,yO=cO,bO=uO,wO=dO,xO=fO,_O=hO;const PW=jW,OW=AW,RW=_.forwardRef(({className:e,inset:t,children:r,...n},i)=>u.jsxs(xO,{ref:i,className:Ue("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...n,children:[r,u.jsx(g0,{className:"ml-auto h-4 w-4"})]}));RW.displayName=xO.displayName;const LW=_.forwardRef(({className:e,...t},r)=>u.jsx(_O,{ref:r,className:Ue("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));LW.displayName=_O.displayName;const kO=_.forwardRef(({className:e,sideOffset:t=4,...r},n)=>u.jsx(TW,{children:u.jsx(pO,{ref:n,sideOffset:t,className:Ue("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));kO.displayName=pO.displayName;const SO=_.forwardRef(({className:e,inset:t,...r},n)=>u.jsx(gO,{ref:n,className:Ue("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...r}));SO.displayName=gO.displayName;const IW=_.forwardRef(({className:e,children:t,checked:r,...n},i)=>u.jsxs(vO,{ref:i,className:Ue("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:r,...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(bO,{children:u.jsx(ym,{className:"h-4 w-4"})})}),t]}));IW.displayName=vO.displayName;const FW=_.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(yO,{ref:n,className:Ue("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...r,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(bO,{children:u.jsx($9,{className:"h-2 w-2 fill-current"})})}),t]}));FW.displayName=yO.displayName;const DW=_.forwardRef(({className:e,inset:t,...r},n)=>u.jsx(mO,{ref:n,className:Ue("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));DW.displayName=mO.displayName;const MW=_.forwardRef(({className:e,...t},r)=>u.jsx(wO,{ref:r,className:Ue("-mx-1 my-1 h-px bg-muted",e),...t}));MW.displayName=wO.displayName;const NO="preferred-language",EO=["sv","en"],$W=()=>{if(typeof window>"u")return null;const e=localStorage.getItem(NO);return e&&EO.includes(e)?e:null},BW=e=>{typeof window>"u"||localStorage.setItem(NO,e)},qW=()=>{if(typeof navigator>"u")return"sv";const e=navigator.language.split("-")[0];return EO.includes(e)?e:"sv"},R_=()=>$W()||qW(),Ub=[{code:"sv",label:"Svenska",flag:"🇸🇪"},{code:"en",label:"English",flag:"🇬🇧"}],UW=()=>{const{i18n:e}=gi(),t=$y(),r=Mu(),n=s=>{BW(s);
386const a=r.pathname.split("/").filter(Boolean),o=a[0];let l;o==="sv"||o==="en"?(a[0]=s,l="/"+a.join("/")):l=`/${s}${r.pathname}`,(l===`/${s}`||l===`/${s}/`)&&(l=`/${s}`),e.changeLanguage(s),t(l)},i=Ub.find(s=>s.code===e.language)||Ub[0];return u.jsxs(PW,{children:[u.jsx(OW,{asChild:!0,children:u.jsxs(gt,{variant:"ghost",size:"sm",className:"gap-2",children:[u.jsx(Du,{className:"w-4 h-4"}),u.jsxs("span",{className:"hidden sm:inline",children:[i.flag," ",i.code.toUpperCase()]})]})}),u.jsx(kO,{align:"end",children:Ub.map(s=>u.jsxs(SO,{onClick:()=>n(s.code),className:e.language===s.code?"bg-primary/10":"",children:[u.jsx("span",{className:"mr-2",children:s.flag}),s.label]},s.code))})]})},CO="/assets/excellent_moving_logo-DUr5mASl.svg",zW=e=>{const[t,r]=_.useState("");return _.useEffect(()=>{const n=new IntersectionObserver(i=>{i.forEach(s=>{s.isIntersecting&&r(s.target.id)})},{rootMargin:"-20% 0px -60% 0px",threshold:0});return e.forEach(i=>{const s=document.getElementById(i);s&&n.observe(s)}),()=>n.disconnect()},[e]),t},jO=()=>{const{t:e,i18n:t}=gi(),r=t.language==="sv"?"/sv":"/en",[n,i]=_.useState(!1),[s,a]=_.useState(!1),o=zW(["tjanster","om-oss","kontakt"]);_.useEffect(()=>{const c=()=>{i(window.scrollY>50)};return window.addEventListener("scroll",c),()=>window.removeEventListener("scroll",c)},[]),_.useEffect(()=>{if(s){const c=()=>a(!1);return window.addEventListener("scroll",c),()=>window.removeEventListener("scroll",c)}},[s]);const l=()=>{a(!1)};return u.jsx("div",{className:"fixed top-0 left-0 right-0 z-50 p-4 md:p-6",children:u.jsxs("div",{className:"max-w-7xl mx-auto",children:[u.jsx("header",{className:"bg-background/95 backdrop-blur-md border border-border/50 rounded-[28px] shadow-lg",children:u.jsx("div",{className:"px-5 md:px-8 py-3 md:py-4",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(U2,{to:r,className:"flex items-center group",children:u.jsx("img",{src:CO,alt:"Excellent Moving",className:"h-8 md:h-10 transition-transform duration-300 group-hover:scale-105"})}),u.jsxs("nav",{className:"hidden md:flex items-center gap-1",children:[u.jsx("a",{href:"#tjanster",className:Ue("px-4 py-2 text-sm font-medium rounded-full transition-all duration-200",o==="tjanster"?"text-primary bg-primary/10":"text-foreground/80 hover:text-primary hover:bg-primary/10"),children:e("header.services")}),u.jsx("a",{href:"#om-oss",className:Ue("px-4 py-2 text-sm font-medium rounded-full transition-all duration-200",o==="om-oss"?"text-primary bg-primary/10":"text-foreground/80 hover:text-primary hover:bg-primary/10"),children:e("header.about")}),u.jsx("a",{href:"#kontakt",className:Ue("px-4 py-2 text-sm font-medium rounded-full transition-all duration-200",o==="kontakt"?"text-primary bg-primary/10":"text-foreground/80 hover:text-primary hover:bg-primary/10"),children:e("header.contact")})]}),u.jsxs("div",{className:"flex items-center gap-2 md:gap-3",children:[u.jsxs("div",{className:"hidden lg:flex items-center gap-2",children:[u.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 px-3 py-2 text-sm text-muted-foreground hover:text-primary rounded-full transition-all duration-200",children:[u.jsx(v0,{className:"w-4 h-4"}),u.jsx("span",{className:"hidden xl:inline",children:"[email protected]"})]}),u.jsxs("a",{href:"tel:08151111",className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-primary bg-primary/10 hover:bg-primary/20 rounded-full transition-all duration-200",children:[u.jsx(y0,{className:"w-4 h-4"}),u.jsx("span",{children:"08-15 11 11"})]})]}),u.jsx(UW,{}),u.jsx("button",{onClick:()=>a(!s),className:"md:hidden p-2 text-foreground hover:text-primary hover:bg-primary/10 rounded-full transition-all duration-200","aria-label":s?"Stäng meny":"Öppna meny",children:s?u.jsx(i_,{className:"w-6 h-6"}):u.jsx(V9,{className:"w-6 h-6"})})]})]})})}),u.jsx("div",{className:Ue("md:hidden mt-2 bg-background border border-border/50 rounded-[24px] shadow-xl overflow-hidden transition-all duration-300 ease-in-out",s?"max-h-[400px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2 pointer-events-none"),children:u.jsxs("div",{className:"p-5",children:[u.jsxs("div",{className:"flex flex-col gap-1 pb-4 mb-4 border-b border-border/50",children:[u.jsxs("a",{href:"tel:08151111",className:"flex items-center gap-3 px-3 py-2.5 text-foreground hover:text-primary hover:bg-primary/5 rounded-xl transition-all duration-200",children:[u.jsx(y0,{className:"w-5 h-5 text-primary"}),u.jsx("span",{className:"font-medium",children:"08-15 11 11"})]}),u.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-3 px-3 py-2.5 text-muted-foreground hover:text-primary hover:bg-primary/5 rounded-xl transition-all duration-200",children:[u.jsx(v0,{className:"w-5 h-5"}),u.jsx("span",{children:"[email protected]"})]})]}),u.jsxs("nav",{className:"flex flex-col gap-1",children:[u.jsx("a",{href:"#tjanster",onClick:l,className:Ue("px-3 py-3 text-base font-medium rounded-xl transition-all duration-200",o==="tjanster"?"text-primary bg-primary/10":"text-foreground hover:text-primary hover:bg-primary/5"),children:e("header.services")}),u.jsx("a",{href:"#om-oss",onClick:l,className:Ue("px-3 py-3 text-base font-medium rounded-xl transition-all duration-200",o==="om-
386oss"?"text-primary bg-primary/10":"text-foreground hover:text-primary hover:bg-primary/5"),children:e("header.about")}),u.jsx("a",{href:"#kontakt",onClick:l,className:Ue("px-3 py-3 text-base font-medium rounded-xl transition-all duration-200",o==="kontakt"?"text-primary bg-primary/10":"text-foreground hover:text-primary hover:bg-primary/5"),children:e("header.contact")})]})]})})]})})},HW="AW-XXXXXXXXX",Hf=e=>{typeof window<"u"&&window.gtag&&(window.gtag("event",e,{send_to:HW}),console.log(`[Google Ads] Conversion tracked: ${e}`))},VW=()=>{Hf("quote_bohagsflytt")},WW=()=>{Hf("quote_kontorsflytt")},KW=()=>{Hf("quote_utlandsflytt")},GW=()=>{Hf("quote_magasinering")},YW=()=>{Hf("quote_flyttstadning")},ZW=()=>{Hf("booking_flyttstadning")};var L_={},O0={};const XW=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);let Yy=class extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}},AO=class extends Yy{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}},Q2=class extends Yy{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}},ex=class extends Yy{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}};var R0;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(R0||(R0={}));class JW{constructor(t,{headers:r={},customFetch:n,region:i=R0.Any}={}){this.url=t,this.headers=r,this.region=i,this.fetch=XW(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return at(this,arguments,void 0,function*(r,n={}){var i;let s,a;try{const{headers:o,method:l,body:c,signal:d,timeout:h}=n;let p={},{region:f}=n;f||(f=this.region);const y=new URL(`${this.url}/${r}`);f&&f!=="any"&&(p["x-region"]=f,y.searchParams.set("forceFunctionRegion",f));let v;c&&(o&&!Object.prototype.hasOwnProperty.call(o,"Content-Type")||!o)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",v=c):typeof c=="string"?(p["Content-Type"]="text/plain",v=c):typeof FormData<"u"&&c instanceof FormData?v=c:(p["Content-Type"]="application/json",v=JSON.stringify(c)):v=c;let b=d;h&&(a=new AbortController,s=setTimeout(()=>a.abort(),h),d?(b=a.signal,d.addEventListener("abort",()=>a.abort())):b=a.signal);const w=yield this.fetch(y.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),o),body:v,signal:b}).catch(T=>{throw new AO(T)}),x=w.headers.get("x-relay-error");if(x&&x==="true")throw new Q2(w);if(!w.ok)throw new ex(w);let S=((i=w.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),E;return S==="application/json"?E=yield w.json():S==="application/octet-stream"||S==="application/pdf"?E=yield w.blob():S==="text/event-stream"?E=w:S==="multipart/form-data"?E=yield w.formData():E=yield w.text(),{data:E,error:null,response:w}}catch(o){return{data:null,error:o,response:o instanceof ex||o instanceof Q2?o.context:void 0}}finally{s&&clearTimeout(s)}})}}const QW=Object.freeze(Object.defineProperty({__proto__:null,get FunctionRegion(){return R0},FunctionsClient:JW,FunctionsError:Yy,FunctionsFetchError:AO,FunctionsHttpError:ex,FunctionsRelayError:Q2},Symbol.toStringTag,{value:"Module"})),TO=dm(QW);var hi={};const Vf=dm(BH);var Yg={},Zg={},Xg={},Jg={},Qg={},ev={},W4;function PO(){if(W4)return ev;
386W4=1,Object.defineProperty(ev,"__esModule",{value:!0});class e extends Error{constructor(r){super(r.message),this.name="PostgrestError",this.details=r.details,this.hint=r.hint,this.code=r.code}}return ev.default=e,ev}var K4;function OO(){if(K4)return Qg;K4=1,Object.defineProperty(Qg,"__esModule",{value:!0});const t=Vf.__importDefault(PO());let r=class{constructor(i){var s,a;this.shouldThrowOnError=!1,this.method=i.method,this.url=i.url,this.headers=new Headers(i.headers),this.schema=i.schema,this.body=i.body,this.shouldThrowOnError=(s=i.shouldThrowOnError)!==null&&s!==void 0?s:!1,this.signal=i.signal,this.isMaybeSingle=(a=i.isMaybeSingle)!==null&&a!==void 0?a:!1,i.fetch?this.fetch=i.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(i,s){return this.headers=new Headers(this.headers),this.headers.set(i,s),this}then(i,s){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const a=this.fetch;let o=a(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async l=>{var c,d,h,p;let f=null,y=null,v=null,b=l.status,w=l.statusText;if(l.ok){if(this.method!=="HEAD"){const T=await l.text();T===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((c=this.headers.get("Accept"))===null||c===void 0)&&c.includes("application/vnd.pgrst.plan+text"))?y=T:y=JSON.parse(T))}const S=(d=this.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),E=(h=l.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");S&&E&&E.length>1&&(v=parseInt(E[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(y)&&(y.length>1?(f={code:"PGRST116",details:`Results contain ${y.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},y=null,v=null,b=406,w="Not Acceptable"):y.length===1?y=y[0]:y=null)}else{const S=await l.text();try{f=JSON.parse(S),Array.isArray(f)&&l.status===404&&(y=[],f=null,b=200,w="OK")}catch{l.status===404&&S===""?(b=204,w="No Content"):f={message:S}}if(f&&this.isMaybeSingle&&(!((p=f==null?void 0:f.details)===null||p===void 0)&&p.includes("0 rows"))&&(f=null,b=200,w="OK"),f&&this.shouldThrowOnError)throw new t.default(f)}return{error:f,data:y,count:v,status:b,statusText:w}});return this.shouldThrowOnError||(o=o.catch(l=>{var c,d,h,p,f,y;let v="";const b=l==null?void 0:l.cause;if(b){const w=(c=b==null?void 0:b.message)!==null&&c!==void 0?c:"",x=(d=b==null?void 0:b.code)!==null&&d!==void 0?d:"";v=`${(h=l==null?void 0:l.name)!==null&&h!==void 0?h:"FetchError"}: ${l==null?void 0:l.message}`,v+=`
387
388Caused by: ${(p=b==null?void 0:b.name)!==null&&p!==void 0?p:"Error"}: ${w}`,x&&(v+=` (${x})`),b!=null&&b.stack&&(v+=`
389${b.stack}`)}else v=(f=l==null?void 0:l.stack)!==null&&f!==void 0?f:"";return{error:{message:`${(y=l==null?void 0:l.name)!==null&&y!==void 0?y:"FetchError"}: ${l==null?void 0:l.message}`,details:v,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),o.then(i,s)}returns(){return this}overrideTypes(){return this}};return Qg.default=r,Qg}var G4;function RO(){if(G4)return Jg;G4=1,Object.defineProperty(Jg,"__esModule",{value:!0});const t=Vf.__importDefault(OO());let r=class extends t.default{select(i){let s=!1;const a=(i??"*").split("").map(o=>/\s/.test(o)&&!s?"":(o==='"'&&(s=!s),o)).join("");return this.url.searchParams.set("select",a),this.headers.append("Prefer","return=representation"),this}order(i,{ascending:s=!0,nullsFirst:a,foreignTable:o,referencedTable:l=o}={}){const c=l?`${l}.order`:"order",d=this.url.searchParams.get(c);return this.url.searchParams.set(c,`${d?`${d},`:""}${i}.${s?"asc":"desc"}${a===void 0?"":a?".nullsfirst":".nullslast"}`),this}limit(i,{foreignTable:s,referencedTable:a=s}={}){const o=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(o,`${i}`),this}range(i,s,{foreignTable:a,referencedTable:o=a}={}){const l=typeof o>"u"?"offset":`${o}.offset`,c=typeof o>"u"?"limit":`${o}.limit`;return this.url.searchParams.set(l,`${i}`),this.url.searchParams.set(c,`${s-i+1}`),this}abortSignal(i){return this.signal=i,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
389explain({analyze:i=!1,verbose:s=!1,settings:a=!1,buffers:o=!1,wal:l=!1,format:c="text"}={}){var d;const h=[i?"analyze":null,s?"verbose":null,a?"settings":null,o?"buffers":null,l?"wal":null].filter(Boolean).join("|"),p=(d=this.headers.get("Accept"))!==null&&d!==void 0?d:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${c}; for="${p}"; options=${h};`),c==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(i){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${i}`),this}};return Jg.default=r,Jg}var Y4;function I_(){if(Y4)return Xg;Y4=1,Object.defineProperty(Xg,"__esModule",{value:!0});const t=Vf.__importDefault(RO()),r=new RegExp("[,()]");let n=class extends t.default{eq(s,a){return this.url.searchParams.append(s,`eq.${a}`),this}neq(s,a){return this.url.searchParams.append(s,`neq.${a}`),this}gt(s,a){return this.url.searchParams.append(s,`gt.${a}`),this}gte(s,a){return this.url.searchParams.append(s,`gte.${a}`),this}lt(s,a){return this.url.searchParams.append(s,`lt.${a}`),this}lte(s,a){return this.url.searchParams.append(s,`lte.${a}`),this}like(s,a){return this.url.searchParams.append(s,`like.${a}`),this}likeAllOf(s,a){return this.url.searchParams.append(s,`like(all).{${a.join(",")}}`),this}likeAnyOf(s,a){return this.url.searchParams.append(s,`like(any).{${a.join(",")}}`),this}ilike(s,a){return this.url.searchParams.append(s,`ilike.${a}`),this}ilikeAllOf(s,a){return this.url.searchParams.append(s,`ilike(all).{${a.join(",")}}`),this}ilikeAnyOf(s,a){return this.url.searchParams.append(s,`ilike(any).{${a.join(",")}}`),this}regexMatch(s,a){return this.url.searchParams.append(s,`match.${a}`),this}regexIMatch(s,a){return this.url.searchParams.append(s,`imatch.${a}`),this}is(s,a){return this.url.searchParams.append(s,`is.${a}`),this}isDistinct(s,a){return this.url.searchParams.append(s,`isdistinct.${a}`),this}in(s,a){const o=Array.from(new Set(a)).map(l=>typeof l=="string"&&r.test(l)?`"${l}"`:`${l}`).join(",");return this.url.searchParams.append(s,`in.(${o})`),this}contains(s,a){return typeof a=="string"?this.url.searchParams.append(s,`cs.${a}`):Array.isArray(a)?this.url.searchParams.append(s,`cs.{${a.join(",")}}`):this.url.searchParams.append(s,`cs.${JSON.stringify(a)}`),this}containedBy(s,a){return typeof a=="string"?this.url.searchParams.append(s,`cd.${a}`):Array.isArray(a)?this.url.searchParams.append(s,`cd.{${a.join(",")}}`):this.url.searchParams.append(s,`cd.${JSON.stringify(a)}`),this}rangeGt(s,a){return this.url.searchParams.append(s,`sr.${a}`),this}rangeGte(s,a){return this.url.searchParams.append(s,`nxl.${a}`),this}rangeLt(s,a){return this.url.searchParams.append(s,`sl.${a}`),this}rangeLte(s,a){return this.url.searchParams.append(s,`nxr.${a}`),this}rangeAdjacent(s,a){return this.url.searchParams.append(s,`adj.${a}`),this}overlaps(s,a){return typeof a=="string"?this.url.searchParams.append(s,`ov.${a}`):this.url.searchParams.append(s,`ov.{${a.join(",")}}`),this}textSearch(s,a,{config:o,type:l}={}){let c="";l==="plain"?c="pl":l==="phrase"?c="ph":l==="websearch"&&(c="w");const d=o===void 0?"":`(${o})`;return this.url.searchParams.append(s,`${c}fts${d}.${a}`),this}match(s){return Object.entries(s).forEach(([a,o])=>{this.url.searchParams.append(a,`eq.${o}`)}),this}not(s,a,o){return this.url.searchParams.append(s,`not.${a}.${o}`),this}or(s,{foreignTable:a,referencedTable:o=a}={}){const l=o?`${o}.or`:"or";return this.url.searchParams.append(l,`(${s})`),this}filter(s,a,o){return this.url.searchParams.append(s,`${a}.${o}`),this}};return Xg.default=n,Xg}var Z4;function LO(){if(Z4)return Zg;
389Z4=1,Object.defineProperty(Zg,"__esModule",{value:!0});const t=Vf.__importDefault(I_());let r=class{constructor(i,{headers:s={},schema:a,fetch:o}){this.url=i,this.headers=new Headers(s),this.schema=a,this.fetch=o}select(i,s){const{head:a=!1,count:o}=s??{},l=a?"HEAD":"GET";let c=!1;const d=(i??"*").split("").map(h=>/\s/.test(h)&&!c?"":(h==='"'&&(c=!c),h)).join("");return this.url.searchParams.set("select",d),o&&this.headers.append("Prefer",`count=${o}`),new t.default({method:l,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(i,{count:s,defaultToNull:a=!0}={}){var o;const l="POST";if(s&&this.headers.append("Prefer",`count=${s}`),a||this.headers.append("Prefer","missing=default"),Array.isArray(i)){const c=i.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(c.length>0){const d=[...new Set(c)].map(h=>`"${h}"`);this.url.searchParams.set("columns",d.join(","))}}return new t.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:i,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}upsert(i,{onConflict:s,ignoreDuplicates:a=!1,count:o,defaultToNull:l=!0}={}){var c;const d="POST";if(this.headers.append("Prefer",`resolution=${a?"ignore":"merge"}-duplicates`),s!==void 0&&this.url.searchParams.set("on_conflict",s),o&&this.headers.append("Prefer",`count=${o}`),l||this.headers.append("Prefer","missing=default"),Array.isArray(i)){const h=i.reduce((p,f)=>p.concat(Object.keys(f)),[]);if(h.length>0){const p=[...new Set(h)].map(f=>`"${f}"`);this.url.searchParams.set("columns",p.join(","))}}return new t.default({method:d,url:this.url,headers:this.headers,schema:this.schema,body:i,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch})}update(i,{count:s}={}){var a;const o="PATCH";return s&&this.headers.append("Prefer",`count=${s}`),new t.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:i,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch})}delete({count:i}={}){var s;const a="DELETE";return i&&this.headers.append("Prefer",`count=${i}`),new t.default({method:a,url:this.url,headers:this.headers,schema:this.schema,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}};return Zg.default=r,Zg}var X4;function eK(){if(X4)return Yg;X4=1,Object.defineProperty(Yg,"__esModule",{value:!0});const e=Vf,t=e.__importDefault(LO()),r=e.__importDefault(I_());let n=class IO{constructor(s,{headers:a={},schema:o,fetch:l}={}){this.url=s,this.headers=new Headers(a),this.schemaName=o,this.fetch=l}from(s){if(!s||typeof s!="string"||s.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");const a=new URL(`${this.url}/${s}`);return new t.default(a,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(s){return new IO(this.url,{headers:this.headers,schema:s,fetch:this.fetch})}rpc(s,a={},{head:o=!1,get:l=!1,count:c}={}){var d;let h;const p=new URL(`${this.url}/rpc/${s}`);let f;o||l?(h=o?"HEAD":"GET",Object.entries(a).filter(([v,b])=>b!==void 0).map(([v,b])=>[v,Array.isArray(b)?`{${b.join(",")}}`:`${b}`]).forEach(([v,b])=>{p.searchParams.append(v,b)})):(h="POST",f=a);const y=new Headers(this.headers);return c&&y.set("Prefer",`count=${c}`),new r.default({method:h,url:p,headers:y,schema:this.schemaName,body:f,fetch:(d=this.fetch)!==null&&d!==void 0?d:fetch})}};return Yg.default=n,Yg}Object.defineProperty(hi,"__esModule",{value:!0});hi.PostgrestError=hi.PostgrestBuilder=hi.PostgrestTransformBuilder=hi.PostgrestFilterBuilder=hi.PostgrestQueryBuilder=hi.PostgrestClient=void 0;const Wf=Vf,FO=Wf.__importDefault(eK());hi.PostgrestClient=FO.default;const DO=Wf.__importDefault(LO());hi.PostgrestQueryBuilder=DO.default;const MO=Wf.__importDefault(I_());hi.PostgrestFilterBuilder=MO.default;const $O=Wf.__importDefault(RO());hi.PostgrestTransformBuilder=$O.default;const BO=Wf.__importDefault(OO());hi.PostgrestBuilder=BO.default;const qO=Wf.__importDefault(PO());hi.PostgrestError=qO.default;hi.default={PostgrestClient:FO.default,PostgrestQueryBuilder:DO.default,PostgrestFilterBuilder:MO.default,PostgrestTransformBuilder:$O.default,PostgrestBuilder:BO.default,PostgrestError:qO.default};class UO{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const r=process.versions;if(r&&r.node){const n=r.node,i=parseInt(n.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
390import ws from "ws"
391new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=`
392
393Suggested solution: ${t.workaround}`),new Error(r)}static createWebSocket(t,r){const n=this.getWebSocketConstructor();return new n(t,r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const tK="2.86.2",rK=`realtime-js/${tK}`,zO="1.0.0",nK="2.0.0",J4=zO,tx=1e4,iK=1e3,sK=100;var Kc;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Kc||(Kc={}));var Sn;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Sn||(Sn={}));var ia;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(ia||(ia={}));var rx;(function(e){e.websocket="websocket"})(rx||(rx={}));var Gc;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"}
393)(Gc||(Gc={}));class aK{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,n;const i=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var r,n;const i=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},a=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,a)}_encodeUserBroadcastPush(t,r,n){var i,s;const a=t.topic,o=(i=t.ref)!==null&&i!==void 0?i:"",l=(s=t.join_ref)!==null&&s!==void 0?s:"",c=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`ref length ${o.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`topic length ${a.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const p=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+o.length+a.length+c.length+h.length,f=new ArrayBuffer(this.HEADER_LENGTH+p);let y=new DataView(f),v=0;y.setUint8(v++,this.KINDS.userBroadcastPush),y.setUint8(v++,l.length),y.setUint8(v++,o.length),y.setUint8(v++,a.length),y.setUint8(v++,c.length),y.setUint8(v++,h.length),y.setUint8(v++,r),Array.from(l,w=>y.setUint8(v++,w.charCodeAt(0))),Array.from(o,w=>y.setUint8(v++,w.charCodeAt(0))),Array.from(a,w=>y.setUint8(v++,w.charCodeAt(0))),Array.from(c,w=>y.setUint8(v++,w.charCodeAt(0))),Array.from(h,w=>y.setUint8(v++,w.charCodeAt(0)));var b=new Uint8Array(f.byteLength+n.byteLength);return b.set(new Uint8Array(f),0),b.set(new Uint8Array(n),f.byteLength),b.buffer}decode(t,r){if(this._isArrayBuffer(t)){let n=this._binaryDecode(t);return r(n)}if(typeof t=="string"){const n=JSON.parse(t),[i,s,a,o,l]=n;return r({join_ref:i,ref:s,topic:a,event:o,payload:l})}return r({})}_binaryDecode(t){const r=new DataView(t),n=r.getUint8(0),i=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,r,i)}}_decodeUserBroadcast(t,r,n){const i=r.getUint8(1),s=r.getUint8(2),a=r.getUint8(3),o=r.getUint8(4);let l=this.HEADER_LENGTH+4;const c=n.decode(t.slice(l,l+i));l=l+i;const d=n.decode(t.slice(l,l+s));l=l+s;const h=n.decode(t.slice(l,l+a));l=l+a;const p=t.slice(l,t.byteLength),f=o===this.JSON_ENCODING?JSON.parse(n.decode(p)):p,y={type:this.BROADCAST_EVENT,event:d,payload:f};return a>0&&(y.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:y}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t==null?void 0:t.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([n])=>r.includes(n)))}}class HO{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Er;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Er||(Er={}));const Q4=(e,t,r={})=>{var n;const i=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((s,a)=>(s[a]=oK(a,e,t,i),s),{}):{}},oK=(e,t,r,n)=>{const i=t.find(o=>o.name===e),s=i==null?void 0:i.type,a=r[e];return s&&!n.includes(s)?VO(s,a):nx(a)},VO=(e,t)=>
393{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return dK(t,r)}switch(e){case Er.bool:return lK(t);case Er.float4:case Er.float8:case Er.int2:case Er.int4:case Er.int8:case Er.numeric:case Er.oid:return cK(t);case Er.json:case Er.jsonb:return uK(t);case Er.timestamp:return fK(t);case Er.abstime:case Er.date:case Er.daterange:case Er.int4range:case Er.int8range:case Er.money:case Er.reltime:case Er.text:case Er.time:case Er.timestamptz:case Er.timetz:case Er.tsrange:case Er.tstzrange:return nx(t);default:return nx(t)}},nx=e=>e,lK=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},cK=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},uK=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},dK=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let s;const a=e.slice(1,r);try{s=JSON.parse("["+a+"]")}catch{s=a?a.split(","):[]}return s.map(o=>VO(t,o))}return e},fK=e=>typeof e=="string"?e.replace(" ","T"):e,WO=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class zb{constructor(t,r,n={},i=tx){this.channel=t,this.event=r,this.payload=n,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var ix;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(ix||(ix={}));let KO=class Ov{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},i=>{const{onJoin:s,onLeave:a,onSync:o}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Ov.syncState(this.state,i,s,a),this.pendingDiffs.forEach(l=>{this.state=Ov.syncDiff(this.state,l,s,a)}),this.pendingDiffs=[],o()}),this.channel._on(n.diff,{},i=>{const{onJoin:s,onLeave:a,onSync:o}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=Ov.syncDiff(this.state,i,s,a),o())}),this.onJoin((i,s,a)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:s,newPresences:a})}),this.onLeave((i,s,a)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:s,leftPresences:a})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,i){const s=this.cloneDeep(t),a=this.transformState(r),o={},l={};return this.map(s,(c,d)=>{a[c]||(l[c]=d)}),this.map(a,(c,d)=>{const h=s[c];if(h){const p=d.map(b=>b.presence_ref),f=h.map(b=>b.presence_ref),y=d.filter(b=>f.indexOf(b.presence_ref)<0),v=h.filter(b=>p.indexOf(b.presence_ref)<0);y.length>0&&(o[c]=y),v.length>0&&(l[c]=v)}else o[c]=d}),this.syncDiff(s,{joins:o,leaves:l},n,i)}static syncDiff(t,r,n,i){const{joins:s,leaves:a}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),i||(i=()=>{}),this.map(s,(o,l)=>{var c;const d=(c=t[o])!==null&&c!==void 0?c:[];if(t[o]=this.cloneDeep(l),d.length>0){const h=t[o].map(f=>f.presence_ref),p=d.filter(f=>h.indexOf(f.presence_ref)<0);t[o].unshift(...p)}n(o,d,l)}),this.map(a,(o,l)=>{let c=t[o];if(!c)return;const d=l.map(h=>h.presence_ref);c=c.filter(h=>d.indexOf(h.presence_ref)<0),t[o]=c,i(o,c,l),c.length===0&&delete t[o]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const i=t[n];return"metas"in i?r[n]=i.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):r[n]=i,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}};var sx;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(sx||(sx={}));var Xd;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Xd||(Xd={}));var Oa;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Oa||(Oa={}));const hK=Sn;let GO=class YO{constructor(t,r={config:{}},n){var i,s;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=Sn.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new zb(this,ia.join,this.params,this.timeout),this.rejoinTimer=new HO(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Sn.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(a=>a.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Sn.closed,this.socket._remove(this)}),this._onError(a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=Sn.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Sn.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=Sn.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ia.reply,{},(a,o)=>{this._trigger(this._replyEventName(o),a)}),this.presence=new KO(this),this.broadcastEndpointURL=WO(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((s=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||s===void 0)&&s.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,r=this.timeout){var n,i,s;if(this.socket.isConnected()||this.socket.connect(),this.state==Sn.closed){const{config:{broadcast:a,presence:o,private:l}}=this.params,c=(i=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(f=>f.filter))!==null&&i!==void 0?i:[],d=!!this.bindings[Xd.PRESENCE]&&this.bindings[Xd.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,h={},p={broadcast:a,presence:Object.assign(Object.assign({},o),{enabled:d}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(f=>t==null?void 0:t(Oa.CHANNEL_ERROR,f)),this._onClose(()=>t==null?void 0:t(Oa.CLOSED)),this.updateJoinPayload(Object.assign({config:p},h)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:f})=>{var y;if(this.socket.setAuth(),f===void 0){t==null||t(Oa.SUBSCRIBED);return}else{const v=this.bindings.postgres_changes,b=(y=v==null?void 0:v.length)!==null&&y!==void 0?y:0,w=[];for(let x=0;x<b;x++){const S=v[x],{filter:{event:E,schema:T,table:W,filter:z}}=S,B=f&&f[x];if(B&&B.event===E&&B.schema===T&&B.table===W&&B.filter===z)w.push(Object.assign(Object.assign({},S),{id:B.id}));else{this.unsubscribe(),this.state=Sn.errored,t==null||t(Oa.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=w,t&&t(Oa.SUBSCRIBED);return}}).receive("error",f=>{this.state=Sn.errored,t==null||t(Oa.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Oa.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this.state===Sn.joined&&t===Xd.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,r,n)}async httpSend(t,r,n={}){var i;const s=this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"";if(r==null)return Promise.reject("Payload is required for httpSend()");const a={method:"POST",headers:{Authorization:s,apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:r,private:this.private}]})},o=await this._fetchWithTimeout(this.broadcastEndpointURL,a,(i=n.timeout)!==null&&i!==void 0?i:this.timeout);if(o.status===202)return{success:!0};let l=o.statusText;
393try{const c=await o.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(t,r={}){var n,i;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:s,payload:a}=t,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:a,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((i=c.body)===null||i===void 0?void 0:i.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var a,o,l;const c=this._push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(o=(a=this.params)===null||a===void 0?void 0:a.config)===null||o===void 0?void 0:o.broadcast)===null||l===void 0)&&l.ack)&&s("ok"),c.receive("ok",()=>s("ok")),c.receive("error",()=>s("error")),c.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Sn.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ia.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(i=>{n=new zb(this,ia.leave,{},t),n.receive("ok",()=>{r(),i("ok")}).receive("timeout",()=>{r(),i("timed out")}).receive("error",()=>{i("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Sn.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const i=new AbortController,s=setTimeout(()=>i.abort(),n),a=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:i.signal}));return clearTimeout(s),a}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new zb(this,t,r,n);return this._canPush()?i.send():this._addToPushBuffer(i),i}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>sK){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var i,s;const a=t.toLocaleLowerCase(),{close:o,error:l,leave:c,join:d}=ia;if(n&&[o,l,c,d].indexOf(a)>=0&&n!==this._joinRef())return;let p=this._onMessage(a,r,n);if(r&&!p)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(a)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(f=>{var y,v,b;return((y=f.filter)===null||y===void 0?void 0:y.event)==="*"||((b=(v=f.filter)===null||v===void 0?void 0:v.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===a}).map(f=>f.callback(p,n)):(s=this.bindings[a])===null||s===void 0||s.filter(f=>{var y,v,b,w,x,S;if(["broadcast","presence","postgres_changes"].includes(a))if("id"in f){const E=f.id,T=(y=f.filter)===null||y===void 0?void 0:y.event;return E&&((v=r.ids)===null||v===void 0?void 0:v.includes(E))&&(T==="*"||(T==null?void 0:T.toLocaleLowerCase())===((b=r.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const E=(x=(w=f==null?void 0:f.filter)===null||w===void 0?void 0:w.event)===null||x===void 0?void 0:x.toLocaleLowerCase();return E==="*"||E===((S=r==null?void 0:r.event)===null||S===void 0?void 0:S.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===a}).map(f=>{if(typeof p=="object"&&"ids"in p){const y=p.data,{schema:v,table:b,commit_timestamp:w,type:x,errors:S}=y;p=Object.assign(Object.assign({},{schema:v,table:b,commit_timestamp:w,eventType:x,new:{},old:{},errors:S}),this._getPayloadRecords(y))}f.callback(p,n)})}_isClosed(){return this.state===Sn.closed}_isJoined(){return this.state===Sn.joined}_isJoining(){return this.state===Sn.joining}_isLeaving(){return this.state===Sn.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const i=t.toLocaleLowerCase(),s={type:i,filter:r,callback:n};return this.bindings[i]?this.bindings[i].push(s):this.bindings[i]=[s],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(i=>{var s;return!(((s=i.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===n&&YO.isEqual(i.filter,r))})),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(ia.close,{},t)}_onError(t){this._on(ia.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Sn.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=Q4(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=Q4(t.columns,t.old_record)),r}};const Hb=()=>{},tv={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},pK=[1e3,2e3,5e3,1e4],mK=1e4,gK=`
394  addEventListener("message", (e) => {
395    if (e.data.event === "start") {
396      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
397    }
398  });`;let vK=class{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=tx,this.transport=null,this.heartbeatIntervalMs=tv.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Hb,this.ref=0,this.reconnectTimer=null,this.vsn=J4,this.logger=Hb,this.conn=null,this.sendBuffer=[],this.serializer
398=new aK,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=i=>i?(...s)=>i(...s):(...s)=>fetch(...s),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${t}/${rx.websocket}`,this.httpEndpoint=WO(t),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=UO.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r}
399
400To use Realtime in Node.js, you need to provide a WebSocket implementation:
401
402Option 1: Use Node.js 22+ which has native WebSocket support
403Option 2: Install and provide the "ws" package:
404
405  npm install ws
406
407  import ws from "ws"
408  const client = new RealtimeClient(url, {
409    ...options,
410    transport: ws
411  })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case Kc.connecting:return Gc.Connecting;case Kc.open:return Gc.Open;case Kc.closing:return Gc.Closing;default:return Gc.Closed}}isConnected(){return this.connectionState()===Gc.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,i=this.getChannels().find(s=>s.topic===n);if(i)return i;{const s=new GO(`realtime:${t}`,r,this);return this.channels.push(s),s}}push(t){const{topic:r,event:n,payload:i,ref:s}=t,a=()=>{this.encode(t,o=>{var l;(l=this.conn)===null||l===void 0||l.send(o)})};this.log("push",`${r} ${n} (${s})`,i),this.isConnected()?a():this.sendBuffer.push(a)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(iK,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
411heduleTimeout()},tv.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply")try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error")}catch(c){this.log("error","error in heartbeat callback",c)}r.ref&&r.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:n,event:i,payload:s,ref:a}=r,o=a?`(${a})`:"",l=s.status||"";this.log("receive",`${l} ${n} ${i} ${o}`.trim(),s),this.channels.filter(c=>c._isMember(n)).forEach(c=>c._trigger(i,s,a)),this._triggerStateCallbacks("message",r)})}_clearTimer(t){var r;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_teardownConnection(){if(this.conn){if(this.conn.readyState===Kc.open||this.conn.readyState===Kc.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var r;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
411heduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(ia.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",i=new URLSearchParams(r);return`${t}${n}${i}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([gK],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(t,r=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(t=null){let r;t?r=t:this.accessToken?r=await this.accessToken():r=this.accessTokenValue,this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(n=>{const i={access_token:r,version:rK};r&&n.updateJoinPayload(i),n.joinedOnce&&n._isJoined()&&n._push(ia.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(r=>{this.log("error",`error setting auth in ${t}`,r)})}_triggerStateCallbacks(t,r){try{this.stateChangeCallbacks[t].forEach(n=>{try{n(r)}catch(i){this.log("error",`error in ${t} callback`,i)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new HO(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},tv.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,i,s,a,o,l,c,d,h,p,f;switch(this.transport=(r=t==null?void 0:t.transport)!==null&&r!==void 0?r:null,this.timeout=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:tx,this.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:tv.HEARTBEAT_INTERVAL,this.worker=(s=t==null?void 0:t.worker)!==null&&s!==void 0?s:!1,this.accessToken=(a=t==null?void 0:t.accessToken)!==null&&a!==void 0?a:null,this.heartbeatCallback=(o=t==null?void 0:t.heartbeatCallback)!==null&&o!==void 0?o:Hb,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:J4,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:y=>pK[y-1]||mK,this.vsn){case zO:this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(y,v)=>v(JSON.stringify(y)),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:(y,v)=>v(JSON.parse(y));break;case nK:this.encode=(p=t==null?void 0:t.encode)!==null&&p!==void 0?p:this.serializer.encode.bind(this.serializer),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}};const yK=Object.freeze(Object.defineProperty({__proto__:null,REALTIME_CHANNEL_STATES:hK,get REALTIME_LISTEN_TYPES(){return Xd},get REALTIME_POSTGRES_CHANGES_LISTEN_EVENT(){return sx},get REALTIME_PRESENCE_LISTEN_EVENTS(){return ix},get REALTIME_SUBSCRIBE_STATES(){return Oa},RealtimeChannel:GO,RealtimeClient:vK,RealtimePresence:KO,WebSocketFactory:UO},Symbol.toStringTag,{value:"Module"})),ZO=dm(yK);class Cm extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Ur(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class XO extends Cm{constructor(t,r,n){super(t),this.name="StorageApiError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class L0 extends Cm{constructor(t,r){super(t),this.name="StorageUnknownError",this.originalError=r}}const F_=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),bK=()=>Response,ax=e=>{if(Array.isArray(e))return e.map(r=>ax(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const i=r.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[i]=ax(n)}),t},wK=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);
411return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},xK=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),Vb=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},_K=(e,t,r)=>at(void 0,void 0,void 0,function*(){const n=yield bK();e instanceof n&&!(r!=null&&r.noResolveJson)?e.json().then(i=>{const s=e.status||500,a=(i==null?void 0:i.statusCode)||s+"";t(new XO(Vb(i),s,a))}).catch(i=>{t(new L0(Vb(i),i))}):t(new L0(Vb(e),e))}),kK=(e,t,r,n)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!n?i:(wK(n)?(i.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(n)):i.body=n,t!=null&&t.duplex&&(i.duplex=t.duplex),Object.assign(Object.assign({},i),r))};function jm(e,t,r,n,i,s){return at(this,void 0,void 0,function*(){return new Promise((a,o)=>{e(r,kK(t,n,i,s)).then(l=>{if(!l.ok)throw l;return n!=null&&n.noResolveJson?l:l.json()}).then(l=>a(l)).catch(l=>_K(l,o,n))})})}function Wp(e,t,r,n){return at(this,void 0,void 0,function*(){return jm(e,"GET",t,r,n)})}function ea(e,t,r,n,i){return at(this,void 0,void 0,function*(){return jm(e,"POST",t,n,i,r)})}function ox(e,t,r,n,i){return at(this,void 0,void 0,function*(){return jm(e,"PUT",t,n,i,r)})}function SK(e,t,r,n){return at(this,void 0,void 0,function*(){return jm(e,"HEAD",t,Object.assign(Object.assign({},r),{noResolveJson:!0}),n)})}function D_(e,t,r,n,i){return at(this,void 0,void 0,function*(){return jm(e,"DELETE",t,n,i,r)})}class NK{constructor(t,r){this.downloadFn=t,this.shouldThrowOnError=r}then(t,r){return this.execute().then(t,r)}execute(){return at(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Ur(t))return{data:null,error:t};throw t}})}}var JO;class EK{constructor(t,r){this.downloadFn=t,this.shouldThrowOnError=r,this[JO]="BlobDownloadBuilder",this.promise=null}asStream(){return new NK(this.downloadFn,this.shouldThrowOnError)}then(t,r){return this.getPromise().then(t,r)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}execute(){return at(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Ur(t))return{data:null,error:t};throw t}})}}JO=Symbol.toStringTag;const CK={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},e3={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class jK{constructor(t,r={},n,i){this.shouldThrowOnError=!1,this.url=t,this.headers=r,this.bucketId=n,this.fetch=F_(i)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,r,n,i){return at(this,void 0,void 0,function*(){try{let s;const a=Object.assign(Object.assign({},e3),i);let o=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(a.upsert)});const l=a.metadata;typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",a.cacheControl),l&&s.append("metadata",this.encodeMetadata(l)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.has("cacheControl")||s.append("cacheControl",a.cacheControl),l&&!s.has("metadata")&&s.append("metadata",this.encodeMetadata(l))):(s=n,o["cache-control"]=`max-age=${a.cacheControl}`,o["content-type"]=a.contentType,l&&(o["x-metadata"]=this.toBase64(this.encodeMetadata(l))),(typeof ReadableStream<"u"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!a.duplex&&(a.duplex="half")),i!=null&&i.headers&&(o=Object.assign(Object.assign({},o),i.headers));const c=this._removeEmptyFolders(r),d=this._getFinalPath(c),h=yield(t=="PUT"?ox:ea)(this.fetch,`${this.url}/object/${d}`,s,Object.assign({headers:o},a!=null&&a.duplex?{duplex:a.duplex}:{}));return{data:{path:c,id:h.Id,fullPath:h.Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Ur(s))return{data:null,error:s};throw s}})}upload(t,r,n){return at(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,r,n)})}uploadToSignedUrl(t,r,n,i){return at(this,void 0,void 0,function*(){const s=this._removeEmptyFolders(t),a=this._getFinalPath(s),o=new URL(this.url+`/object/upload/sign/${a}`);o.searchParams.set("token",r);try{let l;const c=Object.assign({upsert:e3.upsert},i),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",c.cacheControl)):(l=n,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType);const h=yield ox(this.fetch,o.toString(),l,{headers:d});return{data:{path:s,fullPath:h.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(Ur(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,r){return at(this,void 0,void 0,function*(){try{let n=this._getFinalPath(t);const i=Object.assign({},this.headers);r!=null&&r.upsert&&(i["x-upsert"]="true");const s=yield ea(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:i}),a=new URL(this.url+s.url),o=a.searchParams.get("token");if(!o)throw new Cm("No token returned by API");return{data:{signedUrl:a.toString(),path:t,token:o},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ur(n))return{data:null,error:n};throw n}})}update(t,r,n){return at(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,r,n)})}move(t,r,n){return at(this,void 0,void 0,function*(){try{return{data:yield ea(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ur(i))return{data:null,error:i};throw i}})}copy(t,r,n){return at(this,void 0,void 0,function*(){try{return{data:{path:(yield ea(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ur(i))return{data:null,error:i};throw i}})}createSignedUrl(t,r,n){return at(this,void 0,void 0,function*(){try{let i=this._getFinalPath(t),s=yield ea(this.fetch,`${this.url}/object/sign/${i}
411`,Object.assign({expiresIn:r},n!=null&&n.transform?{transform:n.transform}:{}),{headers:this.headers});const a=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return s={signedUrl:encodeURI(`${this.url}${s.signedURL}${a}`)},{data:s,error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ur(i))return{data:null,error:i};throw i}})}createSignedUrls(t,r,n){return at(this,void 0,void 0,function*(){try{const i=yield ea(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:t},{headers:this.headers}),s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:i.map(a=>Object.assign(Object.assign({},a),{signedUrl:a.signedURL?encodeURI(`${this.url}${a.signedURL}${s}`):null})),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ur(i))return{data:null,error:i};throw i}})}download(t,r){const i=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),a=s?`?${s}`:"",o=this._getFinalPath(t),l=()=>Wp(this.fetch,`${this.url}/${i}/${o}${a}`,{headers:this.headers,noResolveJson:!0});return new EK(l,this.shouldThrowOnError)}info(t){return at(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{const n=yield Wp(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:ax(n),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ur(n))return{data:null,error:n};throw n}})}exists(t){return at(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{return yield SK(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ur(n)&&n instanceof L0){const i=n.originalError;if([400,404].includes(i==null?void 0:i.status))return{data:!1,error:n}}throw n}})}getPublicUrl(t,r){const n=this._getFinalPath(t),i=[],s=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";s!==""&&i.push(s);const o=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});l!==""&&i.push(l);let c=i.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${o}/public/${n}${c}`)}}}remove(t){return at(this,void 0,void 0,function*(){try{return{data:yield D_(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ur(r))return{data:null,error:r};throw r}})}list(t,r,n){return at(this,void 0,void 0,function*(){try{const i=Object.assign(Object.assign(Object.assign({},CK),r),{prefix:t||""});return{data:yield ea(this.fetch,`${this.url}/object/list/${this.bucketId}`,i,{headers:this.headers},n),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ur(i))return{data:null,error:i};throw i}})}listV2(t,r){return at(this,void 0,void 0,function*(){try{const n=Object.assign({},t);return{data:yield ea(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,n,{headers:this.headers},r),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ur(n))return{data:null,error:n};throw n}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const r=[];return t.width&&r.push(`width=${t.width}`),t.height&&r.push(`height=${t.height}`),t.resize&&r.push(`resize=${t.resize}`),t.format&&r.push(`format=${t.format}`),t.quality&&r.push(`quality=${t.quality}`),r.join("&")}}const QO="2.86.2",eR={"X-Client-Info":`storage-js/${QO}`};class AK{constructor(t,r={},n,i){this.shouldThrowOnError=!1;const s=new URL(t);i!=null&&i.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase.")),this.url=s.href.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},eR),r),this.fetch=F_(n)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(t){return at(this,void 0,void 0,function*(){try{const r=this.listBucketOptionsToQueryString(t);return{data:yield Wp(this.fetch,`${this.url}/bucket${r}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ur(r))return{data:null,error:r};throw r}})}getBucket(t){return at(this,void 0,void 0,function*(){try{return{data:yield Wp(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ur(r))return{data:null,error:r};throw r}})}createBucket(t){return at(this,arguments,void 0,function*(r,n={public:!1}){try{return{data:yield ea(this.fetch,`${this.url}/bucket`,{id:r,name:r,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ur(i))return{data:null,error:i};throw i}})}updateBucket(t,r){return at(this,void 0,void 0,function*(){try{return{data:yield ox(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ur(n))return{data:null,error:n};throw n}})}emptyBucket(t){return at(this,void 0,void 0,function*(){try{return{data:yield ea(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ur(r))return{data:null,error:r};throw r}})}deleteBucket(t){return at(this,void 0,void 0,function*(){try{return{data:yield D_(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ur(r))return{data:null,error:r};throw r}})}listBucketOptionsToQueryString(t){const r={};return t&&("limit"in t&&(r.limit=String(t.limit)),"offset"in t&&(r.offset=String(t.offset)),t.search&&(r.search=t.search),t.sortColumn&&(r.sortColumn=t.sortColumn),t.sortOrder&&(r.sortOrder=t.sortOrder)),Object.keys(r).length>0?"?"+new URLSearchParams(r).toString():""}}
411var Kp=class extends Error{constructor(e,t){var r;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((r=t.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function TK(e,t,r){const n=new URL(t,e);if(r)for(const[i,s]of Object.entries(r))s!==void 0&&n.searchParams.set(i,s);return n.toString()}async function PK(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function OK(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:i,body:s,headers:a}){const o=TK(e.baseUrl,n,i),l=await PK(e.auth),c=await t(o,{method:r,headers:{...s?{"Content-Type":"application/json"}:{},...l,...a},body:s?JSON.stringify(s):void 0}),d=await c.text(),h=(c.headers.get("content-type")||"").includes("application/json"),p=h&&d?JSON.parse(d):d;if(!c.ok){const f=h?p:void 0,y=f==null?void 0:f.error;throw new Kp((y==null?void 0:y.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:y==null?void 0:y.type,icebergCode:y==null?void 0:y.code,details:f})}return{status:c.status,headers:c.headers,data:p}}}}function rv(e){return e.join("�")}var RK=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:rv(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${rv(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${rv(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${rv(e.namespace)}`}),!0}catch(t){if(t instanceof Kp&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof Kp&&r.status===409)return;throw r}}};function ld(e){return e.join("�")}var LK=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ld(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ld(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ld(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ld(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ld(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ld(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof Kp&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof Kp&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},IK=class{constructor(e){var n;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=OK({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(n=e.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new RK(this.client,t),this.tableOps=new LK(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
411async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};class tR{constructor(t,r={},n){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},eR),r),this.fetch=F_(n)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(t){return at(this,void 0,void 0,function*(){try{return{data:yield ea(this.fetch,`${this.url}/bucket`,{name:t},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ur(r))return{data:null,error:r};throw r}})}listBuckets(t){return at(this,void 0,void 0,function*(){try{const r=new URLSearchParams;(t==null?void 0:t.limit)!==void 0&&r.set("limit",t.limit.toString()),(t==null?void 0:t.offset)!==void 0&&r.set("offset",t.offset.toString()),t!=null&&t.sortColumn&&r.set("sortColumn",t.sortColumn),t!=null&&t.sortOrder&&r.set("sortOrder",t.sortOrder),t!=null&&t.search&&r.set("search",t.search);const n=r.toString(),i=n?`${this.url}/bucket?${n}`:`${this.url}/bucket`;return{data:yield Wp(this.fetch,i,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ur(r))return{data:null,error:r};throw r}})}deleteBucket(t){return at(this,void 0,void 0,function*(){try{return{data:yield D_(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ur(r))return{data:null,error:r};throw r}})}from(t){if(!xK(t))throw new Cm("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");return new IK({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:()=>at(this,void 0,void 0,function*(){return this.headers})},fetch:this.fetch})}}const M_={"X-Client-Info":`storage-js/${QO}`,"Content-Type":"application/json"};class $_ extends Error{constructor(t){super(t),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}}function Bi(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}class Rv extends $_{constructor(t,r,n){super(t),this.name="StorageVectorsApiError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class rR extends $_{constructor(t,r){super(t),this.name="StorageVectorsUnknownError",this.originalError=r}}var lx;(function(e){e.InternalError="InternalError",e.S3VectorConflictException="S3VectorConflictException",e.S3VectorNotFoundException="S3VectorNotFoundException",e.S3VectorBucketNotEmpty="S3VectorBucketNotEmpty",e.S3VectorMaxBucketsExceeded="S3VectorMaxBucketsExceeded",e.S3VectorMaxIndexesExceeded="S3VectorMaxIndexesExceeded"})(lx||(lx={}));const Zy=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),FK=()=>Response,nR=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},DK=e=>Array.from(new Float32Array(e)),MK=(e,t)=>{if(t!==void 0&&e.float32.length!==t)throw new Error(`Vector dimension mismatch: expected ${t}, got ${e.float32.length}`)},t3=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),$K=(e,t,r)=>at(void 0,void 0,void 0,function*(){if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(r!=null&&r.noResolveJson)){const i=e.status||500,s=e;if(typeof s.json=="function")s.json().then(a=>{const o=(a==null?void 0:a.statusCode)||(a==null?void 0:a.code)||i+"";t(new Rv(t3(a),i,o))}).catch(()=>{const a=i+"",o=s.statusText||`HTTP ${i} error`;t(new Rv(o,i,a))});else{const a=i+"",o=s.statusText||`HTTP ${i} error`;t(new Rv(o,i,a))}}else t(new rR(t3(e),e))}),BK=(e,t,r,n)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return n?(nR(n)?(i.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(n)):i.body=n,Object.assign(Object.assign({},i),r)):i};function qK(e,t,r,n,i,s){return at(this,void 0,void 0,function*(){return new Promise((a,o)=>
411{e(r,BK(t,n,i,s)).then(l=>{if(!l.ok)throw l;if(n!=null&&n.noResolveJson)return l;const c=l.headers.get("content-type");return!c||!c.includes("application/json")?{}:l.json()}).then(l=>a(l)).catch(l=>$K(l,o,n))})})}function ss(e,t,r,n,i){return at(this,void 0,void 0,function*(){return qK(e,"POST",t,n,i,r)})}class iR{constructor(t,r={},n){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},M_),r),this.fetch=Zy(n)}throwOnError(){return this.shouldThrowOnError=!0,this}createIndex(t){return at(this,void 0,void 0,function*(){try{return{data:(yield ss(this.fetch,`${this.url}/CreateIndex`,t,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bi(r))return{data:null,error:r};throw r}})}getIndex(t,r){return at(this,void 0,void 0,function*(){try{return{data:yield ss(this.fetch,`${this.url}/GetIndex`,{vectorBucketName:t,indexName:r},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Bi(n))return{data:null,error:n};throw n}})}listIndexes(t){return at(this,void 0,void 0,function*(){try{return{data:yield ss(this.fetch,`${this.url}/ListIndexes`,t,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bi(r))return{data:null,error:r};throw r}})}deleteIndex(t,r){return at(this,void 0,void 0,function*(){try{return{data:(yield ss(this.fetch,`${this.url}/DeleteIndex`,{vectorBucketName:t,indexName:r},{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Bi(n))return{data:null,error:n};throw n}})}}class sR{constructor(t,r={},n){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},M_),r),this.fetch=Zy(n)}throwOnError(){return this.shouldThrowOnError=!0,this}putVectors(t){return at(this,void 0,void 0,function*(){try{if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:(yield ss(this.fetch,`${this.url}/PutVectors`,t,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bi(r))return{data:null,error:r};throw r}})}getVectors(t){return at(this,void 0,void 0,function*(){try{return{data:yield ss(this.fetch,`${this.url}/GetVectors`,t,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bi(r))return{data:null,error:r};throw r}})}listVectors(t){return at(this,void 0,void 0,function*(){try{if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return{data:yield ss(this.fetch,`${this.url}/ListVectors`,t,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bi(r))return{data:null,error:r};throw r}})}queryVectors(t){return at(this,void 0,void 0,function*(){try{return{data:yield ss(this.fetch,`${this.url}/QueryVectors`,t,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bi(r))return{data:null,error:r};throw r}})}deleteVectors(t){return at(this,void 0,void 0,function*(){try{if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:(yield ss(this.fetch,`${this.url}/DeleteVectors`,t,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bi(r))return{data:null,error:r};throw r}})}}class aR{constructor(t,r={},n){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},M_),r),this.fetch=Zy(n)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(t){return at(this,void 0,void 0,function*(){try{return{data:(yield ss(this.fetch,`${this.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bi(r))return{data:null,error:r};throw r}})}getBucket(t){return at(this,void 0,void 0,function*(){try{return{data:yield ss(this.fetch,`${this.url}/GetVectorBucket`,{vectorBucketName:t},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bi(r))return{data:null,error:r};throw r}})}listBuckets(){return at(this,arguments,void 0,function*(t={}){try{return{data:yield ss(this.fetch,`${this.url}/ListVectorBuckets`,t,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bi(r))return{data:null,error:r};throw r}})}deleteBucket(t){return at(this,void 0,void 0,function*(){try{return{data:(yield ss(this.fetch,`${this.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bi(r))return{data:null,error:r};throw r}})}}class oR extends aR{constructor(t,r={}){super(t,r.headers||{},r.fetch)}from(t){return new lR(this.url,this.headers,t,this.fetch)}createBucket(t){const r=Object.create(null,{createBucket:{get:()=>super.createBucket}});return at(this,void 0,void 0,function*(){return r.createBucket.call(this,t)})}getBucket(t){const r=Object.create(null,{getBucket:{get:()=>super.getBucket}});return at(this,void 0,void 0,function*(){return r.getBucket.call(this,t)})}listBuckets(){const t=Object.create(null,{listBuckets:{get:()=>super.listBuckets}});return at(this,arguments,void 0,function*(r={}
411){return t.listBuckets.call(this,r)})}deleteBucket(t){const r=Object.create(null,{deleteBucket:{get:()=>super.deleteBucket}});return at(this,void 0,void 0,function*(){return r.deleteBucket.call(this,t)})}}class lR extends iR{constructor(t,r,n,i){super(t,r,i),this.vectorBucketName=n}createIndex(t){const r=Object.create(null,{createIndex:{get:()=>super.createIndex}});return at(this,void 0,void 0,function*(){return r.createIndex.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName}))})}listIndexes(){const t=Object.create(null,{listIndexes:{get:()=>super.listIndexes}});return at(this,arguments,void 0,function*(r={}){return t.listIndexes.call(this,Object.assign(Object.assign({},r),{vectorBucketName:this.vectorBucketName}))})}getIndex(t){const r=Object.create(null,{getIndex:{get:()=>super.getIndex}});return at(this,void 0,void 0,function*(){return r.getIndex.call(this,this.vectorBucketName,t)})}deleteIndex(t){const r=Object.create(null,{deleteIndex:{get:()=>super.deleteIndex}});return at(this,void 0,void 0,function*(){return r.deleteIndex.call(this,this.vectorBucketName,t)})}index(t){return new cR(this.url,this.headers,this.vectorBucketName,t,this.fetch)}}class cR extends sR{constructor(t,r,n,i,s){super(t,r,s),this.vectorBucketName=n,this.indexName=i}putVectors(t){const r=Object.create(null,{putVectors:{get:()=>super.putVectors}});return at(this,void 0,void 0,function*(){return r.putVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}getVectors(t){const r=Object.create(null,{getVectors:{get:()=>super.getVectors}});return at(this,void 0,void 0,function*(){return r.getVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}listVectors(){const t=Object.create(null,{listVectors:{get:()=>super.listVectors}});return at(this,arguments,void 0,function*(r={}){return t.listVectors.call(this,Object.assign(Object.assign({},r),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}queryVectors(t){const r=Object.create(null,{queryVectors:{get:()=>super.queryVectors}});return at(this,void 0,void 0,function*(){return r.queryVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}deleteVectors(t){const r=Object.create(null,{deleteVectors:{get:()=>super.deleteVectors}});return at(this,void 0,void 0,function*(){return r.deleteVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}}class UK extends AK{constructor(t,r={},n,i){super(t,r,n,i)}from(t){return new jK(this.url,this.headers,t,this.fetch)}get vectors(){return new oR(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new tR(this.url+"/iceberg",this.headers,this.fetch)}}const zK=Object.freeze(Object.defineProperty({__proto__:null,StorageAnalyticsClient:tR,StorageApiError:XO,StorageClient:UK,StorageError:Cm,StorageUnknownError:L0,StorageVectorsApiError:Rv,StorageVectorsClient:oR,StorageVectorsError:$_,get StorageVectorsErrorCode(){return lx},StorageVectorsUnknownError:rR,VectorBucketApi:aR,VectorBucketScope:lR,VectorDataApi:sR,VectorIndexApi:iR,VectorIndexScope:cR,isPlainObject:nR,isStorageError:Ur,isStorageVectorsError:Bi,normalizeToFloat32:DK,resolveFetch:Zy,resolveResponse:FK,validateVectorDimension:MK},Symbol.toStringTag,{value:"Module"})),HK=dm(zK);var uR={},Xy={};Object.defineProperty(Xy,"__esModule",{value:!0});Xy.version=void 0;Xy.version="2.86.2";(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_REALTIME_OPTIONS=e.DEFAULT_AUTH_OPTIONS=e.DEFAULT_DB_OPTIONS=e.DEFAULT_GLOBAL_OPTIONS=e.DEFAULT_HEADERS=void 0;const t=Xy;let r="";typeof Deno<"u"?r="deno":typeof document<"u"?r="web":typeof navigator<"u"&&navigator.product==="ReactNative"?r="react-native":r="node",e.DEFAULT_HEADERS={"X-Client-Info":`supabase-js-${r}/${t.version}`},e.DEFAULT_GLOBAL_OPTIONS={headers:e.DEFAULT_HEADERS},e.DEFAULT_DB_OPTIONS={schema:"public"},e.DEFAULT_AUTH_OPTIONS={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},e.DEFAULT_REALTIME_OPTIONS={}})(uR);var dR={};
411(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fetchWithAuth=e.resolveHeadersConstructor=e.resolveFetch=void 0;const t=i=>i?(...s)=>i(...s):(...s)=>fetch(...s);e.resolveFetch=t;const r=()=>Headers;e.resolveHeadersConstructor=r;const n=(i,s,a)=>{const o=(0,e.resolveFetch)(a),l=(0,e.resolveHeadersConstructor)();return async(c,d)=>{var h;const p=(h=await s())!==null&&h!==void 0?h:i;let f=new l(d==null?void 0:d.headers);return f.has("apikey")||f.set("apikey",i),f.has("Authorization")||f.set("Authorization",`Bearer ${p}`),o(c,Object.assign(Object.assign({},d),{headers:f}))}};e.fetchWithAuth=n})(dR);var pc={};Object.defineProperty(pc,"__esModule",{value:!0});pc.isBrowser=void 0;pc.uuid=VK;pc.ensureTrailingSlash=fR;pc.applySettingDefaults=KK;pc.validateSupabaseUrl=GK;function VK(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e=="x"?t:t&3|8;return r.toString(16)})}function fR(e){return e.endsWith("/")?e:e+"/"}const WK=()=>typeof window<"u";pc.isBrowser=WK;function KK(e,t){var r,n;const{db:i,auth:s,realtime:a,global:o}=e,{db:l,auth:c,realtime:d,global:h}=t,p={db:Object.assign(Object.assign({},l),i),auth:Object.assign(Object.assign({},c),s),realtime:Object.assign(Object.assign({},d),a),storage:{},global:Object.assign(Object.assign(Object.assign({},h),o),{headers:Object.assign(Object.assign({},(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{}),(n=o==null?void 0:o.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return e.accessToken?p.accessToken=e.accessToken:delete p.accessToken,p}function GK(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(fR(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var Jy={};const hR="2.86.2",kd=30*1e3,cx=3,Wb=cx*kd,YK="http://localhost:9999",ZK="supabase.auth.token",XK={"X-Client-Info":`gotrue-js/${hR}`},ux="X-Supabase-Api-Version",pR={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},JK=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,QK=10*60*1e3;let Nf=class extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}};function yt(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}let mR=class extends Nf{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}};function gR(e){return yt(e)&&e.name==="AuthApiError"}let Sl=class extends Nf{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}},Wo=class extends Nf{constructor(t,r,n,i){super(t,n,i),this.name=r,this.status=n}},Fi=class extends Wo{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}};function vR(e){return yt(e)&&e.name==="AuthSessionMissingError"}let Bc=class extends Wo{constructor(){super("Auth session or user missing","AuthInvalidToken
411ResponseError",500,void 0)}},Yh=class extends Wo{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}},Zh=class extends Wo{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}};function yR(e){return yt(e)&&e.name==="AuthImplicitGrantRedirectError"}let dx=class extends Wo{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}},I0=class extends Wo{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}};function Lv(e){return yt(e)&&e.name==="AuthRetryableFetchError"}let fx=class extends Wo{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}};function eG(e){return yt(e)&&e.name==="AuthWeakPasswordError"}let F0=class extends Wo{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}};const D0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),r3=` 	
412\r=`.split(""),tG=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<r3.length;t+=1)e[r3[t].charCodeAt(0)]=-2;for(let t=0;t<D0.length;t+=1)e[D0[t].charCodeAt(0)]=t;return e})();function n3(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(D0[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(D0[n]),t.queuedBits-=6}}function bR(e,t,r){const n=tG[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function i3(e){const t=[],r=a=>{t.push(String.fromCodePoint(a))},n={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=a=>{iG(a,n,r)};for(let a=0;a<e.length;a+=1)bR(e.charCodeAt(a),i,s);return t.join("")}function rG(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function nG(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const i=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|i)+65536,r+=1}rG(n,t)}}function iG(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function Jd(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)bR(e.charCodeAt(i),r,n);return new Uint8Array(t)}function sG(e){const t=[];return nG(e,r=>t.push(r)),new Uint8Array(t)}function Qc(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};return e.forEach(i=>n3(i,r,n)),n3(null,r,n),t.join("")}function aG(e){return Math.round(Date.now()/1e3)+e}function oG(){return Symbol("auth-callback")}const Zn=()=>typeof window<"u"&&typeof document<"u",Ic={tested:!1,writable:!1},wR=()=>{if(!Zn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Ic.tested)return Ic.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Ic.tested=!0,Ic.writable=!0}catch{Ic.tested=!0,Ic.writable=!1}return Ic.writable};function lG(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((i,s)=>{t[s]=i})}catch{}return r.searchParams.forEach((n,i)=>{t[i]=n}),t}const xR=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),cG=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Sd=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},Fc=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},Yn=async(e,t)=>{await e.removeItem(t)};class Qy{constructor(){this.promise=new Qy.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}Qy.promiseConstructor=Promise;function Kb(e){const t=e.split(".");if(t.length!==3)throw new F0("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!JK.test(t[n]))throw new F0("JWT not in base64url format");return{header:JSON.parse(i3(t[0])),payload:JSON.parse(i3(t[1])),signature:Jd(t[2]),raw:{header:t[0],payload:t[1]}}}async function uG(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function dG(e,t){return new Promise((n,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const a=await e(s);if(!t(s,null,a)){n(a);return}}catch(a){if(!t(s,a)){i(a);return}}})()})}function fG(e){return("0"+e.toString(16)).substr(-2)}function hG(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let i="";for(let s=0;s<56;s++)i+=r.charAt(Math.floor(Math.random()*n));return i}return crypto.getRandomValues(t),Array.from(t,fG).join("")}async function pG(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),i=new Uint8Array(n);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function mG(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code 
412challenge method will default to use plain instead of sha256."),e;const r=await pG(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function cd(e,t,r=!1){const n=hG();let i=n;r&&(i+="/PASSWORD_RECOVERY"),await Sd(e,`${t}-code-verifier`,i);const s=await mG(n);return[s,n===s?"plain":"s256"]}const gG=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function vG(e){const t=e.headers.get(ux);if(!t||!t.match(gG))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function yG(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function bG(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const wG=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ud(e){if(!wG.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Gb(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function xG(e,t){return new Proxy(e,{get:(r,n,i)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const s=n.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,i)}return!t.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(r,n,i)}})}function s3(e){return JSON.parse(JSON.stringify(e))}const qc=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),_G=[502,503,504];async function a3(e){var t;if(!cG(e))throw new I0(qc(e),0);if(_G.includes(e.status))throw new I0(qc(e),e.status);let r;try{r=await e.json()}catch(s){throw new Sl(qc(s),s)}let n;const i=vG(e);if(i&&i.getTime()>=pR["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new fx(qc(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new Fi}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((s,a)=>s&&typeof a=="string",!0))throw new fx(qc(r),e.status,r.weak_password.reasons);throw new mR(qc(r),e.status||500,n)}const kG=(e,t,r,n)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(n),Object.assign(Object.assign({},i),r))};async function Et(e,t,r,n){var i;const s=Object.assign({},n==null?void 0:n.headers);
412s[ux]||(s[ux]=pR["2024-01-01"].name),n!=null&&n.jwt&&(s.Authorization=`Bearer ${n.jwt}`);const a=(i=n==null?void 0:n.query)!==null&&i!==void 0?i:{};n!=null&&n.redirectTo&&(a.redirect_to=n.redirectTo);const o=Object.keys(a).length?"?"+new URLSearchParams(a).toString():"",l=await SG(e,t,r+o,{headers:s,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(l):{data:Object.assign({},l),error:null}}async function SG(e,t,r,n,i,s){const a=kG(t,n,i,s);let o;try{o=await e(r,Object.assign({},a))}catch(l){throw console.error(l),new I0(qc(l),0)}if(o.ok||await a3(o),n!=null&&n.noResolveJson)return o;try{return await o.json()}catch(l){await a3(l)}}function Zs(e){var t;let r=null;CG(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=aG(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function o3(e){const t=Zs(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Nl(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function NG(e){return{data:e,error:null}}function EG(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:s}=e,a=hc(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),o={action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:s},l=Object.assign({},a);return{data:{properties:o,user:l},error:null}}function l3(e){return e}function CG(e){return e.access_token&&e.refresh_token&&e.expires_in}const Iv=["global","local","others"];let B_=class{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=xR(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,r=Iv[0]){if(Iv.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Iv.join(", ")}`);try{return await Et(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(yt(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await Et(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Nl})}catch(n){if(yt(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=hc(t,["options"]),i=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(i.new_email=n==null?void 0:n.newEmail,delete i.newEmail),await Et(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:EG,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(yt(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await Et(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Nl})}catch(r){if(yt(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,i,s,a,o,l;try{const c={nextPage:null,lastPage:0,total:0},d=await Et(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:l3});if(d.error)throw d.error;const h=await d.json(),p=(a=d.headers.get("x-total-count"))!==null&&a!==void 0?a:0,f=(l=(o=d.headers.get("link"))===null||o===void 0?void 0:o.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(y=>{const v=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(y.split(";")[1].split("=")[1]);c[`${b}Page`]=v}),c.total=parseInt(p)),{data:Object.assign(Object.assign({},h),c),error:null}}catch(c){if(yt(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){ud(t);try{return await Et(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Nl})}catch(r){if(yt(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){ud(t);try{return await Et(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:Nl})}catch(n){if(yt(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){ud(t);
412try{return await Et(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:Nl})}catch(n){if(yt(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){ud(t.userId);try{const{data:r,error:n}=await Et(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:r,error:n}}catch(r){if(yt(r))return{data:null,error:r};throw r}}async _deleteFactor(t){ud(t.userId),ud(t.id);try{return{data:await Et(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(yt(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,i,s,a,o,l;try{const c={nextPage:null,lastPage:0,total:0},d=await Et(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:l3});if(d.error)throw d.error;const h=await d.json(),p=(a=d.headers.get("x-total-count"))!==null&&a!==void 0?a:0,f=(l=(o=d.headers.get("link"))===null||o===void 0?void 0:o.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(y=>{const v=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(y.split(";")[1].split("=")[1]);c[`${b}Page`]=v}),c.total=parseInt(p)),{data:Object.assign(Object.assign({},h),c),error:null}}catch(c){if(yt(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await Et(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(yt(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await Et(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(yt(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await Et(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(yt(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await Et(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(yt(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await Et(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(yt(r))return{data:null,error:r};throw r}}};function c3(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const Uc={debug:!!(globalThis&&wR()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class q_ extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}let _R=class extends q_{};class jG extends q_{}async function kR(e,t,r){Uc.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),Uc.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async i=>{if(i){Uc.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await r()}finally{Uc.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw Uc.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new _R(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Uc.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null,"  "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}const u3={};async function AG(e,t,r){var n;const i=(n=u3[e])!==null&&n!==void 0?n:Promise.resolve(),s=Promise.race([i.catch(()=>null),t>=0?new Promise((a,o)=>{setTimeout(()=>{o(new jG(`Acquring process lock with name "${e}" timed out`))},t)}):null].filter(a=>
412a)).catch(a=>{if(a&&a.isAcquireTimeout)throw a;return null}).then(async()=>await r());return u3[e]=s.catch(async a=>{if(a&&a.isAcquireTimeout)return await i,null;throw a}),await s}function TG(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function SR(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function PG(e){return parseInt(e,16)}function OG(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function RG(e){var t;const{chainId:r,domain:n,expirationTime:i,issuedAt:s=new Date,nonce:a,notBefore:o,requestId:l,resources:c,scheme:d,uri:h,version:p}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(a&&a.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${a}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(p!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${p}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
413`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=SR(e.address),y=d?`${d}://${n}`:n,v=e.statement?`${e.statement}
414`:"",b=`${y}
414 wants you to sign in with your Ethereum account:
415${f}
416
417${v}`;let w=`URI: ${h}
418Version: ${p}
419Chain ID: ${r}${a?`
420Nonce: ${a}`:""}
421Issued At: ${s.toISOString()}`;if(i&&(w+=`
422Expiration Time: ${i.toISOString()}`),o&&(w+=`
423Not Before: ${o.toISOString()}`),l&&(w+=`
424Request ID: ${l}`),c){let x=`
425Resources:`;for(const S of c){if(!S||typeof S!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${S}`);x+=`
426- ${S}`}w+=x}return`${b}
427${w}`}class Nn extends Error{constructor({message:t,code:r,cause:n,name:i}){var s;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(s=i??(n instanceof Error?n.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=r}}class M0 extends Nn{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function LG({error:e,options:t}){var r,n,i;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Nn({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=s.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Nn({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=s.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Nn({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=s.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new Nn({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Nn({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Nn({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return s.pubKeyCredParams.filter(o=>o.type==="public-key").length===0?new Nn({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Nn({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const a=window.location.hostname;if(NR(a)){if(s.rp.id!==a)return new Nn({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Nn({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new Nn({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Nn({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Nn({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function IG({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Nn({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Nn({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(NR(n)){if(r.rpId!==n)return new Nn({message:`The RP ID "${r.rpId}
427" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Nn({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Nn({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Nn({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class FG{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const DG=new FG;function MG(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,i=hc(e,["challenge","user","excludeCredentials"]),s=Jd(t).buffer,a=Object.assign(Object.assign({},r),{id:Jd(r.id).buffer}),o=Object.assign(Object.assign({},i),{challenge:s,user:a});if(n&&n.length>0){o.excludeCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const c=n[l];o.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:Jd(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return o}function $G(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=hc(e,["challenge","allowCredentials"]),i=Jd(t).buffer,s=Object.assign(Object.assign({},n),{challenge:i});if(r&&r.length>0){s.allowCredentials=new Array(r.length);for(let a=0;a<r.length;a++){const o=r[a];s.allowCredentials[a]=Object.assign(Object.assign({},o),{id:Jd(o.id).buffer,type:o.type||"public-key",transports:o.transports})}}return s}function BG(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:Qc(new Uint8Array(e.response.attestationObject)),clientDataJSON:Qc(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function qG(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Qc(new Uint8Array(i.authenticatorData)),clientDataJSON:Qc(new Uint8Array(i.clientDataJSON)),signature:Qc(new Uint8Array(i.signature)),userHandle:i.userHandle?Qc(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function NR(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function d3(){var e,t;return!!(Zn()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function UG(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new M0("Browser returned unexpected credential type",t)}:{data:null,error:new M0("Empty credential response",t)}}catch(t){return{data:null,error:LG({error:t,options:e})}}}async function zG(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new M0("Browser returned unexpected credential type",t)}:{data:null,error:new M0("Empty credential response",t)}}
427catch(t){return{data:null,error:IG({error:t,options:e})}}}const HG={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},VG={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function $0(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),r=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),n={};for(const i of e)if(i)for(const s in i){const a=i[s];if(a!==void 0)if(Array.isArray(a))n[s]=a;else if(r(a))n[s]=a;else if(t(a)){const o=n[s];t(o)?n[s]=$0(o,a):n[s]=$0(a)}else n[s]=a}return n}function WG(e,t){return $0(HG,e,t||{})}function KG(e,t){return $0(VG,e,t||{})}class GG{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:i},s){try{const{data:a,error:o}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!a)return{data:null,error:o};const l=i??DG.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:c}=a.webauthn.credential_options.publicKey;c.name||(c.name=`${c.id}:${n}`),c.displayName||(c.displayName=c.name)}switch(a.webauthn.type){case"create":{const c=WG(a.webauthn.credential_options.publicKey,s==null?void 0:s.create),{data:d,error:h}=await UG({publicKey:c,signal:l});return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const c=KG(a.webauthn.credential_options.publicKey,s==null?void 0:s.request),{data:d,error:h}=await zG(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:c,signal:l}));return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(a){return yt(a)?{data:null,error:a}:{data:null,error:new Sl("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!r)return{data:null,error:new Nf("rpId is required for WebAuthn authentication")};try{if(!d3())return{data:null,error:new Sl("Browser does not support WebAuthn",null)};const{data:a,error:o}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:i},{request:s});if(!a)return{data:null,error:o};const{webauthn:l}=a;return this._verify({factorId:t,challengeId:a.challengeId,webauthn:{type:l.type,rpId:r,rpOrigins:n,credential_response:l.credential_response}})}catch(a){return yt(a)?{data:null,error:a}:{data:null,error:new Sl("Unexpected error in authenticate",a)}}}async _register({friendlyName:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!r)return{data:null,error:new Nf("rpId is required for WebAuthn registration")};try{if(!d3())return{data:null,error:new Sl("Browser does not support WebAuthn",null)};const{data:a,error:o}=await this._enroll({friendlyName:t});if(!a)return await this.client.mfa.listFactors().then(d=>{var h;return(h=d.data)===null||h===void 0?void 0:h.all.find(p=>p.factor_type==="webauthn"&&p.friendly_name===t&&p.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:o};const{data:l,error:c}=await this._challenge({factorId:a.id,friendlyName:a.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:i},{create:s});return l?this._verify({factorId:a.id,challengeId:l.challengeId,webauthn:{rpId:r,rpOrigins:n,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(a){return yt(a)?{data:null,error:a}:{data:null,error:new Sl("Unexpected error in register",a)}}}}TG();const YG={url:YK,storageKey:ZK,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:XK,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1};async function f3(e,t,r){return await r()}const dd={};let U_=class hx{get jwks(){var t,r;return(r=(t=dd[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){dd[this.storageKey]=Object.assign(Object.assign({},dd[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=dd[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){dd[this.storageKey]=Object.assign(Object.assign({},dd[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const s=Object.assign(Object.assign({},YG),t);if(this.storageKey=s.storageKey,this.instanceID=(r=hx.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,hx.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&Zn()){const a=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(a),this.logDebugMessages&&console.trace(a)}if(this.persistSession=s.persistSession,this.autoRefreshToken=s.autoRefreshToken,this.admin=new B_({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=xR(s.fetch),this.lock=s.lock||f3,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,this.throwOnError=s.throwOnError,s.lock?this.lock=s.lock:Zn()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=kR:this.lock=f3,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new GG(this)}
427,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:wR()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=c3(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=c3(this.memoryStorage)),Zn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a),await this._notifyAllSubscribers(a.data.event,a.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${hR}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let r={},n="none";if(Zn()&&(r=lG(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),Zn()&&this.detectSessionInUrl&&n!=="none"){const{data:i,error:s}=await this._getSessionFromURL(r,n);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),yR(s)){const l=(t=s.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:s}}return await this._removeSession(),{error:s}}const{session:a,redirectType:o}=i;return this._debug("#_initialize()","detected session in URL",a,"redirect type",o),await this._saveSession(a),setTimeout(async()=>{o==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",a):await this._notifyAllSubscribers("SIGNED_IN",a)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return yt(r)?this._returnResult({error:r}):this._returnResult({error:new Sl("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,i;try{const s=await Et(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:Zs}),{data:a,error:o}=s;if(o||!a)return this._returnResult({data:{user:null,session:null},error:o});const l=a.session,c=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(yt(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(t){var r,n,i;try{let s;if("email"in t){const{email:d,password:h,options:p}=t;let f=null,y=null;this.flowType==="pkce"&&([f,y]=await cd(this.storage,this.storageKey)),s=await Et(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:p==null?void 0:p.emailRedirectTo,body:{email:d,password:h,data:(r=p==null?void 0:p.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken},code_challenge:f,code_challenge_method:y},xform:Zs})}else if("phone"in t){const{phone:d,password:h,options:p}=t;s=await Et(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(n=p==null?void 0:p.data)!==null&&n!==void 0?n:{},channel:(i=p==null?void 0:p.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken}},xform:Zs})}else throw new Yh("You must provide either an email or phone number and a password");const{data:a,error:o}=s;
427if(o||!a)return await Yn(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:o});const l=a.session,c=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(await Yn(this.storage,`${this.storageKey}-code-verifier`),yt(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(t){try{let r;if("email"in t){const{email:s,password:a,options:o}=t;r=await Et(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:a,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:o3})}else if("phone"in t){const{phone:s,password:a,options:o}=t;r=await Et(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:a,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:o3})}else throw new Yh("You must provide either an email or phone number and a password");const{data:n,error:i}=r;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!n||!n.session||!n.user){const s=new Bc;return this._returnResult({data:{user:null,session:null},error:s})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:i})}catch(r){if(yt(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,n,i,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,i,s,a,o,l,c,d,h,p;let f,y;if("message"in t)f=t.message,y=t.signature;else{const{chain:v,wallet:b,statement:w,options:x}=t;let S;if(Zn())if(typeof b=="object")S=b;else{const P=window;if("ethereum"in P&&typeof P.ethereum=="object"&&"request"in P.ethereum&&typeof P.ethereum.request=="function")S=P.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof b!="object"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=b}const E=new URL((r=x==null?void 0:x.url)!==null&&r!==void 0?r:window.location.href),T=await S.request({method:"eth_requestAccounts"}).then(P=>P).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!T||T.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const W=SR(T[0]);let z=(n=x==null?void 0:x.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!z){const P=await S.request({method:"eth_chainId"});z=PG(P)}const B={domain:E.host,address:W,statement:w,uri:E.href,version:"1",chainId:z,nonce:(i=x==null?void 0:x.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(a=(s=x==null?void 0:x.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&a!==void 0?a:new Date,expirationTime:(o=x==null?void 0:x.signInWithEthereum)===null||o===void 0?void 0:o.expirationTime,notBefore:(l=x==null?void 0:x.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=x==null?void 0:x.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(d=x==null?void 0:x.signInWithEthereum)===null||d===void 0?void 0:d.resources};f=RG(B),y=await S.request({method:"personal_sign",params:[OG(f),W]})}try{const{data:v,error:b}=await Et(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:y}
427,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Zs});if(b)throw b;if(!v||!v.session||!v.user){const w=new Bc;return this._returnResult({data:{user:null,session:null},error:w})}return v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),this._returnResult({data:Object.assign({},v),error:b})}catch(v){if(yt(v))return this._returnResult({data:{user:null,session:null},error:v});throw v}}async signInWithSolana(t){var r,n,i,s,a,o,l,c,d,h,p,f;let y,v;if("message"in t)y=t.message,v=t.signature;else{const{chain:b,wallet:w,statement:x,options:S}=t;let E;if(Zn())if(typeof w=="object")E=w;else{const W=window;if("solana"in W&&typeof W.solana=="object"&&("signIn"in W.solana&&typeof W.solana.signIn=="function"||"signMessage"in W.solana&&typeof W.solana.signMessage=="function"))E=W.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof w!="object"||!(S!=null&&S.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");E=w}const T=new URL((r=S==null?void 0:S.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in E&&E.signIn){const W=await E.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},S==null?void 0:S.signInWithSolana),{version:"1",domain:T.host,uri:T.href}),x?{statement:x}:null));let z;if(Array.isArray(W)&&W[0]&&typeof W[0]=="object")z=W[0];else if(W&&typeof W=="object"&&"signedMessage"in W&&"signature"in W)z=W;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in z&&"signature"in z&&(typeof z.signedMessage=="string"||z.signedMessage instanceof Uint8Array)&&z.signature instanceof Uint8Array)y=typeof z.signedMessage=="string"?z.signedMessage:new TextDecoder().decode(z.signedMessage),v=z.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in E)||typeof E.signMessage!="function"||!("publicKey"in E)||typeof E!="object"||!E.publicKey||!("toBase58"in E.publicKey)||typeof E.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${T.host} wants you to sign in with your Solana account:`,E.publicKey.toBase58(),...x?["",x,""]:[""],"Version: 1",`URI: ${T.href}`,`Issued At: ${(i=(n=S==null?void 0:S.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=S==null?void 0:S.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${S.signInWithSolana.notBefore}`]:[],...!((a=S==null?void 0:S.signInWithSolana)===null||a===void 0)&&a.expirationTime?[`Expiration Time: ${S.signInWithSolana.expirationTime}`]:[],...!((o=S==null?void 0:S.signInWithSolana)===null||o===void 0)&&o.chainId?[`Chain ID: ${S.signInWithSolana.chainId}`]:[],...!((l=S==null?void 0:S.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${S.signInWithSolana.nonce}`]:[],...!((c=S==null?void 0:S.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${S.signInWithSolana.requestId}`]:[],...!((h=(d=S==null?void 0:S.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...S.signInWithSolana.resources.map(z=>`- ${z}`)]:[]].join(`
428`);const W=await E.signMessage(new TextEncoder().encode(y),"utf8");if(!W||!(W instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=W}}try{const{data:b,error:w}=await Et(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:Qc(v)},!((p=t.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Zs});if(w)throw w;if(!b||!b.session||!b.user){const x=new Bc;return this._returnResult({data:{user:null,session:null},error:x})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:w})}catch(b){if(yt(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(t){const r=await Fc(this.storage,`${this.storageKey}-code-verifier`),[n,i]=(r??"").split("/");try{const{data:s,error:a}=await Et(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:Zs});if(await Yn(this.storage,`${this.storageKey}-code-verifier`),a)throw a;if(!s||!s.session||!s.user){const o=new Bc;return this._returnResult({data:{user:null,session:null,redirectType:null},error:o})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:a})}catch(s){if(await Yn(this.storage,`${this.storageKey}-code-verifier`),yt(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(t){try{const{options:r,provider:n,token:i,access_token:s,nonce:a}=t,o=await Et(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:i,access_token:s,nonce:a,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Zs}),{data:l,error:c}=o;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const d=new Bc;return this._returnResult({data:{user:null,session:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(r){if(yt(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,i,s,a;try{if("email"in t){const{email:o,options:l}=t;
428let c=null,d=null;this.flowType==="pkce"&&([c,d]=await cd(this.storage,this.storageKey));const{error:h}=await Et(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:o,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:o,options:l}=t,{data:c,error:d}=await Et(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:o,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(a=l==null?void 0:l.channel)!==null&&a!==void 0?a:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:d})}throw new Yh("You must provide either an email or phone number.")}catch(o){if(await Yn(this.storage,`${this.storageKey}-code-verifier`),yt(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async verifyOtp(t){var r,n;try{let i,s;"options"in t&&(i=(r=t.options)===null||r===void 0?void 0:r.redirectTo,s=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:a,error:o}=await Et(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:Zs});if(o)throw o;if(!a)throw new Error("An error occurred on token verification.");const l=a.session,c=a.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(yt(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var r,n,i,s,a;try{let o=null,l=null;this.flowType==="pkce"&&([o,l]=await cd(this.storage,this.storageKey));const c=await Et(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:o,code_challenge_method:l}),headers:this.headers,xform:NG});return!((s=c.data)===null||s===void 0)&&s.url&&Zn()&&!(!((a=t.options)===null||a===void 0)&&a.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(o){if(await Yn(this.storage,`${this.storageKey}-code-verifier`),yt(o))return this._returnResult({data:null,error:o});throw o}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new Fi;const{error:i}=await Et(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(yt(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:i,options:s}=t,{error:a}=await Et(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:a})}else if("phone"in t){const{phone:n,type:i,options:s}=t,{data:a,error:o}=await Et(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:a==null?void 0:a.message_id},error:o})}throw new Yh("You must provide either an email or phone number and a type")}catch(r){if(yt(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await Fc(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
428id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<Wb:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const a=await Fc(this.userStorage,this.storageKey+"-user");a!=null&&a.user?t.user=a.user:t.user=Gb()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const a={value:this.suppressGetSessionWarning};t.user=xG(t.user,a),a.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const r=await this._acquireLock(-1,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await Et(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Nl}):await this._useSession(async r=>{var n,i,s;const{data:a,error:o}=r;if(o)throw o;return!(!((n=a.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Fi}:await Et(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=a.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:Nl})})}catch(r){if(yt(r))return vR(r)&&(await this._removeSession(),await Yn(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:i,error:s}=n;if(s)throw s;if(!i.session)throw new Fi;const a=i.session;let o=null,l=null;this.flowType==="pkce"&&t.email!=null&&([o,l]=await cd(this.storage,this.storageKey));const{data:c,error:d}=await Et(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:o,code_challenge_method:l}),jwt:a.access_token,xform:Nl});if(d)throw d;return a.user=c.user,await this._saveSession(a),await this._notifyAllSubscribers("USER_UPDATED",a),this._returnResult({data:{user:a.user},error:null})})}catch(n){if(await Yn(this.storage,`${this.storageKey}-code-verifier`),yt(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Fi;const r=Date.now()/1e3;let n=r,i=!0,s=null;const{payload:a}=Kb(t.access_token);if(a.exp&&(n=a.exp,i=n<=r),i){const{data:o,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!o)return{data:{user:null,session:null},error:null};s=o}else{const{data:o,error:l}=await this._getUser(t.access_token);if(l)throw l;s={access_token:t.access_token,refresh_token:t.refresh_token,user:o.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(r){if(yt(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:a,error:o}=r;if(o)throw o;t=(n=a.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new Fi;const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(yt(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}
428async _getSessionFromURL(t,r){try{if(!Zn())throw new Zh("No browser detected.");if(t.error||t.error_description||t.error_code)throw new Zh(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new dx("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Zh("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new dx("No code detected.");const{data:x,error:S}=await this._exchangeCodeForSession(t.code);if(S)throw S;const E=new URL(window.location.href);return E.searchParams.delete("code"),window.history.replaceState(window.history.state,"",E.toString()),{data:{session:x.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:i,access_token:s,refresh_token:a,expires_in:o,expires_at:l,token_type:c}=t;if(!s||!o||!a||!c)throw new Zh("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(o);let p=d+h;l&&(p=parseInt(l));const f=p-d;f*1e3<=kd&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${h}s`);const y=p-h;d-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,p,d):d-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,p,d);const{data:v,error:b}=await this._getUser(s);if(b)throw b;const w={provider_token:n,provider_refresh_token:i,access_token:s,expires_in:h,expires_at:p,refresh_token:a,token_type:c,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:w,redirectType:t.type},error:null})}catch(n){if(yt(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await Fc(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:i,error:s}=r;if(s)return this._returnResult({error:s});const a=(n=i.session)===null||n===void 0?void 0:n.access_token;if(a){const{error:o}=await this.admin.signOut(a,t);if(o&&!(gR(o)&&(o.status===404||o.status===401||o.status===403)))return this._returnResult({error:o})}return t!=="others"&&(await this._removeSession(),await Yn(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=oG(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,i;try{const{data:{session:s},error:a}=r;if(a)throw a;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,r={}){let n=null,i=null;this.flowType==="pkce"&&([n,i]=await cd(this.storage,this.storageKey,!0));try{return await Et(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:i,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(s){if(await Yn(this.storage,`${this.storageKey}-code-verifier`),yt(s))return this._returnResult({data:null,error:s});throw s}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(yt(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:i}=await this._useSession(async s=>{var a,o,l,c,d;const{data:h,error:p}=s;if(p)throw p;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(a=t.options)===null||a===void 0?void 0:a.redirectTo,scopes:(o=t.options)===null||o===void 0?void 0:o.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await Et(this.fetch,"GET",f,{headers:this.headers,jwt:(d=(c=h.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(i)throw i;return Zn()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:t.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(yt(n))return this._returnResult({data:{provider:t.provider,url:null},error:n});throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:i,data:{session:s}}=r;if(i)throw i;const{options:a,provider:o,token:l,access_token:c,nonce:d}=t,h=await Et(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=s==null?void 0:s.access_token)!==null&&n!==void 0?n:void 0,body:{provider:o,id_token:l,access_token:c,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Zs}),{data:p,error:f}=h;return f?this._returnResult({data:{user:null,session:null},error:f}):!p||!p.session||!p.user?this._returnResult({data:{user:null,session:null},error:new Bc}):(p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("USER_UPDATED",p.session)),this._returnResult({data:p,error:f}))}catch(i){if(await Yn(this.storage,`${this.storageKey}-code-verifier`),yt(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,i;const{data:s,error:a}=r;if(a)throw a;
428return await Et(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(n=s.session)===null||n===void 0?void 0:n.access_token)!==null&&i!==void 0?i:void 0})})}catch(r){if(yt(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await dG(async i=>(i>0&&await uG(200*Math.pow(2,i-1)),this._debug(r,"refreshing attempt",i),await Et(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Zs})),(i,s)=>{const a=200*Math.pow(2,i);return s&&Lv(s)&&Date.now()+a-n<kd})}catch(n){if(this._debug(r,"error",n),yt(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),Zn()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const i=await Fc(this.storage,this.storageKey);if(i&&this.userStorage){let a=await Fc(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!a&&(a={user:i.user},await Sd(this.userStorage,this.storageKey+"-user",a)),i.user=(t=a==null?void 0:a.user)!==null&&t!==void 0?t:Gb()}else if(i&&!i.user&&!i.user){const a=await Fc(this.storage,this.storageKey+"-user");a&&(a!=null&&a.user)?(i.user=a.user,await Yn(this.storage,this.storageKey+"-user"),await Sd(this.storage,this.storageKey,i)):i.user=Gb()}if(this._debug(n,"session from storage",i),!this._isValidSession(i)){this._debug(n,"session is not valid"),i!==null&&await this._removeSession();return}const s=((r=i.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<Wb;if(this._debug(n,`session has${s?"":" not"} expired with margin of ${Wb}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:a}=await this._callRefreshToken(i.refresh_token);a&&(console.error(a),Lv(a)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",a),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:a,error:o}=await this._getUser(i.access_token);!o&&(a!=null&&a.user)?(i.user=a.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(a){console.error("Error getting user data:",a),this._debug(n,"error getting user data, skipping SIGNED_IN notification",a)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(n,"error",i),console.error(i);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new Fi;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new Qy;const{data:s,error:a}=await this._refreshAccessToken(t);if(a)throw a;if(!s.session)throw new Fi;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const o={data:s.session,error:null};return this.refreshingDeferred.resolve(o),o}catch(s){if(this._debug(i,"error",s),yt(s)){const a={data:null,error:s};return Lv(s)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(a),a}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,r,n=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const s=[],a=Array.from(this.stateChangeEmitters.values()).map(async o=>{try{await o.callback(t,r)}catch(l){s.push(l)}});if(await Promise.all(a),s.length>0){for(let o=0;o<s.length;o+=1)console.error(s[o]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Yn(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Sd(this.userStorage,this.storageKey+"-user",{user:r.user});const i=Object.assign({},r);delete i.user;const s=s3(i);await Sd(this.storage,this.storageKey,s)}else{const i=s3(r);await Sd(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Yn(this.storage,this.storageKey),await Yn(this.storage,this.storageKey+"-code-verifier"),await Yn(this.storage,this.storageKey+"-user"),this.userStorage&&await Yn(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Zn()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
428catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),kd);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((n.expires_at*1e3-t)/kd);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${kd}ms, refresh threshold is ${cx} ticks`),i<=cx&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof q_)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Zn()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const i=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&i.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&i.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[s,a]=await cd(this.storage,this.storageKey),o=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(a)}`});i.push(o.toString())}if(n!=null&&n.queryParams){const s=new URLSearchParams(n.queryParams);i.push(s.toString())}return n!=null&&n.skipBrowserRedirect&&i.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;return s?this._returnResult({data:null,error:s}):await Et(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(yt(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,i;const{data:s,error:a}=r;if(a)return this._returnResult({data:null,error:a});const o=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:c}=await Et(this.fetch,"POST",`${this.url}/factors`,{body:o,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="totp"&&(!((i=l==null?void 0:l.totp)===null||i===void 0)&&i.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(r){if(yt(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;if(s)return this._returnResult({data:null,error:s});const a=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?BG(t.webauthn.credential_response):qG(t.webauthn.credential_response)})}:{code:t.code}),{data:o,error:l}=await Et(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:a,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),this._returnResult({data:o,error:l}))})}catch(r){if(yt(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;if(s)return this._returnResult({data:null,error:s});const a=await Et(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});if(a.error)return a;const{data:o}=a;if(o.type!=="webauthn")return{data:o,error:null};switch(o.webauthn.type){case"create":return{data:Object.assign(Object.assign({},o),{webauthn:Object.assign(Object.assign({},o.webauthn),{credential_options:Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:MG(o.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},o),{webauthn:Object.assign(Object.assign({},o.webauthn),{credential_options:Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:$G(o.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(yt(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const i={all:[],phone:[],totp:[],webauthn:[]};for(const s of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])i.all.push(s),s.status==="verified"&&i[s.factor_type].push(s);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(){var t,r;const{data:{session:n},error:i}
428=await this.getSession();if(i)return this._returnResult({data:null,error:i});if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:s}=Kb(n.access_token);let a=null;s.aal&&(a=s.aal);let o=a;((r=(t=n.user.factors)===null||t===void 0?void 0:t.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(o="aal2");const c=s.amr||[];return{data:{currentLevel:a,nextLevel:o,currentAuthenticationMethods:c},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;return i?this._returnResult({data:null,error:i}):n?await Et(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Fi})})}catch(r){if(yt(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:i},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new Fi});const a=await Et(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:o=>({data:o,error:null})});return a.data&&a.data.redirect_url&&Zn()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(n){if(yt(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:i},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new Fi});const a=await Et(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:o=>({data:o,error:null})});return a.data&&a.data.redirect_url&&Zn()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(n){if(yt(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await Et(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Fi})})}catch(t){if(yt(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;return i?this._returnResult({data:null,error:i}):n?(await Et(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Fi})})}catch(r){if(yt(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(o=>o.kid===t);if(n)return n;const i=Date.now();if(n=this.jwks.keys.find(o=>o.kid===t),n&&this.jwks_cached_at+QK>i)return n;const{data:s,error:a}=await Et(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,n=s.keys.find(o=>o.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:f,error:y}
428=await this.getSession();if(y||!f.session)return this._returnResult({data:null,error:y});n=f.session.access_token}const{header:i,payload:s,signature:a,raw:{header:o,payload:l}}=Kb(n);r!=null&&r.allowExpired||yG(s.exp);const c=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!c){const{error:f}=await this.getUser(n);if(f)throw f;return{data:{claims:s,header:i,signature:a},error:null}}const d=bG(i.alg),h=await crypto.subtle.importKey("jwk",c,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,a,sG(`${o}.${l}`)))throw new F0("Invalid JWT signature");return{data:{claims:s,header:i,signature:a},error:null}}catch(n){if(yt(n))return this._returnResult({data:null,error:n});throw n}}};U_.nextInstanceID={};const ZG=B_,XG=U_,JG=Object.freeze(Object.defineProperty({__proto__:null,AuthAdminApi:ZG,AuthApiError:mR,AuthClient:XG,AuthError:Nf,AuthImplicitGrantRedirectError:Zh,AuthInvalidCredentialsError:Yh,AuthInvalidJwtError:F0,AuthInvalidToken
428ResponseError:Bc,AuthPKCEGrantCodeExchangeError:dx,AuthRetryableFetchError:I0,AuthSessionMissingError:Fi,AuthUnknownError:Sl,AuthWeakPasswordError:fx,CustomAuthError:Wo,GoTrueAdminApi:B_,GoTrueClient:U_,NavigatorLockAcquireTimeoutError:_R,SIGN_OUT_SCOPES:Iv,isAuthApiError:gR,isAuthError:yt,isAuthImplicitGrantRedirectError:yR,isAuthRetryableFetchError:Lv,isAuthSessionMissingError:vR,isAuthWeakPasswordError:eG,lockInternals:Uc,navigatorLock:kR,processLock:AG},Symbol.toStringTag,{value:"Module"})),ER=dm(JG);Object.defineProperty(Jy,"__esModule",{value:!0});Jy.SupabaseAuthClient=void 0;const QG=ER;class eY extends QG.AuthClient{constructor(t){super(t)}}Jy.SupabaseAuthClient=eY;Object.defineProperty(O0,"__esModule",{value:!0});const tY=TO,rY=hi,nY=ZO,iY=HK,nv=uR,sY=dR,h3=pc,aY=Jy;let oY=class{constructor(t,r,n){var i,s,a;this.supabaseUrl=t,this.supabaseKey=r;const o=(0,h3.validateSupabaseUrl)(t);if(!r)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",o),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",o),this.storageUrl=new URL("storage/v1",o),this.functionsUrl=new URL("functions/v1",o);const l=`sb-${o.hostname.split(".")[0]}-auth-token`,c={db:nv.DEFAULT_DB_OPTIONS,realtime:nv.DEFAULT_REALTIME_OPTIONS,auth:Object.assign(Object.assign({},nv.DEFAULT_AUTH_OPTIONS),{storageKey:l}),global:nv.DEFAULT_GLOBAL_OPTIONS},d=(0,h3.applySettingDefaults)(n??{},c);this.storageKey=(i=d.auth.storageKey)!==null&&i!==void 0?i:"",this.headers=(s=d.global.headers)!==null&&s!==void 0?s:{},d.accessToken?(this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(h,p)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(p)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((a=d.auth)!==null&&a!==void 0?a:{},this.headers,d.global.fetch),this.fetch=(0,sY.fetchWithAuth)(r,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.accessToken&&this.accessToken().then(h=>this.realtime.setAuth(h)).catch(h=>console.warn("Failed to set initial Realtime auth token:",h)),this.rest=new rY.PostgrestClient(new URL("rest/v1",o).href,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),this.storage=new iY.StorageClient(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),d.accessToken||this._listenForAuthEvents()}get functions(){return new tY.FunctionsClient(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,r={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,r,n)}channel(t,r={config:{}}){return this.realtime.channel(t,r)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t,r;if(this.accessToken)return await this.accessToken();const{data:n}=await this.auth.getSession();return(r=(t=n.session)===null||t===void 0?void 0:t.access_token)!==null&&r!==void 0?r:this.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:i,userStorage:s,storageKey:a,flowType:o,lock:l,debug:c,throwOnError:d},h,p){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new aY.SupabaseAuthClient({url:this.authUrl.href,headers:Object.assign(Object.assign({},f),h),storageKey:a,autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:i,userStorage:s,flowType:o,lock:l,debug:c,throwOnError:d,fetch:p,hasCustomAuthorizationHeader:Object.keys(this.headers).some(y=>y.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new nY.RealtimeClient(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((r,n)=>{this._handleTokenChanged(r,"CLIENT",n==null?void 0:n.access_token)})}_handleTokenChanged(t,r,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};O0.default=oY;(function(e){var t=rd&&rd.__createBinding||(Object.create?function(d,h,p,f){f===void 0&&(f=p);var y=Object.getOwnPropertyDescriptor(h,p);(!y||("get"in y?!h.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return h[p]}}),Object.defineProperty(d,f,y)}
428:function(d,h,p,f){f===void 0&&(f=p),d[f]=h[p]}),r=rd&&rd.__exportStar||function(d,h){for(var p in d)p!=="default"&&!Object.prototype.hasOwnProperty.call(h,p)&&t(h,d,p)},n=rd&&rd.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.createClient=e.SupabaseClient=e.FunctionRegion=e.FunctionsError=e.FunctionsRelayError=e.FunctionsFetchError=e.FunctionsHttpError=e.PostgrestError=void 0;const i=n(O0);r(ER,e);var s=hi;Object.defineProperty(e,"PostgrestError",{enumerable:!0,get:function(){return s.PostgrestError}});var a=TO;Object.defineProperty(e,"FunctionsHttpError",{enumerable:!0,get:function(){return a.FunctionsHttpError}}),Object.defineProperty(e,"FunctionsFetchError",{enumerable:!0,get:function(){return a.FunctionsFetchError}}),Object.defineProperty(e,"FunctionsRelayError",{enumerable:!0,get:function(){return a.FunctionsRelayError}}),Object.defineProperty(e,"FunctionsError",{enumerable:!0,get:function(){return a.FunctionsError}}),Object.defineProperty(e,"FunctionRegion",{enumerable:!0,get:function(){return a.FunctionRegion}}),r(ZO,e);var o=O0;Object.defineProperty(e,"SupabaseClient",{enumerable:!0,get:function(){return n(o).default}});const l=(d,h,p)=>new i.default(d,h,p);e.createClient=l;function c(){if(typeof window<"u"||typeof process>"u")return!1;const d=process.version;if(d==null)return!1;const h=d.match(/^v(\d+)\./);return h?parseInt(h[1],10)<=18:!1}c()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217")})(L_);const CR=Ou(L_),lY=zC({__proto__:null,default:CR},[L_]),{PostgrestError:Goe,FunctionsHttpError:Yoe,FunctionsFetchError:Zoe,FunctionsRelayError:Xoe,FunctionsError:Joe,FunctionRegion:Qoe,SupabaseClient:ele,createClient:cY,GoTrueAdminApi:tle,GoTrueClient:rle,AuthAdminApi:nle,AuthClient:ile,navigatorLock:sle,NavigatorLockAcquireTimeoutError:ale,lockInternals:ole,processLock:lle,SIGN_OUT_SCOPES:cle,AuthError:ule,AuthApiError:dle,AuthUnknownError:fle,CustomAuthError:hle,AuthSessionMissingError:ple,AuthInvalidToken
vendor: 7,013 bytes, lines 428-432
428ResponseError:mle,AuthInvalidCredentialsError:gle,AuthImplicitGrantRedirectError:vle,AuthPKCEGrantCodeExchangeError:yle,AuthRetryableFetchError:ble,AuthWeakPasswordError:wle,AuthInvalidJwtError:xle,isAuthError:_le,isAuthApiError:kle,isAuthSessionMissingError:Sle,isAuthImplicitGrantRedirectError:Nle,isAuthRetryableFetchError:Ele,isAuthWeakPasswordError:Cle,RealtimePresence:jle,RealtimeChannel:Ale,RealtimeClient:Tle,REALTIME_LISTEN_TYPES:Ple,REALTIME_POSTGRES_CHANGES_LISTEN_EVENT:Ole,REALTIME_PRESENCE_LISTEN_EVENTS:Rle,REALTIME_SUBSCRIBE_STATES:Lle,REALTIME_CHANNEL_STATES:Ile}=CR||lY,uY="https://irbugiqwhxuyxtmgpnwx.supabase.co",dY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImlyYnVnaXF3aHh1eXh0bWdwbnd4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjQ5NDI1MjgsImV4cCI6MjA4MDUxODUyOH0.4-TPN8k4Rm88f3BsSU9mWm8wziAvg1_ko_k75Uv_9IM",yl=cY(uY,dY,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}});var e1="Dialog",[jR,Fle]=gs(e1),[fY,va]=jR(e1),AR=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,o=_.useRef(null),l=_.useRef(null),[c,d]=qo({prop:n,defaultProp:i??!1,onChange:s,caller:e1});return u.jsx(fY,{scope:t,triggerRef:o,contentRef:l,contentId:Ga(),titleId:Ga(),descriptionId:Ga(),open:c,onOpenChange:d,onOpenToggle:_.useCallback(()=>d(h=>!h),[d]),modal:a,children:r})};AR.displayName=e1;var TR="DialogTrigger",PR=_.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=va(TR,r),s=qt(t,i.triggerRef);return u.jsx(Nt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":V_(i.open),...n,ref:s,onClick:Ge(e.onClick,i.onOpenToggle)})});PR.displayName=TR;var z_="DialogPortal",[hY,OR]=jR(z_,{forceMount:void 0}),RR=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,s=va(z_,t);return u.jsx(hY,{scope:t,forceMount:r,children:_.Children.map(n,a=>u.jsx(ti,{present:r||s.open,children:u.jsx(Mf,{asChild:!0,container:i,children:a})}))})};RR.displayName=z_;var B0="DialogOverlay",LR=_.forwardRef((e,t)=>{const r=OR(B0,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=va(B0,e.__scopeDialog);return s.modal?u.jsx(ti,{present:n||s.open,children:u.jsx(mY,{...i,ref:t})}):null});LR.displayName=B0;var pY=tc("DialogOverlay.RemoveScroll"),mY=_.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=va(B0,r);return u.jsx(Sm,{as:pY,allowPinchZoom:!0,shards:[i.contentRef],children:u.jsx(Nt.div,{"data-state":V_(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ku="DialogContent",IR=_.forwardRef((e,t)=>{const r=OR(ku,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=va(ku,e.__scopeDialog);return u.jsx(ti,{present:n||s.open,children:s.modal?u.jsx(gY,{...i,ref:t}):u.jsx(vY,{...i,ref:t})})});IR.displayName=ku;var gY=_.forwardRef((e,t)=>{const r=va(ku,e.__scopeDialog),n=_.useRef(null),i=qt(t,r.contentRef,n);return _.useEffect(()=>{const s=n.current;if(s)return zy(s)},[]),u.jsx(FR,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ge(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Ge(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,o=a.button===0&&a.ctrlKey===!0;(a.button===2||o)&&s.preventDefault()}),onFocusOutside:Ge(e.onFocusOutside,s=>s.preventDefault())})}),vY=_.forwardRef((e,t)=>{const r=va(ku,e.__scopeDialog),n=_.useRef(!1),i=_.useRef(!1);return u.jsx(FR,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,o;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(n.current||(o=r.triggerRef.current)==null||o.focus(),s.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=s.target;((c=r.triggerRef.current)==null?void 0:c.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),FR=_.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...a}=e,o=va(ku,r),l=_.useRef(null),c=qt(t,l);return Uy(),u.jsxs(u.Fragment,{children:[u.jsx(_m,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s,children:u.jsx(Fu,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":V_(o.open),...a,ref:c,onDismiss:()=>o.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(yY,{titleId:o.titleId}),u.jsx(wY,{contentRef:l,descriptionId:o.descriptionId})]})]})}),H_="DialogTitle",DR=_.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=va(H_,r);return u.jsx(Nt.h2,{id:i.titleId,...n,ref:t})});DR.displayName=H_;var MR="DialogDescription",$R=_.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=va(MR,r);return u.jsx(Nt.p,{id:i.descriptionId,...n,ref:t})});$R.displayName=MR;var BR="DialogClose",qR=_.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=va(BR,r);return u.jsx(Nt.button,{type:"button",...n,ref:t,onClick:Ge(e.onClick,()=>i.onOpenChange(!1))})});qR.displayName=BR;function V_(e){return e?"open":"closed"}var UR="DialogTitleWarning",[Dle,zR]=B7(UR,{contentName:ku,titleName:H_,docsSlug:"dialog"}),yY=({titleId:e})=>{const t=zR(UR),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
429
430If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
431
432For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return _.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},bY="DialogDescriptionWarning",wY=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zR(bY).contentName}}.`;return _.useEffect(()=>{var s;const i=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},xY=AR,_Y=PR,kY=RR,HR=LR,VR=IR,WR=DR,KR=$R,SY=qR;const GR=xY,YR=_Y,NY=kY,ZR=_.forwardRef(({className:e,...t},r)=>u.jsx(HR,{ref:r,className:Ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ZR.displayName=HR.displayName;const W_=_.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(NY,{children:[u.jsx(ZR,{}),u.jsxs(VR,{ref:n,className:Ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,u.jsxs(SY,{className:"absolute right-4 top-4 roun
432ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[u.jsx(i_,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));W_.displayName=VR.displayName;const K_=({className:e,...t})=>u.jsx("div",{className:Ue("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});K_.displayName="DialogHeader";const G_=_.forwardRef(({className:e,...t},r)=>u.jsx(WR,{ref:r,className:Ue("text-lg font-semibold leading-none tracking-tight",e),...t}));G_.displayName=WR.displayName;const EY=_.forwardRef(({className:e,...t},r)=>u.jsx(KR,{ref:r,className:Ue("text-sm text-muted-foreground",e),...t}));EY.displayName=KR.displayName;const tr=_.forwardRef(({className:e,type:t,...r},n)=>u.jsx("input",{type:t,className:Ue("flex h-12 w-full rounded-md border-2 border-border/60 bg-background px-4 py-3 text-base font-sans shadow-sm transition-all duration-200 placeholder:text-muted-foreground/70 hover:border-primary/40 focus:border-primary focus:outline-none focus:ring-4 focus:ring-primary/10 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...r}));tr.displayName="Input";const CY=[{code:"SE",dialCode:"+46",name:"Sverige"},{code:"NO",dialCode:"+47",name:"Norge"},{code:"DK",dialCode:"+45",name:"Danmark"},{code:"FI",dialCode:"+358",name:"Finland"},{code:"DE",dialCode:"+49",name:"Tyskland"},{code:"GB",dialCode:"+44",name:"Storbritannien"},{code:"US",dialCode:"+1",name:"USA"},{code:"FR",dialCode:"+33",name:"Frankrike"},{code:"ES",dialCode:"+34",name:"Spanien"},{code:"IT",dialCode:"+39",name:"Italien"},{code:"NL",dialCode:"+31",name:"Nederländerna"},{code:"PL",dialCode:"+48",name:"Polen"},{code:"AT",dialCode:"+43",name:"Österrike"},{code:"CH",dialCode:"+41",name:"Schweiz"},{code:"BE",dialCode:"+32",name:"Belgien"},{code:"CZ",dialCode:"+420",name:"Tjeckien"},{code:"SK",dialCode:"+421",name:"Slovakien"},{code:"HR",dialCode:"+385",name:"Kroatien"},{code:"PT",dialCode:"+351",name:"Portugal"}],jY=({code:e,className:t})=>u.jsx("img",{src:`https://flagcdn.com/w40/${e.toLowerCase()}.png`,srcSet:`https://flagcdn.com/w80/${e.toLowerCase()}.png 2x`,alt:e,className:Ue("w-5 h-auto rounded-sm object-cover",t),loading:"lazy"}),AY=e=>{if(!e.startsWith("+"))return null;const t=[...CY].sort((r,n)=>n.dialCode.length-r.dialCode.length);for(const r of t)if(e.startsWith(r.dialCode))return r;return null},q0=_.forwardRef(({className:e,value:t="",onChange:r,defaultPrefix:n="+",...i},s)=>{const[a,o]=_.useState(t||n),l=AY(a);_.useEffect(()=>{t&&t!==a&&o(t)},[t]);const c=d=>{let h=d.target.value;h&&!h.startsWith("+")&&/^\d/.test(h)&&(h="+"+h),h=h.replace(/[^\d\s\-+]/g,""),o(h),r==null||r(h)};return u.jsxs("div",{className:Ue("relative",e),children:[u.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 flex items-center pointer-events-none",children:l?u.jsx(jY,{code:l.code,className:"w-5"}):u.jsx(Du,{className:"w-5 h-5 text-muted-foreground"})}),u.jsx(tr,{ref:s,type:"tel",value:a,onChange:c,className:"pl-10",placeholder:"+46 70 123 45 67",...i})]})});q0.displayName="PhoneInput";const Nd=_.forwardRef(({className:e,...t},r)=>u.jsx("textarea",{className:Ue("flex min-h-[120px] w-full rounded-md border-2 border-border/60 bg-background px-4 py-3 text-base font-sans shadow-sm transition-all duration-200 placeholder:text-muted-foreground/70 hover:border-primary/40 focus:border-primary focus:outline-none focus:ring-4 focus:ring-primary/10 disabled:cursor-not-allowed disabled:opacity-50 resize-none",e),ref:r,...t}));Nd.displayName="Textarea";var TY="Label",XR=_.forwardRef((e,t)=>u.jsx(Nt.label,{...e,ref:t,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));XR.displayName=TY;var JR=XR;const PY=e_("text-sm font-semibold text-foreground leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 tracking-wide"),gr=_.forwardRef(({className:e,...t},r)=>u.jsx(JR,{ref:r,className:Ue(PY(),e),...t}));gr.displayName=JR.displayName;function Y_(e){const t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var t1="Switch",[OY,Mle]=gs(t1),[RY,LY]=OY(t1),QR=_.forwardRef((e,t)=>
vendor: 4,547 bytes, line 432
432{const{__scopeSwitch:r,name:n,checked:i,defaultChecked:s,required:a,disabled:o,value:l="on",onCheckedChange:c,form:d,...h}=e,[p,f]=_.useState(null),y=qt(t,S=>f(S)),v=_.useRef(!1),b=p?d||!!p.closest("form"):!0,[w,x]=qo({prop:i,defaultProp:s??!1,onChange:c,caller:t1});return u.jsxs(RY,{scope:r,checked:w,disabled:o,children:[u.jsx(Nt.button,{type:"button",role:"switch","aria-checked":w,"aria-required":a,"data-state":nL(w),"data-disabled":o?"":void 0,disabled:o,value:l,...h,ref:y,onClick:Ge(e.onClick,S=>{x(E=>!E),b&&(v.current=S.isPropagationStopped(),v.current||S.stopPropagation())})}),b&&u.jsx(rL,{control:p,bubbles:!v.current,name:n,value:l,checked:w,required:a,disabled:o,form:d,style:{transform:"translateX(-100%)"}})]})});QR.displayName=t1;var eL="SwitchThumb",tL=_.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,i=LY(eL,r);return u.jsx(Nt.span,{"data-state":nL(i.checked),"data-disabled":i.disabled?"":void 0,...n,ref:t})});tL.displayName=eL;var IY="SwitchBubbleInput",rL=_.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...i},s)=>{const a=_.useRef(null),o=qt(a,s),l=Y_(r),c=h_(t);return _.useEffect(()=>{const d=a.current;if(!d)return;const h=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(h,"checked").set;if(l!==r&&f){const y=new Event("click",{bubbles:n});f.call(d,r),d.dispatchEvent(y)}},[l,r,n]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:o,style:{...i.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});rL.displayName=IY;function nL(e){return e?"checked":"unchecked"}var iL=QR,FY=tL;const Li=_.forwardRef(({className:e,...t},r)=>u.jsx(iL,{className:Ue("peer inline-flex h-7 w-12 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-inner transition-all duration-200 data-[state=checked]:bg-primary data-[state=unchecked]:bg-border/80 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-primary/20 disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:r,children:u.jsx(FY,{className:Ue("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-md ring-0 transition-transform duration-200 data-[state=checked]:translate-x-[22px] data-[state=unchecked]:translate-x-0.5")})}));Li.displayName=iL.displayName;function px(e,[t,r]){return Math.min(r,Math.max(t,e))}var DY=[" ","Enter","ArrowUp","ArrowDown"],MY=[" ","Enter"],Su="Select",[r1,n1,$Y]=Ny(Su),[Kf,$le]=gs(Su,[$Y,uc]),i1=uc(),[BY,mc]=Kf(Su),[qY,UY]=Kf(Su),sL=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:s,value:a,defaultValue:o,onValueChange:l,dir:c,name:d,autoComplete:h,disabled:p,required:f,form:y}=e,v=i1(t),[b,w]=_.useState(null),[x,S]=_.useState(null),[E,T]=_.useState(!1),W=qy(c),[z,B]=qo({prop:n,defaultProp:i??!1,onChange:s,caller:Su}),[P,X]=qo({prop:a,defaultProp:o,onChange:l,caller:Su}),O=_.useRef(null),A=b?y||!!b.closest("form"):!0,[K,R]=_.useState(new Set),le=Array.from(K).map(oe=>oe.props.value).join(";");return u.jsx(g_,{...v,children:u.jsxs(BY,{required:f,scope:t,trigger:b,onTriggerChange:w,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:E,onValueNodeHasChildrenChange:T,contentId:Ga(),value:P,onValueChange:X,open:z,onOpenChange:B,dir:W,triggerPointerDownPosRef:O,disabled:p,children:[u.jsx(r1.Provider,{scope:t,children:u.jsx(qY,{scope:e.__scopeSelect,onNativeOptionAdd:_.useCallback(oe=>{R(se=>new Set(se).add(oe))},[]),onNativeOptionRemove:_.useCallback(oe=>{R(se=>{const F=new Set(se);return F.delete(oe),F})},[]),children:r})}),A?u.jsxs(AL,{"aria-hidden":!0,required:f,tabIndex:-1,name:d,autoComplete:h,value:P,onChange:oe=>X(oe.target.value),disabled:p,form:y,children:[P===void 0?u.jsx("option",{value:""}):null,Array.from(K)]},le):null]})})};sL.displayName=Su;var aL="SelectTrigger",oL=_.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,s=i1(r),a=mc(aL,r),o=a.disabled||n,l=qt(t,a.onTriggerChange),c=n1(r),d=_.useRef("touch"),[h,p,f]=PL(v=>{const b=c().filter(S=>!S.disabled),w=b.find(S=>S.value===a.value),x=OL(b,v,w);x!==void 0&&a.onValueChange(x.value)}),y=v=>{o||(a.onOpenChange(!0),f()),v&&(a.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return u.jsx(xm,{asChild:!0,...s,children:u.jsx(Nt.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":TL(a.value)?"":void 0,...i,ref:l,onClick:Ge(i.onClick,v=>
vendor: 19,323 bytes, line 432
432{v.currentTarget.focus(),d.current!=="mouse"&&y(v)}),onPointerDown:Ge(i.onPointerDown,v=>{d.current=v.pointerType;const b=v.target;b.hasPointerCapture(v.pointerId)&&b.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(y(v),v.preventDefault())}),onKeyDown:Ge(i.onKeyDown,v=>{const b=h.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&p(v.key),!(b&&v.key===" ")&&DY.includes(v.key)&&(y(),v.preventDefault())})})})});oL.displayName=aL;var lL="SelectValue",cL=_.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:s,placeholder:a="",...o}=e,l=mc(lL,r),{onValueNodeHasChildrenChange:c}=l,d=s!==void 0,h=qt(t,l.onValueNodeChange);return zn(()=>{c(d)},[c,d]),u.jsx(Nt.span,{...o,ref:h,style:{pointerEvents:"none"},children:TL(l.value)?u.jsx(u.Fragment,{children:a}):s})});cL.displayName=lL;var zY="SelectIcon",uL=_.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return u.jsx(Nt.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})});uL.displayName=zY;var HY="SelectPortal",dL=e=>u.jsx(Mf,{asChild:!0,...e});dL.displayName=HY;var Nu="SelectContent",fL=_.forwardRef((e,t)=>{const r=mc(Nu,e.__scopeSelect),[n,i]=_.useState();if(zn(()=>{i(new DocumentFragment)},[]),!r.open){const s=n;return s?Iu.createPortal(u.jsx(hL,{scope:e.__scopeSelect,children:u.jsx(r1.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),s):null}return u.jsx(pL,{...e,ref:t})});fL.displayName=Nu;var Xs=10,[hL,gc]=Kf(Nu),VY="SelectContentImpl",WY=tc("SelectContent.RemoveScroll"),pL=_.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:a,side:o,sideOffset:l,align:c,alignOffset:d,arrowPadding:h,collisionBoundary:p,collisionPadding:f,sticky:y,hideWhenDetached:v,avoidCollisions:b,...w}=e,x=mc(Nu,r),[S,E]=_.useState(null),[T,W]=_.useState(null),z=qt(t,Q=>E(Q)),[B,P]=_.useState(null),[X,O]=_.useState(null),A=n1(r),[K,R]=_.useState(!1),le=_.useRef(!1);_.useEffect(()=>{if(S)return zy(S)},[S]),Uy();const oe=_.useCallback(Q=>{const[ce,...de]=A().map(ve=>ve.ref.current),[he]=de.slice(-1),we=document.activeElement;for(const ve of Q)if(ve===we||(ve==null||ve.scrollIntoView({block:"nearest"}),ve===ce&&T&&(T.scrollTop=0),ve===he&&T&&(T.scrollTop=T.scrollHeight),ve==null||ve.focus(),document.activeElement!==we))return},[A,T]),se=_.useCallback(()=>oe([B,S]),[oe,B,S]);_.useEffect(()=>{K&&se()},[K,se]);const{onOpenChange:F,triggerPointerDownPosRef:D}=x;_.useEffect(()=>{if(S){let Q={x:0,y:0};const ce=he=>{var we,ve;Q={x:Math.abs(Math.round(he.pageX)-(((we=D.current)==null?void 0:we.x)??0)),y:Math.abs(Math.round(he.pageY)-(((ve=D.current)==null?void 0:ve.y)??0))}},de=he=>{Q.x<=10&&Q.y<=10?he.preventDefault():S.contains(he.target)||F(!1),document.removeEventListener("pointermove",ce),D.current=null};return D.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",de,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",de,{capture:!0})}}},[S,F,D]),_.useEffect(()=>{const Q=()=>F(!1);return window.addEventListener("blur",Q),window.addEventListener("resize",Q),()=>{window.removeEventListener("blur",Q),window.removeEventListener("resize",Q)}},[F]);const[$,M]=PL(Q=>{const ce=A().filter(we=>!we.disabled),de=ce.find(we=>we.ref.current===document.activeElement),he=OL(ce,Q,de);he&&setTimeout(()=>he.ref.current.focus())}),j=_.useCallback((Q,ce,de)=>{const he=!le.current&&!de;(x.value!==void 0&&x.value===ce||he)&&(P(Q),he&&(le.current=!0))},[x.value]),U=_.useCallback(()=>S==null?void 0:S.focus(),[S]),H=_.useCallback((Q,ce,de)=>{const he=!le.current&&!de;(x.value!==void 0&&x.value===ce||he)&&O(Q)},[x.value]),re=n==="popper"?mx:mL,te=re===mx?{side:o,sideOffset:l,align:c,alignOffset:d,arrowPadding:h,collisionBoundary:p,collisionPadding:f,sticky:y,hideWhenDetached:v,avoidCollisions:b}:{};return u.jsx(hL,{scope:r,content:S,viewport:T,onViewportChange:W,itemRefCallback:j,selectedItem:B,onItemLeave:U,itemTextRefCallback:H,focusSelectedItem:se,selectedItemText:X,position:n,isPositioned:K,searchRef:$,children:u.jsx(Sm,{as:WY,allowPinchZoom:!0,children:u.jsx(_m,{asChild:!0,trapped:x.open,onMountAutoFocus:Q=>{Q.preventDefault()},onUnmountAutoFocus:Ge(i,Q=>{var ce;(ce=x.trigger)==null||ce.focus({preventScroll:!0}),Q.preventDefault()}),children:u.jsx(Fu,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:Q=>Q.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:u.jsx(re,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:Q=>Q.preventDefault(),...w,...te,onPlaced:()=>R(!0),ref:z,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:Ge(w.onKeyDown,Q=>{const ce=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!ce&&Q.key.length===1&&M(Q.key),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let he=A().filter(we=>!we.disabled).map(we=>we.ref.current);if(["ArrowUp","End"].includes(Q.key)&&(he=he.slice().reverse()),["ArrowUp","ArrowDown"].includes(Q.key)){const we=Q.target,ve=he.indexOf(we);he=he.slice(ve+1)}setTimeout(()=>oe(he)),Q.preventDefault()}})})})})})})});pL.displayName=VY;var KY="SelectItemAlignedPosition",mL=_.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,s=mc(Nu,r),a=gc(Nu,r),[o,l]=_.useState(null),[c,d]=_.useState(null),h=qt(t,z=>d(z)),p=n1(r),f=_.useRef(!1),y=_.useRef(!0),{viewport:v,selectedItem:b,selectedItemText:w,focusSelectedItem:x}=a,S=_.useCallback(()=>{if(s.trigger&&s.valueNode&&o&&c&&v&&b&&w){const z=s.trigger.getBoundingClientRect(),B=c.getBoundingClientRect(),P=s.valueNode.getBoundingClientRect(),X=w.getBoundingClientRect();if(s.dir!=="rtl"){const we=X.left-B.left,ve=P.left-we,Le=z.left-ve,je=z.width+Le,Z=Math.max(je,B.width),Pe=window.innerWidth-Xs,et=px(ve,[Xs,Math.max(Xs,Pe-Z)]);o.style.minWidth=je+"px",o.style.left=et+"px"}else{const we=B.right-X.right,ve=window.innerWidth-P.right-we,Le=window.innerWidth-z.right-ve,je=z.width+Le,Z=Math.max(je,B.width),Pe=window.innerWidth-Xs,et=px(ve,[Xs,Math.max(Xs,Pe-Z)]);o.style.minWidth=je+"px",o.style.right=et+"px"}const O=p(),A=window.innerHeight-Xs*2,K=v.scrollHeight,R=window.getComputedStyle(c),le=parseInt(R.borderTopWidth,10),oe=parseInt(R.paddingTop,10),se=parseInt(R.borderBottomWidth,10),F=parseInt(R.paddingBottom,10),D=le+oe+K+F+se,$=Math.min(b.offsetHeight*5,D),M=window.getComputedStyle(v),j=parseInt(M.paddingTop,10),U=parseInt(M.paddingBottom,10),H=z.top+z.height/2-Xs,re=A-H,te=b.offsetHeight/2,Q=b.offsetTop+te,ce=le+oe+Q,de=D-ce;if(ce<=H){const we=O.length>0&&b===O[O.length-1].ref.current;o.style.bottom="0px";const ve=c.clientHeight-v.offsetTop-v.offsetHeight,Le=Math.max(re,te+(we?U:0)+ve+se),je=ce+Le;o.style.height=je+"px"}else{const we=O.length>0&&b===O[0].ref.current;o.style.top="0px";const Le=Math.max(H,le+v.offsetTop+(we?j:0)+te)+de;o.style.height=Le+"px",v.scrollTop=ce-H+v.offsetTop}o.style.margin=`${Xs}px 0`,o.style.minHeight=$+"px",o.style.maxHeight=A+"px",n==null||n(),requestAnimationFrame(()=>f.current=!0)}},[p,s.trigger,s.valueNode,o,c,v,b,w,s.dir,n]);zn(()=>S(),[S]);const[E,T]=_.useState();zn(()=>{c&&T(window.getComputedStyle(c).zIndex)},[c]);const W=_.useCallback(z=>{z&&y.current===!0&&(S(),x==null||x(),y.current=!1)},[S,x]);return u.jsx(YY,{scope:r,contentWrapper:o,shouldExpandOnScrollRef:f,onScrollButtonChange:W,children:u.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:u.jsx(Nt.div,{...i,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});mL.displayName=KY;var GY="SelectPopperPosition",mx=_.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Xs,...s}=e,a=i1(r);return u.jsx(Oy,{...a,...s,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});mx.displayName=GY;var[YY,Z_]=Kf(Nu,{}),gx="SelectViewport",gL=_.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...i}=e,s=gc(gx,r),a=Z_(gx,r),o=qt(t,s.onViewportChange),l=_.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),u.jsx(r1.Slot,{scope:r,children:u.jsx(Nt.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:o,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Ge(i.onScroll,c=>{const d=c.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:p}=a;if(p!=null&&p.current&&h){const f=Math.abs(l.current-d.scrollTop);if(f>0){const y=window.innerHeight-Xs*2,v=parseFloat(h.style.minHeight),b=parseFloat(h.style.height),w=Math.max(v,b);if(w<y){const x=w+f,S=Math.min(y,x),E=x-S;h.style.height=S+"px",h.style.bottom==="0px"&&(d.scrollTop=E>0?E:0,h.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});gL.displayName=gx;var vL="SelectGroup",[ZY,XY]=Kf(vL),JY=_.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Ga();return u.jsx(ZY,{scope:r,id:i,children:u.jsx(Nt.div,{role:"group","aria-labelledby":i,...n,ref:t})})});JY.displayName=vL;var yL="SelectLabel",bL=_.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=XY(yL,r);return u.jsx(Nt.div,{id:i.id,...n,ref:t})});bL.displayName=yL;var U0="SelectItem",[QY,wL]=Kf(U0),xL=_.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:s,...a}=e,o=mc(U0,r),l=gc(U0,r),c=o.value===n,[d,h]=_.useState(s??""),[p,f]=_.useState(!1),y=qt(t,x=>{var S;return(S=l.itemRefCallback)==null?void 0:S.call(l,x,n,i)}),v=Ga(),b=_.useRef("touch"),w=()=>{i||(o.onValueChange(n),o.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(QY,{scope:r,value:n,disabled:i,textId:v,isSelected:c,onItemTextChange:_.useCallback(x=>{h(S=>S||((x==null?void 0:x.textContent)??"").trim())},[]),children:u.jsx(r1.ItemSlot,{scope:r,value:n,disabled:i,textValue:d,children:u.jsx(Nt.div,{role:"option","aria-labelledby":v,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...a,ref:y,onFocus:Ge(a.onFocus,()=>f(!0)),onBlur:Ge(a.onBlur,()=>f(!1)),onClick:Ge(a.onClick,()=>{b.current!=="mouse"&&w()}),onPointerUp:Ge(a.onPointerUp,()=>{b.current==="mouse"&&w()}),onPointerDown:Ge(a.onPointerDown,x=>{b.current=x.pointerType}),onPointerMove:Ge(a.onPointerMove,x=>{var S;b.current=x.pointerType,i?(S=l.onItemLeave)==null||S.call(l):b.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ge(a.onPointerLeave,x=>{var S;x.currentTarget===document.activeElement&&((S=l.onItemLeave)==null||S.call(l))}),onKeyDown:Ge(a.onKeyDown,x=>{var E;((E=l.searchRef)==null?void 0:E.current)!==""&&x.key===" "||(MY.includes(x.key)&&w(),x.key===" "&&x.preventDefault())})})})})});xL.displayName=U0;var Xh="SelectItemText",_L=_.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...s}=e,a=mc(Xh,r),o=gc(Xh,r),l=wL(Xh,r),c=UY(Xh,r),[d,h]=_.useState(null),p=qt(t,w=>h(w),l.onItemTextChange,w=>{var x;return(x=o.itemTextRefCallback)==null?void 0:x.call(o,w,l.value,l.disabled)}),f=d==null?void 0:d.textContent,y=_.useMemo(()=>u.jsx("option",{value:l.value,disabled:l.disabled,children:f},l.value),[l.disabled,l.value,f]),{onNativeOptionAdd:v,onNativeOptionRemove:b}=c;return zn(()=>(v(y),()=>b(y)),[v,b,y]),u.jsxs(u.Fragment,{children:[u.jsx(Nt.span,{id:l.textId,...s,ref:p}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Iu.createPortal(s.children,a.valueNode):null]})});_L.displayName=Xh;var kL="SelectItemIndicator",SL=_.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return wL(kL,r).isSelected?u.jsx(Nt.span,{"aria-hidden":!0,...n,ref:t}):null});SL.displayName=kL;var vx="SelectScrollUpButton",NL=_.forwardRef((e,t)=>{const r=gc(vx,e.__scopeSelect),n=Z_(vx,e.__scopeSelect),[i,s]=_.useState(!1),a=qt(t,n.onScrollButtonChange);return zn(()=>{if(r.viewport&&r.isPositioned){let o=function(){const c=l.scrollTop>0;s(c)};const l=r.viewport;return o(),l.addEventListener("scroll",o),()=>l.removeEventListener("scroll",o)}},[r.viewport,r.isPositioned]),i?u.jsx(CL,{...e,ref:a,onAutoScroll:()=>{const{viewport:o,selectedItem:l}=r;o&&l&&(o.scrollTop=o.scrollTop-l.offsetHeight)}}):null});NL.displayName=vx;var yx="SelectScrollDownButton",EL=_.forwardRef((e,t)=>{const r=gc(yx,e.__scopeSelect),n=Z_(yx,e.__scopeSelect),[i,s]=_.useState(!1),a=qt(t,n.onScrollButtonChange);return zn(()=>{if(r.viewport&&r.isPositioned){let o=function(){const c=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<c;s(d)};const l=r.viewport;return o(),l.addEventListener("scroll",o),()=>l.removeEventListener("scroll",o)}},[r.viewport,r.isPositioned]),i?u.jsx(CL,{...e,ref:a,onAutoScroll:()=>{const{viewport:o,selectedItem:l}=r;o&&l&&(o.scrollTop=o.scrollTop+l.offsetHeight)}}):null});EL.displayName=yx;var CL=_.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,s=gc("SelectScrollButton",r),a=_.useRef(null),o=n1(r),l=_.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return _.useEffect(()=>()=>l(),[l]),zn(()=>{var d;const c=o().find(h=>h.ref.current===document.activeElement);(d=c==null?void 0:c.ref.current)==null||d.scrollIntoView({block:"nearest"})},[o]),u.jsx(Nt.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Ge(i.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:Ge(i.onPointerMove,()=>{var c;(c=s.onItemLeave)==null||c.call(s),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:Ge(i.onPointerLeave,()=>{l()})})}),eZ="SelectSeparator",jL=_.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return u.jsx(Nt.div,{"aria-hidden":!0,...n,ref:t})});jL.displayName=eZ;var bx="SelectArrow",tZ=_.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=i1(r),s=mc(bx,r),a=gc(bx,r);return s.open&&a.position==="popper"?u.jsx(Ry,{...i,...n,ref:t}):null});tZ.displayName=bx;var rZ="SelectBubbleInput",AL=_.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const i=_.useRef(null),s=qt(n,i),a=Y_(t);return _.useEffect(()=>{const o=i.current;if(!o)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&d){const h=new Event("change",{bubbles:!0});d.call(o,t),o.dispatchEvent(h)}},[a,t]),u.jsx(Nt.select,{...r,style:{...lT,...r.style},ref:s,defaultValue:t})});AL.displayName=rZ;function TL(e){return e===""||e===void 0}function PL(e){const t=gn(e),r=_.useRef(""),n=_.useRef(0),i=_.useCallback(a=>{const o=r.current+a;t(o),function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(o)},[t]),s=_.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return _.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,s]}function OL(e,t,r){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let a=nZ(e,Math.max(s,0));i.length===1&&(a=a.filter(c=>c!==r));const l=a.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function nZ(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var iZ=sL,RL=oL,sZ=cL,aZ=uL,oZ=dL,LL=fL,lZ=gL,IL=bL,FL=xL,cZ=_L,uZ=SL,DL=NL,ML=EL,$L=jL;const un=iZ,dn=sZ,Qr=_.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(RL,{ref:n,className:Ue("flex h-12 w-full items-center justify-between rounded-md border-2 border-border/60 bg-background px-4 py-3 text-base font-sans shadow-sm transition-all duration-200 placeholder:text-muted-foreground/70 hover:border-primary/40 focus:border-primary focus:outline-none focus:ring-4 focus:ring-primary/10 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 data-[placeholder]:text-muted-foreground/70",e),...r,children:[t,u.jsx(aZ,{asChild:!0,children:u.jsx(PT,{className:"h-5 w-5 text-muted-foreground transition-transform duration-200"})})]}));Qr.displayName=RL.displayName;const BL=_.forwardRef(({className:e,...t},r)=>u.jsx(DL,{ref:r,className:Ue("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(M9,{className:"h-4 w-4"})}));BL.displayName=DL.displayName;const qL=_.forwardRef(({className:e,...t},r)=>u.jsx(ML,{ref:r,className:Ue("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(PT,{className:"h-4 w-4"})}));qL.displayName=ML.displayName;const en=_.forwardRef(({className:e,children:t,position:r="popper",...n},i)=>u.jsx(oZ,{children:u.jsxs(LL,{ref:i,className:Ue("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-lg border-2 border-border/40 bg-background text-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[u.jsx(BL,{}),u.jsx(lZ,{className:Ue("p-2",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),u.jsx(qL,{})]})}));en.displayName=LL.displayName;const dZ=_.forwardRef(({className:e,...t},r)=>u.jsx(IL,{ref:r,className:Ue("py-1.5 pl-8 pr-2 text-sm font-semibold text-foreground",e),...t}));dZ.displayName=IL.displayName;const Yt=_.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(FL,{ref:n,className:Ue("relative flex w-full cursor-pointer select-none items-center rounded-md py-3 pl-10 pr-4 text-base font-sans outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-primary/10 focus:text-foreground hover:bg-primary/5",e),...r,children:[u.jsx("span",{className:"absolute left-3 flex h-5 w-5 items-center justify-center",children:u.jsx(uZ,{children:u.jsx(ym,{className:"h-5 w-5 text-primary"})})}),u.jsx(cZ,{children:t})]}));Yt.displayName=FL.displayName;const fZ=_.forwardRef(({className:e,...t},r)=>u.jsx($L,{ref:r,className:Ue("-mx-1 my-1 h-px bg-border",e),...t}));fZ.displayName=$L.displayName;function Zt(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function fs(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Fn(e,t){const r=Zt(e);return isNaN(t)?fs(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function pa(e,t){const r=Zt(e);
432if(isNaN(t))return fs(e,NaN);if(!t)return r;const n=r.getDate(),i=fs(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const s=i.getDate();return n>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),n),r)}const X_=6048e5,hZ=864e5;let pZ={};function Am(){return pZ}function eo(e,t){var o,l,c,d;const r=Am(),n=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,i=Zt(e),s=i.getDay(),a=(s<n?7:0)+s-n;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Eu(e){return eo(e,{weekStartsOn:1})}function UL(e){const t=Zt(e),r=t.getFullYear(),n=fs(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const i=Eu(n),s=fs(e,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const a=Eu(s);return t.getTime()>=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function Cu(e){const t=Zt(e);return t.setHours(0,0,0,0),t}function z0(e){const t=Zt(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function za(e,t){const r=Cu(e),n=Cu(t),i=+r-z0(r),s=+n-z0(n);return Math.round((i-s)/hZ)}function mZ(e){const t=UL(e),r=fs(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Eu(r)}function wx(e,t){const r=t*7;return Fn(e,r)}function gZ(e,t){return pa(e,t*12)}function vZ(e){let t;return e.forEach(function(r){const n=Zt(r);(t===void 0||t<n||isNaN(Number(n)))&&(t=n)}),t||new Date(NaN)}function yZ(e){let t;return e.forEach(r=>{const n=Zt(r);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}function pi(e,t){const r=Cu(e),n=Cu(t);return+r==+n}function J_(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function bZ(e){if(!J_(e)&&typeof e!="number")return!1;const t=Zt(e);return!isNaN(Number(t))}function Gp(e,t){const r=Zt(e),n=Zt(t),i=r.getFullYear()-n.getFullYear(),s=r.getMonth()-n.getMonth();return i*12+s}function wZ(e,t,r){const n=eo(e,r),i=eo(t,r),s=+n-z0(n),a=+i-z0(i);return Math.round((s-a)/X_)}function Yp(e){const t=Zt(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function xZ(e,t){const r=Zt(e.start),n=Zt(e.end);let i=+r>+n;const s=i?+r:+n,a=i?n:r;a.setHours(0,0,0,0);let o=1;const l=[];for(;+a<=s;)l.push(Zt(a)),a.setDate(a.getDate()+o),a.setHours(0,0,0,0);return i?l.reverse():l}function Ci(e){const t=Zt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function zL(e){const t=Zt(e),r=fs(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Q_(e,t){var o,l,c,d;const r=Am(),n=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,i=Zt(e),s=i.getDay(),a=(s<n?-7:0)+6-(s-n);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}function HL(e){return Q_(e,{weekStartsOn:1})}const _Z={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"}},VL=(e,t,r)=>{let n;const i=_Z[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Fo(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const kZ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},SZ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},NZ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},EZ={date:Fo({formats:kZ,defaultWidth:"full"}),time:Fo({formats:SZ,defaultWidth:"full"}),dateTime:Fo({formats:NZ,defaultWidth:"full"})},CZ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},WL=(e,t,r,n)=>CZ[e];function Ma(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let i;if(n==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{const a=e.defaultWidth,o=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[o]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return i[s]}}const jZ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},AZ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},TZ={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"]},PZ={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","Frid
432ay","Saturday"]},OZ={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"}},RZ={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"}},LZ=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},KL={ordinalNumber:LZ,era:Ma({values:jZ,defaultWidth:"wide"}),quarter:Ma({values:AZ,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ma({values:TZ,defaultWidth:"wide"}),day:Ma({values:PZ,defaultWidth:"wide"}),dayPeriod:Ma({values:OZ,defaultWidth:"wide",formattingValues:RZ,defaultFormattingWidth:"wide"})};function $a(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;const a=s[0],o=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?FZ(o,h=>h.test(a)):IZ(o,h=>h.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;const d=t.slice(a.length);return{value:c,rest:d}}}function IZ(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function FZ(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function GL(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=r.valueCallback?r.valueCallback(a):a;const o=t.slice(i.length);return{value:a,rest:o}}}const DZ=/^(\d+)(th|st|nd|rd)?/i,MZ=/\d+/i,$Z={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},BZ={any:[/^b/i,/^(a|c)/i]},qZ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},UZ={any:[/1/i,/2/i,/3/i,/4/i]},zZ={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},HZ={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]},VZ={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},WZ={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]},KZ={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},GZ={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}},YL={ordinalNumber:GL({matchPattern:DZ,parsePattern:MZ,valueCallback:e=>parseInt(e,10)}),era:$a({matchPatterns:$Z,defaultMatchWidth:"wide",parsePatterns:BZ,defaultParseWidth:"any"}),quarter:$a({matchPatterns:qZ,defaultMatchWidth:"wide",parsePatterns:UZ,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$a({matchPatterns:zZ,defaultMatchWidth:"wide",parsePatterns:HZ,defaultParseWidth:"any"}),day:$a({matchPatterns:VZ,defaultMatchWidth:"wide",parsePatterns:WZ,defaultParseWidth:"any"}),dayPeriod:$a({matchPatterns:KZ,defaultMatchWidth:"any",parsePatterns:GZ,defaultParseWidth:"any"})},ek={code:"en-US",formatDistance:VL,formatLong:EZ,formatRelative:WL,localize:KL,match:YL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function YZ(e){const t=Zt(e);return za(t,zL(t))+1}function ZL(e){const t=Zt(e),r=+Eu(t)-+mZ(t);return Math.round(r/X_)+1}function XL(e,t){var d,h,p,f;const r=Zt(e),n=r.getFullYear(),i=Am(),s=(t==null?void 0:t.firstWeekContainsDate)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??i.firstWeekContainsDate??((f=(p=i.locale)==null?void 0:p.options)==null?void 0:f.firstWeekContainsDate)??1,a=fs(e,0);a.setFullYear(n+1,0,s),a.setHours(0,0,0,0);const o=eo(a,t),l=fs(e,0);l.setFullYear(n,0,s),l.setHours(0,0,0,0);const c=eo(l,t);return r.getTime()>=o.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function ZZ(e,t){var o,l,c,d;const r=Am(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,i=XL(e,t),s=fs(e,0);return s.setFullYear(i,0,n),s.setHours(0,0,0,0),eo(s,t)}function JL(e,t){const r=Zt(e),n=+eo(r,t)-+ZZ(r,t);return Math.round(n/X_)+1}function mr(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const fl={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return mr(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):mr(r+1,2)},d(e,t){return mr(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return mr(e.getHours()%12||12,t.length)},H(e,t){return mr(e.getHours(),t.length)},m(e,t){return mr(e.getMinutes(),t.length)},s(e,t){return mr(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return mr(i,t.length)}},fd={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},p3={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return fl.y(e,t)},Y:function(e,t,r,n){const i=XL(e,n),s=i>0?i:1-i;if(t==="YY"){const a=s%100;return mr(a,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):mr(s,t.length)},R:function(e,t){const r=UL(e);return mr(r,t.length)},u:function(e,t){const r=e.getFullYear();return mr(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return mr(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return mr(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return fl.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return mr(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=JL(e,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):mr(i,t.length)},I:function(e,t,r){const n=ZL(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):mr(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):fl.d(e,t)},D:function(e,t,r){const n=YZ(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):mr(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),s=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return mr(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),s=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return mr(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return mr(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(n===12?i=fd.noon:n===0?i=fd.midnight:i=n/12>
vendor: 4,371 bytes, line 432
432=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(n>=17?i=fd.evening:n>=12?i=fd.afternoon:n>=4?i=fd.morning:i=fd.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return fl.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):fl.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):mr(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):mr(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):fl.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):fl.s(e,t)},S:function(e,t){return fl.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return g3(n);case"XXXX":case"XX":return zc(n);case"XXXXX":case"XXX":default:return zc(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return g3(n);case"xxxx":case"xx":return zc(n);case"xxxxx":case"xxx":default:return zc(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m3(n,":");case"OOOO":default:return"GMT"+zc(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m3(n,":");case"zzzz":default:return"GMT"+zc(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return mr(n,t.length)},T:function(e,t,r){const n=e.getTime();return mr(n,t.length)}};function m3(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),s=n%60;return s===0?r+String(i):r+String(i)+t+mr(s,2)}function g3(e,t){return e%60===0?(e>0?"-":"+")+mr(Math.abs(e)/60,2):zc(e,t)}function zc(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=mr(Math.trunc(n/60),2),s=mr(n%60,2);return r+i+t+s}const v3=(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"});case"PPPP":default:return t.date({width:"full"})}},QL=(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"});case"pppp":default:return t.time({width:"full"})}},XZ=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return v3(e,t);let s;switch(n){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",v3(n,t)).replace("{{time}}",QL(i,t))},JZ={p:QL,P:XZ},QZ=/^D+$/,eX=/^Y+$/,tX=["D","DD","YY","YYYY"];function rX(e){return QZ.test(e)}function nX(e){return eX.test(e)}function iX(e,t,r){const n=sX(e,t,r);if(console.warn(n),tX.includes(e))throw new RangeError(n)}function sX(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const aX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lX=/^'([^]*?)'?$/,cX=/''/g,uX=/[a-zA-Z]/;function Cr(e,t,r){var d,h,p,f,y,v,b,w;const n=Am(),i=(r==null?void 0:r.locale)??n.locale??ek,s=(r==null?void 0:r.firstWeekContainsDate)??((h=(d=r==null?void 0:r.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(p=n.locale)==null?void 0:p.options)==null?void 0:f.firstWeekContainsDate)??1,a=(r==null?void 0:r.weekStartsOn)??((v=(y=r==null?void 0:r.locale)==null?void 0:y.options)==null?void 0:v.weekStartsOn)??n.weekStartsOn??((w=(b=n.locale)==null?void 0:b.options)==null?void 0:w.weekStartsOn)??0,o=Zt(e);
432if(!bZ(o))throw new RangeError("Invalid time value");let l=t.match(oX).map(x=>{const S=x[0];if(S==="p"||S==="P"){const E=JZ[S];return E(x,i.formatLong)}return x}).join("").match(aX).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const S=x[0];if(S==="'")return{isToken:!1,value:dX(x)};if(p3[S])return{isToken:!0,value:x};if(S.match(uX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:x}});i.localize.preprocessor&&(l=i.localize.preprocessor(o,l));const c={firstWeekContainsDate:s,weekStartsOn:a,locale:i};return l.map(x=>{if(!x.isToken)return x.value;const S=x.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&nX(S)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&rX(S))&&iX(S,t,String(e));const E=p3[S[0]];return E(o,S,i.localize,c)}).join("")}function dX(e){const t=e.match(lX);return t?t[1].replace(cX,"'"):e}function fX(e){const t=Zt(e),r=t.getFullYear(),n=t.getMonth(),i=fs(e,0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function hX(e){return Math.trunc(+Zt(e)/1e3)}function pX(e){const t=Zt(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function mX(e,t){return wZ(pX(e),Ci(e),t)+1}function xx(e,t){const r=Zt(e),n=Zt(t);return r.getTime()>n.getTime()}function tk(e,t){const r=Zt(e),n=Zt(t);return+r<+n}function rk(e,t){const r=Zt(e),n=Zt(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function gX(e,t){const r=Zt(e),n=Zt(t);return r.getFullYear()===n.getFullYear()}function Yb(e,t){return Fn(e,-t)}function Zb(e,t){const r=Zt(e),n=r.getFullYear(),i=r.getDate(),s=fs(e,0);s.setFullYear(n,t,15),s.setHours(0,0,0,0);const a=fX(s);return r.setMonth(t,Math.min(i,a)),r}function y3(e,t){const r=Zt(e);return isNaN(+r)?fs(e,NaN):(r.setFullYear(t),r)}const vX={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},yX={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},bX={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wX={date:Fo({formats:vX,defaultWidth:"full"}),time:Fo({formats:yX,defaultWidth:"full"}),dateTime:Fo({formats:bX,defaultWidth:"full"})},xX={code:"en-GB",formatDistance:VL,formatLong:wX,formatRelative:WL,localize:KL,match:YL,options:{weekStartsOn:1,firstWeekContainsDate:4}},_X={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} veckor"},xWeeks:{one:"en vecka",other:"{{count}} veckor"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},kX=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],SX=(e,t,r)=>{let n;const i=_X[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t<13?kX[t]:String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+n:n+" sedan":n},NX={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},EX={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},CX={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},jX={date:Fo({formats:NX,defaultWidth:"full"}),time:Fo({formats:EX,defaultWidth:"full"}),dateTime:Fo({formats:CX,defaultWidth:"full"})},AX={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},TX=(e,t,r,n)=>AX[e],PX={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},OX={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},RX={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},LX={narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},IX={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},FX={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},DX=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:case 2:return r+":a"}return r+":e"},MX={ordinalNumber:DX,era:Ma({values:PX,defaultWidth:"wide"}),quarter:Ma({values:OX,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ma({values:RX,defaultWidth:"wide"}),day:Ma({values:LX,defaultWidth:"wide"}),dayPeriod:Ma({values:IX,defaultWidth:"wide",formattingValues:FX,defaultFormattingWidth:"wide"})},$X=/^(\d+)(:a|:e)?/i,BX=/\d+/i,qX={narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},UX={any:[/^f/i,/^[ev]/i]},zX={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},HX={any:[/1/i,/2/i,/3/i,/4/i]},VX={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i}
432,WX={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,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},KX={narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},GX={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},YX={any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},ZX={any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},XX={ordinalNumber:GL({matchPattern:$X,parsePattern:BX,valueCallback:e=>parseInt(e,10)}),era:$a({matchPatterns:qX,defaultMatchWidth:"wide",parsePatterns:UX,defaultParseWidth:"any"}),quarter:$a({matchPatterns:zX,defaultMatchWidth:"wide",parsePatterns:HX,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$a({matchPatterns:VX,defaultMatchWidth:"wide",parsePatterns:WX,defaultParseWidth:"any"}),day:$a({matchPatterns:KX,defaultMatchWidth:"wide",parsePatterns:GX,defaultParseWidth:"any"}),dayPeriod:$a({matchPatterns:YX,defaultMatchWidth:"any",parsePatterns:ZX,defaultParseWidth:"any"})},e8={code:"sv",formatDistance:SX,formatLong:jX,formatRelative:TX,localize:MX,match:XX,options:{weekStartsOn:1,firstWeekContainsDate:4}};var At=function(){return At=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];
432for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},At.apply(this,arguments)};function JX(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function t8(e,t,r){for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function Tm(e){return e.mode==="multiple"}function Pm(e){return e.mode==="range"}function s1(e){return e.mode==="single"}var QX={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function eJ(e,t){return Cr(e,"LLLL y",t)}function tJ(e,t){return Cr(e,"d",t)}function rJ(e,t){return Cr(e,"LLLL",t)}function nJ(e){return"".concat(e)}function iJ(e,t){return Cr(e,"cccccc",t)}function sJ(e,t){return Cr(e,"yyyy",t)}var aJ=Object.freeze({__proto__:null,formatCaption:eJ,formatDay:tJ,formatMonthCaption:rJ,formatWeekNumber:nJ,formatWeekdayName:iJ,formatYearCaption:sJ}),oJ=function(e,t,r){return Cr(e,"do MMMM (EEEE)",r)},lJ=function(){return"Month: "},cJ=function(){return"Go to next month"},uJ=function(){return"Go to previous month"},dJ=function(e,t){return Cr(e,"cccc",t)},fJ=function(e){return"Week n. ".concat(e)},hJ=function(){return"Year: "},pJ=Object.freeze({__proto__:null,labelDay:oJ,labelMonthDropdown:lJ,labelNext:cJ,labelPrevious:uJ,labelWeekNumber:fJ,labelWeekday:dJ,labelYearDropdown:hJ});function mJ(){var e="buttons",t=QX,r=ek,n={},i={},s=1,a={},o=new Date;return{captionLayout:e,classNames:t,formatters:aJ,labels:pJ,locale:r,modifiersClassNames:n,modifiers:i,numberOfMonths:s,styles:a,today:o,mode:"default"}}function gJ(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,i=e.toMonth,s=e.fromDate,a=e.toDate;return n?s=Ci(n):t&&(s=new Date(t,0,1)),i?a=Yp(i):r&&(a=new Date(r,11,31)),{fromDate:s?Cu(s):void 0,toDate:a?Cu(a):void 0}}var r8=_.createContext(void 0);function vJ(e){var t,r=e.initialProps,n=mJ(),i=gJ(r),s=i.fromDate,a=i.toDate,o=(t=r.captionLayout)!==null&&t!==void 0?t:n.captionLayout;o!=="buttons"&&(!s||!a)&&(o="buttons");var l;(s1(r)||Tm(r)||Pm(r))&&(l=r.onSelect);var c=At(At(At({},n),r),{captionLayout:o,classNames:At(At({},n.classNames),r.classNames),components:At({},r.components),formatters:At(At({},n.formatters),r.formatters),fromDate:s,labels:At(At({},n.labels),r.labels),mode:r.mode||n.mode,modifiers:At(At({},n.modifiers),r.modifiers),modifiersClassNames:At(At({},n.modifiersClassNames),r.modifiersClassNames),onSelect:l,styles:At(At({},n.styles),r.styles),toDate:a});return u.jsx(r8.Provider,{value:c,children:e.children})}function Ar(){var e=_.useContext(r8);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function n8(e){var t=Ar(),r=t.locale,n=t.classNames,i=t.styles,s=t.formatters.formatCaption;return u.jsx("div",{className:n.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:s(e.displayMonth,{locale:r})})}function yJ(e){return u.jsx("svg",At({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:u.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.7
43278175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function i8(e){var t,r,n=e.onChange,i=e.value,s=e.children,a=e.caption,o=e.className,l=e.style,c=Ar(),d=(r=(t=c.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&r!==void 0?r:yJ;return u.jsxs("div",{className:o,style:l,children:[u.jsx("span",{className:c.classNames.vhidden,children:e["aria-label"]}),u.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:i,onChange:n,children:s}),u.jsxs("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[a,u.jsx(d,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function bJ(e){var t,r=Ar(),n=r.fromDate,i=r.toDate,s=r.styles,a=r.locale,o=r.formatters.formatMonthCaption,l=r.classNames,c=r.components,d=r.labels.labelMonthDropdown;if(!n)return u.jsx(u.Fragment,{});if(!i)return u.jsx(u.Fragment,{});var h=[];if(gX(n,i))for(var p=Ci(n),f=n.getMonth();f<=i.getMonth();f++)h.push(Zb(p,f));else for(var p=Ci(new Date),f=0;f<=11;f++)h.push(Zb(p,f));var y=function(b){var w=Number(b.target.value),x=Zb(Ci(e.displayMonth),w);e.onChange(x)},v=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:i8;return u.jsx(v,{name:"months","aria-label":d(),className:l.dropdown_month,style:s.dropdown_month,onChange:y,value:e.displayMonth.getMonth(),caption:o(e.displayMonth,{locale:a}),children:h.map(function(b){return u.jsx("option",{value:b.getMonth(),children:o(b,{locale:a})},b.getMonth())})})}
432function wJ(e){var t,r=e.displayMonth,n=Ar(),i=n.fromDate,s=n.toDate,a=n.locale,o=n.styles,l=n.classNames,c=n.components,d=n.formatters.formatYearCaption,h=n.labels.labelYearDropdown,p=[];if(!i)return u.jsx(u.Fragment,{});if(!s)return u.jsx(u.Fragment,{});for(var f=i.getFullYear(),y=s.getFullYear(),v=f;v<=y;v++)p.push(y3(zL(new Date),v));var b=function(x){var S=y3(Ci(r),Number(x.target.value));e.onChange(S)},w=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:i8;return u.jsx(w,{name:"years","aria-label":h(),className:l.dropdown_year,style:o.dropdown_year,onChange:b,value:r.getFullYear(),caption:d(r,{locale:a}),children:p.map(function(x){return u.jsx("option",{value:x.getFullYear(),children:d(x,{locale:a})},x.getFullYear())})})}function xJ(e,t){var r=_.useState(e),n=r[0],i=r[1],s=t===void 0?n:t;return[s,i]}function _J(e){var t=e.month,r=e.defaultMonth,n=e.today,i=t||r||n||new Date,s=e.toDate,a=e.fromDate,o=e.numberOfMonths,l=o===void 0?1:o;if(s&&Gp(s,i)<0){var c=-1*(l-1);i=pa(s,c)}return a&&Gp(i,a)<0&&(i=a),Ci(i)}function kJ(){var e=Ar(),t=_J(e),r=xJ(t,e.month),n=r[0],i=r[1],s=function(a){var o;if(!e.disableNavigation){var l=Ci(a);i(l),(o=e.onMonthChange)===null||o===void 0||o.call(e,l)}};return[n,s]}function SJ(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,i=Ci(e),s=Ci(pa(i,n)),a=Gp(s,i),o=[],l=0;l<a;l++){var c=pa(i,l);o.push(c)}return r&&(o=o.reverse()),o}function NJ(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,i=t.numberOfMonths,s=i===void 0?1:i,a=n?s:1,o=Ci(e);if(!r)return pa(o,a);var l=Gp(r,e);if(!(l<s))return pa(o,a)}}function EJ(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,i=t.numberOfMonths,s=i===void 0?1:i,a=n?s:1,o=Ci(e);if(!r)return pa(o,-a);var l=Gp(o,r);if(!(l<=0))return pa(o,-a)}}var s8=_.createContext(void 0);function CJ(e){var t=Ar(),r=kJ(),n=r[0],i=r[1],s=SJ(n,t),a=NJ(n,t),o=EJ(n,t),l=function(h){return s.some(function(p){return rk(h,p)})},c=function(h,p){l(h)||(p&&tk(h,p)?i(pa(h,1+t.numberOfMonths*-1)):i(h))},d={currentMonth:n,displayMonths:s,goToMonth:i,goToDate:c,previousMonth:o,nextMonth:a,isDateDisplayed:l};return u.jsx(s8.Provider,{value:d,children:e.children})}function Om(){var e=_.useContext(s8);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function b3(e){var t,r=Ar(),n=r.classNames,i=r.styles,s=r.components,a=Om().goToMonth,o=function(d){a(pa(d,e.displayIndex?-e.dis
432playIndex:0))},l=(t=s==null?void 0:s.CaptionLabel)!==null&&t!==void 0?t:n8,c=u.jsx(l,{id:e.id,displayMonth:e.displayMonth});return u.jsxs("div",{className:n.caption_dropdowns,style:i.caption_dropdowns,children:[u.jsx("div",{className:n.vhidden,children:c}),u.jsx(bJ,{onChange:o,displayMonth:e.displayMonth}),u.jsx(wJ,{onChange:o,displayMonth:e.displayMonth})]})}function jJ(e){return u.jsx("svg",At({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:u.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function AJ(e){return u.jsx("svg",At({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:u.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var H0=_.forwardRef(function(e,t){var r=Ar(),n=r.classNames,i=r.styles,s=[n.button_reset,n.button];e.className&&s.push(e.className);var a=s.join(" "),o=At(At({},i.button_reset),i.button);return e.style&&Object.assign(o,e.style),u.jsx("button",At({},e,{ref:t,type:"button",className:a,style:o}))});function TJ(e){var t,r,n=Ar(),i=n.dir,s=n.locale,a=n.classNames,o=n.styles,l=n.labels,c=l.labelPrevious,d=l.labelNext,h=n.components;if(!e.nextMonth&&!e.previousMonth)return u.jsx(u.Fragment,{});var p=c(e.previousMonth,{locale:s}),f=[a.nav_button,a.nav_button_previous].join(" "),y=d(e.nextMonth,{locale:s}),v=[a.nav_button,a.nav_button_next].join(" "),b=(t=h==null?void 0:h.IconRight)!==null&&t!==void 0?t:AJ,w=(r=h==null?void 0:h.IconLeft)!==null&&r!==void 0?r:jJ;return u.jsxs("div",{className:a.nav,style:o.nav,children:[!e.hidePrevious&&u.jsx(H0,{name:"previous-month","aria-label":p,className:f,style:o.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:i==="rtl"?u.jsx(b,{className:a.nav_icon,style:o.nav_icon}):u.jsx(w,{className:a.nav_icon,style:o.nav_icon})}),!e.hideNext&&u.jsx(H0,{name:"next-month","aria-label":y,className:v,style:o.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:i==="rtl"?u.jsx(w,{className:a.nav_icon,style:o.nav_icon}):u.jsx(b,{className:a.nav_icon,style:o.nav_icon})})]})}function w3(e){var t=Ar().numberOfMonths,r=Om(),n=r.previousMonth,i=r.nextMonth,s=r.goToMonth,a=r.displayMonths,o=a.findIndex(function(y){return rk(e.displayMonth,y)}),l=o===0,c=o===a.length-1,d=t>1&&(l||!c),h=t>1&&(c||!l),p=function(){n&&s(n)},f=function(){i&&s(i)};return u.jsx(TJ,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:h,nextMonth:i,previousMonth:n,onPreviousClick:p,onNextClick:f})}function PJ(e){var t,r=Ar(),n=r.classNames,i=r.disableNavigation,s=r.styles,a=r.captionLayout,o=r.components,l=(t=o==null?void 0:o.CaptionLabel)!==null&&t!==void 0?t:n8,c;return i?c=u.jsx(l,{id:e.id,displayMonth:e.displayMonth}):a==="dropdown"?c=u.jsx(b3,{displayMonth:e.displayMonth,id:e.id}):a==="dropdown-buttons"?c=u.jsxs(u.Fragment,{children:[u.jsx(b3,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),u.jsx(w3,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=u.jsxs(u.Fragment,{children:[u.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),u.jsx(w3,{displayMonth:e.displayMonth,id:e.id})]}),u.jsx("div",{className:n.caption,style:s.caption,children:c})}
432function OJ(e){var t=Ar(),r=t.footer,n=t.styles,i=t.classNames.tfoot;return r?u.jsx("tfoot",{className:i,style:n.tfoot,children:u.jsx("tr",{children:u.jsx("td",{colSpan:8,children:r})})}):u.jsx(u.Fragment,{})}function RJ(e,t,r){for(var n=r?Eu(new Date):eo(new Date,{locale:e,weekStartsOn:t}),i=[],s=0;s<7;s++){var a=Fn(n,s);i.push(a)}return i}function LJ(){var e=Ar(),t=e.classNames,r=e.styles,n=e.showWeekNumber,i=e.locale,s=e.weekStartsOn,a=e.ISOWeek,o=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=RJ(i,s,a);return u.jsxs("tr",{style:r.head_row,className:t.head_row,children:[n&&u.jsx("td",{style:r.head_cell,className:t.head_cell}),c.map(function(d,h){return u.jsx("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":l(d,{locale:i}),children:o(d,{locale:i})},h)})]})}function IJ(){var e,t=Ar(),r=t.classNames,n=t.styles,i=t.components,s=(e=i==null?void 0:i.HeadRow)!==null&&e!==void 0?e:LJ;return u.jsx("thead",{style:n.head,className:r.head,children:u.jsx(s,{})})}function FJ(e){var t=Ar(),r=t.locale,n=t.formatters.formatDay;return u.jsx(u.Fragment,{children:n(e.date,{locale:r})})}var nk=_.createContext(void 0);function DJ(e){if(!Tm(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return u.jsx(nk.Provider,{value:t,children:e.children})}return u.jsx(MJ,{initialProps:e.initialProps,children:e.children})}function MJ(e){var t=e.initialProps,r=e.children,n=t.selected,i=t.min,s=t.max,a=function(c,d,h){var p,f;(p=t.onDayClick)===null||p===void 0||p.call(t,c,d,h);var y=!!(d.selected&&i&&(n==null?void 0:n.length)===i);if(!y){var v=!!(!d.selected&&s&&(n==null?void 0:n.length)===s);if(!v){var b=n?t8([],n):[];if(d.selected){var w=b.findIndex(function(x){return pi(c,x)});b.splice(w,1)}else b.push(c);(f=t.onSelect)===null||f===void 0||f.call(t,b,c,d,h)}}},o={disabled:[]};n&&o.disabled.push(function(c){var d=s&&n.length>s-1,h=n.some(function(p){return pi(p,c)});return!!(d&&!h)});var l={selected:n,onDayClick:a,modifiers:o};return u.jsx(nk.Provider,{value:l,children:r})}function ik(){var e=_.useContext(nk);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function $J(e,t){var r=t||{},n=r.from,i=r.to;return n&&i?pi(i,e)&&pi(n,e)?void 0:pi(i,e)?{from:i,to:void 0}:pi(n,e)?void 0:xx(n,e)?{from:e,to:i}:{from:n,to:e}:i?xx(e,i)?{from:i,to:e}:{from:e,to:i}:n?tk(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var sk=_.createContext(void 0);function BJ(e){if(!Pm(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return u.jsx(sk.Provider,{value:t,children:e.children})}return u.jsx(qJ,{initialProps:e.initialProps,children:e.children})}function qJ(e){var t=e.initialProps,r=e.children,n=t.selected,i=n||{},s=i.from,a=i.to,o=t.min,l=t.max,c=function(f,y,v){var b,w;(b=t.onDayClick)===null||b===void 0||b.call(t,f,y,v);var x=$J(f,n);(w=t.onSelect)===null||w===void 0||w.call(t,x,f,y,v)},d={range_start:[],range_end:[],range_middle:[],disabled:[]};if(s?(d.range_start=[s],a?(d.range_end=[a],pi(s,a)||(d.range_middle=[{after:s,before:a}])):d.range_end=[s]):a&&(d.range_start=[a],d.range_end=[a]),o&&(s&&!a&&d.disabled.push({after:Yb(s,o-1),before:Fn(s,o-1)}),s&&a&&d.disabled.push({after:s,before:Fn(s,o-1)}),!s&&a&&d.disabled.push({after:Yb(a,o-1),before:Fn(a,o-1)})),l){if(s&&!a&&(d.disabled.push({before:Fn(s,-l+1)}),d.disabled.push({after:Fn(s,l-1)})),s&&a){var h=za(a,s)+1,p=l-h;d.disabled.push({before:Yb(s,p)}),d.disabled.push({after:Fn(a,p)})}!s&&a&&(d.disabled.push({before:Fn(a,-l+1)}),d.disabled.push({after:Fn(a,l-1)}))}return u.jsx(sk.Provider,{value:{selected:n,onDayClick:c,modifiers:d},children:r})}function ak(){var e=_.useContext(sk);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Fv(e){return Array.isArray(e)?t8([],e):e!==void 0?[e]:[]}function UJ(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],i=r[1];t[n]=Fv(i)}),t}var ma;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(ma||(ma={}));var zJ=ma.Selected,xo=ma.Disabled,HJ=ma.Hidden,VJ=ma.Today,Xb=ma.RangeEnd,Jb=ma.RangeMiddle,Qb=ma.RangeStart,WJ=ma.Outside;function KJ(e,t,r){var n,i=(n={},n[zJ]=Fv(e.selected),n[xo]=Fv(e.disabled),n[HJ]=Fv(e.hidden),n[VJ]=[e.today],n[Xb]=[],n[Jb]=[],n[Qb]=[],n[WJ]=[],n);return e.fromDate&&i[xo].push({before:e.fromDate}),e.toDate&&i[xo].push({after:e.toDate}),Tm(e)?i[xo]=i[xo].concat(t.modifiers[xo]):Pm(e)&&(i[xo]=i[xo].concat(r.modifiers[xo]),i[Qb]=r.modifiers[Qb],i[Jb]=r.modifiers[Jb],i[Xb]=r.modifiers[Xb]),i}var a8=_.createContext(void 0);
432function GJ(e){var t=Ar(),r=ik(),n=ak(),i=KJ(t,r,n),s=UJ(t.modifiers),a=At(At({},i),s);return u.jsx(a8.Provider,{value:a,children:e.children})}function o8(){var e=_.useContext(a8);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function YJ(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function ZJ(e){return!!(e&&typeof e=="object"&&"from"in e)}function XJ(e){return!!(e&&typeof e=="object"&&"after"in e)}function JJ(e){return!!(e&&typeof e=="object"&&"before"in e)}function QJ(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function eQ(e,t){var r,n=t.from,i=t.to;if(n&&i){var s=za(i,n)<0;s&&(r=[i,n],n=r[0],i=r[1]);var a=za(e,n)>=0&&za(i,e)>=0;return a}return i?pi(i,e):n?pi(n,e):!1}function tQ(e){return J_(e)}function rQ(e){return Array.isArray(e)&&e.every(J_)}function nQ(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(tQ(r))return pi(e,r);if(rQ(r))return r.includes(e);if(ZJ(r))return eQ(e,r);if(QJ(r))return r.dayOfWeek.includes(e.getDay());if(YJ(r)){var n=za(r.before,e),i=za(r.after,e),s=n>0,a=i<0,o=xx(r.before,r.after);return o?a&&s:s||a}return XJ(r)?za(e,r.after)>0:JJ(r)?za(r.before,e)>0:typeof r=="function"?r(e):!1})}function ok(e,t,r){var n=Object.keys(t).reduce(function(s,a){var o=t[a];return nQ(e,o)&&s.push(a),s},[]),i={};return n.forEach(function(s){return i[s]=!0}),r&&!rk(e,r)&&(i.outside=!0),i}function iQ(e,t){for(var r=Ci(e[0]),n=Yp(e[e.length-1]),i,s,a=r;a<=n;){var o=ok(a,t),l=!o.disabled&&!o.hidden;if(!l){a=Fn(a,1);continue}if(o.selected)return a;o.today&&!s&&(s=a),i||(i=a),a=Fn(a,1)}return s||i}var sQ=365;function l8(e,t){var r=t.moveBy,n=t.direction,i=t.context,s=t.modifiers,a=t.retry,o=a===void 0?{count:0,lastFocused:e}:a,l=i.weekStartsOn,c=i.fromDate,d=i.toDate,h=i.locale,p={day:Fn,week:wx,month:pa,year:gZ,startOfWeek:function(b){return i.ISOWeek?Eu(b):eo(b,{locale:h,weekStartsOn:l})},endOfWeek:function(b){return i.ISOWeek?HL(b):Q_(b,{locale:h,weekStartsOn:l})}},f=p[r](e,n==="after"?1:-1);n==="before"&&c?f=vZ([c,f]):n==="after"&&d&&(f=yZ([d,f]));var y=!0;if(s){var v=ok(f,s);y=!v.disabled&&!v.hidden}return y?f:o.count>sQ?o.lastFocused:l8(f,{moveBy:r,direction:n,context:i,modifiers:s,retry:At(At({},o),{count:o.count+1})})}var c8=_.createContext(void 0);function aQ(e){var t=Om(),r=o8(),n=_.useState(),i=n[0],s=n[1],a=_.useState(),o=a[0],l=a[1],c=iQ(t.displayMonths,r),d=i??(o&&t.isDateDisplayed(o))?o:c,h=function(){l(i),s(void 0)},p=function(b){s(b)},f=Ar(),y=function(b,w){if(i){var x=l8(i,{moveBy:b,direction:w,context:f,modifiers:r});pi(i,x)||(t.goToDate(x,i),p(x))}},v={focusedDay:i,focusTarget:d,blur:h,focus:p,focusDayAfter:function(){return y("day","after")},focusDayBefore:function(){return y("day","before")},focusWeekAfter:function(){return y("week","after")},focusWeekBefore:function(){return y("week","before")},focusMonthBefore:function(){return y("month","before")},focusMonthAfter:function(){return y("month","after")},focusYearBefore:function(){return y("year","before")},focusYearAfter:function(){return y("year","after")},focusStartOfWeek:function(){return y("startOfWeek","before")},focusEndOfWeek:function(){return y("endOfWeek","after")}};return u.jsx(c8.Provider,{value:v,children:e.children})}function lk(){var e=_.useContext(c8);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function oQ(e,t){var r=o8(),n=ok(e,r,t);return n}var ck=_.createContext(void 0);function lQ(e){if(!s1(e.initialProps)){var t={selected:void 0};return u.jsx(ck.Provider,{value:t,children:e.children})}return u.jsx(cQ,{initialProps:e.initialProps,children:e.children})}function cQ(e){var t=e.initialProps,r=e.children,n=function(s,a,o){var l,c,d;if((l=t.onDayClick)===null||l===void 0||l.call(t,s,a,o),a.selected&&!t.required){(c=t.onSelect)===null||c===void 0||c.call(t,void 0,s,a,o);return}(d=t.onSelect)===null||d===void 0||d.call(t,s,s,a,o)},i={selected:t.selected,onDayClick:n};return u.jsx(ck.Provider,{value:i,children:r})}function u8(){var e=_.useContext(ck);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function uQ(e,t){var r=Ar(),n=u8(),i=ik(),s=ak(),a=lk(),o=a.focusDayAfter,l=a.focusDayBefore,c=a.focusWeekAfter,d=a.focusWeekBefore,h=a.blur,p=a.focus,f=a.focusMonthBefore,y=a.focusMonthAfter,v=a.focusYearBefore,b=a.focusYearAfter,w=a.focusStartOfWeek,x=a.focusEndOfWeek,S=function(se){var F,D,$,M;
432s1(r)?(F=n.onDayClick)===null||F===void 0||F.call(n,e,t,se):Tm(r)?(D=i.onDayClick)===null||D===void 0||D.call(i,e,t,se):Pm(r)?($=s.onDayClick)===null||$===void 0||$.call(s,e,t,se):(M=r.onDayClick)===null||M===void 0||M.call(r,e,t,se)},E=function(se){var F;p(e),(F=r.onDayFocus)===null||F===void 0||F.call(r,e,t,se)},T=function(se){var F;h(),(F=r.onDayBlur)===null||F===void 0||F.call(r,e,t,se)},W=function(se){var F;(F=r.onDayMouseEnter)===null||F===void 0||F.call(r,e,t,se)},z=function(se){var F;(F=r.onDayMouseLeave)===null||F===void 0||F.call(r,e,t,se)},B=function(se){var F;(F=r.onDayPointerEnter)===null||F===void 0||F.call(r,e,t,se)},P=function(se){var F;(F=r.onDayPointerLeave)===null||F===void 0||F.call(r,e,t,se)},X=function(se){var F;(F=r.onDayTouchCancel)===null||F===void 0||F.call(r,e,t,se)},O=function(se){var F;(F=r.onDayTouchEnd)===null||F===void 0||F.call(r,e,t,se)},A=function(se){var F;(F=r.onDayTouchMove)===null||F===void 0||F.call(r,e,t,se)},K=function(se){var F;(F=r.onDayTouchStart)===null||F===void 0||F.call(r,e,t,se)},R=function(se){var F;(F=r.onDayKeyUp)===null||F===void 0||F.call(r,e,t,se)},le=function(se){var F;switch(se.key){case"ArrowLeft":se.preventDefault(),se.stopPropagation(),r.dir==="rtl"?o():l();break;case"ArrowRight":se.preventDefault(),se.stopPropagation(),r.dir==="rtl"?l():o();break;case"ArrowDown":se.preventDefault(),se.stopPropagation(),c();break;case"ArrowUp":se.preventDefault(),se.stopPropagation(),d();break;case"PageUp":se.preventDefault(),se.stopPropagation(),se.shiftKey?v():f();break;case"PageDown":se.preventDefault(),se.stopPropagation(),se.shiftKey?b():y();break;case"Home":se.preventDefault(),se.stopPropagation(),w();break;case"End":se.preventDefault(),se.stopPropagation(),x();break}(F=r.onDayKeyDown)===null||F===void 0||F.call(r,e,t,se)},oe={onClick:S,onFocus:E,onBlur:T,onKeyDown:le,onKeyUp:R,onMouseEnter:W,onMouseLeave:z,onPointerEnter:B,onPointerLeave:P,onTouchCancel:X,onTouchEnd:O,onTouchMove:A,onTouchStart:K};return oe}function dQ(){var e=Ar(),t=u8(),r=ik(),n=ak(),i=s1(e)?t.selected:Tm(e)?r.selected:Pm(e)?n.selected:void 0;return i}function fQ(e){return Object.values(ma).includes(e)}function hQ(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var i=e.modifiersClassNames[n];if(i)r.push(i);else if(fQ(n)){var s=e.classNames["day_".concat(n)];s&&r.push(s)}}),r}function pQ(e,t){var r=At({},e.styles.day);return Object.keys(t).forEach(function(n){var i;r=At(At({},r),(i=e.modifiersStyles)===null||i===void 0?void 0:i[n])}),r}function mQ(e,t,r){var n,i,s,a=Ar(),o=lk(),l=oQ(e,t),c=uQ(e,l),d=dQ(),h=!!(a.onDayCl
432ick||a.mode!=="default");_.useEffect(function(){var W;l.outside||o.focusedDay&&h&&pi(o.focusedDay,e)&&((W=r.current)===null||W===void 0||W.focus())},[o.focusedDay,e,r,h,l.outside]);var p=hQ(a,l).join(" "),f=pQ(a,l),y=!!(l.outside&&!a.showOutsideDays||l.hidden),v=(s=(i=a.components)===null||i===void 0?void 0:i.DayContent)!==null&&s!==void 0?s:FJ,b=u.jsx(v,{date:e,displayMonth:t,activeModifiers:l}),w={style:f,className:p,children:b,role:"gridcell"},x=o.focusTarget&&pi(o.focusTarget,e)&&!l.outside,S=o.focusedDay&&pi(o.focusedDay,e),E=At(At(At({},w),(n={disabled:l.disabled,role:"gridcell"},n["aria-selected"]=l.selected,n.tabIndex=S||x?0:-1,n)),c),T={isButton:h,isHidden:y,activeModifiers:l,selectedDays:d,buttonProps:E,divProps:w};return T}function gQ(e){var t=_.useRef(null),r=mQ(e.date,e.displayMonth,t);return r.isHidden?u.jsx("div",{role:"gridcell"}):r.isButton?u.jsx(H0,At({name:"day",ref:t},r.buttonProps)):u.jsx("div",At({},r.divProps))}function vQ(e){var t=e.number,r=e.dates,n=Ar(),i=n.onWeekNumberClick,s=n.styles,a=n.classNames,o=n.locale,l=n.labels.labelWeekNumber,c=n.formatters.formatWeekNumber,d=c(Number(t),{locale:o});if(!i)return u.jsx("span",{className:a.weeknumber,style:s.weeknumber,children:d});var h=l(Number(t),{locale:o}),p=function(f){i(t,r,f)};return u.jsx(H0,{name:"week-number","aria-label":h,className:a.weeknumber,style:s.weeknumber,onClick:p,children:d})}function yQ(e){var t,r,n=Ar(),i=n.styles,s=n.classNames,a=n.showWeekNumber,o=n.components,l=(t=o==null?void 0:o.Day)!==null&&t!==void 0?t:gQ,c=(r=o==null?void 0:o.WeekNumber)!==null&&r!==void 0?r:vQ,d;return a&&(d=u.jsx("td",{className:s.cell,style:i.cell,children:u.jsx(c,{number:e.weekNumber,dates:e.dates})})),u.jsxs("tr",{className:s.row,style:i.row,children:[d,e.dates.map(function(h){return u.jsx("td",{className:s.cell,style:i.cell,role:"presentation",children:u.jsx(l,{displayMonth:e.displayMonth,date:h})},hX(h))})]})}function x3(e,t,r){for(var n=r!=null&&r.ISOWeek?HL(t):Q_(t,r),i=r!=null&&r.ISOWeek?Eu(e):eo(e,r),s=za(n,i),a=[],o=0;o<=s;o++)a.push(Fn(i,o));var l=a.reduce(function(c,d){var h=r!=null&&r.ISOWeek?ZL(d):JL(d,r),p=c.find(function(f){return f.weekNumber===h});return p?(p.dates.push(d),c):(c.push({weekNumber:h,dates:[d]}),c)},[]);return l}function bQ(e,t){var r=x3(Ci(e),Yp(e),t);if(t!=null&&t.useFixedWeeks){var n=mX(e,t);if(n<6){var i=r[r.length-1],s=i.dates[i.dates.length-1],a=wx(s,6-n),o=x3(wx(s,1),a,t);r.push.apply(r,o)}}return r}function wQ(e){var t,r,n,i=Ar(),s=i.locale,a=i.classNames,o=i.styles,l=i.hideHead,c=i.fixedWeeks,d=i.components,h=i.weekStartsOn,p=i.firstWeekContainsDate,f=i.ISOWeek,y=bQ(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:f,locale:s,weekStartsOn:h,firstWeekContainsDate:p}),v=(t=d==null?void 0:d.Head)!==null&&t!==void 0?t:IJ,b=(r=d==null?void 0:d.Row)!==null&&r!==void 0?r:yQ,w=(n=d==null?void 0:d.Footer)!==null&&n!==void 0?n:OJ;return u.jsxs("table",{id:e.id,className:a.table,style:o.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&u.jsx(v,{}),u.jsx("tbody",{className:a.tbody,style:o.tbody,children:y.map(function(x){return u.jsx(b,{displayMonth:e.displayMonth,dates:x.dates,weekNumber:x.weekNumber},x.weekNumber)})}),u.jsx(w,{displayMonth:e.displayMonth})]})}function xQ(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var _Q=xQ()?_.useLayoutEffect:_.useEffect,ew=!1,kQ=0;function _3(){return"react-day-picker-".concat(++kQ)}function SQ(e){var t,r=e??(ew?_3():null),n=_.useState(r),i=n[0],s=n[1];return _Q(function(){i===null&&s(_3())},[]),_.useEffect(function(){ew===!1&&(ew=!0)},[]),(t=e??i)!==null&&t!==void 0?t:void 0}function NQ(e){var t,r,n=Ar(),i=n.dir,s=n.classNames,a=n.styles,o=n.components,l=Om().displayMonths,c=SQ(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),d=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,h=[s.month],p=a.month,f=e.displayIndex===0,y=e.displayIndex===l.length-1,v=!f&&!y;i==="rtl"&&(t=[f,y],y=t[0],f=t[1]),f&&(h.push(s.caption_start),p=At(At({},p),a.caption_start)),y&&(h.push(s.caption_end),p=At(At({},p),a.caption_end)),v&&(h.push(s.caption_between),p=At(At({},p),a.caption_between));var b=(r=o==null?void 0:o.Caption)!==null&&r!==void 0?r:PJ;return u.jsxs("div",{className:h.join(" "),style:p,children:[u.jsx(b,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),u.jsx(wQ,{id:d,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}
vendor: 4,129 bytes, line 432
432function EQ(e){var t=Ar(),r=t.classNames,n=t.styles;return u.jsx("div",{className:r.months,style:n.months,children:e.children})}function CQ(e){var t,r,n=e.initialProps,i=Ar(),s=lk(),a=Om(),o=_.useState(!1),l=o[0],c=o[1];_.useEffect(function(){i.initialFocus&&s.focusTarget&&(l||(s.focus(s.focusTarget),c(!0)))},[i.initialFocus,l,s.focus,s.focusTarget,s]);var d=[i.classNames.root,i.className];i.numberOfMonths>1&&d.push(i.classNames.multiple_months),i.showWeekNumber&&d.push(i.classNames.with_weeknumber);var h=At(At({},i.styles.root),i.style),p=Object.keys(n).filter(function(y){return y.startsWith("data-")}).reduce(function(y,v){var b;return At(At({},y),(b={},b[v]=n[v],b))},{}),f=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:EQ;return u.jsx("div",At({className:d.join(" "),style:h,dir:i.dir,id:i.id,nonce:n.nonce,title:n.title,lang:n.lang},p,{children:u.jsx(f,{children:a.displayMonths.map(function(y,v){return u.jsx(NQ,{displayIndex:v,displayMonth:y},v)})})}))}function jQ(e){var t=e.children,r=JX(e,["children"]);return u.jsx(vJ,{initialProps:r,children:u.jsx(CJ,{children:u.jsx(lQ,{initialProps:r,children:u.jsx(DJ,{initialProps:r,children:u.jsx(BJ,{initialProps:r,children:u.jsx(GJ,{children:u.jsx(aQ,{children:t})})})})})})})}function AQ(e){return u.jsx(jQ,At({},e,{children:u.jsx(CQ,{initialProps:e})}))}function Hc({className:e,classNames:t,showOutsideDays:r=!0,...n}){return u.jsx(AQ,{showOutsideDays:r,className:Ue("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:Ue(K2({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:Ue(K2({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...i})=>u.jsx(OT,{className:"h-4 w-4"}),IconRight:({...i})=>u.jsx(g0,{className:"h-4 w-4"})},...n})}Hc.displayName="Calendar";var a1="Popover",[d8,Ble]=gs(a1,[uc]),Rm=uc(),[TQ,vc]=d8(a1),f8=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:a=!1}=e,o=Rm(t),l=_.useRef(null),[c,d]=_.useState(!1),[h,p]=qo({prop:n,defaultProp:i??!1,onChange:s,caller:a1});return u.jsx(g_,{...o,children:u.jsx(TQ,{scope:t,contentId:Ga(),triggerRef:l,open:h,onOpenChange:p,onOpenToggle:_.useCallback(()=>p(f=>!f),[p]),hasCustomAnchor:c,onCustomAnchorAdd:_.useCallback(()=>d(!0),[]),onCustomAnchorRemove:_.useCallback(()=>d(!1),[]),modal:a,children:r})})};f8.displayName=a1;var h8="PopoverAnchor",PQ=_.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,i=vc(h8,r),s=Rm(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:o}=i;return _.useEffect(()=>(a(),()=>o()),[a,o]),u.jsx(xm,{...s,...n,ref:t})});PQ.displayName=h8;var p8="PopoverTrigger",m8=_.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,i=vc(p8,r),s=Rm(r),a=qt(t,i.triggerRef),o=u.jsx(Nt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":w8(i.open
vendor: 4,476 bytes, line 432
432),...n,ref:a,onClick:Ge(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?o:u.jsx(xm,{asChild:!0,...s,children:o})});m8.displayName=p8;var uk="PopoverPortal",[OQ,RQ]=d8(uk,{forceMount:void 0}),g8=e=>{const{__scopePopover:t,forceMount:r,children:n,container:i}=e,s=vc(uk,t);return u.jsx(OQ,{scope:t,forceMount:r,children:u.jsx(ti,{present:r||s.open,children:u.jsx(Mf,{asChild:!0,container:i,children:n})})})};g8.displayName=uk;var Ef="PopoverContent",v8=_.forwardRef((e,t)=>{const r=RQ(Ef,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,s=vc(Ef,e.__scopePopover);return u.jsx(ti,{present:n||s.open,children:s.modal?u.jsx(IQ,{...i,ref:t}):u.jsx(FQ,{...i,ref:t})})});v8.displayName=Ef;var LQ=tc("PopoverContent.RemoveScroll"),IQ=_.forwardRef((e,t)=>{const r=vc(Ef,e.__scopePopover),n=_.useRef(null),i=qt(t,n),s=_.useRef(!1);return _.useEffect(()=>{const a=n.current;if(a)return zy(a)},[]),u.jsx(Sm,{as:LQ,allowPinchZoom:!0,children:u.jsx(y8,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ge(e.onCloseAutoFocus,a=>{var o;a.preventDefault(),s.current||(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Ge(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0,c=o.button===2||l;s.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:Ge(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),FQ=_.forwardRef((e,t)=>{const r=vc(Ef,e.__scopePopover),n=_.useRef(!1),i=_.useRef(!1);return u.jsx(y8,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,o;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(n.current||(o=r.triggerRef.current)==null||o.focus(),s.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=s.target;((c=r.triggerRef.current)==null?void 0:c.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),y8=_.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:d,...h}=e,p=vc(Ef,r),f=Rm(r);return Uy(),u.jsx(_m,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s,children:u.jsx(Fu,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:u.jsx(Oy,{"data-state":w8(p.open),role:"dialog",id:p.contentId,...f,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),b8="PopoverClose",DQ=_.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,i=vc(b8,r);return u.jsx(Nt.button,{type:"button",...n,ref:t,onClick:Ge(e.onClick,()=>i.onOpenChange(!1))})});DQ.displayName=b8;var MQ="PopoverArrow",$Q=_.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,i=Rm(r);return u.jsx(Ry,{...i,...n,ref:t})});$Q.displayName=MQ;function w8(e){return e?"open":"closed"}var BQ=f8,qQ=m8,UQ=g8,x8=v8;const hd=BQ,pd=qQ,Vc=_.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},i)=>u.jsx(UQ,{children:u.jsx(x8,{ref:i,align:t,sideOffset:r,className:Ue("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Vc.displayName=x8.displayName;const zQ="AIzaSyAvfK9uGWFu987qNDcihEiJLDfmPPpJXJw",k3=({fromAddress:e,toAddress:t})=>{const r=_.useRef(null),[n,i]=_.useState(!1),[s,a]=_.useState(null),[o,l]=_.useState(null),[c,d]=_.useState(null),h=_.useRef(null),p=_.useRef(null);return _.useEffect(()=>{var v;if((v=window.google)!=null&&v.maps){i(!0);return}const f=document.getElementById("google-maps-script");
432if(f){f.addEventListener("load",()=>i(!0));return}window.initGoogleMaps=()=>{i(!0)};const y=document.createElement("script");y.id="google-maps-script",y.src=`https://maps.googleapis.com/maps/api/js?key=${zQ}&language=sv&callback=initGoogleMaps`,y.async=!0,y.defer=!0,document.head.appendChild(y)},[]),_.useEffect(()=>{if(!n||!r.current||!e||!t)return;d(null),h.current||(h.current=new window.google.maps.Map(r.current,{zoom:10,center:{lat:59.3293,lng:18.0686},disableDefaultUI:!0,zoomControl:!0,styles:[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}]}),p.current=new window.google.maps.DirectionsRenderer({suppressMarkers:!1,polylineOptions:{strokeColor:"#406F83",strokeWeight:4}}),p.current.setMap(h.current)),new window.google.maps.DirectionsService().route({origin:e+", Sverige",destination:t+", Sverige",travelMode:window.google.maps.TravelMode.DRIVING},(y,v)=>{var b,w,x,S;if(v==="OK"&&y){(b=p.current)==null||b.setDirections(y);const E=(w=y.routes[0])==null?void 0:w.legs[0];E&&(a(((x=E.distance)==null?void 0:x.text)||null),l(((S=E.duration)==null?void 0:S.text)||null))}else d("Kunde inte hitta rutten")})},[n,e,t]),!e||!t?null:u.jsxs("div",{className:"p-2.5 bg-background rounded-lg border border-border/50",children:[u.jsxs("p",{className:"text-xs text-muted-foreground mb-2 flex items-center gap-1",children:[u.jsx(Fp,{className:"w-3 h-3"}),"Rutt"]}),u.jsx("div",{ref:r,className:"w-full h-32 rounded-lg bg-muted overflow-hidden"}),c?u.jsx("p",{className:"text-xs text-destructive mt-1.5",children:c}):(s||o)&&u.jsxs("p",{className:"mt-1.5 text-xs text-foreground",children:["Avstånd mellan adresser ",s,o&&`, körtid ca ${o}`]})]})},HQ="prj_live_sk_08fb1b880c9b76e32563298c631029824e047fab",_o=({value:e,onChange:t,placeholder:r="Ange adress...",id:n,required:i,allowInternational:s=!1})=>{const[a,o]=_.useState([]),[l,c]=_.useState(!1),[d,h]=_.useState(!1),[p,f]=_.useState(null),y=_.useRef(null),v=_.useRef(null),b=_.useRef(!1),w=B=>/\d+/.test(B),x=_.useRef(null),S=_.useCallback(async B=>{if(B.length<3){o([]);return}h(!0);try{const P=s?"":"&country=SE",X=await fetch(`https://api.radar.io/v1/search/autocomplete?query=${encodeURIComponent(B)}${P}&layers=address&limit=5`,{headers:{Authorization:HQ}});if(X.ok){const A=((await X.json()).addresses||[]).filter(K=>w(K.formattedAddress));o(A),c(A.length>0)}}catch(P){console.error("Radar autocomplete error:",P)}finally{h(!1)}},[]),E=B=>{const P=B.target.value;t(P),f(null),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{S(P)},300)},T=B=>{b.current=!0,t(B.formattedAddress),f(!0),c(!1),o([])},W=()=>{setTimeout(()=>{if(c(!1),b.current){b.current=!1;return}e&&f(w(e))},200)},z=()=>{a.length>0&&c(!0)};return _.useEffect(()=>{const B=P=>{v.current&&!v.current.contains(P.target)&&c(!1)};return document.addEventListener("click",B),()=>document.removeEventListener("click",B)},[]),_.useEffect(()=>()=>{x.current&&clearTimeout(x.current)},[]),u.jsxs("div",{ref:v,className:"relative",children:[u.jsxs("div",{className:"relative",children:[u.jsx(tr,{ref:y,id:n,value:e,onChange:E,onBlur:W,onFocus:z,placeholder:r,"aria-required":i,"aria-autocomplete":"list","aria-expanded":l,className:Ue("pr-10 transition-colors",p===!0&&"border-green-500 focus:border-green-500",p===!1&&"border-destructive focus:border-destructive")}
vendor: 9,600 bytes, line 432
432),u.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:d?u.jsx(r_,{className:"w-4 h-4 text-muted-foreground animate-spin"}):p===!0?u.jsx(ym,{className:"w-4 h-4 text-green-500"}):p===!1?u.jsx(T2,{className:"w-4 h-4 text-destructive"}):u.jsx(Fp,{className:"w-4 h-4 text-muted-foreground"})})]}),l&&a.length>0&&u.jsx("ul",{className:"absolute z-50 w-full mt-1 bg-background border border-border rounded-lg shadow-lg max-h-[200px] overflow-y-auto",role:"listbox",children:a.map((B,P)=>u.jsxs("li",{onClick:()=>T(B),className:"px-3 py-2.5 cursor-pointer hover:bg-muted/50 transition-colors border-b border-border/50 last:border-b-0 flex items-start gap-2",role:"option",children:[u.jsx(Fp,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),u.jsx("span",{className:"text-sm text-foreground",children:B.formattedAddress})]},P))}),p===!1&&e&&u.jsxs("p",{className:"text-xs text-destructive mt-1 flex items-center gap-1",children:[u.jsx(T2,{className:"w-3 h-3"}),"Ange en fullständig adress med gatunummer"]})]})};function VQ(e,t){return _.useReducer((r,n)=>t[r][n]??r,e)}var dk="ScrollArea",[_8,qle]=gs(dk),[WQ,Fs]=_8(dk),k8=_.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:i,scrollHideDelay:s=600,...a}=e,[o,l]=_.useState(null),[c,d]=_.useState(null),[h,p]=_.useState(null),[f,y]=_.useState(null),[v,b]=_.useState(null),[w,x]=_.useState(0),[S,E]=_.useState(0),[T,W]=_.useState(!1),[z,B]=_.useState(!1),P=qt(t,O=>l(O)),X=qy(i);return u.jsx(WQ,{scope:r,type:n,dir:X,scrollHideDelay:s,scrollArea:o,viewport:c,onViewportChange:d,content:h,onContentChange:p,scrollbarX:f,onScrollbarXChange:y,scrollbarXEnabled:T,onScrollbarXEnabledChange:W,scrollbarY:v,onScrollbarYChange:b,scrollbarYEnabled:z,onScrollbarYEnabledChange:B,onCornerWidthChange:x,onCornerHeightChange:E,children:u.jsx(Nt.div,{dir:X,...a,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":w+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});k8.displayName=dk;var S8="ScrollAreaViewport",N8=_.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:i,...s}=e,a=Fs(S8,r),o=_.useRef(null),l=qt(t,o,a.onViewportChange);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),u.jsx(Nt.div,{"data-radix-scroll-area-viewport":"",...s,ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:u.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});N8.displayName=S8;var ro="ScrollAreaScrollbar",fk=_.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=Fs(ro,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:a}=i,o=e.orientation==="horizontal";return _.useEffect(()=>(o?s(!0):a(!0),()=>{o?s(!1):a(!1)}),[o,s,a]),i.type==="hover"?u.jsx(KQ,{...n,ref:t,forceMount:r}):i.type==="scroll"?u.jsx(GQ,{...n,ref:t,forceMount:r}):i.type==="auto"?u.jsx(E8,{...n,ref:t,forceMount:r}):i.type==="always"?u.jsx(hk,{...n,ref:t}):null});fk.displayName=ro;var KQ=_.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=Fs(ro,e.__scopeScrollArea),[s,a]=_.useState(!1);return _.useEffect(()=>{const o=i.scrollArea;let l=0;if(o){const c=()=>{window.clearTimeout(l),a(!0)},d=()=>{l=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return o.addEventListener("pointerenter",c),o.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),o.removeEventListener("pointerenter",c),o.removeEventListener("pointerleave",d)}}},[i.scrollArea,i.scrollHideDelay]),u.jsx(ti,{present:r||s,children:u.jsx(E8,{"data-state":s?"visible":"hidden",...n,ref:t})})}),GQ=_.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=Fs(ro,e.__scopeScrollArea),s=e.orientation==="horizontal",a=l1(()=>l("SCROLL_END"),100),[o,l]=VQ("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return _.useEffect(()=>{if(o==="idle"){const c=window.setTimeout(()=>l("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(c)}},[o,i.scrollHideDelay,l]),_.useEffect(()=>{const c=i.viewport,d=s?"scrollLeft":"scrollTop";if(c){let h=c[d];const p=()=>{const f=c[d];h!==f&&(l("SCROLL"),a()),h=f};return c.addEventListener("scroll",p),()=>c.removeEventListener("scroll",p)}},[i.viewport,s,l,a]),u.jsx(ti,{present:r||o!=="hidden",children:u.jsx(hk,{"data-state":o==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:Ge(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Ge(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),E8=_.forwardRef((e,t)=>{const r=Fs(ro,e.__scopeScrollArea),{forceMount:n,...i}=e,[s,a]=_.useState(!1),o=e.orientation==="horizontal",l=l1(()=>{if(r.viewport){const c=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;a(o?c:d)}},10);return Cf(r.viewport,l),Cf(r.content,l),u.jsx(ti,{present:n||s,children:u.jsx(hk,{"data-state":s?"visible":"hidden",...i,ref:t})})}),hk=_.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,i=Fs(ro,e.__scopeScrollArea),s=_.useRef(null),a=_.useRef(0),[o,l]=_.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=P8(o.viewport,o.content),d={...n,sizes:o,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:p=>s.current=p,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:p=>a.current=p};function h(p,f){return eee(p,a.current,o,f)}return r==="horizontal"?u.jsx(YQ,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&s.current){const p=i.viewport.scrollLeft,f=S3(p,o,i.dir);s.current.style.transform=`translate3d(${f}px, 0, 0)`}},onWheelScroll:p=>{i.viewport&&(i.viewport.scrollLeft=p)},onDragScroll:p=>{i.viewport&&(i.viewport.scrollLeft=h(p,i.dir))}}):r==="vertical"?u.jsx(ZQ,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&s.current){const p=i.viewport.scrollTop,f=S3(p,o);s.current.style.transform=`translate3d(0, ${f}px, 0)`}},onWheelScroll:p=>{i.viewport&&(i.viewport.scrollTop=p)},onDragScroll:p=>{i.viewport&&(i.viewport.scrollTop=h(p))}}):null}),YQ=_.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...i}=e,s=Fs(ro,e.__scopeScrollArea),[a,o]=_.useState(),l=_.useRef(null),c=qt(t,l,s.onScrollbarXChange);return _.useEffect(()=>{l.current&&o(getComputedStyle(l.current))},[l]),u.jsx(j8,{"data-orientation":"horizontal",...i,ref:c,sizes:r,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":o1(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,h)=>{if(s.viewport){const p=s.viewport.scrollLeft+d.deltaX;e.onWheelScroll(p),R8(p,h)&&d.preventDefault()}},onResize:()=>{l.current&&s.viewport&&a&&n({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:W0(a.paddingLeft),paddingEnd:W0(a.paddingRight)}})}})}),ZQ=_.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...i}=e,s=Fs(ro,e.__scopeScrollArea),[a,o]=_.useState(),l=_.useRef(null),c=qt(t,l,s.onScrollbarYChange);return _.useEffect(()=>{l.current&&o(getComputedStyle(l.current))},[l]),u.jsx(j8,{"data-orientation":"vertical",...i,ref:c,sizes:r,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":o1(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,h)=>{if(s.viewport){const p=s.viewport.scrollTop+d.deltaY;e.onWheelScroll(p),R8(p,h)&&d.preventDefault()}},onResize:()=>{l.current&&s.viewport&&a&&n({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:W0(a.paddingTop),paddingEnd:W0(a.paddingBottom)}})}})}),[XQ,C8]=_8(ro),j8=_.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:i,onThumbChange:s,onThumbPointerUp:a,onThumbPointerDown:o,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:d,onResize:h,...p}=e,f=Fs(ro,r),[y,v]=_.useState(null),b=qt(t,P=>v(P)),w=_.useRef(null),x=_.useRef(""),S=f.viewport,E=n.content-n.viewport,T=gn(d),W=gn(l),z=l1(h,10);function B(P){if(w.current){const X=P.clientX-w.current.left,O=P.clientY-w.current.top;c({x:X,y:O})}}return _.useEffect(()=>{const P=X=>{const O=X.target;(y==null?void 0:y.contains(O))&&T(X,E)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[S,y,E,T]),_.useEffect(W,[n,W]),Cf(y,z),Cf(f.content,z),u.jsx(XQ,{scope:r,scrollbar:y,hasThumb:i,onThumbChange:gn(s),onThumbPointerUp:gn(a),onThumbPositionChange:W,onThumbPointerDown:gn(o),children:u.jsx(Nt.div,{...p,ref:b,style:{position:"absolute",...p.style},onPointerDown:Ge(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),w.current=y.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),B(P))}),onPointerMove:Ge(e.onPointerMove,B),onPointerUp:Ge(e.onPointerUp,P=>{const X=P.target;X.hasPointerCapture(P.pointerId)&&X.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=x.current,f.viewport&&(f.viewport.style.scrollBehavior=""),w.current=null})})})}),V0="ScrollAreaThumb",A8=_.forwardRef((e,t)=>
vendor: 5,909 bytes, line 432
432{const{forceMount:r,...n}=e,i=C8(V0,e.__scopeScrollArea);return u.jsx(ti,{present:r||i.hasThumb,children:u.jsx(JQ,{ref:t,...n})})}),JQ=_.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...i}=e,s=Fs(V0,r),a=C8(V0,r),{onThumbPositionChange:o}=a,l=qt(t,h=>a.onThumbChange(h)),c=_.useRef(void 0),d=l1(()=>{c.current&&(c.current(),c.current=void 0)},100);return _.useEffect(()=>{const h=s.viewport;if(h){const p=()=>{if(d(),!c.current){const f=tee(h,o);c.current=f,o()}};return o(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[s.viewport,d,o]),u.jsx(Nt.div,{"data-state":a.hasThumb?"visible":"hidden",...i,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Ge(e.onPointerDownCapture,h=>{const f=h.target.getBoundingClientRect(),y=h.clientX-f.left,v=h.clientY-f.top;a.onThumbPointerDown({x:y,y:v})}),onPointerUp:Ge(e.onPointerUp,a.onThumbPointerUp)})});A8.displayName=V0;var pk="ScrollAreaCorner",T8=_.forwardRef((e,t)=>{const r=Fs(pk,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?u.jsx(QQ,{...e,ref:t}):null});T8.displayName=pk;var QQ=_.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,i=Fs(pk,r),[s,a]=_.useState(0),[o,l]=_.useState(0),c=!!(s&&o);return Cf(i.scrollbarX,()=>{var h;const d=((h=i.scrollbarX)==null?void 0:h.offsetHeight)||0;i.onCornerHeightChange(d),l(d)}),Cf(i.scrollbarY,()=>{var h;const d=((h=i.scrollbarY)==null?void 0:h.offsetWidth)||0;i.onCornerWidthChange(d),a(d)}),c?u.jsx(Nt.div,{...n,ref:t,style:{width:s,height:o,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function W0(e){return e?parseInt(e,10):0}function P8(e,t){const r=e/t;return isNaN(r)?0:r}function o1(e){const t=P8(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function eee(e,t,r,n="ltr"){const i=o1(r),s=i/2,a=t||s,o=i-a,l=r.scrollbar.paddingStart+a,c=r.scrollbar.size-r.scrollbar.paddingEnd-o,d=r.content-r.viewport,h=n==="ltr"?[0,d]:[d*-1,0];return O8([l,c],h)(e)}function S3(e,t,r="ltr"){const n=o1(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-i,a=t.content-t.viewport,o=s-n,l=r==="ltr"?[0,a]:[a*-1,0],c=px(e,l);return O8([0,a],[0,o])(c)}function O8(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function R8(e,t){return e>0&&e<t}var tee=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function i(){const s={left:e.scrollLeft,top:e.scrollTop},a=r.left!==s.left,o=r.top!==s.top;(a||o)&&t(),r=s,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)};function l1(e,t){const r=gn(e),n=_.useRef(0);return _.useEffect(()=>()=>window.clearTimeout(n.current),[]),_.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Cf(e,t){const r=gn(t);zn(()=>{let n=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return i.observe(e),()=>{window.cancelAnimationFrame(n),i.unobserve(e)}}},[e,r])}var L8=k8,ree=N8,nee=T8;const I8=_.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(L8,{ref:n,className:Ue("relative overflow-hidden",e),...r,children:[u.jsx(ree,{className:"h-full w-full rounded-[inherit]",children:t}),u.jsx(F8,{}),u.jsx(nee,{})]}));I8.displayName=L8.displayName;const F8=_.forwardRef(({className:e,orientation:t="vertical",...r},n)=>u.jsx(fk,{ref:n,orientation:t,className:Ue("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:u.jsx(A8,{className:"relative flex-1 rounded-full bg-border"})}));F8.displayName=fk.displayName;const _x=[{id:"sofa-3",icon:qN,volumeM3:2,categoryKey:"livingRoom"},{id:"sofa-2",icon:qN,volumeM3:1.3,categoryKey:"livingRoom"},{id:"armchair",icon:MN,volumeM3:.65,categoryKey:"livingRoom"},{id:"tv-stand",icon:UN,volumeM3:.5,categoryKey:"livingRoom"},{id:"bookshelf",icon:D9,volumeM3:1,categoryKey:"livingRoom"},{id:"coffee-table",icon:$N,volumeM3:.4,categoryKey:"livingRoom"},{id:"tv-large",icon:UN,volumeM3:.25,categoryKey:"livingRoom"},{id:"bed-double",icon:Sb,volumeM3:2.6,categoryKey:"bedroom"},{id:"bed-single",icon:Sb,volumeM3:1.5,categoryKey:"bedroom"},{id:"wardrobe-large",icon:kb,volumeM3:2,categoryKey:"bedroom"},{id:"wardrobe-small",icon:kb,volumeM3:1,categoryKey:"bedroom"},{id:"dresser",icon:kb,volumeM3:.65,categoryKey:"bedroom"},{id:"nightstand",icon:$N,volumeM3:.2,categoryKey:"bedroom"},{id:"dining-table",icon:Nb,volumeM3:1,categoryKey:"kitchenDining"},{id:"dining-chairs",icon:Nb,volumeM3:.15,categoryKey:"kitchenDining"},{id:"fridge",icon:G9,volumeM3:1.3,categoryKey:"kitchenDining"},{id:"dishwasher",icon:Nb,volumeM3:.65,categoryKey:"kitchenDining"},{id:"washing-machine",icon:Y9,volumeM3:.65,categoryKey:"kitchenDining"},{id:"desk",icon:BN,volumeM3:.8,categoryKey:"office"},{id:"office-chair",icon:MN,volumeM3:.4,categoryKey:"office"},{id:"computer",icon:BN,volumeM3:.2,categoryKey:"office"},{id:"moving-box",icon:n_,volumeM3:.125,categoryKey:"other"},{id:"bike",icon:F9,volumeM3:.65,categoryKey:"other"},{id:"exercise-equipment",icon:q9,volumeM3:1,categoryKey:"other"},{id:"baby-stroller",icon:I9,volumeM3:.5,categoryKey:"other"},{id:"mattress",icon:Sb,volumeM3:1,categoryKey:"other"}],iee=["livingRoom","bedroom","kitchenDining","office","other"];function see({selectedItems:e,onItemsChange:t,totalVolume:r}){const{t:n}=gi(),[i,s]=_.useState(!1),a=(c,d)=>{const h=e[c]||0,p=Math.max(0,h+d),f={...e};p===0?delete f[c]:f[c]=p,t(f)},o=()=>Object.values(e).reduce((c,d)=>c+d,0),l=()=>{const c=Object.entries(e).filter(([d,h])=>h>0).map(([d,h])=>_x.find(f=>f.id===d)?`${h}x ${n(`furniturePicker.furniture.${d}`)}
432`:null).filter(Boolean);return c.length>0?c.join(", "):n("furniturePicker.noItemsSelected")};return u.jsxs(GR,{open:i,onOpenChange:s,children:[u.jsx(YR,{asChild:!0,children:u.jsxs(gt,{type:"button",variant:"outline",className:"w-full h-auto min-h-[80px] justify-start text-left p-4 flex flex-col items-start gap-2",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium",children:[u.jsx(n_,{className:"w-4 h-4"}),n("furniturePicker.selectButton")]}),o()>0?u.jsxs("div",{className:"w-full",children:[u.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:l()}),u.jsxs("div",{className:"flex items-center gap-3 mt-2 text-xs",children:[u.jsxs("span",{className:"bg-primary/10 text-primary px-2 py-1 rounded-md font-medium",children:[o()," ",n("furniturePicker.items")]}),u.jsxs("span",{className:"bg-accent/50 text-accent-foreground px-2 py-1 rounded-md font-medium",children:["~",r.toFixed(1)," m³"]})]})]}):u.jsx("p",{className:"text-xs text-muted-foreground",children:n("furniturePicker.clickToSelect")})]})}),u.jsxs(W_,{className:"max-w-2xl max-h-[85vh] p-0",children:[u.jsxs(K_,{className:"p-6 pb-0",children:[u.jsx(G_,{className:"text-xl font-semibold",children:n("furniturePicker.title")}),u.jsxs("div",{className:"flex items-center gap-4 mt-2 text-sm",children:[u.jsxs("span",{className:"bg-primary/10 text-primary px-3 py-1.5 rounded-lg font-medium",children:[o()," ",n("furniturePicker.items")]}),u.jsxs("span",{className:"bg-accent/50 text-accent-foreground px-3 py-1.5 rounded-lg font-medium",children:[n("furniturePicker.estimatedVolume"),": ~",r.toFixed(1)," m³"]})]})]}),u.jsx(I8,{className:"h-[60vh] px-6 pb-6",children:u.jsx("div",{className:"space-y-6 pt-4",children:iee.map(c=>u.jsxs("div",{children:[u.jsx("h3",{className:"text-sm font-semibold text-muted-foreground mb-3 uppercase tracking-wide",children:n(`furniturePicker.categories.${c}`)}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:_x.filter(d=>d.categoryKey===c).map(d=>{const h=e[d.id]||0,p=d.icon;return u.jsxs("div",{className:Ue("flex items-center justify-between p-3 rounded-xl border transition-all",h>0?"border-primary/40 bg-primary/5":"border-border hover:border-border/80"),children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:Ue("w-9 h-9 rounded-lg flex items-center justify-center",h>0?"bg-primary/20 text-primary":"bg-muted text-muted-foreground"),children:u.jsx(p,{className:"w-4 h-4"})}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium",children:n(`furniturePicker.furniture.${d.id}`)}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:[d.volumeM3," ",n("furniturePicker.perUnit")]})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(gt,{type:"button",variant:"outline",size:"icon",className:"h-8 w-8 rounded-lg",onClick:()=>a(d.id,-1),disabled:h===0,children:u.jsx(W9,{className:"w-3 h-3"})}),u.jsx("span",{className:"w-6 text-center text-sm font-medium",children:h}),u.jsx(gt,{type:"button",variant:"outline",size:"icon",className:"h-8 w-8 rounded-lg",onClick:()=>a(d.id,1),children:u.jsx(K9,{className:"w-3 h-3"})})]})]},d.id)})})]},c))})}),u.jsx("div",{className:"p-4 border-t bg-muted/30",children:u.jsxs(gt,{type:"button",className:"w-full",onClick:()=>s(!1),children:[n("furniturePicker.done")," (",o()," ",n("furniturePicker.items"),", ~",r.toFixed(1)," m³)"]})})]})]})}function K0(e){return Object.entries(e).reduce((t,[r,n])=>{const i=_x.find(s=>s.id===r);return t+(i?i.volumeM3*n:0)},0)}function N3(e){const t={"sofa-3":"Soffa (3-sits)","sofa-2":"Soffa (2-sits)",armchair:"Fåtölj","tv-stand":"TV-bänk",bookshelf:"Bokhylla","coffee-table":"Soffbord","tv-large":"TV (stor)","bed-double":"Säng (dubbel)","bed-single":"Säng (enkel)","wardrobe-large":"Garderob (stor)","wardrobe-small":"Garderob (liten)",dresser:"Byrå",nightstand:"Sängbord","dining-table":"Matbord","dining-chairs":"Matstol",fridge:"Kyl/frys",dishwasher:"Diskmaskin","washing-machine":"Tvättmaskin",desk:"Skrivbord","office-chair":"Kontorsstol",computer:"Dator + skärm","moving-box":"Flyttkartong",bike:"Cykel","exercise-equipment":"Träningsutrustning","baby-stroller":"Barnvagn",mattress:"Madrass"};return Object.entries(e).filter(([n,i])=>i>0).map(([n,i])=>{const s=t[n];return s?`${i}x ${s}`:null}
432).filter(Boolean).join(", ")}const D8={bohagsflytt:bu,kontorsflytt:jy,magasinering:wu,flyttstadning:bm,utlandsflytt:Du},aee=["bohagsflytt","kontorsflytt","magasinering","flyttstadning","utlandsflytt"],Dc=["lagenhet","villa","magasin","annat"],hl=["6pers","4pers","2pers","ingen"],oee=["exact","1-2weeks","1month","flexible"],lee=["1month","1-3months","3-6months","6-12months","12months+","unknown"],M8=[{id:"bohagsflytt",name:"Bohagsflytt",icon:bu,description:"Privatpersoner"},{id:"kontorsflytt",name:"Kontorsflytt",icon:jy,description:"Företag"},{id:"magasinering",name:"Magasinering",icon:wu,description:"Förvaring"},{id:"flyttstadning",name:"Flyttstädning",icon:bm,description:"Städtjänster"},{id:"utlandsflytt",name:"Utlandsflytt",icon:Du,description:"Internationellt"}],cee=(e,t,r,n)=>{const i=parseFloat(r)||0,s=parseFloat(n)||0;if(i===0&&s===0)return null;let a;return e==="magasin"&&t==="magasin"||e!=="magasin"&&t==="magasin"?a=s*2:e==="magasin"?a=i*2:t==="magasin"?a=s*2:a=Math.min(i||s,s||i)*.45,Math.max(a,15
432)},uee=({selectedService:e,bohagsflyttOptions:t,fromAddress:r,toAddress:n,formData:i,step:s,kontorsflyttOptions:a,kontorsFromAddress:o,kontorsToAddress:l,flyttstadningQuote:c,utlandsflyttOptions:d,utlandsFromAddress:h,utlandsToAddress:p,magasineringOptions:f,magasineringFromAddress:y,magasineringToAddress:v})=>{const{t:b}=gi(),w=e?D8[e]:null;M8.find(P=>P.id===e);const x=P=>b(`quoteForm.options.residenceTypes.${P}`),S=P=>b(`quoteForm.options.elevatorTypes.${P}`),E=P=>b(`quoteForm.options.flexibility.${P}`),T=cee(r.residenceType,n.residenceType,r.size,n.size),W=e==="kontorsflytt",z=e==="flyttstadning",B=e==="utlandsflytt";return u.jsxs("div",{className:"w-72 bg-gradient-to-b from-muted/50 to-muted/20 border-l border-border hidden md:flex flex-col max-h-[600px]",children:[u.jsx("div",{className:"p-4 bg-primary/5 border-b border-border/50 flex-shrink-0",children:u.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2",children:[u.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center",children:u.jsx(t_,{className:"w-4 h-4 text-primary"})}),u.jsx("span",{children:b("quoteForm.summary.title")})]})}),u.jsxs("div",{className:"flex-1 min-h-0 p-4 space-y-3 overflow-y-auto",children:[e&&u.jsx("div",{className:"group p-3 bg-background rounded-xl border border-border/50 shadow-sm hover:shadow-md transition-all duration-200",children:u.jsxs("div",{className:"flex items-start gap-3",children:[w&&u.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0 group-hover:bg-primary/20 transition-colors",children:u.jsx(w,{className:"w-5 h-5 text-primary"})}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-medium mb-0.5",children:b("quoteForm.summary.service")}),u.jsx("p",{className:"font-semibold text-foreground text-sm",children:b(`quoteForm.serviceSelector.services.${e}.name`)}),e==="bohagsflytt"&&t.moveDate&&u.jsxs("p",{className:"text-xs text-muted-foreground mt-1 flex items-center gap-1",children:[u.jsx(Cs,{className:"w-3 h-3"}),t.moveDate.toLocaleDateString("sv-SE",{day:"numeric",month:"short",year:"numeric"})]}),W&&(a==null?void 0:a.moveDate)&&u.jsxs("p",{className:"text-xs text-muted-foreground mt-1 flex items-center gap-1",children:[u.jsx(Cs,{className:"w-3 h-3"}),a.moveDate.toLocaleDateString("sv-SE",{day:"numeric",month:"short",year:"numeric"})]}),z&&(c==null?void 0:c.desiredDate)&&u.jsxs("p",{className:"text-xs text-muted-foreground mt-1 flex items-center gap-1",children:[u.jsx(Cs,{className:"w-3 h-3"}),c.desiredDate.toLocaleDateString("sv-SE",{day:"numeric",month:"short",year:"numeric"})]}),B&&(d==null?void 0:d.moveFromDate)&&u.jsxs("div",{className:"text-xs text-muted-foreground mt-1 space-y-0.5",children:[u.jsxs("p",{className:"flex items-center gap-1",children:[u.jsx(Cs,{className:"w-3 h-3"}),b("quoteForm.summary.pickup"),": ",d.moveFromDate.toLocaleDateString("sv-SE",{day:"numeric",month:"short",year:"numeric"})]}),d.deliveryDate&&u.jsxs("p",{className:"flex items-center gap-1",children:[u.jsx(Cs,{className:"w-3 h-3"}),b("quoteForm.summary.delivery"),": ",d.deliveryDate.toLocaleDateString("sv-SE",{day:"numeric",month:"short",year:"numeric"})]})]})]})]})}),z&&c&&(c.address||c.residenceType||c.squareMeters)&&u.jsxs("div",{className:"p-3 bg-background rounded-xl border border-border/50 shadow-sm",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx("div",{className:"w-6 h-6 rounded-full bg-primary/10 flex items-center justify-center",children:u.jsx(bm,{className:"w-3 h-3 text-primary"})}),u.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-medium",children:b("quoteForm.summary.cleaningObject")})]}),c.address&&u.jsx("p",{className:"font-medium text-foreground text-sm mb-1 leading-tight",children:c.address}),u.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed",children:[c.residenceType&&`${x(c.residenceType)}`,c.squareMeters&&` • ${c.squareMeters} m²`]})]}),e==="bohagsflytt"&&s>=2&&u.jsx(u.Fragment,{children:(t.needStorage||t.needPacking||t.needCleaning||t.hasHeavyItems)&&u.jsxs("div",{className:"p-3 bg-background rounded-xl border border-border/50 shadow-sm",children:[u.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-medium mb-2",children:b("quoteForm.summary.addons")}),u.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[t.needStorage&&u.jsx("span",{className:"text-xs bg-gradient-to-r from-primary/15 to-primary/5 text-primary px-2.5 py-1 rounded-full font-medium border border-primary/20",children:b("quoteForm.summary.storage")}),t.needPacking&&u.jsx("span",{className:"text-xs bg-gradient-to-r from-primary/15 to-primary/5 text-primary px-2.5 py-1 rounded-full font-medium border border-primary/20",children:b("quoteForm.summary.packing")}),t.needCleaning&&u.jsx("span",{className:"text-xs bg-gradient-to-r from-primary/15 to-primary/5 text-primary px-2.5 py-1 rounded-full font-medium border border-primary/20",children:b("quoteForm.summary.cleaning")}),t.hasHeavyItems&&u.jsx("span",{className:"text-xs bg-gradient-to-r from-primary/15 to-primary/5 text-primary px-2.5 py-1 rounded-full font-medium border border-primary/20",children:b("quoteForm.summary.heavyItems")})]})]})}),W&&a&&(a.moveDate||a.needStorage||a.needPacking||a.hasHeavyItems)&&u.jsx(u.Fragment,{children:(a.needStorage||a.needPacking||a.hasHeavyItems)&&u.jsxs("div",{className:"p-3 bg-background rounded-xl border border-border/50 shadow-sm",children:[u.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-medium mb-2",children:b("quoteForm.summary.addons")}),u.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[a.needStorage&&u.jsx("span",{className:"text-xs bg-gradient-to-r from-primary/15 to-primary/5 text-primary px-2.5 py-1 rounded-full font-medium border border-primary/20",children:b("quoteForm.summary.storage")}),a.needPacking&&u.jsx("span",{className:"text-xs bg-gradient-to-r from-primary/15 to-primary/5 text-primary px-2.5 py-1 rounded-full font-medium border border-primary/20",children:b("quoteForm.summary.packing")}),a.hasHeavyItems&&u.jsx("span",{className:"text-xs bg-gradient-to-r from-primary/15 to-primary/5 text-primary px-2.5 py-1 rounded-full font-medium border border-primary/20",children:b("quoteForm.summary.heavyItems")})]})]})}),e==="bohagsflytt"&&s>=3&&(r.address||r.residenceType||r.size)&&u.jsxs("div",{className:"p-3 bg-background rounded-xl border border-border/50 shadow-sm",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx("div",{className:"w-6 h-6 rounded-full bg-emerald-500/10 flex items-center justify-center",children:u.jsx(Jr,{className:"w-3 h-3 text-emerald-600"})}),u.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-medium",children:b("quoteForm.summary.from")})]}),r.address&&u.jsx("p",{className:"font-medium text-foreground text-sm mb-1 leading-tight",children:r.address}),u.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed",children:[r.residenceType&&`${x(r.residenceType)}`,r.size&&` • ${r.size} m²`,r.floor&&` • ${b("quoteForm.summary.floor")} ${r.floor}`,r.elevator&&u.jsx("span",{className:"block mt-0.5",children:S(r.elevator)})]})]}),e==="bohagsflytt"&&s>=4&&(n.address||n.residenceType||n.size)&&u.jsxs("div",{className:"p-3 bg-background rounded-xl border border-border/50 shadow-sm",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-500/10 flex items-center justify-center",children:u.jsx(Ln,{className:"w-3 h-3 text-blue-600"})}),u.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-medium",children:b("quoteForm.summary.to")})]}),n.address&&u.jsx("p",{className:"font-medium text-foreground text-sm mb-1 leading-tight",children:n.address}),u.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed",children:[n.residenceType&&`${x(n.residenceType)}`,n.size&&` • ${n.size} m²`,n.floor&&` • ${b("quoteForm.summary.floor")} ${n.floor}`,n.elevator&&u.jsx("span",{className:"block mt-0.5",children:S(n.elevator)})]})]}),W&&o&&(o.address||o.workstations||o.size)&&u.jsxs("div",{className:"p-3 bg-background rounded-xl border border-border/50 shadow-sm",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx("div",{className:"w-6 h-6 rounded-full bg-emerald-500/10 flex items-center justify-center",children:u.jsx(Jr,{className:"w-3 h-3 text-emerald-600"})}),u.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-medium",children:b("quoteForm.summary.from")})]}),o.address&&u.jsx("p",{className:"font-medium text-foreground text-sm mb-1 leading-tight",children:o.address}),u.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed",children:[o.workstations&&`${o.workstations} ${b("quoteForm.summary.workstations")}`,o.size&&` • ${o.size} m²`,o.floor&&` • ${b("quoteForm.summary.floor")} ${o.floor}`,o.elevator&&u.jsx("span",{className:"block mt-0.5",children:S(o.elevator)})]})]}),W&&l&&(l.address||l.workstations||l.size)&&u.jsxs("div",{className:"p-3 bg-background rounded-xl border border-border/50 shadow-sm",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-500/10 flex items-center justify-center",children:u.jsx(Ln,{className:"w-3 h-3 text-blue-600"})}),u.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-medium",children:b("quoteForm.summary.to")})]}),l.address&&u.jsx("p",{className:"font-medium text-foreground text-sm mb-1 leading-tight",children:l.address}),u.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed",children:[l.workstations&&`${l.workstations} ${b("quoteForm.summary.workstations")}`,l.size&&` • ${l.size} m²`,l.floor&&` • ${b("quoteForm.summary.floor")} ${l.floor}`,l.elevator&&u.jsx("span",{className:"block mt-0.5",children:S(l.elevator)})]})]}),e==="bohagsflytt"&&s>=4&&r.address&&n.address&&u.jsx("div",{className:"rounded-xl overflow-hidden border border-border/50 shadow-sm",children:u.jsx(k3,{fromAddress:r.address,toAddress:n.address})}),W&&(o==null?void 0:o.address)&&(l==null?void 0:l.address)&&u.jsx("div",{className:"rounded-xl overflow-hidden border border-border/50 shadow-sm",children:u.jsx(k3,{fromAddress:o.address,toAddress:l.address})}),B&&d&&(d.flexibility||d.needStorage||d.needPacking||d.needCleaning||d.hasHeavyItems||!d.moveWholeHousehold)&&u.jsxs("div",{className:"p-3 bg-background rounded-xl border border-border/50 shadow-sm",children:[u.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-medium mb-2",children:b("quoteForm.summary.details")}),d.flexibility&&u.jsxs("p",{className:"text-xs text-muted-foreground mb-1.5",children:[u.jsxs("span",{className:"font-medium",children:[b("quoteForm.summary.flexibility"),":"]})," ",E(d.flexibility)]}),!d.moveWholeHousehold&&Object.keys(d.selectedFurniture).length>0&&u.jsxs("div",{className:"text-xs text-muted-foreground mb-1.5",children:[u.jsxs("span",{className:"font-medium",children:[b("quoteForm.summary.partialMove"),":"]})," ",Object.values(d.selectedFurniture).reduce((P,X)=>P+X,0)," ",b("quoteForm.summary.items"),u.jsxs("span",{className:"ml-2 bg-accent/50 text-accent-foreground px-2 py-0.5 rounded-md font-medium",children:["~",K0(d.selectedFurniture).toFixed(1)," m³"]})]}),u.jsxs("div",{className:"flex flex-wrap gap-1.5 mt-2",children:[d.needStorage&&u.jsx("span",{className:"text-xs bg-gradient-to-r from-primary/15 to-primary/5 text-primary px-2.5 py-1 rounded-full font-medium border border-primary/20",children:b("quoteForm.summary.storage")}),d.needPacking&&u.jsx("span",{className:"text-xs bg-gradient-to-r from-primary/15 to-primary/5 text-primary px-2.5 py-1 rounded-full font-medium border border-primary/20",children:b("quoteForm.summary.packing")}),d.needCleaning&&u.jsx("span",{className:"text-xs bg-gradient-to-r from-primary/15 to-primary/5 text-primary px-2.5 py-1 rounded-full font-medium border border-primary/20",children:b("quoteForm.summary.cleaning")}),d.hasHeavyItems&&u.jsx("span",{className:"text-xs bg-gradient-to-r from-primary/15 to-primary/5 text-primary px-2.5 py-1 rounded-full font-medium border border-primary/20",children:b("quoteForm.summary.heavyItems")})]})]}),B&&h&&(h.address||h.residenceType||h.size)&&u.jsxs("div",{className:"p-3 bg-background rounded-xl border border-border/50 shadow-sm",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx("div",{className:"w-6 h-6 rounded-full bg-emerald-500/10 flex items-center justify-center",children:u.jsx(Jr,{className:"w-3 h-3 text-emerald-600"})}),u.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-medium",children:b("quoteForm.summary.loadingAddress")})]}),h.address&&u.jsx("p",{className:"font-medium text-foreground text-sm mb-1 leading-tight",children:h.address}),u.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed",children:[h.residenceType&&`${x(h.residenceType)}`,h.size&&` • ${h.size} m²`,h.floor&&` • ${b("quoteForm.summary.floor")} ${h.floor}`,h.elevator&&u.jsx("span",{className:"block mt-0.5",children:S(h.elevator)})]})]}),B&&p&&(p.address||p.residenceType||p.size)&&u.jsxs("div",{className:"p-3 bg-background rounded-xl border border-border/50 shadow-sm",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-500/10 flex items-center justify-center",children:u.jsx(Du,{className:"w-3 h-3 text-blue-600"})}),u.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-medium",children:b("quoteForm.summary.unloadingAddress")})]}),p.address&&u.jsx("p",{className:"font-medium text-foreground text-sm mb-1 leading-tight",children:p.address}),u.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed",children:[p.residenceType&&`${x(p.residenceType)}`,p.size&&` • ${p.size} m²`,p.floor&&` • ${b("quoteForm.summary.floor")} ${p.floor}`,p.elevator&&u.jsx("span",{className:"block mt-0.5",children:S(p.elevator)})]})]}),B&&!(d!=null&&d.moveWholeHousehold)&&Object.keys((d==null?void 0:d.selectedFurniture)||{}).length>0&&u.jsx("div",{className:"p-3 bg-gradient-to-br from-primary/15 via-primary/10 to-primary/5 rounded-xl border border-primary/20 shadow-sm",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-[10px] uppercase tracking-wider text-primary/70 font-medium mb-0.5",children:b("quoteForm.summary.estimatedVolume")}),u.jsxs("p",{className:"font-bold text-primary text-lg",children:["ca ",K0(d.selectedFurniture).toFixed(1)," m³"]})]}),u.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/20 flex items-center justify-center",children:u.jsx(wu,{className:"w-6 h-6 text-primary"})})]})}),e==="bohagsflytt"&&s>=4&&T&&u.jsx("div",{className:"p-3 bg-gradient-to-br from-primary/15 via-primary/10 to-primary/5 rounded-xl border border-primary/20 shadow-sm",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-[10px] uppercase tracking-wider text-primary/70 font-medium mb-0.5",children:b("quoteForm.summary.estimatedVolume")}),u.jsxs("p",{className:"font-bold text-primary text-lg",children:["ca ",Math.round(T)," m³"]})]}),u.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/20 flex items-center justify-center",children:u.jsx(wu,{className:"w-6 h-6 text-primary"})})]})}),s>=5&&(i.name||i.phone||i.email)&&u.jsxs("div",{className:"p-3 bg-background rounded-xl border border-border/50 shadow-sm",children:[u.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-medium mb-2",children:b("quoteForm.summary.contact")}),u.jsxs("div",{className:"space-y-1",children:[i.name&&u.jsx("p",{className:"font-medium text-foreground text-sm",children:i.name}),i.phone&&u.jsx("p",{className:"text-xs text-muted-foreground",children:i.phone}),i.email&&u.jsx("p",{className:"text-xs text-muted-foreground",children:i.email})]})]}),!e&&u.jsxs("div",{className:"flex flex-
432col items-center justify-center py-8 text-center",children:[u.jsx("div",{className:"w-16 h-16 rounded-2xl bg-muted/50 flex items-center justify-center mb-3",children:u.jsx(bu,{className:"w-8 h-8 text-muted-foreground/50"})}),u.jsx("p",{className:"text-sm text-muted-foreground font-medium",children:b("quoteForm.summary.chooseService")}),u.jsx("p",{className:"text-xs text-muted-foreground/70 mt-1",children:b("quoteForm.summary.toGetStarted")})]})]})]})},dee=({currentStep:e,totalSteps:t,t:r})=>u.jsx("div",{className:"pl-6 pr-12 pt-4 pb-2",role:"progressbar","aria-valuenow":e,"aria-valuemin":1,"aria-valuemax":t,children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("span",{className:"text-sm font-medium text-foreground",children:[r("quoteForm.progress.step")," ",e]}),u.jsxs("span",{className:"text-sm text-muted-foreground",children:[r("quoteForm.progress.of")," ",t]}),u.jsx("div",{className:"flex-1 h-1.5 bg-muted rounded-full overflow-hidden ml-3",children:u.jsx("div",{className:"h-full bg-primary rounded-full transition-all duration-500 ease-out",style:{width:`${e/t*100}%`}})})]})}),mt=({label:e,htmlFor:t,required:r,helpText:n,error:i,children:s})=>u.jsxs("div",{className:"space-y-1.5",children:[u.jsxs(gr,{htmlFor:t,className:"flex items-center gap-1",children:[e,r&&u.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),s,i?u.jsxs("p",{className:"text-xs text-destructive flex items-center gap-1 pl-1 animate-in slide-in-from-top-1 duration-200",role:"alert",children:[u.jsx(T2,{className:"w-3 h-3","aria-hidden":"true"}),i]}):n?u.jsx("p",{className:"text-xs text-muted-foreground pl-1",children:n}):null]}),fee=(e,t)=>{if(!e.trim())return t("quoteForm.validation.phoneRequired");const r=e.replace(/[\s\-()]/g,"");if(!/^\+?[0-9]{7,15}$/.test(r))return t("quoteForm.validation.phoneInvalid")},hee=(e,t)=>{if(!e.trim())return t("quoteForm.validation.emailRequired");if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e))return t("quoteForm.validation.emailInvalid")},pee=(e,t)=>{if(!e.trim())return t("quoteForm.validation.nameRequired");if(e.trim().length<2)return t("quoteForm.validation.nameMinLength")},mee=e=>!!e.moveDate,md=e=>{const t=e.residenceType==="villa";return e.address.trim()!==""&&e.residenceType!==""&&e.size.trim()!==""&&e.floor.trim()!==""&&(t||e.elevator!=="")},$8=({children:e,open:t,onOpenChange:r,initialService:n})=>{const{t:i,i18n:s}=gi(),a=$y(),[o,l]=_.useState(!1),[c,d]=_.useState(1),[h,p]=_.useState(!1),[f,y]=_.useState(!1),[v,b]=_.useState(!1),[w,x]=_.useState(!1),[S,E]=_.useState(!1),[T,W]=_.useState(!1),z=s.language==="en"?xX:e8,B=(G,Je)=>{const Ut=G.replace(/[^0-9]/g,"");Je(Ut)},P=t!==void 0,X=P?t:o,O=G=>{P&&r?r(G):l(G)},[A,K]=_.useState(n||null);_.useEffect(()=>{X&&n&&(K(n),d(n==="bohagsflytt"?2:n==="kontorsflytt"?8:n==="flyttstadning"?6:n==="utlandsflytt"?11:n==="magasinering"?15:5))},[X,n]);const[R,le]=_.useState({needStorage:!1,needPacking:!1,needCleaning:!1,hasHeavyItems:!1,description:"",moveDate:void 0}),[oe,se]=_.useState({address:"",residenceType:"",size:"",floor:"",elevator:""}),[F,D]=_.useState({address:"",residenceType:"",size:"",floor:"",elevator:""}),[$,M]=_.useState({name:"",phone:"",email:"",message:""}),[j,U]=_.useState({name:!1,phone:!1,email:!1}),[H,re]=_.useState({desiredDate:void 0,residenceType:"",squareMeters:"",address:""}),[te,Q]=_.useState({needStorage:!1,needPacking:!1,hasHeavyItems:!1,description:"",moveDate:void 0}),[ce,de]=_.useState({address:"",workstations:"",size:"",floor:"",elevator:""}),[he,we]=_.useState({address:"",workstations:"",size:"",floor:"",elevator:""}),[ve,Le]=_.useState({direction:"",storageDuration:"",needPacking:!1,hasHeavyItems:!1,description:"",moveDate:void 0}),[je,Z]=_.useState({address:"",residenceType:"",size:"",floor:"",elevator:""}),[Pe,et]=_.useState({address:"",residenceType:"",size:"",floor:"",elevator:""}),[Ne,Ce]=_.useState({needStorage:!1,needPacking:!1,needCleaning:!1,hasHeavyItems:!1,description:"",moveFromDate:void 0,deliveryDate:void 0,flexibility:"",moveWholeHousehold:!0,partialDescription:"",selectedFurniture:{}}),[ee,ue]=_.useState({address:"",isSwedish:!0,residenceType:"",size:"",floor:"",elevator:""}),[me,Ee]=_.useState({address:"",isSwedish:!1,residenceType:"",size:"",floor:"",elevator:""}),{toast:De}=Y5(),_e={name:j.name?pee($.name,i):void 0,phone:j.phone?fee($.phone,i):void 0,email:j.email?hee($.email,i):void 0},Oe=_.useCallback(G=>{U(Je=>({...Je,[G]:!0}))},[]),Ze=G=>{K(G)},Ke=()=>{c===1&&A?d(A==="bohagsflytt"?2:A==="kontorsflytt"?8:A==="flyttstadning"?6:A==="utlandsflytt"?11:A==="magasinering"?15:5):c===2?d(3):c===3?d(4):c===4?d(5):c===6?d(7):c===8?d(9):c===9?d(10):c===10?d(5):c===11?d(12):c===12?d(13):c===13?d(14):c===14?d(5):c===15?d(16):c===16?d(17):c===17?d(18):c===18&&d(5)},ze=()=>
432{c===5?d(A==="bohagsflytt"?4:A==="kontorsflytt"?10:A==="utlandsflytt"?14:A==="magasinering"?18:1):c===4?d(3):c===3?d(2):c===2||c===6?d(1):c===7?d(6):c===8?d(1):c===9?d(8):c===10?d(9):c===11?d(1):c===12?d(11):c===13?d(12):c===14?d(13):c===15?d(1):c===16?d(15):c===17?d(16):c===18&&d(17)},vt=()=>{d(1),K(null),le({needStorage:!1,needPacking:!1,needCleaning:!1,hasHeavyItems:!1,description:"",moveDate:void 0}),se({address:"",residenceType:"",size:"",floor:"",elevator:""}),D({address:"",residenceType:"",size:"",floor:"",elevator:""}),M({name:"",phone:"",email:"",message:""}),U({name:!1,phone:!1,email:!1}),re({desiredDate:void 0,residenceType:"",squareMeters:"",address:""}),Q({needStorage:!1,needPacking:!1,hasHeavyItems:!1,description:"",moveDate:void 0}),de({address:"",workstations:"",size:"",floor:"",elevator:""}),we({address:"",workstations:"",size:"",floor:"",elevator:""}),Le({direction:"",storageDuration:"",needPacking:!1,hasHeavyItems:!1,description:"",moveDate:void 0}),Z({address:"",residenceType:"",size:"",floor:"",elevator:""}),et({address:"",residenceType:"",size:"",floor:"",elevator:""}),Ce({needStorage:!1,needPacking:!1,needCleaning:!1,hasHeavyItems:!1,description:"",moveFromDate:void 0,deliveryDate:void 0,flexibility:"",moveWholeHousehold:!0,partialDescription:"",selectedFurniture:{}}),ue({address:"",isSwedish:!0,residenceType:"",size:"",floor:"",elevator:""}),Ee({address:"",isSwedish:!1,residenceType:"",size:"",floor:"",elevator:""})},Xe=async G=>{var Ut,Tr,it,sn,bn,br,Dr,Pr;G.preventDefault();const Je=async Mr=>{try{const{error:Gr}=await yl.functions.invoke("send-quote-notification",{body:Mr});Gr&&console.error("Email notification error:",Gr)}catch(Gr){console.error("Email notification error:",Gr)}};switch(A){case"bohagsflytt":VW();try{await fetch("https://hooks.zapier.com/hooks/catch/12268599/ufa0i52/",{method:"POST",headers:{"Content-Type":"application/json"},mode:"no-cors",body:JSON.stringify({service:"bohagsflytt",timestamp:new Date().toISOString(),contact:{name:$.name,phone:$.phone.replace(/\s/g,""),email:$.email,message:$.message},options:{needStorage:R.needStorage,needPacking:R.needPacking,needCleaning:R.needCleaning,hasHeavyItems:R.hasHeavyItems,heavyItemsDescription:R.description,moveDate:(Ut=R.moveDate)==null?void 0:Ut.toISOString().split("T")[0]},fromAddress:{address:oe.address,residenceType:{lagenhet:"Apartment",villa:"Villa/Townhouse",magasin:"Storage",annat:"Other"}[oe.residenceType]||oe.residenceType,size:oe.size,floor:oe.floor,elevator:{"6pers":"6 pers / Big elevator","4pers":"4 pers / Elevator","2pers":"2 pers / Elevator",ingen:"No elevator"}[oe.elevator]||oe.elevator},toAddress:{address:F.address,residenceType:{lagenhet:"Apartment",villa:"Villa/Townhouse",magasin:"Storage",annat:"Other"}[F.residenceType]||F.residenceType,size:F.size,floor:F.floor,elevator:{"6pers":"6 pers / Big elevator","4pers":"4 pers / Elevator","2pers":"2 pers / Elevator",ingen:"No elevator"}[F.elevator]||F.elevator}})})}catch(Mr){console.error("Zapier webhook error:",Mr)}await Je({service:"bohagsflytt",contact:{name:$.name,phone:$.phone,email:$.email,message:$.message},options:{needStorage:R.needStorage,needPacking:R.needPacking,needCleaning:R.needCleaning,hasHeavyItems:R.hasHeavyItems,heavyItemsDescription:R.description,moveDate:(Tr=R.moveDate)==null?void 0:Tr.toISOString().split("T")[0]},fromAddress:{address:oe.address,residenceType:oe.residenceType,size:oe.size,floor:oe.floor,elevator:oe.elevator},toAddress:{address:F.address,residenceType:F.residenceType,size:F.size,floor:F.floor,elevator:F.elevator}});break;case"kontorsflytt":WW(),await Je({service:"kontorsflytt",contact:{name:$.name,phone:$.phone,email:$.email,message:$.message},options:{needStorage:te.needStorage,needPacking:te.needPacking,hasHeavyItems:te.hasHeavyItems,heavyItemsDescription:te.description,moveDate:(it=te.moveDate)==null?void 0:it.toISOString().split("T")[0]},fromAddress:{address:ce.address,workstations:ce.workstations,size:ce.size,floor:ce.floor,elevator:ce.elevator},toAddress:{address:he.address,workstations:he.workstations,size:he.size,floor:he.floor,elevator:he.elevator}});break;case"utlandsflytt":KW(),await Je({service:"utlandsflytt",contact:{name:$.name,phone:$.phone,email:$.email,message:$.message},options:{needStorage:Ne.needStorage,needPacking:Ne.needPacking,needCleaning:Ne.needCleaning,hasHeavyItems:Ne.hasHeavyItems,heavyItemsDescription:Ne.description,moveDate:(sn=Ne.moveFromDate)==null?void 0:sn.toISOString().split("T")[0],deliveryDate:(bn=Ne.deliveryDate)==null?void 0:bn.toISOString().split("T")[0],flexibility:Ne.flexibility,moveWholeHousehold:Ne.moveWholeHousehold,furnitureDescription:Ne.moveWholeHousehold?void 0:N3(Ne.selectedFurniture),estimatedVolume:Ne.moveWholeHousehold?void 0:K0(Ne.selectedFurniture)},fromAddress:{address:ee.address,residenceType:ee.residenceType,size:ee.size,floor:ee.floor,elevator:ee.elevator},toAddress:{address:me.address,residenceType:me.residenceType,size:me.size,floor:me.floor,elevator:me.elevator}});break;case"magasinering":GW(),await Je({service:"magasinering",contact:{name:$.name,phone:$.phone,email:$.email,message:$.message},options:{needPacking:ve.needPacking,hasHeavyItems:ve.hasHeavyItems,heavyItemsDescription:ve.description,moveDate:(br=ve.moveDate)==null?void 0:br.toISOString().split("T")[0],direction:ve.direction,storageDuration:ve.storageDuration},fromAddress:{address:je.address,residenceType:je.residenceType,size:je.size,floor:je.floor,elevator:je.elevator},toAddress:{address:Pe.address,residenceType:Pe.residenceType,size:Pe.size,floor:Pe.floor,elevator:Pe.elevator}});break;case"flyttstadning":YW();try{await fetch("https://hooks.zapier.com/hooks/catch/12268599/uwuybn6/",{method:"POST",headers:{"Content-Type":"application/json"},mode:"no-cors",body:JSON.stringify({service:"flyttstadning",timestamp:new Date().toISOString(),contact:{name:$.name,phone:$.phone.replace(/\s/g,""),email:$.email,message:$.message},cleaningDetails:{address:H.address,residenceType:{lagenhet:"Apartment",villa:"Villa/Townhouse",radhus:"Townhouse",annat:"Other"}[H.residenceType]||H.residenceType,squareMeters:H.squareMeters,desiredDate:((Dr=H.desiredDate)==null?void 0:Dr.toISOString().split("T")[0])||""}})})}catch(Mr){console.error("Zapier webhook error:",Mr)}await Je({service:"flyttstadning",contact:{name:$.name,phone:$.phone,email:$.email,message:$.message},cleaningDetails:{address:H.address,residenceType:H.residenceType,squareMeters:H.squareMeters,desiredDate:((Pr=H.desiredDate)==null?void 0:Pr.toISOString().split("T")[0])||""}});break}De({title:i("quoteForm.toast.successTitle"),description:i("quoteForm.toast.successDescription")}),O(!1),vt()},rr=()=>!!(A||$.name||$.phone||$.email||$.message||R.needStorage||R.needPacking||R.needCleaning||R.hasHeavyItems||R.description||R.moveDate||oe.residenceType||oe.size||oe.floor||oe.elevator||F.residenceType||F.size||F.floor||F.elevator||H.desiredDate||H.residenceType||H.squareMeters||H.address||te.needStorage||te.needPacking||te.hasHeavyItems||te.de
432scription||te.moveDate||ce.address||ce.workstations||ce.size||he.address||he.workstations||he.size||ve.direction||ve.storageDuration||ve.needPacking||ve.hasHeavyItems||ve.description||ve.moveDate||je.address||je.residenceType||je.size||Pe.address||Pe.size||Ne.needStorage||Ne.needPacking||Ne.needCleaning||Ne.hasHeavyItems||Ne.description||Ne.moveFromDate||Ne.deliveryDate||Ne.flexibility||!Ne.moveWholeHousehold||Object.keys(Ne.selectedFurniture).length>0||ee.address||ee.residenceType||ee.size||me.address||me.residenceType||me.size),be=G=>{!G&&rr()&&!window.confirm(i("quoteForm.confirmClose"))||(O(G),G||vt())};M8.find(G=>G.id===A);const Ae=()=>{if(A==="flyttstadning"){if(c===1)return 1;if(c===6)return 2;if(c===7)return 3}if(A==="kontorsflytt"){if(c===1)return 1;if(c===8)return 2;if(c===9)return 3;if(c===10)return 4;if(c===5)return 5}if(A==="magasinering"){if(c===1)return 1;if(c===15)return 2;if(c===16)return 3;if(c===17)return 4;if(c===18)return 5;if(c===5)return 6}if(A==="utlandsflytt"){if(c===1)return 1;if(c===11)return 2;if(c===12)return 3;if(c===13)return 4;if(c===14)return 5;if(c===5)return 6}return A!=="bohagsflytt"?c===1?1:2:c},Qe=()=>A==="bohagsflytt"||A==="kontorsflytt"?5:A==="flyttstadning"?3:A==="magasinering"||A==="utlandsflytt"?6:2,ut=()=>H.desiredDate!==void 0&&H.residenceType!==""&&H.squareMeters.trim()!==""&&H.address.trim()!=="",tt=()=>c===1?i("quoteForm.stepTitles.chooseService"):c===2?i("quoteForm.stepTitles.moveDetails"):c===3?i("quoteForm.stepTitles.fromAddress"):c===4?i("quoteForm.stepTitles.toAddress"):c===5?i("quoteForm.stepTitles.contactDetails"):c===6?i("quoteForm.stepTitles.cleaningDetails"):c===7?i("quoteForm.stepTitles.contactDetails"):c===8?i("quoteForm.stepTitles.moveDetails"):c===9?i("quoteForm.stepTitles.fromAddress"):c===10?i("quoteForm.stepTitles.toAddress"):c===11?i("quoteForm.stepTitles.moveDetails"):c===12?i("quoteForm.stepTitles.additionalServices"):c===13?i("quoteForm.stepTitles.loadingAddress"):c===14?i("quoteForm.stepTitles.unloadingAddress"):c===15?i("quoteForm.stepTitles.storageDetails"):c===16?i("quoteForm.stepTitles.additionalServices"):c===17?ve.direction==="in"?i("quoteForm.stepTitles.fromAddress"):i("quoteForm.stepTitles.fromStorage"):c===18?ve.direction==="in"?i("quoteForm.stepTitles.toStorage"):i("quoteForm.stepTitles.toAddress"):i("quoteForm.stepTitles.contactDetails"),jt=()=>c===1?i("quoteForm.stepDescriptions.chooseService"):c===2?i("quoteForm.stepDescriptions.moveDetails"):c===3?i("quoteForm.stepDescriptions.fromAddress"):c===4?i("quoteForm.stepDescriptions.toAddress"):c===5?i("quoteForm.stepDescriptions.contactDetails"):c===6?i("quoteForm.stepDescriptions.cleaningDetails"):c===7?i("quoteForm.stepDescriptions.contactDetails"):c===8?i("quoteForm.stepDescriptions.officeDetails"):c===9?i("quoteForm.stepDescriptions.officeFromAddress"):c===10?i("quoteForm.stepDescriptions.officeToAddress"):c===11?i("quoteForm.stepDescriptions.internationalDetails"):c===12?i("quoteForm.stepDescriptions.additionalServices"):c===13?i("quoteForm.stepDescriptions.loadingAddress"):c===14?i("quoteForm.stepDescriptions.unloadingAddress"):c===15?i("quoteForm.stepDescriptions.storageDetails"):c===16?i("quoteForm.stepDescriptions.additionalServices"):c===17?ve.direction==="in"?i("quoteForm.stepDescriptions.customerFromAddress"):i("quoteForm.stepDescriptions.fromStorageAddress"):c===18?ve.direction==="in"?i("quoteForm.stepDescriptions.fromStorageAddress"):i("quoteForm.stepDescriptions.toStorageAddress"):i("quoteForm.stepDescriptions.contactDetails"),wt=()=>Ne.moveFromDate!==void 0&&Ne.deliveryDate!==void 0&&Ne.flexibility!==""&&(Ne.moveWholeHousehold||Object.keys(Ne.selectedFurniture).length>0),St=()=>!!te.moveDate,dr=G=>G.address.trim()!==""&&G.workstations.trim()!==""&&G.size.trim()!==""&&G.floor.trim()!==""&&G.elevator!=="",Lt=()=>ve.direction!==""&&ve.storageDuration!==""&&ve.moveDate!==void 0,ft=()=>ve.direction==="in"?md(je):je.address.trim()!=="",Qt=()=>ve.direction==="in"?Pe.address.trim()!=="":md(Pe);return u.jsxs(GR,{open:X,onOpenChange:be,children:[e&&u.jsx(YR,{asChild:!0,children:e}),u.jsx(W_,{className:"sm:max-w-[540px] md:max-w-[820px] p-0 overflow-hidden gap-0",children:u.jsxs("div",{className:"flex",children:[u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx(dee,{currentStep:Ae(),totalSteps:Qe(),t:i}),u.jsxs(K_,{className:"px-6 pb-2",children:[u.jsx(G_,{className:"text-xl font-bold text-foreground",children:tt()}),u.jsx("p",{className:"text-muted-foreground text-sm",children:jt()})]}),c===1&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsx("div",{className:"grid grid-cols-2 gap-3",children:aee.map(G=>{const Je=D8[G],Ut=A===G;return u.jsxs("button",{onClick:()=>Ze(G),className:Ue("p-4 rounded-xl border-2 text-left transition-all duration-200 group",Ut?"border-primary bg-primary/5 shadow-sm":"border-border hover:border-primary/40 hover:bg-muted/30"),children:[u.jsx("div",{className:Ue("w-10 h-10 rounded-lg flex items-center justify-center mb-3 transition-colors",Ut?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground group-hover:bg-primary/10 group-hover:text-primary"),children:u.jsx(Je,{className:"w-5 h-5"})}),u.jsx("div",{className:"font-semibold text-foreground",children:i(`quoteForm.serviceSelector.services.${G}.name`)}),u.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:i(`quoteForm.serviceSelector.services.${G}.description`)})]},G)})}),A==="flyttstadning"?u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsx(gt,{variant:"outline",className:"flex-1 h-12 text-base font-semibold rounded-xl",size:"lg",onClick:()=>{O(!1),a("/booking-flyttstadning")},children:i("quoteForm.buttons.bookDirect")}),u.jsxs(gt,{onClick:Ke,className:"flex-1 h-12 text-base font-semibold rounded-xl shadow-lg shadow-primary/20 hover:shadow-
432primary/30 transition-all",size:"lg",children:[i("quoteForm.buttons.getQuote"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]}):u.jsxs(gt,{onClick:Ke,disabled:!A,className:"w-full mt-6 h-12 text-base font-semibold rounded-xl shadow-lg shadow-primary/20 hover:shadow-primary/30 transition-all",size:"lg",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]}),c===2&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{onClick:()=>le({...R,needStorage:!R.needStorage}),className:Ue("flex items-center justify-between gap-4 p-4 rounded-xl border-2 transition-all duration-200 cursor-pointer",R.needStorage?"border-primary bg-primary/5":"border-border hover:border-primary/30 hover:bg-muted/30"),children:[u.jsxs("div",{className:"flex-1",children:[u.jsx(gr,{htmlFor:"needStorage",className:"text-sm font-medium text-foreground cursor-pointer",children:i("quoteForm.toggles.needStorage.label")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.toggles.needStorage.description")})]}),u.jsx(Li,{id:"needStorage",checked:R.needStorage,onCheckedChange:G=>le({...R,needStorage:G})})]}),u.jsxs("div",{onClick:()=>le({...R,needPacking:!R.needPacking}),className:Ue("flex items-center justify-between gap-4 p-4 rounded-xl border-2 transition-all duration-200 cursor-pointer",R.needPacking?"border-primary bg-primary/5":"border-border hover:border-primary/30 hover:bg-muted/30"),children:[u.jsxs("div",{className:"flex-1",children:[u.jsx(gr,{htmlFor:"needPacking",className:"text-sm font-medium text-foreground cursor-pointer",children:i("quoteForm.toggles.needPacking.label")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.toggles.needPacking.description")})]}),u.jsx(Li,{id:"needPacking",checked:R.needPacking,onCheckedChange:G=>le({...R,needPacking:G})})]}),u.jsxs("div",{onClick:()=>le({...R,needCleaning:!R.needCleaning}),className:Ue("flex items-center justify-between gap-4 p-4 rounded-xl border-2 transition-all duration-200 cursor-pointer",R.needCleaning?"border-primary bg-primary/5":"border-border hover:border-primary/30 hover:bg-muted/30"),children:[u.jsxs("div",{className:"flex-1",children:[u.jsx(gr,{htmlFor:"needCleaning",className:"text-sm font-medium text-foreground cursor-pointer",children:i("quoteForm.toggles.needCleaning.label")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.toggles.needCleaning.description")})]}),u.jsx(Li,{id:"needCleaning",checked:R.needCleaning,onCheckedChange:G=>le({...R,needCleaning:G})})]}),u.jsxs("div",{onClick:()=>le({...R,hasHeavyItems:!R.hasHeavyItems}),className:Ue("flex items-center justify-between gap-4 p-4 rounded-xl border-2 transition-all duration-200 cursor-pointer",R.hasHeavyItems?"border-primary bg-primary/5":"border-border hover:border-primary/30 hover:bg-muted/30"),children:[u.jsxs("div",{className:"flex-1",children:[u.jsx(gr,{htmlFor:"hasHeavyItems",className:"text-sm font-medium text-foreground cursor-pointer",children:i("quoteForm.toggles.hasHeavyItems.label")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.toggles.hasHeavyItems.description")})]}),u.jsx(Li,{id:"hasHeavyItems",checked:R.hasHeavyItems,onCheckedChange:G=>le({...R,hasHeavyItems:G})})]}),R.hasHeavyItems&&u.jsx("div",{className:"pt-1 animate-in slide-in-from-top-2 duration-200",children:u.jsx(Nd,{placeholder:i("quoteForm.placeholders.heavyItemsExample"),value:R.description,onChange:G=>le({...R,description:G.target.value}),className:"min-h-[90px]"})}),u.jsx("div",{className:"pt-2",children:u.jsx(mt,{label:i("quoteForm.labels.moveDate"),required:!0,helpText:i("quoteForm.helpTexts.dateConfirmation"),children:u.jsxs(hd,{open:h,onOpenChange:p,children:[u.jsx(pd,{asChild:!0,children:u.jsxs(gt,{variant:"outline",className:Ue("w-full h-12 justify-start text-left font-normal",!R.moveDate&&"text-muted-foreground"),children:[u.jsx(Cs,{className:"mr-3 h-5 w-5 text-muted-foreground"}),R.moveDate?Cr(R.moveDate,"PPP",{locale:z}):u.jsx("span",{children:i("quoteForm.placeholders.selectDate")})]})}),u.jsx(Vc,{className:"w-auto p-0",align:"start",children:u.jsx(Hc,{mode:"single",selected:R.moveDate,onSelect:G=>{le({...R,moveDate:G}),p(!1)},initialFocus:!0,className:"p-3 pointer-events-auto",locale:z,disabled:G=>G<new Date(new Date().setHours(0,0,0,0))})})]})})})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2"}),i("quoteForm.buttons.back")]}),u.jsxs(gt,{onClick:Ke,disabled:!mee(R),className:"flex-1 h-12 rounded-xl font-semibold shadow-lg shadow-primary/20",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]}),c===3&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsx(mt,{label:i("quoteForm.labels.address"),htmlFor:"fromAddress",required:!0,helpText:i("quoteForm.helpTexts.addressHint"),children:u.jsx(_o,{id:"fromAddress",value:oe.address,onChange:G=>se({...oe,address:G}),placeholder:i("quoteForm.placeholders.addressExample"),required:!0,allowInternational:!0})}),u.jsx(mt,{label:i("quoteForm.labels.residenceType"),required:!0,children:u.jsxs(un,{value:oe.residenceType,onValueChange:G=>{se(G==="villa"?{...oe,residenceType:G,elevator:"ingen"}:{...oe,residenceType:G})},children:[u.jsx(Qr,{children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.selectResidenceType")})}),u.jsx(en,{className:"bg-background z-50",children:Dc.map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.residenceTypes.${G}`)},G))})]})}),u.jsx(mt,{label:i("quoteForm.labels.residenceSize"),htmlFor:"size",required:!0,helpText:i("quoteForm.helpTexts.sizeHint"),children:u.jsx(tr,{id:"size",type:"number",inputMode:"numeric",min:"1",value:oe.size,onChange:G=>B(G.target.value,Je=>se({...oe,size:Je})),placeholder:i("quoteForm.placeholders.sizeExample")})}),u.jsxs("div",{className:Ue("grid gap-4",oe.residenceType!=="villa"?"grid-cols-2":"grid-cols-1"),children:[u.jsx(mt,{label:oe.residenceType==="villa"?i("quoteForm.labels.floorVilla"):i("quoteForm.labels.floor"),htmlFor:"floor",required:!0,children:u.jsx(tr,{id:"floor",type:"number",inputMode:"numeric",min:oe.residenceType==="villa"?"1":"0",step:"1",value:oe.floor,onChange:G=>se({...oe,floor:G.target.value.replace(/[^0-9]/g,"")}),placeholder:oe.residenceType==="villa"?i("quoteForm.placeholders.floorVillaExample"):i("quoteForm.placeholders.floorExample")})}),oe.residenceType!=="villa"&&u.jsx(mt,{label:i("quoteForm.labels.elevator"),required:!0,children:u.jsxs(un,{value:oe.elevator,onValueChange:G=>se({...oe,elevator:G}),children:[u.jsx(Qr,{children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.select")})}),u.jsx(en,{className:"bg-background z-50",children:hl.map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.elevatorTypes.${G}`)},G))})]})})]})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2"}),i("quoteForm.buttons.back")]}),u.jsxs(gt,{onClick:Ke,disabled:!md(oe),className:"flex-1 h-12 rounded-xl font-semibold shadow-lg shadow-primary/20",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]}),c===4&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsx(mt,{label:i("quoteForm.labels.address"),htmlFor:"toAddress",required:!0,helpText:i("quoteForm.helpTexts.addressHint"),children:u.jsx(_o,{id:"toAddress",value:F.address,onChange:G=>D({...F,address:G}),placeholder:i("quoteForm.placeholders.addressTo"),required:!0,allowInternational:!0})}),u.jsx(mt,{label:i("quoteForm.labels.residenceType"),required:!0,children:u.jsxs(un,{value:F.residenceType,onValueChange:G=>{D(G==="villa"?{...F,residenceType:G,elevator:"ingen"}:{...F,residenceType:G})},children:[u.jsx(Qr,{children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.selectResidenceType")})}),u.jsx(en,{className:"bg-background z-50",children:Dc.map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.residenceTypes.${G}`)},G))})]})}),u.jsx(mt,{label:i("quoteForm.labels.residenceSize"),htmlFor:"toSize",required:!0,helpText:i("quoteForm.helpTexts.sizeHint"),children:u.jsx(tr,{id:"toSize",type:"number",inputMode:"numeric",min:"1",value:F.size,onChange:G=>B(G.target.value,Je=>D({...F,size:Je})),placeholder:i("quoteForm.placeholders.sizeLarger")})}),u.jsxs("div",{className:Ue("grid gap-4",F.residenceType!=="villa"?"grid-cols-2":"grid-cols-1"),children:[u.jsx(mt,{label:F.residenceType==="villa"?i("quoteForm.labels.floorVilla"):i("quoteForm.labels.floor"),htmlFor:"toFloor",required:!0,children:u.jsx(tr,{id:"toFloor",type:"number",inputMode:"numeric",min:F.residenceType==="villa"?"1":"0",step:"1",value:F.floor,onChange:G=>D({...F,floor:G.target.value.replace(/[^0-9]/g,"")}),placeholder:F.residenceType==="villa"?i("quoteForm.placeholders.floorVillaLower"):i("quoteForm.placeholders.floorLower")})}),F.residenceType!=="villa"&&u.jsx(mt,{label:i("quoteForm.labels.elevator"),required:!0,children:u.jsxs(un,{value:F.elevator,onValueChange:G=>D({...F,elevator:G}),children:[u.jsx(Qr,{children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.select")})}),u.jsx(en,{className:"bg-background z-50",children:hl.map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.elevatorTypes.${G}`)},G))})]})})]})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2"}),i("quoteForm.buttons.back")]}),u.jsxs(gt,{onClick:Ke,disabled:!md(F),className:"flex-1 h-12 rounded-xl font-semibold shadow-lg shadow-primary/20",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]}),c===5&&u.jsxs("form",{onSubmit:Xe,className:"px-6 pb-6 pt-2",n
432oValidate:!0,children:[u.jsxs("div",{className:"space-y-4",children:[u.jsx(mt,{label:i("quoteForm.labels.name"),htmlFor:"name",required:!0,helpText:_e.name?void 0:i("quoteForm.helpTexts.nameHint"),error:_e.name,children:u.jsx(tr,{id:"name",value:$.name,onChange:G=>M({...$,name:G.target.value}),onBlur:()=>Oe("name"),placeholder:i("quoteForm.placeholders.nameExample"),"aria-required":"true","aria-invalid":!!_e.name,"aria-describedby":_e.name?"name-error":"name-help",className:Ue(_e.name&&"border-destructive focus:border-destructive focus:ring-destructive/20")})}),u.jsx(mt,{label:i("quoteForm.labels.phone"),htmlFor:"phone",required:!0,helpText:_e.phone?void 0:i("quoteForm.helpTexts.phoneHint"),error:_e.phone,children:u.jsx(q0,{id:"phone",value:$.phone,onChange:G=>M({...$,phone:G}),onBlur:()=>Oe("phone"),defaultPrefix:s.language==="sv"?"+46 ":"+","aria-required":"true","aria-invalid":!!_e.phone,className:Ue(_e.phone&&"[&_input]:border-destructive [&_input]:focus:border-destructive [&_input]:focus:ring-destructive/20")})}),u.jsx(mt,{label:i("quoteForm.labels.email"),htmlFor:"email",required:!0,helpText:_e.email?void 0:i("quoteForm.helpTexts.emailHint"),error:_e.email,children:u.jsx(tr,{id:"email",type:"email",value:$.email,onChange:G=>M({...$,email:G.target.value}),onBlur:()=>Oe("email"),placeholder:i("quoteForm.placeholders.emailExample"),"aria-required":"true","aria-invalid":!!_e.email,className:Ue(_e.email&&"border-destructive focus:border-destructive focus:ring-destructive/20")})}),u.jsx(mt,{label:i("quoteForm.labels.message"),htmlFor:"message",helpText:i("quoteForm.helpTexts.messageHint"),children:u.jsx(Nd,{id:"message",value:$.message,onChange:G=>M({...$,message:G.target.value}),placeholder:i("quoteForm.placeholders.messageExample"),className:"min-h-[80px]"})})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2","aria-hidden":"true"}),i("quoteForm.buttons.back")]}),u.jsx(gt,{type:"submit",disabled:!!_e.name||!!_e.phone||!!_e.email||!$.name||!$.phone||!$.email,className:"flex-1 h-12 rounded-xl font-semibold text-base shadow-lg shadow-primary/25 hover:shadow-primary/35 transition-all disabled:opacity-50 disabled:shadow-none",children:i("quoteForm.buttons.submit")})]})]}),c===6&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsx(mt,{label:i("quoteForm.labels.address"),required:!0,helpText:i("quoteForm.helpTexts.addressClean"),children:u.jsx(_o,{value:H.address,onChange:G=>re({...H,address:G}),placeholder:i("quoteForm.placeholders.searchAddress"),allowInternational:!0})}),u.jsx(mt,{label:i("quoteForm.labels.desiredDate"),required:!0,helpText:i("quoteForm.helpTexts.dateConfirmQuote"),children:u.jsxs(hd,{open:f,onOpenChange:y,children:[u.jsx(pd,{asChild:!0,children:u.jsxs(gt,{variant:"outline",className:Ue("w-full h-12 justify-start text-left font-normal",!H.desiredDate&&"text-muted-foreground"),children:[u.jsx(Cs,{className:"mr-3 h-5 w-5 text-muted-foreground"}),H.desiredDate?Cr(H.desiredDate,"PPP",{locale:z}):u.jsx("span",{children:i("quoteForm.placeholders.selectDate")})]})}),u.jsx(Vc,{className:"w-auto p-0",align:"start",children:u.jsx(Hc,{mode:"single",selected:H.desiredDate,onSelect:G=>{re({...H,desiredDate:G}),y(!1)},initialFocus:!0,className:"p-3 pointer-events-auto",locale:z,disabled:G=>G<new Date(new Date().setHours(0,0,0,0))})})]})}),u.jsx(mt,{label:i("quoteForm.labels.residenceType"),required:!0,children:u.jsxs(un,{value:H.residenceType,onValueChange:G=>re({...H,residenceType:G}),children:[u.jsx(Qr,{className:"h-12",children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.selectResidenceType")})}),u.jsx(en,{children:Dc.filter(G=>G!=="magasin").map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.residenceTypes.${G}`)},G))})]})}),u.jsx(mt,{label:i("quoteForm.labels.squareMeters"),required:!0,helpText:i("quoteForm.helpTexts.sizeApprox"),children:u.jsx(tr,{type:"number",inputMode:"numeric",min:"1",value:H.squareMeters,onChange:G=>B(G.target.value,Je=>re({...H,squareMeters:Je})),placeholder:"75",className:"h-12"})})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2","aria-hidden":"true"}),i("quoteForm.buttons.back")]}),u.jsxs(gt,{onClick:Ke,disabled:!ut(),className:"flex-1 h-12 rounded-xl font-semibold text-base shadow-lg shadow-primary/25 hover:shadow-
432primary/35 transition-all disabled:opacity-50 disabled:shadow-none",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]}),c===7&&u.jsxs("form",{onSubmit:Xe,className:"px-6 pb-6 pt-2",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsx(mt,{label:i("quoteForm.labels.name"),htmlFor:"name-step7",required:!0,helpText:_e.name?void 0:i("quoteForm.helpTexts.nameHint"),error:_e.name,children:u.jsx(tr,{id:"name-step7",value:$.name,onChange:G=>M({...$,name:G.target.value}),onBlur:()=>Oe("name"),placeholder:i("quoteForm.placeholders.nameExample"),"aria-required":"true","aria-invalid":!!_e.name,className:Ue(_e.name&&"border-destructive focus:border-destructive focus:ring-destructive/20")})}),u.jsx(mt,{label:i("quoteForm.labels.phone"),htmlFor:"phone-step7",required:!0,helpText:_e.phone?void 0:i("quoteForm.helpTexts.phoneConfirm"),error:_e.phone,children:u.jsx(q0,{id:"phone-step7",value:$.phone,onChange:G=>M({...$,phone:G}),onBlur:()=>Oe("phone"),defaultPrefix:s.language==="sv"?"+46 ":"+","aria-required":"true","aria-invalid":!!_e.phone,className:Ue(_e.phone&&"[&_input]:border-destructive [&_input]:focus:border-destructive [&_input]:focus:ring-destructive/20")})}),u.jsx(mt,{label:i("quoteForm.labels.email"),htmlFor:"email-step7",required:!0,helpText:_e.email?void 0:i("quoteForm.helpTexts.emailQuote"),error:_e.email,children:u.jsx(tr,{id:"email-step7",type:"email",value:$.email,onChange:G=>M({...$,email:G.target.value}),onBlur:()=>Oe("email"),placeholder:i("quoteForm.placeholders.emailExample"),"aria-required":"true","aria-invalid":!!_e.email,className:Ue(_e.email&&"border-destructive focus:border-destructive focus:ring-destructive/20")})})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2","aria-hidden":"true"}),i("quoteForm.buttons.back")]}),u.jsx(gt,{type:"submit",disabled:!!_e.name||!!_e.phone||!!_e.email||!$.name||!$.phone||!$.email,className:"flex-1 h-12 rounded-xl font-semibold text-base shadow-lg shadow-primary/25 hover:shadow-primary/35 transition-all disabled:opacity-50 disabled:shadow-none",children:i("quoteForm.buttons.submit")})]})]}),c===8&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{onClick:()=>Q({...te,needStorage:!te.needStorage}),className:Ue("flex items-center justify-between gap-4 p-4 rounded-xl border-2 transition-all duration-200 cursor-pointer",te.needStorage?"border-primary bg-primary/5":"border-border hover:border-primary/30 hover:bg-muted/30"),children:[u.jsxs("div",{className:"flex-1",children:[u.jsx(gr,{htmlFor:"kontorsNeedStorage",className:"text-sm font-medium text-foreground cursor-pointer",children:i("quoteForm.toggles.needStorage.label")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.toggles.needStorage.descriptionOffice")})]}),u.jsx(Li,{id:"kontorsNeedStorage",checked:te.needStorage,onCheckedChange:G=>Q({...te,needStorage:G})})]}),u.jsxs("div",{onClick:()=>Q({...te,needPacking:!te.needPacking}),className:Ue("flex items-center justify-between gap-4 p-4 rounded-xl border-2 transition-all duration-200 cursor-pointer",te.needPacking?"border-primary bg-primary/5":"border-border hover:border-primary/30 hover:bg-muted/30"),children:[u.jsxs("div",{className:"flex-1",children:[u.jsx(gr,{htmlFor:"kontorsNeedPacking",className:"text-sm font-medium text-foreground cursor-pointer",children:i("quoteForm.toggles.needPacking.label")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.toggles.needPacking.descriptionOffice")})]}),u.jsx(Li,{id:"kontorsNeedPacking",checked:te.needPacking,onCheckedChange:G=>Q({...te,needPacking:G})})]}),u.jsxs("div",{onClick:()=>Q({...te,hasHeavyItems:!te.hasHeavyItems}),className:Ue("flex items-center justify-between gap-4 p-4 rounded-xl border-2 transition-all duration-200 cursor-pointer",te.hasHeavyItems?"border-primary bg-primary/5":"border-border hover:border-primary/30 hover:bg-muted/30"),children:[u.jsxs("div",{className:"flex-1",children:[u.jsx(gr,{htmlFor:"kontorsHasHeavyItems",className:"text-sm font-medium text-foreground cursor-pointer",children:i("quoteForm.toggles.hasHeavyItems.labelPlural")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.toggles.hasHeavyItems.descriptionOffice")})]}),u.jsx(Li,{id:"kontorsHasHeavyItems",checked:te.hasHeavyItems,onCheckedChange:G=>Q({...te,hasHeavyItems:G})})]}),te.hasHeavyItems&&u.jsx("div",{className:"pt-1 animate-in slide-in-from-top-2 duration-200",children:u.jsx(Nd,{placeholder:i("quoteForm.placeholders.heavyItemsOfficeExample"),value:te.description,onChange:G=>Q({...te,description:G.target.value}),className:"min-h-[90px]"})}),u.jsx("div",{className:"pt-2",children:u.jsx(mt,{label:i("quoteForm.labels.desiredMoveDate"),required:!0,helpText:i("quoteForm.helpTexts.dateConfirmQuote"),children:u.jsxs(hd,{open:v,onOpenChange:b,children:[u.jsx(pd,{asChild:!0,children:u.jsxs(gt,{variant:"outline",className:Ue("w-full h-12 justify-start text-left font-normal",!te.moveDate&&"text-muted-foreground"),children:[u.jsx(Cs,{className:"mr-3 h-5 w-5 text-muted-foreground"}),te.moveDate?Cr(te.moveDate,"PPP",{locale:z}):u.jsx("span",{children:i("quoteForm.placeholders.selectDate")})]})}),u.jsx(Vc,{className:"w-auto p-0",align:"start",children:u.jsx(Hc,{mode:"single",selected:te.moveDate,onSelect:G=>{Q({...te,moveDate:G}),b(!1)},initialFocus:!0,className:"p-3 pointer-events-auto",locale:z,disabled:G=>G<new Date(new Date().setHours(0,0,0,0))})})]})})})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2"}),i("quoteForm.buttons.back")]}),u.jsxs(gt,{onClick:Ke,disabled:!St(),className:"flex-1 h-12 rounded-xl font-semibold shadow-lg shadow-primary/20",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]}),c===9&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsx(mt,{label:i("quoteForm.labels.address"),htmlFor:"kontorsFromAddress",required:!0,helpText:i("quoteForm.helpTexts.addressHint"),children:u.jsx(_o,{id:"kontorsFromAddress",value:ce.address,onChange:G=>de({...ce,address:G}),placeholder:i("quoteForm.placeholders.addressExample"),required:!0,allowInternational:!0})}),u.jsx(mt,{label:i("quoteForm.labels.workstations"),htmlFor:"kontorsFromWorkstations",required:!0,helpText:i("quoteForm.helpTexts.workstations"),children:u.jsx(tr,{id:"kontorsFromWorkstations",value:ce.workstations,onChange:G=>de({...ce,workstations:G.target.value}),placeholder:i("quoteForm.placeholders.workstationsExample"),type:"number",min:"1"})}),u.jsx(mt,{label:i("quoteForm.labels.officeSize"),htmlFor:"kontorsFromSize",required:!0,helpText:i("quoteForm.helpTexts.sizeHint"),children:u.jsx(tr,{id:"kontorsFromSize",type:"number",inputMode:"numeric",min:"1",value:ce.size,onChange:G=>B(G.target.value,Je=>de({...ce,size:Je})),placeholder:i("quoteForm.placeholders.officeSizeExample")})}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsx(mt,{label:i("quoteForm.labels.floor"),htmlFor:"kontorsFromFloor",required:!0,children:u.jsx(tr,{id:"kontorsFromFloor",type:"number",inputMode:"numeric",min:"0",step:"1",value:ce.floor,onChange:G=>de({...ce,floor:G.target.value.replace(/[^0-9]/g,"")}),placeholder:i("quoteForm.placeholders.floorExample")})}),u.jsx(mt,{label:i("quoteForm.labels.elevator"),required:!0,children:u.jsxs(un,{value:ce.elevator,onValueChange:G=>de({...ce,elevator:G}),children:[u.jsx(Qr,{children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.select")})}),u.jsx(en,{className:"bg-background z-50",children:hl.map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.elevatorTypes.${G}`)},G))})]})})]})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2"}),i("quoteForm.buttons.back")]}),u.jsxs(gt,{onClick:Ke,disabled:!dr(ce),className:"flex-1 h-12 rounded-xl font-semibold shadow-lg shadow-primary/20",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]}),c===10&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsx(mt,{label:i("quoteForm.labels.address"),htmlFor:"kontorsToAddress",required:!0,helpText:i("quoteForm.helpTexts.addressHint"),children:u.jsx(_o,{id:"kontorsToAddress",value:he.address,onChange:G=>we({...he,address:G}),placeholder:i("quoteForm.placeholders.addressTo"),required:!0,allowInternational:!0})}),u.jsx(mt,{label:i("quoteForm.labels.workstationsNew"),htmlFor:"kontorsToWorkstations",required:!0,helpText:i("quoteForm.helpTexts.workstationsNew"),children:u.jsx(tr,{id:"kontorsToWorkstations",value:he.workstations,onChange:G=>we({...he,workstations:G.target.value}),placeholder:i("quoteForm.placeholders.workstationsNewExample"),type:"number",min:"1"})}),u.jsx(mt,{label:i("quoteForm.labels.officeSize"),htmlFor:"kontorsToSize",required:!0,helpText:i("quoteForm.helpTexts.sizeHint"),children:u.jsx(tr,{id:"kontorsToSize",type:"number",inputMode:"numeric",min:"1",value:he.size,onChange:G=>B(G.target.value,Je=>we({...he,size:Je})),placeholder:i("quoteForm.placeholders.officeSizeNewExample")})}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsx(mt,{label:i("quoteForm.labels.floor"),htmlFor:"kontorsToFloor",required:!0,children:u.jsx(tr,{id:"kontorsToFloor",type:"number",inputMode:"numeric",min:"0",step:"1",value:he.floor,onChange:G=>we({...he,floor:G.target.value.replace(/[^0-9]/g,"")}),placeholder:i("quoteForm.placeholders.floorLower")})}),u.jsx(mt,{label:i("quoteForm.labels.elevator"),required:!0,children:u.jsxs(un,{value:he.elevator,onValueChange:G=>we({...he,elevator:G}),children:[u.jsx(Qr,{children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.select")})}),u.jsx(en,{className:"bg-background z-50",children:hl.map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.elevatorTypes.${G}`)},G))})]})})]})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2"}),i("quoteForm.buttons.back")]}),u.jsxs(gt,{onClick:Ke,disabled:!dr(he),className:"flex-1 h-12 rounded-xl font-semibold shadow-lg shadow-primary/20",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]}),c===11&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"pb-3 border-b border-border/50",children:[u.jsx("p",{className:"text-sm font-medium text-foreground mb-3",children:i("quoteForm.household.question")}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("button",{type:"button",onClick:()=>Ce({...Ne,moveWholeHousehold:!0,partialDescription:""}),className:Ue("p-4 rounded-xl border-2 text-center transition-all duration-200",Ne.moveWholeHousehold?"border-primary bg-primary/5 shadow-sm":"border-border hover:border-primary/40 hover:bg-muted/30"),children:[u.jsx("div",{className:Ue("w-10 h-10 rounded-lg flex items-center justify-center mx-auto mb-2 transition-colors",Ne.moveWholeHousehold?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"),children:u.jsx(bu,{className:"w-5 h-5"})}),u.jsx("p",{className:"font-semibold text-foreground text-sm",children:i("quoteForm.household.wholeHousehold")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.household.wholeHouseholdDesc")})]}),u.jsxs("button",{type:"button",onClick:()=>Ce({...Ne,moveWholeHousehold:!1}),className:Ue("p-4 rounded-xl border-2 text-center transition-all duration-200",Ne.moveWholeHousehold?"border-border hover:border-primary/40 hover:bg-muted/30":"border-primary bg-primary/5 shadow-sm"),children:[u.jsx("div",{className:Ue("w-10 h-10 rounded-lg flex items-center justify-center mx-auto mb-2 transition-colors",Ne.moveWholeHousehold?"bg-muted text-muted-foreground":"bg-primary text-primary-foreground"),children:u.jsx(wu,{className:"w-5 h-5"})}),u.jsx("p",{className:"font-semibold text-foreground text-sm",children:i("quoteForm.household.partialMove")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.household.partialMoveDesc")})]})]})]}),!Ne.moveWholeHousehold&&u.jsx("div",{className:"animate-in slide-in-from-top-2 duration-200",children:u.jsx(mt,{label:i("quoteForm.labels.whatToMove"),required:!0,children:u.jsx(see,{selectedItems:Ne.selectedFurniture,onItemsChange:G=>Ce({...Ne,selectedFurniture:G,partialDescription:N3(G)}),totalVolume:K0(Ne.selectedFurniture)})})}),u.jsx("div",{children:u.jsx(mt,{label:i("quoteForm.labels.pickupDate"),required:!0,helpText:i("quoteForm.helpTexts.pickupDate"),children:u.jsxs(hd,{open:w,onOpenChange:x,children:[u.jsx(pd,{asChild:!0,children:u.jsxs(gt,{variant:"outline",className:Ue("w-full h-12 justify-start text-left font-normal",!Ne.moveFromDate&&"text-muted-foreground"),children:[u.jsx(Cs,{className:"mr-3 h-5 w-5 text-muted-foreground"}),Ne.moveFromDate?Cr(Ne.moveFromDate,"PPP",{locale:z}):u.jsx("span",{children:i("quoteForm.placeholders.selectDate")})]})}),u.jsx(Vc,{className:"w-auto p-0",align:"start",children:u.jsx(Hc,{mode:"single",selected:Ne.moveFromDate,onSelect:G=>{Ce({...Ne,moveFromDate:G}),x(!1)},initialFocus:!0,className:"p-3 pointer-events-auto",locale:z,disabled:G=>G<new Date(new Date().setHours(0,0,0,0))})})]})})}),u.jsx("div",{children:u.jsx(mt,{label:i("quoteForm.labels.deliveryDate"),required:!0,helpText:i("quoteForm.helpTexts.deliveryDate"),children:u.jsxs(hd,{open:S,onOpenChange:E,children:[u.jsx(pd,{asChild:!0,children:u.jsxs(gt,{variant:"outline",className:Ue("w-full h-12 justify-start text-left font-normal",!Ne.deliveryDate&&"text-muted-foreground"),children:[u.jsx(Cs,{className:"mr-3 h-5 w-5 text-muted-foreground"}),Ne.deliveryDate?Cr(Ne.deliveryDate,"PPP",{locale:z}):u.jsx("span",{children:i("quoteForm.placeholders.selectDate")})]})}),u.jsx(Vc,{className:"w-auto p-0",align:"start",children:u.jsx(Hc,{mode:"single",selected:Ne.deliveryDate,onSelect:G=>{Ce({...Ne,deliveryDate:G}),E(!1)},initialFocus:!0,className:"p-3 pointer-events-auto",locale:z,disabled:G=>{const Je=new Date(new Date().setHours(0,0,0,0));return Ne.moveFromDate?G<Ne.moveFromDate:G<Je}})})]})})}),u.jsx("div",{children:u.jsx(mt,{label:i("quoteForm.labels.dateFlexibility"),required:!0,helpText:i("quoteForm.helpTexts.dateFlexibility"),children:u.jsxs(un,{value:Ne.flexibility,onValueChange:G=>Ce({...Ne,flexibility:G}),children:[u.jsx(Qr,{className:"h-12",children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.selectFlexibility")})}),u.jsx(en,{className:"bg-background z-50",children:oee.map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.flexibility.${G}`)},G))})]})})})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2"}),i("quoteForm.buttons.back")]}),u.jsxs(gt,{onClick:Ke,disabled:!wt(),className:"flex-1 h-12 rounded-xl font-semibold shadow-lg shadow-primary/20",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]}),c===12&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{onClick:()=>Ce({...Ne,needStorage:!Ne.needStorage}),className:Ue("flex items-center justify-between gap-4 p-4 rounded-xl border-2 transition-all duration-200 cursor-pointer",Ne.needStorage?"border-primary bg-primary/5":"border-border hover:border-primary/30 hover:bg-muted/30"),children:[u.jsxs("div",{className:"flex-1",children:[u.jsx(gr,{htmlFor:"utlandsNeedStorage",className:"text-sm font-medium text-foreground cursor-pointer",children:i("quoteForm.toggles.needStorage.label")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.toggles.needStorage.descriptionInternational")})]}),u.jsx(Li,{id:"utlandsNeedStorage",checked:Ne.needStorage,onCheckedChange:G=>Ce({...Ne,needStorage:G})})]}),u.jsxs("div",{onClick:()=>Ce({...Ne,needPacking:!Ne.needPacking}),className:Ue("flex items-center
432 justify-between gap-4 p-4 rounded-xl border-2 transition-all duration-200 cursor-pointer",Ne.needPacking?"border-primary bg-primary/5":"border-border hover:border-primary/30 hover:bg-muted/30"),children:[u.jsxs("div",{className:"flex-1",children:[u.jsx(gr,{htmlFor:"utlandsNeedPacking",className:"text-sm font-medium text-foreground cursor-pointer",children:i("quoteForm.toggles.needPacking.label")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.toggles.needPacking.descriptionInternational")})]}),u.jsx(Li,{id:"utlandsNeedPacking",checked:Ne.needPacking,onCheckedChange:G=>Ce({...Ne,needPacking:G})})]}),u.jsxs("div",{onClick:()=>Ce({...Ne,needCleaning:!Ne.needCleaning}),className:Ue("flex items-center justify-between gap-4 p-4 rounded-xl border-2 transition-all duration-200 cursor-pointer",Ne.needCleaning?"border-primary bg-primary/5":"border-border hover:border-primary/30 hover:bg-muted/30"),children:[u.jsxs("div",{className:"flex-1",children:[u.jsx(gr,{htmlFor:"utlandsNeedCleaning",className:"text-sm font-medium text-foreground cursor-pointer",children:i("quoteForm.toggles.needCleaning.label")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.toggles.needCleaning.description")})]}),u.jsx(Li,{id:"utlandsNeedCleaning",checked:Ne.needCleaning,onCheckedChange:G=>Ce({...Ne,needCleaning:G})})]}),u.jsxs("div",{onClick:()=>Ce({...Ne,hasHeavyItems:!Ne.hasHeavyItems}),className:Ue("flex items-center justify-between gap-4 p-4 rounded-xl border-2 transition-all duration-200 cursor-pointer",Ne.hasHeavyItems?"border-primary bg-primary/5":"border-border hover:border-primary/30 hover:bg-muted/30"),children:[u.jsxs("div",{className:"flex-1",children:[u.jsx(gr,{htmlFor:"utlandsHasHeavyItems",className:"text-sm font-medium text-foreground cursor-pointer",children:i("quoteForm.toggles.hasHeavyItems.label")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.toggles.hasHeavyItems.description")})]}),u.jsx(Li,{id:"utlandsHasHeavyItems",checked:Ne.hasHeavyItems,onCheckedChange:G=>Ce({...Ne,hasHeavyItems:G})})]}),Ne.hasHeavyItems&&u.jsx("div",{className:"pt-1 animate-in slide-in-from-top-2 duration-200",children:u.jsx(Nd,{placeholder:i("quoteForm.placeholders.heavyItemsExample"),value:Ne.description,onChange:G=>Ce({...Ne,description:G.target.value}),className:"min-h-[90px]"})})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2"}),i("quoteForm.buttons.back")]}),u.jsxs(gt,{onClick:Ke,className:"flex-1 h-12 rounded-xl font-semibold shadow-lg shadow-primary/20",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]}),c===13&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsx(mt,{label:i("quoteForm.labels.address"),htmlFor:"utlandsFromAddress",required:!0,helpText:i("quoteForm.helpTexts.addressHint"),children:u.jsx(_o,{id:"utlandsFromAddress",value:ee.address,onChange:G=>ue({...ee,address:G}),placeholder:i("quoteForm.placeholders.addressExample"),required:!0,allowInternational:!0})}),u.jsx(mt,{label:i("quoteForm.labels.residenceType"),required:!0,children:u.jsxs(un,{value:ee.residenceType,onValueChange:G=>ue({...ee,residenceType:G}),children:[u.jsx(Qr,{children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.selectResidenceType")})}),u.jsx(en,{className:"bg-background z-50",children:Dc.map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.residenceTypes.${G}`)},G))})]})}),u.jsx(mt,{label:i("quoteForm.labels.residenceSize"),htmlFor:"utlandsFromSize",required:!0,helpText:i("quoteForm.helpTexts.sizeHint"),children:u.jsx(tr,{id:"utlandsFromSize",type:"number",inputMode:"numeric",min:"1",value:ee.size,onChange:G=>B(G.target.value,Je=>ue({...ee,size:Je})),placeholder:i("quoteForm.placeholders.sizeExample")})}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsx(mt,{label:i("quoteForm.labels.floor"),htmlFor:"utlandsFromFloor",required:!0,children:u.jsx(tr,{id:"utlandsFromFloor",type:"number",inputMode:"numeric",min:"0",step:"1",value:ee.floor,onChange:G=>ue({...ee,floor:G.target.value.replace(/[^0-9]/g,"")}),placeholder:i("quoteForm.placeholders.floorExample")})}),u.jsx(mt,{label:i("quoteForm.labels.elevator"),required:!0,children:u.jsxs(un,{value:ee.elevator,onValueChange:G=>ue({...ee,elevator:G}),children:[u.jsx(Qr,{children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.select")})}),u.jsx(en,{className:"bg-background z-50",children:hl.map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.elevatorTypes.${G}`)},G))})]})})]})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2"}),i("quoteForm.buttons.back")]}),u.jsxs(gt,{onClick:Ke,disabled:!md(ee),className:"flex-1 h-12 rounded-xl font-semibold shadow-lg shadow-primary/20",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]}),c===14&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsx(mt,{label:i("quoteForm.labels.address"),htmlFor:"utlandsToAddress",required:!0,helpText:i("quoteForm.helpTexts.addressHint"),children:u.jsx(_o,{id:"utlandsToAddress",value:me.address,onChange:G=>Ee({...me,address:G}),placeholder:i("quoteForm.placeholders.addressTo"),required:!0,allowInternational:!0})}),u.jsx(mt,{label:i("quoteForm.labels.residenceType"),required:!0,children:u.jsxs(un,{value:me.residenceType,onValueChange:G=>Ee({...me,residenceType:G}),children:[u.jsx(Qr,{children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.selectResidenceType")})}),u.jsx(en,{className:"bg-background z-50",children:Dc.map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.residenceTypes.${G}`)},G))})]})}),u.jsx(mt,{label:i("quoteForm.labels.residenceSize"),htmlFor:"utlandsToSize",required:!0,helpText:i("quoteForm.helpTexts.sizeHint"),children:u.jsx(tr,{id:"utlandsToSize",type:"number",inputMode:"numeric",min:"1",value:me.size,onChange:G=>B(G.target.value,Je=>
432Ee({...me,size:Je})),placeholder:i("quoteForm.placeholders.sizeLarger")})}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsx(mt,{label:i("quoteForm.labels.floor"),htmlFor:"utlandsToFloor",required:!0,children:u.jsx(tr,{id:"utlandsToFloor",type:"number",inputMode:"numeric",min:"0",step:"1",value:me.floor,onChange:G=>Ee({...me,floor:G.target.value.replace(/[^0-9]/g,"")}),placeholder:i("quoteForm.placeholders.floorLower")})}),u.jsx(mt,{label:i("quoteForm.labels.elevator"),required:!0,children:u.jsxs(un,{value:me.elevator,onValueChange:G=>Ee({...me,elevator:G}),children:[u.jsx(Qr,{children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.select")})}),u.jsx(en,{className:"bg-background z-50",children:hl.map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.elevatorTypes.${G}`)},G))})]})})]})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2"}),i("quoteForm.buttons.back")]}),u.jsxs(gt,{onClick:Ke,disabled:!md(me),className:"flex-1 h-12 rounded-xl font-semibold shadow-lg shadow-primary/20",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]}),c===15&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"pb-3 border-b border-border/50",children:[u.jsx("p",{className:"text-sm font-medium text-foreground mb-3",children:i("quoteForm.storage.question")}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("button",{type:"button",onClick:()=>Le({...ve,direction:"in"}),className:Ue("p-4 rounded-xl border-2 text-center transition-all duration-200",ve.direction==="in"?"border-primary bg-primary/5 shadow-sm":"border-border hover:border-primary/40 hover:bg-muted/30"),children:[u.jsx("div",{className:Ue("w-10 h-10 rounded-lg flex items-center justify-center mx-auto mb-2 transition-colors",ve.direction==="in"?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"),children:u.jsx(wu,{className:"w-5 h-5"})}),u.jsx("p",{className:"font-semibold text-foreground text-sm",children:i("quoteForm.storage.toStorage")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.storage.toStorageDesc")})]}),u.jsxs("button",{type:"button",onClick:()=>Le({...ve,direction:"out"}),className:Ue("p-4 rounded-xl border-2 text-center transition-all duration-200",ve.direction==="out"?"border-primary bg-primary/5 shadow-sm":"border-border hover:border-primary/40 hover:bg-muted/30"),children:[u.jsx("div",{className:Ue("w-10 h-10 rounded-lg flex items-center justify-center mx-auto mb-2 transition-colors",ve.direction==="out"?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"),children:u.jsx(bu,{className:"w-5 h-5"})}),u.jsx("p",{className:"font-semibold text-foreground text-sm",children:i("quoteForm.storage.fromStorage")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.storage.fromStorageDesc")})]})]})]}),u.jsx(mt,{label:i("quoteForm.labels.storageDuration"),required:!0,helpText:i("quoteForm.helpTexts.dateConfirmQuote"),children:u.jsxs(un,{value:ve.storageDuration,onValueChange:G=>Le({...ve,storageDuration:G}),children:[u.jsx(Qr,{className:"h-12",children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.selectDuration")})}),u.jsx(en,{className:"bg-background z-50",children:lee.map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.storageDuration.${G}`)},G))})]})}),u.jsx(mt,{label:i("quoteForm.labels.desiredDate"),required:!0,helpText:i("quoteForm.helpTexts.dateConfirmQuote"),children:u.jsxs(hd,{open:T,onOpenChange:W,children:[u.jsx(pd,{asChild:!0,children:u.jsxs(gt,{variant:"outline",className:Ue("w-full h-12 justify-start text-left font-normal",!ve.moveDate&&"text-muted-foreground"),children:[u.jsx(Cs,{className:"mr-3 h-5 w-5 text-muted-foreground"}),ve.moveDate?Cr(ve.moveDate,"PPP",{locale:z}):u.jsx("span",{children:i("quoteForm.placeholders.selectDate")})]})}),u.jsx(Vc,{className:"w-auto p-0",align:"start",children:u.jsx(Hc,{mode:"single",selected:ve.moveDate,onSelect:G=>{Le({...ve,moveDate:G}),W(!1)},initialFocus:!0,className:"p-3 pointer-events-auto",locale:z,disabled:G=>G<new Date(new Date().setHours(0,0,0,0))})})]})})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2"}),i("quoteForm.buttons.back")]}
432),u.jsxs(gt,{onClick:Ke,disabled:!Lt(),className:"flex-1 h-12 rounded-xl font-semibold shadow-lg shadow-primary/20",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]}),c===16&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{onClick:()=>Le({...ve,needPacking:!ve.needPacking}),className:Ue("flex items-center justify-between gap-4 p-4 rounded-xl border-2 transition-all duration-200 cursor-pointer",ve.needPacking?"border-primary bg-primary/5":"border-border hover:border-primary/30 hover:bg-muted/30"),children:[u.jsxs("div",{className:"flex-1",children:[u.jsx(gr,{htmlFor:"magasineringNeedPacking",className:"text-sm font-medium text-foreground cursor-pointer",children:i("quoteForm.toggles.needPacking.label")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.toggles.needPacking.description")})]}),u.jsx(Li,{id:"magasineringNeedPacking",checked:ve.needPacking,onCheckedChange:G=>Le({...ve,needPacking:G})})]}),u.jsxs("div",{onClick:()=>Le({...ve,hasHeavyItems:!ve.hasHeavyItems}),className:Ue("flex items-center justify-between gap-4 p-4 rounded-xl border-2 transition-all duration-200 cursor-pointer",ve.hasHeavyItems?"border-primary bg-primary/5":"border-border hover:border-primary/30 hover:bg-muted/30"),children:[u.jsxs("div",{className:"flex-1",children:[u.jsx(gr,{htmlFor:"magasineringHasHeavyItems",className:"text-sm font-medium text-foreground cursor-pointer",children:i("quoteForm.toggles.hasHeavyItems.label")}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("quoteForm.toggles.hasHeavyItems.description")})]}),u.jsx(Li,{id:"magasineringHasHeavyItems",checked:ve.hasHeavyItems,onCheckedChange:G=>Le({...ve,hasHeavyItems:G})})]}),ve.hasHeavyItems&&u.jsx("div",{className:"pt-1 animate-in slide-in-from-top-2 duration-200",children:u.jsx(Nd,{placeholder:i("quoteForm.placeholders.heavyItemsExample"),value:ve.description,onChange:G=>Le({...ve,description:G.target.value}),className:"min-h-[90px]"})})]}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2"}),i("quoteForm.buttons.back")]}),u.jsxs(gt,{onClick:Ke,className:"flex-1 h-12 rounded-xl font-semibold shadow-lg shadow-primary/20",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]}),c===17&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsx("div",{className:"space-y-4",children:ve.direction==="in"?u.jsxs(u.Fragment,{children:[u.jsx(mt,{label:i("quoteForm.labels.address"),htmlFor:"magasineringFromAddress",required:!0,helpText:i("quoteForm.helpTexts.addressHint"),children:u.jsx(_o,{id:"magasineringFromAddress",value:je.address,onChange:G=>Z({...je,address:G}),placeholder:i("quoteForm.placeholders.addressExample"),required:!0,allowInternational:!0})}),u.jsx(mt,{label:i("quoteForm.labels.residenceType"),required:!0,children:u.jsxs(un,{value:je.residenceType,onValueChange:G=>Z({...je,residenceType:G}),children:[u.jsx(Qr,{children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.selectResidenceType")})}),u.jsx(en,{className:"bg-background z-50",children:Dc.filter(G=>G!=="magasin").map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.residenceTypes.${G}`)},G))})]})}),u.jsx(mt,{label:i("quoteForm.labels.residenceSize"),htmlFor:"magasineringFromSize",required:!0,helpText:i("quoteForm.helpTexts.sizeHint"),children:u.jsx(tr,{id:"magasineringFromSize",type:"number",inputMode:"numeric",min:"1",value:je.size,onChange:G=>B(G.target.value,Je=>Z({...je,size:Je})),placeholder:i("quoteForm.placeholders.sizeExample")})}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsx(mt,{label:i("quoteForm.labels.floor"),htmlFor:"magasineringFromFloor",required:!0,children:u.jsx(tr,{id:"magasineringFromFloor",type:"number",inputMode:"numeric",min:"0",step:"1",value:je.floor,onChange:G=>Z({...je,floor:G.target.value.replace(/[^0-9]/g,"")}),placeholder:i("quoteForm.placeholders.floorExample")})}),u.jsx(mt,{label:i("quoteForm.labels.elevator"),required:!0,children:u.jsxs(un,{value:je.elevator,onValueChange:G=>Z({...je,elevator:G}),children:[u.jsx(Qr,{children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.select")})}),u.jsx(en,{className:"bg-background z-50",children:hl.map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.elevatorTypes.${G}`)},G))})]})})]})]}):u.jsx(u.Fragment,{children:u.jsx(mt,{label:i("quoteForm.summary.storage"),htmlFor:"magasineringFromAddressStorage",required:!0,helpText:i("quoteForm.helpTexts.addressHint"),children:u.jsx(tr,{id:"magasineringFromAddressStorage",value:je.address,onChange:G=>Z({...je,address:G.target.value}),placeholder:i("quoteForm.placeholders.addressExample")})})})}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2"}),i("quoteForm.buttons.back")]}),u.jsxs(gt,{onClick:Ke,disabled:!ft(),className:"flex-1 h-12 rounded-xl font-semibold shadow-lg shadow-primary/20",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]}),c===18&&u.jsxs("div",{className:"px-6 pb-6 pt-2",children:[u.jsx("div",{className:"space-y-4",children:ve.direction==="in"?u.jsxs(u.Fragment,{children:[u.jsx(mt,{label:i("quoteForm.summary.storage"),htmlFor:"magasineringToAddressStorage",helpText:i("quoteForm.storage.ownStorageHint"),children:u.jsx(tr,{id:"magasineringToAddressStorage",value:Pe.address,onChange:G=>et({...Pe,address:G.target.value}),placeholder:i("quoteForm.placeholders.addressExample")})}),u.jsx("p",{className:"text-sm text-muted-foreground bg-muted/50 p-3 rounded-lg",children:i("quoteForm.storage.ownStorageHint")})]}):u.jsxs(u.Fragment,{children:[u.jsx(mt,{label:i("quoteForm.labels.address"),htmlFor:"magasineringToAddress",required:!0,helpText:i("quoteForm.helpTexts.addressHint"),children:u.jsx(_o,{id:"magasineringToAddress",value:Pe.address,onChange:G=>et({...Pe,address:G}),placeholder:i("quoteForm.placeholders.addressTo"),required:!0,allowInternational:!0})}),u.jsx(mt,{label:i("quoteForm.labels.residenceType"),required:!0,children:u.jsxs(un,{value:Pe.residenceType,onValueChange:G=>et({...Pe,residenceType:G}),children:[u.jsx(Qr,{children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.selectResidenceType")})}),u.jsx(en,{className:"bg-background z-50",children:Dc.filter(G=>G!=="magasin").map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.residenceTypes.${G}`)},G))})]})}),u.jsx(mt,{label:i("quoteForm.labels.residenceSize"),htmlFor:"magasineringToSize",required:!0,helpText:i("quoteForm.helpTexts.sizeHint"),children:u.jsx(tr,{id:"magasineringToSize",type:"number",inputMode:"numeric",min:"1",value:Pe.size,onChange:G=>B(G.target.value,Je=>et({...Pe,size:Je})),placeholder:i("quoteForm.placeholders.sizeLarger")})}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsx(mt,{label:i("quoteForm.labels.floor"),htmlFor:"magasineringToFloor",required:!0,children:u.jsx(tr,{id:"magasineringToFloor",type:"number",inputMode:"numeric",min:"0",step:"1",value:Pe.floor,onChange:G=>et({...Pe,floor:G.target.value.replace(/[^0-9]/g,"")}),placeholder:i("quoteForm.placeholders.floorLower")})}),u.jsx(mt,{label:i("quoteForm.labels.elevator"),required:!0,children:u.jsxs(un,{value:Pe.elevator,onValueChange:G=>et({...Pe,elevator:G}),children:[u.jsx(Qr,{children:u.jsx(dn,{placeholder:i("quoteForm.placeholders.select")})}),u.jsx(en,{className:"bg-background z-50",children:hl.map(G=>u.jsx(Yt,{value:G,children:i(`quoteForm.options.elevatorTypes.${G}`)},G))})]})})]})]})}),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsxs(gt,{type:"button",variant:"outline",onClick:ze,className:"rounded-xl h-12",children:[u.jsx(Ln,{className:"w-4 h-4 mr-2"}),i("quoteForm.buttons.back")]}),u.jsxs(gt,{onClick:Ke,disabled:ve.direction==="out"&&!Qt(),className:"flex-1 h-12 rounded-xl font-semibold shadow-lg shadow-primary/20",children:[i("quoteForm.buttons.continue"),u.jsx(Jr,{className:"w-5 h-5 ml-2"})]})]})]})]}),u.jsx(uee,{selectedService:A,bohagsflyttOptions:R,fromAddress:oe,toAddress:F,formData:$,step:c,kontorsflyttOptions:te,kontorsFromAddress:ce,kontorsToAddress:he,flyttstadningQuote:H,utlandsflyttOptions:Ne,utlandsFromAddress:ee,utlandsToAddress:me,magasineringOptions:ve,magasineringFromAddress:je,magasineringToAddress:Pe})]})})]})},gee=()=>{const{t:e}=gi(),t=[e("hero.benefits.quote"),e("hero.benefits.insured"),e("hero.benefits.noHidden")];return u.jsxs("section",{className:"relative overflow-hidden min-h-[90vh] flex items-center",children:[u.jsx("video",{autoPlay:!0,muted:!0,loop:!0,playsInl
432ine:!0,className:"absolute inset-0 w-full h-full object-cover",children:u.jsx("source",{src:"/videos/hero-background.mp4",type:"video/mp4"})}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-primary/90 via-primary/70 to-primary/50"}),u.jsx("div",{className:"relative z-10 container mx-auto px-6 pt-40 pb-16 md:pt-52 md:pb-20",children:u.jsxs("div",{className:"max-w-3xl",children:[u.jsx("div",{className:"animate-fade-in opacity-0",style:{animationDelay:"0.1s",animationFillMode:"forwards"},children:u.jsxs("span",{className:"inline-flex items-center gap-2 bg-white/10 backdrop-blur-sm text-primary-foreground text-sm font-medium px-4 py-2 rounded-full mb-6",children:[u.jsx("span",{className:"w-2 h-2 bg-emerald-400 rounded-full animate-pulse"}),e("hero.badge")]})}),u.jsxs("h1",{className:"text-4xl md:text-5xl xl:text-7xl font-bold text-primary-foreground leading-[1.1] mb-6 animate-fade-in opacity-0",style:{animationDelay:"0.2s",animationFillMode:"forwards"},children:[e("hero.title")," ",u.jsxs("span",{className:"relative",children:[e("hero.titleHighlight"),u.jsx("svg",{className:"absolute -bottom-2 left-0 w-full",viewBox:"0 0 200 12",fill:"none",children:u.jsx("path",{d:"M2 8C50 2 150 2 198 8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",className:"text-accent/60"})})]})]}),u.jsx("p",{className:"text-primary-foreground/90 text-lg md:text-xl mb-8 max-w-xl animate-fade-in opacity-0",style:{animationDelay:"0.3s",animationFillMode:"forwards"},children:e("hero.description")}),u.jsx("ul",{className:"flex flex-col sm:flex-row flex-wrap gap-3 mb-10 animate-fade-in opacity-0",style:{animationDelay:"0.4s",animationFillMode:"forwards"},children:t.map((r,n)=>u.jsxs("li",{className:"flex items-center gap-2 text-primary-foreground/90 text-sm",children:[u.jsx(t_,{className:"w-4 h-4 text-emerald-400 flex-shrink-0"}),r]},n))}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 animate-fade-in opacity-0",style:{animationDelay:"0.5s",animationFillMode:"forwards"},children:[u.jsx($8,{children:u.jsxs(gt,{size:"lg",className:"bg-white text-primary hover:bg-white/90 rounded-full px-8 py-6 text-base font-semibold shadow-xl hover:shadow-2xl transition-all duration-300 group",children:[e("hero.cta.getQuote"),u.jsx(Jr,{className:"w-5 h-5 ml-2 group-hover:translate-x-1 transition-transform"})]})}),u.jsxs(gt,{size:"lg",className:"bg-transparent border-2 border-white text-white hover:bg-white hover:text-primary rounded-full px-8 py-6 text-base font-medium transition-all duration-300",children:[e("hero.cta.callUs"),": 08-15 11 11"]})]}),u.jsx("div",{className:"mt-12 animate-fade-in opacity-0",style:{animationDelay:"0.6s",animationFillMode:"forwards"},children:u.jsx("iframe",{src:"https://widget.reco.se/v2/venues/4027335/vertical/medium?inverted=false&border=false&lang=sv",title:"Excellent Moving Sweden AB - Omdömen på Reco",height:"150",className:"w-[300px] border-0 block overflow-hidden rounded-lg"})})]})})]})},vee=(e,t=2e3,r=0)=>{const[n,i]=_.useState(0);return _.useEffect(()=>{const s=setTimeout(()=>{const a=Date.now(),o=()=>{const l=Date.now()-a,c=Math.min(l/t,1),d=1-Math.pow(1-c,4);i(Math.floor(d*e)),c<1&&requestAnimationFrame(o)};requestAnimationFrame(o)},r);return()=>clearTimeout(s)},[e,t,r]),n},yee=()=>{const{t:e}=gi(),t=[{icon:J9,value:2e4,suffix:"+",labelKey:"about.stats.customers",descKey:"about.stats.customersDesc"},{icon:Cs,value:2018,suffix:"",labelKey:"about.stats.founded",descKey:"about.stats.foundedDesc"},{icon:IT,value:22,suffix:"",labelKey:"about.stats.vehicles",descKey:"about.stats.vehiclesDesc"}
432],r=n=>n.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ");return u.jsxs("section",{id:"om-oss",className:"py-32 bg-background relative overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/[0.02] via-transparent to-accent/[0.02]"}),u.jsxs("div",{className:"container mx-auto px-6 relative z-10",children:[u.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-end mb-24",children:[u.jsxs("div",{className:"animate-fade-in opacity-0",style:{animationDelay:"0.1s",animationFillMode:"forwards"},children:[u.jsx("p",{className:"text-primary font-semibold tracking-widest text-sm uppercase mb-4",children:e("about.label")}),u.jsxs("h2",{className:"text-5xl md:text-7xl font-bold text-foreground leading-[0.9] tracking-tight",children:[e("about.title"),u.jsx("br",{}),u.jsx("span",{className:"text-primary",children:"2018."})]})]}),u.jsx("div",{className:"animate-fade-in opacity-0",style:{animationDelay:"0.2s",animationFillMode:"forwards"},children:u.jsx("p",{className:"text-muted-foreground text-xl leading-relaxed",children:e("about.description")})})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-0 border-t border-border",children:t.map((n,i)=>{const s=vee(n.value,2500,400+i*200),a=n.icon;return u.jsxs("div",{className:`group py-16 px-8 animate-fade-in opacity-0 ${i!==2?"md:border-r border-border":""} hover:bg-primary/[0.02] transition-colors duration-500`,style:{animationDelay:`${.3+i*.1}s`,animationFillMode:"forwards"},children:[u.jsx("div",{className:"mb-8",children:u.jsxs("span",{className:"text-5xl md:text-6xl lg:text-7xl font-bold text-foreground tracking-tighter leading-none",children:[n.value===2018?s:r(s),u.jsx("span",{className:"text-primary",children:n.suffix})]})}),u.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[u.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center group-hover:bg-primary/20 transition-colors duration-300",children:u.jsx(a,{className:"w-5 h-5 text-primary"})}),u.jsx("span",{className:"text-xl font-semibold text-foreground",children:e(n.labelKey)})]}),u.jsx("p",{className:"text-muted-foreground",children:e(n.descKey)}),u.jsx("div",{className:"mt-8 h-[2px] bg-border overflow-hidden",children:u.jsx("div",{className:"h-full bg-primary origin-left scale-x-0 group-hover:scale-x-100 transition-transform duration-700"})})]},n.labelKey)})})]})]})},bee=()=>{const{t:e}=gi(),t=[{icon:bu,key:"bohagsflytt"},{icon:jy,key:"kontorsflytt"},{icon:n_,key:"magasinering"},{icon:bm,key:"flyttstadning"},{icon:Du,key:"utlandsflytt"}];return u.jsxs("section",{id:"tjanster",className:"py-28 bg-secondary/30 relative overflow-hidden",children:[u.jsx("div",{className:"absolute top-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-border to-transparent"}),u.jsx("div",{className:"absolute bottom-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-border to-transparent"}),u.jsxs("div",{className:"container mx-auto px-6",children:[u.jsxs("div",{className:"text-center mb-16",children:[u.jsx("p",{className:"text-primary font-semibold tracking-widest text-sm uppercase mb-4 animate-fade-in opacity-0",style:{animationDelay:"0.1s",animationFillMode:"forwards"},children:e("services.label")}),u.jsxs("h2",{className:"text-4xl md:text-5xl font-bold text-foreground leading-tight tracking-tight mb-6 animate-fade-in opacity-0",style:{animationDelay:"0.15s",animationFillMode:"forwards"},children:[e("services.title")," ",u.jsx("span",{className:"text-primary",children:e("services.titleHighlight")})]})]}),u.jsxs("div",{className:"space-y-6 max-w-5xl mx-auto",children:[u.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:t.slice(0,3).map((r,n)=>{const i=r.icon;return u.jsxs("div",{className:"group relative bg-background rounded-2xl p-6 border border-border hover:border-primary/30 hover:shadow-xl hover:shadow-primary/5 hover:-translate-y-1 transition-all duration-500 animate-fade-in opacity-0",style:{animationDelay:`${.2+n*.08}s`,animationFillMode:"forwards"},children:[u.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mb-4 group-hover:bg-primary group-hover:scale-110 transition-all duration-300",children:u.jsx(i,{className:"w-6 h-6 text-primary group-hover:text-primary-foreground transition-colors"})}),u.jsx("h3",{className:"text-lg font-bold text-foreground mb-2 group-hover:text-primary transition-colors duration-300",children:e(`services.items.${r.ke
432y}.title`)}),u.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e(`services.items.${r.key}.description`)})]},r.key)})}),u.jsx("div",{className:"grid md:grid-cols-2 gap-6 max-w-3xl mx-auto",children:t.slice(3,5).map((r,n)=>{const i=r.icon;return u.jsxs("div",{className:"group relative bg-background rounded-2xl p-6 border border-border hover:border-primary/30 hover:shadow-xl hover:shadow-primary/5 hover:-translate-y-1 transition-all duration-500 animate-fade-in opacity-0",style:{animationDelay:`${.45+n*.08}s`,animationFillMode:"forwards"},children:[u.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mb-4 group-hover:bg-primary group-hover:scale-110 transition-all duration-300",children:u.jsx(i,{className:"w-6 h-6 text-primary group-hover:text-primary-foreground transition-colors"})}),u.jsx("h3",{className:"text-lg font-bold text-foreground mb-2 group-hover:text-primary transition-colors duration-300",children:e(`services.items.${r.key}.title`)}),u.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e(`services.items.${r.ke
432y}.description`)})]},r.key)})})]}),u.jsx("div",{className:"mt-16 text-center animate-fade-in opacity-0",style:{animationDelay:"0.6s",animationFillMode:"forwards"},children:u.jsxs("a",{href:"tel:+46812345678",className:"inline-flex items-center gap-3 bg-primary text-primary-foreground px-8 py-4 rounded-full font-semibold text-lg hover:bg-primary/90 hover:gap-5 transition-all duration-300",children:[e("services.cta"),u.jsx(Jr,{className:"w-5 h-5"})]})})]})]})},wee="/assets/team-at-work-3Yrp15gE.jpg",xee=()=>{const{t:e}=gi(),t=[{icon:LT,key:"insured"},{icon:RT,key:"punctual"},{icon:Z9,key:"rut"},{icon:L9,key:"licensed"}];return u.jsx("section",{className:"py-28 bg-background relative overflow-hidden",children:u.jsx("div",{className:"container mx-auto px-6",children:u.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[u.jsxs("div",{className:"relative animate-fade-in opacity-0",style:{animationDelay:"0.1s",animationFillMode:"forwards"},children:[u.jsxs("div",{className:"relative rounded-3xl overflow-hidden",children:[u.jsx("img",{src:wee,alt:"Excellent Moving teamet i arbete",className:"w-full h-[500px] object-cover"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-primary/40 via-transparent to-transparent"})]}),u.jsx("div",{className:"absolute -top-4 -right-4 w-24 h-24 bg-primary/10 rounded-full blur-2xl"}),u.jsx("div",{className:"absolute -bottom-4 -left-4 w-32 h-32 bg-accent/10 rounded-full blur-2xl"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-primary font-semibold tracking-widest text-sm uppercase mb-4 animate-fade-in opacity-0",style:{animationDelay:"0.15s",animationFillMode:"forwards"},children:e("whyUs.label")}),u.jsxs("h2",{className:"text-4xl md:text-5xl font-bold text-foreground leading-tight tracking-tight mb-6 animate-fade-in opacity-0",style:{animationDelay:"0.2s",animationFillMode:"forwards"},children:[e("whyUs.title")," ",u.jsx("span",{className:"text-primary",children:e("whyUs.titleHighlight")})]}),u.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed mb-10 animate-fade-in opacity-0",style:{animationDelay:"0.25s",animationFillMode:"forwards"},children:e("whyUs.description")}),u.jsx("div",{className:"grid sm:grid-cols-2 gap-6",children:t.map((r,n)=>{const i=r.icon;return u.jsxs("div",{className:"group flex items-start gap-4 animate-fade-in opacity-0",style:{animationDelay:`${.3+n*.08}s`,animationFillMode:"forwards"},children:[u.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center flex-shrink-0 group-hover:bg-primary group-hover:scale-110 transition-all duration-300",children:u.jsx(i,{className:"w-6 h-6 text-primary group-hover:text-primary-foreground transition-colors"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-bold text-foreground mb-1",children:e(`whyUs.features.${r.key}.title`)}),u.jsx("p",{className:"text-muted-foreground text-sm",children:e(`whyUs.features.${r.key}.description`)})]})]},r.key)})})]})]})})})},_ee={bohagsflytt:bu,kontorsflytt:jy,magasinering:wu,flyttstadning:bm,utlandsflytt:Du},kee=["bohagsflytt","kontorsflytt","magasinering","flyttstadning","utlandsflytt"],See=({className:e})=>{const{t}=gi(),[r,n]=_.useState(null),[i,s]=_.useState(!1),a=o=>{n(o),s(!0)};return u.jsxs("div",{className:e,children:[u.jsx("h3",{className:"text-2xl font-bold text-foreground mb-6",children:t("quoteForm.serviceSelector.title")}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:kee.map(o=>{const l=_ee[o];return u.jsxs("button",{onClick:()=>a(o),className:"group flex items-center gap-4 p-4 bg-background rounded-xl border border-border hover:border-primary/50 hover:shadow-lg transition-all duration-300 text-left",children:[u.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center flex-shrink-0 group-hover:bg-primary group-hover:scale-110 transition-all duration-300",children:u.jsx(l,{className:"w-6 h-6 text-primary group-hover:text-primary-foreground transition-colors"})}),u.jsxs("div",{children:[u.jsx("p",{className:"font-semibold text-foreground group-hover:text-primary transition-colors",children:t(`quoteForm.serviceSelector.services.${o}.name`)}),u.jsx("p",{className:"text-sm text-muted-foreground",children:t(`quoteForm.serviceSelector.services.${o}.description`)})]})]},o)})}),u.jsx($8,{open:i,onOpenChange:s,initialService:r})]})},Nee=()=>{const{t:e}
432=gi(),t=[{icon:y0,labelKey:"Telefon",value:"08-123 45 67",href:"tel:+4681234567"},{icon:v0,labelKey:"E-post",value:"[email protected]",href:"mailto:[email protected]"},{icon:Fp,labelKey:"Adress",value:"Stockholm, Sverige",href:null},{icon:RT,labelKey:"Öppettider",value:"MÃ¥n-Fre 07:00-18:00",href:null}];return u.jsxs("section",{id:"kontakt",className:"py-28 bg-secondary/30 relative overflow-hidden",children:[u.jsx("div",{className:"absolute top-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-border to-transparent"}),u.jsx("div",{className:"absolute -top-40 -right-40 w-80 h-80 bg-primary/5 rounded-full blur-3xl"}),u.jsxs("div",{className:"container mx-auto px-6",children:[u.jsxs("div",{className:"text-center mb-16",children:[u.jsx("p",{className:"text-primary font-semibold tracking-widest text-sm uppercase mb-4 animate-fade-in opacity-0",style:{animationDelay:"0.1s",animationFillMode:"forwards"},children:e("contact.label")}),u.jsxs("h2",{className:"text-4xl md:text-5xl font-bold text-foreground leading-tight tracking-tight mb-6 animate-fade-in opacity-0",style:{animationDelay:"0.15s",animationFillMode:"forwards"},children:[e("contact.title")," ",u.jsx("span",{className:"text-primary",children:e("contact.titleHighlight")}),"?"]}),u.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto animate-fade-in opacity-0",style:{animationDelay:"0.2s",animationFillMode:"forwards"},children:e("contact.description")})]}),u.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 max-w-6xl mx-auto",children:[u.jsx("div",{className:"bg-background rounded-3xl p-8 md:p-10 border border-border shadow-lg animate-fade-in opacity-0",style:{animationDelay:"0.25s",animationFillMode:"forwards"},children:u.jsx(See,{})}),u.jsxs("div",{className:"flex flex-col justify-center",children:[u.jsxs("div",{className:"mb-10 animate-fade-in opacity-0",style:{animationDelay:"0.3s",animationFillMode:"forwards"},children:[u.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:e("footer.contactTitle")}),u.jsx("p",{className:"text-muted-foreground text-lg",children:e("contact.description")})]}),u.jsx("div",{className:"space-y-6",children:t.map((r,n)=>{const i=r.icon,s=u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx("div",{className:"w-14 h-14 rounded-xl bg-primary/10 flex items-center justify-center flex-shrink-0 group-hover:bg-primary group-hover:scale-110 transition-all duration-300",children:u.jsx(i,{className:"w-6 h-6 text-primary group-hover:text-primary-foreground transition-colors"})}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:r.labelKey}),u.jsx("p",{className:"text-lg font-semibold text-foreground",children:r.value})]})]});return u.jsx("div",{className:"animate-fade-in opacity-0",style:{animationDelay:`${.35+n*.08}s`,animationFillMode:"forwards"},children:r.href?u.jsx("a",{href:r.href,className:"group block p-4 -m-4 rounded-2xl hover:bg-background transition-colors",children:s}):u.jsx("div",{className:"group p-4 -m-4",children:s})},r.labelKey)})})]})]})]})]})},B8=()=>{const{t:e,i18n:t}=gi(),r=new Date().getFullYear(),n=t.language==="sv"?"/sv/integritetspolicy":"/en/privacy-policy";return u.jsx("footer",{className:"bg-foreground text-background",children:u.jsxs("div",{className:"container mx-auto px-6",children:[u.jsxs("div",{className:"py-16 grid md:grid-cols-2 lg:grid-cols-4 gap-12",children:[u.jsxs("div",{className:"lg:col-span-1",children:[u.jsx("img",{src:CO,alt:"Excellent Moving",className:"h-10 mb-6 brightness-0 invert"}),u.jsx("p",{className:"text-background/70 leading-relaxed mb-6",children:e("footer.description")}),u.jsxs("div",{className:"flex gap-4",children:[u.jsx("a",{href:"#",className:"w-10 h-10 rounded-full bg-background/10 flex items-center justify-center hover:bg-primary transition-colors",children:u.jsx(U9,{className:"w-5 h-5"})}),u.jsx("a",{href:"#",className:"w-10 h-10 rounded-full bg-background/10 flex items-center justify-center hover:bg-primary transition-colors",children:u.jsx(z9,{className:"w-5 h-5"})}),u.jsx("a",{href:"#",className:"w-10 h-10 rounded-full bg-background/10 flex items-center justify-center hover:bg-primary transition-colors",children:u.jsx(H9,{className:"w-5 h-5"})})]})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-bold text-lg mb-6",children:e("footer.services")}),u.jsxs("ul",{className:"space-y-3",children:[u.jsx("li",{children:u.jsx("a",{href:"#",className:"text-background/70 hover:text-primary transition-colors",children:e("services.items.bohagsflytt.title")})}),u.jsx("li",{children:u.jsx("a",{href:"#",className:"text-background/70 hover:text-primary transition-colors",children:e("services.items.kontorsflytt.title")})}),u.jsx("li",{children:u.jsx("a",{href:"#",className:"text-background/70 hover:text-primary transition-colors",children:e("services.items.magasinering.title")})}),u.jsx("li",{children:u.jsx("a",{href:"#",className:"text-background/70 hover:text-primary transition-colors",children:e("services.items.flyttstadning.title")})}),u.jsx("li",{children:u.jsx("a",{href:"#",className:"text-background/70 hover:text-primary transition-colors",children:e("services.items.utlandsflytt.title")})})]})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-bold text-lg mb-6",children:e("footer.quickLinks")}),u.jsxs("ul",{className:"space-y-3",children:[u.jsx("li",{children:u.jsx("a",{href:"#",className:"text-background/70 hover:text-primary transition-colors",children:e("footer.links.about")})}),u.jsx("li",{children:u.jsx("a",{href:"#kontakt",className:"text-background/70 hover:text-primary transition-colors",children:e("footer.links.contact")})}),u.jsx("li",{children:u.jsx("a",{href:"#",className:"text-background/70 hover:text-primary transition-colors",children:e("footer.links.quote")})}),u.jsx("li",{children:u.jsx(U2,{to:n,className:"text-background/70 hover:text-primary transition-colors",children:e("footer.links.privacy")})})]})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-bold text-lg mb-6",children:e("footer.contactTitle")}),u.jsxs("ul",{className:"space-y-4",children:[u.jsx("li",{children:u.jsxs("a",{href:"tel:+4681511111",className:"flex items-center gap-3 text-background/70 hover:text-primary transition-colors",children:[u.jsx(y0,{className:"w-5 h-5"}),"08-15 11 11"]})}),u.jsx("li",{children:u.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-3 text-background/70 hover:text-primary transition-colors",children:[u.jsx(v0,{className:"w-5 h-5"}),"[email protected]"]})}),u.jsx("li",{children:u.jsxs("div",{className:"flex items-center gap-3 text-background/70",children:[u.jsx(Fp,{className:"w-5 h-5"}),"Bibliotekstorget 8, 171 45 Solna"]}
432)})]})]})]}),u.jsxs("div",{className:"py-6 border-t border-background/10 flex flex-col md:flex-row justify-between items-center gap-4",children:[u.jsxs("p",{className:"text-background/50 text-sm",children:["© ",r," Excellent Moving Sweden AB. Org.nr: 559187-8987"]}),u.jsxs("div",{className:"flex gap-6 text-sm",children:[u.jsx(U2,{to:n,className:"text-background/50 hover:text-primary transition-colors",children:e("footer.links.privacy")}),u.jsx("a",{href:"#",className:"text-background/50 hover:text-primary transition-colors",children:e("footer.links.terms")})]})]})]})})},E3=()=>u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(jO,{}),u.jsx(gee,{}),u.jsx(yee,{}),u.jsx(bee,{}),u.jsx(xee,{}),u.jsx(Nee,{}),u.jsx(B8,{})]}),Eee=()=>{const e=Mu();return _.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),u.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),u.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),u.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})};var q8={exports:{}},Cee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",jee=Cee,Aee=jee;function U8(){}function z8(){}z8.resetWarningCache=U8;var Tee=function(){function e(n,i,s,a,o,l){if(l!==Aee){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint: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:z8,resetWarningCache:U8};return r.PropTypes=r,r};q8.exports=Tee();var Pee=q8.exports;const $r=Ou(Pee);function Oee(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var H8=_,Ree=Oee(H8);function C3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Iee=!!(typeof window<"u"&&window.document&&window.document.createElement);function Fee(e,t,r){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(i){return i.displayName||i.name||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],o;function l(){o=e(a.map(function(d){return d.props})),c.canUseDOM?t(o):r&&(o=r(o))}var c=function(d){Lee(h,d);function h(){return d.apply(this,arguments)||this}h.peek=function(){return o},h.rewind=function(){if(h.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=o;return o=void 0,a=[],y};var p=h.prototype;return p.UNSAFE_componentWillMount=function(){a.push(this),l()},p.componentDidUpdate=function(){l()},p.componentWillUnmount=function(){var y=a.indexOf(this);a.splice(y,1),l()},p.render=function(){return Ree.createElement(s,this.props)},h}(H8.PureComponent);return C3(c,"displayName","SideEffect("+n(s)+")"),C3(c,"canUseDOM",Iee),c}}var Dee=Fee;const Mee=Ou(Dee);var $ee=typeof Element<"u",Bee=typeof Map=="function",qee=typeof Set=="function",Uee=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Dv(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Dv(e[n],t[n]))return!1;return!0}var s;if(Bee&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;for(s=e.entries();!(n=s.next()).done;)if(!Dv(n.value[1],t.get(n.value[0])))return!1;return!0}if(qee&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Uee&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;if($ee&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((i[n]==="_owner"||i[n]==="__v"||i[n]==="__o")&&e.$$typeof)&&!Dv(e[i[n]],t[i[n]]))return!1;return!0}return e!==e&&t!==t}var zee=function(t,r){try{return Dv(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Hee=Ou(zee);/*
433object-assign
434(c) Sindre Sorhus
435@license MIT
436*/var j3=Object.getOwnPropertySymbols,Vee=Object.prototype.hasOwnProperty,Wee=Object.prototype.propertyIsEnumerable;function Kee(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Gee(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(s){i[s]=s}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Yee=Gee()?Object.assign:function(e,t){for(var r,n=Kee(e),i,s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var a in r)Vee.call(r,a)&&(n[a]=r[a]);if(j3){i=j3(r);for(var o=0;o<i.length;o++)Wee.call(r,i[o])&&(n[i[o]]=r[i[o]])}}return n};const Zee=Ou(Yee);var fu={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},Bt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(Bt).map(function(e){return Bt[e]});var qr={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},G0={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Zp={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},Xee=Object.keys(G0).reduce(function(e,t){return e[G0[t]]=t,e},{}),Jee=[Bt.NOSCRIPT,Bt.SCRIPT,Bt.STYLE],la="data-react-helmet",Qee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ete=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},tte=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),Ii=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rte=function(e,t){if(typeof t!="function"&&t!==null)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)},A3=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},nte=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},kx=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},ite=function(t){var r=Qd(t,Bt.TITLE),n=Qd(t,Zp.TITLE_TEMPLATE);if(n&&r)return n.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var i=Qd(t,Zp.DEFAULT_TITLE);return r||i||void 0},ste=function(t){return Qd(t,Zp.ON_CHANGE_CLIENT_STATE)||function(){}},tw=function(t,r){return r.filter(function(n){return typeof n[t]<"u"}).map(function(n){return n[t]}).reduce(function(n,i){return Ii({},n,i)},{})},ate=function(t,r){return r.filter(function(n){return typeof n[Bt.BASE]<"u"}).map(function(n){return n[Bt.BASE]}).reverse().reduce(function(n,i){if(!n.length)for(var s=Object.keys(i),a=0;a<s.length;a++){var o=s[a],l=o.toLowerCase();if(t.indexOf(l)!==-1&&i[l])return n.concat(i)}return n},[])},Fh=function(t,r,n){var i={};return n.filter(function(s){return Array.isArray(s[t])?!0:(typeof s[t]<"u"&&ute("Helmet: "+t+' should be of type "Array". Instead found type "'+Qee(s[t])+'"'),!1)}).map(function(s){return s[t]}).reverse().reduce(function(s,a){var o={};a.filter(function(p){for(var f=void 0,y=Object.keys(p),v=0;v<y.length;v++){var b=y[v],w=b.toLowerCase();r.indexOf(w)!==-1&&!(f===qr.REL&&p[f].toLowerCase()==="canonical")&&!(w===qr.REL&&p[w].toLowerCase()==="stylesheet")&&(f=w),r.indexOf(b)!==-1&&(b===qr.INNER_HTML||b===qr.CSS_TEXT||b===qr.ITEM_PROP)&&(f=b)}if(!f||!p[f])return!1;var x=p[f].toLowerCase();return i[f]||(i[f]={}),o[f]||(o[f]={}),i[f][x]?!1:(o[f][x]=!0,!0)}
436).reverse().forEach(function(p){return s.push(p)});for(var l=Object.keys(o),c=0;c<l.length;c++){var d=l[c],h=Zee({},i[d],o[d]);i[d]=h}return s},[]).reverse()},Qd=function(t,r){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.hasOwnProperty(r))return i[r]}return null},ote=function(t){return{baseTag:ate([qr.HREF,qr.TARGET],t),bodyAttributes:tw(fu.BODY,t),defer:Qd(t,Zp.DEFER),encode:Qd(t,Zp.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:tw(fu.HTML,t),linkTags:Fh(Bt.LINK,[qr.REL,qr.HREF],t),metaTags:Fh(Bt.META,[qr.NAME,qr.CHARSET,qr.HTTPEQUIV,qr.PROPERTY,qr.ITEM_PROP],t),noscriptTags:Fh(Bt.NOSCRIPT,[qr.INNER_HTML],t),onChangeClientState:ste(t),scriptTags:Fh(Bt.SCRIPT,[qr.SRC,qr.INNER_HTML],t),styleTags:Fh(Bt.STYLE,[qr.CSS_TEXT],t),title:ite(t),titleAttributes:tw(fu.TITLE,t)}},Sx=function(){var e=Date.now();return function(t){var r=Date.now();r-e>16?(e=r,t(r)):setTimeout(function(){Sx(t)},0)}}(),T3=function(t){return clearTimeout(t)},lte=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Sx:global.requestAnimationFrame||Sx,cte=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||T3:global.cancelAnimationFrame||T3,ute=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Dh=null,dte=function(t){Dh&&cte(Dh),t.defer?Dh=lte(function(){P3(t,function(){Dh=null})}):(P3(t),Dh=null)},P3=function(t,r){var n=t.baseTag,i=t.bodyAttributes,s=t.htmlAttributes,a=t.linkTags,o=t.metaTags,l=t.noscriptTags,c=t.onChangeClientState,d=t.scriptTags,h=t.styleTags,p=t.title,f=t.titleAttributes;Nx(Bt.BODY,i),Nx(Bt.HTML,s),fte(p,f);var y={baseTag:gd(Bt.BASE,n),linkTags:gd(Bt.LINK,a),metaTags:gd(Bt.META,o),noscriptTags:gd(Bt.NOSCRIPT,l),scriptTags:gd(Bt.SCRIPT,d),styleTags:gd(Bt.STYLE,h)},v={},b={};Object.keys(y).forEach(function(w){var x=y[w],S=x.newTags,E=x.oldTags;S.length&&(v[w]=S),E.length&&(b[w]=y[w].oldTags)}),r&&r(),c(t,v,b)},V8=function(t){return Array.isArray(t)?t.join(""):t},fte=function(t,r){typeof t<"u"&&document.title!==t&&(document.title=V8(t)),Nx(Bt.TITLE,r)},Nx=function(t,r){var n=document.getElementsByTagName(t)[0];if(n){for(var i=n.getAttribute(la),s=i?i.split(","):[],a=[].concat(s),o=Object.keys(r),l=0;l<o.length;l++){var c=o[l],d=r[c]||"";n.getAttribute(c)!==d&&n.setAttribute(c,d),s.indexOf(c)===-1&&s.push(c);var h=a.indexOf(c);h!==-1&&a.splice(h,1)}for(var p=a.length-1;p>=0;p--)n.removeAttribute(a[p]);s.length===a.length?n.removeAttribute(la):n.getAttribute(la)!==o.join(",")&&n.setAttribute(la,o.join(","))}},gd=function(t,r){var n=document.head||document.querySelector(Bt.HEAD),i=n.querySelectorAll(t+"["+la+"]"),s=Array.prototype.slice.call(i),a=[],o=void 0;return r&&r.length&&r.forEach(function(l){var c=document.createElement(t);for(var d in l)if(l.hasOwnProperty(d))if(d===qr.INNER_HTML)c.innerHTML=l.innerHTML;else if(d===qr.CSS_TEXT)c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{var h=typeof l[d]>"u"?"":l[d];c.setAttribute(d,h)}c.setAttribute(la,"true"),s.some(function(p,f){return o=f,c.isEqualNode(p)})?s.splice(o,1):a.push(c)}),s.forEach(function(l){return l.parentNode.removeChild(l)}),a.forEach(function(l){return n.appendChild(l)}),{oldTags:s,newTags:a}},W8=function(t){return Object.keys(t).reduce(function(r,n){var i=typeof t[n]<"u"?n+'="'+t[n]+'"':""+n;return r?r+" "+i:i},"")},hte=function(t,r,n,i){var s=W8(n),a=V8(r);return s?"<"+t+" "+la+'="true" '+s+">"+kx(a,i)+"</"+t+">":"<"+t+" "+la+'="true">'+kx(a,i)+"</"+t+">"},pte=function(t,r,n){return r.reduce(function(i,s){var a=Object.keys(s).filter(function(c){return!(c===qr.INNER_HTML||c===qr.CSS_TEXT)}).reduce(function(c,d){var h=typeof s[d]>"u"?d:d+'="'+kx(s[d],n)+'"';return c?c+" "+h:h},""),o=s.innerHTML||s.cssText||"",l=Jee.indexOf(t)===-1;return i+"<"+t+" "+la+'="true" '+a+(l?"/>":">"+o+"</"+t+">")},"")},K8=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,i){return n[G0[i]||i]=t[i],n},r)},mte=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,i){return n[Xee[i]||i]=t[i],n},r)},gte=function(t,r,n){var i,s=(i={key:r},i[la]=!0,i),a=K8(n,s);return[qe.createElement(Bt.TITLE,a,r)]},vte=function(t,r){return r.map(function(n,i){var s,a=(s={key:i},s[la]=!0,s);
436return Object.keys(n).forEach(function(o){var l=G0[o]||o;if(l===qr.INNER_HTML||l===qr.CSS_TEXT){var c=n.innerHTML||n.cssText;a.dangerouslySetInnerHTML={__html:c}}else a[l]=n[o]}),qe.createElement(t,a)})},ko=function(t,r,n){switch(t){case Bt.TITLE:return{toComponent:function(){return gte(t,r.title,r.titleAttributes)},toString:function(){return hte(t,r.title,r.titleAttributes,n)}};case fu.BODY:case fu.HTML:return{toComponent:function(){return K8(r)},toString:function(){return W8(r)}};default:return{toComponent:function(){return vte(t,r)},toString:function(){return pte(t,r,n)}}}},G8=function(t){var r=t.baseTag,n=t.bodyAttributes,i=t.encode,s=t.htmlAttributes,a=t.linkTags,o=t.metaTags,l=t.noscriptTags,c=t.scriptTags,d=t.styleTags,h=t.title,p=h===void 0?"":h,f=t.titleAttributes;return{base:ko(Bt.BASE,r,i),bodyAttributes:ko(fu.BODY,n,i),htmlAttributes:ko(fu.HTML,s,i),link:ko(Bt.LINK,a,i),meta:ko(Bt.META,o,i),noscript:ko(Bt.NOSCRIPT,l,i),script:ko(Bt.SCRIPT,c,i),style:ko(Bt.STYLE,d,i),title:ko(Bt.TITLE,{title:p,titleAttributes:f},i)}},yte=function(t){var r,n;return n=r=function(i){rte(s,i);function s(){return ete(this,s),nte(this,i.apply(this,arguments))}return s.prototype.shouldComponentUpdate=function(o){return!Hee(this.props,o)},s.prototype.mapNestedChildrenToProps=function(o,l){if(!l)return null;switch(o.type){case Bt.SCRIPT:case Bt.NOSCRIPT:return{innerHTML:l};case Bt.STYLE:return{cssText:l}}throw new Error("<"+o.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},s.prototype.flattenArrayTypeChildren=function(o){var l,c=o.child,d=o.arrayTypeChildren,h=o.newChildProps,p=o.nestedChildren;return Ii({},d,(l={},l[c.type]=[].concat(d[c.type]||[],[Ii({},h,this.mapNestedChildrenToProps(c,p))]),l))},s.prototype.mapObjectTypeChildren=function(o){var l,c,d=o.child,h=o.newProps,p=o.newChildProps,f=o.nestedChildren;switch(d.type){case Bt.TITLE:return Ii({},h,(l={},l[d.type]=f,l.titleAttributes=Ii({},p),l));case Bt.BODY:return Ii({},h,{bodyAttributes:Ii({},p)});case Bt.HTML:return Ii({},h,{htmlAttributes:Ii({},p)})}return Ii({},h,(c={},c[d.type]=Ii({},p),c))},s.prototype.mapArrayTypeChildrenToProps=function(o,l){var c=Ii({},l);return Object.keys(o).forEach(function(d){var h;c=Ii({},c,(h={},h[d]=o[d],h))}),c}
436,s.prototype.warnOnInvalidChildren=function(o,l){return!0},s.prototype.mapChildrenToProps=function(o,l){var c=this,d={};return qe.Children.forEach(o,function(h){if(!(!h||!h.props)){var p=h.props,f=p.children,y=A3(p,["children"]),v=mte(y);switch(c.warnOnInvalidChildren(h,f),h.type){case Bt.LINK:case Bt.META:case Bt.NOSCRIPT:case Bt.SCRIPT:case Bt.STYLE:d=c.flattenArrayTypeChildren({child:h,arrayTypeChildren:d,newChildProps:v,nestedChildren:f});break;default:l=c.mapObjectTypeChildren({child:h,newProps:l,newChildProps:v,nestedChildren:f});break}}}),l=this.mapArrayTypeChildrenToProps(d,l),l},s.prototype.render=function(){var o=this.props,l=o.children,c=A3(o,["children"]),d=Ii({},c);return l&&(d=this.mapChildrenToProps(l,d)),qe.createElement(t,d)},tte(s,null,[{key:"canUseDOM",set:function(o){t.canUseDOM=o}}]),s}(qe.Component),r.propTypes={base:$r.object,bodyAttributes:$r.object,children:$r.oneOfType([$r.arrayOf($r.node),$r.node]),defaultTitle:$r.string,defer:$r.bool,encodeSpecialCharacters:$r.bool,htmlAttributes:$r.object,link:$r.arrayOf($r.object),meta:$r.arrayOf($r.object),noscript:$r.arrayOf($r.object),onChangeClientState:$r.func,script:$r.arrayOf($r.object),style:$r.arrayOf($r.object),title:$r.string,titleAttributes:$r.object,titleTemplate:$r.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=t.peek,r.rewind=function(){var i=t.rewind();return i||(i=G8({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),i},n},bte=function(){return null},wte=Mee(ote,dte,G8)(bte),Ex=yte(wte);Ex.renderStatic=Ex.rewind;const mk=({children:e})=>u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(jO,{}),u.jsx("main",{className:"pt-32 md:pt-40",children:e}),u.jsx(B8,{})]});var Lm=e=>e.type==="checkbox",eu=e=>e instanceof Date,ki=e=>e==null;const Y8=e=>typeof e=="object";var yn=e=>!ki(e)&&!Array.isArray(e)&&Y8(e)&&!eu(e),xte=e=>yn(e)&&e.target?Lm(e.target)?e.target.checked:e.target.value:e,_te=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,kte=(e,t)=>e.has(_te(t)),Ste=e=>{const t=e.constructor&&e.constructor.prototype;return yn(t)&&t.hasOwnProperty("isPrototypeOf")},gk=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Mn(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(gk&&(e instanceof Blob||n))&&(r||yn(e)))if(t=r?[]:{},!r&&!Ste(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Mn(e[i]));else return e;return t}var c1=e=>/^\w*$/.test(e),En=e=>e===void 0,vk=e=>Array.isArray(e)?e.filter(Boolean):[],yk=e=>vk(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ot=(e,t,r)=>{if(!t||!yn(e))return r;const n=(c1(t)?[t]:yk(t)).reduce((i,s)=>ki(i)?i:i[s],e);return En(n)||n===e?En(e[t])?r:e[t]:n},Ra=e=>typeof e=="boolean",_r=(e,t,r)=>{let n=-1;const i=c1(t)?[t]:yk(t),s=i.length,a=s-1;for(;++n<s;){const o=i[n];let l=r;if(n!==a){const c=e[o];
vendor: 8,740 bytes, line 436
436l=yn(c)||Array.isArray(c)?c:isNaN(+i[n+1])?{}:[]}if(o==="__proto__"||o==="constructor"||o==="prototype")return;e[o]=l,e=e[o]}};const O3={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},aa={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},So={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Nte=qe.createContext(null);Nte.displayName="HookFormContext";var Ete=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(i,s,{get:()=>{const a=s;return t._proxyFormState[a]!==aa.all&&(t._proxyFormState[a]=!n||aa.all),e[a]}});return i};const Cte=typeof window<"u"?qe.useLayoutEffect:qe.useEffect;var Ha=e=>typeof e=="string",jte=(e,t,r,n,i)=>Ha(e)?(n&&t.watch.add(e),ot(r,e,i)):Array.isArray(e)?e.map(s=>(n&&t.watch.add(s),ot(r,s))):(n&&(t.watchAll=!0),r),Cx=e=>ki(e)||!Y8(e);function El(e,t,r=new WeakSet){if(Cx(e)||Cx(t))return e===t;if(eu(e)&&eu(t))return e.getTime()===t.getTime();const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const s of n){const a=e[s];if(!i.includes(s))return!1;if(s!=="ref"){const o=t[s];if(eu(a)&&eu(o)||yn(a)&&yn(o)||Array.isArray(a)&&Array.isArray(o)?!El(a,o,r):a!==o)return!1}}return!0}var Z8=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},hp=e=>Array.isArray(e)?e:[e],R3=()=>{let e=[];return{get observers(){return e},next:i=>{for(const s of e)s.next&&s.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(s=>s!==i)}}),unsubscribe:()=>{e=[]}}},Di=e=>yn(e)&&!Object.keys(e).length,bk=e=>e.type==="file",oa=e=>typeof e=="function",Y0=e=>{if(!gk)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},X8=e=>e.type==="select-multiple",wk=e=>e.type==="radio",Ate=e=>wk(e)||Lm(e),rw=e=>Y0(e)&&e.isConnected;function Tte(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=En(e)?n++:e[t[n++]];return e}function Pte(e){for(const t in e)if(e.hasOwnProperty(t)&&!En(e[t]))return!1;return!0}function kn(e,t){const r=Array.isArray(t)?t:c1(t)?[t]:yk(t),n=r.length===1?e:Tte(e,r),i=r.length-1,s=r[i];return n&&delete n[s],i!==0&&(yn(n)&&Di(n)||Array.isArray(n)&&Pte(n))&&kn(e,r.slice(0,-1)),e}var J8=e=>{for(const t in e)if(oa(e[t]))return!0;return!1};function Z0(e,t={}){const r=Array.isArray(e);if(yn(e)||r)for(const n in e)Array.isArray(e[n])||yn(e[n])&&!J8(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Z0(e[n],t[n])):ki(e[n])||(t[n]=!0);return t}function Q8(e,t,r){const n=Array.isArray(e);if(yn(e)||n)for(const i in e)Array.isArray(e[i])||yn(e[i])&&!J8(e[i])?En(t)||Cx(r[i])?r[i]=Array.isArray(e[i])?Z0(e[i],[]):{...Z0(e[i])}:Q8(e[i],ki(t)?{}:t[i],r[i]):r[i]=!El(e[i],t[i]);return r}var Mh=(e,t)=>Q8(e,t,Z0(t));const L3={value:!1,isValid:!1},I3={value:!0,isValid:!0};var eI=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!En(e[0].attributes.value)?En(e[0].value)||e[0].value===""?I3:{value:e[0].value,isValid:!0}:I3:L3}return L3},tI=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>En(e)?e:t?e===""?NaN:e&&+e:r&&Ha(e)?new Date(e):n?n(e):e;const F3={isValid:!1,value:null};var rI=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,F3):F3;function D3(e){const t=e.ref;return bk(t)?t.files:wk(t)?rI(e.refs).value:X8(t)?[...t.selectedOptions].map(({value:r})=>r):Lm(t)?eI(e.refs).value:tI(En(t.value)?e.ref.value:t.value,e)}var Ote=(e,t,r,n)=>{const i={};for(const s of e){const a=ot(t,s);a&&_r(i,s,a._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},X0=e=>e instanceof RegExp,$h=e=>En(e)?e:X0(e)?e.source:yn(e)?X0(e.value)?e.value.source:e.value:e,M3=e=>({isOnSubmit:!e||e===aa.onSubmit,isOnBlur:e===aa.onBlur,isOnChange:e===aa.onChange,isOnAll:e===aa.all,isOnTouch:e===aa.onTouched});const $3="AsyncFunction";var Rte=e=>!!e&&!!e.validate&&!!(oa(e.validate)&&e.validate.constructor.name===$3||yn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===$3)),Lte=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),B3=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const pp=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const s=ot(e,i);if(s){const{_f:a,...o}=s;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!n)return!0;if(a.ref&&t(a.ref,a.name)&&!n)return!0;if(pp(o,t))break}else if(yn(o)&&pp(o,t))break}}};function q3(e,t,r){const n=ot(e,r);if(n||c1(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const s=i.join("."),a=ot(t,s),o=ot(e,s);if(a&&!Array.isArray(a)&&r!==s)return{name:r};if(o&&o.type)return{name:s,error:o};if(o&&o.root&&o.root.type)return{name:`${s}.root`,error:o.root};i.pop()}return{name:r}}var Ite=(e,t,r,n)=>{r(e);const{name:i,...s}=e;return Di(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(a=>t[a]===(!n||aa.all))},Fte=(e,t,r)=>!e||!t||e===t||hp(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),Dte=(e,t,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?n.isOnChange:i.isOnChange)?e:!0,Mte=(e,t)=>!vk(ot(e,t)).length&&kn(e,t),$te=(e,t,r)=>{const n=hp(ot(e,r));return _r(n,"root",t[r]),_r(e,r,n),e},Mv=e=>Ha(e);function U3(e,t,r="validate"){if(Mv(e)||Array.isArray(e)&&e.every(Mv)||Ra(e)&&!e)return{type:r,message:Mv(e)?e:"",ref:t}}var vd=e=>yn(e)&&!X0(e)?e:{value:e,message:""},z3=async(e,t,r,n,i,s)=>{const{ref:a,refs:o,required:l,maxLength:c,minLength:d,min:h,max:p,pattern:f,validate:y,name:v,valueAsNumber:b,mount:w}=e._f,x=ot(r,v);if(!w||t.has(v))return{};const S=o?o[0]:a,E=A=>{i&&S.reportValidity&&(S.setCustomValidity(Ra(A)?"":A||""),S.reportValidity())},T={},W=wk(a),z=Lm(a),B=W||z,P=(b||bk(a))&&En(a.value)&&En(x)||Y0(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,X=Z8.bind(null,v,n,T),O=(A,K,R,le=So.maxLength,oe=So.minLength)=>{const se=A?K:R;T[v]={type:A?le:oe,message:se,ref:a,...X(A?le:oe,se)}};if(s?!Array.isArray(x)||!x.length:l&&(!B&&(P||ki(x))||Ra(x)&&!x||z&&!eI(o).isValid||W&&!rI(o).isValid)){const{value:A,message:K}=Mv(l)?{value:!!l,message:l}:vd(l);if(A&&(T[v]={type:So.required,message:K,ref:S,...X(So.required,K)},!n))return E(K),T}if(!P&&(!ki(h)||!ki(p))){let A,K;const R=vd(p),le=vd(h);if(!ki(x)&&!isNaN(x)){const oe=a.valueAsNumber||x&&+x;ki(R.value)||(A=oe>R.value),ki(le.value)||(K=oe<le.value)}else{const oe=a.valueAsDate||new Date(x),se=$=>new Date(new Date().toDateString()+" "+$),F=a.type=="time",D=a.type=="week";Ha(R.value)&&x&&(A=F?se(x)>se(R.value):D?x>R.value:oe>new Date(R.value)),Ha(le.value)&&x&&(K=F?se(x)<se(le.value):D?x<le.value:oe<new Date(le.value))}if((A||K)&&(O(!!A,R.message,le.message,So.max,So.min),!n))return E(T[v].message),T}if((c||d)&&!P&&(Ha(x)||s&&Array.isArray(x))){const A=vd(c),K=vd(d),R=!ki(A.value)&&x.length>+A.value,le=!ki(K.value)&&x.length<+K.value;if((R||le)&&(O(R,A.message,K.message),!n))return E(T[v].message),T}if(f&&!P&&Ha(x)){const{value:A,message:K}=vd(f);if(X0(A)&&!x.match(A)&&(T[v]={type:So.pattern,message:K,ref:a,...X(So.pattern,K)},!n))return E(K),T}if(y){if(oa(y)){const A=await y(x,r),K=U3(A,S);if(K&&(T[v]={...K,...X(So.validate,K.message)},!n))return E(K.message),T}else if(yn(y)){let A={};for(const K in y){if(!Di(A)&&!n)break;const R=U3(await y[K](x,r),S,K);R&&(A={...R,...X(K,R.message)},E(R.message),n&&(T[v]=A))}if(!Di(A)&&(T[v]={ref:S,...A},!n))return T}}return E(!0),T};const Bte={mode:aa.onSubmit,reValidateMode:aa.onChange,shouldFocusError:!0};function qte(e={}){let t={...Bte,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:oa(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=yn(t.defaultValues)||yn(t.values)?Mn(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:Mn(i),a={action:!1,mount:!1,watch:!1},o={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h={...d};const p={array:R3(),state:R3()},f=t.criteriaMode===aa.all,y=ee=>ue=>{clearTimeout(c),c=setTimeout(ee,ue)},v=async ee=>{if(!t.disabled&&(d.isValid||h.isValid||ee)){const ue=t.resolver?Di((await z()).errors):await P(n,!0);ue!==r.isValid&&p.state.next({isValid:ue})}},b=(ee,ue)=>{!t.disabled&&(d.isValidating||d.validatingFields||h.isValidating||h.validatingFields)&&((ee||Array.from(o.mount)).forEac
vendor: 12,815 bytes, line 436
436h(me=>{me&&(ue?_r(r.validatingFields,me,ue):kn(r.validatingFields,me))}),p.state.next({validatingFields:r.validatingFields,isValidating:!Di(r.validatingFields)}))},w=(ee,ue=[],me,Ee,De=!0,_e=!0)=>{if(Ee&&me&&!t.disabled){if(a.action=!0,_e&&Array.isArray(ot(n,ee))){const Oe=me(ot(n,ee),Ee.argA,Ee.argB);De&&_r(n,ee,Oe)}if(_e&&Array.isArray(ot(r.errors,ee))){const Oe=me(ot(r.errors,ee),Ee.argA,Ee.argB);De&&_r(r.errors,ee,Oe),Mte(r.errors,ee)}if((d.touchedFields||h.touchedFields)&&_e&&Array.isArray(ot(r.touchedFields,ee))){const Oe=me(ot(r.touchedFields,ee),Ee.argA,Ee.argB);De&&_r(r.touchedFields,ee,Oe)}(d.dirtyFields||h.dirtyFields)&&(r.dirtyFields=Mh(i,s)),p.state.next({name:ee,isDirty:O(ee,ue),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else _r(s,ee,ue)},x=(ee,ue)=>{_r(r.errors,ee,ue),p.state.next({errors:r.errors})},S=ee=>{r.errors=ee,p.state.next({errors:r.errors,isValid:!1})},E=(ee,ue,me,Ee)=>{const De=ot(n,ee);if(De){const _e=ot(s,ee,En(me)?ot(i,ee):me);En(_e)||Ee&&Ee.defaultChecked||ue?_r(s,ee,ue?_e:D3(De._f)):R(ee,_e),a.mount&&v()}},T=(ee,ue,me,Ee,De)=>{let _e=!1,Oe=!1;const Ze={name:ee};if(!t.disabled){if(!me||Ee){(d.isDirty||h.isDirty)&&(Oe=r.isDirty,r.isDirty=Ze.isDirty=O(),_e=Oe!==Ze.isDirty);const Ke=El(ot(i,ee),ue);Oe=!!ot(r.dirtyFields,ee),Ke?kn(r.dirtyFields,ee):_r(r.dirtyFields,ee,!0),Ze.dirtyFields=r.dirtyFields,_e=_e||(d.dirtyFields||h.dirtyFields)&&Oe!==!Ke}if(me){const Ke=ot(r.touchedFields,ee);Ke||(_r(r.touchedFields,ee,me),Ze.touchedFields=r.touchedFields,_e=_e||(d.touchedFields||h.touchedFields)&&Ke!==me)}_e&&De&&p.state.next(Ze)}return _e?Ze:{}},W=(ee,ue,me,Ee)=>{const De=ot(r.errors,ee),_e=(d.isValid||h.isValid)&&Ra(ue)&&r.isValid!==ue;if(t.delayError&&me?(l=y(()=>x(ee,me)),l(t.delayError)):(clearTimeout(c),l=null,me?_r(r.errors,ee,me):kn(r.errors,ee)),(me?!El(De,me):De)||!Di(Ee)||_e){const Oe={...Ee,..._e&&Ra(ue)?{isValid:ue}:{},errors:r.errors,name:ee};r={...r,...Oe},p.state.next(Oe)}},z=async ee=>{b(ee,!0);const ue=await t.resolver(s,t.context,Ote(ee||o.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return b(ee),ue},B=async ee=>{const{errors:ue}=await z(ee);if(ee)for(const me of ee){const Ee=ot(ue,me);Ee?_r(r.errors,me,Ee):kn(r.errors,me)}else r.errors=ue;return ue},P=async(ee,ue,me={valid:!0})=>{for(const Ee in ee){const De=ee[Ee];if(De){const{_f:_e,...Oe}=De;if(_e){const Ze=o.array.has(_e.name),Ke=De._f&&Rte(De._f);Ke&&d.validatingFields&&b([Ee],!0);const ze=await z3(De,o.disabled,s,f,t.shouldUseNativeValidation&&!ue,Ze);if(Ke&&d.validatingFields&&b([Ee]),ze[_e.name]&&(me.valid=!1,ue))break;!ue&&(ot(ze,_e.name)?Ze?$te(r.errors,ze,_e.name):_r(r.errors,_e.name,ze[_e.name]):kn(r.errors,_e.name))}!Di(Oe)&&await P(Oe,ue,me)}}return me.valid},X=()=>{for(const ee of o.unMount){const ue=ot(n,ee);ue&&(ue._f.refs?ue._f.refs.every(me=>!rw(me)):!rw(ue._f.ref))&&Q(ee)}o.unMount=new Set},O=(ee,ue)=>!t.disabled&&(ee&&ue&&_r(s,ee,ue),!El($(),i)),A=(ee,ue,me)=>jte(ee,o,{...a.mount?s:En(ue)?i:Ha(ee)?{[ee]:ue}:ue},me,ue),K=ee=>vk(ot(a.mount?s:i,ee,t.shouldUnregister?ot(i,ee,[]):[])),R=(ee,ue,me={})=>{const Ee=ot(n,ee);let De=ue;if(Ee){const _e=Ee._f;_e&&(!_e.disabled&&_r(s,ee,tI(ue,_e)),De=Y0(_e.ref)&&ki(ue)?"":ue,X8(_e.ref)?[..._e.ref.options].forEach(Oe=>Oe.selected=De.includes(Oe.value)):_e.refs?Lm(_e.ref)?_e.refs.forEach(Oe=>{(!Oe.defaultChecked||!Oe.disabled)&&(Array.isArray(De)?Oe.checked=!!De.find(Ze=>Ze===Oe.value):Oe.checked=De===Oe.value||!!De)}):_e.refs.forEach(Oe=>Oe.checked=Oe.value===De):bk(_e.ref)?_e.ref.value="":(_e.ref.value=De,_e.ref.type||p.state.next({name:ee,values:Mn(s)})))}(me.shouldDirty||me.shouldTouch)&&T(ee,De,me.shouldTouch,me.shouldDirty,!0),me.shouldValidate&&D(ee)},le=(ee,ue,me)=>{for(const Ee in ue){if(!ue.hasOwnProperty(Ee))return;const De=ue[Ee],_e=ee+"."+Ee,Oe=ot(n,_e);(o.array.has(ee)||yn(De)||Oe&&!Oe._f)&&!eu(De)?le(_e,De,me):R(_e,De,me)}},oe=(ee,ue,me={})=>{const Ee=ot(n,ee),De=o.array.has(ee),_e=Mn(ue);_r(s,ee,_e),De?(p.array.next({name:ee,values:Mn(s)}),(d.isDirty||d.dirtyFields||h.isDirty||h.dirtyFields)&&me.shouldDirty&&p.state.next({name:ee,dirtyFields:Mh(i,s),isDirty:O(ee,_e)})):Ee&&!Ee._f&&!ki(_e)?le(ee,_e,me):R(ee,_e,me),B3(ee,o)&&p.state.next({...r,name:ee}),p.state.next({name:a.mount?ee:void 0,values:Mn(s)})},se=async ee=>{a.mount=!0;const ue=ee.target;let me=ue.name,Ee=!0;const De=ot(n,me),_e=Ke=>{Ee=Number.isNaN(Ke)||eu(Ke)&&isNaN(Ke.getTime())||El(Ke,ot(s,me,Ke))},Oe=M3(t.mode),Ze=M3(t.reValidateMode);if(De){let Ke,ze;const vt=ue.type?D3(De._f):xte(ee),Xe=ee.type===O3.BLUR||ee.type===O3.FOCUS_OUT,rr=!Lte(De._f)&&!t.resolver&&!ot(r.errors,me)&&!De._f.deps||Dte(Xe,ot(r.touchedFields,me),r.isSubmitted,Ze,Oe),be=B3(me,o,Xe);_r(s,me,vt),Xe?(De._f.onBlur&&De._f.onBlur(ee),l&&l(0)):De._f.onChange&&De._f.onChange(ee);const Ae=T(me,vt,Xe),Qe=!Di(Ae)||be;if(!Xe&&p.state.next({name:me,type:ee.type,values:Mn(s)}),rr)return(d.isValid||h.isValid)&&(t.mode==="onBlur"?Xe&&v():Xe||v()),Qe&&p.state.next({name:me,...be?{}:Ae});if(!Xe&&be&&p.state.next({...r}),t.resolver){const{errors:ut}=await z([me]);if(_e(vt),Ee){const tt=q3(r.errors,n,me),jt=q3(ut,n,tt.name||me);Ke=jt.error,me=jt.name,ze=Di(ut)}}else b([me],!0),Ke=(await z3(De,o.disabled,s,f,t.shouldUseNativeValidation))[me],b([me]),_e(vt),Ee&&(Ke?ze=!1:(d.isValid||h.isValid)&&(ze=await P(n,!0)));Ee&&(De._f.deps&&D(De._f.deps),W(me,ze,Ke,Ae))}},F=(ee,ue)=>{if(ot(r.errors,ue)&&ee.focus)return ee.focus(),1},D=async(ee,ue={})=>{let me,Ee;const De=hp(ee);if(t.resolver){const _e=await B(En(ee)?ee:De);me=Di(_e),Ee=ee?!De.some(Oe=>ot(_e,Oe)):me}else ee?(Ee=(await Promise.all(De.map(async _e=>{const Oe=ot(n,_e);return await P(Oe&&Oe._f?{[_e]:Oe}:Oe)}))).every(Boolean),!(!Ee&&!r.isValid)&&v()):Ee=me=await P(n);return p.state.next({...!Ha(ee)||(d.isValid||h.isValid)&&me!==r.isValid?{}:{name:ee},...t.resolver||!ee?{isValid:me}:{},errors:r.errors}),ue.shouldFocus&&!Ee&&pp(n,F,ee?De:o.mount),Ee},$=ee=>{const ue={...a.mount?s:i};return En(ee)?ue:Ha(ee)?ot(ue,ee):ee.map(me=>ot(ue,me))},M=(ee,ue)=>({invalid:!!ot((ue||r).errors,ee),isDirty:!!ot((ue||r).dirtyFields,ee),error:ot((ue||r).errors,ee),isValidating:!!ot(r.validatingFields,ee),isTouched:!!ot((ue||r).touchedFields,ee)}),j=ee=>{ee&&hp(ee).forEach(ue=>kn(r.errors,ue)),p.state.next({errors:ee?r.errors:{}})},U=(ee,ue,me)=>{const Ee=(ot(n,ee,{_f:{}})._f||{}).ref,De=ot(r.errors,ee)||{},{ref:_e,message:Oe,type:Ze,...Ke}=De;_r(r.errors,ee,{...Ke,...ue,ref:Ee}),p.state.next({name:ee,errors:r.errors,isValid:!1}),me&&me.shouldFocus&&Ee&&Ee.focus&&Ee.focus()},H=(ee,ue)=>oa(ee)?p.state.subscribe({next:me=>"values"in me&&ee(A(void 0,ue),me)}):A(ee,ue,!0),re=ee=>p.state.subscribe({next:ue=>{Fte(ee.name,ue.name,ee.exact)&&Ite(ue,ee.formState||d,et,ee.reRenderRoot)&&ee.callback({values:{...s},...r,...ue,defaultValues:i})}}).unsubscribe,te=ee=>(a.mount=!0,h={...h,...ee.formState},re({...ee,formState:h})),Q=(ee,ue={})=>{for(const me of ee?hp(ee):o.mount)o.mount.delete(me),o.array.delete(me),ue.keepValue||(kn(n,me),kn(s,me)),!ue.keepError&&kn(r.errors,me),!ue.keepDirty&&kn(r.dirtyFields,me),!ue.keepTouched&&kn(r.touchedFields,me),!ue.keepIsValidating&&kn(r.validatingFields,me),!t.shouldUnregister&&!ue.keepDefaultValue&&kn(i,me);p.state.next({values:Mn(s)}),p.state.next({...r,...ue.keepDirty?{isDirty:O()}:{}}),!ue.keepIsValid&&v()},ce=({disabled:ee,name:ue})=>{(Ra(ee)&&a.mount||ee||o.disabled.has(ue))&&(ee?o.disabled.add(ue):o.disabled.delete(ue))},de=(ee,ue={})=>{let me=ot(n,ee);const Ee=Ra(ue.disabled)||Ra(t.disabled);return _r(n,ee,{...me||{},_f:{...me&&me._f?me._f:{ref:{name:ee}},name:ee,mount:!0,...ue}}),o.mount.add(ee),me?ce({disabled:Ra(ue.disabled)?ue.disabled:t.disabled,name:ee}):E(ee,!0,ue.value),{...Ee?{disabled:ue.disabled||t.disabled}:{},...t.progressive?{required:!!ue.required,min:$h(ue.min),max:$h(ue.max),minLength:$h(ue.minLength),maxLength:$h(ue.maxLength),pattern:$h(ue.pattern)}:{},name:ee,onChange:se,onBlur:se,ref:De=>{if(De){de(ee,ue),me=ot(n,ee);const _e=En(De.value)&&De.querySelectorAll&&De.querySelectorAll("input,select,textarea")[0]||De,Oe=Ate(_e),Ze=me._f.refs||[];if(Oe?Ze.find(Ke=>Ke===_e):_e===me._f.ref)return;_r(n,ee,{_f:{...me._f,...Oe?{refs:[...Ze.filter(rw),_e,...Array.isArray(ot(i,ee))?[{}]:[]],ref:{type:_e.type,name:ee}}:{ref:_e}}}),E(ee,!1,void 0,_e)}else me=ot(n,ee,{}),me._f&&(me._f.mount=!1),(t.shouldUnregister||ue.shouldUnregister)&&!(kte(o.array,ee)&&a.action)&&o.unMount.add(ee)}}},he=()=>t.shouldFocusError&&pp(n,F,o.mount),we=ee=>{Ra(ee)&&(p.state.next({disabled:ee}),pp(n,(ue,me)=>{const Ee=ot(n,me);Ee&&(ue.disabled=Ee._f.disabled||ee,Array.isArray(Ee._f.refs)&&Ee._f.refs.forEach(De=>{De.disabled=Ee._f.disabled||ee}))},0,!1))},ve=(ee,ue)=>async me=>{let Ee;me&&(me.preventDefault&&me.preventDefault(),me.persist&&me.persist());let De=Mn(s);if(p.state.next({isSubmitting:!0}),t.resolver){const{errors:_e,values:Oe}=await z();r.errors=_e,De=Mn(Oe)}else await P(n);if(o.disabled.size)for(const _e of o.disabled)kn(De,_e);if(kn(r.errors,"root"),Di(r.errors)){p.state.next({errors:{}});try{await ee(De,me)}catch(_e){Ee=_e}}else ue&&await ue({...r.errors},me),he(),setTimeout(he);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Di(r.errors)&&!Ee,submitCount:r.submitCount+1,errors:r.errors}),Ee)throw Ee},Le=(ee,ue={})=>{ot(n,ee)&&(En(ue.defaultValue)?oe(ee,Mn(ot(i,ee))):(oe(ee,ue.defaultValue),_r(i,ee,Mn(ue.defaultValue))),ue.keepTouched||kn(r.touchedFields,ee),ue.keepDirty||(kn(r.dirtyFields,ee),r.isDirty=ue.defaultValue?O(ee,Mn(ot(i,ee))):O()),ue.keepError||(kn(r.errors,ee),d.isValid&&v()),p.state.next({...r}))},je=(ee,ue={})=>{const me=ee?Mn(ee):i,Ee=Mn(me),De=Di(ee),_e=De?i:Ee;if(ue.keepDefaultValues||(i=me),!ue.keepValues){if(ue.keepDirtyValues){const Oe=new Set([...o.mount,...Object.keys(Mh(i,s))]);for(const Ze of Array.from(Oe))ot(r.dirtyFields,Ze)?_r(_e,Ze,ot(s,Ze)):oe(Ze,ot(_e,Ze))}else{if(gk&&En(ee))for(const Oe of o.mount){const Ze=ot(n,Oe);if(Ze&&Ze._f){const Ke=Array.isArray(Ze._f.refs)?Ze._f.refs[0]:Ze._f.ref;if(Y0(Ke)){const ze=Ke.closest("form");if(ze){ze.reset();break}}}}if(ue.keepFieldsRef)for(const Oe of o.mount)oe(Oe,ot(_e,Oe));else n={}}s=t.shouldUnregister?ue.keepDefaultValues?Mn(i):{}:Mn(_e),p.array.next({values:{..._e}}),p.state.next({values:{..._e}})}o={mount:ue.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!ue.keepIsValid||!!ue.keepDirtyValues,a.watch=!!t.shouldUnregister,p.state.next({submitCount:ue.keepSubmitCount?r.submitCount:0,isDirty:De?!1:ue.keepDirty?r.isDirty:!!(ue.keepDefaultValues&&!El(ee,i)),isSubmitted:ue.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:De?{}:ue.keepDirtyValues?ue.keepDefaultValues&&s?Mh(i,s):r.dirtyFields:ue.keepDefaultValues&&ee?Mh(i,ee):ue.keepDirty?r.dirtyFields:{},touchedFields:ue.keepTouched?r.touchedFields:{},errors:ue.keepErrors?r.errors:{},isSubmitSuccessful:ue.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Z=(ee,ue)=>je(oa(ee)?ee(s):ee,ue),Pe=(ee,ue={})=>{const me=ot(n,ee),Ee=me&&me._f;if(Ee){const De=Ee.refs?Ee.refs[0]:Ee.ref;De.focus&&(De.focus(),ue.shouldSelect&&oa(De.select)&&De.select())}},et=ee=>{r={...r,...ee}},Ce={control:{register:de,unregister:Q,getFieldState:M,handleSubmit:ve,setError:U,_subscribe:re,_runSchema:z,_focusError:he,_getWatch:A,_getDirty:O,_setValid:v,_setFieldArray:w,_setDisabledField:ce,_setErrors:S,_getFieldArray:K,_reset:je,_resetDefaultValues:()=>oa(t.defaultValues)&&t.defaultValues().then(ee=>{Z(ee,t.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:X,_disableForm:we,_subjects:p,_proxyFormState:d,get _fields(){return n},get _formValues(){return s},get _state(){return a},set _state(ee){a=ee},get _defaultValues(){return i},get _names(){return o},set _names(ee){o=ee},get _formState(){return r},get _options(){return t},set _options(ee){t={...t,...ee}}},subscribe:te,trigger:D,register:de,handleSubmit:ve,watch:H,setValue:oe,getValues:$,reset:Z,resetField:Le,clearErrors:j,unregister:Q,setError:U,setFocus:Pe,getFieldState:M};return{...Ce,formControl:Ce}}function Ute(e={}){const t=qe.useRef(void 0),r=qe.useRef(void 0),[n,i]=qe.useState({isDirty:!1,isValidating:!1,isLoading:oa(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:oa(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!oa(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...o}=qte(e);t.current={...o,formState:n}}const s=t.current.control;return s._options=e,Cte(()=>{const a=s._subscribe({formState:s._proxyFormState,callback:()=>i({...s._formState}
vendor: 4,322 bytes, line 436
436),reRenderRoot:!0});return i(o=>({...o,isReady:!0})),s._formState.isReady=!0,a},[s]),qe.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),qe.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),qe.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),qe.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),qe.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==n.isDirty&&s._subjects.state.next({isDirty:a})}},[s,n.isDirty]),qe.useEffect(()=>{e.values&&!El(e.values,r.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),r.current=e.values,i(a=>({...a}))):s._resetDefaultValues()},[s,e.values]),qe.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=Ete(n,s),t.current}const H3=(e,t,r)=>{if(e&&"reportValidity"in e){const n=ot(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},nI=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?H3(n.ref,r,e):n.refs&&n.refs.forEach(i=>H3(i,r,e))}},zte=(e,t)=>{t.shouldUseNativeValidation&&nI(e,t);const r={};for(const n in e){const i=ot(t.fields,n),s=Object.assign(e[n]||{},{ref:i&&i.ref});if(Hte(t.names||Object.keys(e),n)){const a=Object.assign({},ot(r,n));_r(a,"root",s),_r(r,n,a)}else _r(r,n,s)}return r},Hte=(e,t)=>e.some(r=>r.startsWith(t+"."));var Vte=function(e,t){for(var r={};e.length;){var n=e[0],i=n.code,s=n.message,a=n.path.join(".");if(!r[a])if("unionErrors"in n){var o=n.unionErrors[0].errors[0];r[a]={message:o.message,type:o.code}}else r[a]={message:s,type:i};if("unionErrors"in n&&n.unionErrors.forEach(function(d){return d.errors.forEach(function(h){return e.push(h)})}),t){var l=r[a].types,c=l&&l[n.code];r[a]=Z8(a,t,r,i,c?[].concat(c,n.message):n.message)}e.shift()}return r},Wte=function(e,t,r){return r===void 0&&(r={}),function(n,i,s){try{return Promise.resolve(function(a,o){try{var l=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(c){return s.shouldUseNativeValidation&&nI({},s),{errors:{},values:r.raw?n:c}})}catch(c){return o(c)}return l&&l.then?l.then(void 0,o):l}(0,function(a){if(function(o){return Array.isArray(o==null?void 0:o.errors)}(a))return{values:{},errors:zte(Vte(a.errors,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw a}))}catch(a){return Promise.reject(a)}}},lr;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function r(i){throw new Error}e.assertNever=r,e.arrayToEnum=i=>{const s={};for(const a of i)s[a]=a;return s},e.getValidEnumValues=i=>{const s=e.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),a={};for(const o of s)a[o]=i[o];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(s){return i[s]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s},e.find=(i,s)=>{for(const a of i)if(s(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(lr||(lr={}));var V3;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(V3||(V3={}));const dt=lr.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),xl=e=>{switch(typeof e){case"undefined":return dt.undefined;case"string":return dt.string;case"number":return Number.isNaN(e)?dt.nan:dt.number;case"boolean":return dt.boolean;case"function":return dt.function;case"bigint":return dt.bigint;case"symbol":return dt.symbol;case"object":return Array.isArray(e)?dt.array:e===null?dt.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?dt.promise:typeof Map<"u"&&e instanceof Map?dt.map:typeof Set<"u"&&e instanceof Set?dt.set:typeof Date<"u"&&e instanceof Date?dt.date:dt.object;default:return dt.unknown}}
vendor: 1,957 bytes, line 436
436,We=lr.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ho extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(s){return s.message},n={_errors:[]},i=s=>{for(const a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)n._errors.push(r(a));else{let o=n,l=0;for(;l<a.path.length;){const c=a.path[l];l===a.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(r(a))):o[c]=o[c]||{_errors:[]},o=o[c],l++}}};return i(this),n}static assert(t){if(!(t instanceof Ho))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,lr.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const i of this.issues)if(i.path.length>0){const s=i.path[0];r[s]=r[s]||[],r[s].push(t(i))}else n.push(t(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}Ho.create=e=>new Ho(e);const jx=(e,t)=>{let r;switch(e.code){case We.invalid_type:e.received===dt.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case We.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,lr.jsonStringifyReplacer)}`;break;case We.unrecognized_keys:r=`Unrecognized key(s) in object: ${lr.j
436oinValues(e.keys,", ")}`;break;case We.invalid_union:r="Invalid input";break;case We.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${lr.joinValues(e.options)}`;break;case We.invalid_enum_value:r=`Invalid enum value. Expected ${lr.joinValues(e.options)}, received '${e.received}'`;break;case We.invalid_arguments:r="Invalid function arguments";break;case We.invalid_return_type:r="Invalid function return type";break;case We.invalid_date:r="Invalid date";break;case We.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:lr.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case We.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case We.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case We.custom:r="Invalid input";break;case We.invalid_intersection_types:r="Intersection results could not be merged";break;case We.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case We.not_finite:r="Number must be finite";break;default:r=t.defaultError,lr.assertNever(e)}return{message:r}};let Kte=jx;function Gte(){return Kte}const Yte=e=>{const{data:t,path:r,errorMaps:n,issueData:i}=e,s=[...r,...i.path||[]],a={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let o="";const l=n.filter(c=>!!c).slice().reverse();for(const c of l)o=c(a,{data:t,defaultError:o}).message;return{...i,path:s,message:o}};function rt(e,t){const r=Gte(),n=Yte({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===jx?void 0:jx].filter(i=>!!i)});e.common.issues.push(n)}class hs{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const i of r){if(i.status==="aborted")return Ft;i.status==="dirty"&&t.dirty(),n.push(i.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const i of r){const s=await i.key,a=await i.value;n.push({key:s,value:a})}return hs.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const i of r){const{key:s,value:a}=i;if(s.status==="aborted"||a.status==="aborted")return Ft;s.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(n[s.value]=a.value)}return{status:t.value,value:n}}}const Ft=Object.freeze({status:"aborted"}),Jh=e=>({status:"dirty",value:e}),Ds=e=>({status:"valid",value:e}),W3=e=>e.status==="aborted",K3=e=>e.status==="dirty",jf=e=>e.status==="valid",J0=e=>typeof Promise<"u"&&e instanceof Promise;var bt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(bt||(bt={}));class ic{constructor(t,r,n,i){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const G3=(e,t)=>
vendor: 5,283 bytes, line 436
436{if(jf(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Ho(e.common.issues);return this._error=r,this._error}}};function Kt(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(a,o)=>{const{message:l}=e;return a.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??n??o.defaultError}:a.code!=="invalid_type"?{message:o.defaultError}:{message:l??r??o.defaultError}},description:i}}class ar{get description(){return this._def.description}_getType(t){return xl(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:xl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new hs,ctx:{common:t.parent.common,data:t.data,parsedType:xl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(J0(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xl(t)},i=this._parseSync({data:t,path:n.path,parent:n});return G3(n,i)}"~validate"(t){var n,i;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xl(t)};if(!this["~standard"].async)try{const s=this._parseSync({data:t,path:[],parent:r});return jf(s)?{value:s.value}:{issues:r.common.issues}}catch(s){(i=(n=s==null?void 0:s.message)==null?void 0:n.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(s=>jf(s)?{value:s.value}:{issues:r.common.issues})}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xl(t)},i=this._parse({data:t,path:n.path,parent:n}),s=await(J0(i)?i:Promise.resolve(i));return G3(n,s)}refine(t,r){const n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{const a=t(i),o=()=>s.addIssue({code:We.custom,...n(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(t,r){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(t){return new Tf({schema:this,typeName:Dt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Gl.create(this,this._def)}nullable(){return Pf.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Za.create(this)}promise(){return ty.create(this,this._def)}or(t){return Q0.create([this,t],this._def)}and(t){return ey.create(this,t,this._def)}transform(t){return new Tf({...Kt(this._def),schema:this,typeName:Dt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new Px({...Kt(this._def),innerType:this,defaultValue:r,typeName:Dt.ZodDefault})}brand(){return new yre({typeName:Dt.ZodBranded,type:this,...Kt(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new Ox({...Kt(this._def),innerType:this,catchValue:r,typeName:Dt.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return xk.create(this,t)}readonly(){return Rx.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Zte=/^c[^\s-]{8,}
vendor: 4,644 bytes, line 436
436$/i,Xte=/^[0-9a-z]+$/,Jte=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Qte=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ere=/^[a-z0-9_-]{21}$/i,tre=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,rre=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,nre=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ire="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let nw;const sre=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,are=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ore=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,lre=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,cre=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ure=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,iI="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",dre=new RegExp(`^${iI}$`);function sI(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function fre(e){return new RegExp(`^${sI(e)}$`)}function hre(e){let t=`${iI}T${sI(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function pre(e,t){return!!((t==="v4"||!t)&&sre.test(e)||(t==="v6"||!t)&&ore.test(e))}function mre(e,t){if(!tre.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function gre(e,t){return!!((t==="v4"||!t)&&are.test(e)||(t==="v6"||!t)&&lre.test(e))}class Fl extends ar{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==dt.string){const s=this._getOrReturnCtx(t);return rt(s,{code:We.invalid_type,expected:dt.string,received:s.parsedType}),Ft}const n=new hs;let i;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(i=this._getOrReturnCtx(t,i),rt(i,{code:We.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")t.data.length>s.value&&(i=this._getOrReturnCtx(t,i),rt(i,{code:We.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){const a=t.data.length>s.value,o=t.data.length<s.value;(a||o)&&(i=this._getOrReturnCtx(t,i),a?rt(i,{code:We.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&rt(i,{code:We.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")nre.test(t.data)||(i=this._getOrReturnCtx(t,i),rt(i,{validation:"email",code:We.invali
vendor: 6,043 bytes, line 436
436d_string,message:s.message}),n.dirty());else if(s.kind==="emoji")nw||(nw=new RegExp(ire,"u")),nw.test(t.data)||(i=this._getOrReturnCtx(t,i),rt(i,{validation:"emoji",code:We.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")Qte.test(t.data)||(i=this._getOrReturnCtx(t,i),rt(i,{validation:"uuid",code:We.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")ere.test(t.data)||(i=this._getOrReturnCtx(t,i),rt(i,{validation:"nanoid",code:We.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")Zte.test(t.data)||(i=this._getOrReturnCtx(t,i),rt(i,{validation:"cuid",code:We.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")Xte.test(t.data)||(i=this._getOrReturnCtx(t,i),rt(i,{validation:"cuid2",code:We.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")Jte.test(t.data)||(i=this._getOrReturnCtx(t,i),rt(i,{validation:"ulid",code:We.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),rt(i,{validation:"url",code:We.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),rt(i,{validation:"regex",code:We.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(t,i),rt(i,{code:We.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(i=this._getOrReturnCtx(t,i),rt(i,{code:We.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(i=this._getOrReturnCtx(t,i),rt(i,{code:We.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?hre(s).test(t.data)||(i=this._getOrReturnCtx(t,i),rt(i,{code:We.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?dre.test(t.data)||(i=this._getOrReturnCtx(t,i),rt(i,{code:We.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?fre(s).test(t.data)||(i=this._getOrReturnCtx(t,i),rt(i,{code:We.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?rre.test(t.data)||(i=this._getOrReturnCtx(t,i),rt(i,{validation:"duration",code:We.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?pre(t.data,s.version)||(i=this._getOrReturnCtx(t,i),rt(i,{validation:"ip",code:We.invalid_string,message:s.message}),n.dirty()):s.kind==="jwt"?mre(t.data,s.alg)||(i=this._getOrReturnCtx(t,i),rt(i,{validation:"jwt",code:We.invalid_string,message:s.message}),n.dirty()):s.kind==="cidr"?gre(t.data,s.version)||(i=this._getOrReturnCtx(t,i),rt(i,{validation:"cidr",code:We.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?cre.test(t.data)||(i=this._getOrReturnCtx(t,i),rt(i,{validation:"base64",code:We.invalid_string,message:s.message}),n.dirty()):s.kind==="base64url"?ure.test(t.data)||(i=this._getOrReturnCtx(t,i),rt(i,{validation:"base64url",code:We.invalid_string,message:s.message}),n.dirty()):lr.assertNever(s);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(i=>t.test(i),{validation:r,code:We.invalid_string,...bt.errToObj(n)})}_addCheck(t){return new Fl({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...bt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...bt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...bt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...bt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...bt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...bt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...bt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...bt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...bt.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...bt.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...bt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...bt.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...bt.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...bt.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...bt.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...bt.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...bt.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...bt.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...bt.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...bt.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...bt.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...bt.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...bt.errToObj(r)})}nonempty(t){return this.min(1,bt.errToObj(t))}trim(){return new Fl({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Fl({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Fl({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 4,672 bytes, line 436
436get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Fl.create=e=>new Fl({checks:[],typeName:Dt.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Kt(e)});function vre(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,s=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(t.toFixed(i).replace(".",""));return s%a/10**i}class Xp extends ar{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==dt.number){const s=this._getOrReturnCtx(t);return rt(s,{code:We.invalid_type,expected:dt.number,received:s.parsedType}),Ft}let n;const i=new hs;for(const s of this._def.checks)s.kind==="int"?lr.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),rt(n,{code:We.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),rt(n,{code:We.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),rt(n,{code:We.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?vre(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),rt(n,{code:We.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),rt(n,{code:We.not_finite,message:s.message}),i.dirty()):lr.assertNever(s);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,bt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,bt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,bt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,bt.toString(r))}setLimit(t,r,n,i){return new Xp({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:bt.toString(i)}]})}_addCheck(t){return new Xp({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:bt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:bt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:bt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:bt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:bt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:bt.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:bt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:bt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:bt.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&lr.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}
vendor: 4,244 bytes, line 436
436}Xp.create=e=>new Xp({checks:[],typeName:Dt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Kt(e)});class Jp extends ar{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==dt.bigint)return this._getInvalidInput(t);let n;const i=new hs;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),rt(n,{code:We.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),rt(n,{code:We.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),rt(n,{code:We.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):lr.assertNever(s);return{status:i.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return rt(r,{code:We.invalid_type,expected:dt.bigint,received:r.parsedType}),Ft}gte(t,r){return this.setLimit("min",t,!0,bt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,bt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,bt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,bt.toString(r))}setLimit(t,r,n,i){return new Jp({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:bt.toString(i)}]})}_addCheck(t){return new Jp({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:bt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:bt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:bt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:bt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:bt.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Jp.create=e=>new Jp({checks:[],typeName:Dt.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Kt(e)});class Ax extends ar{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==dt.boolean){const n=this._getOrReturnCtx(t);return rt(n,{code:We.invalid_type,expected:dt.boolean,received:n.parsedType}),Ft}return Ds(t.data)}}Ax.create=e=>new Ax({typeName:Dt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Kt(e)});class Qp extends ar{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==dt.date){const s=this._getOrReturnCtx(t);return rt(s,{code:We.invalid_type,expected:dt.date,received:s.parsedType}),Ft}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return rt(s,{code:We.invalid_date}),Ft}const n=new hs;let i;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(i=this._getOrReturnCtx(t,i),rt(i,{code:We.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(i=this._getOrReturnCtx(t,i),rt(i,{code:We.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):lr.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Qp({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:bt.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:bt.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}Qp.create=e=>new Qp({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Dt.ZodDate,...Kt(e)});class Y3 extends ar{_parse(t){if(this._getType(t)!==dt.symbol){const n=this._getOrReturnCtx(t);
vendor: 8,433 bytes, line 436
436return rt(n,{code:We.invalid_type,expected:dt.symbol,received:n.parsedType}),Ft}return Ds(t.data)}}Y3.create=e=>new Y3({typeName:Dt.ZodSymbol,...Kt(e)});class Z3 extends ar{_parse(t){if(this._getType(t)!==dt.undefined){const n=this._getOrReturnCtx(t);return rt(n,{code:We.invalid_type,expected:dt.undefined,received:n.parsedType}),Ft}return Ds(t.data)}}Z3.create=e=>new Z3({typeName:Dt.ZodUndefined,...Kt(e)});class X3 extends ar{_parse(t){if(this._getType(t)!==dt.null){const n=this._getOrReturnCtx(t);return rt(n,{code:We.invalid_type,expected:dt.null,received:n.parsedType}),Ft}return Ds(t.data)}}X3.create=e=>new X3({typeName:Dt.ZodNull,...Kt(e)});class J3 extends ar{constructor(){super(...arguments),this._any=!0}_parse(t){return Ds(t.data)}}J3.create=e=>new J3({typeName:Dt.ZodAny,...Kt(e)});class Q3 extends ar{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ds(t.data)}}Q3.create=e=>new Q3({typeName:Dt.ZodUnknown,...Kt(e)});class sc extends ar{_parse(t){const r=this._getOrReturnCtx(t);return rt(r,{code:We.invalid_type,expected:dt.never,received:r.parsedType}),Ft}}sc.create=e=>new sc({typeName:Dt.ZodNever,...Kt(e)});class eE extends ar{_parse(t){if(this._getType(t)!==dt.undefined){const n=this._getOrReturnCtx(t);return rt(n,{code:We.invalid_type,expected:dt.void,received:n.parsedType}),Ft}return Ds(t.data)}}eE.create=e=>new eE({typeName:Dt.ZodVoid,...Kt(e)});class Za extends ar{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),i=this._def;if(r.parsedType!==dt.array)return rt(r,{code:We.invalid_type,expected:dt.array,received:r.parsedType}),Ft;if(i.exactLength!==null){const a=r.data.length>i.exactLength.value,o=r.data.length<i.exactLength.value;(a||o)&&(rt(r,{code:a?We.too_big:We.too_small,minimum:o?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(rt(r,{code:We.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(rt(r,{code:We.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((a,o)=>i.type._parseAsync(new ic(r,a,r.path,o)))).then(a=>hs.mergeArray(n,a));const s=[...r.data].map((a,o)=>i.type._parseSync(new ic(r,a,r.path,o)));return hs.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new Za({...this._def,minLength:{value:t,message:bt.toString(r)}})}max(t,r){return new Za({...this._def,maxLength:{value:t,message:bt.toString(r)}})}length(t,r){return new Za({...this._def,exactLength:{value:t,message:bt.toString(r)}})}nonempty(t){return this.min(1,t)}}Za.create=(e,t)=>new Za({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Dt.ZodArray,...Kt(t)});function Ed(e){if(e instanceof rn){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=Gl.create(Ed(n))}return new rn({...e._def,shape:()=>t})}else return e instanceof Za?new Za({...e._def,type:Ed(e.element)}):e instanceof Gl?Gl.create(Ed(e.unwrap())):e instanceof Pf?Pf.create(Ed(e.unwrap())):e instanceof ju?ju.create(e.items.map(t=>Ed(t))):e}class rn extends ar{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=lr.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==dt.object){const c=this._getOrReturnCtx(t);return rt(c,{code:We.invalid_type,expected:dt.object,received:c.parsedType}),Ft}const{status:n,ctx:i}=this._processInputParams(t),{shape:s,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof sc&&this._def.unknownKeys==="strip"))for(const c in i.data)a.includes(c)||o.push(c);const l=[];for(const c of a){const d=s[c],h=i.data[c];l.push({key:{status:"valid",value:c},value:d._parse(new ic(i,h,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof sc){const c=this._def.unknownKeys;if(c==="passthrough")for(const d of o)l.push({key:{status:"valid",value:d},value:{status:"valid",value:i.data[d]}});else if(c==="strict")o.length>0&&(rt(i,{code:We.unrecognized_keys,keys:o}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const d of o){const h=i.data[d];l.push({key:{status:"valid",value:d},value:c._parse(new ic(i,h,i.path,d)),alwaysSet:d in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const d of l){const h=await d.key,p=await d.value;c.push({key:h,value:p,alwaysSet:d.alwaysSet})}return c}).then(c=>hs.mergeObjectSync(n,c)):hs.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(t){return bt.errToObj,new rn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var s,a;const i=((a=(s=this._def).errorMap)==null?void 0:a.call(s,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:bt.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new rn({...this._def,unknownKeys:"strip"})}passthrough(){return new rn({...this._def,unknownKeys:"passthrough"})}extend(t){return new rn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new rn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Dt.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new rn({...this._def,catchall:t})}pick(t){const r={};for(const n of lr.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new rn({...this._def,shape:()=>r})}omit(t){const r={};for(const n of lr.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new rn({...this._def,shape:()=>r})}deepPartial(){return Ed(this)}partial(t){const r={};for(const n of lr.objectKeys(this.shape)){const i=this.shape[n];t&&!t[n]?r[n]=i:r[n]=i.optional()}return new rn({...this._def,shape:()=>r})}required(t){const r={};for(const n of lr.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Gl;)s=s._def.innerType;r[n]=s}return new rn({...this._def,shape:()=>r})}keyof(){return aI(lr.objectKeys(this.shape))}}rn.create=(e,t)=>new rn({shape:()=>e,unknownKeys:"strip",catchall:sc.create(),typeName:Dt.ZodObject,...Kt(t)});rn.strictCreate=(e,t)=>new rn({shape:()=>e,unknownKeys:"strict",catchall:sc.create(),typeName:Dt.ZodObject,...Kt(t)});rn.lazycreate=(e,t)=>new rn({shape:e,unknownKeys:"strip",catchall:sc.create(),typeName:Dt.ZodObject,...Kt(t)});class Q0 extends ar{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function i(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return r.common.issues.push(...o.ctx.common.issues),o.result;const a=s.map(o=>new Ho(o.ctx.common.issues));return rt(r,{code:We.invalid_union,unionErrors:a}),Ft}if(r.common.async)return Promise.all(n.map(async s=>{const a={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(i);{let s;const a=[];for(const l of n){const c={...r,common:{...r.common,issues:[]},parent:null},d=l._parseSync({data:r.data,path:r.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!s&&(s={result:d,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(l=>new Ho(l));return rt(r,{code:We.invalid_union,unionErrors:o}),Ft}}get options(){return this._def.options}}Q0.create=(e,t)=>new Q0({options:e,typeName:Dt.ZodUnion,...Kt(t)});function Tx(e,t){const r=xl(e),n=xl(t);if(e===t)return{valid:!0,data:e};if(r===dt.object&&n===dt.object){const i=lr.objectKeys(t),s=lr.objectKeys(e).filter(o=>i.indexOf(o)!==-1),a={...e,...t};for(const o of s){const l=Tx(e[o],t[o]);if(!l.valid)return{valid:!1};a[o]=l.data}return{valid:!0,data:a}}else if(r===dt.array&&n===dt.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let s=0;s<e.length;s++){const a=e[s],o=t[s],l=Tx(a,o);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return r===dt.date&&n===dt.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ey extends ar{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),i=(s,a)=>
vendor: 4,098 bytes, line 436
436{if(W3(s)||W3(a))return Ft;const o=Tx(s.value,a.value);return o.valid?((K3(s)||K3(a))&&r.dirty(),{status:r.value,value:o.data}):(rt(n,{code:We.invalid_intersection_types}),Ft)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,a])=>i(s,a)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ey.create=(e,t,r)=>new ey({left:e,right:t,typeName:Dt.ZodIntersection,...Kt(r)});class ju extends ar{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==dt.array)return rt(n,{code:We.invalid_type,expected:dt.array,received:n.parsedType}),Ft;if(n.data.length<this._def.items.length)return rt(n,{code:We.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ft;!this._def.rest&&n.data.length>this._def.items.length&&(rt(n,{code:We.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const s=[...n.data].map((a,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new ic(n,a,n.path,o)):null}).filter(a=>!!a);return n.common.async?Promise.all(s).then(a=>hs.mergeArray(r,a)):hs.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new ju({...this._def,rest:t})}}ju.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ju({items:e,typeName:Dt.ZodTuple,rest:null,...Kt(t)})};class tE extends ar{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==dt.map)return rt(n,{code:We.invalid_type,expected:dt.map,received:n.parsedType}),Ft;const i=this._def.keyType,s=this._def.valueType,a=[...n.data.entries()].map(([o,l],c)=>({key:i._parse(new ic(n,o,n.path,[c,"key"])),value:s._parse(new ic(n,l,n.path,[c,"value"]))}));if(n.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of a){const c=await l.key,d=await l.value;if(c.status==="aborted"||d.status==="aborted")return Ft;(c.status==="dirty"||d.status==="dirty")&&r.dirty(),o.set(c.value,d.value)}return{status:r.value,value:o}})}else{const o=new Map;for(const l of a){const c=l.key,d=l.value;if(c.status==="aborted"||d.status==="aborted")return Ft;(c.status==="dirty"||d.status==="dirty")&&r.dirty(),o.set(c.value,d.value)}return{status:r.value,value:o}}}}tE.create=(e,t,r)=>new tE({valueType:t,keyType:e,typeName:Dt.ZodMap,...Kt(r)});class em extends ar{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==dt.set)return rt(n,{code:We.invalid_type,expected:dt.set,received:n.parsedType}),Ft;const i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(rt(n,{code:We.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(rt(n,{code:We.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());const s=this._def.valueType;function a(l){const c=new Set;for(const d of l){if(d.status==="aborted")return Ft;d.status==="dirty"&&r.dirty(),c.add(d.value)}return{status:r.value,value:c}}const o=[...n.data.values()].map((l,c)=>s._parse(new ic(n,l,n.path,c)));return n.common.async?Promise.all(o).then(l=>a(l)):a(o)}min(t,r){return new em({...this._def,minSize:{value:t,message:bt.toString(r)}})}max(t,r){return new em({...this._def,maxSize:{value:t,message:bt.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}em.create=(e,t)=>new em({valueType:e,minSize:null,maxSize:null,typeName:Dt.ZodSet,...Kt(t)});class rE extends ar{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}rE.create=(e,t)=>new rE({getter:e,typeName:Dt.ZodLazy,...Kt(t)});class nE extends ar{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);
vendor: 4,609 bytes, line 436
436return rt(r,{received:r.data,code:We.invalid_literal,expected:this._def.value}),Ft}return{status:"valid",value:t.data}}get value(){return this._def.value}}nE.create=(e,t)=>new nE({value:e,typeName:Dt.ZodLiteral,...Kt(t)});function aI(e,t){return new Af({values:e,typeName:Dt.ZodEnum,...Kt(t)})}class Af extends ar{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return rt(r,{expected:lr.joinValues(n),received:r.parsedType,code:We.invalid_type}),Ft}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return rt(r,{received:r.data,code:We.invalid_enum_value,options:n}),Ft}return Ds(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return Af.create(t,{...this._def,...r})}exclude(t,r=this._def){return Af.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}Af.create=aI;class iE extends ar{_parse(t){const r=lr.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==dt.string&&n.parsedType!==dt.number){const i=lr.objectValues(r);return rt(n,{expected:lr.joinValues(i),received:n.parsedType,code:We.invalid_type}),Ft}if(this._cache||(this._cache=new Set(lr.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=lr.objectValues(r);return rt(n,{received:n.data,code:We.invalid_enum_value,options:i}),Ft}return Ds(t.data)}get enum(){return this._def.values}}iE.create=(e,t)=>new iE({values:e,typeName:Dt.ZodNativeEnum,...Kt(t)});class ty extends ar{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==dt.promise&&r.common.async===!1)return rt(r,{code:We.invalid_type,expected:dt.promise,received:r.parsedType}),Ft;const n=r.parsedType===dt.promise?r.data:Promise.resolve(r.data);return Ds(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}}ty.create=(e,t)=>new ty({type:e,typeName:Dt.ZodPromise,...Kt(t)});class Tf extends ar{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Dt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),i=this._def.effect||null,s={addIssue:a=>{rt(n,a),a.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const a=i.transform(n.data,s);if(n.common.async)return Promise.resolve(a).then(async o=>{if(r.value==="aborted")return Ft;const l=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return l.status==="aborted"?Ft:l.status==="dirty"||r.value==="dirty"?Jh(l.value):l});{if(r.value==="aborted")return Ft;const o=this._def.schema._parseSync({data:a,path:n.path,parent:n});return o.status==="aborted"?Ft:o.status==="dirty"||r.value==="dirty"?Jh(o.value):o}}if(i.type==="refinement"){const a=o=>{const l=i.refinement(o,s);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?Ft:(o.status==="dirty"&&r.dirty(),a(o.value),{status:r.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?Ft:(o.status==="dirty"&&r.dirty(),a(o.value).then(()=>({status:r.value,value:o.value}))))}if(i.type==="transform")if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!jf(a))return Ft;const o=i.transform(a.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>jf(a)?Promise.resolve(i.transform(a.value,s)).then(o=>({status:r.value,value:o})):Ft);lr.assertNever(i)}}Tf.create=(e,t,r)=>new Tf({schema:e,typeName:Dt.ZodEffects,effect:t,...Kt(r)});Tf.createWithPreprocess=(e,t,r)=>new Tf({schema:t,effect:{type:"preprocess",transform:e},typeName:Dt.ZodEffects,...Kt(r)});class Gl extends ar{_parse(t){return this._getType(t)===dt.undefined?Ds(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gl.create=(e,t)=>
436new Gl({innerType:e,typeName:Dt.ZodOptional,...Kt(t)});class Pf extends ar{_parse(t){return this._getType(t)===dt.null?Ds(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Pf.create=(e,t)=>new Pf({innerType:e,typeName:Dt.ZodNullable,...Kt(t)});class Px extends ar{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===dt.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Px.create=(e,t)=>new Px({innerType:e,typeName:Dt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Kt(t)});class Ox extends ar{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return J0(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Ho(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ho(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ox.create=(e,t)=>new Ox({innerType:e,typeName:Dt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Kt(t)});class sE extends ar{_parse(t){if(this._getType(t)!==dt.nan){const n=this._getOrReturnCtx(t);return rt(n,{code:We.invalid_type,expected:dt.nan,received:n.parsedType}),Ft}return{status:"valid",value:t.data}}}sE.create=e=>new sE({typeName:Dt.ZodNaN,...Kt(e)});class yre extends ar{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class xk extends ar{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Ft:s.status==="dirty"?(r.dirty(),Jh(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{const i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Ft:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,r){return new xk({in:t,out:r,typeName:Dt.ZodPipeline})}}class Rx extends ar{_parse(t){const r=this._def.innerType._parse(t),n=i=>(jf(i)&&(i.value=Object.freeze(i.value)),i);return J0(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}}Rx.create=(e,t)=>new Rx({innerType:e,typeName:Dt.ZodReadonly,...Kt(t)});rn.lazycreate;var Dt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Dt||(Dt={}));const ai=Fl.create,aE=Ax.create,bre=Qp.create;sc.create;Za.create;const wre=rn.create;rn.strictCreate;Q0.create;ey.create;ju.create;const iw=Af.create;ty.create;Gl.create;Pf.create;var Bh=class extends Error{constructor(){super("Invalid swedish personal identity number")}},oE=(e,t)=>{const r=e.getTime()-t.getTime();return r<0?-1:r>0?1:r},xre=(e,t)=>{const r=oE(e,t),n=Math.abs(e.getFullYear()-t.getFullYear());e.setFullYear(e.getFullYear()-r*n);const i=oE(e,t)===-r,s=r*(n-+i);return s===0?0:s},_re=e=>{let t=0;e+="";for(let r=0,n=e.length;r<n;r++){let i=parseInt(e[r]);i*=2-r%2,i>9&&(i-=9),t+=i}return Math.ceil(t/10)*10-t},sw=(e,t,r)=>{t-=1;const n=new Date(e,t,r);return!(n.getFullYear()!==e||n.getMonth()!==t||n.getDate()!==r)},Lx=class{constructor(e,t){this._century="",this._fullYear="",this._year="",this._month="",this._day="",this._sep="",this._num="",this._check="",this.parse(e,{allowCoordinationNumber:!0,allowInterimNumber:!1,...t})}get century(){return this._century}get fullYear(){return this._fullYear}get year(){return this._year}get month(){return this._month}get day(){return this._day}get sep(){return this._sep}get num(){return this._num}
436get check(){return this._check}static parse(e,t){return new Lx(e,t)}static valid(e,t){try{return Lx.parse(e,t),!0}catch{return!1}}parse(e,t){if(e.length<10||e.length>13)throw new Bh;const n=/^(\d{2}){0,1}(\d{2})(\d{2})(\d{2})([+-]?)((?!000)\d{3}|[TRSUWXJKLMN]\d{2})(\d)$/.exec(e);if(!n)throw new Bh;const i=n[1],s=n[2],a=n[3],o=n[4],l=n[5],c=n[6],d=n[7];if(typeof i>"u"||!i.length){const h=new Date;let p=0;l==="+"?(this._sep="+",p=h.getFullYear()-100):(this._sep="-",p=h.getFullYear()),this._century=(""+(p-(p-parseInt(s))%100)).substr(0,2)}else this._century=i,new Date().getFullYear()-parseInt(i+s,10)<100?this._sep="-":this._sep="+";if(this._year=s,this._fullYear=this._century+s,this._month=a,this._day=o,this._num=c,this._check=d,!this.valid())throw new Bh;if(!(t!=null&&t.allowCoordinationNumber)&&this.isCoordinationNumber())throw new Bh;if(!(t!=null&&t.allowInterimNumber)&&this.isInterimNumber())throw new Bh}valid(){const e=_re(this.year+this.month+this.day+this.num.replace(/[TRSUWXJKLMN]/,"1"))===+this.check&&!!this.check;return e&&sw(parseInt(this.century+this.year),+this.month,+this.day)?e:e&&sw(parseInt(this.century+this.year),+this.month,+this.day-60)}format(e=!1){return e?`${this.century}${this.year}${this.month}${this.day}${this.num}${this.check}`:`${this.year}${this.month}${this.day}${this.sep}${this.num}${this.check}`}getAge(){const e=this.getDate();return xre(new Date(Date.now()),e)}getDate(){let e=+this.day;this.isCoordinationNumber()&&(e-=60);const t=this.century+this.year+"-"+this.month+"-"+(e<10?"0"+e:e);return new Date(t)}isInterimNumber(){return/[TRSUWXJKLMN]/.test(this.num[0])}isCoordinationNumber(){return sw(parseInt(this.century+this.year),+this.month,+this.day-60)}isFemale(){return!this.isMale()}isMale(){return parseInt(this.num.substr(-1))%2===1}},kre=Lx,_k={};(function e(t,r,n,i){var s=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),a=typeof Path2D=="function"&&typeof DOMMatrix=="function",o=function(){if(!t.OffscreenCanvas)return!1;try{var $=new OffscreenCanvas(1,1),M=$.getContext("2d");M.fillRect(0,0,1,1);var j=$.transferToImageBitmap();M.createPattern(j,"no-repeat")}catch{return!1}return!0}();function l(){}function c($){var M=r.exports.Promise,j=M!==void 0?M:t.Promise;return typeof j=="function"?new j($):($(l,l),null)}var d=function($,M){return{transform:function(j){if($)return j;if(M.has(j))return M.get(j);var U=new OffscreenCanvas(j.width,j.height),H=U.getContext("2d");return H.drawImage(j,0,0),M.set(j,U),U},clear:function(){M.clear()}}}(o,new Map),h=function(){var $=Math.floor(16.666666666666668),M,j,U={},H=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(M=function(re){var te=Math.random();return U[te]=requestAnimationFrame(function Q(ce){H===ce||H+$-1<ce?(H=ce,delete U[te],re()):U[te]=requestAnimationFrame(Q)}),te},j=function(re){U[re]&&cancelAnimationFrame(U[re])}):(M=function(re){return setTimeout(re,$)},j=function(re){return clearTimeout(re)}),{frame:M,cancel:j}}(),p=function(){var $,M,j={};function U(H){function re(te,Q){H.postMessage({options:te||{},callback:Q})}H.init=function(Q){var ce=Q.transferControlToOffscreen();H.postMessage({canvas:ce},[ce])},H.fire=function(Q,ce,de){if(M)return re(Q,null),M;var he=Math.random().toString(36).slice(2);return M=c(function(we){function ve(Le){Le.data.callback===he&&(delete j[he],H.removeEventListener("message",ve),M=null,d.clear(),de(),we())}H.addEventListener("message",ve),re(Q,he),j[he]=ve.bind(null,{data:{callback:he}})}),M},H.reset=function(){H.postMessage({reset:!0});for(var Q in j)j[Q](),delete j[Q]}}return function(){if($)return $;if(!n&&s){var H=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join(`
437`);try{$=new Worker(URL.createObjectURL(new Blob([H])))}catch(re){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",re),null}U($)}return $}}(),f={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function y($,M){return M?M($):$}function v($){return $!=null}function b($,M,j){return y($&&v($[M])?$[M]:f[M],j)}function w($){return $<0?0:Math.floor($)}function x($,M){return Math.floor(Math.random()*(M-$))+$}function S($){return parseInt($,16)}function E($){return $.map(T)}function T($){var M=String($).replace(/[^0-9a-f]/gi,"");return M.length<6&&(M=M[0]+M[0]+M[1]+M[1]+M[2]+M[2]),{r:S(M.substring(0,2)),g:S(M.substring(2,4)),b:S(M.substring(4,6))}}function W($){var M=b($,"origin",Object);return M.x=b(M,"x",Number),M.y=b(M,"y",Number),M}function z($){$.width=document.documentElement.clientWidth,$.height=document.documentElement.clientHeight}function B($){var M=$.getBoundingClientRect();$.width=M.width,$.height=M.height}function P($){var M=document.createElement("canvas");return M.style.position="fixed",M.style.top="0px",M.style.left="0px",M.style.pointerEvents="none",M.style.zIndex=$,M}function X($,M,j,U,H,re,te,Q,ce){$.save(),$.translate(M,j),$.rotate(re),$.scale(U,H),$.arc(0,0,1,te,Q,ce),$.restore(
vendor: 5,112 bytes, line 437
437)}function O($){var M=$.angle*(Math.PI/180),j=$.spread*(Math.PI/180);return{x:$.x,y:$.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:$.startVelocity*.5+Math.random()*$.startVelocity,angle2D:-M+(.5*j-Math.random()*j),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:$.color,shape:$.shape,tick:0,totalTicks:$.ticks,decay:$.decay,drift:$.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:$.gravity*3,ovalScalar:.6,scalar:$.scalar,flat:$.flat}}function A($,M){M.x+=Math.cos(M.angle2D)*M.velocity+M.drift,M.y+=Math.sin(M.angle2D)*M.velocity+M.gravity,M.velocity*=M.decay,M.flat?(M.wobble=0,M.wobbleX=M.x+10*M.scalar,M.wobbleY=M.y+10*M.scalar,M.tiltSin=0,M.tiltCos=0,M.random=1):(M.wobble+=M.wobbleSpeed,M.wobbleX=M.x+10*M.scalar*Math.cos(M.wobble),M.wobbleY=M.y+10*M.scalar*Math.sin(M.wobble),M.tiltAngle+=.1,M.tiltSin=Math.sin(M.tiltAngle),M.tiltCos=Math.cos(M.tiltAngle),M.random=Math.random()+2);var j=M.tick++/M.totalTicks,U=M.x+M.random*M.tiltCos,H=M.y+M.random*M.tiltSin,re=M.wobbleX+M.random*M.tiltCos,te=M.wobbleY+M.random*M.tiltSin;if($.fillStyle="rgba("+M.color.r+", "+M.color.g+", "+M.color.b+", "+(1-j)+")",$.beginPath(),a&&M.shape.type==="path"&&typeof M.shape.path=="string"&&Array.isArray(M.shape.matrix))$.fill(se(M.shape.path,M.shape.matrix,M.x,M.y,Math.abs(re-U)*.1,Math.abs(te-H)*.1,Math.PI/10*M.wobble));else if(M.shape.type==="bitmap"){var Q=Math.PI/10*M.wobble,ce=Math.abs(re-U)*.1,de=Math.abs(te-H)*.1,he=M.shape.bitmap.width*M.scalar,we=M.shape.bitmap.height*M.scalar,ve=new DOMMatrix([Math.cos(Q)*ce,Math.sin(Q)*ce,-Math.sin(Q)*de,Math.cos(Q)*de,M.x,M.y]);ve.multiplySelf(new DOMMatrix(M.shape.matrix));var Le=$.createPattern(d.transform(M.shape.bitmap),"no-repeat");Le.setTransform(ve),$.globalAlpha=1-j,$.fillStyle=Le,$.fillRect(M.x-he/2,M.y-we/2,he,we),$.globalAlpha=1}else if(M.shape==="circle")$.ellipse?$.ellipse(M.x,M.y,Math.abs(re-U)*M.ovalScalar,Math.abs(te-H)*M.ovalScalar,Math.PI/10*M.wobble,0,2*Math.PI):X($,M.x,M.y,Math.abs(re-U)*M.ovalScalar,Math.abs(te-H)*M.ovalScalar,Math.PI/10*M.wobble,0,2*Math.PI);else if(M.shape==="star")for(var je=Math.PI/2*3,Z=4*M.scalar,Pe=8*M.scalar,et=M.x,Ne=M.y,Ce=5,ee=Math.PI/Ce;Ce--;)et=M.x+Math.cos(je)*Pe,Ne=M.y+Math.sin(je)*Pe,$.lineTo(et,Ne),je+=ee,et=M.x+Math.cos(je)*Z,Ne=M.y+Math.sin(je)*Z,$.lineTo(et,Ne),je+=ee;else $.moveTo(Math.floor(M.x),Math.floor(M.y)),$.lineTo(Math.floor(M.wobbleX),Math.floor(H)),$.lineTo(Math.floor(re),Math.floor(te)),$.lineTo(Math.floor(U),Math.floor(M.wobbleY));return $.closePath(),$.fill(),M.tick<M.totalTicks}function K($,M,j,U,H){var re=M.slice(),te=$.getContext("2d"),Q,ce,de=c(function(he){function we(){Q=ce=null,te.clearRect(0,0,U.width,U.height),d.clear(),H(),he()}function ve(){n&&!(U.width===i.width&&U.height===i.height)&&(U.width=$.width=i.width,U.height=$.height=i.height),!U.width&&!U.height&&(j($),U.width=$.width,U.height=$.height),te.clearRect(0,0,U.width,U.height),re=re.filter(function(Le){return A(te,Le)}),re.length?Q=h.frame(ve):we()}Q=h.frame(ve),ce=we});return{addFettis:function(he){return re=re.concat(he),de},canvas:$,promise:de,reset:function(){Q&&h.cancel(Q),ce&&ce()}}}function R($,M){var j=!$,U=!!b(M||{},"resize"),H=!1,re=b(M,"disableForReducedMotion",Boolean),te=s&&!!b(M||{},"useWorker"),Q=te?p():null,ce=j?z:B,de=$&&Q?!!$.__confetti_initialized:!1,he=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,we;function ve(je,Z,Pe){for(var et=b(je,"particleCount",w),Ne=b(je,"angle",Number),Ce=b(je,"spread",Number),ee=b(je,"startVelocity",Number),ue=b(je,"decay",Number),me=b(je,"gravity",Number),Ee=b(je,"drift",Number),De=b(je,"colors",E),_e=b(je,"ticks",Number),Oe=b(je,"shapes"),Ze=b(je,"scalar"),Ke=!!b(je,"flat"),ze=W(je),vt=et,Xe=[],rr=$.width*ze.x,be=$.height*ze.y;vt--;)Xe.push(O({x:rr,y:be,angle:Ne,spread:Ce,startVelocity:ee,color:De[vt%De.length],shape:Oe[x(0,Oe.length)],ticks:_e,decay:ue,gravity:me,drift:Ee,scalar:Ze,flat:Ke}));return we?we.addFettis(Xe):(we=K($,Xe,ce,Z,Pe),we.promise)}function Le(je){var Z=re||b(je,"disableForReducedMotion",Boolean),Pe=b(je,"zIndex",Number);if(Z&&he)return c(function(ee){ee()});j&&we?$=we.canvas:j&&!$&&($=P(Pe),document.body.appendChild($)),U&&!de&&ce($);var et={width:$.width,height:$.height};Q&&!de&&Q.init($),de=!0,Q&&($.__confetti_initialized=!0);function Ne(){if(Q){var ee={getBoundingClientRect:function(){if(!j)return $.getBoundingClientRect()}};ce(ee),Q.postMessage({resize:{width:ee.width,height:ee.height}});return}et.width=et.height=null}function Ce(){we=null,U&&(H=!1,t.removeEventListener("resize",Ne)),j&&$&&(document.body.contains($)&&document.body.removeChild($),$=null,de=!1)}return U&&!H&&(H=!0,t.addEventListener("resize",Ne,!1)),Q?Q.fire(je,et,Ce):ve(je,et,Ce)}return Le.reset=function(){Q&&Q.reset(),we&&we.reset()},Le}var le;function oe(){return le||(le=R(null,{useWorker:!0,resize:!0})),le}function se($,M,j,U,H,re,te){var Q=new Path2D($),ce=new Path2D;ce.addPath(Q,new DOMMatrix(M));var de=new Path2D;return de.addPath(ce,new DOMMatrix([Math.cos(te)*H,Math.sin(te)*H,-Math.sin(te)*re,Math.cos(te)*re,j,U])
437),de}function F($){if(!a)throw new Error("path confetti are not supported in this browser");var M,j;typeof $=="string"?M=$:(M=$.path,j=$.matrix);var U=new Path2D(M),H=document.createElement("canvas"),re=H.getContext("2d");if(!j){for(var te=1e3,Q=te,ce=te,de=0,he=0,we,ve,Le=0;Le<te;Le+=2)for(var je=0;je<te;je+=2)re.isPointInPath(U,Le,je,"nonzero")&&(Q=Math.min(Q,Le),ce=Math.min(ce,je),de=Math.max(de,Le),he=Math.max(he,je));we=de-Q,ve=he-ce;var Z=10,Pe=Math.min(Z/we,Z/ve);j=[Pe,0,0,Pe,-Math.round(we/2+Q)*Pe,-Math.round(ve/2+ce)*Pe]}return{type:"path",path:M,matrix:j}}function D($){var M,j=1,U="#000000",H='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof $=="string"?M=$:(M=$.text,j="scalar"in $?$.scalar:j,H="fontFamily"in $?$.fontFamily:H,U="color"in $?$.color:U);var re=10*j,te=""+re+"px "+H,Q=new OffscreenCanvas(re,re),ce=Q.getContext("2d");ce.font=te;var de=ce.measureText(M),he=Math.ceil(de.actualBoundingBoxRight+de.actualBoundingBoxLeft),we=Math.ceil(de.actualBoundingBoxAscent+de.actualBoundingBoxDescent),ve=2,Le=de.actualBoundingBoxLeft+ve,je=de.actualBoundingBoxAscent+ve;he+=ve+ve,we+=ve+ve,Q=new OffscreenCanvas(he,we),ce=Q.getContext("2d"),ce.font=te,ce.fillStyle=U,ce.fillText(M,Le,je);var Z=1/j;return{type:"bitmap",bitmap:Q.transferToImageBitmap(),matrix:[Z,0,0,Z,-he*Z/2,-we*Z/2]}}r.exports=function(){return oe().apply(this,arguments)},r.exports.reset=function(){oe().reset()},r.exports.create=R,r.exports.shapeFromPath=F,r.exports.shapeFromText=D})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),_k,!1);const iv=_k.exports;_k.exports.create;const Sre="modulepreload",Nre=function(e){return"/"+e},lE={},aw=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),o=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(r.map(l=>{if(l=Nre(l),l in lE)return;lE[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":Sre,c||(h.as="script"),h.crossOrigin="",h.href=l,o&&h.setAttribute("nonce",o),document.head.appendChild(h),c)return new Promise((p,f)=>{h.addEventListener("load",p),h.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(a){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a}return i.then(a=>{for(const o of a||[])o.status==="rejected"&&s(o.reason);return t().catch(s)})};function vr(e){"@babel/helpers - typeof";return vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vr(e)}var ga=Uint8Array,os=Uint16Array,kk=Int32Array,Sk=new ga([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Nk=new ga([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),cE=new ga([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),oI=function(e,t){for(var r=new os(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new kk(r[30]),n=1;n<30;++n)for(var s=r[n];s<r[n+1];++s)i[s]=s-r[n]<<5|n;return{b:r,r:i}},lI=oI(Sk,2),Ere=lI.b,Ix=lI.r;Ere[28]=258,Ix[258]=28;var Cre=oI(Nk,0),uE=Cre.r,Fx=new os(32768);for(var Ir=0;Ir<32768;++Ir){var pl=(Ir&43690)>>1|(Ir&21845)<<1;pl=(pl&52428)>>2|(pl&13107)<<2,pl=(pl&61680)>>4|(pl&3855)<<4,Fx[Ir]=((pl&65280)>>8|(pl&255)<<8)>>1}var mp=function(e,t,r){for(var n=e.length,i=0,s=new os(t);i<n;++i)e[i]&&++s[e[i]-1];var a=new os(t);for(i=1;i<t;++i)a[i]=a[i-1]+s[i-1]<<1;var o;if(r){o=new os(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var c=i<<4|e[i],d=t-e[i],h=a[e[i]-1]++<<d,p=h|(1<<d)-1;h<=p;++h)o[Fx[h]>>l]=c}else for(o=new os(n),i=0;i<n;++i)e[i]&&(o[i]=Fx[a[e[i]-1]++]>>15-e[i]);return o},Au=new ga(288);for(var Ir=0;Ir<144;++Ir)Au[Ir]=8;for(var Ir=144;Ir<256;++Ir)Au[Ir]=9;for(var Ir=256;Ir<280;++Ir)Au[Ir]=7;for(var Ir=280;Ir<288;++Ir)Au[Ir]=8;var ry=new ga(32);for(var Ir=0;Ir<32;++Ir)ry[Ir]=5;var jre=mp(Au,9,0),Are=mp(ry,5,0),cI=function(e){return(e+7)/8|0},Tre=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new ga(e.subarray(t,r))},No=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},qh=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},ow=function(e,t){for(var r=[],n=0;n<e.length;
vendor: 12,011 bytes, lines 437-438
437++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,s=r.slice();if(!i)return{t:dI,l:0};if(i==1){var a=new ga(r[0].s+1);return a[r[0].s]=1,{t:a,l:1}}r.sort(function(T,W){return T.f-W.f}),r.push({s:-1,f:25001});var o=r[0],l=r[1],c=0,d=1,h=2;for(r[0]={s:-1,f:o.f+l.f,l:o,r:l};d!=i-1;)o=r[r[c].f<r[h].f?c++:h++],l=r[c!=d&&r[c].f<r[h].f?c++:h++],r[d++]={s:-1,f:o.f+l.f,l:o,r:l};for(var p=s[0].s,n=1;n<i;++n)s[n].s>p&&(p=s[n].s);var f=new os(p+1),y=Dx(r[d-1],f,0);if(y>t){var n=0,v=0,b=y-t,w=1<<b;for(s.sort(function(W,z){return f[z.s]-f[W.s]||W.f-z.f});n<i;++n){var x=s[n].s;if(f[x]>t)v+=w-(1<<y-f[x]),f[x]=t;else break}for(v>>=b;v>0;){var S=s[n].s;f[S]<t?v-=1<<t-f[S]++-1:++n}for(;n>=0&&v;--n){var E=s[n].s;f[E]==t&&(--f[E],++v)}y=t}return{t:new ga(f),l:y}},Dx=function(e,t,r){return e.s==-1?Math.max(Dx(e.l,t,r+1),Dx(e.r,t,r+1)):t[e.s]=r},dE=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new os(++t),n=0,i=e[0],s=1,a=function(l){r[n++]=l},o=1;o<=t;++o)if(e[o]==i&&o!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(i),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(i);s=1,i=e[o]}return{c:r.subarray(0,n),n:t}},Uh=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},uI=function(e,t,r){var n=r.length,i=cI(t+2);e[i]=n&255,e[i+1]=n>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var s=0;s<n;++s)e[i+s+4]=r[s];return(i+4+n)*8},fE=function(e,t,r,n,i,s,a,o,l,c,d){No(t,d++,r),++i[256];for(var h=ow(i,15),p=h.t,f=h.l,y=ow(s,15),v=y.t,b=y.l,w=dE(p),x=w.c,S=w.n,E=dE(v),T=E.c,W=E.n,z=new os(19),B=0;B<x.length;++B)++z[x[B]&31];for(var B=0;B<T.length;++B)++z[T[B]&31];for(var P=ow(z,7),X=P.t,O=P.l,A=19;A>4&&!X[cE[A-1]];--A);var K=c+5<<3,R=Uh(i,Au)+Uh(s,ry)+a,le=Uh(i,p)+Uh(s,v)+a+14+3*A+Uh(z,X)+2*z[16]+3*z[17]+7*z[18];if(l>=0&&K<=R&&K<=le)return uI(t,d,e.subarray(l,l+c));var oe,se,F,D;if(No(t,d,1+(le<R)),d+=2,le<R){oe=mp(p,f,0),se=p,F=mp(v,b,0),D=v;var $=mp(X,O,0);No(t,d,S-257),No(t,d+5,W-1),No(t,d+10,A-4),d+=14;for(var B=0;B<A;++B)No(t,d+3*B,X[cE[B]]);d+=3*A;for(var M=[x,T],j=0;j<2;++j)for(var U=M[j],B=0;B<U.length;++B){var H=U[B]&31;No(t,d,$[H]),d+=X[H],H>15&&(No(t,d,U[B]>>5&127),d+=U[B]>>12)}}else oe=jre,se=Au,F=Are,D=ry;for(var B=0;B<o;++B){var re=n[B];if(re>255){var H=re>>18&31;qh(t,d,oe[H+257]),d+=se[H+257],H>7&&(No(t,d,re>>23&31),d+=Sk[H]);var te=re&31;qh(t,d,F[te]),d+=D[te],te>3&&(qh(t,d,re>>5&8191),d+=Nk[te])}else qh(t,d,oe[re]),d+=se[re]}return qh(t,d,oe[256]),d+se[256]},Pre=new kk([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),dI=new ga(0),Ore=function(e,t,r,n,i,s){var a=s.z||e.length,o=new ga(n+a+5*(1+Math.ceil(a/7e3))+i),l=o.subarray(n,o.length-i),c=s.l,d=(s.r||0)&7;if(t){d&&(l[0]=s.r>>3);for(var h=Pre[t-1],p=h>>13,f=h&8191,y=(1<<r)-1,v=s.p||new os(32768),b=s.h||new os(y+1),w=Math.ceil(r/3),x=2*w,S=function(je){return(e[je]^e[je+1]<<w^e[je+2]<<x)&y},E=new kk(25e3),T=new os(288),W=new os(32),z=0,B=0,P=s.i||0,X=0,O=s.w||0,A=0;P+2<a;++P){var K=S(P),R=P&32767,le=b[K];if(v[R]=le,b[K]=R,O<=P){var oe=a-P;if((z>7e3||X>24576)&&(oe>423||!c)){d=fE(e,l,0,E,T,W,B,X,A,P-A,d),X=z=B=0,A=P;for(var se=0;se<286;++se)T[se]=0;for(var se=0;se<30;++se)W[se]=0}var F=2,D=0,$=f,M=R-le&32767;if(oe>2&&K==S(P-M))for(var j=Math.min(p,oe)-1,U=Math.min(32767,P),H=Math.min(258,oe);M<=U&&--$&&R!=le;){if(e[P+F]==e[P+F-M]){for(var re=0;re<H&&e[P+re]==e[P+re-M];++re);if(re>F){if(F=re,D=M,re>j)break;for(var te=Math.min(M,re-2),Q=0,se=0;se<te;++se){var ce=P-M+se&32767,de=v[ce],he=ce-de&32767;he>Q&&(Q=he,le=ce)}}}R=le,le=v[R],M+=R-le&32767}if(D){E[X++]=268435456|Ix[F]<<18|uE[D];var we=Ix[F]&31,ve=uE[D]&31;B+=Sk[we]+Nk[ve],++T[257+we],++W[ve],O=P+F,++z}else E[X++]=e[P],++T[e[P]]}}for(P=Math.max(P,O);P<a;++P)E[X++]=e[P],++T[e[P]];d=fE(e,l,c,E,T,W,B,X,A,P-A,d),c||(s.r=d&7|l[d/8|0]<<3,d-=7,s.h=b,s.p=v,s.i=P,s.w=O)}else{for(var P=s.w||0;P<a+c;P+=65535){var Le=P+65535;Le>=a&&(l[d/8|0]=c,Le=a),d=uI(l,d+1,e.subarray(P,Le))}s.i=a}return Tre(o,0,n+cI(d)+i)},fI=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,s=r.length|0,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=n+=r[a];n=(n&65535)+15*(n>>16),i=(i&65535)+15*(i>>16)}e=n,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},Rre=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),a=new ga(s.length+e.length);a.set(s),a.set(e,s.length),e=a,i.w=s.length}return Ore(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,i)},hI=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},Lre=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=fI();i.p(t.dictionary),hI(e,2,i.d())}};function Mx(e,t){t||(t={});var r=fI();r.p(e);var n=Rre(e,t,t.dictionary?6:2,4);return Lre(n,t),hI(n,n.length-4,r.d()),n}var Ire=typeof TextDecoder<"u"&&new TextDecoder,Fre=0;try{Ire.decode(dI,{stream:!0}),Fre=1}catch{}function Dre(e){if(Array.isArray(e))return e}function Mre(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,s,a,o=[],l=!0,c=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(l=(n=s.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}function hE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function $re(e,t){if(e){if(typeof e=="string")return hE(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hE(e,t):void 0}}function Bre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
438In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pE(e,t){return Dre(e)||Mre(e,t)||$re(e,t)||Bre()}function mE(e,t="utf8"){return new TextDecoder(t).decode(e)}const qre=new TextEncoder;function Ure(e){return qre.encode(e)}const zre=1024*8,Hre=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),lw={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Ek{constructor(t=zre,r={}){pr(this,"buffer");pr(this,"byteLength");pr(this,"byteOffset");pr(this,"length");pr(this,"offset");pr(this,"lastWrittenByte");pr(this,"littleEndian");pr(this,"_data");pr(this,"_mark");pr(this,"_marks");let n=!1;typeof t=="number"?t=new ArrayBuffer(t):(n=!0,this.lastWrittenByte=t.byteLength);const i=r.offset?r.offset>>>0:0,s=t.byteLength-i;let a=i;(ArrayBuffer.isView(t)||t instanceof Ek)&&(t.byteLength!==t.buffer.byteLength&&(a=t.byteOffset+i),t=t.buffer),n?this.lastWrittenByte=s:this.lastWrittenByte=0,this.buffer=t,this.length=s,this.byteLength=s,this.byteOffset=a,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,a,s),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const n=(this.offset+t)*2,i=new Uint8Array(n);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=n,this.byteLength=n,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,r){const n=lw[r].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,s=this.buffer.slice(i,i+n);if(this.littleEndian===Hre&&r!=="uint8"&&r!=="int8"){const o=new Uint8Array(this.buffer.slice(i,i+n));o.reverse();const l=new lw[r](o.buffer);return this.offset+=n,l.reverse(),l}const a=new lw[r](s);return this.offset+=n,a}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let r="";for(let n=0;n<t;n++)r+=this.readChar();return r}readUtf8(t=1){return mE(this.readBytes(t))}decodeText(t=1,r="utf8"){return mE(this.readBytes(t),r)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let r=0;r<t.length;r++)this._data.setUint8(this.offset++,t[r]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let r=0;r<t.length;r++)this.writeUint8(t.charCodeAt(r));return this}writeUtf8(t){return this.writeBytes(Ure(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Vre=4,gE=0,vE=1,Wre=2;function Gf(e){let t=e.length;for(;--t>=0;)e[t]=0}const Kre=0,pI=1,Gre=2,Yre=3,Zre=258,Ck=29,Im=256,tm=Im+1+Ck,ef=30,jk=19,mI=2*tm+1,tu=15,cw=16,
vendor: 46,021 bytes, line 438
438Xre=7,Ak=256,gI=16,vI=17,yI=18,$x=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),$v=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Jre=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bI=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Qre=512,To=new Array((tm+2)*2);Gf(To);const gp=new Array(ef*2);Gf(gp);const rm=new Array(Qre);Gf(rm);const nm=new Array(Zre-Yre+1);Gf(nm);const Tk=new Array(Ck);Gf(Tk);const ny=new Array(ef);Gf(ny);function uw(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}let wI,xI,_I;function dw(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const kI=e=>e<256?rm[e]:rm[256+(e>>>7)],im=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Ui=(e,t,r)=>{e.bi_valid>cw-r?(e.bi_buf|=t<<e.bi_valid&65535,im(e,e.bi_buf),e.bi_buf=t>>cw-e.bi_valid,e.bi_valid+=r-cw):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},Ba=(e,t,r)=>{Ui(e,r[t*2],r[t*2+1])},SI=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},ene=e=>{e.bi_valid===16?(im(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},tne=(e,t)=>{const r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,d,h,p,f,y,v=0;for(p=0;p<=tu;p++)e.bl_count[p]=0;for(r[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;c<mI;c++)d=e.heap[c],p=r[r[d*2+1]*2+1]+1,p>l&&(p=l,v++),r[d*2+1]=p,!(d>n)&&(e.bl_count[p]++,f=0,d>=o&&(f=a[d-o]),y=r[d*2],e.opt_len+=y*(p+f),s&&(e.static_len+=y*(i[d*2+1]+f)));if(v!==0){do{for(p=l-1;e.bl_count[p]===0;)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[l]--,v-=2}while(v>0);for(p=l;p!==0;p--)for(d=e.bl_count[p];d!==0;)h=e.heap[--c],!(h>n)&&(r[h*2+1]!==p&&(e.opt_len+=(p-r[h*2+1])*r[h*2],r[h*2+1]=p),d--)}},NI=(e,t,r)=>{const n=new Array(tu+1);let i=0,s,a;for(s=1;s<=tu;s++)i=i+r[s-1]<<1,n[s]=i;for(a=0;a<=t;a++){let o=e[a*2+1];o!==0&&(e[a*2]=SI(n[o]++,o))}},rne=()=>{let e,t,r,n,i;const s=new Array(tu+1);for(r=0,n=0;n<Ck-1;n++)for(Tk[n]=r,e=0;e<1<<$x[n];e++)nm[r++]=n;for(nm[r-1]=n,i=0,n=0;n<16;n++)for(ny[n]=i,e=0;e<1<<$v[n];e++)rm[i++]=n;for(i>>=7;n<ef;n++)for(ny[n]=i<<7,e=0;e<1<<$v[n]-7;e++)rm[256+i++]=n;for(t=0;t<=tu;t++)s[t]=0;for(e=0;e<=143;)To[e*2+1]=8,e++,s[8]++;for(;e<=255;)To[e*2+1]=9,e++,s[9]++;for(;e<=279;)To[e*2+1]=7,e++,s[7]++;for(;e<=287;)To[e*2+1]=8,e++,s[8]++;for(NI(To,tm+1,s),e=0;e<ef;e++)gp[e*2+1]=5,gp[e*2]=SI(e,5);wI=new uw(To,$x,Im+1,tm,tu),xI=new uw(gp,$v,0,ef,tu),_I=new uw(new Array(0),Jre,0,jk,Xre)},EI=e=>{let t;for(t=0;t<tm;t++)e.dyn_ltree[t*2]=0;for(t=0;t<ef;t++)e.dyn_dtree[t*2]=0;for(t=0;t<jk;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ak*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},CI=e=>{e.bi_valid>8?im(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},yE=(e,t,r,n)=>{const i=t*2,s=r*2;return e[i]<e[s]||e[i]===e[s]&&n[t]<=n[r]},fw=(e,t,r)=>{const n=e.heap[r];let i=r<<1;for(;i<=e.heap_len&&(i<e.heap_len&&yE(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!yE(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n},bE=(e,t,r)=>{let n,i,s=0,a,o;if(e.sym_next!==0)do n=e.pending_buf[e.sym_buf+s++]&255,n+=(e.pending_buf[e.sym_buf+s++]&255)<<8,i=e.pending_buf[e.sym_buf+s++],n===0?Ba(e,i,t):(a=nm[i],Ba(e,a+Im+1,t),o=$x[a],o!==0&&(i-=Tk[a],Ui(e,i,o)),n--,a=kI(n),Ba(e,a,r),o=$v[a],o!==0&&(n-=ny[a],Ui(e,n,o)));while(s<e.sym_next);Ba(e,Ak,t)},Bx=(e,t)=>{const r=t.dyn_tree,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,s=t.stat_desc.elems;let a,o,l=-1,c;for(e.heap_len=0,e.heap_max=mI,a=0;a<s;a++)r[a*2]!==0?(e.heap[++e.heap_len]=l=a,e.depth[a]=0):r[a*2+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=l<2?++l:0,r[c*2]=1,e.depth[c]=0,e.opt_len--,i&&(e.static_len-=n[c*2+1]);for(t.max_code=l,a=e.heap_len>>1;a>=1;a--)fw(e,r,a);c=s;do a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],fw(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=o,r[c*2]=r[a*2]+r[o*2],e.depth[c]=(e.depth[a]>=e.depth[o]?e.depth[a]:e.depth[o])+1,r[a*2+1]=r[o*2+1]=c,e.heap[1]=c++,fw(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],tne(e,t),NI(r,l,e.bl_count)},wE=(e,t,r)=>{let n,i=-1,s,a=t[0*2+1],o=0,l=7,c=4;for(a===0&&(l=138,c=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)s=a,a=t[(n+1)*2+1],!(++o<l&&s===a)&&(o<c?e.bl_tree[s*2]+=o:s!==0?(s!==i&&e.bl_tree[s*2]++,e.bl_tree[gI*2]++):o<=10?e.bl_tree[vI*2]++:e.bl_tree[yI*2]++,o=0,i=s,a===0?(l=138,c=3):s===a?(l=6,c=3):(l=7,c=4))},xE=(e,t,r)=>{let n,i=-1,s,a=t[0*2+1],o=0,l=7,c=4;for(a===0&&(l=138,c=3),n=0;n<=r;n++)if(s=a,a=t[(n+1)*2+1],!(++o<l&&s===a)){if(o<c)do Ba(e,s,e.bl_tree);while(--o!==0);else s!==0?(s!==i&&(Ba(e,s,e.bl_tree),o--),Ba(e,gI,e.bl_tree),Ui(e,o-3,2)):o<=10?(Ba(e,vI,e.bl_tree),Ui(e,o-3,3)):(Ba(e,yI,e.bl_tree),Ui(e,o-11,7));o=0,i=s,a===0?(l=138,c=3):s===a?(l=6,c=3):(l=7,c=4)}},nne=e=>{let t;for(wE(e,e.dyn_ltree,e.l_desc.max_code),wE(e,e.dyn_dtree,e.d_desc.max_code),Bx(e,e.bl_desc),t=jk-1;t>=3&&e.bl_tree[bI[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},ine=(e,t,r,n)=>{let i;for(Ui(e,t-257,5),Ui(e,r-1,5),Ui(e,n-4,4),i=0;i<n;i++)Ui(e,e.bl_tree[bI[i]*2+1],3);xE(e,e.dyn_ltree,t-1),xE(e,e.dyn_dtree,r-1)},sne=e=>{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return gE;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return vE;for(r=32;r<Im;r++)if(e.dyn_ltree[r*2]!==0)return vE;return gE};let _E=!1;const ane=e=>{_E||(rne(),_E=!0),e.l_desc=new dw(e.dyn_ltree,wI),e.d_desc=new dw(e.dyn_dtree,xI),e.bl_desc=new dw(e.bl_tree,_I),e.bi_buf=0,e.bi_valid=0,EI(e)},jI=(e,t,r,n)=>{Ui(e,(Kre<<1)+(n?1:0),3),CI(e),im(e,r),im(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},one=e=>{Ui(e,pI<<1,3),Ba(e,Ak,To),ene(e)},lne=(e,t,r,n)=>{let i,s,a=0;e.level>0?(e.strm.data_type===Wre&&(e.strm.data_type=sne(e)),Bx(e,e.l_desc),Bx(e,e.d_desc),a=nne(e),i=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=i&&(i=s)):i=s=r+5,r+4<=i&&t!==-1?jI(e,t,r,n):e.strategy===Vre||s===i?(Ui(e,(pI<<1)+(n?1:0),3),bE(e,To,gp)):(Ui(e,(Gre<<1)+(n?1:0),3),ine(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),bE(e,e.dyn_ltree,e.dyn_dtree)),EI(e),n&&CI(e)},cne=(e,t,r)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=r,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(nm[r]+Im+1)*2]++,e.dyn_dtree[kI(t)*2]++),e.sym_next===e.sym_end);var une=ane,dne=jI,fne=lne,hne=cne,pne=one,mne={_tr_init:une,_tr_stored_block:dne,_tr_flush_block:fne,_tr_tally:hne,_tr_align:pne};const gne=(e,t,r,n)=>{let i=e&65535|0,s=e>>>16&65535|0,a=0;for(;r!==0;){a=r>2e3?2e3:r,r-=a;do i=i+t[n++]|0,s=s+i|0;while(--a);i%=65521,s%=65521}return i|s<<16|0};var sm=gne;const vne=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},yne=new Uint32Array(vne()),bne=(e,t,r,n)=>{const i=yne,s=n+r;e^=-1;for(let a=n;a<s;a++)e=e>>>8^i[(e^t[a])&255];return e^-1};var $n=bne,Of={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Fm={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:wne,_tr_stored_block:qx,_tr_flush_block:xne,_tr_tally:Yl,_tr_align:_ne}=mne,{Z_NO_FLUSH:Zl,Z_PARTIAL_FLUSH:kne,Z_FULL_FLUSH:Sne,Z_FINISH:As,Z_BLOCK:kE,Z_OK:Jn,Z_STREAM_END:SE,Z_STREAM_ERROR:Xa,Z_DATA_ERROR:Nne,Z_BUF_ERROR:hw,Z_DEFAULT_COMPRESSION:Ene,Z_FILTERED:Cne,Z_HUFFMAN_ONLY:sv,Z_RLE:jne,Z_FIXED:Ane,Z_DEFAULT_STRATEGY:Tne,Z_UNKNOWN:Pne,Z_DEFLATED:u1}=Fm,One=9,Rne=15,Lne=8,Ine=29,Fne=256,Ux=Fne+1+Ine,Dne=30,Mne=19,$ne=2*Ux+1,Bne=15,Jt=3,Dl=258,Ja=Dl+Jt+1,qne=32,Rf=42,Pk=57,zx=69,Hx=73,Vx=91,Wx=103,ru=113,Qh=666,Ni=1,Yf=2,Tu=3,Zf=4,Une=3,nu=(e,t)=>(e.msg=Of[t],t),NE=e=>e*2-(e>4?9:0),Cl=e=>{let t=e.length;for(;--t>=0;)e[t]=0},zne=e=>{let t,r,n,i=e.w_size;t=e.hash_size,n=t;do r=e.head[--n],e.head[n]=r>=i?r-i:0;while(--t);t=i,n=t;do r=e.prev[--n],e.prev[n]=r>=i?r-i:0;while(--t)};let Hne=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask,Xl=Hne;const rs=e=>{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))},ls=(e,t)=>{xne(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,rs(e.strm)},cr=(e,t)=>{e.pending_buf[e.pending++]=t},zh=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Kx=(e,t,r,n)=>{let i=e.avail_in;return i>n&&(i=n),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),r),e.state.wrap===1?e.adler=sm(e.adler,t,i,r):e.state.wrap===2&&(e.adler=$n(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)},AI=(e,t)=>{let r=e.max_chain_length,n=e.strstart,i,s,a=e.prev_length,o=e.nice_match;const l=e.strstart>e.w_size-Ja?e.strstart-(e.w_size-Ja):0,c=e.window,d=e.w_mask,h=e.prev,p=e.strstart+Dl;let f=c[n+a-1],y=c[n+a];e.prev_length>=e.good_match&&(r>>=2),o>e.lookahead&&(o=e.lookahead);do if(i=t,!(c[i+a]!==y||c[i+a-1]!==f||c[i]!==c[n]||c[++i]!==c[n+1])){n+=2,i++;do;while(c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&n<p);if(s=Dl-(p-n),n=p-Dl,s>a){if(e.match_start=t,a=s,s>=o)break;f=c[n+a-1],y=c[n+a]}}while((t=h[t&d])>l&&--r!==0);return a<=e.lookahead?a:e.lookahead},Lf=e=>{const t=e.w_size;let r,n,i;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Ja)&&(e.window.set(e.window.subarray(t,t+t-n),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),zne(e),n+=t),e.strm.avail_in===0)break;if(r=Kx(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=r,e.lookahead+e.insert>=Jt)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Xl(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Xl(e,e.ins_h,e.window[i+Jt-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<Jt)););}while(e.lookahead<Ja&&e.strm.avail_in!==0)},TI=(e,t)=>{let r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,i,s,a=0,o=e.strm.avail_in;do{if(n=65535,s=e.bi_valid+42>>3,e.strm.avail_out<s||(s=e.strm.avail_out-s,i=e.strstart-e.block_start,n>i+e.strm.avail_in&&(n=i+e.strm.avail_in),n>s&&(n=s),n<r&&(n===0&&t!==As||t===Zl||n!==i+e.strm.avail_in)))break;a=t===As&&n===i+e.strm.avail_in?1:0,qx(e,0,0,a),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,rs(e.strm),i&&(i>n&&(i=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,n-=i),n&&(Kx(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(a===0);return o-=e.strm.avail_in,o&&(o>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=o&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-o,e.strm.next_in),e.strstart),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),a?Zf:t!==Zl&&t!==As&&e.strm.avail_in===0&&e.strstart===e.block_start?Yf:(s=e.window_size-e.strstart,e.strm.avail_in>s&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,s+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),s>e.strm.avail_in&&(s=e.strm.avail_in),s&&(Kx(e.strm,e.window,e.strstart,s),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.high_water<e.strstart&&(e.high_water=e.strstart),s=e.bi_valid+42>>3,s=e.pending_buf_size-s>65535?65535:e.pending_buf_size-s,r=s>e.w_size?e.w_size:s,i=e.strstart-e.block_start,(i>=r||(i||t===As)&&t!==Zl&&e.strm.avail_in===0&&i<=s)&&(n=i>s?s:i,a=t===As&&e.strm.avail_in===0&&n===i?1:0,qx(e,e.block_start,n,a),e.block_start+=n,rs(e.strm)),a?Tu:Ni)},pw=(e,t)=>{let r,n;for(;;){if(e.lookahead<Ja){if(Lf(e),e.lookahead<Ja&&t===Zl)return Ni;if(e.lookahead===0)break}if(r=0,e.lookahead>=Jt&&(e.ins_h=Xl(e,e.ins_h,e.window[e.strstart+Jt-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-Ja&&(e.match_length=AI(e,r)),e.match_length>=Jt)if(n=Yl(e,e.strstart-e.match_start,e.match_length-Jt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Jt){e.match_length--;do e.strstart++,e.ins_h=Xl(e,e.ins_h,e.window[e.strstart+Jt-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Xl(e,e.ins_h,e.window[e.strstart+1]);else n=Yl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(ls(e,!1),e.strm.avail_out===0))return Ni}return e.insert=e.strstart<Jt-1?e.strstart:Jt-1,t===As?(ls(e,!0),e.strm.avail_out===0?Tu:Zf):e.sym_next&&(ls(e,!1),e.strm.avail_out===0)?Ni:Yf},yd=(e,t)=>{let r,n,i;for(;;){if(e.lookahead<Ja){if(Lf(e),e.lookahead<Ja&&t===Zl)return Ni;if(e.lookahead===0)break}if(r=0,e.lookahead>=Jt&&(e.ins_h=Xl(e,e.ins_h,e.window[e.strstart+Jt-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Jt-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Ja&&(e.match_length=AI(e,r),e.match_length<=5&&(e.strategy===Cne||e.match_length===Jt&&e.strstart-e.match_start>4096)&&(e.match_length=Jt-1)),e.prev_length>=Jt&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Jt,n=Yl(e,e.strstart-1-e.prev_match,e.prev_length-Jt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Xl(e,e.ins_h,e.window[e.strstart+Jt-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Jt-1,e.strstart++,n&&(ls(e,!1),e.strm.avail_out===0))return Ni}else if(e.match_available){if(n=Yl(e,0,e.window[e.strstart-1]),n&&ls(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Ni}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Yl(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Jt-1?e.strstart:Jt-1,t===As?(ls(e,!0),e.strm.avail_out===0?Tu:Zf):e.sym_next&&(ls(e,!1),e.strm.avail_out===0)?Ni:Yf},Vne=(e,t)=>{let r,n,i,s;const a=e.window;for(;;){if(e.lookahead<=Dl){if(Lf(e),e.lookahead<=Dl&&t===Zl)return Ni;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Jt&&e.strstart>0&&(i=e.strstart-1,n=a[i],n===a[++i]&&n===a[++i]&&n===a[++i])){s=e.strstart+Dl;do;while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<s);e.match_length=Dl-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Jt?(r=Yl(e,1,e.match_length-Jt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Yl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ls(e,!1),e.strm.avail_out===0))return Ni}return e.insert=0,t===As?(ls(e,!0),e.strm.avail_out===0?Tu:Zf):e.sym_next&&(ls(e,!1),e.strm.avail_out===0)?Ni:Yf},Wne=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(Lf(e),e.lookahead===0)){if(t===Zl)return Ni;break}if(e.match_length=0,r=Yl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ls(e,!1),e.strm.avail_out===0))return Ni}return e.insert=0,t===As?(ls(e,!0),e.strm.avail_out===0?Tu:Zf):e.sym_next&&(ls(e,!1),e.strm.avail_out===0)?Ni:Yf};function Aa(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}const ep=[new Aa(0,0,0,0,TI),new Aa(4,4,8,4,pw),new Aa(4,5,16,8,pw),new Aa(4,6,32,32,pw),new Aa(4,4,16,16,yd),new Aa(8,16,32,32,yd),new Aa(8,16,128,128,yd),new Aa(8,32,128,256,yd),new Aa(32,128,258,1024,yd),new Aa(32,258,258,4096,yd)],Kne=e=>{e.window_size=2*e.w_size,Cl(e.head),e.max_lazy_match=ep[e.level].max_lazy,e.good_match=ep[e.level].good_length,e.nice_match=ep[e.level].nice_length,e.max_chain_length=ep[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Jt-1,e.match_available=0,e.ins_h=0};function Gne(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=u1,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array($ne*2),this.dyn_dtree=new Uint16Array((2*Dne+1)*2),this.bl_tree=new Uint16Array((2*Mne+1)*2),Cl(this.dyn_ltree),Cl(this.dyn_dtree),Cl(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Bne+1),this.heap=new Uint16Array(2*Ux+1),Cl(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Ux+1),Cl(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Dm=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Rf&&t.status!==Pk&&t.status!==zx&&t.status!==Hx&&t.status!==Vx&&t.status!==Wx&&t.status!==ru&&t.status!==Qh?1:0},PI=e=>{if(Dm(e))return nu(e,Xa);e.total_in=e.total_out=0,e.data_type=Pne;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Pk:t.wrap?Rf:ru,e.adler=t.wrap===2?0:1,t.last_flush=-2,wne(t),Jn},OI=e=>{const t=PI(e);return t===Jn&&Kne(e.state),t},Yne=(e,t)=>Dm(e)||e.state.wrap!==2?Xa:(e.state.gzhead=t,Jn),RI=(e,t,r,n,i,s)=>{if(!e)return Xa;let a=1;if(t===Ene&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>One||r!==u1||n<8||n>15||t<0||t>9||s<0||s>Ane||n===8&&a!==1)return nu(e,Xa);n===8&&(n=9);const o=new Gne;return e.state=o,o.strm=e,o.status=Rf,o.wrap=a,o.gzhead=null,o.w_bits=n,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=i+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+Jt-1)/Jt),o.window=new Uint8Array(o.w_size*2),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<i+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=(o.lit_bufsize-1)*3,o.level=t,o.strategy=s,o.method=r,OI(e)},Zne=(e,t)=>RI(e,t,u1,Rne,Lne,Tne),Xne=(e,t)=>{if(Dm(e)||t>kE||t<0)return e?nu(e,Xa):Xa;const r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===Qh&&t!==As)return nu(e,e.avail_out===0?hw:Xa);const n=r.last_flush;if(r.last_flush=t,r.pending!==0){if(rs(e),e.avail_out===0)return r.last_flush=-1,Jn}else if(e.avail_in===0&&NE(t)<=NE(n)&&t!==As)return nu(e,hw);if(r.status===Qh&&e.avail_in!==0)return nu(e,hw);if(r.status===Rf&&r.wrap===0&&(r.status=ru),r.status===Rf){let i=u1+(r.w_bits-8<<4)<<8,s=-1;if(r.strategy>=sv||r.level<2?s=0:r.level<6?s=1:r.level===6?s=2:s=3,i|=s<<6,r.strstart!==0&&(i|=qne),i+=31-i%31,zh(r,i),r.strstart!==0&&(zh(r,e.adler>>>16),zh(r,e.adler&65535)),e.adler=1,r.status=ru,rs(e),r.pending!==0)return r.last_flush=-1,Jn}if(r.status===Pk){if(e.adler=0,cr(r,31),cr(r,139),cr(r,8),r.gzhead)cr(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),cr(r,r.gzhead.time&255),cr(r,r.gzhead.time>>8&255),cr(r,r.gzhead.time>>16&255),cr(r,r.gzhead.time>>24&255),cr(r,r.level===9?2:r.strategy>=sv||r.level<2?4:0),cr(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(cr(r,r.gzhead.extra.length&255),cr(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=$n(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=zx;else if(cr(r,0),cr(r,0),cr(r,0),cr(r,0),cr(r,0),cr(r,r.level===9?2:r.strategy>=sv||r.level<2?4:0),cr(r,Une),r.status=ru,rs(e),r.pending!==0)return r.last_flush=-1,Jn}if(r.status===zx){if(r.gzhead.extra){let i=r.pending,s=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+s>r.pending_buf_size;){let o=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+o),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>i&&(e.adler=$n(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex+=o,rs(e),r.pending!==0)return r.last_flush=-1,Jn;i=0,s-=o}let a=new Uint8Array(r.gzhead.extra);r.pending_buf.set(a.subarray(r.gzindex,r.gzindex+s),r.pending),r.pending+=s,r.gzhead.hcrc&&r.pending>i&&(e.adler=$n(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=Hx}if(r.status===Hx){if(r.gzhead.name){let i=r.pending,s;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i&&(e.adler=$n(e.adler,r.pending_buf,r.pending-i,i)),rs(e),r.pending!==0)return r.last_flush=-1,Jn;i=0}r.gzindex<r.gzhead.name.length?s=r.gzhead.name.charCodeAt(r.gzindex++)&255:s=0,cr(r,s)}while(s!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=$n(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=Vx}if(r.status===Vx){if(r.gzhead.comment){let i=r.pending,s;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i&&(e.adler=$n(e.adler,r.pending_buf,r.pending-i,i)),rs(e),r.pending!==0)return r.last_flush=-1,Jn;i=0}r.gzindex<r.gzhead.comment.length?s=r.gzhead.comment.charCodeAt(r.gzindex++)&255:s=0,cr(r,s)}while(s!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=$n(e.adler,r.pending_buf,r.pending-i,i))}r.status=Wx}if(r.status===Wx){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(rs(e),r.pending!==0))return r.last_flush=-1,Jn;cr(r,e.adler&255),cr(r,e.adler>>8&255),e.adler=0}if(r.status=ru,rs(e),r.pending!==0)return r.last_flush=-1,Jn}if(e.avail_in!==0||r.lookahead!==0||t!==Zl&&r.status!==Qh){let i=r.level===0?TI(r,t):r.strategy===sv?Wne(r,t):r.strategy===jne?Vne(r,t):ep[r.level].func(r,t);if((i===Tu||i===Zf)&&(r.status=Qh),i===Ni||i===Tu)return e.avail_out===0&&(r.last_flush=-1),Jn;if(i===Yf&&(t===kne?_ne(r):t!==kE&&(qx(r,0,0,!1),t===Sne&&(Cl(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),rs(e),e.avail_out===0))return r.last_flush=-1,Jn}return t!==As?Jn:r.wrap<=0?SE:(r.wrap===2?(cr(r,e.adler&255),cr(r,e.adler>>8&255),cr(r,e.adler>>16&255),cr(r,e.adler>>24&255),cr(r,e.total_in&255),cr(r,e.total_in>>8&255),cr(r,e.total_in>>16&255),cr(r,e.total_in>>24&255)):(zh(r,e.adler>>>16),zh(r,e.adler&65535)),rs(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?Jn:SE)},Jne=e=>{if(Dm(e))return Xa;const t=e.state.status;return e.state=null,t===ru?nu(e,Nne):Jn},Qne=(e,t)=>{let r=t.length;if(Dm(e))return Xa;const n=e.state,i=n.wrap;if(i===2||i===1&&n.status!==Rf||n.lookahead)return Xa;if(i===1&&(e.adler=sm(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){i===0&&(Cl(n.head),n.strstart=0,n.block_start=0,n.insert=0);let l=new Uint8Array(n.w_size);l.set(t.subarray(r-n.w_size,r),0),t=l,r=n.w_size}const s=e.avail_in,a=e.next_in,o=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,Lf(n);n.lookahead>=Jt;){let l=n.strstart,c=n.lookahead-(Jt-1);do n.ins_h=Xl(n,n.ins_h,n.window[l+Jt-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++;while(--c);n.strstart=l,n.lookahead=Jt-1,Lf(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=Jt-1,n.match_available=0,e.next_in=a,e.input=o,e.avail_in=s,n.wrap=i,Jn};var eie=Zne,tie=RI,rie=OI,nie=PI,iie=Yne,sie=Xne,aie=Jne,oie=Qne,lie="pako deflate (from Nodeca project)",vp={deflateInit:eie,deflateInit2:tie,deflateReset:rie,deflateResetKeep:nie,deflateSetHeader:iie,deflate:sie,deflateEnd:aie,deflateSetDictionary:oie,deflateInfo:lie};const cie=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var uie=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)cie(r,n)&&(e[n]=r[n])}}return e},die=e=>{let t=0;for(let n=0,i=e.length;n<i;n++)t+=e[n].length;const r=new Uint8Array(t);for(let n=0,i=0,s=e.length;n<s;n++){let a=e[n];r.set(a,i),i+=a.length}return r},d1={assign:uie,flattenChunks:die};let LI=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{LI=!1}const am=new Uint8Array(256);for(let e=0;e<256;e++)am[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;am[254]=am[254]=1;var fie=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,n,i,s,a=e.length,o=0;for(i=0;i<a;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<a&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(o),s=0,i=0;s<o;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<a&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t};const hie=(e,t)=>{if(t<65534&&e.subarray&&LI)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r};var pie=(e,t)=>{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,i;const s=new Array(r*2);for(i=0,n=0;n<r;){let a=e[n++];if(a<128){s[i++]=a;continue}let o=am[a];if(o>4){s[i++]=65533,n+=o-1;continue}for(a&=o===2?31:o===3?15:7;o>1&&n<r;)a=a<<6|e[n++]&63,o--;if(o>1){s[i++]=65533;continue}a<65536?s[i++]=a:(a-=65536,s[i++]=55296|a>>10&1023,s[i++]=56320|a&1023)}return hie(s,i)},mie=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+am[e[r]]>t?r:t},om={string2buf:fie,buf2string:pie,utf8border:mie};function gie(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var II=gie;const FI=Object.prototype.toString,{Z_NO_FLUSH:vie,Z_SYNC_FLUSH:yie,Z_FULL_FLUSH:bie,Z_FINISH:wie,Z_OK:iy,Z_STREAM_END:xie,Z_DEFAULT_COMPRESSION:_ie,Z_DEFAULT_STRATEGY:kie,Z_DEFLATED:Sie}=Fm;function Ok(e){this.options=d1.assign({level:_ie,method:Sie,chunkSize:16384,windowBits:15,memLevel:8,strategy:kie},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new II,this.strm.avail_out=0;let r=vp.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==iy)throw new Error(Of[r]);if(t.header&&vp.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=om.string2buf(t.dictionary):FI.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,r=vp.deflateSetDictionary(this.strm,n),r!==iy)throw new Error(Of[r]);this._dict_set=!0}}Ok.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize;let i,s;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?wie:vie,typeof e=="string"?r.input=om.string2buf(e):FI.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(s===yie||s===bie)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(i=vp.deflate(r,s),i===xie)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=vp.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===iy;if(r.avail_out===0){this.onData(r.output);continue}if(s>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0};Ok.prototype.onData=function(e){this.chunks.push(e)};Ok.prototype.onEnd=function(e){e===iy&&(this.result=d1.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};const av=16209,Nie=16191;var Eie=function(t,r){let n,i,s,a,o,l,c,d,h,p,f,y,v,b,w,x,S,E,T,W,z,B,P,X;const O=t.state;n=t.next_in,P=t.input,i=n+(t.avail_in-5),s=t.next_out,X=t.output,a=s-(r-t.avail_out),o=s+(t.avail_out-257),l=O.dmax,c=O.wsize,d=O.whave,h=O.wnext,p=O.window,f=O.hold,y=O.bits,v=O.lencode,b=O.distcode,w=(1<<O.lenbits)-1,x=(1<<O.distbits)-1;e:do{y<15&&(f+=P[n++]<<y,y+=8,f+=P[n++]<<y,y+=8),S=v[f&w];t:for(;;){if(E=S>>>24,f>>>=E,y-=E,E=S>>>16&255,E===0)X[s++]=S&65535;else if(E&16){T=S&65535,E&=15,E&&(y<E&&(f+=P[n++]<<y,y+=8),T+=f&(1<<E)-1,f>>>=E,y-=E),y<15&&(f+=P[n++]<<y,y+=8,f+=P[n++]<<y,y+=8),S=b[f&x];r:for(;;){if(E=S>>>24,f>>>=E,y-=E,E=S>>>16&255,E&16){if(W=S&65535,E&=15,y<E&&(f+=P[n++]<<y,y+=8,y<E&&(f+=P[n++]<<y,y+=8)),W+=f&(1<<E)-1,W>l){t.msg="invalid distance too far back",O.mode=av;break e}if(f>>>=E,y-=E,E=s-a,W>E){if(E=W-E,E>d&&O.sane){t.msg="invalid distance too far back",O.mode=av;break e}if(z=0,B=p,h===0){if(z+=c-E,E<T){T-=E;do X[s++]=p[z++];while(--E);z=s-W,B=X}}else if(h<E){if(z+=c+h-E,E-=h,E<T){T-=E;do X[s++]=p[z++];while(--E);if(z=0,h<T){E=h,T-=E;do X[s++]=p[z++];while(--E);z=s-W,B=X}}}else if(z+=h-E,E<T){T-=E;do X[s++]=p[z++];while(--E);z=s-W,B=X}for(;T>2;)X[s++]=B[z++],X[s++]=B[z++],X[s++]=B[z++],T-=3;T&&(X[s++]=B[z++],T>1&&(X[s++]=B[z++]))}else{z=s-W;do X[s++]=X[z++],X[s++]=X[z++],X[s++]=X[z++],T-=3;while(T>2);T&&(X[s++]=X[z++],T>1&&(X[s++]=X[z++]))}}else if(E&64){t.msg="invalid distance code",O.mode=av;break e}else{S=b[(S&65535)+(f&(1<<E)-1)];continue r}break}}else if(E&64)if(E&32){O.mode=Nie;break e}else{t.msg="invalid literal/length code",O.mode=av;break e}else{S=v[(S&65535)+(f&(1<<E)-1)];continue t}break}}while(n<i&&s<o);T=y>>3,n-=T,y-=T<<3,f&=(1<<y)-1,t.next_in=n,t.next_out=s,t.avail_in=n<i?5+(i-n):5-(n-i),t.avail_out=s<o?257+(o-s):257-(s-o),O.hold=f,O.bits=y};const bd=15,EE=852,CE=592,jE=0,mw=1,AE=2,Cie=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),jie=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Aie=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Tie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Pie=(e,t,r,n,i,s,a,o)=>{const l=o.bits;let c=0,d=0,h=0,p=0,f=0,y=0,v=0,b=0,w=0,x=0,S,E,T,W,z,B=null,P;const X=new Uint16Array(bd+1),O=new Uint16Array(bd+1);let A=null,K,R,le;for(c=0;c<=bd;c++)X[c]=0;for(d=0;d<n;d++)X[t[r+d]]++;for(f=l,p=bd;p>=1&&X[p]===0;p--);if(f>p&&(f=p),p===0)return i[s++]=1<<24|64<<16|0,i[s++]=1<<24|64<<16|0,o.bits=1,0;for(h=1;h<p&&X[h]===0;h++);for(f<h&&(f=h),b=1,c=1;c<=bd;c++)if(b<<=1,b-=X[c],b<0)return-1;if(b>0&&(e===jE||p!==1))return-1;for(O[1]=0,c=1;c<bd;c++)O[c+1]=O[c]+X[c];for(d=0;d<n;d++)t[r+d]!==0&&(a[O[t[r+d]]++]=d);if(e===jE?(B=A=a,P=20):e===mw?(B=Cie,A=jie,P=257):(B=Aie,A=Tie,P=0),x=0,d=0,c=h,z=s,y=f,v=0,T=-1,w=1<<f,W=w-1,e===mw&&w>EE||e===AE&&w>CE)return 1;for(;;){K=c-v,a[d]+1<P?(R=0,le=a[d]):a[d]>=P?(R=A[a[d]-P],le=B[a[d]-P]):(R=96,le=0),S=1<<c-v,E=1<<y,h=E;do E-=S,i[z+(x>>v)+E]=K<<24|R<<16|le|0;while(E!==0);for(S=1<<c-1;x&S;)S>>=1;if(S!==0?(x&=S-1,x+=S):x=0,d++,--X[c]===0){if(c===p)break;c=t[r+a[d]]}if(c>f&&(x&W)!==T){for(v===0&&(v=f),z+=h,y=c-v,b=1<<y;y+v<p&&(b-=X[y+v],!(b<=0));)y++,b<<=1;if(w+=1<<y,e===mw&&w>EE||e===AE&&w>CE)return 1;T=x&W,i[T]=f<<24|y<<16|z-s|0}}return x!==0&&(i[z+x]=c-v<<24|64<<16|0),o.bits=f,0};var yp=Pie;const Oie=0,DI=1,MI=2,{Z_FINISH:TE,Z_BLOCK:Rie,Z_TREES:ov,Z_OK:Pu,Z_STREAM_END:Lie,Z_NEED_DICT:Iie,Z_STREAM_ERROR:Is,Z_DATA_ERROR:$I,Z_MEM_ERROR:BI,Z_BUF_ERROR:Fie,Z_DEFLATED:PE}=Fm,f1=16180,OE=16181,RE=16182,LE=16183,IE=16184,FE=16185,DE=16186,ME=16187,$E=16188,BE=16189,sy=16190,Eo=16191,gw=16192,qE=16193,vw=16194,UE=16195,zE=16196,HE=16197,VE=16198,lv=16199,cv=16200,WE=16201,KE=16202,GE=16203,YE=16204,ZE=16205,yw=16206,XE=16207,JE=16208,Br=16209,qI=16210,UI=16211,Die=852,Mie=592,$ie=15,Bie=$ie,QE=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function qie(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const qu=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<f1||t.mode>UI?1:0},zI=e=>{if(qu(e))return Is;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=f1,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Die),t.distcode=t.distdyn=new Int32Array(Mie),t.sane=1,t.back=-1,Pu},HI=e=>{if(qu(e))return Is;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,zI(e)},VI=(e,t)=>{let r;if(qu(e))return Is;const n=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Is:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,HI(e))},WI=(e,t)=>{if(!e)return Is;const r=new qie;e.state=r,r.strm=e,r.window=null,r.mode=f1;const n=VI(e,t);return n!==Pu&&(e.state=null),n},Uie=e=>WI(e,Bie);let eC=!0,bw,ww;const zie=e=>{if(eC){bw=new Int32Array(512),ww=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(yp(DI,e.lens,0,288,bw,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;yp(MI,e.lens,0,32,ww,0,e.work,{bits:5}),eC=!1}e.lencode=bw,e.lenbits=9,e.distcode=ww,e.distbits=5},KI=(e,t,r,n)=>{let i;const s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),n>=s.wsize?(s.window.set(t.subarray(r-s.wsize,r),0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>n&&(i=n),s.window.set(t.subarray(r-n,r-n+i),s.wnext),n-=i,n?(s.window.set(t.subarray(r-n,r),0),s.wnext=n,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0},Hie=(e,t)=>{let r,n,i,s,a,o,l,c,d,h,p,f,y,v,b=0,w,x,S,E,T,W,z,B;const P=new Uint8Array(4);let X,O;const A=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(qu(e)||!e.output||!e.input&&e.avail_in!==0)return Is;r=e.state,r.mode===Eo&&(r.mode=gw),a=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,n=e.input,o=e.avail_in,c=r.hold,d=r.bits,h=o,p=l,B=Pu;e:for(;;)switch(r.mode){case f1:if(r.wrap===0){r.mode=gw;break}for(;d<16;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}if(r.wrap&2&&c===35615){r.wbits===0&&(r.wbits=15),r.check=0,P[0]=c&255,P[1]=c>>>8&255,r.check=$n(r.check,P,2,0),c=0,d=0,r.mode=OE;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",r.mode=Br;break}if((c&15)!==PE){e.msg="unknown compression method",r.mode=Br;break}if(c>>>=4,d-=4,z=(c&15)+8,r.wbits===0&&(r.wbits=z),z>15||z>r.wbits){e.msg="invalid window size",r.mode=Br;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=c&512?BE:Eo,c=0,d=0;break;case OE:for(;d<16;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}if(r.flags=c,(r.flags&255)!==PE){e.msg="unknown compression method",r.mode=Br;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Br;break}r.head&&(r.head.text=c>>8&1),r.flags&512&&r.wrap&4&&(P[0]=c&255,P[1]=c>>>8&255,r.check=$n(r.check,P,2,0)),c=0,d=0,r.mode=RE;case RE:for(;d<32;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}r.head&&(r.head.time=c),r.flags&512&&r.wrap&4&&(P[0]=c&255,P[1]=c>>>8&255,P[2]=c>>>16&255,P[3]=c>>>24&255,r.check=$n(r.check,P,4,0)),c=0,d=0,r.mode=LE;case LE:for(;d<16;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}r.head&&(r.head.xflags=c&255,r.head.os=c>>8),r.flags&512&&r.wrap&4&&(P[0]=c&255,P[1]=c>>>8&255,r.check=$n(r.check,P,2,0)),c=0,d=0,r.mode=IE;case IE:if(r.flags&1024){for(;d<16;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}r.length=c,r.head&&(r.head.extra_len=c),r.flags&512&&r.wrap&4&&(P[0]=c&255,P[1]=c>>>8&255,r.check=$n(r.check,P,2,0)),c=0,d=0}else r.head&&(r.head.extra=null);r.mode=FE;case FE:if(r.flags&1024&&(f=r.length,f>o&&(f=o),f&&(r.head&&(z=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(s,s+f),z)),r.flags&512&&r.wrap&4&&(r.check=$n(r.check,n,f,s)),o-=f,s+=f,r.length-=f),r.length))break e;r.length=0,r.mode=DE;case DE:if(r.flags&2048){if(o===0)break e;f=0;do z=n[s+f++],r.head&&z&&r.length<65536&&(r.head.name+=String.fromCharCode(z));while(z&&f<o);if(r.flags&512&&r.wrap&4&&(r.check=$n(r.check,n,f,s)),o-=f,s+=f,z)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=ME;case ME:if(r.flags&4096){if(o===0)break e;f=0;do z=n[s+f++],r.head&&z&&r.length<65536&&(r.head.comment+=String.fromCharCode(z));while(z&&f<o);if(r.flags&512&&r.wrap&4&&(r.check=$n(r.check,n,f,s)),o-=f,s+=f,z)break e}else r.head&&(r.head.comment=null);r.mode=$E;case $E:if(r.flags&512){for(;d<16;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}if(r.wrap&4&&c!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Br;break}c=0,d=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Eo;break;case BE:for(;d<32;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}e.adler=r.check=QE(c),c=0,d=0,r.mode=sy;case sy:if(r.havedict===0)return e.next_out=a,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=c,r.bits=d,Iie;e.adler=r.check=1,r.mode=Eo;case Eo:if(t===Rie||t===ov)break e;case gw:if(r.last){c>>>=d&7,d-=d&7,r.mode=yw;break}for(;d<3;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}switch(r.last=c&1,c>>>=1,d-=1,c&3){case 0:r.mode=qE;break;case 1:if(zie(r),r.mode=lv,t===ov){c>>>=2,d-=2;break e}break;case 2:r.mode=zE;break;case 3:e.msg="invalid block type",r.mode=Br}c>>>=2,d-=2;break;case qE:for(c>>>=d&7,d-=d&7;d<32;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}if((c&65535)!==(c>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Br;break}if(r.length=c&65535,c=0,d=0,r.mode=vw,t===ov)break e;case vw:r.mode=UE;case UE:if(f=r.length,f){if(f>o&&(f=o),f>l&&(f=l),f===0)break e;i.set(n.subarray(s,s+f),a),o-=f,s+=f,l-=f,a+=f,r.length-=f;break}r.mode=Eo;break;case zE:for(;d<14;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}if(r.nlen=(c&31)+257,c>>>=5,d-=5,r.ndist=(c&31)+1,c>>>=5,d-=5,r.ncode=(c&15)+4,c>>>=4,d-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Br;break}r.have=0,r.mode=HE;case HE:for(;r.have<r.ncode;){for(;d<3;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}r.lens[A[r.have++]]=c&7,c>>>=3,d-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,X={bits:r.lenbits},B=yp(Oie,r.lens,0,19,r.lencode,0,r.work,X),r.lenbits=X.bits,B){e.msg="invalid code lengths set",r.mode=Br;break}r.have=0,r.mode=VE;case VE:for(;r.have<r.nlen+r.ndist;){for(;b=r.lencode[c&(1<<r.lenbits)-1],w=b>>>24,x=b>>>16&255,S=b&65535,!(w<=d);){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}if(S<16)c>>>=w,d-=w,r.lens[r.have++]=S;else{if(S===16){for(O=w+2;d<O;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}if(c>>>=w,d-=w,r.have===0){e.msg="invalid bit length repeat",r.mode=Br;break}z=r.lens[r.have-1],f=3+(c&3),c>>>=2,d-=2}else if(S===17){for(O=w+3;d<O;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}c>>>=w,d-=w,z=0,f=3+(c&7),c>>>=3,d-=3}else{for(O=w+7;d<O;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}c>>>=w,d-=w,z=0,f=11+(c&127),c>>>=7,d-=7}if(r.have+f>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Br;break}for(;f--;)r.lens[r.have++]=z}}if(r.mode===Br)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Br;break}if(r.lenbits=9,X={bits:r.lenbits},B=yp(DI,r.lens,0,r.nlen,r.lencode,0,r.work,X),r.lenbits=X.bits,B){e.msg="invalid literal/lengths set",r.mode=Br;break}if(r.distbits=6,r.distcode=r.distdyn,X={bits:r.distbits},B=yp(MI,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,X),r.distbits=X.bits,B){e.msg="invalid distances set",r.mode=Br;break}if(r.mode=lv,t===ov)break e;case lv:r.mode=cv;case cv:if(o>=6&&l>=258){e.next_out=a,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=c,r.bits=d,Eie(e,p),a=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,n=e.input,o=e.avail_in,c=r.hold,d=r.bits,r.mode===Eo&&(r.back=-1);break}for(r.back=0;b=r.lencode[c&(1<<r.lenbits)-1],w=b>>>24,x=b>>>16&255,S=b&65535,!(w<=d);){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}if(x&&!(x&240)){for(E=w,T=x,W=S;b=r.lencode[W+((c&(1<<E+T)-1)>>E)],w=b>>>24,x=b>>>16&255,S=b&65535,!(E+w<=d);){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}c>>>=E,d-=E,r.back+=E}if(c>>>=w,d-=w,r.back+=w,r.length=S,x===0){r.mode=ZE;break}if(x&32){r.back=-1,r.mode=Eo;break}if(x&64){e.msg="invalid literal/length code",r.mode=Br;break}r.extra=x&15,r.mode=WE;case WE:if(r.extra){for(O=r.extra;d<O;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,d-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=KE;case KE:for(;b=r.distcode[c&(1<<r.distbits)-1],w=b>>>24,x=b>>>16&255,S=b&65535,!(w<=d);){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}if(!(x&240)){for(E=w,T=x,W=S;b=r.distcode[W+((c&(1<<E+T)-1)>>E)],w=b>>>24,x=b>>>16&255,S=b&65535,!(E+w<=d);){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}c>>>=E,d-=E,r.back+=E}if(c>>>=w,d-=w,r.back+=w,x&64){e.msg="invalid distance code",r.mode=Br;break}r.offset=S,r.extra=x&15,r.mode=GE;case GE:if(r.extra){for(O=r.extra;d<O;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,d-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Br;break}r.mode=YE;case YE:if(l===0)break e;if(f=p-l,r.offset>f){if(f=r.offset-f,f>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Br;break}f>r.wnext?(f-=r.wnext,y=r.wsize-f):y=r.wnext-f,f>r.length&&(f=r.length),v=r.window}else v=i,y=a-r.offset,f=r.length;f>l&&(f=l),l-=f,r.length-=f;do i[a++]=v[y++];while(--f);r.length===0&&(r.mode=cv);break;case ZE:if(l===0)break e;i[a++]=r.length,l--,r.mode=cv;break;case yw:if(r.wrap){for(;d<32;){if(o===0)break e;o--,c|=n[s++]<<d,d+=8}if(p-=l,e.total_out+=p,r.total+=p,r.wrap&4&&p&&(e.adler=r.check=r.flags?$n(r.check,i,p,a-p):sm(r.check,i,p,a-p)),p=l,r.wrap&4&&(r.flags?c:QE(c))!==r.check){e.msg="incorrect data check",r.mode=Br;break}c=0,d=0}r.mode=XE;case XE:if(r.wrap&&r.flags){for(;d<32;){if(o===0)break e;o--,c+=n[s++]<<d,d+=8}if(r.wrap&4&&c!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Br;break}c=0,d=0}r.mode=JE;case JE:B=Lie;break e;case Br:B=$I;break e;case qI:return BI;case UI:default:return Is}return e.next_out=a,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=c,r.bits=d,(r.wsize||p!==e.avail_out&&r.mode<Br&&(r.mode<yw||t!==TE))&&KI(e,e.output,e.next_out,p-e.avail_out),h-=e.avail_in,p-=e.avail_out,e.total_in+=h,e.total_out+=p,r.total+=p,r.wrap&4&&p&&(e.adler=r.check=r.flags?$n(r.check,i,p,e.next_out-p):sm(r.check,i,p,e.next_out-p)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Eo?128:0)+(r.mode===lv||r.mode===vw?256:0),(h===0&&p===0||t===TE)&&B===Pu&&(B=Fie),B},Vie=e=>{if(qu(e))return Is;let t=e.state;return t.window&&(t.window=null),e.state=null,Pu},Wie=(e,t)=>{if(qu(e))return Is;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,Pu):Is},Kie=(e,t)=>{const r=t.length;let n,i,s;return qu(e)||(n=e.state,n.wrap!==0&&n.mode!==sy)?Is:n.mode===sy&&(i=1,i=sm(i,t,r,0),i!==n.check)?$I:(s=KI(e,t,r,r),s?(n.mode=qI,BI):(n.havedict=1,Pu))};var Gie=HI,Yie=VI,Zie=zI,Xie=Uie,Jie=WI,Qie=Hie,ese=Vie,tse=Wie,rse=Kie,nse="pako inflate (from Nodeca project)",Po={inflateReset:Gie,inflateReset2:Yie,inflateResetKeep:Zie,inflateInit:Xie,inflateInit2:Jie,inflate:Qie,inflateEnd:ese,inflateGetHeader:tse,inflateSetDictionary:rse,inflateInfo:nse};function ise(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var sse=ise;const GI=Object.prototype.toString,{Z_NO_FLUSH:ase,Z_FINISH:ose,Z_OK:lm,Z_STREAM_END:xw,Z_NEED_DICT:_w,Z_STREAM_ERROR:lse,Z_DATA_ERROR:tC,Z_MEM_ERROR:cse}=Fm;function Mm(e){this.options=d1.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new II,this.strm.avail_out=0;let r=Po.inflateInit2(this.strm,t.windowBits);if(r!==lm)throw new Error(Of[r]);if(this.header=new sse,Po.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=om.string2buf(t.dictionary):GI.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Po.inflateSetDictionary(this.strm,t.dictionary),r!==lm)))throw new Error(Of[r])}Mm.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let s,a,o;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?ose:ase,GI.call(e)==="[object ArrayBuffer]"?r.input
vendor: 9,838 bytes, line 438
438=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),s=Po.inflate(r,a),s===_w&&i&&(s=Po.inflateSetDictionary(r,i),s===lm?s=Po.inflate(r,a):s===tC&&(s=_w));r.avail_in>0&&s===xw&&r.state.wrap>0&&e[r.next_in]!==0;)Po.inflateReset(r),s=Po.inflate(r,a);switch(s){case lse:case tC:case _w:case cse:return this.onEnd(s),this.ended=!0,!1}if(o=r.avail_out,r.next_out&&(r.avail_out===0||s===xw))if(this.options.to==="string"){let l=om.utf8border(r.output,r.next_out),c=r.next_out-l,d=om.buf2string(r.output,l);r.next_out=c,r.avail_out=n-c,c&&r.output.set(r.output.subarray(l,l+c),0),this.onData(d)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(s===lm&&o===0)){if(s===xw)return s=Po.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};Mm.prototype.onData=function(e){this.chunks.push(e)};Mm.prototype.onEnd=function(e){e===lm&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=d1.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Rk(e,t){const r=new Mm(t);if(r.push(e),r.err)throw r.msg||Of[r.err];return r.result}function use(e,t){return t=t||{},t.raw=!0,Rk(e,t)}var dse=Mm,fse=Rk,hse=use,pse=Rk,mse=Fm,gse={Inflate:dse,inflate:fse,inflateRaw:hse,ungzip:pse,constants:mse};const{Inflate:vse,inflate:yse,inflateRaw:Ule,ungzip:zle}=gse;var rC=vse,bse=yse;const YI=[];for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t&1?t=3988292384^t>>>1:t=t>>>1;YI[e]=t}const nC=4294967295;function wse(e,t,r){let n=e;for(let i=0;i<r;i++)n=YI[(n^t[i])&255]^n>>>8;return n}function xse(e,t){return(wse(nC,e,t)^nC)>>>0}function iC(e,t,r){const n=e.readUint32(),i=xse(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==n)throw new Error(`CRC mismatch for chunk ${r}. Expected ${n}, found ${i}`)}function ZI(e,t,r){for(let n=0;n<r;n++)t[n]=e[n]}function XI(e,t,r,n){let i=0;for(;i<n;i++)t[i]=e[i];for(;i<r;i++)t[i]=e[i]+t[i-n]&255}function JI(e,t,r,n){let i=0;if(r.length===0)for(;i<n;i++)t[i]=e[i];else for(;i<n;i++)t[i]=e[i]+r[i]&255}function QI(e,t,r,n,i){let s=0;if(r.length===0){for(;s<i;s++)t[s]=e[s];for(;s<n;s++)t[s]=e[s]+(t[s-i]>>1)&255}else{for(;s<i;s++)t[s]=e[s]+(r[s]>>1)&255;for(;s<n;s++)t[s]=e[s]+(t[s-i]+r[s]>>1)&255}}function eF(e,t,r,n,i){let s=0;if(r.length===0){for(;s<i;s++)t[s]=e[s];for(;s<n;s++)t[s]=e[s]+t[s-i]&255}else{for(;s<i;s++)t[s]=e[s]+r[s]&255;for(;s<n;s++)t[s]=e[s]+_se(t[s-i],r[s],r[s-i])&255}}function _se(e,t,r){const n=e+t-r,i=Math.abs(n-e),s=Math.abs(n-t),a=Math.abs(n-r);return i<=s&&i<=a?e:s<=a?t:r}function kse(e,t,r,n,i,s){switch(e){case 0:ZI(t,r,i);break;case 1:XI(t,r,i,s);break;case 2:JI(t,r,n,i);break;case 3:QI(t,r,n,i,s);break;case 4:eF(t,r,n,i,s);break;default:throw new Error(`Unsupported filter: ${e}`)}}const Sse=new Uint16Array([255]),Nse=new Uint8Array(Sse.buffer),Ese=Nse[0]===255;function Cse(e){const{data:t,width:r,height:n,channels:i,depth:s}=e,a=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],o=Math.ceil(s/8)*i,l=new Uint8Array(n*r*o);let c=0;for(let d=0;d<7;d++){const h=a[d],p=Math.ceil((r-h.x)/h.xStep),f=Math.ceil((n-h.y)/h.yStep);if(p<=0||f<=0)continue;const y=p*o,v=new Uint8Array(y);for(let b=0;b<f;b++){const w=t[c++],x=t.subarray(c,c+y);c+=y;const S=new Uint8Array(y);kse(w,x,S,v,y,o),v.set(S);for(let E=0;E<p;E++){const T=h.x+E*h.xStep,W=h.y+b*h.yStep;if(!(T>=r||W>=n))for(let z=0;z<o;z++)l[(W*r+T)*o+z]=S[E*o+z]}}}if(s===16){const d=new Uint16Array(l.buffer);if(Ese)for(let h=0;h<d.length;h++)d[h]=jse(d[h]);return d}else return l}function jse(e){return(e&255)<<8|e>>8&255}const Ase=new Uint16Array([255]),Tse=new Uint8Array(Ase.buffer),Pse=Tse[0]===255,Ose=new Uint8Array(0);function sC(e){const{data:t,width:r,height:n,channels:i,depth:s}=e,a=Math.ceil(s/8)*i,o=Math.ceil(s/8*i*r),l=new Uint8Array(n*o);let c=Ose,d=0,h,p;for(let f=0;f<n;f++){switch(h=t.subarray(d+1,d+1+o),p=l.subarray(f*o,(f+1)*o),t[d]){case 0:ZI(h,p,o);break;case 1:XI(h,p,o,a);break;case 2:JI(h,p,c,o);break;case 3:QI(h,p,c,o,a);break;case 4:eF(h,p,c,o,a);break;default:throw new Error(`Unsupported filter: ${t[d]}`)}c=p,d+=o+1}if(s===16){const f=new Uint16Array(l.buffer);if(Pse)for(let y=0;y<f.length;y++)f[y]=Rse(f[y]);return f}else return l}function Rse(e){return(e&255)<<8|e>>8&255}const Bv=Uint8Array.of(137,80,78,71,13,10,26,10);function aC(e){if(!Lse(e.readBytes(Bv.length)))throw new Error("wrong PNG signature")}function Lse(e){if(e.length<Bv.length)return!1;for(let t=0;t<Bv.length;t++)if(e[t]!==Bv[t])return!1;return!0}const Ise="tEXt",Fse=0,tF=new TextDecoder("latin1");function Dse(e){if($se(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const Mse=/^[\u0000-\u00FF]*$/;function $se(e){if(!Mse.test(e))throw new Error("invalid latin1 text")}function Bse(e,t,r){const n=rF(t);e[n]=qse(t,r-n.length-1)}function rF(e){for(e.mark();e.readByte()!==Fse;);const t=e.offset;e.reset();const r=tF.decode(e.readBytes(t-e.offset-1));return e.skip(1),Dse(r),r}function qse(e,t){return tF.decode(e.readBytes(t))}const ts={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},kw={UNKNOWN:-1,DEFLATE:0},oC={UNKNOWN:-1,ADAPTIVE:0},Sw={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},uv={NONE:0,BACKGROUND:1,PREVIOUS:2},Nw={SOURCE:0,OVER:1};class Use extends Ek{constructor(r,n={}){super(r);pr(this,"_checkCrc");pr(this,"_inflator");pr(this,"_png");pr(this,"_apng");pr(this,"_end");pr(this,"_hasPalette");pr(this,"_palette");pr(this,"_hasTransparency");pr(this,"_transparency");pr(this,"_compressionMethod");pr(this,"_filterMethod");pr(this,"_interlaceMethod");pr(this,"_colorType");pr(this,"_isAnimated");pr(this,"_numberOfFrames");pr(this,"_numberOfPlays");pr(this,"_frames");pr(this,"_writingDataChunks");const{checkCrc:i=!1}=n;this._checkCrc=i,this._inflator=new rC,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=kw.UNKNOWN,this._filterMethod=oC.UNKNOWN,this._interlaceMethod=Sw.UNKNOWN,this._colorType=ts.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(aC(this);!this._end;){const r=this.readUint32(),n=this.readChars(4);this.decodeChunk(r,n)}return this.decodeImage(),this._png}decodeApng(){for(aC(this);!this._end;){const r=this.readUint32(),n=this.readChars(4);this.decodeApngChunk(r,n)}return this.decodeApngImage(),this._apng}decodeChunk(r,n){const i=this.offset;switch(n){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(r);break;case"IDAT":this.decodeIDAT(r);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(r);break;case"iCCP":this.decodeiCCP(r);break;case Ise:Bse(this._png.text,this,r);break;case"pHYs":this.decodepHYs();break;default:this.skip(r);break}if(this.offset-i!==r)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?iC(this,r+4,n):this.skip(4)}decodeApngChunk(r,n){const i=this.offset;switch(n!=="fdAT"&&n!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),n){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(r);break;default:this.decodeChunk(r,n),this.offset=i+r;break}if(this.offset-i!==r)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?iC(this,r+4,n):this.skip(4)}decodeIHDR(){const r=this._png;r.width=this.readUint32(),r.height=this.readUint32(),r.depth=zse(this.readUint8());const n=this.readUint8();this._colorType=n;let i;switch(n){case ts.GREYSCALE:i=1;break;case ts.TRUECOLOUR:i=3;break;case ts.INDEXED_COLOUR:i=1;break;case ts.GREYSCALE_ALPHA:i=2;break;case ts.TRUECOLOUR_ALPHA:i=4;break;case ts.UNKNOWN:default:throw new Error(`Unknown color type: ${n}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==kw.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const r={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(r)}decodePLTE(r){if(r%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${r}`);const n=r/3;this._hasPalette=!0;const i=[];this._palette=i;for(let s=0;s<n;s++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(r){this._writingDataChunks=!0;const n=r,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(r)}decodeFDAT(r){this._writingDataChunks=!0;let n=r,i=this.offset+this.byteOffset;if(i+=4,n-=4,this._inflator.push(new Uint8Array(this.buffer,i,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(r)}decodetRNS(r){switch(this._colorType){case ts.GREYSCALE:case ts.TRUECOLOUR:{if(r%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${r}`);if(r/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alph
vendor: 5,528 bytes, line 438
438a values than there are pixels (${r/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(r/2);for(let n=0;n<r/2;n++)this._transparency[n]=this.readUint16();break}case ts.INDEXED_COLOUR:{if(r>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${r} vs ${this._palette.length})`);let n=0;for(;n<r;n++){const i=this.readByte();this._palette[n].push(i)}for(;n<this._palette.length;n++)this._palette[n].push(255);break}case ts.UNKNOWN:case ts.GREYSCALE_ALPHA:case ts.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(r){const n=rF(this),i=this.readUint8();if(i!==kw.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const s=this.readBytes(r-n.length-2);this._png.iccEmbeddedProfile={name:n,profile:bse(s)}}decodepHYs(){const r=this.readUint32(),n=this.readUint32(),i=this.readByte();this._png.resolution={x:r,y:n,unit:i}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let r=0;r<this._numberOfFrames;r++){const n={sequenceNumber:this._frames[r].sequenceNumber,delayNumber:this._frames[r].delayNumber,delayDenominator:this._frames[r].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},i=this._frames.at(r);if(i){if(i.data=sC({data:i.data,width:i.width,height:i.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),r===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)n.data=i.data;else{const s=this._apng.frames.at(r-1);this.disposeFrame(i,s,n),this.addFrameDataToCanvas(n,i)}this._apng.frames.push(n)}}return this._apng}disposeFrame(r,n,i){switch(r.disposeOp){case uv.NONE:break;case uv.BACKGROUND:for(let s=0;s<this._png.height;s++)for(let a=0;a<this._png.width;a++){const o=(s*r.width+a)*this._png.channels;for(let l=0;l<this._png.channels;l++)i.data[o+l]=0}break;case uv.PREVIOUS:i.data.set(n.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(r,n){const i=1<<this._png.depth,s=(a,o)=>{const l=((a+n.yOffset)*this._png.width+n.xOffset+o)*this._png.channels,c=(a*n.width+o)*this._png.channels;return{index:l,frameIndex:c}};switch(n.blendOp){case Nw.SOURCE:for(let a=0;a<n.height;a++)for(let o=0;o<n.width;o++){const{index:l,frameIndex:c}=s(a,o);for(let d=0;d<this._png.channels;d++)r.data[l+d]=n.data[c+d]}break;case Nw.OVER:for(let a=0;a<n.height;a++)for(let o=0;o<n.width;o++){const{index:l,frameIndex:c}=s(a,o);for(let d=0;d<this._png.channels;d++){const h=n.data[c+this._png.channels-1]/i,p=d%(this._png.channels-1)===0?1:n.data[c+d],f=Math.floor(h*p+(1-h)*r.data[l+d]);r.data[l+d]+=f}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var n;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const r=this._isAnimated?((n=this._frames)==null?void 0:n.at(0)).data:this._inflator.result;if(this._filterMethod!==oC.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Sw.NO_INTERLACE)this._png.data=sC({data:r,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Sw.ADAM7)this._png.data=Cse({data:r,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const r=this._inflator.result,n=this._frames.at(-1);n?n.data=r:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:uv.NONE,blendOp:Nw.SOURCE,data:r}),this._inflator=new rC,this._writingDataChunks=!1}}function zse(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var lC;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(lC||(lC={}));function Hse(e,t){return new Use(e,t).decode()}var Tt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Ew(){Tt.console&&typeof Tt.console.log=="function"&&Tt.console.log.apply(Tt.console,arguments)}var kr={log:Ew,warn:function(e){Tt.console&&(typeof Tt.console.warn=="function"?Tt.console.warn.apply(Tt.console,arguments):Ew.call(null,arguments))},error:function(e){Tt.console&&(typeof Tt.console.error=="function"?Tt.console.error.apply(Tt.console,arguments):Ew(e))}};function Cw(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){Wc(n.response,t,r)},n.onerror=function(){kr.error("could not download file")},n.send()}function cC(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function dv(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");
vendor: 3,407 bytes, lines 438-443
438t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Wc=Tt.saveAs||((typeof window>"u"?"undefined":vr(window))!=="object"||window!==Tt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=Tt.URL||Tt.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?cC(i.href)?Cw(e,t,r):dv(i,i.target="_blank"):dv(i)):(i.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){dv(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(cC(e))Cw(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){dv(n)})}else navigator.msSaveOrOpenBlob(function(i,s){return s===void 0?s={autoBom:!1}:vr(s)!=="object"&&(kr.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(e,r),t)}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return Cw(e,t,r);var i=e.type==="application/octet-stream",s=/constructor/i.test(Tt.HTMLElement)||Tt.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||i&&s)&&(typeof FileReader>"u"?"undefined":vr(FileReader))==="object"){var o=new FileReader;o.onloadend=function(){var d=o.result;d=a?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=d:location=d,n=null},o.readAsDataURL(e)}else{var l=Tt.URL||Tt.webkitURL,c=l.createObjectURL(e);n?n.location=c:location.href=c,n=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/**
439 * A class to parse color values
440 * @author Stoyan Stefanov <[email protected]>
441 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
442 * @license Use it if you like it
443 */function nF(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
4430",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,s=r[n].process,a=i.exec(e);a&&(t=s(a),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var o=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return o.length==1&&(o="0"+o),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+o+l+c}}var qv=Tt.atob.bind(Tt),uC=Tt.btoa.bind(Tt);/**
444 * @license
445 * Joseph Myers does not specify a particular license for his work.
446 *
447 * Author: Joseph Myers
448 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
449 *
450 * Modified by: Owen Leong
451 */function jw(e,t){var r=e[0],n=e[1],i=e[2],s=e[3];r=oi(r,n,i,s,t[0],7,-680876936),s=oi(s,r,n,i,t[1],12,-389564586),i=oi(i,s,r,n,t[2],17,606105819),n=oi(n,i,s,r,t[3],22,-1044525330),r=oi(r,n,i,s,t[4],7,-176418897),s=oi(s,r,n,i,t[5],12,1200080426),i=oi(i,s,r,n,t[6],17,-1473231341),n=oi(n,i,s,r,t[7],22,-45705983),r=oi(r,n,i,s,t[8],7,1770035416),s=oi(s,r,n,i,t[9],12,-1958414417),i=oi(i,s,r,n,t[10],17,-42063),n=oi(n,i,s,r,t[11],22,-1990404162),r=oi(r,n,i,s,t[12],7,1804603682),s=oi(s,r,n,i,t[13],12,-40341101),i=oi(i,s,r,n,t[14],17,-1502002290),r=li(r,n=oi(n,i,s,r,t[15],22,1236535329),i,s,t[1],5,-165796510),s=li(s,r,n,i,t[6],9,-1069501632),i=li(i,s,r,n,t[11],14,643717713),n=l
vendor: 9,020 bytes, lines 451-468
451i(n,i,s,r,t[0],20,-373897302),r=li(r,n,i,s,t[5],5,-701558691),s=li(s,r,n,i,t[10],9,38016083),i=li(i,s,r,n,t[15],14,-660478335),n=li(n,i,s,r,t[4],20,-405537848),r=li(r,n,i,s,t[9],5,568446438),s=li(s,r,n,i,t[14],9,-1019803690),i=li(i,s,r,n,t[3],14,-187363961),n=li(n,i,s,r,t[8],20,1163531501),r=li(r,n,i,s,t[13],5,-1444681467),s=li(s,r,n,i,t[2],9,-51403784),i=li(i,s,r,n,t[7],14,1735328473),r=ci(r,n=li(n,i,s,r,t[12],20,-1926607734),i,s,t[5],4,-378558),s=ci(s,r,n,i,t[8],11,-2022574463),i=ci(i,s,r,n,t[11],16,1839030562),n=ci(n,i,s,r,t[14],23,-35309556),r=ci(r,n,i,s,t[1],4,-1530992060),s=ci(s,r,n,i,t[4],11,1272893353),i=ci(i,s,r,n,t[7],16,-155497632),n=ci(n,i,s,r,t[10],23,-1094730640),r=ci(r,n,i,s,t[13],4,681279174),s=ci(s,r,n,i,t[0],11,-358537222),i=ci(i,s,r,n,t[3],16,-722521979),n=ci(n,i,s,r,t[6],23,76029189),r=ci(r,n,i,s,t[9],4,-640364487),s=ci(s,r,n,i,t[12],11,-421815835),i=ci(i,s,r,n,t[15],16,530742520),r=ui(r,n=ci(n,i,s,r,t[2],23,-995338651),i,s,t[0],6,-198630844),s=ui(s,r,n,i,t[7],10,1126891415),i=ui(i,s,r,n,t[14],15,-1416354905),n=ui(n,i,s,r,t[5],21,-57434055),r=ui(r,n,i,s,t[12],6,1700485571),s=ui(s,r,n,i,t[3],10,-1894986606),i=ui(i,s,r,n,t[10],15,-1051523),n=ui(n,i,s,r,t[1],21,-2054922799),r=ui(r,n,i,s,t[8],6,1873313359),s=ui(s,r,n,i,t[15],10,-30611744),i=ui(i,s,r,n,t[6],15,-1560198380),n=ui(n,i,s,r,t[13],21,1309151649),r=ui(r,n,i,s,t[4],6,-145523070),s=ui(s,r,n,i,t[11],10,-1120210379),i=ui(i,s,r,n,t[2],15,718787259),n=ui(n,i,s,r,t[9],21,-343485551),e[0]=Ml(r,e[0]),e[1]=Ml(n,e[1]),e[2]=Ml(i,e[2]),e[3]=Ml(s,e[3])}function h1(e,t,r,n,i,s){return t=Ml(Ml(t,e),Ml(n,s)),Ml(t<<i|t>>>32-i,r)}function oi(e,t,r,n,i,s,a){return h1(t&r|~t&n,e,t,i,s,a)}function li(e,t,r,n,i,s,a){return h1(t&n|r&~n,e,t,i,s,a)}function ci(e,t,r,n,i,s,a){return h1(t^r^n,e,t,i,s,a)}function ui(e,t,r,n,i,s,a){return h1(r^(t|~n),e,t,i,s,a)}function iF(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)jw(n,Vse(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(jw(n,i),t=0;t<16;t++)i[t]=0;return i[14]=8*r,jw(n,i),n}function Vse(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}var dC="0123456789abcdef".split("");function Wse(e){for(var t="",r=0;r<4;r++)t+=dC[e>>8*r+4&15]+dC[e>>8*r&15];return t}function Kse(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Gx(e){return iF(e).map(Kse).join("")}var Gse=function(e){for(var t=0;t<e.length;t++)e[t]=Wse(e[t]);return e.join("")}(iF("hello"))!="5d41402abc4b2a76b9719d911017c592";function Ml(e,t){if(Gse){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&4294967295}/**
452 * @license
453 * FPDF is released under a permissive license: there is no usage restriction.
454 * You may embed it freely in your application (commercial or not), with or
455 * without modifications.
456 *
457 * Reference: http://www.fpdf.org/en/script/script37.php
458 */function Yx(e,t){var r,n,i,s;if(e!==r){for(var a=(i=e,s=1+(256/e.length|0),new Array(s+1).join(i)),o=[],l=0;l<256;l++)o[l]=l;var c=0;for(l=0;l<256;l++){var d=o[l];c=(c+d+a.charCodeAt(l))%256,o[l]=o[c],o[c]=d}r=e,n=o}else o=n;var h=t.length,p=0,f=0,y="";for(l=0;l<h;l++)f=(f+(d=o[p=(p+1)%256]))%256,o[p]=o[f],o[f]=d,a=o[(o[p]+o[f])%256],y+=String.fromCharCode(t.charCodeAt(l)^a);return y}/**
459 * @license
460 * Licensed under the MIT License.
461 * http://opensource.org/licenses/mit-license
462 * Author: Owen Leong (@owenl131)
463 * Date: 15 Oct 2020
464 * References:
465 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
466 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
467 * http://www.fpdf.org/en/script/script37.php
468 */var fC={print:4,modify:8,copy:16,"annot-forms":32};function Cd(e,t,r,n){this.v=1,this.r=2;var i=192;e.forEach(function(o){if(fC.perm!==void 0)throw new Error("Invalid permission: "+o);i+=fC[o]}),this.padding="(¿N^NuŠAd\0NVÿú�\b..\0¶Ðh>€/\f©þdSiz";var s=(t+this.padding).substr(0,32),a=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,a),this.P=-(1+(255^i)),this.encryptionKey=Gx(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=Yx(this.encryptionKey,this.padding)}function jd(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n);t+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?"#"+("0"+i.toString(16)).slice(-2):e[n]}return t}function hC(e){if(vr(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(r,n,i){if(i=i||!1,typeof r!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(r)||(t[r]={});var s=Math.random().toString(35);return t[r][s]=[n,!!i],s},this.unsubscribe=function(r){for(var n in t)if(t[n][r])return delete t[n][r],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var s in t[r]){var a=t[r][s];try{a[0].apply(e,n)}catch(o){Tt.console&&kr.error("jsPDF PubSub Error",o.message,o)}a[1]&&i.push(s)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function ay(e){if(!(this instanceof ay))return new ay(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function sF(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Yc(e,t,r,n,i){if(!(this instanceof Yc))return new Yc(e,t,r,n,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=r,sF.call(this,n,i)}function qd(e,t,r,n,i){if(!(this instanceof qd))return new qd(e,t,r,n,i);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,sF.call(this,n,i)}function kt(e){var t,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],s=arguments[3],a=[],o=1,l=16,c="S",d=null;vr(e=e||{})==="object"&&(r=e.orientation,n=e.unit||n,i=e.format||i,s=e.compress||e.compressPdf||s,(d=e.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),o=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),a=e.filters||(s===!0?["FlateEncode"]:a),n=n||"mm",r=(""+(r||"P")).toLowerCase();var h=e.putOnlyUsedFonts||!1,p={},f={internal:{},__private__:{}};f.__private__.PubSub=hC;var y="1.3",v=f.__private__.getPdfVersion=function(){return y};f.__private__.setPdfVersion=function(k){y=k};var b={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return b};var w=f.__private__.getPageFormat=function(k){return b[k]};i=i||"a4";var x="compat",S="advanced",E=x;function T(){this.saveGraphicsState(),Z(new it(vt,0,0,-vt,0,Nc()*vt).toString()+" cm"),this.setFontSize(this.getFontSize()/vt),c="n",E=S}function W(){this.restoreGraphicsState(),c="S",E=x}var z=f.__private__.combineFontStyleAndFontWeight=function(k,L){if(k=="bold"&&L=="normal"||k=="bold"&&L==400||k=="normal"&&L=="italic"||k=="bold"&&L=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return L&&(k=L==400||L==="normal"?k==="italic"?"italic":"normal":L!=700&&L!=="bold"||k!=="normal"?(L==700?"bold":L)+""+k:"bold"),k};f.advancedAPI=function(k){var L=E===x;return L&&T.call(this),typeof k!="function"||(k(this),L&&W.call(this)),this},f.compatAPI=function(k){var L=E===S;return L&&W.call(this),typeof k!="function"||(k(this),L&&T.call(this)),this},f.isAdvancedAPI=function(){return E===S};var B,P=function(k){if(E!==S)throw new Error(k+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},X=f.roundToPrecision=f.__private__.roundToPrecision=function(k,L){var ae=t||L;if(isNaN(k)||isNaN(ae))throw new Error("Invalid argument passed to 
468jsPDF.roundToPrecision");return k.toFixed(ae).replace(/0+$/,"")};B=f.hpf=f.__private__.hpf=typeof l=="number"?function(k){if(isNaN(k))throw new Error("Invalid argument passed to jsPDF.hpf");return X(k,l)}:l==="smart"?function(k){if(isNaN(k))throw new Error("Invalid argument passed to jsPDF.hpf");return X(k,k>-1&&k<1?16:5)}:function(k){if(isNaN(k))throw new Error("Invalid argument passed to jsPDF.hpf");return X(k,16)};var O=f.f2=f.__private__.f2=function(k){if(isNaN(k))throw new Error("Invalid argument passed to jsPDF.f2");return X(k,2)},A=f.__private__.f3=function(k){if(isNaN(k))throw new Error("Invalid argument passed to jsPDF.f3");return X(k,3)},K=f.scale=f.__private__.scale=function(k){if(isNaN(k))throw new Error("Invalid argument passed to jsPDF.scale");return E===x?k*vt:E===S?k:void 0},R=function(k){return K(function(L){return E===x?Nc()-L:E===S?L:void 0}(k))};f.__private__.setPrecision=f.setPrecision=function(k){typeof parseInt(k,10)=="number"&&(t=parseInt(k,10))};var le,oe="00000000000000000000000000000000",se=f.__private__.getFileId=function(){return oe},F=f.__private__.setFileId=function(k){return oe=k!==void 0&&/^[a-fA-F0-9]{32}$/.test(k)?k.toUpperCase():oe.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(jn=new Cd(d.userPermissions,d.userPassword,d.ownerPassword,oe)),oe};f.setFileId=function(k){return F(k),this},f.getFileId=function(){return se()};var D=f.__private__.convertDateToPDFDate=function(k){var L=k.getTimezoneOffset(),ae=L<0?"+":"-",fe=Math.floor(Math.abs(L/60)),ye=Math.abs(L%60),Ie=[ae,H(fe),"'",H(ye),"'"].join("");return["D:",k.getFullYear(),H(k.getMonth()+1),H(k.getDate()),H(k.getHours()),H(k.getMinutes()),H(k.getSeconds()),Ie].join("")},$=f.__private__.convertPDFDateToDate=function(k){var L=parseInt(k.substr(2,4),10),ae=parseInt(k.substr(6,2),10)-1,fe=parseInt(k.substr(8,2),10),ye=parseInt(k.substr(10,2),10),Ie=parseInt(k.substr(12,2),10),$e=parseInt(k.substr(14,2),10);return new Date(L,ae,fe,ye,Ie,$e,0)},M=f.__private__.setCreationDate=function(k){var L;if(k===void 0&&(k=new Date),k instanceof Date)L=D(k);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(k))throw new Error("Invalid argument passed to jsPDF.setCreationDate");L=k}return le=L},j=f.__private__.getCreationDate=function(k){var L=le;return k==="jsDate"&&(L=$(le)),L};f.setCreationDate=function(k){return M(k),this},f.getCreationDate=function(k){return j(k)};var U,H=f.__private__.padd2=function(k){return("0"+parseInt(k)).slice(-2)},re=f.__private__.padd2Hex=function(k){return("00"+(k=k.toString())).substr(k.length)},te=0,Q=[],ce=[],de=0,he=[],we=[],ve=!1,Le=ce;f.__private__.setCustomOutputDestination=function(k){ve=!0,Le=k};var je=function(k){ve||(Le=k)};f.__private__.resetCustomOutputDestination=function(){ve=!1,Le=ce};var Z=f.__private__.out=function(k){return k=k.toString(),de+=k.length+1,Le.push(k),Le},Pe=f.__private__.write=function(k){return Z(arguments.length===1?k.toString():Array.prototype.join.call(arguments," "))},et=f.__private__.getArrayBuffer=function(k){for(var L=k.length,ae=new ArrayBuffer(L),fe=new Uint8Array(ae);L--;)fe[L]=k.charCodeAt(L);return ae},Ne=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return Ne};var Ce=e.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(k){return Ce=E===S?k/vt:k,this};var ee,ue=f.__private__.getFontSize=f.getFontSize=function(){return E===x?Ce:Ce*vt},me=e.R2L||!1;f.__private__.setR2L=f.setR2L=function(k){return me=k,this},f.__private__.getR2L=f.getR2L=function(){return me};
vendor: 17,838 bytes, lines 468-472
468var Ee,De=f.__private__.setZoomMode=function(k){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(k))ee=k;else if(isNaN(k)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(k)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+k+'" is not recognized.');ee=k}else ee=parseInt(k,10)};f.__private__.getZoomMode=function(){return ee};var _e,Oe=f.__private__.setPageMode=function(k){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(k)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+k+'" is not recognized.');Ee=k};f.__private__.getPageMode=function(){return Ee};var Ze=f.__private__.setLayoutMode=function(k){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(k)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+k+'" is not recognized.');_e=k};f.__private__.getLayoutMode=function(){return _e},f.__private__.setDisplayMode=f.setDisplayMode=function(k,L,ae){return De(k),Ze(L),Oe(ae),this};var Ke={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(k){if(Object.keys(Ke).indexOf(k)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Ke[k]},f.__private__.getDocumentProperties=function(){return Ke},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(k){for(var L in Ke)Ke.hasOwnProperty(L)&&k[L]&&(Ke[L]=k[L]);return this},f.__private__.setDocumentProperty=function(k,L){if(Object.keys(Ke).indexOf(k)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Ke[k]=L};var ze,vt,Xe,rr,be,Ae={},Qe={},ut=[],tt={},jt={},wt={},St={},dr=null,Lt=0,ft=[],Qt=new hC(f),G=e.hotfixes||[],Je={},Ut={},Tr=[],it=function k(L,ae,fe,ye,Ie,$e){if(!(this instanceof k))return new k(L,ae,fe,ye,Ie,$e);isNaN(L)&&(L=1),isNaN(ae)&&(ae=0),isNaN(fe)&&(fe=0),isNaN(ye)&&(ye=1),isNaN(Ie)&&(Ie=0),isNaN($e)&&($e=0),this._matrix=[L,ae,fe,ye,Ie,$e]};Object.defineProperty(it.prototype,"sx",{get:function(){return this._matrix[0]},set:function(k){this._matrix[0]=k}}),Object.defineProperty(it.prototype,"shy",{get:function(){return this._matrix[1]},set:function(k){this._matrix[1]=k}}),Object.defineProperty(it.prototype,"shx",{get:function(){return this._matrix[2]},set:function(k){this._matrix[2]=k}}),Object.defineProperty(it.prototype,"sy",{get:function(){return this._matrix[3]},set:function(k){this._matrix[3]=k}}),Object.defineProperty(it.prototype,"tx",{get:function(){return this._matrix[4]},set:function(k){this._matrix[4]=k}}),Object.defineProperty(it.prototype,"ty",{get:function(){return this._matrix[5]},set:function(k){this._matrix[5]=k}}),Object.defineProperty(it.prototype,"a",{get:function(){return this._matrix[0]},set:function(k){this._matrix[0]=k}}),Object.defineProperty(it.prototype,"b",{get:function(){return this._matrix[1]},set:function(k){this._matrix[1]=k}}),Object.defineProperty(it.prototype,"c",{get:function(){return this._matrix[2]},set:function(k){this._matrix[2]=k}}),Object.defineProperty(it.prototype,"d",{get:function(){return this._matrix[3]},set:function(k){this._matrix[3]=k}}),Object.defineProperty(it.prototype,"e",{get:function(){return this._matrix[4]},set:function(k){this._matrix[4]=k}}),Object.defineProperty(it.prototype,"f",{get:function(){return this._matrix[5]},set:function(k){this._matrix[5]=k}}),Object.defineProperty(it.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(it.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(it.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(it.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),it.prototype.join=function(k){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(B).join(k)},it.prototype.multiply=function(k){var L=k.sx*this.sx+k.shy*this.shx,ae=k.sx*this.shy+k.shy*this.sy,fe=k.shx*this.sx+k.sy*this.shx,ye=k.shx*this.shy+k.sy*this.sy,Ie=k.tx*this.sx+k.ty*this.shx+this.tx,$e=k.tx*this.shy+k.ty*this.sy+this.ty;return new it(L,ae,fe,ye,Ie,$e)},it.prototype.decompose=function(){var k=this.sx,L=this.shy,ae=this.shx,fe=this.sy,ye=this.tx,Ie=this.ty,$e=Math.sqrt(k*k+L*L),ct=(k/=$e)*ae+(L/=$e)*fe;ae-=k*ct,fe-=L*ct;var xt=Math.sqrt(ae*ae+fe*fe);return ct/=xt,k*(fe/=xt)<L*(ae/=xt)&&(k=-k,L=-L,ct=-ct,$e=-$e),{scale:new it($e,0,0,xt,0,0),translate:new it(1,0,0,1,ye,Ie),rotate:new it(k,L,-L,k,0,0),skew:new it(1,0,ct,1,0,0)}},it.prototype.toString=function(k){return this.join(" ")},it.prototype.inversed=function(){var k=this.sx,L=this.shy,ae=this.shx,fe=this.sy,ye=this.tx,Ie=this.ty,$e=1/(k*fe-L*ae),ct=fe*$e,xt=-L*$e,Pt=-ae*$e,zt=k*$e;return new it(ct,xt,Pt,zt,-ct*ye-Pt*Ie,-xt*ye-zt*Ie)},it.prototype.applyToPoint=function(k){var L=k.x*this.sx+k.y*this.shx+this.tx,ae=k.x*this.shy+k.y*this.sy+this.ty;return new lo(L,ae)},it.prototype.applyToRectangle=function(k){var L=this.applyToPoint(k),ae=this.applyToPoint(new lo(k.x+k.w,k.y+k.h));return new sh(L.x,L.y,ae.x-L.x,ae.y-L.y)},it.prototype.clone=function(){var k=this.sx,L=this.shy,ae=this.shx,fe=this.sy,ye=this.tx,Ie=this.ty;return new it(k,L,ae,fe,ye,Ie)},f.Matrix=it;var sn=f.matrixMult=function(k,L){return L.multiply(k)},bn=new it(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=bn;var br=function(k,L){if(!jt[k]){var ae=(L instanceof Yc?"Sh":"P")+(Object.keys(tt).length+1).toString(10);L.id=ae,jt[k]=ae,tt[ae]=L,Qt.publish("addPattern",L)}};f.ShadingPattern=Yc,f.TilingPattern=qd,f.addShadingPattern=function(k,L){return P("addShadingPattern()"),br(k,L),this},f.beginTilingPattern=function(k){P("beginTilingPattern()"),ah(k.boundingBox[0],k.boundingBox[1],k.boundingBox[2]-k.boundingBox[0],k.boundingBox[3]-k.boundingBox[1],k.matrix)},f.endTilingPattern=function(k,L){P("endTilingPattern()"),L.stream=we[U].join(`
469`),br(k,L),Qt.publish("endTilingPattern",L),Tr.pop().restore()};var Dr,Pr=f.__private__.newObject=function(){var k=Mr();return Gr(k,!0),k},Mr=f.__private__.newObjectDeferred=function(){return te++,Q[te]=function(){return de},te},Gr=function(k,L){return L=typeof L=="boolean"&&L,Q[k]=de,L&&Z(k+" 0 obj"),k},yc=f.__private__.newAdditionalObject=function(){var k={objId:Mr(),content:""};return he.push(k),k},Ko=Mr(),Ms=Mr(),wa=f.__private__.decodeColorString=function(k){var L=k.split(" ");if(L.length!==2||L[1]!=="g"&&L[1]!=="G")L.length!==5||L[4]!=="k"&&L[4]!=="K"||(L=[(1-L[0])*(1-L[3]),(1-L[1])*(1-L[3]),(1-L[2])*(1-L[3]),"r"]);else{var ae=parseFloat(L[0]);L=[ae,ae,ae,"r"]}for(var fe="#",ye=0;ye<3;ye++)fe+=("0"+Math.floor(255*parseFloat(L[ye])).toString(16)).slice(-2);return fe},$s=f.__private__.encodeColorString=function(k){var L;typeof k=="string"&&(k={ch1:k});var ae=k.ch1,fe=k.ch2,ye=k.ch3,Ie=k.ch4,$e=k.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ae=="string"&&ae.charAt(0)!=="#"){var ct=new nF(ae);if(ct.ok)ae=ct.toHex();else if(!/^\d*\.?\d*$/.test(ae))throw new Error('Invalid color "'+ae+'" passed to jsPDF.encodeColorString.')}if(typeof ae=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ae)&&(ae="#"+ae[1]+ae[1]+ae[2]+ae[2]+ae[3]+ae[3]),typeof ae=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ae)){var xt=parseInt(ae.substr(1),16);ae=xt>>16&255,fe=xt>>8&255,ye=255&xt}if(fe===void 0||Ie===void 0&&ae===fe&&fe===ye)L=typeof ae=="string"?ae+" "+$e[0]:k.precision===2?O(ae/255)+" "+$e[0]:A(ae/255)+" "+$e[0];else if(Ie===void 0||vr(Ie)==="object"){if(Ie&&!isNaN(Ie.a)&&Ie.a===0)return["1.","1.","1.",$e[1]].join(" ");L=typeof ae=="string"?[ae,fe,ye,$e[1]].join(" "):k.precision===2?[O(ae/255),O(fe/255),O(ye/255),$e[1]].join(" "):[A(ae/255),A(fe/255),A(ye/255),$e[1]].join(" ")}else L=typeof ae=="string"?[ae,fe,ye,Ie,$e[2]].join(" "):k.precision===2?[O(ae),O(fe),O(ye),O(Ie),$e[2]].join(" "):[A(ae),A(fe),A(ye),A(Ie),$e[2]].join(" ");return L},Bs=f.__private__.getFilters=function(){return a},vs=f.__private__.putStream=function(k){var L=(k=k||{}).data||"",ae=k.filters||Bs(),fe=k.alreadyAppliedFilters||[],ye=k.addLength1||!1,Ie=L.length,$e=k.objectId,ct=function(An){return An};if(d!==null&&$e===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&(ct=jn.encryptor($e,0));var xt={};ae===!0&&(ae=["FlateEncode"]);var Pt=k.additionalKeyValues||[],zt=(xt=kt.API.processDataByFilters!==void 0?kt.API.processDataByFilters(L,ae):{data:L,reverseChain:[]}).reverseChain+(Array.isArray(fe)?fe.join(" "):fe.toString());if(xt.data.length!==0&&(Pt.push({key:"Length",value:xt.data.length}),ye===!0&&Pt.push({key:"Length1",value:Ie})),zt.length!=0)if(zt.split("/").length-1==1)Pt.push({key:"Filter",value:zt});else{Pt.push({key:"Filter",value:"["+zt+"]"});for(var nr=0;nr<Pt.length;nr+=1)if(Pt[nr].key==="DecodeParms"){for(var Hr=[],xn=0;xn<xt.reverseChain.split("/").length-1;xn+=1)Hr.push("null");Hr.push(Pt[nr].value),Pt[nr].value="["+Hr.join(" ")+"]"}}Z("<<");for(var Sr=0;Sr<Pt.length;Sr++)Z("/"+Pt[Sr].key+" "+Pt[Sr].value);Z(">>"),xt.data.length!==0&&(Z("stream"),Z(ct(xt.data)),Z("endstream"))},bc=f.__private__.putPage=function(k){var L=k.number,ae=k.data,fe=k.objId,ye=k.contentsObjId;Gr(fe,!0),Z("<</Type /Page"),Z("/Parent "+k.rootDictionaryObjId+" 0 R"),Z("/Resources "+k.resourceDictionaryObjId+" 0 R"),Z("/MediaBox ["+parseFloat(B(k.mediaBox.bottomLeftX))+" "+parseFloat(B(k.mediaBox.bottomLeftY))+" "+B(k.mediaBox.topRightX)+" "+B(k.mediaBox.topRightY)+"]"),k.cropBox!==null&&Z("/CropBox ["+B(k.cropBox.bottomLeftX)+" "+B(k.cropBox.bottomLeftY)+" "+B(k.cropBox.topRightX)+" "+B(k.cropBox.topRightY)+"]"),k.bleedBox!==null&&Z("/BleedBox ["+B(k.bleedBox.bottomLeftX)+" "+B(k.bleedBox.bottomLeftY)+" "+B(k.bleedBox.topRightX)+" "+B(k.bleedBox.topRightY)+"]"),k.trimBox!==null&&Z("/TrimBox ["+B(k.trimBox.bottomLeftX)+" "+B(k.trimBox.bottomLeftY)+" "+B(k.trimBox.topRightX)+" "+B(k.trimBox.topRightY)+"]"),k.artBox!==null&&Z("/ArtBox ["+B(k.artBox.bottomLeftX)+" "+B(k.artBox.bottomLeftY)+" "+B(k.artBox.topRightX)+" "+B(k.artBox.topRightY)+"]"),typeof k.userUnit=="number"&&k.userUnit!==1&&Z("/UserUnit "+k.userUnit),Qt.publish("putPage",{objId:fe,pageContext:ft[L],pageNumber:L,page:ae}),Z("/Contents "+ye+" 0 R"),Z(">>"),Z("endobj");var Ie=ae.join(`
470`);return E===S&&(Ie+=`
471Q`),Gr(ye,!0),vs({data:Ie,filters:Bs(),objectId:ye}),Z("endobj"),fe},xa=f.__private__.putPages=function(){var k,L,ae=[];for(k=1;k<=Lt;k++)ft[k].objId=Mr(),ft[k].contentsObjId=Mr();for(k=1;k<=Lt;k++)ae.push(bc({number:k,data:we[k],objId:ft[k].objId,contentsObjId:ft[k].contentsObjId,mediaBox:ft[k].mediaBox,cropBox:ft[k].cropBox,bleedBox:ft[k].bleedBox,trimBox:ft[k].trimBox,artBox:ft[k].artBox,userUnit:ft[k].userUnit,rootDictionaryObjId:Ko,resourceDictionaryObjId:Ms}));Gr(Ko,!0),Z("<</Type /Pages");var fe="/Kids [";for(L=0;L<Lt;L++)fe+=ae[L]+" 0 R ";Z(fe+"]"),Z("/Count "+Lt),Z(">>"),Z("endobj"),Qt.publish("postPutPages")},wc=function(k){Qt.publish("putFont",{font:k,out:Z,newObject:Pr,putStream:vs}),k.isAlreadyPutted!==!0&&(k.objectNumber=Pr(),Z("<<"),Z("/Type /Font"),Z("/BaseFont /"+jd(k.postScriptName)),Z("/Subtype /Type1"),typeof k.encoding=="string"&&Z("/Encoding /"+k.encoding),Z("/FirstChar 32"),Z("/LastChar 255"),Z(">>"),Z("endobj"))},zu=function(k){k.objectNumber=Pr();var L=[];L.push({key:"Type",value:"/XObject"}),L.push({key:"Subtype",value:"/Form"}),L.push({key:"BBox",value:"["+[B(k.x),B(k.y),B(k.x+k.width),B(k.y+k.height)].join(" ")+"]"}),L.push({key:"Matrix",value:"["+k.matrix.toString()+"]"});var ae=k.pages[1].join(`
472`);vs({data:ae,additionalKeyValues:L,objectId:k.objectNumber}),Z("endobj")},Hu=function(k,L){L||(L=21);var ae=Pr(),fe=function($e,ct){var xt,Pt=[],zt=1/(ct-1);for(xt=0;xt<1;xt+=zt)Pt.push(xt);if(Pt.push(1),$e[0].offset!=0){var nr={offset:0,color:$e[0].color};$e.unshift(nr)}if($e[$e.length-1].offset!=1){var Hr={offset:1,color:$e[$e.length-1].color};$e.push(Hr)}for(var xn="",Sr=0,An=0;An<Pt.length;An++){for(xt=Pt[An];xt>$e[Sr+1].offset;)Sr++;var _n=$e[Sr].offset,Hn=(xt-_n)/($e[Sr+1].offset-_n),fo=$e[Sr].color,Us=$e[Sr+1].color;xn+=re(Math.round((1-Hn)*fo[0]+Hn*Us[0]).toString(16))+re(Math.round((1-Hn)*fo[1]+Hn*Us[1]).toString(16))+re(Math.round((1-Hn)*fo[2]+Hn*Us[2]).toString(16))}return xn.trim()}(k.colors,L),ye=[];ye.push({key:"FunctionType",value:"0"}),ye.push({key:"Domain",value:"[0.0 1.0]"}),ye.push({key:"Size",value:"["+L+"]"}),ye.push({key:"BitsPerSample",value:"8"}),ye.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ye.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),vs({data:fe,additionalKeyValues:ye,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ae}),Z("endobj"),k.objectNumber=Pr(),Z("<< /ShadingType "+k.type),Z("/ColorSpace /DeviceRGB");var Ie="/Coords ["+B(parseFloat(k.coords[0]))+" "+B(parseFloat(k.coords[1]))+" ";k.type===2?Ie+=B(parseFloat(k.coords[2]))+" "+B(parseFloat(k.coords[3])):Ie+=B(parseFloat(k.coords[2]))+" "+B(parseFloat(k.coords[3]))+" "+B(parseFloat(k.coords[4]))+" "+B(parseFloat(k.coords[5])),Z(Ie+="]"),k.matrix&&Z("/Matrix ["+k.matrix.toString()+"]"),Z("/Function "+ae+" 0 R"),Z("/Extend [true true]"),Z(">>"),Z("endobj")},Vu=function(k,L){var ae=Mr(),fe=Pr();L.push({resourcesOid:ae,objectOid:fe}),k.objectNumber=fe;var ye=[];ye.push({key:"Type",value:"/Pattern"}),ye.push({key:"PatternType",value:"1"}),ye.push({key:"PaintType",value:"1"}),ye.push({key:"TilingType",value:"1"}),ye.push({key:"BBox",value:"["+k.boundingBox.map(B).join(" ")+"]"}),ye.push({key:"XStep",value:B(k.xStep)}),ye.push({key:"YStep",value:B(k.yStep)}),ye.push({key:"Resources",value:ae+" 0 R"}),k.matrix&&ye.push({key:"Matrix",value:"["+k.matrix.toString()+"]"}),vs({data:k.stream,additionalKeyValues:ye,objectId:k.objectNumber}),Z("endobj")},m1=function(k){for(var L in k.objectNumber=Pr(),Z("<<"),k)switch(L){case"opacity":Z("/ca "+O(k[L]));break;case"stroke-opacity":Z("/CA "+O(k[L]))}Z(">>"),Z("endobj")},Xf=function(k){Gr(k.resourcesOid,!0),Z("<<"),Z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var L in Z("/Font <<"),Ae)Ae.hasOwnProperty(L)&&(h===!1||h===!0&&p.hasOwnProperty(L))&&Z("/"+L+" "+Ae[L].objectNumber+" 0 R");Z(">>")}(),function(){if(Object.keys(tt).length>0){for(var L in Z("/Shading <<"),tt)tt.hasOwnProperty(L)&&tt[L]instanceof Yc&&tt[L].objectNumber>=0&&Z("/"+L+" "+tt[L].objectNumber+" 0 R");Qt.publish("putShadingPatternDict"),Z(">>")}}(),function(L){if(Object.keys(tt).length>0){for(var ae in Z("/Pattern <<"),tt)tt.hasOwnProperty(ae)&&tt[ae]instanceof f.TilingPattern&&tt[ae].objectNumber>=0&&tt[ae].objectNumber<L&&Z("/"+ae+" "+tt[ae].objectNumber+" 0 R");Qt.publish("putTilingPatternDict"),Z(">>")}}(k.objectOid),function(){if(Object.keys(wt).length>0){var L;for(L in Z("/ExtGState <<"),wt)wt.hasOwnProperty(L)&&wt[L].objectNumber>=0&&Z("/"+L+" "+wt[L].objectNumber+" 0 R");Qt.publish("putGStateDict"),Z(">>")}}(),function(){for(var L in Z("/XObject <<"),Je)Je.hasOwnProperty(L)&&Je[L].objectNumber>=0&&Z("/"+L+" "+Je[L].objectNumber+" 0 R");Qt.publish("putXobjectDict"),Z(">>")}(),Z(">>"),Z("endobj")},$m=function(k){Qe[k.fontName]=Qe[k.fontName]||{},Qe[k.fontName][k.fontStyle]=k.id},Bm=function(k,L,ae,fe,ye){var Ie={id:"F"+(Object.keys(Ae).length+1).toString(10),postScriptName:k,fontName:L,fontStyle:ae,encoding:fe,isStandardFont:ye||!1,metadata:{}};return Qt.publish("addFont",{font:Ie,instance:this}),Ae[Ie.id]=Ie,$m(Ie),Ie.id},ys=f.__private__.pdfEscape=f.pdfEscape=function(k,L){return function(ae,fe){var ye,Ie,$e,ct,xt,Pt,zt,nr,Hr;if($e=(fe=fe||{}).sourceEncoding||"Unicode",xt=fe.outputEncoding,(fe.autoencode||xt)&&Ae[ze].metadata&&Ae[ze].metadata[$e]&&Ae[ze].metadata[$e].encoding&&(ct=Ae[ze].metadata[$e].encoding,!xt&&Ae[ze].encoding&&(xt=Ae[ze].encoding),!xt&&ct.codePages&&(xt=ct.codePages[0]),typeof xt=="string"&&(xt=ct[xt]),xt)){for(zt=!1,Pt=[],ye=0,Ie=ae.length;ye<Ie;ye++)(nr=xt[ae.charCodeAt(ye)])?Pt.push(String.fromCharCode(nr)):Pt.push(ae[ye]),Pt[ye].charCodeAt(0)>>8&&(zt=!0);ae=Pt.join("")}for(ye=ae.length;zt===void 0&&ye!==0;)ae.charCodeAt(ye-1)>>8&&(zt=!0),ye--;if(!zt)return ae;for(Pt=fe.noBOM?[]:[254,255],ye=0,Ie=ae.length;ye<Ie;ye++){if((Hr=(nr=ae.charCodeAt(ye))>>8)>>8)throw new Error("Character at position "+ye+" of string '"+ae+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Pt.push(Hr),Pt.push(nr-(Hr<<8))}return String.fromCharCode.apply(void 0,Pt)}(k,L).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Jf=f.__private__.beginPage=function(k){we[++Lt]=[],ft[Lt]={objId:0,contentsObjId:0,userUnit:Number(o),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(k[0]),topRightY:Number(k[1])}},Um(Lt),je(we[U])},qm=function(k,L){var ae,fe,ye;switch(r=L||r,typeof k=="string"&&(ae=w(k.toLowerCase()),Array.isArray(ae)&&(fe=ae[0],ye=ae[1])),Array.isArray(k)&&(fe=k[0]*vt,ye=k[1]*vt),isNaN(fe)&&(fe=i[0],ye=i[1]),(fe>14400||ye>14400)&&(kr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),fe=Math.min(14400,fe),ye=Math.min(14400,ye)),i=[fe,ye],r.substr(0,1)){case"l":ye>fe&&(i=[ye,fe]);break;case"p":fe>ye&&(i=[ye,fe])}Jf(i),Rt(th),Z(Yu),nh!==0&&Z(nh+" J"),ih!==0&&Z(ih+" j"),Qt.publish("addPage",{pageNumber:Lt})},Qf=function(k){k>0&&k<=Lt&&(we.splice(k,1),ft.splice(k,1),Lt--,U>Lt&&(U=Lt),this.setPage(U))},Um=function(k){k>0&&k<=Lt&&(U=k)},zm=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return we.length-1},Hm=function(k,L,ae){var fe,ye=void 0;return ae=ae||{},k=k!==void 0?k:Ae[ze].fontName,L=L!==void 0?L:Ae[ze].fontStyle,fe=k.toLowerCase(),Qe[fe]!==void 0&&Qe[fe][L]!==void 0?ye=Qe[fe][L]:Qe[k]!==void 0&&Qe[k][L]!==void 0?ye=Qe[k][L]:ae.disableWarning===!1&&kr.warn("Unable to look up font label for font '"+k+"', '"+L+"'. Refer to getFontList(
472) for available fonts."),ye||ae.noFallback||(ye=Qe.times[L])==null&&(ye=Qe.times.normal),ye},_a=f.__private__.putInfo=function(){var k=Pr(),L=function(fe){return fe};for(var ae in d!==null&&(L=jn.encryptor(k,0)),Z("<<"),Z("/Producer ("+ys(L("jsPDF "+kt.version))+")"),Ke)Ke.hasOwnProperty(ae)&&Ke[ae]&&Z("/"+ae.substr(0,1).toUpperCase()+ae.substr(1)+" ("+ys(L(Ke[ae]))+")");Z("/CreationDate ("+ys(L(le))+")"),Z(">>"),Z("endobj")},Wu=f.__private__.putCatalog=function(k){var L=(k=k||{}).rootDictionaryObjId||Ko;switch(Pr(),Z("<<"),Z("/Type /Catalog"),Z("/Pages "+L+" 0 R"),ee||(ee="fullwidth"),ee){case"fullwidth":Z("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Z("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Z("/OpenAction [3 0 R /Fit]");break;case"original":Z("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ae=""+ee;ae.substr(ae.length-1)==="%"&&(ee=parseInt(ee)/100),typeof ee=="number"&&Z("/OpenAction [3 0 R /XYZ null null "+O(ee)+"]")}switch(_e||(_e="continuous"),_e){case"continuous":Z("/PageLayout /OneColumn");break;case"single":Z("/PageLayout /SinglePage");break;case"two":case"twoleft":Z("/PageLayout /TwoColumnLeft");break;case"tworight":Z("/PageLayout /TwoColumnRight")}Ee&&Z("/PageMode /"+Ee),Qt.publish("putCatalog"),Z(">>"),Z("endobj")},g1=f.__private__.putTrailer=function(){Z("trailer"),Z("<<"),Z("/Size "+(te+1)),Z("/Root "+te+" 0 R"),Z("/Info "+(te-1)+" 0 R"),d!==null&&Z("/Encrypt "+jn.oid+" 0 R"),Z("/ID [ <"+oe+"> <"+oe+"> ]"),Z(">>")},wn=f.__private__.putHeader=function(){Z("%PDF-"+y),Z("%ºß¬à")},Vm=f.__private__.putXRef=function(){var k="0000000000";Z("xref"),Z("0 "+(te+1)),Z("0000000000 65535 f ");for(var L=1;L<=te;L++)typeof Q[L]=="function"?Z((k+Q[L]()).slice(-10)+" 00000 n "):Q[L]!==void 0?Z((k+Q[L]).slice(-10)+" 00000 n "):Z("0000000000 00000 n ")},ka=f.__private__.buildDocument=function(){var k;te=0,de=0,ce=[],Q=[],he=[],Ko=Mr(),Ms=Mr(),je(ce),Qt.publish("buildDocument"),wn(),xa(),function(){Qt.publish("putAdditionalObjects");for(var ae=0;ae<he.length;ae++){var fe=he[ae];Gr(fe.objId,!0),Z(fe.content),Z("endobj")}Qt.publish("postPutAdditionalObjects")}(),k=[],function(){for(var ae in Ae)Ae.hasOwnProperty(ae)&&(h===!1||h===!0&&p.hasOwnProperty(ae))&&wc(Ae[ae])}(),function(){var ae;for(ae in wt)wt.hasOwnProperty(ae)&&m1(wt[ae])}(),function(){for(var ae in Je)Je.hasOwnProperty(ae)&&zu(Je[ae])}(),function(ae){var fe;for(fe in tt)tt.hasOwnProperty(fe)&&(tt[fe]instanceof Yc?Hu(tt[fe]):tt[fe]instanceof qd&&Vu(tt[fe],ae))}(k),Qt.publish("putResources"),k.forEach(Xf),Xf({resourcesOid:Ms,objectOid:Number.MAX_SAFE_INTEGER}),Qt.publish("postPutResources"),d!==null&&(jn.oid=Pr(),Z("<<"),Z("/Filter /Standard"),Z("/V "+jn.v),Z("/R "+jn.r),Z("/U <"+jn.toHexString(jn.U)+">"),Z("/O <"+jn.toHexString(jn.O)+">"),Z("/P "+jn.P),Z(">>"),Z("endobj")),_a(),Wu();var L=de;return Vm(),g1(),Z("startxref"),Z(""+L),Z("%%EOF"),je(we[U]),ce.join(`
473`)},Ku=f.__private__.getBlob=function(k){return new Blob([et(k)],{type:"application/pdf"})},Wm=f.output=f.__private__.output=(Dr=function(k,L){switch(typeof(L=L||{})=="string"?L={filename:L}:L.filename=L.filename||"generated.pdf",k){case void 0:return ka();case"save":f.save(L.filename);break;case"arraybuffer":return et(ka());case"blob":return Ku(ka());case"bloburi":case"bloburl":if(Tt.URL!==void 0&&typeof Tt.URL.createObjectURL=="function")return Tt.URL&&Tt.URL.createObjectURL(Ku(ka()))||void 0;kr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ae="",fe=ka();try{ae=uC(fe)}catch{ae=uC(unescape(encodeURIComponent(fe)))}return"data:application/pdf;filename="+L.filename+";base64,"+ae;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Tt)==="[object Window]"){var ye="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ie=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';L.pdfObjectUrl&&(ye=L.pdfObjectUrl,Ie="");var $e='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+ye+'"'+Ie+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(L)+");<\/script></body></html>",ct=Tt.open();
vendor: 24,429 bytes, lines 473-488
473return ct!==null&&ct.document.write($e),ct}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Tt)==="[object Window]"){var xt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(L.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+L.filename+'" width="500px" height="400px" /></body></html>',Pt=Tt.open();if(Pt!==null){Pt.document.write(xt);var zt=this;Pt.document.documentElement.querySelector("#pdfViewer").onload=function(){Pt.document.title=L.filename,Pt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(zt.output("bloburl"))}}return Pt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Tt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var nr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",L)+'"></iframe></body></html>',Hr=Tt.open();if(Hr!==null&&(Hr.document.write(nr),Hr.document.title=L.filename),Hr||typeof safari>"u")return Hr;break;case"datauri":case"dataurl":return Tt.document.location.href=this.output("datauristring",L);default:return null}},Dr.foo=function(){try{return Dr.apply(this,arguments)}catch(ae){var k=ae.stack||"";~k.indexOf(" at ")&&(k=k.split(" at ")[1]);var L="Error in function "+k.split(`
474`)[0].split("<")[0]+": "+ae.message;if(!Tt.console)throw new Error(L);Tt.console.error(L,ae),Tt.alert&&alert(L)}},Dr.foo.bar=Dr,Dr.foo),bs=function(k){return Array.isArray(G)===!0&&G.indexOf(k)>-1};switch(n){case"pt":vt=1;break;case"mm":vt=72/25.4;break;case"cm":vt=72/2.54;break;case"in":vt=72;break;case"px":vt=bs("px_scaling")==1?.75:96/72;break;case"pc":case"em":vt=12;break;case"ex":vt=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);vt=n}var jn=null;M(),F();var io=f.__private__.getPageInfo=f.getPageInfo=function(k){if(isNaN(k)||k%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ft[k].objId,pageNumber:k,pageContext:ft[k]}},Km=f.__private__.getPageInfoByObjId=function(k){if(isNaN(k)||k%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var L in ft)if(ft[L].objId===k)break;return io(L)},v1=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:ft[U].objId,pageNumber:U,pageContext:ft[U]}};f.addPage=function(){return qm.apply(this,arguments),this},f.setPage=function(){return Um.apply(this,arguments),je.call(this,we[U]),this},f.insertPage=function(k){return this.addPage(),this.movePage(U,k),this},f.movePage=function(k,L){var ae,fe;if(k>L){ae=we[k],fe=ft[k];for(var ye=k;ye>L;ye--)we[ye]=we[ye-1],ft[ye]=ft[ye-1];we[L]=ae,ft[L]=fe,this.setPage(L)}else if(k<L){ae=we[k],fe=ft[k];for(var Ie=k;Ie<L;Ie++)we[Ie]=we[Ie+1],ft[Ie]=ft[Ie+1];we[L]=ae,ft[L]=fe,this.setPage(L)}return this},f.deletePage=function(){return Qf.apply(this,arguments),this},f.__private__.text=f.text=function(k,L,ae,fe,ye){var Ie,$e,ct,xt,Pt,zt,nr,Hr,xn,Sr=(fe=fe||{}).scope||this;if(typeof k=="number"&&typeof L=="number"&&(typeof ae=="string"||Array.isArray(ae))){var An=ae;ae=L,L=k,k=An}if(arguments[3]instanceof it==0?(ct=arguments[4],xt=arguments[5],vr(nr=arguments[3])==="object"&&nr!==null||(typeof ct=="string"&&(xt=ct,ct=null),typeof nr=="string"&&(xt=nr,nr=null),typeof nr=="number"&&(ct=nr,nr=null),fe={flags:nr,angle:ct,align:xt})):(P("The transform parameter of text() with a Matrix value"),xn=ye),isNaN(L)||isNaN(ae)||k==null)throw new Error("Invalid arguments passed to jsPDF.text");if(k.length===0)return Sr;var _n,Hn="",fo=typeof fe.lineHeightFactor=="number"?fe.lineHeightFactor:_c,Us=Sr.internal.scaleFactor;function ho(ur){return ur=ur.split("	").join(Array(fe.TabLen||9).join(" ")),ys(ur,nr)}function lh(ur){for(var wr,on=ur.concat(),Tn=[],go=on.length;go--;)typeof(wr=on.shift())=="string"?Tn.push(wr):Array.isArray(ur)&&(wr.length===1||wr[1]===void 0&&wr[2]===void 0)?Tn.push(wr[0]):Tn.push([wr[0],wr[1],wr[2]]);return Tn}function Xu(ur,wr){var on;if(typeof ur=="string")on=wr(ur)[0];else if(Array.isArray(ur)){for(var Tn,go,yh=ur.concat(),ed=[],ig=yh.length;ig--;)typeof(Tn=yh.shift())=="string"?ed.push(wr(Tn)[0]):Array.isArray(Tn)&&typeof Tn[0]=="string"&&(go=wr(Tn[0],Tn[1],Tn[2]),ed.push([go[0],go[1],go[2]]));on=ed}return on}var Go=!1,Ec=!0;if(typeof k=="string")Go=!0;else if(Array.isArray(k)){var Cc=k.concat();$e=[];for(var Yo,Vn=Cc.length;Vn--;)(typeof(Yo=Cc.shift())!="string"||Array.isArray(Yo)&&typeof Yo[0]!="string")&&(Ec=!1);Go=Ec}if(Go===!1)throw new Error('Type of text must be string or Array. "'+k+'" is not recognized.');typeof k=="string"&&(k=k.match(/[\r?\n]/)?k.split(/\r\n|\r|\n/g):[k]);var jc=Ce/Sr.internal.scaleFactor,Ac=jc*(fo-1);switch(fe.baseline){case"bottom":ae-=Ac;break;case"top":ae+=jc-Ac;break;case"hanging":ae+=jc-2*Ac;break;case"middle":ae+=jc/2-Ac}if((zt=fe.maxWidth||0)>0&&(typeof k=="string"?k=Sr.splitTextToSize(k,zt):Object.prototype.toString.call(k)==="[object Array]"&&(k=k.reduce(function(ur,wr){return ur.concat(Sr.splitTextToSize(wr,zt))},[]))),Ie={text:k,x:L,y:ae,options:fe,mutex:{pdfEscape:ys,activeFontKey:ze,fonts:Ae,activeFontSize:Ce}},Qt.publish("preProcessText",Ie),k=Ie.text,ct=(fe=Ie.options).angle,xn instanceof it==0&&ct&&typeof ct=="number"){ct*=Math.PI/180,fe.rotationDirection===0&&(ct=-ct),E===S&&(ct=-ct);var ch=Math.cos(ct),uh=Math.sin(ct);xn=new it(ch,uh,-uh,ch,0,0)}else ct&&ct instanceof it&&(xn=ct);E!==S||xn||(xn=bn),(Pt=fe.charSpace||oo)!==void 0&&(Hn+=B(K(Pt))+` Tc
475`,this.setCharSpace(this.getCharSpace()||0)),(Hr=fe.horizontalScale)!==void 0&&(Hn+=B(100*Hr)+` Tz
476`),fe.lang;var vi=-1,po=fe.renderingMode!==void 0?fe.renderingMode:fe.stroke,Ju=Sr.internal.getCurrentPageInfo().pageContext;switch(po){case 0:case!1:case"fill":vi=0;break;case 1:case!0:case"stroke":vi=1;break;case 2:case"fillThenStroke":vi=2;break;case 3:case"invisible":vi=3;break;case 4:case"fillAndAddForClipping":vi=4;break;case 5:case"strokeAndAddPathForClipping":vi=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":vi=6;break;case 7:case"addToPathForClipping":vi=7}var rg=Ju.usedRenderingMode!==void 0?Ju.usedRenderingMode:-1;vi!==-1?Hn+=vi+` Tr
477`:rg!==-1&&(Hn+=`0 Tr
478`),vi!==-1&&(Ju.usedRenderingMode=vi),xt=fe.align||"left";var ws,Tc=Ce*fo,dh=Sr.internal.pageSize.getWidth(),fh=Ae[ze];Pt=fe.charSpace||oo,zt=fe.maxWidth||0,nr=Object.assign({autoencode:!0,noBOM:!0},fe.flags);var Zo=[],Pc=function(ur){return Sr.getStringUnitWidth(ur,{font:fh,charSpace:Pt,fontSize:Ce,doKerning:!1})*Ce/Us};if(Object.prototype.toString.call(k)==="[object Array]"){var Ki;$e=lh(k),xt!=="left"&&(ws=$e.map(Pc));var Gi,Xo=0;if(xt==="right"){L-=ws[0],k=[],Vn=$e.length;for(var mo=0;mo<Vn;mo++)mo===0?(Gi=so(L),Ki=ao(ae)):(Gi=K(Xo-ws[mo]),Ki=-Tc),k.push([$e[mo],Gi,Ki]),Xo=ws[mo]}else if(xt==="center"){L-=ws[0]/2,k=[],Vn=$e.length;for(var Jo=0;Jo<Vn;Jo++)Jo===0?(Gi=so(L),Ki=ao(ae)):(Gi=K((Xo-ws[Jo])/2),Ki=-Tc),k.push([$e[Jo],Gi,Ki]),Xo=ws[Jo]}else if(xt==="left"){k=[],Vn=$e.length;for(var hh=0;hh<Vn;hh++)k.push($e[hh])}else if(xt==="justify"&&fh.encoding==="Identity-H"){k=[],Vn=$e.length,zt=zt!==0?zt:dh;for(var Qu=0,an=0;an<Vn;an++)if(Ki=an===0?ao(ae):-Tc,Gi=an===0?so(L):Qu,an<Vn-1){var ng=K((zt-ws[an])/($e[an].split(" ").length-1)),Na=$e[an].split(" ");k.push([Na[0]+" ",Gi,Ki]),Qu=0;for(var Ea=1;Ea<Na.length;Ea++){var ph=(Pc(Na[Ea-1]+" "+Na[Ea])-Pc(Na[Ea]))*Us+ng;Ea==Na.length-1?k.push([Na[Ea],ph,0]):k.push([Na[Ea]+" ",ph,0]),Qu-=ph}}else k.push([$e[an],Gi,Ki]);k.push(["",Qu,0])}else{if(xt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(k=[],Vn=$e.length,zt=zt!==0?zt:dh,an=0;an<Vn;an++){Ki=an===0?ao(ae):-Tc,Gi=an===0?so(L):0;var mh=$e[an].split(" ").length-1,gh=mh>0?(zt-ws[an])/mh:0;an<Vn-1?Zo.push(B(K(gh))):Zo.push(0),k.push([$e[an],Gi,Ki])}}}(typeof fe.R2L=="boolean"?fe.R2L:me)===!0&&(k=Xu(k,function(ur,wr,on){return[ur.split("").reverse().join(""),wr,on]})),Ie={text:k,x:L,y:ae,options:fe,mutex:{pdfEscape:ys,activeFontKey:ze,fonts:Ae,activeFontSize:Ce}},Qt.publish("postProcessText",Ie),k=Ie.text,_n=Ie.mutex.isHex||!1;var vh=Ae[ze].encoding;vh!=="WinAnsiEncoding"&&vh!=="StandardEncoding"||(k=Xu(k,function(ur,wr,on){return[ho(ur),wr,on]})),$e=lh(k),k=[];for(var Qo,el,tl,Oc=Array.isArray($e[0])?1:0,rl="",Rc=function(ur,wr,on){var Tn="";return on instanceof it?(on=typeof fe.angle=="number"?sn(on,new it(1,0,0,1,ur,wr)):sn(new it(1,0,0,1,ur,wr),on),E===S&&(on=sn(new it(1,0,0,-1,0,0),on)),Tn=on.join(" ")+` Tm
479`):Tn=B(ur)+" "+B(wr)+` Td
480`,Tn},xs=0;xs<$e.length;xs++){switch(rl="",Oc){case 1:tl=(_n?"<":"(")+$e[xs][0]+(_n?">":")"),Qo=parseFloat($e[xs][1]),el=parseFloat($e[xs][2]);break;case 0:tl=(_n?"<":"(")+$e[xs]+(_n?">":")"),Qo=so(L),el=ao(ae)}Zo!==void 0&&Zo[xs]!==void 0&&(rl=Zo[xs]+` Tw
481`),xs===0?k.push(rl+Rc(Qo,el,xn)+tl):Oc===0?k.push(rl+tl):Oc===1&&k.push(rl+Rc(Qo,el,xn)+tl)}k=Oc===0?k.join(` Tj
482T* `):k.join(` Tj
483`),k+=` Tj
484`;var Ca=`BT
485/`;return Ca+=ze+" "+Ce+` Tf
486`,Ca+=B(Ce*fo)+` TL
487`,Ca+=kc+`
488`,Ca+=Hn,Ca+=k,Z(Ca+="ET"),p[ze]=!0,Sr};var y1=f.__private__.clip=f.clip=function(k){return Z(k==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return y1("evenodd")},f.__private__.discardPath=f.discardPath=function(){return Z("n"),this};var Sa=f.__private__.isValidStyle=function(k){var L=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(k)!==-1&&(L=!0),L};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(k){return Sa(k)&&(c=k),this};var Gm=f.__private__.getStyle=f.getStyle=function(k){var L=c;switch(k){case"D":case"S":L="S";break;case"F":L="f";break;case"FD":case"DF":L="B";break;case"f":case"f*":case"B":case"B*":L=k}return L},Ym=f.close=function(){return Z("h"),this};f.stroke=function(){return Z("S"),this},f.fill=function(k){return Gu("f",k),this},f.fillEvenOdd=function(k){return Gu("f*",k),this},f.fillStroke=function(k){return Gu("B",k),this},f.fillStrokeEvenOdd=function(k){return Gu("B*",k),this};var Gu=function(k,L){vr(L)==="object"?w1(L,k):Z(k)},xc=function(k){k===null||E===S&&k===void 0||(k=Gm(k),Z(k))};function b1(k,L,ae,fe,ye){var Ie=new qd(L||this.boundingBox,ae||this.xStep,fe||this.yStep,this.gState,ye||this.matrix);Ie.stream=this.stream;var $e=k+"$$"+this.cloneIndex+++"$$";return br($e,Ie),Ie}var w1=function(k,L){var ae=jt[k.key],fe=tt[ae];if(fe instanceof Yc)Z("q"),Z(x1(L)),fe.gState&&f.setGState(fe.gState),Z(k.matrix.toString()+" cm"),Z("/"+ae+" sh"),Z("Q");else if(fe instanceof qd){var ye=new it(1,0,0,-1,0,Nc());k.matrix&&(ye=ye.multiply(k.matrix||bn),ae=b1.call(fe,k.key,k.boundingBox,k.xStep,k.yStep,ye).id),Z("q"),Z("/Pattern cs"),Z("/"+ae+" scn"),fe.gState&&f.setGState(fe.gState),Z(L),Z("Q")}},x1=function(k){switch(k){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},eh=f.moveTo=function(k,L){return Z(B(K(k))+" "+B(R(L))+" m"),this},Zm=f.lineTo=function(k,L){return Z(B(K(k))+" "+B(R(L))+" l"),this},qs=f.curveTo=function(k,L,ae,fe,ye,Ie){return Z([B(K(k)),B(R(L)),B(K(ae)),B(R(fe)),B(K(ye)),B(R(Ie)),"c"].join(" ")),this};f.__private__.line=f.line=function(k,L,ae,fe,ye){if(isNaN(k)||isNaN(L)||isNaN(ae)||isNaN(fe)||!Sa(ye))throw new Error("Invalid arguments passed to jsPDF.line");return E===x?this.lines([[ae-k,fe-L]],k,L,[1,1],ye||"S"):this.lines([[ae-k,fe-L]],k,L,[1,1]).stroke()},f.__private__.lines=f.lines=function(k,L,ae,fe,ye,Ie){var $e,ct,xt,Pt,zt,nr,Hr,xn,Sr,An,_n,Hn;if(typeof k=="number"&&(Hn=ae,ae=L,L=k,k=Hn),fe=fe||[1,1],Ie=Ie||!1,isNaN(L)||isNaN(ae)||!Array.isArray(k)||!Array.isArray(fe)||!Sa(ye)||typeof Ie!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(eh(L,ae),$e=fe[0],ct=fe[1],Pt=k.length,An=L,_n=ae,xt=0;xt<Pt;xt++)(zt=k[xt]).length===2?(An=zt[0]*$e+An,_n=zt[1]*ct+_n,Zm(An,_n)):(nr=zt[0]*$e+An,Hr=zt[1]*ct+_n,xn=zt[2]*$e+An,Sr=zt[3]*ct+_n,An=zt[4]*$e+An,_n=zt[5]*ct+_n,qs(nr,Hr,xn,Sr,An,_n));return Ie&&Ym(),xc(ye),this},f.path=function(k){for(var L=0;L<k.length;L++){var ae=k[L],fe=ae.c;switch(ae.op){case"m":eh(fe[0],fe[1]);break;case"l":Zm(fe[0],fe[1]);break;case"c":qs.apply(this,fe);break;case"h":Ym()}}return this},f.__private__.rect=f.rect=function(k,L,ae,fe,ye){if(isNaN(k)||isNaN(L)||isNaN(ae)||isNaN(fe)||!Sa(ye))throw new Error("Invalid arguments passed to jsPDF.rect");return E===x&&(fe=-fe),Z([B(K(k)),B(R(L)),B(K(ae)),B(K(fe)),"re"].join(" ")),xc(ye),this},f.__private__.triangle=f.triangle=function(k,L,ae,fe,ye,Ie,$e){if(isNaN(k)||isNaN(L)||isNaN(ae)||isNaN(fe)||isNaN(ye)||isNaN(Ie)||!Sa($e))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ae-k,fe-L],[ye-ae,Ie-fe],[k-ye,L-Ie]],k,L,[1,1],$e,!0),this},f.__private__.roundedRect=f.roundedRect=function(k,L,ae,fe,ye,Ie,$e){if(isNaN(k)||isNaN(L)||isNaN(ae)||isNaN(fe)||isNaN(ye)||isNaN(Ie)||!Sa($e))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ct=4/3*(Math.SQRT2-1);return ye=Math.min(ye,.5*ae),Ie=Math.min(Ie,.5*fe),this.lines([[ae-2*ye,0],[ye*ct,0,ye,Ie-Ie*ct,ye,Ie],[0,fe-2*Ie],[0,Ie*ct,-ye*ct,Ie,-ye,Ie],[2*ye-ae,0],[-ye*ct,0,-ye,-Ie*ct,-ye,-Ie],[0,2*Ie-fe],[0,-Ie*ct,ye*ct,-Ie,ye,-Ie]],k+ye,L,[1,1],$e,!0),this},f.__private__.ellipse=f.ellipse=function(k,L,ae,fe,ye){if(isNaN(k)||isNaN(L)||isNaN(ae)||isNaN(fe)||!Sa(ye))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ie=4/3*(Math.SQRT2-1)*ae,$e=4/3*(Math.SQRT2-1)*fe;return eh(k+ae,L),qs(k+ae,L-$e,k+Ie,L-fe,k,L-fe),qs(k-Ie,L-fe,k-ae,L-$e,k-ae,L),qs(k-ae,L+$e,k-Ie,L+fe,k,L+fe),qs(k+Ie,L+fe,k+ae,L+$e,k+ae,L),xc(ye),this},f.__private__.circle=f.circle=function(k,L,ae,fe){if(isNaN(k)||isNaN(L)||isNaN(ae)||!Sa(fe))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(k,L,ae,ae,fe)},f.setFont=function(k,L,ae){return ae&&(L=z(L,ae)),ze=Hm(k,L,{disableWarning:!1}),this};var _1=f.__private__.getFont=f.getFont=function(){return Ae[Hm.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var k,L,ae={};for(k in Qe)if(Qe.hasOwnProperty(k))for(L in ae[k]=[],Qe[k])Qe[k].hasOwnProperty(L)&&ae[k].push(L);return ae},f.addFont=function(k,L,ae,fe,ye){var Ie=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ie.indexOf(arguments[3])!==-1?ye=arguments[3]:arguments[3]&&Ie.indexOf(arguments[3])==-1&&(ae=z(ae,fe)),Bm.call(this,k,L,ae,ye=ye||"Identity-H")};var _c,th=e.lineWidth||.200025,k1=f.__private__.getLineWidth=f.getLineWidth=function(){return th},Rt=f.__private__.setLineWidth=f.setLineWidth=function(k){return th=k,Z(B(K(k))+" w"),this};f.__private__.setLineDash=kt.API.setLineDash=kt.API.setLineDashPattern=function(k,L){if(k=k||[],L=L||0,isNaN(L)||!Array.isArray(k))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return k=k.map(function(ae){return B(K(ae))}).join(" "),L=B(K(L)),Z("["+k+"] "+L+" d"),this};var S1=f.__private__.getLineHeight=f.getLineHeight=function(){return Ce*_c};f.__private__.getLineHeight=f.getLineHeight=function(){return Ce*_c};var N1=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(k){return typeof(k=k||1.15)=="number"&&(_c=k),this},E1=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return _c};N1(e.lineHeight);var so=f.__private__.getHorizontalCoordinate=function(k){return K(k)},ao=f.__private__.getVerticalCoordinate=function(k){return E===S?k:ft[U].mediaBox.topRightY-ft[U].mediaBox.bottomLeftY-K(k)},C1=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(k){return B(so(k))},j1=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(k){return B(ao(k))},Yu=e.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return wa(Yu)},f.__private__.setStrokeColor=f.setDrawColor=function(k,L,ae,fe){return Yu=$s({ch1:k,ch2:L,ch3:ae,ch4:fe,pdfColorType:"draw",precision:2}),Z(Yu),this};var rh=e.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return wa(rh)},f.__private__.setFillColor=f.setFillColor=function(k,L,ae,fe){return rh=$s({ch1:k,ch2:L,ch3:ae,ch4:fe,pdfColorType:"fill",precision:2}),Z(rh),this};var kc=e.textColor||"0 g",A1=f.__private__.getTextColor=f.getTextColor=function(){return wa(kc)};f.__private__.setTextColor=f.setTextColor=function(k,L,ae,fe){return kc=$s({ch1:k,ch2:L,ch3:ae,ch4:fe,pdfColorType:"text",precision:3}),this};var oo=e.charSpace,T1=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(oo||0)};f.__private__.setCharSpace=f.setCharSpace=function(k){if(isNaN(k))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return oo=k,this};var nh=0;f.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},f.__private__.setLineCap=f.setLineCap=function(k){var L=f.CapJoinStyles[k];if(L===void 0)throw new Error("Line cap style of '"+k+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return nh=L,Z(L+" J"),this};var ih=0;f.__private__.setLineJoin=f.setLineJoin=function(k){var L=f.CapJoinStyles[k];if(L===void 0)throw new Error("Line join style of '"+k+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ih=L,Z(L+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(k){if(k=k||0,isNaN(k))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Z(B(K(k))+" M"),this},f.GState=ay,f.setGState=function(k){(k=typeof k=="string"?wt[St[k]]:Xm(null,k)).equals(dr)||(Z("/"+k.id+" gs"),dr=k)};var Xm=function(k,L){if(!k||!St[k]){var ae=!1;for(var fe in wt)if(wt.hasOwnProperty(fe)&&wt[fe].equals(L)){ae=!0;break}if(ae)L=wt[fe];else{var ye="GS"+(Object.keys(wt).length+1).toString(10);wt[ye]=L,L.id=ye}return k&&(St[k]=L.id),Qt.publish("addGState",L),L}};f.addGState=function(k,L){return Xm(k,L),this},f.saveGraphicsState=function(){return Z("q"),ut.push({key:ze,size:Ce,color:kc}),this},f.restoreGraphicsState=function(){Z("Q");var k=ut.pop();return ze=k.key,Ce=k.size,kc=k.color,dr=null,this},f.setCurrentTransformationMatrix=function(k){return Z(k.toString()+" cm"),this},f.comment=function(k){return Z("#"+k),this};var lo=function(k,L){var ae=k||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ae},set:function(Ie){isNaN(Ie)||(ae=parseFloat(Ie))}});var fe=L||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return fe},set:function(Ie){isNaN(Ie)||(fe=parseFloat(Ie))}});var ye="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ye},set:function(Ie){ye=Ie.toString()}}),this},sh=function(k,L,ae,fe){lo.call(this,k,L),this.type="rect";var ye=ae||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ye},set:function($e){isNaN($e)||(ye=parseFloat($e))}});var Ie=fe||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ie},set:function($e){isNaN($e)||(Ie=parseFloat($e))}}),this},Zu=function(){this.page=Lt,this.currentPage=U,this.pages=we.slice(0),this.pagesContext=ft.slice(0),this.x=Xe,this.y=rr,this.matrix=be,this.width=oh(U),this.height=Qm(U),this.outputDestination=Le,this.id="",this.objectNumber=-1};Zu.prototype.restore=function(){Lt=this.page,U=this.currentPage,ft=this.pagesContext,we=this.pages,Xe=this.x,rr=this.y,be=this.matrix,Jm(U,this.width),co(U,this.height),Le=this.outputDestination};var ah=function(k,L,ae,fe,ye){Tr.push(new Zu),Lt=U=0,we=[],Xe=k,rr=L,be=ye,Jf([ae,fe])};for(var Sc in f.beginFormObject=function(k,L,ae,fe,ye){return ah(k,L,ae,fe,ye),this},f.endFormObject=function(k){return function(L){if(Ut[L])Tr.pop().restore();else{var ae=new Zu,fe="Xo"+(Object.keys(Je).length+1).toString(10);ae.id=fe,Ut[L]=fe,Je[fe]=ae,Qt.publish("addFormObject",ae),Tr.pop().restore()}}(k),this},f.doFormObject=function(k,L){var ae=Je[Ut[k]];return Z("q"),Z(L.toString()+" cm"),Z("/"+ae.id+" Do"),Z("Q"),this},f.getFormObject=function(k){var L=Je[Ut[k]];return{x:L.x,y:L.y,width:L.width,height:L.height,matrix:L.matrix}},f.save=function(k,L){return k=k||"generated.pdf",(L=L||{}).returnPromise=L.returnPromise||!1,L.returnPromise===!1?(Wc(Ku(ka()),k),typeof Wc.unload=="function"&&Tt.setTimeout&&setTimeout(Wc.unload,911),this):new Promise(function(ae,fe){try{var ye=Wc(Ku(ka()),k);typeof Wc.unload=="function"&&Tt.setTimeout&&setTimeout(Wc.unload,911),ae(ye)}catch(Ie){fe(Ie.message)}})},kt.API)kt.API.hasOwnProperty(Sc)&&(Sc==="events"&&kt.API.events.length?function(k,L){var ae,fe,ye;for(ye=L.length-1;ye!==-1;ye--)ae=L[ye][0],fe=L[ye][1],k.subscribe.apply(k,[ae].concat(typeof fe=="function"?[fe]:fe))}(Qt,kt.API.events):f[Sc]=kt.API[Sc]);function oh(k){return ft[k].mediaBox.topRightX-ft[k].mediaBox.bottomLeftX}function Jm(k,L){ft[k].mediaBox.topRightX=L+ft[k].mediaBox.bottomLeftX}function Qm(k){return ft[k].mediaBox.topRightY-ft[k].mediaBox.bottomLeftY}function co(k,L){ft[k].mediaBox.topRightY=L+ft[k].mediaBox.bottomLeftY}var uo=f.getPageWidth=function(k){return oh(k=k||U)/vt},eg=f.setPageWidth=function(k,L){Jm(k,L*vt)},Nc=f.getPageHeight=function(k){return Qm(k=k||U)/vt},tg=f.setPageHeight=function(k,L){co(k,L*vt)};return f.internal={pdfEscape:ys,getStyle:Gm,getFont:_1,getFontSize:ue,getCharSpace:T1,getTextColor:A1,getLineHeight:S1,getLineHeightFactor:E1,getLineWidth:k1,write:Pe,getHorizontalCoordinate:so,getVerticalCoordinate:ao,getCoordinateString:C1,getVerticalCoordinateString:j1,collections:{},newObject:Pr,newAdditionalObject:yc,newObjectDeferred:Mr,newObjectDeferredBegin:Gr,getFilters:Bs,putStream:vs,events:Qt,scaleFactor:vt,pageSize:{getWidth:function(){return uo(U)},setWidth:function(k){eg(U,k)},getHeight:function(){return Nc(U)},setHeight:function(k){tg(U,k)}},encryptionOptions:d,encryption:jn,getEncryptor:function(k){return d!==null?jn.encryptor(k,0):function(L){return L}},output:Wm,getNumberOfPages:zm,get pages(){return we},out:Z,f2:O,f3:A,getPageInfo:io,getPageInfoByObjId:Km,getCurrentPageInfo:v1,getPDFVersion:v,Point:lo,Rectangle:sh,Matrix:it,hasHotfix:bs},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return uo(U)},set:function(k){eg(U,k)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return Nc(U)},set:function(k){tg(U,k)},enumerable:!0,configurable:!0}),(function(k){for(var L=0,ae=Ne.length;L<ae;L++){var fe=Bm.call(this,k[L][0],k[L][1],k[L][2],Ne[L][3],!0);h===!1&&(p[fe]=!0);var ye=k[L][0].split("-");$m({id:fe,fontName:ye[0],fontStyle:ye[1]||""})}Qt.publish("addFonts",{fonts:Ae,dictionary:Qe})}).call(f,Ne),ze="F1",qm(i,r),Qt.publish("initialized"),f}Cd.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Cd.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Cd.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},Cd.prototype.processOwnerPassword=function(e,t){return Yx(Gx(t).substr(0,5),e)},Cd.prototype.encryptor=function(e,t){var r=Gx(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return Yx(r,n)}},ay.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||vr(e)!==vr(this))return!1;var n=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return n===0},kt.API={events:[]},kt.version="3.0.4";var tn=kt.API,Lk=1,Uu=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},wd=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},It=function(e){return e.toFixed(2)},ml=function(e){return e.toFixed(5)};tn.__acroform__={};var Wi=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},pC=function(e){return e*Lk},Ta=function(e){var t=new oF,r=lt.internal.getHeight(e)||0,n=lt.internal.getWidth(e)||0;return t.BBox=[0,0,Number(It(n)),Number(It(r))],t},Yse=tn.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to 
488jsPDF.API.__acroform__.setBit");return e|1<<t},Zse=tn.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},Xse=tn.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},hn=tn.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Xse(e,t-1)},pn=tn.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Yse(e,t-1)},mn=tn.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Zse(e,t-1)},Jse=tn.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,i=e[0],s=e[1],a=e[2],o=e[3],l={};return l.lowerLeft_X=r(i)||0,l.lowerLeft_Y=n(s+o)||0,l.upperRight_X=r(i+a)||0,l.upperRight_Y=n(s)||0,[Number(It(l.lowerLeft_X)),Number(It(l.lowerLeft_Y)),Number(It(l.upperRight_X)),Number(It(l.upperRight_Y))]},Qse=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=Zx(e,r),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+It(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var s=Ta(e);return s.scope=e.scope,s.stream=t.join(`
489`),s}},Zx=function(e,t){var r=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map(function(O){return O.split(`
490`)}):i.map(function(O){return[O]});var s=r,a=lt.internal.getHeight(e)||0;a=a<0?-a:a;var o=lt.internal.getWidth(e)||0;o=o<0?-o:o;var l=function(O,A,K){if(O+1<i.length){var R=A+" "+i[O+1][0];return fv(R,e,K).width<=o-4}return!1};s++;e:for(;s>0;){t="",s--;var c,d,h=fv("3",e,s).height,p=e.multiline?a-s:(a-h)/2,f=p+=2,y=0,v=0,b=0;if(s<=0){t=`(...) Tj
491`,t+="% Width of Text: "+fv(t,e,s=12).width+", FieldWidth:"+o+`
492`;break}for(var w="",x=0,S=0;S<i.length;S++)if(i.hasOwnProperty(S)){var E=!1;if(i[S].length!==1&&b!==i[S].length-1){if((h+2)*(x+2)+2>a)continue e;w+=i[S][b],E=!0,v=S,S--}else{w=(w+=i[S][b]+" ").substr(w.length-1)==" "?w.substr(0,w.length-1):w;var T=parseInt(S),W=l(T,w,s),z=S>=i.length-1;if(W&&!z){w+=" ",b=0;continue}if(W||z){if(z)v=T;else if(e.multiline&&(h+2)*(x+2)+2>a)continue e}else{if(!e.multiline||(h+2)*(x+2)+2>a)continue e;v=T}}for(var B="",P=y;P<=v;P++){var X=i[P];if(e.multiline){if(P===v){B+=X[b]+" ",b=(b+1)%X.length;continue}if(P===y){B+=X[X.length-1]+" ";continue}}B+=X[0]+" "}switch(B=B.substr(B.length-1)==" "?B.substr(0,B.length-1):B,d=fv(B,e,s).width,e.textAlign){case"right":c=o-d-2;break;case"center":c=(o-d)/2;break;default:c=2}t+=It(c)+" "+It(f)+` Td
493`,t+="("+Uu(B)+`) Tj
494`,t+=-It(c)+` 0 Td
495`,f=-(s+2),d=0,y=E?v:v+1,x++,w=""}break}return n.text=t,n.fontSize=s,n},fv=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},eae={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},tae=function(e,t){var r={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(n){return n.type===r.type&&n.object===r.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},rae=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(ya.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(eae)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Lk=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new lF,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var s=n[i];
vendor: 33,275 bytes, lines 495-507
495s.objId=void 0,s.hasAnnotation&&tae(s,r)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(r){(function(n,i){var s=!n;for(var a in n||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(a)){var o=n[a],l=[],c=o.Rect;if(o.Rect&&(o.Rect=Jse(o.Rect,i)),i.internal.newObjectDeferredBegin(o.objId,!0),o.DA=lt.createDefaultAppearanceStream(o),vr(o)==="object"&&typeof o.getKeyValueListForStream=="function"&&(l=o.getKeyValueListForStream()),o.Rect=c,o.hasAppearanceStream&&!o.appearanceStreamContent){var d=Qse(o);l.push({key:"AP",value:"<</N "+d+">>"}),i.internal.acroformPlugin.xForms.push(d)}if(o.appearanceStreamContent){var h="";for(var p in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(p)){var f=o.appearanceStreamContent[p];if(h+="/"+p+" ",h+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var a in f)if(f.hasOwnProperty(a)){var y=f[a];typeof y=="function"&&(y=y.call(i,o)),h+="/"+a+" "+y+" ",i.internal.acroformPlugin.xForms.indexOf(y)>=0||i.internal.acroformPlugin.xForms.push(y)}}else typeof(y=f)=="function"&&(y=y.call(i,o)),h+="/"+a+" "+y,i.internal.acroformPlugin.xForms.indexOf(y)>=0||i.internal.acroformPlugin.xForms.push(y);h+=">>"}l.push({key:"AP",value:`<<
496`+h+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:o.objId}),i.internal.out("endobj")}s&&function(v,b){for(var w in v)if(v.hasOwnProperty(w)){var x=w,S=v[w];b.internal.newObjectDeferredBegin(S.objId,!0),vr(S)==="object"&&typeof S.putStream=="function"&&S.putStream(),delete v[x]}}(i.internal.acroformPlugin.xForms,i)})(r,e)}),e.internal.acroformPlugin.isInitialized=!0}},aF=tn.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(a){return a};if(Array.isArray(e)){for(var i="[",s=0;s<e.length;s++)switch(s!==0&&(i+=" "),vr(e[s])){case"boolean":case"number":case"object":i+=e[s].toString();break;case"string":e[s].substr(0,1)!=="/"?(t!==void 0&&r&&(n=r.internal.getEncryptor(t)),i+="("+Uu(n(e[s].toString()))+")"):i+=e[s].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Aw=function(e,t,r){var n=function(i){return i};return t!==void 0&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),"("+Uu(n(e))+")"},Va=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Va.prototype.toString=function(){return this.objId+" 0 R"},Va.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Va.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(s){return s!="content"&&s!="appearanceStreamContent"&&s!="scope"&&s!="objId"&&s.substring(0,1)!="_"});for(var r in t)if(Object.getOwnPropertyDescriptor(this,t[r]).configurable===!1){var n=t[r],i=this[n];i&&(Array.isArray(i)?e.push({key:n,value:aF(i,this.objId,this.scope)}):i instanceof Va?(i.scope=this.scope,e.push({key:n,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:n,value:i}))}return e};var oF=function(){Va.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){e=r.trim()},get:function(){return e||null}})};Wi(oF,Va);var lF=function(){Va.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var r=function(n){return n};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+Uu(r(e))+")"}},set:function(r){e=r}})};Wi(lF,Va);var ya=function e(){Va.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(w){if(isNaN(w))throw new Error('Invalid value "'+w+'" for attribute F supplied.');t=w}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!hn(t,3)},set:function(w){w?this.F=pn(t,3):this.F=mn(t,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(w){if(isNaN(w))throw new Error('Invalid value "'+w+'" for attribute Ff supplied.');r=w}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(w){n=w!==void 0?w:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(w){n[0]=w}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(w){n[1]=w}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(w){n[2]=w}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(w){n[3]=w}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(w){switch(w){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=w;break;default:throw new Error('Invalid value "'+w+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof oy)return;s="FieldObject"+e.FieldNum++}var w=function(x){return x};return this.scope&&(w=this.scope.internal.getEncryptor(this.objId)),"("+Uu(w(s))+")"},set:function(w){s=w.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(w){s=w}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(w){a=w}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(w){o=w}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(w){l=w}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/Lk:c},set:function(w){c=w}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(w){d=w}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof oy||this instanceof hu))return Aw(h,this.objId,this.scope)},set:function(w){w=w.toString(),h=w}});var p=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof qn==0?Aw(p,this.objId,this.scope):p},set:function(w){w=w.toString(),p=this instanceof qn==0?w.substr(0,1)==="("?wd(w.substr(1,w.length-2)):wd(w):w}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof qn==1?wd(p.substr(1,p.length-1)):p},set:function(w){w=w.toString(),p=this instanceof qn==1?"/"+w:w}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(w){this.V=w}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof qn==0?Aw(f,this.objId,this.scope):f},set:function(w){w=w.toString(),f=this instanceof qn==0?w.substr(0,1)==="("?wd(w.substr(1,w.length-2)):wd(w):w}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof qn==1?wd(f.substr(1,f.length-1)):f},set:function(w){w=w.toString(),f=this instanceof qn==1?"/"+w:w}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var y,v=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return v},set:function(w){w=!!w,v=w}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(y)return y},set:function(w){y=w}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,1)},set:function(w){w?this.Ff=pn(this.Ff,1):this.Ff=mn(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,2)},set:function(w){w?this.Ff=pn(this.Ff,2):this.Ff=mn(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,3)},set:function(w){w?this.Ff=pn(this.Ff,3):this.Ff=mn(this.Ff,3)}});var b=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(b!==null)return b},set:function(w){if([0,1,2].indexOf(w)===-1)throw new Error('Invalid value "'+w+'" for attribute Q supplied.');b=w}}),Object.defineProperty(this,"textAlign",{get:function(){var w;switch(b){case 0:default:w="left";break;case 1:w="center";break;case 2:w="right"}return w},configurable:!0,enumerable:!0,set:function(w){switch(w){case"right":case 2:b=2;break;case"center":case 1:b=1;break;default:b=0}}})};Wi(ya,Va);var tf=function(){ya.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(r){e=r}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return aF(t,this.objId,this.scope)},set:function(r){var n,i;i=[],typeof(n=r)=="string"&&(i=function(s,a,o){o||(o=1);for(var l,c=[];l=a.exec(s);)c.push(l[o]);return c}(n,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(r){t=r,this.sort&&t.sort()},this.addOption=function(r){r=(r=r||"").toString(),t.push(r),this.sort&&t.sort()},this.removeOption=function(r,n){for(n=n||!1,r=(r=r||"").toString();t.indexOf(r)!==-1&&(t.splice(t.indexOf(r),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,18)},set:function(r){r?this.Ff=pn(this.Ff,18):this.Ff=mn(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=pn(this.Ff,19):this.Ff=mn(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,20)},set:function(r){r?(this.Ff=pn(this.Ff,20),t.sort()):this.Ff=mn(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,22)},set:function(r){r?this.Ff=pn(this.Ff,22):this.Ff=mn(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,23)},set:function(r){r?this.Ff=pn(this.Ff,23):this.Ff=mn(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,27)},set:function(r){r?this.Ff=pn(this.Ff,27):this.Ff=mn(this.Ff,27)}}),this.hasAppearanceStream=!1};Wi(tf,ya);var rf=function(){tf.call(this),this.fontName="helvetica",this.combo=!1};Wi(rf,tf);var nf=function(){rf.call(this),this.combo=!0};Wi(nf,rf);var Uv=function(){nf.call(this),this.edit=!0};Wi(Uv,nf);var qn=function(){ya.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,15)},set:function(r){r?this.Ff=pn(this.Ff,15):this.Ff=mn(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,16)},set:function(r){r?this.Ff=pn(this.Ff,16):this.Ff=mn(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,17)},set:function(r){r?this.Ff=pn(this.Ff,17):this.Ff=mn(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,26)},set:function(r){r?this.Ff=pn(this.Ff,26):this.Ff=mn(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(s){return s};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,i=[];for(n in i.push("<<"),t)i.push("/"+n+" ("+Uu(r(t[n]))+")");return i.push(">>"),i.join(`
497`)}},set:function(r){vr(r)==="object"&&(t=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(r){typeof r=="string"&&(t.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(r){e="/"+r}})};Wi(qn,ya);var zv=function(){qn.call(this),this.pushButton=!0};Wi(zv,qn);var sf=function(){qn.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};Wi(sf,qn);var oy=function(){var e,t;ya.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(o){return o};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var s,a=[];for(s in a.push("<<"),n)a.push("/"+s+" ("+Uu(i(n[s]))+")");return a.push(">>"),a.join(`
498`)},set:function(i){vr(i)==="object"&&(n=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(i){typeof i=="string"&&(n.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(i){r=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(i){r="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=lt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Wi(oy,ya),sf.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},sf.prototype.createOption=function(e){var t=new oy;return t.Parent=this,t.optionName=e,this.Kids.push(t),nae.call(this.scope,t),t};var Hv=function(){qn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=lt.CheckBox.createAppearanceStream()};Wi(Hv,qn);var hu=function(){ya.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,13)},set:function(t){t?this.Ff=pn(this.Ff,13):this.Ff=mn(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,21)},set:function(t){t?this.Ff=pn(this.Ff,21):this.Ff=mn(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,23)},set:function(t){t?this.Ff=pn(this.Ff,23):this.Ff=mn(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,24)},set:function(t){t?this.Ff=pn(this.Ff,24):this.Ff=mn(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,25)},set:function(t){t?this.Ff=pn(this.Ff,25):this.Ff=mn(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,26)},set:function(t){t?this.Ff=pn(this.Ff,26):this.Ff=mn(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Wi(hu,ya);var Vv=function(){hu.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!hn(this.Ff,14)},set:function(e){e?this.Ff=pn(this.Ff,14):this.Ff=mn(this.Ff,14)}}),this.password=!0};Wi(Vv,hu);var lt={CheckBox:{createAppearanceStream:function(){return{N:{On:lt.CheckBox.YesNormal},D:{On:lt.CheckBox.YesPushDown,Off:lt.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Ta(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),s=Zx(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+It(lt.internal.getWidth(e))+" "+It(lt.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+It(s.fontSize)+" Tf "+i),r.push("BT"),r.push(s.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join(`
499`),t},YesNormal:function(e){var t=Ta(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=[],s=lt.internal.getHeight(e),a=lt.internal.getWidth(e),o=Zx(e,e.caption);return i.push("1 g"),i.push("0 0 "+It(a)+" "+It(s)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+It(a-1)+" "+It(s-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+It(o.fontSize)+" Tf "+n),i.push(o.text),i.push("ET"),i.push("Q"),t.stream=i.join(`
500`),t},OffPushDown:function(e){var t=Ta(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+It(lt.internal.getWidth(e))+" "+It(lt.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
501`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:lt.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=lt.RadioButton.Circle.YesNormal,t.D[e]=lt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Ta(e);t.scope=e.scope;var r=[],n=lt.internal.getWidth(e)<=lt.internal.getHeight(e)?lt.internal.getWidth(e)/4:lt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=lt.internal.Bezier_C,s=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+ml(lt.internal.getWidth(e)/2)+" "+ml(lt.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),r.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),r.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),r.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
502`),t},YesPushDown:function(e){var t=Ta(e);t.scope=e.scope;var r=[],n=lt.internal.getWidth(e)<=lt.internal.getHeight(e)?lt.internal.getWidth(e)/4:lt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),s=Number((i*lt.internal.Bezier_C).toFixed(5)),a=Number((n*lt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+ml(lt.internal.getWidth(e)/2)+" "+ml(lt.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),r.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),r.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),r.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+ml(lt.internal.getWidth(e)/2)+" "+ml(lt.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
503`),t},OffPushDown:function(e){var t=Ta(e);t.scope=e.scope;var r=[],n=lt.internal.getWidth(e)<=lt.internal.getHeight(e)?lt.internal.getWidth(e)/4:lt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),s=Number((i*lt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+ml(lt.internal.getWidth(e)/2)+" "+ml(lt.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),r.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),r.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),r.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
504`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:lt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=lt.RadioButton.Cross.YesNormal,t.D[e]=lt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Ta(e);t.scope=e.scope;var r=[],n=lt.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+It(lt.internal.getWidth(e)-2)+" "+It(lt.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(It(n.x1.x)+" "+It(n.x1.y)+" m"),r.push(It(n.x2.x)+" "+It(n.x2.y)+" l"),r.push(It(n.x4.x)+" "+It(n.x4.y)+" m"),r.push(It(n.x3.x)+" "+It(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
505`),t},YesPushDown:function(e){var t=Ta(e);t.scope=e.scope;var r=lt.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+It(lt.internal.getWidth(e))+" "+It(lt.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+It(lt.internal.getWidth(e)-2)+" "+It(lt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(It(r.x1.x)+" "+It(r.x1.y)+" m"),n.push(It(r.x2.x)+" "+It(r.x2.y)+" l"),n.push(It(r.x4.x)+" "+It(r.x4.y)+" m"),n.push(It(r.x3.x)+" "+It(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
506`),t},OffPushDown:function(e){var t=Ta(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+It(lt.internal.getWidth(e))+" "+It(lt.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
507`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};lt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=lt.internal.getWidth(e),r=lt.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},lt.internal.getWidth=function(e){var t=0;return vr(e)==="object"&&(t=pC(e.Rect[2])),t},lt.internal.getHeight=function(e){var t=0;return vr(e)==="object"&&(t=pC(e.Rect[3])),t};var nae=tn.addField=function(e){if(rae(this,e),!(e instanceof ya))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};tn.AcroFormChoiceField=tf,tn.AcroFormListBox=rf,tn.AcroFormComboBox=nf,tn.AcroFormEditBox=Uv,tn.AcroFormButton=qn,tn.AcroFormPushButton=zv,tn.AcroFormRadioButton=sf,tn.AcroFormCheckBox=Hv,tn.AcroFormTextField=hu,tn.AcroFormPasswordField=Vv,tn.AcroFormAppearance=lt,tn.AcroForm={ChoiceField:tf,ListBox:rf,ComboBox:nf,EditBox:Uv,Button:qn,PushButton:zv,RadioButton:sf,CheckBox:Hv,TextField:hu,PasswordField:Vv,Appearance:lt},kt.AcroForm={ChoiceField:tf,ListBox:rf,ComboBox:nf,EditBox:Uv,Button:qn,PushButton:zv,RadioButton:sf,CheckBox:Hv,TextField:hu,PasswordField:Vv,Appearance:lt};function cF(e){return e.reduce(function(t,r,n){return t[r]=n,t},{})}(function(e){var t="addImage_";e.__addimage__={};var r="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.__addimage__.getImageFileTypeByImageData=function(O,A){var K,R,le,oe,se,F=r;if((A=A||r)==="RGBA"||O.data!==void 0&&O.data instanceof Uint8ClampedArray&&"height"in O&&"width"in O)return"RGBA";if(W(O))for(se in n)for(le=n[se],K=0;K<le.length;K+=1){for(oe=!0,R=0;R<le[K].length;R+=1)if(le[K][R]!==void 0&&le[K][R]!==O[R]){oe=!1;break}if(oe===!0){F=se;break}}else for(se in n)for(le=n[se],K=0;K<le.length;K+=1){for(oe=!0,R=0;R<le[K].length;R+=1)if(le[K][R]!==void 0&&le[K][R]!==O.charCodeAt(R)){oe=!1;break}if(oe===!0){F=se;break}}return F===r&&A!==r&&(F=A),F},s=function O(A){for(var K=this.internal.write,R=this.internal.putStream,le=(0,this.internal.getFilters)();le.indexOf("FlateEncode")!==-1;)le.splice(le.indexOf("FlateEncode"),1);A.objectId=this.internal.newObject();var oe=[];if(oe.push({key:"Type",value:"/XObject"}),oe.push({key:"Subtype",value:"/Image"}),oe.push({key:"Width",value:A.width}),oe.push({key:"Height",value:A.height}),A.colorSpace===w.INDEXED?oe.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(A.palette.length/3-1)+" "+("sMask"in A&&A.sMask!==void 0?A.objectId+2:A.objectId+1)+" 0 R]"}):(oe.push({key:"ColorSpace",value:"/"+A.colorSpace}),A.colorSpace===w.DEVICE_CMYK&&oe.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),oe.push({key:"BitsPerComponent",value:A.bitsPerComponent}),"decodeParameters"in A&&A.decodeParameters!==void 0&&oe.push({key:"DecodeParms",value:"<<"+A.decodeParameters+">>"}),"transparency"in A&&Array.isArray(A.transparency)&&A.transparency.length>0){for(var se="",F=0,D=A.transparency.length;F<D;F++)se+=A.transparency[F]+" "+A.transparency[F]+" ";oe.push({key:"Mask",value:"["+se+"]"})}A.sMask!==void 0&&oe.push({key:"SMask",value:A.objectId+1+" 0 R"});var $=A.filter!==void 0?["/"+A.filter]:void 0;if(R({data:A.data,additionalKeyValues:oe,alreadyAppliedFilters:$,objectId:A.objectId}),K("endobj"),"sMask"in A&&A.sMask!==void 0){var M,j=(M=A.sMaskBitsPerComponent)!==null&&M!==void 0?M:A.bitsPerComponent,U={width:A.width,height:A.height,colorSpace:"DeviceGray",bitsPerComponent:j,data:A.sMask};"filter"in A&&(U.decodeParameters="/Predictor ".concat(A.predictor," /Colors 1 /BitsPerComponent ").concat(j," /Columns ").concat(A.width),U.filter=A.filter),O.call(this,U)}if(A.colorSpace===w.INDEXED){var H=this.internal.newObject();R({data:B(new Uint8Array(A.palette)),objectId:H}),K("endobj")}},a=function(){var O=this.internal.collections[t+"images"];for(var A in O)s.call(this,O[A])},o=function(){var O,A=this.internal.collections[t+"images"],K=this.internal.write;for(var R in A)K("/I"+(O=A[R]).index,O.objectId,"0","R")},l=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",o))},c=function(){var O=this.internal.collections[t+"images"];return l.call(this),O},d=function(){return Object.keys(this.internal.collections[t+"images"]).length},h=function(O){return typeof e["process"+O.toUpperCase()]=="function"},p=function(O){return vr(O)==="object"&&O.nodeType===1},f=function(O,A){if(O.nodeName==="IMG"&&O.hasAttribute("src")){var K=""+O.getAttribute("src");if(K.indexOf("data:image/")===0)return qv(unescape(K).split("base64,").pop());var R=e.loadFile(K,!0);if(R!==void 0)return R}if(O.nodeName==="CANVAS"){if(O.width===0||O.height===0)throw new Error("Given canvas must have data. Canvas width: "+O.width+", height: "+O.height);var le;switch(A){case"PNG":le="image/png";break;case"WEBP":le="image/webp";break;default:le="image/jpeg"}return qv(O.toDataURL(le,1).split("base64,").pop())}},y=function(O){var A=this.internal.collections[t+"images"];if(A){for(var K in A)if(O===A[K].alias)return A[K]}},v=function(O,A,K){return O||A||(O=-96,A=-96),O<0&&(O=-1*K.width*72/O/this.internal.scaleFactor),A<0&&(A=-1*K.height*72/A/this.internal.scaleFactor),O===0&&(O=A*K.width/K.height),A===0&&(A=O*K.height/K.width),[O,A]},b=function(O,A,K,R,le,oe){var se=v.call(this,K,R,le),F=this.internal.getCoordinateString,D=this.internal.getVerticalCoordinateString,$=c.call(this);if(K=se[0],R=se[1],$[le.index]=le,oe){oe*=Math.PI/180;var M=Math.cos(oe),j=Math.sin(oe),U=function(re){return re.toFixed(4)},H=[U(M),U(j),U(-1*j),U(M),0,0,"cm"]}this.internal.write("q"),oe?(this.internal.write([1,"0","0",1,F(O),D(A+R),"cm"].join(" ")),this.internal.write(H.join(" ")),this.internal.write([F(K),"0","0",F(R),"0","0","cm"].join(" "))):this.internal.write([F(K),"0","0",F(R),F(O),D(A+R),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+le.index+" Do"),this.internal.write("Q")},w=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var x=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},S=e.__addimage__.sHashCode=function(O){var A,K,R=0;if(typeof O=="string")for(K=O.length,A=0;A<K;A++)R=(R<<5)-R+O.charCodeAt(A),R|=0;else if(W(O))for(K=O.byteLength/2,A=0;A<K;A++)R=(R<<5)-R+O[A],R|=0;return R},E=e.__addimage__.validateStringAsBase64=function(O){(O=O||"").toString().trim();var A=!0;return O.length===0&&(A=!1),O.length%4!=0&&(A=!1),/^[A-Za-z0-9+/]+$/.test(O.substr(0,O.length-2))===!1&&(A=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(O.substr(-2))===!1&&(A=!1),A},T=e.__addimage__.extractImageFromDataUrl=function(O){if(O==null||!(O=O.trim()).startsWith("data:"))return null;var A=O.indexOf(",");return A<0?null:O.substring(0,A).trim().endsWith("base64")?O.substring(A+1):null};e.__addimage__.isArrayBuffer=function(O){return O instanceof ArrayBuffer};var W=e.__addimage__.isArrayBufferView=function(O){return O instanceof Int8Array||O instanceof Uint8Array||O instanceof Uint8ClampedArray||O instanceof Int16Array||O instanceof Uint16Array||O instanceof Int32Array||O instanceof Uint32Array||O instanceof Float32Array||O instanceof Float64Array},z=e.__addimage__.binaryStringToUint8Array=function(O){for(var A=O.length,K=new Uint8Array(A),R=0;R<A;R++)K[R]=O.charCodeAt(R);return K},B=e.__addimage__.arrayBufferToBinaryString=function(O){for(var A="",K=W(O)?O:new Uint8Array(O),R=0;R<K.length;R+=8192)A+=String.fromCharCode.apply(null,K.subarray(R,R+8192));return A};e.addImage=function(){var O,A,K,R,le,oe,se,F,D;if(typeof arguments[1]=="number"?(A=r,K=arguments[1],R=arguments[2],le=arguments[3],oe=arguments[4],se=arguments[5],F=arguments[6],D=arguments[7]):(A=arguments[1],K=arguments[2],R=arguments[3],le=arguments[4],oe=arguments[5],se=arguments[6],F=arguments[7],D=arguments[8]),vr(O=arguments[0])==="object"&&!p(O)&&"imageData"in O){var $=O;O=$.imageData,A=$.format||A||r,K=$.x||K||0,R=$.y||R||0,le=$.w||$.width||le,oe=$.h||$.height||oe,se=$.alias||se,F=$.compression||F,D=$.rotation||$.angle||D}var M=this.internal.getFilters();if(F===void 0&&M.indexOf("FlateEncode")!==-1&&(F="SLOW"),isNaN(K)||isNaN(R))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var j=P.call(this,O,A,se,F);return b.call(this,K,R,le,oe,j,D),this};var P=function(O,A,K,R){var le,oe,se;if(typeof O=="string"&&i(O)===r){O=unescape(O);var F=X(O,!1);(F!==""||(F=e.loadFile(O,!0))!==void 0)&&(O=F)}if(p(O)&&(O=f(O,A)),A=i(O,A),!h(A))throw new Error("addImage does not support files of type '"+A+"', please ensure that a plugin for '"+A+"' support is added.");if(((se=K)==null||se.length===0)&&(K=function(D){return typeof D=="str
507ing"||W(D)?S(D):W(D.data)?S(D.data):null}(O)),(le=y.call(this,K))||(O instanceof Uint8Array||A==="RGBA"||(oe=O,O=z(O)),le=this["process"+A.toUpperCase()](O,d.call(this),K,function(D){return D&&typeof D=="string"&&(D=D.toUpperCase()),D in e.image_compression?D:x.NONE}(R),oe)),!le)throw new Error("An unknown error occurred whilst processing the image.");return le},X=e.__addimage__.convertBase64ToBinaryString=function(O,A){A=typeof A!="boolean"||A;var K,R="";if(typeof O=="string"){var le;K=(le=T(O))!==null&&le!==void 0?le:O;try{R=qv(K)}catch(oe){if(A)throw E(K)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+oe.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return R};e.getImageProperties=function(O){var A,K,R="";if(p(O)&&(O=f(O)),typeof O=="string"&&i(O)===r&&((R=X(O,!1))===""&&(R=e.loadFile(O)||""),O=R),K=i(O),!h(K))throw new Error("addImage does not support files of type '"+K+"', please ensure that a plugin for '"+K+"' support is added.");if(O instanceof Uint8Array||(O=z(O)),!(A=this["process"+K.toUpperCase()](O)))throw new Error("An unknown error occurred whilst processing the image");return A.fileType=K,A}})(kt.API),function(e){var t=function(r){if(r!==void 0&&r!="")return!0};kt.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(r){for(var n,i,s,a=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(r.objId),c=r.pageContext.annotations,d=!1,h=0;h<c.length&&!d;h++)switch((n=c[h]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(d!=0){this.internal.write("/Annots [");for(var p=0;p<c.length;p++){n=c[p];var f=this.internal.pdfEscape,y=this.internal.getEncryptor(r.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var v=this.internal.newAdditionalObject(),b=this.internal.newAdditionalObject(),w=this.internal.getEncryptor(v.objId),x=n.title||"Note";s="<</Type /Annot /Subtype /Text "+(i="/Rect ["+a(n.bounds.x)+" "+o(n.bounds.y+n.bounds.h)+" "+a(n.bounds.x+n.bounds.w)+" "+o(n.bounds.y)+"] ")+"/Contents ("+f(w(n.contents))+")",s+=" /Popup "+b.objId+" 0 R",s+=" /P "+l.objId+" 0 R",s+=" /T ("+f(w(x))+") >>",v.content=s;var S=v.objId+" 0 R";s="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+a(n.bounds.x+30)+" "+o(n.bounds.y+n.bounds.h)+" "+a(n.bounds.x+n.bounds.w+30)+" "+o(n.bounds.y)+"] ")+" /Parent "+S,n.open&&(s+=" /Open true"),s+=" >>",b.content=s,this.internal.write(v.objId,"0 R",b.objId,"0 R");break;case"freetext":i="/Rect ["+a(n.bounds.x)+" "+o(n.bounds.y)+" "+a(n.bounds.x+n.bounds.w)+" "+o(n.bounds.y+n.bounds.h)+"] ";var E=n.color||"#000000";s="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+f(y(n.contents))+")",s+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+E+")",s+=" /Border [0 0 0]",s+=" >>",this.internal.write(s);break;case"link":if(n.options.name){var T=this.annotations._nameMap[n.options.name];n.options.pageNumber=T.page,n.options.top=T.y}else n.options.top||(n.options.top=0);if(i="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",s="",n.options.url)s="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+f(y(n.options.url))+") >>";else if(n.options.pageNumber)switch(s="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":s+=" /Fit]";break;case"FitH":s+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,s+=" /FitV "+n.options.left+"]";break;default:var W=o(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),s+=" /XYZ "+n.options.left+" "+W+" "+n.options.zoom+"]"}s!=""&&(s+=" >>",this.internal.write(s))}}this.internal.write("]")}}]),e.createAnnotation=function(r){var n=this.internal.getCurrentPageInfo();
vendor: 22,287 bytes, lines 507-531
507switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":n.pageContext.annotations.push(r)}},e.link=function(r,n,i,s,a){var o=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:l(r),y:c(n),w:l(r+i),h:c(n+s)},options:a,type:"link"})},e.textWithLink=function(r,n,i,s){var a,o,l=this.getTextWidth(r),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(s.maxWidth!==void 0){o=s.maxWidth;var d=this.splitTextToSize(r,o).length;a=Math.ceil(c*d)}else o=l,a=c;return this.text(r,n,i,s),i+=.2*c,s.align==="center"&&(n-=l/2),s.align==="right"&&(n-=l),this.link(n,i-c,o,a,s),l},e.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}}(kt.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var s=e.__arabicParser__.isInArabicSubstitutionA=function(v){return t[v.charCodeAt(0)]!==void 0},a=e.__arabicParser__.isArabicLetter=function(v){return typeof v=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(v)},o=e.__arabicParser__.isArabicEndLetter=function(v){return a(v)&&s(v)&&t[v.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(v){return a(v)&&i.indexOf(v.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(v){return a(v)&&s(v)&&t[v.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(v){return a(v)&&s(v)&&t[v.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(v){return a(v)&&s(v)&&t[v.charCodeAt(0)].length>=3};var d=e.__arabicParser__.arabicLetterHasMedialForm=function(v){return a(v)&&s(v)&&t[v.charCodeAt(0)].length==4},h=e.__arabicParser__.resolveLigatures=function(v){var b=0,w=r,x="",S=0;for(b=0;b<v.length;b+=1)w[v.charCodeAt(b)]!==void 0?(S++,typeof(w=w[v.charCodeAt(b)])=="number"&&(x+=String.fromCharCode(w),w=r,S=0),b===v.length-1&&(w=r,x+=v.charAt(b-(S-1)),b-=S-1,S=0)):(w=r,x+=v.charAt(b-S),b-=S,S=0);return x};e.__arabicParser__.isArabicDiacritic=function(v){return v!==void 0&&n[v.charCodeAt(0)]!==void 0};var p=e.__arabicParser__.getCorrectForm=function(v,b,w){return a(v)?s(v)===!1?-1:!c(v)||!a(b)&&!a(w)||!a(w)&&o(b)||o(v)&&!a(b)||o(v)&&l(b)||o(v)&&o(b)?0:d(v)&&a(b)&&!o(b)&&a(w)&&c(w)?3:o(v)||!a(w)?1:2:-1},f=function(v){var b=0,w=0,x=0,S="",E="",T="",W=(v=v||"").split("\\s+"),z=[];for(b=0;b<W.length;b+=1){for(z.push(""),w=0;w<W[b].length;w+=1)S=W[b][w],E=W[b][w-1],T=W[b][w+1],a(S)?(x=p(S,E,T),z[b]+=x!==-1?String.fromCharCode(t[S.charCodeAt(0)][x]):S):z[b]+=S;z[b]=h(z[b])}return z.join(" ")},y=e.__arabicParser__.processArabic=e.processArabic=function(){var v,b=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,w=[];if(Array.isArray(b)){var x=0;for(w=[],x=0;x<b.length;x+=1)Array.isArray(b[x])?w.push([f(b[x][0]),b[x][1],b[x][2]]):w.push([f(b[x])]);v=w}else v=f(b);return typeof arguments[0]=="string"?v:(arguments[0].text=v,arguments[0])};e.events.push(["preProcessText",y])}(kt.API),kt.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this},function(e){var t=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(o){r=o}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(o){n=isNaN(o)||Number.isInteger(o)===!1||o<0?150:o,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(o){i=isNaN(o)||Number.isInteger(o)===!1||o<0?300:o,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(o){s=o}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(o){a=o}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(r,n){var i;if((r=r||"2d")!=="2d")return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(kt.API),function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(v){l=v}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(v){c=v}});var d=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return d},set:function(v){d=v}});var h=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return h},set:function(v){h=v}});var p=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return p},set:function(v){p=v}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(v){f=v}});var y=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return y},set:function(v){y=v}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return n.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,c){n.call(this);var d=(c=c||{}).fontSize||this.getFontSize(),h=c.font||this.getFont(),p=c.scaleFactor||this.internal.scaleFactor,f=0,y=0,v=0,b=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var w=c.maxWidth;w>0?typeof l=="string"?l=this.splitTextToSize(l,w):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(S,E){return S.concat(b.splitTextToSize(E,w))},[])):l=Array.isArray(l)?l:[l];for(var x=0;x<l.length;x++)f<(v=this.getStringUnitWidth(l[x],{font:h})*d)&&(f=v);return f!==0&&(y=l.length),{w:f/=p,h:Math.max((y*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/p,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new s(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=e.cell=function(){var l;l=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),n.call(this);var c=this.internal.__cell__.lastCell,d=this.internal.__cell__.padding,h=this.internal.__cell__.margins||t,p=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+h.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=h.top,f&&p&&(this.printHeaderRow(l.lineNumber,!0),l.y+=p[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,r===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-d,l.y+d,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+d,{align:"center",baseline:"top",maxWidth:l.width-d-d}):this.text(l.text,l.x+d,l.y+d,{align:"left",baseline:"top",maxWidth:l.width-d-d})),this.internal.__cell__.lastCell=l,this};e.table=function(l,c,d,h,p){if(n.call(this),!d)throw new Error("No data for PDF table.");var f,y,v,b,w=[],x=[],S=[],E={},T={},W=[],z=[],B=(p=p||{}).autoSize||!1,P=p.printHeaders!==!1,X=p.css&&p.css["font-size"]!==void 0?16*p.css["font-size"]:p.fontSize||12,O=p.margins||Object.assign({width:this.getPageWidth()},t),A=typeof p.padding=="number"?p.padding:3,K=p.headerBackgroundColor||"#c8c8c8",R=p.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=P,this.internal.__cell__.margins=O,this.internal.__cell__.table_font_size=X,this.internal.__cell__.padding=A,this.internal.__cell__.headerBackgroundColor=K,this.internal.__cell__.headerTextColor=R,this.setFontSize(X),h==null)x=w=Object.keys(d[0]),S=w.map(function(){return"left"});else if(Array.isArray(h)&&vr(h[0])==="object")for(w=h.map(function($){return $.name}),x=h.map(function($){return $.prompt||$.name||""}),S=h.map(function($){return $.align||"left"}),f=0;f<h.length;f+=1)T[h[f].name]=.7499990551181103*h[f].width;else Array.isArray(h)&&typeof h[0]=="string"&&(x=w=h,S=w.map(function(){return"left"}));if(B||Array.isArray(h)&&typeof h[0]=="string")for(f=0;f<w.length;f+=1){for(E[b=w[f]]=d.map(function($){return $[b]}),this.setFont(void 0,"bold"),W.push(this.getTextDimensions(x[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),y=E[b],this.setFont(void 0,"normal"),v=0;v<y.length;v+=1)W.push(this.getTextDimensions(y[v],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);T[b]=Math.max.apply(null,W)+A+A,W=[]}if(P){var le={};for(f=0;f<w.length;f+=1)le[w[f]]={},le[w[f]].text=x[f],le[w[f]].align=S[f];var oe=o.call(this,le,T);z=w.map(function($){return new s(l,c,T[$],oe,le[$].text,void 0,le[$].align)}),this.setTableHeaderRow(z),this.printHeaderRow(1,!1)}var se=h.reduce(function($,M){return $[M.name]=M.align,$},{});for(f=0;f<d.length;f+=1){"rowStart"in p&&p.rowStart instanceof Function&&p.rowStart({row:f,data:d[f]},this);var F=o.call(this,d[f],T);for(v=0;v<w.length;v+=1){var D=d[f][w[v]];"cellStart"in p&&p.cellStart instanceof Function&&p.cellStart({row:f,col:v,data:D},this),a.call(this,new s(l,c,T[w[v]],F,D,f+2,se[w[v]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var o=function(l,c){var d=this.internal.__cell__.padding,h=this.internal.__cell__.table_font_size,p=this.internal.scaleFactor;return Object.keys(l).map(function(f){var y=l[f];return this.splitTextToSize(y.hasOwnProperty("text")?y.text:y,c[f]-d-d)},this).map(function(f){return this.getLineHeightFactor()*f.length*h/p+d+d},this).reduce(function(f,y){return Math.max(f,y)},0)};e.setTableHeaderRow=function(l){n.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,c){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var d;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var h=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(h[0],h[1],h[2],h[3],void 0,-1)}this.setFont(void 0,"bold");for(var p=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){d=this.internal.__cell__.tableHeaderRow[f].clone(),c&&(d.y=this.internal.__cell__.margins.top||0,p.push(d)),d.lineNumber=l;var y=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,d),this.setTextColor(y)}p.length>0&&this.setTableHeaderRow(p),this.setFont(void 0,"normal"),r=!1}}(kt.API);var uF={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},dF=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Xx=cF(dF),fF=[100,200,300,400,500,600,700,800,900],iae=cF(fF);function Tw(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=function(s){return uF[s=s||"normal"]?s:"normal"}(e.style),n=function(s){return s?typeof s=="number"?s>=100&&s<=900&&s%100==0?s:400:/^\d00$/.test(s)?parseInt(s):s==="bold"?700:400:400}(e.weight),i=function(s){return typeof Xx[s=s||"normal"]=="number"?s:"normal"}(e.stretch);return{family:t,style:r,weight:n,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,r,n].join(" ")}}}function mC(e,t,r,n){var i;for(i=r;i>=0&&i<t.length;i+=n)if(e[t[i]])return e[t[i]];for(i=r;i>=0&&i<t.length;i-=n)if(e[t[i]])return e[t[i]]}var sae={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},gC={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function vC(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function yC(e){return e.trimLeft()}function aae(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function oae(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var hv,bC,wC,xd,pv,xC,_C,kC,Pw=["times"];function SC(e,t,r,n,i){var s=4,a=EC;switch(i){case kt.API.image_compression.FAST:s=1,a=NC;break;case kt.API.image_compression.MEDIUM:s=6,a=CC;break;case kt.API.image_compression.SLOW:s=9,a=jC}e=function(l,c,d,h){for(var p,f=l.length/c,y=new Uint8Array(l.length+f),v=[lae,NC,EC,CC,jC],b=0;b<f;b+=1){var w=b*c,x=l.subarray(w,w+c);if(h)y.set(h(x,d,p),w+b);else{for(var S=v.length,E=[],T=0;T<S;T+=1)E[T]=v[T](x,d,p);var W=uae(E.concat());y.set(E[W],w+b)}p=x}return y}(e,t,Math.ceil(r*n/8),a);var o=Mx(e,{level:s});return kt.API.__addimage__.arrayBufferToBinaryString(o)}function lae(e){var t=Array.apply([],e);return t.unshift(0),t}function NC(e,t){var r=e.length,n=[];n[0]=1;for(var i=0;i<r;i+=1){var s=e[i-t]||0;n[i+1]=e[i]-s+256&255}return n}function EC(e,t,r){var n=e.length,i=[];i[0]=2;for(var s=0;s<n;s+=1){var a=r&&r[s]||0;i[s+1]=e[s]-a+256&255}return i}function CC(e,t,r){var n=e.length,i=[];i[0]=3;for(var s=0;s<n;s+=1){var a=e[s-t]||0,o=r&&r[s]||0;i[s+1]=e[s]+256-(a+o>>>1)&255}return i}function jC(e,t,r){var n=e.length,i=[];i[0]=4;for(var s=0;s<n;s+=1){var a=cae(e[s-t]||0,r&&r[s]||0,r&&r[s-t]||0);i[s+1]=e[s]-a+256&255}return i}function cae(e,t,r){if(e===t&&t===r)return e;var n=Math.abs(t-r),i=Math.abs(e-r),s=Math.abs(e+t-r-r);return n<=i&&n<=s?e:i<=s?t:r}function uae(e){var t=e.map(function(r){return r.reduce(function(n,i){return n+Math.abs(i)},0)});return t.indexOf(Math.min.apply(null,t))}function Ow(e,t,r){var n=t*r,i=Math.floor(n/8),s=16-(n-8*i+r),a=(1<<r)-1;return hF(e,i)>>s&a}function AC(e,t,r,n){var i=r*n,s=Math.floor(i/8),a=16-(i-8*s+n),o=(1<<n)-1,l=(t&o)<<a;(function(c,d,h){if(d+1<c.byteLength)c.setUint16(d,h,!1);else{var p=h>>8&255;c.setUint8(d,p)}})(e,s,hF(e,s)&~(o<<a)&65535|l)}function hF(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function dae(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,i=e[t++],s=i>>7,a=1<<1+(7&i);e[t++],e[t++];var o=null,l=null;s&&(o=t,l=a,t+=3*a);var c=!0,d=[],h=0,p=null,f=0,y=null;for(this.width=r,this.height=n;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,y=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((O=e[t++])>=0))throw Error("Invalid block size");if(O===0)break;t+=O}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var v=e[t++];h=e[t++]|e[t++]<<8,p=e[t++],1&v||(p=null),f=v>>2&7,t++;break;case 254:for(;;){if(!((O=e[t++])>=0))throw Error("Invalid block size");if(O===0)break;t+=O}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var b=e[t++]|e[t++]<<8,w=e[t++]|e[t++]<<8,x=e[t++]|e[t++]<<8,S=e[t++]|e[t++]<<8,E=e[t++],T=E>>6&1,W=1<<1+(7&E),z=o,B=l,P=!1;E>>7&&(P=!0,z=t,B=W,t+=3*W);var X=t;for(t++;;){var O;if(!((O=e[t++])>=0))throw Error("Invalid block size");if(O===0)break;t+=O}d.push({x:b,y:w,width:x,height:S,has_local_palette:P,palette_offset:z,palette_size:B,data_offset:X,data_length:t-X,transparent_index:p,interlaced:!!T,delay:h,disposal:f});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return y},this.frameInfo=function(A){if(A<0||A>=d.length)throw new Error("Frame index out of range.");return d[A]},this.decodeAndBlitFrameBGRA=function(A,K){var R=this.frameInfo(A),le=R.width*R.height,oe=new Uint8Array(le);TC(e,R.data_offset,oe,le);var se=R.palette_offset,F=R.transparent_index;F===null&&(F=256);var D=R.width,$=r-D,M=D,j=4*(R.y*r+R.x),U=4*((R.y+R.height)*r+R.x),H=j,re=4*$;R.interlaced===!0&&(re+=4*r*7);for(var te=8,Q=0,ce=oe.length;Q<ce;++Q){var de=oe[Q];if(M===0&&(M=D,(H+=re)>=U&&(re=4*$+4*r*(te-1),H=j+(D+$)*(te<<1),te>>=1)),de===F)H+=4;else{var he=e[se+3*de],we=e[se+3*de+1],ve=e[se+3*de+2];K[H++]=ve,K[H++]=we,K[H++]=he,K[H++]=255}--M}},this.decodeAndBlitFrameRGBA=function(A,K){var R=this.frameInfo(A),le=R.width*R.height,oe=new Uint8Array(le);TC(e,R.data_offset,oe,le);var se=R.palette_offset,F=R.transparent_index;F===null&&(F=256);var D=R.width,$=r-D,M=D,j=4*(R.y*r+R.x),U=4*((R.y+R.height)*r+R.x),H=j,re=4*$;R.interlaced===!0&&(re+=4*r*7);for(var te=8,Q=0,ce=oe.length;Q<ce;++Q){var de=oe[Q];if(M===0&&(M=D,(H+=re)>=U&&(re=4*$+4*r*(te-1),H=j+(D+$)*(te<<1),te>>=1)),de===F)H+=4;else{var he=e[se+3*de],we=e[se+3*de+1],ve=e[se+3*de+2];K[H++]=he,K[H++]=we,K[H++]=ve,K[H++]=255}--M}}}function TC(e,t,r,n){for(var i=e[t++],s=1<<i,a=s+1,o=a+1,l=i+1,c=(1<<l)-1,d=0,h=0,p=0,f=e[t++],y=new Int32Array(4096),v=null;;){for(;d<16&&f!==0;)h|=e[t++]<<d,d+=8,f===1?f=e[t++]:--f;if(d<l)break;var b=h&c;if(h>>=l,d-=l,b!==s){if(b===a)break;for(var w=b<o?b:v,x=0,S=w;S>s;)S=y[S]>>8,++x;var E=S;if(p+x+(w!==b?1:0)>n)return void kr.log("Warning, gif stream longer than expected.");r[p++]=E;var T=p+=x;for(w!==b&&(r[p++]=E),S=w;x--;)S=y[S],r[--T]=255&S,S>>=8;v!==null&&o<4096&&(y[o++]=v<<8|E,o>=c+1&&l<12&&(++l,c=c<<1|1)),v=b}else o=a+1,c=(1<<(l=i+1))-1,v=null}return p!==n&&kr.log("Warning, gif stream shorter than expected."),r}/**
508 * @license
509  Copyright (c) 2008, Adobe Systems Incorporated
510  All rights reserved.
511
512  Redistribution and use in source and binary forms, with or without 
513  modification, are permitted provided that the following conditions are
514  met:
515
516  * Redistributions of source code must retain the above copyright notice, 
517    this list of conditions and the following disclaimer.
518  
519  * Redistributions in binary form must reproduce the above copyright
520    notice, this list of conditions and the following disclaimer in the 
521    documentation and/or other materials provided with the distribution.
522  
523  * Neither the name of Adobe Systems Incorporated nor the names of its 
524    contributors may be used to endorse or promote products derived from 
525    this software without specific prior written permission.
526
527  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
528  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
529  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
530  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
531  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
vendor: 5,830 bytes, lines 532-538
532  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
533  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
534  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
535  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
536  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
537  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
538*/function Rw(e){var t,r,n,i,s,a=Math.floor,o=new Array(64),l=new Array(64),c=new Array(64),d=new Array(64),h=new Array(65535),p=new Array(65535),f=new Array(64),y=new Array(64),v=[],b=0,w=7,x=new Array(64),S=new Array(64),E=new Array(64),T=new Array(256),W=new Array(2048),z=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],B=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],P=[0,1,2,3,4,5,6,7,8,9,10,11],X=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],O=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],A=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],K=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],le=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function oe(j,U){for(var H=0,re=0,te=new Array,Q=1;Q<=16;Q++){for(var ce=1;ce<=j[Q];ce++)te[U[re]]=[],te[U[re]][0]=H,te[U[re]][1]=Q,re++,H++;H*=2}return te}function se(j){for(var U=j[0],H=j[1]-1;H>=0;)U&1<<H&&(b|=1<<w),H--,--w<0&&(b==255?(F(255),F(0)):F(b),w=7,b=0)}function F(j){v.push(j)}function D(j){F(j>>8&255),F(255&j)}function $(j,U,H,re,te){for(var Q,ce=te[0],de=te[240],he=function(Ce,ee){var ue,me,Ee,De,_e,Oe,Ze,Ke,ze,vt,Xe=0;for(ze=0;ze<8;++ze){ue=Ce[Xe],me=Ce[Xe+1],Ee=Ce[Xe+2],De=Ce[Xe+3],_e=Ce[Xe+4],Oe=Ce[Xe+5],Ze=Ce[Xe+6];var rr=ue+(Ke=Ce[Xe+7]),be=ue-Ke,Ae=me+Ze,Qe=me-Ze,ut=Ee+Oe,tt=Ee-Oe,jt=De+_e,wt=De-_e,St=rr+jt,dr=rr-jt,Lt=Ae+ut,ft=Ae-ut;Ce[Xe]=St+Lt,Ce[Xe+4]=St-Lt;var Qt=.707106781*(ft+dr);Ce[Xe+2]=dr+Qt,Ce[Xe+6]=dr-Qt;var G=.382683433*((St=wt+tt)-(ft=Qe+be)),Je=.5411961*St+G,Ut=1.306562965*ft+G,Tr=.707106781*(Lt=tt+Qe),it=be+Tr,sn=be-Tr;Ce[Xe+5]=sn+Je,Ce[Xe+3]=sn-Je,Ce[Xe+1]=it+Ut,Ce[Xe+7]=it-Ut,Xe+=8}for(Xe=0,ze=0;ze<8;++ze){ue=Ce[Xe],me=Ce[Xe+8],Ee=Ce[Xe+16],De=Ce[Xe+24],_e=Ce[Xe+32],Oe=Ce[Xe+40],Ze=Ce[Xe+48];var bn=ue+(Ke=Ce[Xe+56]),br=ue-Ke,Dr=me+Ze,Pr=me-Ze,Mr=Ee+Oe,Gr=Ee-Oe,yc=De+_e,Ko=De-_e,Ms=bn+yc,wa=bn-yc,$s=Dr+Mr,Bs=Dr-Mr;Ce[Xe]=Ms+$s,Ce[Xe+32]=Ms-$s;var vs=.707106781*(Bs+wa);Ce[Xe+16]=wa+vs,Ce[Xe+48]=wa-vs;var bc=.382683433*((Ms=Ko+Gr)-(Bs=Pr+br)),xa=.5411961*Ms+bc,wc=1.306562965*Bs+bc,zu=.707106781*($s=Gr+Pr),Hu=br+zu,Vu=br-zu;Ce[Xe+40]=Vu+xa,Ce[Xe+24]=Vu-xa,Ce[Xe+8]=Hu+wc,Ce[Xe+56]=Hu-wc,Xe++}for(ze=0;ze<64;++ze)vt=Ce[ze]*ee[ze],f[ze]=vt>0?vt+.5|0:vt-.5|0;return f}(j,U),we=0;we<64;++we)y[z[we]]=he[we];var ve=y[0]-H;H=y[0],ve==0?se(re[0]):(se(re[p[Q=32767+ve]]),se(h[Q]));for(var Le=63;Le>0&&y[Le]==0;)Le--;if(Le==0)return se(ce),H;for(var je,Z=1;Z<=Le;){for(var Pe=Z;y[Z]==0&&Z<=Le;)++Z;var et=Z-Pe;if(et>=16){je=et>>4;for(var Ne=1;Ne<=je;++Ne)se(de);et&=15}Q=32767+y[Z],se(te[(et<<4)+p[Q]]),se(h[Q]),Z++}return Le!=63&&se(ce),H}function M(j){j=Math.min(Math.max(j,1),100),s!=j&&(function(U){for(var H=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],re=0;re<64;re++){var te=a((H[re]*U+50)/100);te=Math.min(Math.max(te,1),255),o[z[re]]=te}for(var Q=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ce=0;ce<64;ce++){var de=a((Q[ce]*U+50)/100);de=Math.min(Math.max(de,1),255),l[z[ce]]=de}for(var he=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],we=0,ve=0;ve<8;ve++)for(var Le=0;Le<8;Le++)c[we]=1/(o[z[we]]*he[ve]*he[Le]*8),d[we]=1/(l[z[we]]*he[ve]*he[Le]*8),we++}(j<50?Math.floor(5e3/j):Math.floor(200-2*j)),s=j)}this.encode=function(j,U){U&&M(U),v=new Array,b=0,w=7,D(65496),D(65504),D(16),F(74),F(70),F(73),F(70),F(0),F(1),F(1),F(0),D(1),D(1),F(0),F(0),function(){D(65499),D(132),F(0);for(var me=0;me<64;me++)F(o[me]);F(1);for(var Ee=0;Ee<64;Ee++)F(l[Ee])}(),function(me,Ee){D(65472),D(17),F(8),D(Ee),D(me),F(3),F(1),F(17),F(0),F(2),F(17),F(1),F(3),F(17),F(1)}(j.width,j.height),function(){D(65476),D(418),F(0);for(var me=0;me<16;me++)F(B[me+1]);for(var Ee=0;Ee<=11;Ee++)F(P[Ee]);F(16);for(var De=0;De<16;De++)F(X[De+1]);for(var _e=0;_e<=161;_e++)F(O[_e]);F(1);for(var Oe=0;Oe<16;Oe++)F(A[Oe+1]);for(var Ze=0;Ze<=11;Ze++)F(K[Ze]);F(17);for(var Ke=0;Ke<16;Ke++)F(R[Ke+1]);for(var ze=0;ze<=161;ze++)F(le[ze])}(),D(65498),D(12),F(3),F(1),F(0),F(2),F(17),F(3),F(17),F(0),F(63),F(0);var H=0,re=0,te=0;
vendor: 47,769 bytes, lines 538-544
538b=0,w=7,this.encode.displayName="_encode_";for(var Q,ce,de,he,we,ve,Le,je,Z,Pe=j.data,et=j.width,Ne=j.height,Ce=4*et,ee=0;ee<Ne;){for(Q=0;Q<Ce;){for(we=Ce*ee+Q,Le=-1,je=0,Z=0;Z<64;Z++)ve=we+(je=Z>>3)*Ce+(Le=4*(7&Z)),ee+je>=Ne&&(ve-=Ce*(ee+1+je-Ne)),Q+Le>=Ce&&(ve-=Q+Le-Ce+4),ce=Pe[ve++],de=Pe[ve++],he=Pe[ve++],x[Z]=(W[ce]+W[de+256|0]+W[he+512|0]>>16)-128,S[Z]=(W[ce+768|0]+W[de+1024|0]+W[he+1280|0]>>16)-128,E[Z]=(W[ce+1280|0]+W[de+1536|0]+W[he+1792|0]>>16)-128;H=$(x,c,H,t,n),re=$(S,d,re,r,i),te=$(E,d,te,r,i),Q+=32}ee+=8}if(w>=0){var ue=[];ue[1]=w+1,ue[0]=(1<<w+1)-1,se(ue)}return D(65497),new Uint8Array(v)},e=e||50,function(){for(var j=String.fromCharCode,U=0;U<256;U++)T[U]=j(U)}(),t=oe(B,P),r=oe(A,K),n=oe(X,O),i=oe(R,le),function(){for(var j=1,U=2,H=1;H<=15;H++){for(var re=j;re<U;re++)p[32767+re]=H,h[32767+re]=[],h[32767+re][1]=H,h[32767+re][0]=re;for(var te=-(U-1);te<=-j;te++)p[32767+te]=H,h[32767+te]=[],h[32767+te][1]=H,h[32767+te][0]=U-1+te;j<<=1,U<<=1}}(),function(){for(var j=0;j<256;j++)W[j]=19595*j,W[j+256|0]=38470*j,W[j+512|0]=7471*j+32768,W[j+768|0]=-11059*j,W[j+1024|0]=-21709*j,W[j+1280|0]=32768*j+8421375,W[j+1536|0]=-27439*j,W[j+1792|0]=-5329*j}(),M(e)}/**
539 * @license
540 * Copyright (c) 2017 Aras Abbasi
541 *
542 * Licensed under the MIT License.
543 * http://opensource.org/licenses/mit-license
544 */function Gs(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function PC(e){function t(P){if(!P)throw Error("assert :P")}function r(P,X,O){for(var A=0;4>A;A++)if(P[X+A]!=O.charCodeAt(A))return!0;return!1}function n(P,X,O,A,K){for(var R=0;R<K;R++)P[X+R]=O[A+R]}function i(P,X,O,A){for(var K=0;K<A;K++)P[X+K]=O}function s(P){return new Int32Array(P)}function a(P,X){for(var O=[],A=0;A<P;A++)O.push(new X);return O}function o(P,X){var O=[];return function A(K,R,le){for(var oe=le[R],se=0;se<oe&&(K.push(le.length>R+1?[]:new X),!(le.length<R+1));se++)A(K[se],R+1,le)}(O,0,P),O}var l=function(){var P=this;function X(m,g){for(var N=1<<g-1>>>0;m&N;)N>>>=1;return N?(m&N-1)+N:m}function O(m,g,N,C,I){t(!(C%N));do m[g+(C-=N)]=I;while(0<C)}function A(m,g,N,C,I){if(t(2328>=I),512>=I)var q=s(512);else if((q=s(I))==null)return 0;return function(V,Y,J,ne,pe,Se){var ie,ge,xe=Y,Te=1<<J,ke=s(16),Re=s(16);for(t(pe!=0),t(ne!=null),t(V!=null),t(0<J),ge=0;ge<pe;++ge){if(15<ne[ge])return 0;++ke[ne[ge]]}if(ke[0]==pe)return 0;for(Re[1]=0,ie=1;15>ie;++ie){if(ke[ie]>1<<ie)return 0;Re[ie+1]=Re[ie]+ke[ie]}for(ge=0;ge<pe;++ge)ie=ne[ge],0<ne[ge]&&(Se[Re[ie]++]=ge);if(Re[15]==1)return(ne=new K).g=0,ne.value=Se[0],O(V,xe,1,Te,ne),Te;var Fe,He=-1,Be=Te-1,_t=0,st=1,Ht=1,ht=1<<J;for(ge=0,ie=1,pe=2;ie<=J;++ie,pe<<=1){if(st+=Ht<<=1,0>(Ht-=ke[ie]))return 0;for(;0<ke[ie];--ke[ie])(ne=new K).g=ie,ne.value=Se[ge++],O(V,xe+_t,pe,ht,ne),_t=X(_t,ie)}for(ie=J+1,pe=2;15>=ie;++ie,pe<<=1){if(st+=Ht<<=1,0>(Ht-=ke[ie]))return 0;for(;0<ke[ie];--ke[ie]){if(ne=new K,(_t&Be)!=He){for(xe+=ht,Fe=1<<(He=ie)-J;15>He&&!(0>=(Fe-=ke[He]));)++He,Fe<<=1;Te+=ht=1<<(Fe=He-J),V[Y+(He=_t&Be)].g=Fe+J,V[Y+He].value=xe-Y-He}ne.g=ie-J,ne.value=Se[ge++],O(V,xe+(_t>>J),pe,ht,ne),_t=X(_t,ie)}}return st!=2*Re[15]-1?0:Te}(m,g,N,C,I,q)}function K(){this.value=this.g=0}function R(){this.value=this.g=0}function le(){this.G=a(5,K),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Pc,R)}function oe(m,g,N,C){t(m!=null),t(g!=null),t(2147483648>C),m.Ca=254,m.I=0,m.b=-8,m.Ka=0,m.oa=g,m.pa=N,m.Jd=g,m.Yc=N+C,m.Zc=4<=C?N+C-4+1:N,ce(m)}function se(m,g){for(var N=0;0<g--;)N|=he(m,128)<<g;return N}function F(m,g){var N=se(m,g);return de(m)?-N:N}function D(m,g,N,C){var I,q=0;for(t(m!=null),t(g!=null),t(4294967288>C),m.Sb=C,m.Ra=0,m.u=0,m.h=0,4<C&&(C=4),I=0;I<C;++I)q+=g[N+I]<<8*I;m.Ra=q,m.bb=C,m.oa=g,m.pa=N}function $(m){for(;8<=m.u&&m.bb<m.Sb;)m.Ra>>>=8,m.Ra+=m.oa[m.pa+m.bb]<<Xo-8>>>0,++m.bb,m.u-=8;re(m)&&(m.h=1,m.u=0)}function M(m,g){if(t(0<=g),!m.h&&g<=Gi){var N=H(m)&Ki[g];return m.u+=g,$(m),N}return m.h=1,m.u=0}function j(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function U(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function H(m){return m.Ra>>>(m.u&Xo-1)>>>0}function re(m){return t(m.bb<=m.Sb),m.h||m.bb==m.Sb&&m.u>Xo}function te(m,g){m.u=g,m.h=re(m)}function Q(m){m.u>=mo&&(t(m.u>=mo),$(m))}function ce(m){t(m!=null&&m.oa!=null),m.pa<m.Zc?(m.I=(m.oa[m.pa++]|m.I<<8)>>>0,m.b+=8):(t(m!=null&&m.oa!=null),m.pa<m.Yc?(m.b+=8,m.I=m.oa[m.pa++]|m.I<<8):m.Ka?m.b=0:(m.I<<=8,m.b+=8,m.Ka=1))}function de(m){return se(m,1)}function he(m,g){var N=m.Ca;0>m.b&&ce(m);var C=m.b,I=N*g>>>8,q=(m.I>>>C>I)+0;for(q?(N-=I,m.I-=I+1<<C>>>0):N=I+1,C=N,I=0;256<=C;)I+=8,C>>=8;return C=7^I+Jo[C],m.b-=C,m.Ca=(N<<C)-1,q}function we(m,g,N){m[g+0]=N>>24&255,m[g+1]=N>>16&255,m[g+2]=N>>8&255,m[g+3]=255&N}function ve(m,g){return m[g+0]|m[g+1]<<8}function Le(m,g){return ve(m,g)|m[g+2]<<16}function je(m,g){return ve(m,g)|ve(m,g+2)<<16}function Z(m,g){var N=1<<g;return t(m!=null),t(0<g),m.X=s(N),m.X==null?0:(m.Mb=32-g,m.Xa=g,1)}function Pe(m,g){t(m!=null),t(g!=null),t(m.Xa==g.Xa),n(g.X,0,m.X,0,1<<g.Xa)}function et(){this.X=[],this.Xa=this.Mb=0}function Ne(m,g,N,C){t(N!=null),t(C!=null);var I=N[0],q=C[0];return I==0&&(I=(m*q+g/2)/g),q==0&&(q=(g*I+m/2)/m),0>=I||0>=q?0:(N[0]=I,C[0]=q,1)}function Ce(m,g){return m+(1<<g)-1>>>g}function ee(m,g){return((4278255360&m)+(4278255360&g)>>>0&4278255360)+((16711935&m)+(16711935&g)>>>0&16711935)>>>0}function ue(m,g){P[g]=function(N,C,I,q,V,Y,J){var ne;for(ne=0;ne<V;++ne){var pe=P[m](Y[J+ne-1],I,q+ne);Y[J+ne]=ee(N[C+ne],pe)}}}function me(){this.ud=this.hd=this.jd=0}function Ee(m,g){return((4278124286&(m^g))>>>1)+(m&g)>>>0}function De(m){return 0<=m&&256>m?m:0>m?0:255<m?255:void 0}function _e(m,g){return De(m+(m-g+.5>>1))}function Oe(m,g,N){return Math.abs(g-N)-Math.abs(m-N)}function Ze(m,g,N,C,I,q,V){for(C=q[V-1],N=0;N<I;++N)q[V+N]=C=ee(m[g+N],C)}function Ke(m,g,N,C,I){var q;for(q=0;q<N;++q){var V=m[g+q],Y=V>>8&255,J=16711935&(J=(J=16711935&V)+((Y<<16)+Y));C[I+q]=(4278255360&V)+J>>>0}}function ze(m,g){g.jd=255&m,g.hd=m>>8&255,g.ud=m>>16&255}function vt(m,g,N,C,I,q){var V;for(V=0;V<C;++V){var Y=g[N+V],J=Y>>>8,ne=Y,pe=255&(pe=(pe=Y>>>16)+((m.jd<<24>>24)*(J<<24>>24)>>>5));ne=255&(ne=(ne+=(m.hd<<24>>24)*(J<<24>>24)>>>5)+((m.ud<<24>>24)*(pe<<24>>24)>>>5)),I[q+V]=(4278255360&Y)+(pe<<16)+ne}}function Xe(m,g,N,C,I){P[g]=function(q,V,Y,J,ne,pe,Se,ie,ge){for(J=Se;J<ie;++J)for(Se=0;Se<ge;++Se)ne[pe++]=I(Y[C(q[V++])])},P[m]=function(q,V,Y,J,ne,pe,Se){var ie=8>>q.b,ge=q.Ea,xe=q.K[0],Te=q.w;if(8>ie)for(q=(1<<q.b)-1,Te=(1<<ie)-1;V<Y;++V){var ke,Re=0;for(ke=0;ke<ge;++ke)ke&q||(Re=C(J[ne++])),pe[Se++]=I(xe[Re&Te]),Re>>=ie}else P["VP8LMapColor"+N](J,ne,xe,Te,pe,Se,V,Y,ge)}}function rr(m,g,N,C,I){for(N=g+N;g<N;){var q=m[g++];C[I++]=q>>16&255,C[I++]=q>>8&255,C[I++]=255&q}}function be(m,g,N,C,I){for(N=g+N;g<N;){var q=m[g++];C[I++]=q>>16&255,C[I++]=q>>8&255,C[I++]=255&q,C[I++]=q>>24&255}}function Ae(m,g,N,C,I){for(N=g+N;g<N;){var q=(V=m[g++])>>16&240|V>>12&15,V=240&V|V>>28&15;C[I++]=q,C[I++]=V}}function Qe(m,g,N,C,I){for(N=g+N;g<N;){var q=(V=m[g++])>>16&248|V>>13&7,V=V>>5&224|V>>3&31;C[I++]=q,C[I++]=V}}function ut(m,g,N,C,I){for(N=g+N;g<N;){var q=m[g++];C[I++]=255&q,C[I++]=q>>8&255,C[I++]=q>>16&255}}function tt(m,g,N,C,I,q){if(q==0)for(N=g+N;g<N;)we(C,((q=m[g++])[0]>>24|q[1]>>8&65280|q[2]<<8&16711680|q[3]<<24)>>>0),I+=32;else n(C,I,m,g,N)}function jt(m,g){P[g][0]=P[m+"0"],P[g][1]=P[m+"1"],P[g][2]=P[m+"2"],P[g][3]=P[m+"3"],P[g][4]=P[m+"4"],P[g][5]=P[m+"5"],P[g][6]=P[m+"6"],P[g][7]=P[m+"7"],P[g][8]=P[m+"8"],P[g][9]=P[m+"9"],P[g][10]=P[m+"10"],P[g][11]=P[m+"11"],P[g][12]=P[m+"12"],P[g][13]=P[m+"13"],P[g][14]=P[m+"0"],P[g][15]=P[m+"0"]}function wt(m){return m==R1||m==L1||m==ug||m==I1}function St(){this.eb=[],this.size=this.A=this.fb=0}function dr(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Lt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new St,this.f.kb=new dr,this.sd=null}function ft(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Qt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function G(m){return alert("todo:WebPSamplerProcessPlane"),m.T}function Je(m,g){var N=m.T,C=g.ba.f.RGBA,I=C.eb,q=C.fb+m.ka*C.A,V=ks[g.ba.S],Y=m.y,J=m.O,ne=m.f,pe=m.N,Se=m.ea,ie=m.W,ge=g.cc,xe=g.dc,Te=g.Mc,ke=g.Nc,Re=m.ka,Fe=m.ka+m.T,He=m.U,Be=He+1>>1;for(Re==0?V(Y,J,null,null,ne,pe,Se,ie,ne,pe,Se,ie,I,q,null,null,He):(V(g.ec,g.fc,Y,J,ge,xe,Te,ke,ne,pe,Se,ie,I,q-C.A,I,q,He),++N);Re+2<Fe;Re+=2)ge=ne,xe=pe,Te=Se,ke=ie,pe+=m.Rc,ie+=m.Rc,q+=2*C.A,V(Y,(J+=2*m.fa)-m.fa,Y,J,ge,xe,Te,ke,ne,pe,Se,ie,I,q-C.A,I,q,He);return J+=m.fa,m.j+Fe<m.o?(n(g.ec,g.fc,Y,J,He),n(g.cc,g.dc,ne,pe,Be),n(g.Mc,g.Nc,Se,ie,Be),N--):1&Fe||V(Y,J,null,null,ne,pe,Se,ie,ne,pe,Se,ie,I,q+C.A,null,null,He),N}function Ut(m,g,N){var C=m.F,I=[m.J];if(C!=null){var q=m.U,V=g.ba.S,Y=V==cg||V==ug;g=g.ba.f.RGBA;var J=[0],ne=m.ka;J[0]=m.T,m.Kb&&(ne==0?--J[0]:(--ne,I[0]-=m.width),m.j+m.ka+m.T==m.o&&(J[0]=m.o-m.j-ne));var pe=g.eb;ne=g.fb+ne*g.A,m=Hk(C,I[0],m.width,q,J,pe,ne+(Y?0:3),g.A),t(N==J),m&&wt(V)&&bh(pe,ne,Y,q,J,g.A)}return 0}function Tr(m){var g=m.ma,N=g.ba.S,C=11>N,I=N==og||N==lg||N==cg||N==O1||N==12||wt(N);if(g.memory=null,g.Ib=null,g.Jb=null,g.Nd=null,!dh(g.Oa,m,I?11:12))return 0;if(I&&wt(N)&&lh(),m.da)alert("todo:use_scaling");else{if(C){if(g.Ib=G,m.Kb){if(N=m.U+1>>1,g.memory=s(m.U+2*N),g.memory==null)return 0;g.ec=g.memory,g.fc=0,g.cc=g.ec,g.dc=g.fc+m.U,g.Mc=g.cc,g.Nc=g.dc+N,g.Ib=Je,lh()}}else alert("todo:EmitYUV");I&&(g.Jb=Ut,C&&Us())}if(C&&!oS){for(m=0;256>m;++m)zF[m]=89858*(m-128)+fg>>dg,WF[m]=-22014*(m-128)+fg,VF[m]=-45773*(m-128),HF[m]=113618*(m-128)+fg>>dg;for(m=xh;m<M1;++m)g=76283*(m-16)+fg>>dg,KF[m-xh]=_a(g,255),GF[m-xh]=_a(g+8>>4,15);oS=1}return 1}function it(m){var g=m.ma,N=m.U,C=m.T;return t(!(1&m.ka)),0>=N||0>=C?0:(N=g.Ib(m,g),g.Jb!=null&&g.Jb(m,g,N),g.Dc+=N,1)}function sn(m){m.ma.memory=null}function bn(m,g,N,C){return M(m,8)!=47?0:(g[0]=M(m,14)+1,N[0]=M(m,14)+1,C[0]=M(m,1),M(m,3)!=0?0:!m.h)}function br(m,g){if(4>m)return m+1;var N=m-2>>1;return(2+(1&m)<<N)+M(g,N)+1}function Dr(m,g){return 120<g?g-120:1<=(N=((N=AF[g-1])>>4)*m+(8-(15&N)))?N:1;var N}function Pr(m,g,N){var C=H(N),I=m[g+=255&C].g-8;return 0<I&&(te(N,N.u+8),C=H(N),g+=m[g].value,g+=C&(1<<I)-1),te(N,N.u+m[g].g),m[g].value}function Mr(m,g,N){return N.g+=m.g,N.value+=m.value<<g>>>0,t(8>=N.g),m.g}function Gr(m,g,N){var C=m.xc;return t((g=C==0?0:m.vc[m.md*(N>>C)+(g>>C)])<m.Wb),m.Ya[g]}function yc(m,g,N,C){var I=m.ab,q=m.c*g,V=m.C;g=V+g;var Y=N,J=C;for(C=m.Ta,N=m.Ua;0<I--;){var ne=m.gc[I],pe=V,Se=g,ie=Y,ge=J,xe=(J=C,Y=N,ne.Ea);switch(t(pe<Se),t(Se<=ne.nc),ne.hc){case 2:an(ie,ge,(Se-pe)*xe,J,Y);break;case 0:var Te=pe,ke=Se,Re=J,Fe=Y,He=(ht=ne).Ea;Te==0&&(hh(ie,ge,null,null,1,Re,Fe),Ze(ie,ge+1,0,0,He-1,Re,Fe+1),ge+=He,Fe+=He,++Te);for(var Be=1<<ht.b,_t=Be-1,st=Ce(He,ht.b),Ht=ht.K,ht=ht.w+(Te>>ht.b)*st;Te<ke;){var Xt=Ht,Pn=ht,Vt=1;for(Qu(ie,ge,Re,Fe-He,1,Re,Fe);Vt<He;){var pt=(Vt&~_t)+Be;pt>He&&(pt=He),(0,mh[Xt[Pn++]>>8&15])(ie,ge+ +Vt,Re,Fe+Vt-He,pt-Vt,Re,Fe+Vt),Vt=pt}ge+=He,Fe+=He,++Te&_t||(ht+=st)}Se!=ne.nc&&n(J,Y-xe,J,Y+(Se-pe-1)*xe,xe);break;case 1:for(xe=ie,ke=ge,He=(ie=ne.Ea)-(Fe=ie&~(Re=(ge=1<<ne.b)-1)),Te=Ce(ie,ne.b),Be=ne.K,ne=ne.w+(pe>>ne.b)*Te;pe<Se;){for(_t=Be,st=ne,Ht=new me,ht=ke+Fe,Xt=ke+ie;ke<ht;)ze(_t[st++],Ht),gh(Ht,xe,ke,ge,J,Y),ke+=ge,Y+=ge;ke<Xt&&(ze(_t[st++],Ht),gh(Ht,xe,ke,He,J,Y),ke+=He,Y+=He),++pe&Re||(ne+=Te)}break;case 3:if(ie==J&&ge==Y&&0<ne.b){for(ke=J,ie=xe=Y+(Se-pe)*xe-(Fe=(Se-pe)*Ce(ne.Ea,ne.b)),ge=J,Re=Y,Te=[],Fe=(He=Fe)-1;0<=Fe;--Fe)Te[Fe]=ge[Re+Fe];for(Fe=He-1;0<=Fe;--Fe)ke[ie+Fe]=Te[Fe];ng(ne,pe,Se,J,xe,J,Y)}else ng(ne,pe,Se,ie,ge,J,Y)}Y=C,J=N}J!=N&&n(C,N,Y,J,q)}function Ko(m,g){var N=m.V,C=m.Ba+m.c*m.C,I=g-m.C;if(t(g<=m.l.o),t(16>=I),0<I){var q=m.l,V=m.Ta,Y=m.Ua,J=q.width;if(yc(m,I,N,C),I=Y=[Y],t((N=m.C)<(C=g)),t(q.v<q.va),C>q.o&&(C=q.o),N<q.j){var ne=q.j-N;N=q.j,I[0]+=ne*J}if(N>=C?N=0:(I[0]+=4*q.v,q.ka=N-q.j,q.U=q.va-q.v,q.T=C-N,N=1),N){if(Y=Y[0],11>(N=m.ca).S){var pe=N.f.RGBA,Se=(C=N.S,I=q.U,q=q.T,ne=pe.eb,pe.A),ie=q;for(pe=pe.fb+m.Ma*pe.A;0<ie--;){var ge=V,xe=Y,Te=I,ke=ne,Re=pe;switch(C){case ag:vh(ge,xe,Te,ke,Re);break;case og:Qo(ge,xe,Te,ke,Re);break;case R1:Qo(ge,xe,Te,ke,Re),bh(ke,Re,0,Te,1,0);break;case Xk:Oc(ge,xe,Te,ke,Re);break;case lg:tt(ge,xe,Te,ke,Re,1);break;case L1:tt(ge,xe,Te,ke,Re,1),bh(ke,Re,0,Te,1,0);break;case cg:tt(ge,xe,Te,ke,Re,0);break;case ug:tt(ge,xe,Te,ke,Re,0),bh(ke,Re,1,Te,1,0);break;case O1:el(ge,xe,Te,ke,Re);break;case I1:el(ge,xe,Te,ke,Re),zk(ke,Re,Te,1,0);break;case Jk:tl(ge,xe,Te,ke,Re);break;default:t(0)}Y+=J,pe+=Se}m.Ma+=q}else alert("todo:EmitRescaledRowsYUVA");t(m.Ma<=N.height)}}m.C=g,t(m.C<=m.i)}function Ms(m){var g;if(0<m.ua)return 0;for(g=0;g<m.Wb;++g){var N=m.Ya[g].G,C=m.Ya[g].H;if(0<N[1][C[1]+0].g||0<N[2][C[2]+0].g||0<N[3][C[3]+0].g)return 0}return 1}function wa(m,g,N,C,I,q){if(m.Z!=0){var V=m.qd,Y=m.rd;for(t(il[m.Z]!=null);g<N;++g)il[m.Z](V,Y,C,I,C,I,q),V=C,Y=I,I+=q;m.qd=V,m.rd=Y}}function $s(m,g){var N=m.l.ma,C=N.Z==0||N.Z==1?m.l.j:m.C;if(C=m.C<C?C:m.C,t(g<=m.l.o),g>C){var I=m.l.width,q=N.ca,V=N.tb+I*C,Y=m.V,J=m.Ba+m.c*C,ne=m.gc;t(m.ab==1),t(ne[0].hc==3),Ea(ne[0],C,g,Y,J,q,V),wa(N,C,g,q,V,I)}m.C=m.Ma=g}function Bs(m,g,N,C,I,q,V){var Y=m.$/C,J=m.$%C,ne=m.m,pe=m.s,Se=N+m.$,ie=Se;I=N+C*I;var ge=N+C*q,xe=280+pe.ua,Te=m.Pb?Y:16777216,ke=0<pe.ua?pe.Wa:null,Re=pe.wc,Fe=Se<ge?Gr(pe,J,Y):null;t(m.C<q),t(ge<=I);var He=!1;e:for(;;){for(;He||Se<ge;){var Be=0;if(Y>=Te){var _t=Se-N;t((Te=m).Pb),Te.wd=Te.m,Te.xd=_t,0<Te.s.ua&&Pe(Te.s.Wa,Te.s.vb),Te=Y+PF}if(J&Re||(Fe=Gr(pe,J,Y)),t(Fe!=null),Fe.Qb&&(g[Se]=Fe.qb,He=!0),!He)if(Q(ne),Fe.jc){Be=ne,_t=g;var st=Se,Ht=Fe.pd[H(Be)&Pc-1];t(Fe.jc),256>Ht.g?(te(Be,Be.u+Ht.g),_t[st]=Ht.value,Be=0):(te(Be,Be.u+Ht.g-256),t(256<=Ht.value),Be=Ht.value),Be==0&&(He=!0)}else Be=Pr(Fe.G[0],Fe.H[0],ne);if(ne.h)break;if(He||256>Be){if(!He)if(Fe.nd)g[Se]=(Fe.qb|Be<<8)>>>0;else{if(Q(ne),He=Pr(Fe.G[1],Fe.H[1],ne),Q(ne),_t=Pr(Fe.G[2],Fe.H[2],ne),st=Pr(Fe.G[3],Fe.H[3],ne),ne.h)break;g[Se]=(st<<24|He<<16|Be<<8|_t)>>>0}if(He=!1,++Se,++J>=C&&(J=0,++Y,V!=null&&Y<=q&&!(Y%16)&&V(m,Y),ke!=null))for(;ie<Se;)Be=g[ie++],ke.X[(506832829*Be&4294967295)>>>ke.Mb]=Be}else if(280>Be){if(Be=br(Be-256,ne),_t=Pr(Fe.G[4],Fe.H[4],ne),Q(ne),_t=Dr(C,_t=br(_t,ne)),ne.h)break;if(Se-N<_t||I-Se<Be)break e;for(st=0;st<Be;++st)g[Se+st]=g[Se+st-_t];for(Se+=Be,J+=Be;J>=C;)J-=C,++Y,V!=null&&Y<=q&&!(Y%16)&&V(m,Y);if(t(Se<=I),J&Re&&(Fe=Gr(pe,J,Y)),ke!=null)for(;ie<Se;)Be=g[ie++],ke.X[(506832829*Be&4294967295)>>>ke.Mb]=Be}else{if(!(Be<xe))break e;for(He=Be-280,t(ke!=null);ie<Se;)Be=g[ie++],ke.X[(506832829*Be&4294967295)>>>ke.Mb]=Be;Be=Se,t(!(He>>>(_t=ke).Xa)),g[Be]=_t.X[He],He=!0}He||t(ne.h==re(ne))}if(m.Pb&&ne.h&&Se<I)t(m.m.h),m.a=5,m.m=m.wd,m.$=m.xd,0<m.s.ua&&Pe(m.s.vb,m.s.Wa);else{if(ne.h)break e;V!=null&&V(m,Y>q?q:Y),m.a=0,m.$=Se-N}return 1}return m.a=3,0}function vs(m){t(m!=null),m.vc=null,m.yc=null,m.Ya=null;var g=m.Wa;g!=null&&(g.X=null),m.vb=null,t(m!=null)}function bc(){var m=new Pt;return m==null?null:(m.a=0,m.xb=tS,jt("Predictor","VP8LPredictors"),jt("Predictor","VP8LPredictors_C"),jt("PredictorAdd","VP8LPredictorsAdd"),jt("PredictorAdd","VP8LPredictorsAdd_C"),an=Ke,gh=vt,vh=rr,Qo=be,el=Ae,tl=Qe,Oc=ut,P.VP8LMapColor32b=Na,P.VP8LMapColor8b=ph,m)}function xa(m,g,N,C,I){var q=1,V=[m],Y=[g],J=C.m,ne=C.s,pe=null,Se=0;e:for(;;){if(N)for(;q&&M(J,1);){var ie=V,ge=Y,xe=C,Te=1,ke=xe.m,Re=xe.gc[xe.ab],Fe=M(ke,2);if(xe.Oc&1<<Fe)q=0;else{switch(xe.Oc|=1<<Fe,Re.hc=Fe,Re.Ea=ie[0],Re.nc=ge[0],Re.K=[null],++xe.ab,t(4>=xe.ab),Fe){case 0:case 1:Re.b=M(ke,3)+2,Te=xa(Ce(Re.Ea,Re.b),Ce(Re.nc,Re.b),0,xe,Re.K),Re.K=Re.K[0];break;case 3:var He,Be=M(ke,8)+1,_t=16<Be?0:4<Be?1:2<Be?2:3;if(ie[0]=Ce(Re.Ea,_t),Re.b=_t,He=Te=xa(Be,1,0,xe,Re.K)){var st,Ht=Be,ht=Re,Xt=1<<(8>>ht.b),Pn=s(Xt);if(Pn==null)He=0;else{var Vt=ht.K[0],pt=ht.w;for(Pn[0]=ht.K[0][0],st=1;st<1*Ht;++st)Pn[st]=ee(Vt[pt+st],Pn[st-1]);for(;st<4*Xt;++st)Pn[st]=0;ht.K[0]=null,ht.K[0]=Pn,He=1}}Te=He;break;case 2:break;default:t(0)}q=Te}}if(V=V[0],Y=Y[0],q&&M(J,1)&&!(q=1<=(Se=M(J,4))&&11>=Se)){C.a=3;break e}var Ye;if(Ye=q)t:{var ln,Mt,er,Or=C,Wn=V,yi=Y,Yr=Se,ri=N,bi=Or.m,On=Or.s,ir=[null],fr=1,Zr=0,hr=TF[Yr];r:for(;;){if(ri&&M(bi,1)){var Kn=M(bi,3)+2,Hs=Ce(Wn,Kn),cn=Ce(yi,Kn),Oi=Hs*cn;if(!xa(Hs,cn,0,Or,ir))break r;for(ir=ir[0],On.xc=Kn,ln=0;ln<Oi;++ln){var xr=ir[ln]>>8&65535;ir[ln]=xr,xr>=fr&&(fr=xr+1)}}if(bi.h)break r;for(Mt=0;5>Mt;++Mt){var Rn=Qk[Mt];!Mt&&0<Yr&&(Rn+=1<<Yr),Zr<Rn&&(Zr=Rn)}var Zi=a(fr*hr,K),wi=fr,Xi=a(wi,le);if(Xi==null)var Ji=null;else t(65536>=wi),Ji=Xi;var Ri=s(Zr);if(Ji==null||Ri==null||Zi==null){Or.a=1;break r}var Qi=Zi;for(ln=er=0;ln<fr;++ln){var Nr=Ji[ln],es=Nr.G,Vs=Nr.H,Lc=0,yo=1,Gn=0;for(Mt=0;5>Mt;++Mt){Rn=Qk[Mt],es[Mt]=Qi,Vs[Mt]=er,!Mt&&0<Yr&&(Rn+=1<<Yr);i:{var pg,$1=Rn,mg=Or,_h=Ri,XF=Qi,JF=er,B1=0,sl=mg.m,QF=M(sl,1);if(i(_h,0,0,$1),QF){var eD=M(sl,1)+1,tD=M(sl,1),uS=M(sl,tD==0?1:8);_h[uS]=1,eD==2&&(_h[uS=M(sl,8)]=1);var gg=1}else{var dS=s(19),fS=M(sl,4)+4;if(19<fS){mg.a=3;var vg=0;break i}for(pg=0;pg<fS;++pg)dS[jF[pg]]=M(sl,3);var q1=void 0,kh=void 0,hS=mg,rD=dS,yg=$1,pS=_h,U1=0,al=hS.m,mS=8,gS=a(128,K);n:for(;A(gS,0,7,rD,19);){if(M(al,1)){var nD=2+2*M(al,3);if((q1=2+M(al,nD))>yg)break n}else q1=yg;for(kh=0;kh<yg&&q1--;){Q(al);var vS=gS[0+(127&H(al))];te(al,al.u+vS.g);var td=vS.value;if(16>td)pS[kh++]=td,td!=0&&(mS=td);else{var iD=td==16,yS=td-16,sD=EF[yS],bS=M(al,NF[yS])+sD;if(kh+bS>yg)break n;for(var aD=iD?mS:0;0<bS--;)pS[kh++]=aD}}U1=1;break n}U1||(hS.a=3),gg=U1}(gg=gg&&!sl.h)&&(B1=A(XF,JF,8,_h,$1)),gg&&B1!=0?vg=B1:(mg.a=3,vg=0)}if(vg==0)break r;if(yo&&CF[Mt]==1&&(yo=Qi[er].g==0),Lc+=Qi[er].g,er+=vg,3>=Mt){var Sh,z1=Ri[0];for(Sh=1;Sh<Rn;++Sh)Ri[Sh]>z1&&(z1=Ri[Sh]);Gn+=z1}}if(Nr.nd=yo,Nr.Qb=0,yo&&(Nr.qb=(es[3][Vs[3]+0].value<<24|es[1][Vs[1]+0].value<<16|es[2][Vs[2]+0].value)>>>0,Lc==0&&256>es[0][Vs[0]+0].value&&(Nr.Qb=1,Nr.qb+=es[0][Vs[0]+0].value<<8)),Nr.jc=!Nr.Qb&&6>Gn,Nr.jc){var bg,bo=Nr;for(bg=0;bg<Pc;++bg){var ol=bg,ll=bo.pd[ol],wg=bo.G[0][bo.H[0]+ol];256<=wg.value?(ll.g=wg.g+256,ll.value=wg.value):(ll.g=0,ll.value=0,ol>>=Mr(wg,8,ll),ol>>=Mr(bo.G[1][bo.H[1]+ol],16,ll),ol>>=Mr(bo.G[2][bo.H[2]+ol],0,ll),Mr(bo.G[3][bo.H[3]+ol],24,ll))}}}On.vc=ir,On.Wb=fr,On.Ya=Ji,On.yc=Zi,Ye=1;break t}Ye=0}if(!(q=Ye)){C.a=3;break e}if(0<Se){if(ne.ua=1<<Se,!Z(ne.Wa,Se)){C.a=1,q=0;break e}}else ne.ua=0;var H1=C,wS=V,oD=Y,V1=H1.s,W1=V1.xc;if(H1.c=wS,H1.i=oD,V1.md=Ce(wS,W1),V1.wc=W1==0?-1:(1<<W1)-1,N){C.xb=MF;break e}if((pe=s(V*Y))==null){C.a=1,q=0;break e}q=(q=Bs(C,pe,0,V,Y,Y,null))&&!J.h;break e}return q?(I!=null?I[0]=pe:(t(pe==null),t(N)),C.$=0,N||vs(ne)):vs(ne),q}function wc(m,g){var N=m.c*m.i,C=N+g+16*g;return t(m.c<=g),m.V=s(C),m.V==null?(m.Ta=null,m.Ua=0,m.a=1,0):(m.Ta=m.V,m.Ua=m.Ba+N+g,1)}function zu(m,g){var N=m.C,C=g-N,I=m.V,q=m.Ba+m.c*N;for(t(g<=m.l.o);0<C;){var V=16<C?16:C,Y=m.l.ma,J=m.l.width,ne=J*V,pe=Y.ca,Se=Y.tb+J*N,ie=m.Ta,ge=m.Ua;yc(m,V,I,q),Vk(ie,ge,pe,Se,ne),wa(Y,N,N+V,pe,Se,J),C-=V,I+=V*m.c,N+=V}t(N==g),m.C=m.Ma=g}function Hu(){this.ub=this.yd=this.td=this.Rb=0}function Vu(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function m1(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function Xf(){this.Yb=function(){var m=[];return function g(N,C,I){for(var q=I[C],V=0;V<q&&(N.push(I.length>C+1?[]:0),!(I.length<C+1));V++)g(N[V],C+1,I)}(m,0,[3,11]),m}()}function $m(){this.jb=s(3),this.Wc=o([4,8],Xf),this.Xc=o([4,17],Xf)}function Bm(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function ys(){this.ld=this.La=this.dd=this.tc=0}function Jf(){this.Na=this.la=0}function qm(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Qf(){this.ad=s(384),this.Za=0,this.Ob=s(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Um(){this.uc=this.M=this.Nb=0,this.wa=Array(new ys),this.Y=0,this.ya=Array(new Qf),this.aa=0,this.l=new Wu}function zm(){this.y=s(16),this.f=s(8),this.ea=s(8)}function Hm(){this.cb=this.a=0,this.sc="",this.m=new j,this.Od=new Hu,this.Kc=new Vu,this.ed=new Bm,this.Qa=new m1,this.Ic=this.$c=this.Aa=0,this.D=new Um,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,j),this.ia=0,this.pb=a(4,qm),this.Pa=new $m,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new zm),this.Hd=0,this.rb=Array(new Jf),this.sb=0,this.wa=Array(new ys),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Qf),this.L=this.aa=0,this.gd=o([4,2],ys),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function _a(m,g){return 0>m?0:m>g?g:m}function Wu(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function g1(){var m=new Hm;return m!=null&&(m.a=0,m.sc="OK",m.cb=0,m.Xb=0,wh||(wh=Ku)),m}function wn(m,g,N){return m.a==0&&(m.a=g,m.sc=N,m.cb=0),0}function Vm(m,g,N){return 3<=N&&m[g+0]==157&&m[g+1]==1&&m[g+2]==42}function ka(m,g){if(m==null)return 0;if(m.a=0,m.sc="OK",g==null)return wn(m,2,"null VP8Io passed to VP8GetHeaders()");var N=g.data,C=g.w,I=g.ha;if(4>I)return wn(m,7,"Truncated header.");var q=N[C+0]|N[C+1]<<8|N[C+2]<<16,V=m.Od;if(V.Rb=!(1&q),V.td=q>>1&7,V.yd=q>>4&1,V.ub=q>>5,3<V.td)return wn(m,3,"Incorrect keyframe parameters.");if(!V.yd)return wn(m,4,"Frame not displayable.");C+=3,I-=3;var Y=m.Kc;if(V.Rb){if(7>I)return wn(m,7,"cannot parse picture header");if(!Vm(N,C,I))return wn(m,3,"Bad code word");Y.c=16383&(N[C+4]<<8|N[C+3]),Y.Td=N[C+4]>>6,Y.i=16383&(N[C+6]<<8|N[C+5]),Y.Ud=N[C+6]>>6,C+=7,I-=7,m.za=Y.c+15>>4,m.Ub=Y.i+15>>4,g.width=Y.c,g.height=Y.i,g.Da=0,g.j=0,g.v=0,g.va=g.width,g.o=g.height,g.da=0,g.ib=g.width,g.hb=g.height,g.U=g.width,g.T=g.height,i((q=m.Pa).jb,0,255,q.jb.length),t((q=m.Qa)!=null),q.Cb=0,q.Bb=0,q.Fb=1,i(q.Zb,0,0,q.Zb.length),i(q.Lb,0,0,q.Lb)}if(V.ub>I)return wn(m,7,"bad partition length");oe(q=m.m,N,C,V.ub),C+=V.ub,I-=V.ub,V.Rb&&(Y.Ld=de(q),Y.Kd=de(q)),Y=m.Qa;var J,ne=m.Pa;if(t(q!=null),t(Y!=null),Y.Cb=de(q),Y.Cb){if(Y.Bb=de(q),de(q)){for(Y.Fb=de(q),J=0;4>J;++J)Y.Zb[J]=de(q)?F(q,7):0;for(J=0;4>J;++J)Y.Lb[J]=de(q)?F(q,6):0}if(Y.Bb)for(J=0;3>J;++J)ne.jb[J]=de(q)?se(q,8):255}else Y.Bb=0;if(q.Ka)return wn(m,3,"cannot parse segment header");if((Y=m.ed).zd=de(q),Y.Tb=se(q,6),Y.wb=se(q,3),Y.Pc=de(q),Y.Pc&&de(q)){for(ne=0;4>ne;++ne)de(q)&&(Y.vd[ne]=F(q,6));for(ne=0;4>ne;++ne)de(q)&&(Y.od[ne]=F(q,6))}if(m.L=Y.Tb==0?0:Y.zd?1:2,q.Ka)return wn(m,3,"cannot parse filter header");var pe=I;if(I=J=C,C=J+pe,Y=pe,m.Xb=(1<<se(m.m,2))-1,pe<3*(ne=m.Xb))N=7;else{for(J+=3*ne,Y-=3*ne,pe=0;pe<ne;++pe){var Se=N[I+0]|N[I+1]<<8|N[I+2]<<16;Se>Y&&(Se=Y),oe(m.Jc[+pe],N,J,Se),J+=Se,Y-=Se,I+=3}oe(m.Jc[+ne],N,J,Y),N=J<C?0:5}if(N!=0)return wn(m,N,"cannot parse partitions");for(N=se(J=m.m,7),I=de(J)?F(J,4):0,C=de(J)?F(J,4):0,Y=de(J)?F(J,4):0,ne=de(J)?F(J,4):0,J=de(J)?F(J,4):0,pe=m.Qa,Se=0;4>Se;++Se){if(pe.Cb){var ie=pe.Zb[Se];pe.Fb||(ie+=N)}else{if(0<Se){m.pb[Se]=m.pb[0];continue}ie=N}var ge=m.pb[Se];ge.Sc[0]=F1[_a(ie+I,127)],ge.Sc[1]=D1[_a(ie+0,127)],ge.Eb[0]=2*F1[_a(ie+C,127)],ge.Eb[1]=101581*D1[_a(ie+Y,127)]>>16,8>ge.Eb[1]&&(ge.Eb[1]=8),ge.Qc[0]=F1[_a(ie+ne,117)],ge.Qc[1]=D1[_a(ie+J,127)],ge.lc=ie+J}if(!V.Rb)return wn(m,4,"Not a key frame.");for(de(q),V=m.Pa,N=0;4>N;++N){for(I=0;8>I;++I)for(C=0;3>C;++C)for(Y=0;11>Y;++Y)ne=he(q,FF[N][I][C][Y])?se(q,8):LF[N][I][C][Y],V.Wc[N][I].Yb[C][Y]=ne;for(I=0;17>I;++I)V.Xc[N][I]=V.Wc[N][DF[I]]}return m.kc=de(q),m.kc&&(m.Bd=se(q,8)),m.cb=1}function Ku(m,g,N,C,I,q,V){var Y=g[I].Yb[N];for(N=0;16>I;++I){if(!he(m,Y[N+0]))return I;for(;!he(m,Y[N+1]);)if(Y=g[++I].Yb[0],N=0,I==16)return 16;var J=g[I+1].Yb;if(he(m,Y[N+2])){var ne=m,pe=0;if(he(ne,(ie=Y)[(Se=N)+3]))if(he(ne,ie[Se+6])){for(Y=0,Se=2*(pe=he(ne,ie[Se+8]))+(ie=he(ne,ie[Se+9+pe])),pe=0,ie=OF[Se];ie[Y];++Y)pe+=pe+he(ne,ie[Y]);pe+=3+(8<<Se)}else he(ne,ie[Se+7])?(pe=7+2*he(ne,165),pe+=he(ne,145)):pe=5+he(ne,159);else pe=he(ne,ie[Se+4])?3+he(ne,ie[Se+5]):2;Y=J[2]}else pe=1,Y=J[1];J=V+RF[I],0>(ne=m).b&&ce(ne);var Se,ie=ne.b,ge=(Se=ne.Ca>>1)-(ne.I>>ie)>>31;--ne.b,ne.Ca+=ge,ne.Ca|=1,ne.I-=(Se+1&ge)<<ie,q[J]=((pe^ge)-ge)*C[(0<I)+0]}return 16}function Wm(m){var g=m.rb[m.sb-1];g.la=0,g.Na=0,i(m.zc,0,0,m.zc.length),m.ja=0}function bs(m,g,N,C,I){I=m[g+N+32*C]+(I>>3),m[g+N+32*C]=-256&I?0>I?0:255:I}function jn(m,g,N,C,I,q){bs(m,g,0,N,C+I),bs(m,g,1,N,C+q),bs(m,g,2,N,C-q),bs(m,g,3,N,C-I)}function io(m){return(20091*m>>16)+m}function Km(m,g,N,C){var I,q=0,V=s(16);for(I=0;4>I;++I){var Y=m[g+0]+m[g+8],J=m[g+0]-m[g+8],ne=(35468*m[g+4]>>16)-io(m[g+12]),pe=io(m[g+4])+(35468*m[g+12]>>16);V[q+0]=Y+pe,V[q+1]=J+ne,V[q+2]=J-ne,V[q+3]=Y-pe,q+=4,g++}for(I=q=0;4>I;++I)Y=(m=V[q+0]+4)+V[q+8],J=m-V[q+8],ne=(35468*V[q+4]>>16)-io(V[q+12]),bs(N,C,0,0,Y+(pe=io(V[q+4])+(35468*V[q+12]>>16))),bs(N,C,1,0,J+ne),bs(N,C,2,0,J-ne),bs(N,C,3,0,Y-pe),q++,C+=32}function v1(m,g,N,C){var I=m[g+0]+4,q=35468*m[g+4]>>16,V=io(m[g+4]),Y=35468*m[g+1]>>16;jn(N,C,0,I+V,m=io(m[g+1]),Y),jn(N,C,1,I+q,m,Y),jn(N,C,2,I-q,m,Y),jn(N,C,3,I-V,m,Y)}function y1(m,g,N,C,I){Km(m,g,N,C),I&&Km(m,g+16,N,C+4)}function Sa(m,g,N,C){Rc(m,g+0,N,C,1),Rc(m,g+32,N,C+128,1)}function Gm(m,g,N,C){var I;for(m=m[g+0]+4,I=0;4>I;++I)for(g=0;4>g;++g)bs(N,C,g,I,m)}function Ym(m,g,N,C){m[g+0]&&ur(m,g+0,N,C),m[g+16]&&ur(m,g+16,N,C+4),m[g+32]&&ur(m,g+32,N,C+128),m[g+48]&&ur(m,g+48,N,C+128+4)}function Gu(m,g,N,C){var I,q=s(16);for(I=0;4>I;++I){var V=m[g+0+I]+m[g+12+I],Y=m[g+4+I]+m[g+8+I],J=m[g+4+I]-m[g+8+I],ne=m[g+0+I]-m[g+12+I];q[0+I]=V+Y,q[8+I]=V-Y,q[4+I]=ne+J,q[12+I]=ne-J}for(I=0;4>I;++I)V=(m=q[0+4*I]+3)+q[3+4*I],Y=q[1+4*I]+q[2+4*I],J=q[1+4*I]-q[2+4*I],ne=m-q[3+4*I],N[C+0]=V+Y>>3,N[C+16]=ne+J>>3,N[C+32]=V-Y>>3,N[C+48]=ne-J>>3,C+=64}function xc(m,g,N){var C,I=g-32,q=Yi,V=255-m[I-1];for(C=0;C<N;++C){var Y,J=q,ne=V+m[g-1];for(Y=0;Y<N;++Y)m[g+Y]=J[ne+m[I+Y]];g+=32}}function b1(m,g){xc(m,g,4)}function w1(m,g){xc(m,g,8)}function x1(m,g){xc(m,g,16)}function eh(m,g){var N;for(N=0;16>N;++N)n(m,g+32*N,m,g-32,16)}function Zm(m,g){var N;for(N=16;0<N;--N)i(m,g,m[g-1],16),g+=32}function qs(m,g,N){var C;for(C=0;16>C;++C)i(g,N+32*C,m,16)}function _1(m,g){var N,C=16;for(N=0;16>N;++N)C+=m[g-1+32*N]+m[g+N-32];qs(C>>5,m,g)}function _c(m,g){var N,C=8;for(N=0;16>N;++N)C+=m[g-1+32*N];qs(C>>4,m,g)}function th(m,g){var N,C=8;for(N=0;16>N;++N)C+=m[g+N-32];qs(C>>4,m,g)}function k1(m,g){qs(128,m,g)}function Rt(m,g,N){return m+2*g+N+2>>2}function S1(m,g){var N,C=g-32;for(C=new Uint8Array([Rt(m[C-1],m[C+0],m[C+1]),Rt(m[C+0],m[C+1],m[C+2]),Rt(m[C+1],m[C+2],m[C+3]),Rt(m[C+2],m[C+3],m[C+4])]),N=0;4>N;++N)n(m,g+32*N,C,0,C.length)}function N1(m,g){var N=m[g-1],C=m[g-1+32],I=m[g-1+64],q=m[g-1+96];we(m,g+0,16843009*Rt(m[g-1-32],N,C)),we(m,g+32,16843009*Rt(N,C,I)),we(m,g+64,16843009*Rt(C,I,q)),we(m,g+96,16843009*Rt(I,q,q))}function E1(m,g){var N,C=4;for(N=0;4>N;++N)C+=m[g+N-32]+m[g-1+32*N];for(C>>=3,N=0;4>N;++N)i(m,g+32*N,C,4)}function so(m,g){var N=m[g-1+0],C=m[g-1+32],I=m[g-1+64],q=m[g-1-32],V=m[g+0-32],Y=m[g+1-32],J=m[g+2-32],ne=m[g+3-32];m[g+0+96]=Rt(C,I,m[g-1+96]),m[g+1+96]=m[g+0+64]=Rt(N,C,I),m[g+2+96]=m[g+1+64]=m[g+0+32]=Rt(q,N,C),m[g+3+96]=m[g+2+64]=m[g+1+32]=m[g+0+0]=Rt(V,q,N),m[g+3+64]=m[g+2+32]=m[g+1+0]=Rt(Y,V,q),m[g+3+32]=m[g+2+0]=Rt(J,Y,V),m[g+3+0]=Rt(ne,J,Y)}function ao(m,g){var N=m[g+1-32],C=m[g+2-32],I=m[g+3-32],q=m[g+4-32],V=m[g+5-32],Y=m[g+6-32],J=m[g+7-32];m[g+0+0]=Rt(m[g+0-32],N,C),m[g+1+0]=m[g+0+32]=Rt(N,C,I),m[g+2+0]=m[g+1+32]=m[g+0+64]=Rt(C,I,q),m[g+3+0]=m[g+2+32]=m[g+1+64]=m[g+0+96]=Rt(I,q,V),m[g+3+32]=m[g+2+64]=m[g+1+96]=Rt(q,V,Y),m[g+3+64]=m[g+2+96]=Rt(V,Y,J),m[g+3+96]=Rt(Y,J,J)}function C1(m,g){var N=m[g-1+0],C=m[g-1+32],I=m[g-1+64],q=m[g-1-32],V=m[g+0-32],Y=m[g+1-32],J=m[g+2-32],ne=m[g+3-32];m[g+0+0]=m[g+1+64]=q+V+1>>1,m[g+1+0]=m[g+2+64]=V+Y+1>>1,m[g+2+0]=m[g+3+64]=Y+J+1>>1,m[g+3+0]=J+ne+1>>1,m[g+0+96]=Rt(I,C,N),m[g+0+64]=Rt(C,N,q),m[g+0+32]=m[g+1+96]=Rt(N,q,V),m[g+1+32]=m[g+2+96]=Rt(q,V,Y),m[g+2+32]=m[g+3+96]=Rt(V,Y,J),m[g+3+32]=Rt(Y,J,ne)}function j1(m,g){var N=m[g+0-32],C=m[g+1-32],I=m[g+2-32],q=m[g+3-32],V=m[g+4-32],Y=m[g+5-32],J=m[g+6-32],ne=m[g+7-32];m[g+0+0]=N+C+1>>1,m[g+1+0]=m[g+0+64]=C+I+1>>1,m[g+2+0]=m[g+1+64]=I+q+1>>1,m[g+3+0]=m[g+2+64]=q+V+1>>1,m[g+0+32]=Rt(N,C,I),m[g+1+32]=m[g+0+96]=Rt(C,I,q),m[g+2+32]=m[g+1+96]=Rt(I,q,V),m[g+3+32]=m[g+2+96]=Rt(q,V,Y),m[g+3+64]=Rt(V,Y,J),m[g+3+96]=Rt(Y,J,ne)}function Yu(m,g){var N=m[g-1+0],C=m[g-1+32],I=m[g-1+64],q=m[g-1+96];m[g+0+0]=N+C+1>>1,m[g+2+0]=m[g+0+32]=C+I+1>>1,m[g+2+32]=m[g+0+64]=I+q+1>>1,m[g+1+0]=Rt(N,C,I),m[g+3+0]=m[g+1+32]=Rt(C,I,q),m[g+3+32]=m[g+1+64]=Rt(I,q,q),m[g+3+64]=m[g+2+64]=m[g+0+96]=m[g+1+96]=m[g+2+96]=m[g+3+96]=q}function rh(m,g){var N=m[g-1+0],C=m[g-1+32],I=m[g-1+64],q=m[g-1+96],V=m[g-1-32],Y=m[g+0-32],J=m[g+1-32],ne=m[g+2-32];m[g+0+0]=m[g+2+32]=N+V+1>>1,m[g+0+32]=m[g+2+64]=C+N+1>>1,m[g+0+64]=m[g+2+96]=I+C+1>>1,m[g+0+96]=q+I+1>>1,m[g+3+0]=Rt(Y,J,ne),m[g+2+0]=Rt(V,Y,J),m[g+1+0]=m[g+3+32]=Rt(N,V,Y),m[g+1+32]=m[g+3+64]=Rt(C,N,V),m[g+1+64]=m[g+3+96]=Rt(I,C,N),m[g+1+96]=Rt(q,I,C)}function kc(m,g){var N;for(N=0;8>N;++N)n(m,g+32*N,m,g-32,8)}function A1(m,g){var N;for(N=0;8>N;++N)i(m,g,m[g-1],8),g+=32}function oo(m,g,N){var C;for(C=0;8>C;++C)i(g,N+32*C,m,8)}function T1(m,g){var N,C=8;for(N=0;8>N;++N)C+=m[g+N-32]+m[g-1+32*N];oo(C>>4,m,g)}function nh(m,g){var N,C=4;for(N=0;8>N;++N)C+=m[g+N-32];oo(C>>3,m,g)}function ih(m,g){var N,C=4;for(N=0;8>N;++N)C+=m[g-1+32*N];oo(C>>3,m,g)}function Xm(m,g){oo(128,m,g)}function lo(m,g,N){var C=m[g-N],I=m[g+0],q=3*(I-C)+P1[1020+m[g-2*N]-m[g+N]],V=sg[112+(q+4>>3)];m[g-N]=Yi[255+C+sg[112+(q+3>>3)]],m[g+0]=Yi[255+I-V]}function sh(m,g,N,C){var I=m[g+0],q=m[g+N];return _s[255+m[g-2*N]-m[g-N]]>C||_s[255+q-I]>C}function Zu(m,g,N,C){return 4*_s[255+m[g-N]-m[g+0]]+_s[255+m[g-2*N]-m[g+N]]<=C}function ah(m,g,N,C,I){var q=m[g-3*N],V=m[g-2*N],Y=m[g-N],J=m[g+0],ne=m[g+N],pe=m[g+2*N],Se=m[g+3*N];return 4*_s[255+Y-J]+_s[255+V-ne]>C?0:_s[255+m[g-4*N]-q]<=I&&_s[255+q-V]<=I&&_s[255+V-Y]<=I&&_s[255+Se-pe]<=I&&_s[255+pe-ne]<=I&&_s[255+ne-J]<=I}function Sc(m,g,N,C){var I=2*C+1;for(C=0;16>C;++C)Zu(m,g+C,N,I)&&lo(m,g+C,N)}function oh(m,g,N,C){var I=2*C+1;for(C=0;16>C;++C)Zu(m,g+C*N,1,I)&&lo(m,g+C*N,1)}function Jm(m,g,N,C){var I;for(I=3;0<I;--I)Sc(m,g+=4*N,N,C)}function Qm(m,g,N,C){var I;for(I=3;0<I;--I)oh(m,g+=4,N,C)}function co(m,g,N,C,I,q,V,Y){for(q=2*q+1;0<I--;){if(ah(m,g,N,q,V))if(sh(m,g,N,Y))lo(m,g,N);else{var J=m,ne=g,pe=N,Se=J[ne-2*pe],ie=J[ne-pe],ge=J[ne+0],xe=J[ne+pe],Te=J[ne+2*pe],ke=27*(Fe=P1[1020+3*(ge-ie)+P1[1020+Se-xe]])+63>>7,Re=18*Fe+63>>7,Fe=9*Fe+63>>7;J[ne-3*pe]=Yi[255+J[ne-3*pe]+Fe],J[ne-2*pe]=Yi[255+Se+Re],J[ne-pe]=Yi[255+ie+ke],J[ne+0]=Yi[255+ge-ke],J[ne+pe]=Yi[255+xe-Re],J[ne+2*pe]=Yi[255+Te-Fe]}g+=C}}function uo(m,g,N,C,I,q,V,Y){for(q=2*q+1;0<I--;){if(ah(m,g,N,q,V))if(sh(m,g,N,Y))lo(m,g,N);else{var J=m,ne=g,pe=N,Se=J[ne-pe],ie=J[ne+0],ge=J[ne+pe],xe=sg[112+(4+(Te=3*(ie-Se))>>3)],Te=sg[112+(Te+3>>3)],ke=xe+1>>1;J[ne-2*pe]=Yi[255+J[ne-2*pe]+ke],J[ne-pe]=Yi[255+Se+Te],J[ne+0]=Yi[255+ie-xe],J[ne+pe]=Yi[255+ge-ke]}g+=C}}function eg(m,g,N,C,I,q){co(m,g,N,1,16,C,I,q)}function Nc(m,g,N,C,I,q){co(m,g,1,N,16,C,I,q)}function tg(m,g,N,C,I,q){var V;for(V=3;0<V;--V)uo(m,g+=4*N,N,1,16,C,I,q)}function k(m,g,N,C,I,q){var V;for(V=3;0<V;--V)uo(m,g+=4,1,N,16,C,I,q)}function L(m,g,N,C,I,q,V,Y){co(m,g,I,1,8,q,V,Y),co(N,C,I,1,8,q,V,Y)}function ae(m,g,N,C,I,q,V,Y){co(m,g,1,I,8,q,V,Y),co(N,C,1,I,8,q,V,Y)}function fe(m,g,N,C,I,q,V,Y){uo(m,g+4*I,I,1,8,q,V,Y),uo(N,C+4*I,I,1,8,q,V,Y)}function ye(m,g,N,C,I,q,V,Y){uo(m,g+4,1,I,8,q,V,Y),uo(N,C+4,1,I,8,q,V,Y)}function Ie(){this.ba=new Lt,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Qt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function $e(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ct(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function xt(){this.ua=0,this.Wa=new et,this.vb=new et,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new le,this.yc=new K}function Pt(){this.xb=this.a=0,this.l=new Wu,this.ca=new Lt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new U,this.Pb=0,this.wd=new U,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new xt,this.ab=0,this.gc=a(4,ct),this.Oc=0}function zt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Wu,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function nr(m,g,N,C,I,q,V){for(m=m==null?0:m[g+0],g=0;g<V;++g)I[q+g]=m+N[C+g]&255,m=I[q+g]}function Hr(m,g,N,C,I,q,V){var Y;if(m==null)nr(null,null,N,C,I,q,V);else for(Y=0;Y<V;++Y)I[q+Y]=m[g+Y]+N[C+Y]&255}function xn(m,g,N,C,I,q,V){if(m==null)nr(null,null,N,C,I,q,V);else{var Y,J=m[g+0],ne=J,pe=J;for(Y=0;Y<V;++Y)ne=pe+(J=m[g+Y])-ne,pe=N[C+Y]+(-256&ne?0>ne?0:255:ne)&255,ne=J,I[q+Y]=pe}}function Sr(m,g,N,C){var I=g.width,q=g.o;if(t(m!=null&&g!=null),0>N||0>=C||N+C>q)return null;if(!m.Cc){if(m.ga==null){var V;if(m.ga=new zt,(V=m.ga==null)||(V=g.width*g.o,t(m.Gb.length==0),m.Gb=s(V),m.Uc=0,m.Gb==null?V=0:(m.mb=m.Gb,m.nb=m.Uc,m.rc=null,V=1),V=!V),!V){V=m.ga;var Y=m.Fa,J=m.P,ne=m.qc,pe=m.mb,Se=m.nb,ie=J+1,ge=ne-1,xe=V.l;if(t(Y!=null&&pe!=null&&g!=null),il[0]=null,il[1]=nr,il[2]=Hr,il[3]=xn,V.ca=pe,V.tb=Se,V.c=g.width,V.i=g.height,t(0<V.c&&0<V.i),1>=ne)g=0;else if(V.$a=3&Y[J+0],V.Z=Y[J+0]>>2&3,V.Lc=Y[J+0]>>4&3,J=Y[J+0]>>6&3,0>V.$a||1<V.$a||4<=V.Z||1<V.Lc||J)g=0;else if(xe.put=it,xe.ac=Tr,xe.bc=sn,xe.ma=V,xe.width=g.width,xe.height=g.height,xe.Da=g.Da,xe.v=g.v,xe.va=g.va,xe.j=g.j,xe.o=g.o,V.$a)e:{t(V.$a==1),g=bc();t:for(;;){if(g==null){g=0;break e}if(t(V!=null),V.mc=g,g.c=V.c,g.i=V.i,g.l=V.l,g.l.ma=V,g.l.width=V.c,g.l.height=V.i,g.a=0,D(g.m,Y,ie,ge),!xa(V.c,V.i,1,g,null)||(g.ab==1&&g.gc[0].hc==3&&Ms(g.s)?(V.ic=1,Y=g.c*g.i,g.Ta=null,g.Ua=0,g.V=s(Y),g.Ba=0,g.V==null?(g.a=1,g=0):g=1):(V.ic=0,g=wc(g,V.c)),!g))break t;g=1;break e}V.mc=null,g=0}else g=ge>=V.c*V.i;V=!g}if(V)return null;m.ga.Lc!=1?m.Ga=0:C=q-N}t(m.ga!=null),t(N+C<=q);e:{if(g=(Y=m.ga).c,q=Y.l.o,Y.$a==0){if(ie=m.rc,ge=m.Vc,xe=m.Fa,J=m.P+1+N*g,ne=m.mb,pe=m.nb+N*g,t(J<=m.P+m.qc),Y.Z!=0)for(t(il[Y.Z]!=null),V=0;V<C;++V)il[Y.Z](ie,ge,xe,J,ne,pe,g),ie=ne,ge=pe,pe+=g,J+=g;else for(V=0;V<C;++V)n(ne,pe,xe,J,g),ie=ne,ge=pe,pe+=g,J+=g;m.rc=ie,m.Vc=ge}else{if(t(Y.mc!=null),g=N+C,t((V=Y.mc)!=null),t(g<=V.i),V.C>=g)g=1;else if(Y.ic||Us(),Y.ic){Y=V.V,ie=V.Ba,ge=V.c;var Te=V.i,ke=(xe=1,J=V.$/ge,ne=V.$%ge,pe=V.m,Se=V.s,V.$),Re=ge*Te,Fe=ge*g,He=Se.wc,Be=ke<Fe?Gr(Se,ne,J):null;t(ke<=Re),t(g<=Te),t(Ms(Se));t:for(;;){for(;!pe.h&&ke<Fe;){if(ne&He||(Be=Gr(Se,ne,J)),t(Be!=null),Q(pe),256>(Te=Pr(Be.G[0],Be.H[0],pe)))Y[ie+ke]=Te,++ke,++ne>=ge&&(ne=0,++J<=g&&!(J%16)&&$s(V,J));else{if(!(280>Te)){xe=0;break t}Te=br(Te-256,pe);var _t,st=Pr(Be.G[4],Be.H[4],pe);if(Q(pe),!(ke>=(st=Dr(ge,st=br(st,pe)))&&Re-ke>=Te)){xe=0;break t}for(_t=0;_t<Te;++_t)Y[ie+ke+_t]=Y[ie+ke+_t-st];for(ke+=Te,ne+=Te;ne>=ge;)ne-=ge,++J<=g&&!(J%16)&&$s(V,J);ke<Fe&&ne&He&&(Be=Gr(Se,ne,J))}t(pe.h==re(pe))}$s(V,J>g?g:J);break t}!xe||pe.h&&ke<Re?(xe=0,V.a=pe.h?5:3):V.$=ke,g=xe}else g=Bs(V,V.V,V.Ba,V.c,V.i,g,zu);if(!g){C=0;break e}}N+C>=q&&(m.Cc=1),C=1}if(!C)return null;if(m.Cc&&((C=m.ga)!=null&&(C.mc=null),m.ga=null,0<m.Ga))return alert("todo:WebPDequantizeLevels"),null}return m.nb+N*I}function An(m,g,N,C,I,q){for(;0<I--;){var V,Y=m,J=g+(N?1:0),ne=m,pe=g+(N?0:3);for(V=0;V<C;++V){var Se=ne[pe+4*V];Se!=255&&(Se*=32897,Y[J+4*V+0]=Y[J+4*V+0]*Se>>23,Y[J+4*V+1]=Y[J+4*V+1]*Se>>23,Y[J+4*V+2]=Y[J+4*V+2]*Se>>23)}g+=q}}function _n(m,g,N,C,I){for(;0<C--;){var q;for(q=0;q<N;++q){var V=m[g+2*q+0],Y=15&(ne=m[g+2*q+1]),J=4369*Y,ne=(240&ne|ne>>4)*J>>16;m[g+2*q+0]=(240&V|V>>4)*J>>16&240|(15&V|V<<4)*J>>16>>4&15,m[g+2*q+1]=240&ne|Y}g+=I}}function Hn(m,g,N,C,I,q,V,Y){var J,ne,pe=255;for(ne=0;ne<I;++ne){for(J=0;J<C;++J){var Se=m[g+J];q[V+4*J]=Se,pe&=Se}g+=N,V+=Y}return pe!=255}function fo(m,g,N,C,I){var q;for(q=0;q<I;++q)N[C+q]=m[g+q]>>8}function Us(){bh=An,zk=_n,Hk=Hn,Vk=fo}function ho(m,g,N){P[m]=function(C,I,q,V,Y,J,ne,pe,Se,ie,ge,xe,Te,ke,Re,Fe,He){var Be,_t=He-1>>1,st=Y[J+0]|ne[pe+0]<<16,Ht=Se[ie+0]|ge[xe+0]<<16;t(C!=null);var ht=3*st+Ht+131074>>2;for(g(C[I+0],255&ht,ht>>16,Te,ke),q!=null&&(ht=3*Ht+st+131074>>2,g(q[V+0],255&ht,ht>>16,Re,Fe)),Be=1;Be<=_t;++Be){var Xt=Y[J+Be]|ne[pe+Be]<<16,Pn=Se[ie+Be]|ge[xe+Be]<<16,Vt=st+Xt+Ht+Pn+524296,pt=Vt+2*(Xt+Ht)>>3;ht=pt+st>>1,st=(Vt=Vt+2*(st+Pn)>>3)+Xt>>1,g(C[I+2*Be-1],255&ht,ht>>16,Te,ke+(2*Be-1)*N),g(C[I+2*Be-0],255&st,st>>16,Te,ke+(2*Be-0)*N),q!=null&&(ht=Vt+Ht>>1,st=pt+Pn>>1,g(q[V+2*Be-1],255&ht,ht>>16,Re,Fe+(2*Be-1)*N),g(q[V+2*Be+0],255&st,st>>16,Re,Fe+(2*Be+0)*N)),st=Xt,Ht=Pn}1&He||(ht=3*st+Ht+131074>>2,g(C[I+He-1],255&ht,ht>>16,Te,ke+(He-1)*N),q!=null&&(ht=3*Ht+st+131074>>2,g(q[V+He-1],255&ht,ht>>16,Re,Fe+(He-1)*N)))}}function lh(){ks[ag]=$F,ks[og]=rS,ks[Xk]=BF,ks[lg]=nS,ks[cg]=iS,ks[O1]=sS,ks[Jk]=qF,ks[R1]=rS,ks[L1]=nS,ks[ug]=iS,ks[I1]=sS}function Xu(m){return m&~UF?0>m?0:255:m>>aS}function Go(m,g){return Xu((19077*m>>8)+(26149*g>>8)-14234)}function Ec(m,g,N){return Xu((19077*m>>8)-(6419*g>>8)-(13320*N>>8)+8708)}function Cc(m,g){return Xu((19077*m>>8)+(33050*g>>8)-17685)}function Yo(m,g,N,C,I){C[I+0]=Go(m,N),C[I+1]=Ec(m,g,N),C[I+2]=Cc(m,g)}function Vn(m,g,N,C,I){C[I+0]=Cc(m,g),C[I+1]=Ec(m,g,N),C[I+2]=Go(m,N)}function jc(m,g,N,C,I){var q=Ec(m,g,N);g=q<<3&224|Cc(m,g)>>3,C[I+0]=248&Go(m,N)|q>>5,C[I+1]=g}function Ac(m,g,N,C,I){var q=240&Cc(m,g)|15;C[I+0]=240&Go(m,N)|Ec(m,g,N)>>4,C[I+1]=q}function ch(m,g,N,C,I){C[I+0]=255,Yo(m,g,N,C,I+1)}function uh(m,g,N,C,I){Vn(m,g,N,C,I),C[I+3]=255}function vi(m,g,N,C,I){Yo(m,g,N,C,I),C[I+3]=255}function po(m,g,N){P[m]=function(C,I,q,V,Y,J,ne,pe,Se){for(var ie=pe+(-2&Se)*N;pe!=ie;)g(C[I+0],q[V+0],Y[J+0],ne,pe),g(C[I+1],q[V+0],Y[J+0],ne,pe+N),I+=2,++V,++J,pe+=2*N;1&Se&&g(C[I+0],q[V+0],Y[J+0],ne,pe)}}function Ju(m,g,N){return N==0?m==0?g==0?6:5:g==0?4:0:N}function rg(m,g,N,C,I){switch(m>>>30){case 3:Rc(g,N,C,I,0);break;case 2:xs(g,N,C,I);break;case 1:ur(g,N,C,I)}}function ws(m,g){var N,C,I=g.M,q=g.Nb,V=m.oc,Y=m.pc+40,J=m.oc,ne=m.pc+584,pe=m.oc,Se=m.pc+600;for(N=0;16>N;++N)V[Y+32*N-1]=129;for(N=0;8>N;++N)J[ne+32*N-1]=129,pe[Se+32*N-1]=129;for(0<I?V[Y-1-32]=J[ne-1-32]=pe[Se-1-32]=129:(i(V,Y-32-1,127,21),i(J,ne-32-1,127,9),i(pe,Se-32-1,127,9)),C=0;C<m.za;++C){var ie=g.ya[g.aa+C];if(0<C){for(N=-1;16>N;++N)n(V,Y+32*N-4,V,Y+32*N+12,4);for(N=-1;8>N;++N)n(J,ne+32*N-4,J,ne+32*N+4,4),n(pe,Se+32*N-4,pe,Se+32*N+4,4)}var ge=m.Gd,xe=m.Hd+C,Te=ie.ad,ke=ie.Hc;if(0<I&&(n(V,Y-32,ge[xe].y,0,16),n(J,ne-32,ge[xe].f,0,8),n(pe,Se-32,ge[xe].ea,0,8)),ie.Za){var Re=V,Fe=Y-32+16;for(0<I&&(C>=m.za-1?i(Re,Fe,ge[xe].y[15],4):n(Re,Fe,ge[xe+1].y,0,4)),N=0;4>N;N++)Re[Fe+128+N]=Re[Fe+256+N]=Re[Fe+384+N]=Re[Fe+0+N];for(N=0;16>N;++N,ke<<=2)Re=V,Fe=Y+lS[N],zs[ie.Ob[N]](Re,Fe),rg(ke,Te,16*+N,Re,Fe)}else if(Re=Ju(C,I,ie.Ob[0]),nl[Re](V,Y),ke!=0)for(N=0;16>N;++N,ke<<=2)rg(ke,Te,16*+N,V,Y+lS[N]);for(N=ie.Gc,Re=Ju(C,I,ie.Dd),vo[Re](J,ne),vo[Re](pe,Se),ke=Te,Re=J,Fe=ne,255&(ie=0|N)&&(170&ie?Ca(ke,256,Re,Fe):wr(ke,256,Re,Fe)),ie=pe,ke=Se,255&(N>>=8)&&(170&N?Ca(Te,320,ie,ke):wr(Te,320,ie,ke)),I<m.Ub-1&&(n(ge[xe].y,0,V,Y+480,16),n(ge[xe].f,0,J,ne+224,8),n(ge[xe].ea,0,pe,Se+224,8)),N=8*q*m.B,ge=m.sa,xe=m.ta+16*C+16*q*m.R,Te=m.qa,ie=m.ra+8*C+N,ke=m.Ha,Re=m.Ia+8*C+N,N=0;16>N;++N)n(ge,xe+N*m.R,V,Y+32*N,16);for(N=0;8>N;++N)n(Te,ie+N*m.B,J,ne+32*N,8),n(ke,Re+N*m.B,pe,Se+32*N,8)}}function Tc(m,g,N,C,I,q,V,Y,J){var ne=[0],pe=[0],Se=0,ie=J!=null?J.kd:0,ge=J??new $e;if(m==null||12>N)return 7;ge.data=m,ge.w=g,ge.ha=N,g=[g],N=[N],ge.gb=[ge.gb];e:{var xe=g,Te=N,ke=ge.gb;if(t(m!=null),t(Te!=null),t(ke!=null),ke[0]=0,12<=Te[0]&&!r(m,xe[0],"RIFF")){if(r(m,xe[0]+8,"WEBP")){ke=3;break e}var Re=je(m,xe[0]+4);if(12>Re||4294967286<Re){ke=3;break e}if(ie&&Re>Te[0]-8){ke=7;break e}ke[0]=Re,xe[0]+=12,Te[0]-=12}ke=0}if(ke!=0)return ke;for(Re=0<ge.gb[0],N=N[0];;){e:{var Fe=m;Te=g,ke=N;var He=ne,Be=pe,_t=xe=[0];if((ht=Se=[Se])[0]=0,8>ke[0])ke=7;else{if(!r(Fe,Te[0],"VP8X")){if(je(Fe,Te[0]+4)!=10){ke=3;break e}if(18>ke[0]){ke=7;break e}var st=je(Fe,Te[0]+8),Ht=1+Le(Fe,Te[0]+12);if(2147483648<=Ht*(Fe=1+Le(Fe,Te[0]+15))){ke=3;break e}_t!=null&&(_t[0]=st),He!=null&&(He[0]=Ht),Be!=null&&(Be[0]=Fe),Te[0]+=18,ke[0]-=18,ht[0]=1}ke=0}}if(Se=Se[0],xe=xe[0],ke!=0)return ke;if(Te=!!(2&xe),!Re&&Se)return 3;if(q!=null&&(q[0]=!!(16&xe)),V!=null&&(V[0]=Te),Y!=null&&(Y[0]=0),V=ne[0],xe=pe[0],Se&&Te&&J==null){ke=0;break}if(4>N){ke=7;break}if(Re&&Se||!Re&&!Se&&!r(m,g[0],"ALPH")){N=[N],ge.na=[ge.na],ge.P=[ge.P],ge.Sa=[ge.Sa];e:{st=m,ke=g,Re=N;var ht=ge.gb;He=ge.na,Be=ge.P,_t=ge.Sa,Ht=22,t(st!=null),t(Re!=null),Fe=ke[0];var Xt=Re[0];for(t(He!=null),t(_t!=null),He[0]=null,Be[0]=null,_t[0]=0;;){if(ke[0]=Fe,Re[0]=Xt,8>Xt){ke=7;break e}var Pn=je(st,Fe+4);if(4294967286<Pn){ke=3;break e}var Vt=8+Pn+1&-2;if(Ht+=Vt,0<ht&&Ht>ht){ke=3;break e}if(!r(st,Fe,"VP8 ")||!r(st,Fe,"VP8L")){ke=0;break e}if(Xt[0]<Vt){ke=7;break e}r(st,Fe,"ALPH")||(He[0]=st,Be[0]=Fe+8,_t[0]=Pn),Fe+=Vt,Xt-=Vt}}if(N=N[0],ge.na=ge.na[0],ge.P=ge.P[0],ge.Sa=ge.Sa[0],ke!=0)break}N=[N],ge.Ja=[ge.Ja],ge.xa=[ge.xa];e:if(ht=m,ke=g,Re=N,He=ge.gb[0],Be=ge.Ja,_t=ge.xa,st=ke[0],Fe=!r(ht,st,"VP8 "),Ht=!r(ht,st,"VP8L"),t(ht!=null),t(Re!=null),t(Be!=null),t(_t!=null),8>Re[0])ke=7;else{if(Fe||Ht){if(ht=je(ht,st+4),12<=He&&ht>He-12){ke=3;break e}if(ie&&ht>Re[0]-8){ke=7;break e}Be[0]=ht,ke[0]+=8,Re[0]-=8,_t[0]=Ht}else _t[0]=5<=Re[0]&&ht[st+0]==47&&!(ht[st+4]>>5),Be[0]=Re[0];ke=0}if(N=N[0],ge.Ja=ge.Ja[0],ge.xa=ge.xa[0],g=g[0],ke!=0)break;if(4294967286<ge.Ja)return 3;if(Y==null||Te||(Y[0]=ge.xa?2:1),V=[V],xe=[xe],ge.xa){if(5>N){ke=7;break}Y=V,ie=xe,Te=q,m==null||5>N?m=0:5<=N&&m[g+0]==47&&!(m[g+4]>>5)?(Re=[0],ht=[0],He=[0],D(Be=new U,m,g,N),bn(Be,Re,ht,He)?(Y!=null&&(Y[0]=Re[0]),ie!=null&&(ie[0]=ht[0]),Te!=null&&(Te[0]=He[0]),m=1):m=0):m=0}else{if(10>N){ke=7;break}Y=xe,m==null||10>N||!Vm(m,g+3,N-3)?m=0:(ie=m[g+0]|m[g+1]<<8|m[g+2]<<16,Te=16383&(m[g+7]<<8|m[g+6]),m=16383&(m[g+9]<<8|m[g+8]),1&ie||3<(ie>>1&7)||!(ie>>4&1)||ie>>5>=ge.Ja||!Te||!m?m=0:(V&&(V[0]=Te),Y&&(Y[0]=m),m=1))}if(!m||(V=V[0],xe=xe[0],Se&&(ne[0]!=V||pe[0]!=xe)))return 3;J!=null&&(J[0]=ge,J.offset=g-J.w,t(4294967286>g-J.w),t(J.offset==J.ha-N));break}return ke==0||ke==7&&Se&&J==null?(q!=null&&(q[0]|=ge.na!=null&&0<ge.na.length),C!=null&&(C[0]=V),I!=null&&(I[0]=xe),0):ke}function dh(m,g,N){var C=g.width,I=g.height,q=0,V=0,Y=C,J=I;if(g.Da=m!=null&&0<m.Da,g.Da&&(Y=m.cd,J=m.bd,q=m.v,V=m.j,11>N||(q&=-2,V&=-2),0>q||0>V||0>=Y||0>=J||q+Y>C||V+J>I))return 0;if(g.v=q,g.j=V,g.va=q+Y,g.o=V+J,g.U=Y,g.T=J,g.da=m!=null&&0<m.da,g.da){if(!Ne(Y,J,N=[m.ib],q=[m.hb]))return 0;g.ib=N[0],g.hb=q[0]}return g.ob=m!=null&&m.ob,g.Kb=m==null||!m.Sd,g.da&&(g.ob=g.ib<3*C/4&&g.hb<3*I/4,g.Kb=0),1}function fh(m){if(m==null)return 2;if(11>m.S){var g=m.f.RGBA;g.fb+=(m.height-1)*g.A,g.A=-g.A}else g=m.f.kb,m=m.height,g.O+=(m-1)*g.fa,g.fa=-g.fa,g.N+=(m-1>>1)*g.Ab,g.Ab=-g.Ab,g.W+=(m-1>>1)*g.Db,g.Db=-g.Db,g.F!=null&&(g.J+=(m-1)*g.lb,g.lb=-g.lb);return 0}function Zo(m,g,N,C){if(C==null||0>=m||0>=g)return 2;if(N!=null){if(N.Da){var I=N.cd,q=N.bd,V=-2&N.v,Y=-2&N.j;if(0>V||0>Y||0>=I||0>=q||V+I>m||Y+q>g)return 2;m=I,g=q}if(N.da){if(!Ne(m,g,I=[N.ib],q=[N.hb]))return 2;m=I[0],g=q[0]}}C.width=m,C.height=g;e:{var J=C.width,ne=C.height;if(m=C.S,0>=J||0>=ne||!(m>=ag&&13>m))m=2;else{if(0>=C.Rd&&C.sd==null){V=q=I=g=0;var pe=(Y=J*cS[m])*ne;if(11>m||(q=(ne+1)/2*(g=(J+1)/2),m==12&&(V=(I=J)*ne)),(ne=s(pe+2*q+V))==null){m=1;break e}C.sd=ne,11>m?((J=C.f.RGBA).eb=ne,J.fb=0,J.A=Y,J.size=pe):((J=C.f.kb).y=ne,J.O=0,J.fa=Y,J.Fd=pe,J.f=ne,J.N=0+pe,J.Ab=g,J.Cd=q,J.ea=ne,J.W=0+pe+q,J.Db=g,J.Ed=q,m==12&&(J.F=ne,J.J=0+pe+2*q),J.Tc=V,J.lb=I)}if(g=1,I=C.S,q=C.width,V=C.height,I>=ag&&13>I)if(11>I)m=C.f.RGBA,g&=(Y=Math.abs(m.A))*(V-1)+q<=m.size,g&=Y>=q*cS[I],g&=m.eb!=null;else{m=C.f.kb,Y=(q+1)/2,pe=(V+1)/2,J=Math.abs(m.fa),ne=Math.abs(m.Ab);var Se=Math.abs(m.Db),ie=Math.abs(m.lb),ge=ie*(V-1)+q;g&=J*(V-1)+q<=m.Fd,g&=ne*(pe-1)+Y<=m.Cd,g=(g&=Se*(pe-1)+Y<=m.Ed)&J>=q&ne>=Y&Se>=Y,g&=m.y!=null,g&=m.f!=null,g&=m.ea!=null,I==12&&(g&=ie>=q,g&=ge<=m.Tc,g&=m.F!=null)}else g=0;m=g?0:2}}return m!=0||N!=null&&N.fd&&(m=fh(C)),m}var Pc=64,Ki=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Gi=24,Xo=32,mo=8,Jo=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];ue("Predictor0","PredictorAdd0"),P.Predictor0=function(){return 4278190080},P.Predictor1=function(m){return m},P.Predictor2=function(m,g,N){return g[N+0]},P.Predictor3=function(m,g,N){return g[N+1]},P.Predictor4=function(m,g,N){return g[N-1]},P.Predictor5=function(m,g,N){return Ee(Ee(m,g[N+1]),g[N+0])},P.Predictor6=function(m,g,N){return Ee(m,g[N-1])},P.Predictor7=function(m,g,N){return Ee(m,g[N+0])},P.Predictor8=function(m,g,N){return Ee(g[N-1],g[N+0])},P.Predictor9=function(m,g,N){return Ee(g[N+0],g[N+1])},P.Predictor10=function(m,g,N){return Ee(Ee(m,g[N-1]),Ee(g[N+0],g[N+1]))},P.Predictor11=function(m,g,N){var C=g[N+0];return 0>=Oe(C>>24&255,m>>24&255,(g=g[N-1])>>24&255)+Oe(C>>16&255,m>>16&255,g>>16&255)+Oe(C>>8&255,m>>8&255,g>>8&255)+Oe(255&C,255&m,255&g)?C:m},P.Predictor12=function(m,g,N){var C=g[N+0];return(De((m>>24&255)+(C>>24&255)-((g=g[N-1])>>24&255))<<24|De((m>>16&255)+(C>>16&255)-(g>>16&255))<<16|De((m>>8&255)+(C>>8&255)-(g>>8&255))<<8|De((255&m)+(255&C)-(255&g)))>>>0},P.Predictor13=function(m,g,N){var C=g[N-1];return(_e((m=Ee(m,g[N+0]))>>24&255,C>>24&255)<<24|_e(m>>16&255,C>>16&255)<<16|_e(m>>8&255,C>>8&255)<<8|_e(255&m,255&C))>>>0};var hh=P.PredictorAdd0;P.PredictorAdd1=Ze,ue("Predictor2","PredictorAdd2"),ue("Predictor3","PredictorAdd3"),ue("Predictor4","PredictorAdd4"),ue("Predictor5","PredictorAdd5"),ue("Predictor6","PredictorAdd6"),ue("Predictor7","PredictorAdd7"),ue("Predictor8","PredictorAdd8"),ue("Predictor9","PredictorAdd9"),ue("Predictor10","PredictorAdd10"),ue("Predictor11","PredictorAdd11"),ue("Predictor12","PredictorAdd12"),ue("Predictor13","PredictorAdd13");var Qu=P.PredictorAdd2;Xe("ColorIndexInverseTransform","MapARGB","32b",function(m){return m>>8&255},function(m){return m}),Xe("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(m){return m},function(m){return m>>8&255});var an,ng=P.ColorIndexInverseTransform,Na=P.MapARGB,Ea=P.VP8LColorIndexInverseTransformAlpha,ph=P.MapAlpha,mh=P.VP8LPredictorsAdd=[];mh.length=16,(P.VP8LPredictors=[]).length=16,(P.VP8LPredictorsAdd_C=[]).length=16,(P.VP8LPredictors_C=[]).length=16;var gh,vh,Qo,el,tl,Oc,rl,Rc,xs,Ca,ur,wr,on,Tn,go,yh,ed,ig,Dk,Mk,$k,Bk,qk,Uk,bh,zk,Hk,Vk,Wk=s(511),Kk=s(2041),Gk=s(225),Yk=s(767),Zk=0,P1=Kk,sg=Gk,Yi=Yk,_s=Wk,ag=0,og=1,Xk=2,lg=3,cg=4,O1=5,Jk=6,R1=7,L1=8,ug=9,I1=10,NF=[2,3,7],EF=[3,3,11],Qk=[280,256,256,256,40],CF=[0,1,1,1,0],jF=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],AF=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,3
vendor: 4,386 bytes, line 544
5446,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],TF=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],PF=8,F1=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],D1=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],wh=null,OF=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],RF=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],eS=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],LF=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,25
5445,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],IF=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,
5441,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],FF=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
vendor: 21,605 bytes, line 544
5445,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],DF=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],nl=[],zs=[],vo=[],MF=1,tS=2,il=[],ks=[];ho("UpsampleRgbLinePair",Yo,3),ho("UpsampleBgrLinePair",Vn,3),ho("UpsampleRgbaLinePair",vi,4),ho("UpsampleBgraLinePair",uh,4),ho("UpsampleArgbLinePair",ch,4),ho("UpsampleRgba4444LinePair",Ac,2),ho("UpsampleRgb565LinePair",jc,2);var $F=P.UpsampleRgbLinePair,BF=P.UpsampleBgrLinePair,rS=P.UpsampleRgbaLinePair,nS=P.UpsampleBgraLinePair,iS=P.UpsampleArgbLinePair,sS=P.UpsampleRgba4444LinePair,qF=P.UpsampleRgb565LinePair,dg=16,fg=1<<dg-1,xh=-227,M1=482,aS=6,UF=(256<<aS)-1,oS=0,zF=s(256),HF=s(256),VF=s(256),WF=s(256),KF=s(M1-xh),GF=s(M1-xh);po("YuvToRgbRow",Yo,3),po("YuvToBgrRow",Vn,3),po("YuvToRgbaRow",vi,4),po("YuvToBgraRow",uh,4),po("YuvToArgbRow",ch,4),po("YuvToRgba4444Row",Ac,2),po("YuvToRgb565Row",jc,2);var lS=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],hg=[0,2,8],YF=[8,7,6,4,4,2,2,2,1,1,1,1],ZF=1;this.WebPDecodeRGBA=function(m,g,N,C,I){var q=og,V=new Ie,Y=new Lt;V.ba=Y,Y.S=q,Y.width=[Y.width],Y.height=[Y.height];var J=Y.width,ne=Y.height,pe=new ft;if(pe==null||m==null)var Se=2;else t(pe!=null),Se=Tc(m,g,N,pe.width,pe.height,pe.Pd,pe.Qd,pe.format,null);if(Se!=0?J=0:(J!=null&&(J[0]=pe.width[0]),ne!=null&&(ne[0]=pe.height[0]),J=1),J){Y.width=Y.width[0],Y.height=Y.height[0],C!=null&&(C[0]=Y.width),I!=null&&(I[0]=Y.height);e:{if(C=new Wu,(I=new $e).data=m,I.w=g,I.ha=N,I.kd=1,g=[0],t(I!=null),((m=Tc(I.data,I.w,I.ha,null,null,null,g,null,I))==0||m==7)&&g[0]&&(m=4),(g=m)==0){if(t(V!=null),C.data=I.data,C.w=I.w+I.offset,C.ha=I.ha-I.offset,C.put=it,C.ac=Tr,C.bc=sn,C.ma=V,I.xa){if((m=bc())==null){V=1;break e}if(function(ie,ge){var xe=[0],Te=[0],ke=[0];t:for(;;){if(ie==null)return 0;if(ge==null)return ie.a=2,0;if(ie.l=ge,ie.a=0,D(ie.m,ge.data,ge.w,ge.ha),!bn(ie.m,xe,Te,ke)){ie.a=3;break t}if(ie.xb=tS,ge.width=xe[0],ge.height=Te[0],!xa(xe[0],Te[0],1,ie,null))break t;return 1}return t(ie.a!=0),0}(m,C)){if(C=(g=Zo(C.width,C.height,V.Oa,V.ba))==0){t:{C=m;r:for(;;){if(C==null){C=0;break t}if(t(C.s.yc!=null),t(C.s.Ya!=null),t(0<C.s.Wb),t((N=C.l)!=null),t((I=N.ma)!=null),C.xb!=0){if(C.ca=I.ba,C.tb=I.tb,t(C.ca!=null),!dh(I.Oa,N,lg)){C.a=2;break r}if(!wc(C,N.width)||N.da)break r;if((N.da||wt(C.ca.S))&&Us(),11>C.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),C.ca.f.kb.F!=null&&Us()),C.Pb&&0<C.s.ua&&C.s.vb.X==null&&!Z(C.s.vb,C.s.Wa.Xa)){C.a=1;break r}C.xb=0}if(!Bs(C,C.V,C.Ba,C.c,C.i,N.o,Ko))break r;I.Dc=C.Ma,C=1;break t}t(C.a!=0),C=0}C=!C}C&&(g=m.a)}else g=m.a}else{if((m=new g1)==null){V=1;break e}if(m.Fa=I.na,m.P=I.P,m.qc=I.Sa,ka(m,C)){if((g=Zo(C.width,C.height,V.Oa,V.ba))==0){if(m.Aa=0,N=V.Oa,t((I=m)!=null),N!=null){if(0<(J=0>(J=N.Md)?0:100<J?255:255*J/100)){for(ne=pe=0;4>ne;++ne)12>(Se=I.pb[ne]).lc&&(Se.ia=J*YF[0>Se.lc?0:Se.lc]>>3),pe|=Se.ia;pe&&(alert("todo:VP8InitRandom"),I.ia=1)}I.Ga=N.Id,100<I.Ga?I.Ga=100:0>I.Ga&&(I.Ga=0)}(function(ie,ge){if(ie==null)return 0;if(ge==null)return wn(ie,2,"NULL VP8Io parameter in VP8Decode().");if(!ie.cb&&!ka(ie,ge))return 0;if(t(ie.cb),ge.ac==null||ge.ac(ge)){ge.ob&&(ie.L=0);var xe=hg[ie.L];if(ie.L==2?(ie.yb=0,ie.zb=0):(ie.yb=ge.v-xe>>4,ie.zb=ge.j-xe>>4,0>ie.yb&&(ie.yb=0),0>ie.zb&&(ie.zb=0)),ie.Va=ge.o+15+xe>>4,ie.Hb=ge.va+15+xe>>4,ie.Hb>ie.za&&(ie.Hb=ie.za),ie.Va>ie.Ub&&(ie.Va=ie.Ub),0<ie.L){var Te=ie.ed;for(xe=0;4>xe;++xe){var ke;if(ie.Qa.Cb){var Re=ie.Qa.Lb[xe];ie.Qa.Fb||(Re+=Te.Tb)}else Re=Te.Tb;for(ke=0;1>=ke;++ke){var Fe=ie.gd[xe][ke],He=Re;if(Te.Pc&&(He+=Te.vd[0],ke&&(He+=Te.od[0])),0<(He=0>He?0:63<He?63:He)){var Be=He;0<Te.wb&&(Be=4<Te.wb?Be>>2:Be>>1)>9-Te.wb&&(Be=9-Te.wb),1>Be&&(Be=1),Fe.dd=Be,Fe.tc=2*He+Be,Fe.ld=40<=He?2:15<=He?1:0}else Fe.tc=0;Fe.La=ke}}}xe=0}else wn(ie,6,"Frame setup failed"),xe=ie.a;if(xe=xe==0){if(xe){ie.$c=0,0<ie.Aa||(ie.Ic=ZF);t:{xe=ie.Ic,Te=4*(Be=ie.za);var _t=32*Be,st=Be+1,Ht=0<ie.L?Be*(0<ie.Aa?2:1):0,ht=(ie.Aa==2?2:1)*Be;if((Fe=Te+832+(ke=3*(16*xe+hg[ie.L])/2*_t)+(Re=ie.Fa!=null&&0<ie.Fa.length?ie.Kc.c*ie.Kc.i:0))!=Fe)xe=0;else{if(Fe>ie.Vb){if(ie.Vb=0,ie.Ec=s(Fe),ie.Fc=0,ie.Ec==null){xe=wn(ie,1,"no memory during frame initialization.");break t}ie.Vb=Fe}Fe=ie.Ec,He=ie.Fc,ie.Ac=Fe,ie.Bc=He,He+=Te,ie.Gd=a(_t,zm),ie.Hd=0,ie.rb=a(st+1,Jf),ie.sb=1,ie.wa=Ht?a(Ht,ys):null,ie.Y=0,ie.D.Nb=0,ie.D.wa=ie.wa,ie.D.Y=ie.Y,0<ie.Aa&&(ie.D.Y+=Be),t(!0),ie.oc=Fe,ie.pc=He,He+=832,ie.ya=a(ht,Qf),ie.aa=0,ie.D.ya=ie.ya,ie.D.aa=ie.aa,ie.Aa==2&&(ie.D.aa+=Be),ie.R=16*Be,ie.B=8*Be,Be=(_t=hg[ie.L])*ie.R,_t=_t/2*ie.B,ie.sa=Fe,ie.ta=He+Be,ie.qa=ie.sa,ie.ra=ie.ta+16*xe*ie.R+_t,ie.Ha=ie.qa,ie.Ia=ie.ra+8*xe*ie.B+_t,ie.$c=0,He+=ke,ie.mb=Re?Fe:null,ie.nb=Re?He:null,t(He+Re<=ie.Fc+ie.Vb),Wm(ie),i(ie.Ac,ie.Bc,0,Te),xe=1}}if(xe){if(ge.ka=0,ge.y=ie.sa,ge.O=ie.ta,ge.f=ie.qa,ge.N=ie.ra,ge.ea=ie.Ha,ge.Vd=ie.Ia,ge.fa=ie.R,ge.Rc=ie.B,ge.F=null,ge.J=0,!Zk){for(xe=-255;255>=xe;++xe)Wk[255+xe]=0>xe?-xe:xe;for(xe=-1020;1020>=xe;++xe)Kk[1020+xe]=-128>xe?-128:127<xe?127:xe;for(xe=-112;112>=xe;++xe)Gk[112+xe]=-16>xe?-16:15<xe?15:xe;for(xe=-255;510>=xe;++xe)Yk[255+xe]=0>xe?0:255<xe?255:xe;Zk=1}rl=Gu,Rc=y1,Ca=Sa,ur=Gm,wr=Ym,xs=v1,on=eg,Tn=Nc,go=L,yh=ae,ed=tg,ig=k,Dk=fe,Mk=ye,$k=Sc,Bk=oh,qk=Jm,Uk=Qm,zs[0]=E1,zs[1]=b1,zs[2]=S1,zs[3]=N1,zs[4]=so,zs[5]=C1,zs[6]=ao,zs[7]=j1,zs[8]=rh,zs[9]=Yu,nl[0]=_1,nl[1]=x1,nl[2]=eh,nl[3]=Zm,nl[4]=_c,nl[5]=th,nl[6]=k1,vo[0]=T1,vo[1]=w1,vo[2]=kc,vo[3]=A1,vo[4]=ih,vo[5]=nh,vo[6]=Xm,xe=1}else xe=0}xe&&(xe=function(Xt,Pn){for(Xt.M=0;Xt.M<Xt.Va;++Xt.M){var Vt,pt=Xt.Jc[Xt.M&Xt.Xb],Ye=Xt.m,ln=Xt;for(Vt=0;Vt<ln.za;++Vt){var Mt=Ye,er=ln,Or=er.Ac,Wn=er.Bc+4*Vt,yi=er.zc,Yr=er.ya[er.aa+Vt];if(er.Qa.Bb?Yr.$b=he(Mt,er.Pa.jb[0])?2+he(Mt,er.Pa.jb[2]):he(Mt,er.Pa.jb[1]):Yr.$b=0,er.kc&&(Yr.Ad=he(Mt,er.Bd)),Yr.Za=!he(Mt,145)+0,Yr.Za){var ri=Yr.Ob,bi=0;for(er=0;4>er;++er){var On,ir=yi[0+er];for(On=0;4>On;++On){ir=IF[Or[Wn+On]][ir];for(var fr=eS[he(Mt,ir[0])];0<fr;)fr=eS[2*fr+he(Mt,ir[fr])];ir=-fr,Or[Wn+On]=ir}n(ri,bi,Or,Wn,4),bi+=4,yi[0+er]=ir}}else ir=he(Mt,156)?he(Mt,128)?1:3:he(Mt,163)?2:0,Yr.Ob[0]=ir,i(Or,Wn,ir,4),i(yi,0,ir,4);Yr.Dd=he(Mt,142)?he(Mt,114)?he(Mt,183)?1:3:2:0}if(ln.m.Ka)return wn(Xt,7,"Premature end-of-partition0 encountered.");for(;Xt.ja<Xt.za;++Xt.ja){if(ln=pt,Mt=(Ye=Xt).rb[Ye.sb-1],Or=Ye.rb[Ye.sb+Ye.ja],Vt=Ye.ya[Ye.aa+Ye.ja],Wn=Ye.kc?Vt.Ad:0)Mt.la=Or.la=0,Vt.Za||(Mt.Na=Or.Na=0),Vt.Hc=0,Vt.Gc=0,Vt.ia=0;else{var Zr,hr;if(Mt=Or,Or=ln,Wn=Ye.Pa.Xc,yi=Ye.ya[Ye.aa+Ye.ja],Yr=Ye.pb[yi.$b],er=yi.ad,ri=0,bi=Ye.rb[Ye.sb-1],ir=On=0,i(er,ri,0,384),yi.Za)var Kn=0,Hs=Wn[3];else{fr=s(16);var cn=Mt.Na+bi.Na;if(cn=wh(Or,Wn[1],cn,Yr.Eb,0,fr,0),Mt.Na=bi.Na=(0<cn)+0,1<cn)rl(fr,0,er,ri);else{var Oi=fr[0]+3>>3;for(fr=0;256>fr;fr+=16)er[ri+fr]=Oi}Kn=1,Hs=Wn[0]}var xr=15&Mt.la,Rn=15&bi.la;for(fr=0;4>fr;++fr){var Zi=1&Rn;for(Oi=hr=0;4>Oi;++Oi)xr=xr>>1|(Zi=(cn=wh(Or,Hs,cn=Zi+(1&xr),Yr.Sc,Kn,er,ri))>Kn)<<7,hr=hr<<2|(3<cn?3:1<cn?2:er[ri+0]!=0),ri+=16;xr>>=4,Rn=Rn>>1|Zi<<7,On=(On<<8|hr)>>>0}for(Hs=xr,Kn=Rn>>4,Zr=0;4>Zr;Zr+=2){for(hr=0,xr=Mt.la>>4+Zr,Rn=bi.la>>4+Zr,fr=0;2>fr;++fr){for(Zi=1&Rn,Oi=0;2>Oi;++Oi)cn=Zi+(1&xr),xr=xr>>1|(Zi=0<(cn=wh(Or,Wn[2],cn,Yr.Qc,0,er,ri)))<<3,hr=hr<<2|(3<cn?3:1<cn?2:er[ri+0]!=0),ri+=16;xr>>=2,Rn=Rn>>1|Zi<<5}ir|=hr<<4*Zr,Hs|=xr<<4<<Zr,Kn|=(240&Rn)<<Zr}Mt.la=Hs,bi.la=Kn,yi.Hc=On,yi.Gc=ir,yi.ia=43690&ir?0:Yr.ia,Wn=!(On|ir)}if(0<Ye.L&&(Ye.wa[Ye.Y+Ye.ja]=Ye.gd[Vt.$b][Vt.Za],Ye.wa[Ye.Y+Ye.ja].La|=!Wn),ln.Ka)return wn(Xt,7,"Premature end-of-file encountered.")}if(Wm(Xt),Ye=Pn,ln=1,Vt=(pt=Xt).D,Mt=0<pt.L&&pt.M>=pt.zb&&pt.M<=pt.Va,pt.Aa==0)t:{if(Vt.M=pt.M,Vt.uc=Mt,ws(pt,Vt),ln=1,Vt=(hr=pt.D).Nb,Mt=(ir=hg[pt.L])*pt.R,Or=ir/2*pt.B,fr=16*Vt*pt.R,Oi=8*Vt*pt.B,Wn=pt.sa,yi=pt.ta-Mt+fr,Yr=pt.qa,er=pt.ra-Or+Oi,ri=pt.Ha,bi=pt.Ia-Or+Oi,Rn=(xr=hr.M)==0,On=xr>=pt.Va-1,pt.Aa==2&&ws(pt,hr),hr.uc)for(Zi=(cn=pt).D.M,t(cn.D.uc),hr=cn.yb;hr<cn.Hb;++hr){Kn=hr,Hs=Zi;var wi=(Xi=(Gn=cn).D).Nb;Zr=Gn.R;var Xi=Xi.wa[Xi.Y+Kn],Ji=Gn.sa,Ri=Gn.ta+16*wi*Zr+16*Kn,Qi=Xi.dd,Nr=Xi.tc;if(Nr!=0)if(t(3<=Nr),Gn.L==1)0<Kn&&Bk(Ji,Ri,Zr,Nr+4),Xi.La&&Uk(Ji,Ri,Zr,Nr),0<Hs&&$k(Ji,Ri,Zr,Nr+4),Xi.La&&qk(Ji,Ri,Zr,Nr);else{var es=Gn.B,Vs=Gn.qa,Lc=Gn.ra+8*wi*es+8*Kn,yo=Gn.Ha,Gn=Gn.Ia+8*wi*es+8*Kn;wi=Xi.ld,0<Kn&&(Tn(Ji,Ri,Zr,Nr+4,Qi,wi),yh(Vs,Lc,yo,Gn,es,Nr+4,Qi,wi)),Xi.La&&(ig(Ji,Ri,Zr,Nr,Qi,wi),Mk(Vs,Lc,yo,Gn,es,Nr,Qi,wi)),0<Hs&&(on(Ji,Ri,Zr,Nr+4,Qi,wi),go(Vs,Lc,yo,Gn,es,Nr+4,Qi,wi)),Xi.La&&(ed(Ji,Ri,Zr,Nr,Qi,wi),Dk(Vs,Lc,yo,Gn,es,Nr,Qi,wi))}}if(pt.ia&&alert("todo:DitherRow"),Ye.put!=null){if(hr=16*xr,xr=16*(xr+1),Rn?(Ye.y=pt.sa,Ye.O=pt.ta+fr,Ye.f=pt.qa,Ye.N=pt.ra+Oi,Ye.ea=pt.Ha,Ye.W=pt.Ia+Oi):(hr-=ir,Ye.y=Wn,Ye.O=yi,Ye.f=Yr,Ye.N=er,Ye.ea=ri,Ye.W=bi),On||(xr-=ir),xr>Ye.o&&(xr=Ye.o),Ye.F=null,Ye.J=null,pt.Fa!=null&&0<pt.Fa.length&&hr<xr&&(Ye.J=Sr(pt,Ye,hr,xr-hr),Ye.F=pt.mb,Ye.F==null&&Ye.F.length==0)){ln=wn(pt,3,"Could not decode alpha data.");break t}hr<Ye.j&&(ir=Ye.j-hr,hr=Ye.j,t(!(1&ir)),Ye.O+=pt.R*ir,Ye.N+=pt.B*(ir>>1),Ye.W+=pt.B*(ir>>1),Ye.F!=null&&(Ye.J+=Ye.width*ir)),hr<xr&&(Ye.O+=Ye.v,Ye.N+=Ye.v>>1,Ye.W+=Ye.v>>1,Ye.F!=null&&(Ye.J+=Ye.v),Ye.ka=hr-Ye.j,Ye.U=Ye.va-Ye.v,Ye.T=xr-hr,ln=Ye.put(Ye))}Vt+1!=pt.Ic||On||(n(pt.sa,pt.ta-Mt,Wn,yi+16*pt.R,Mt),n(pt.qa,pt.ra-Or,Yr,er+8*pt.B,Or),n(pt.Ha,pt.Ia-Or,ri,bi+8*pt.B,Or))}if(!ln)return wn(Xt,6,"Output aborted.")}return 1}(ie,ge)),ge.bc!=null&&ge.bc(ge),xe&=1}return xe?(ie.cb=0,xe):0})(m,C)||(g=m.a)}}else g=m.a}g==0&&V.Oa!=null&&V.Oa.fd&&(g=fh(V.ba))}V=g}q=V!=0?null:11>q?Y.f.RGBA.eb:Y.f.kb.y}else q=null;return q};var cS=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(P,X){for(var O="",A=0;A<4;A++)O+=String.fromCharCode(P[X++]);return O}function d(P,X){return P[X+0]|P[X+1]<<8}function h(P,X){return(P[X+0]|P[X+1]<<8|P[X+2]<<16)>>>0}function p(P,X){return(P[X+0]|P[X+1]<<8|P[X+2]<<16|P[X+3]<<24)>>>0}new l;var f=[0],y=[0],v=[],b=new l,w=e,x=function(P,X){var O={},A=0,K=!1,R=0,le=0;if(O.frames=[],!function(j,U){for(var H=0;H<4;H++)if(j[U+H]!="RIFF".charCodeAt(H))return!0;return!1}(P,X)){for(p(P,X+=4),X+=8;X<P.length;){var oe=c(P,X),se=p(P,X+=4);X+=4;var F=se+(1&se);switch(oe){case"VP8 ":case"VP8L":O.frames[A]===void 0&&(O.frames[A]={}),(M=O.frames[A]).src_off=K?le:X-8,M.src_size=R+se+8,A++,K&&(K=!1,R=0,le=0);break;case"VP8X":(M=O.header={}).feature_flags=P[X];var D=X+4;M.canvas_width=1+h(P,D),D+=3,M.canvas_height=1+h(P,D),D+=3;break;case"ALPH":K=!0,R=F+8,le=X-8;break;case"ANIM":(M=O.header).bgcolor=p(P,X),D=X+4,M.loop_count=d(P,D),D+=2;break;case"ANMF":var $,M;(M=O.frames[A]={}).offset_x=2*h(P,X),X+=3,M.offset_y=2*h(P,X),X+=3,M.width=1+h(P,X),X+=3,M.height=1+h(P,X),X+=3,M.duration=h(P,X),X+=3,$=P[X++],M.dispose=1&$,M.blend=$>>1&1}oe!="ANMF"&&(X+=F)}return O}}(w,0);x.response=w,x.rgbaoutput=!0,x.dataurl=!1;var S=x.header?x.header:null,E=x.frames?x.frames:null;if(S){S.loop_counter=S.loop_count,f=[S.canvas_height],y=[S.canvas_width];for(var T=0;T<E.length&&E[T].blend!=0;T++);}var W=E[0],z=b.WebPDecodeRGBA(w,W.src_off,W.src_size,y,f);W.rgba=z,W.imgwidth=y[0],W.imgheight=f[0];for(var B=0;B<y[0]*f[0]*4;B++)v[B]=z[B];return this.width=y,this.height=f,this.data=v,this}(function(e){var t,r,n,i,s,a,o,l,c,d=function(j){return j=j||{},this.isStrokeTransparent=j.isStrokeTransparent||!1,this.strokeOpacity=j.strokeOpacity||1,this.strokeStyle=j.strokeStyle||"#000000",this.fillStyle=j.fillStyle||"#000000",this.isFillTransparent=j.isFillTransparent||!1,this.fillOpacity=j.fillOpacity||1,this.font=j.font||"10px sans-serif",this.textBaseline=j.textBaseline||"alphabetic",this.textAlign=j.textAlign||"left",this.lineWidth=j.lineWidth||1,this.lineJoin=j.lineJoin||"miter",this.lineCap=j.lineCap||"butt",this.path=j.path||[],this.transform=j.transform!==void 0?j.transform.clone():new l,this.globalCompositeOperation=j.globalCompositeOperation||"normal",this.globalAlpha=j.globalAlpha||1,this.clip_path=j.clip_path||[],this.currentPoint=j.currentPoint||new a,this.miterLimit=j.miterLimit||10,this.lastPoint=j.lastPoint||new a,this.lineDashOffset=j.lineDashOffset||0,this.lineDash=j.lineDash||[],this.margin=j.margin||[0,0,0,0],this.prevPageLastElemOffset=j.prevPageLastElemOffset||0,this.ignoreClearRect=typeof j.ignoreClearRect!="boolean"||j.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new h(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,a=this.internal.Point,o=this.internal.Rectangle,l=this.internal.Matrix,c=new d}]);var h=function(j){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var U=j;Object.defineProperty(this,"pdf",{get:function(){return U}});var H=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return H},set:function(Z){H=!!Z}});var re=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return re},set:function(Z){re=!!Z}});var te=0;Object.defineProperty(this,"posX",{get:function(){return te},set:function(Z){isNaN(Z)||(te=Z)}});var Q=0;Object.defineProperty(this,"posY",{get:function(){return Q},set:function(Z){isNaN(Z)||(Q=Z)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(Z){var Pe;typeof Z=="number"?Pe=[Z,Z,Z,Z]:((Pe=new Array(4))[0]=Z[0],Pe[1]=Z.length>=2?Z[1]:Pe[0],Pe[2]=Z.length>=3?Z[2]:Pe[0],Pe[3]=Z.length>=4?Z[3]:Pe[1]),c.margin=Pe}});var ce=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ce},set:function(Z){ce=Z}});var de=0;Object.defineProperty(this,"lastBreak",{get:function(){return de},set:function(Z){de=Z}});var he=[];Object.defineProperty(this,"pageBreaks",{get:function(){return he},set:function(Z){he=Z}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(Z){Z instanceof d&&(c=Z)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(Z){c.path=Z}});var we=[];Object.defineProperty(this,"ctxStack",{get:function(){return we},set:function(Z){we=Z}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Z){var Pe;Pe=p(Z),this.ctx.fillStyle=Pe.style,this.ctx.isFillTransparent=Pe.a===0,this.ctx.fillOpacity=Pe.a,this.pdf.setFillColor(Pe.r,Pe.g,Pe.b,{a:Pe.a}),this.pdf.setTextColor(Pe.r,Pe.g,Pe.b,{a:Pe.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Z){var Pe=p(Z);this.ctx.strokeStyle=Pe.style,this.ctx.isStrokeTransparent=Pe.a===0,this.ctx.strokeOpacity=Pe.a,Pe.a===0?this.pdf.setDrawColor(255,255,255):(Pe.a,this.pdf.setDrawColor(Pe.r,Pe.g,Pe.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Z){["butt","round","square"].indexOf(Z)!==-1&&(this.ctx.lineCap=Z,this.pdf.setLineCap(Z))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Z){isNaN(Z)||(this.ctx.lineWidth=Z,this.pdf.setLineWidth(Z))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Z){["bevel","round","miter"].indexOf(Z)!==-1&&(this.ctx.lineJoin=Z,this.pdf.setLineJoin(Z))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Z){isNaN(Z)||(this.ctx.miterLimit=Z,this.pdf.setMiterLimit(Z))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Z){this.ctx.textBaseline=Z}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Z){["right","end","center","left","start"].indexOf(Z)!==-1&&(this.ctx.textAlign=Z)}});var ve=null,Le=null,je=null;Object.defineProperty(this,"fontFaces",{get:function(){return je},set:function(Z){ve=null,Le=null,je=Z}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Z){var Pe;if(this.ctx.font=Z,(Pe=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(Z))!==null){var et=Pe[1];Pe[2];var Ne=Pe[3],Ce=Pe[4];Pe[5];var ee=Pe[6],ue=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ce)[2];Ce=Math.floor(ue==="px"?parseFloat(Ce)*this.pdf.internal.scaleFactor:ue==="em"?parseFloat(Ce)*this.pdf.getFontSize():parseFloat(Ce)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ce);var me=function(Xe){var rr,be,Ae=[],Qe=Xe.trim();if(Qe==="")return Pw;if(Qe in gC)return[gC[Qe]];for(;Qe!=="";){switch(be=null,rr=(Qe=yC(Qe)).charAt(0)){case'"':case"'":be=aae(Qe.substring(1),rr);break;default:be=oae(Qe)}if(be===null||(Ae.push(be[0]),(Qe=yC(be[1]))!==""&&Qe.charAt(0)!==","))return Pw;Qe=Qe.replace(/^,/,"")}return Ae}(ee);if(this.fontFaces){var Ee=function(Xe,rr){var be=Xe.getFontList(),Ae=JSON.stringify(be);if(ve===null||Le!==Ae){var Qe=function(ut){var tt=[];return Object.keys(ut).forEach(function(jt){ut[jt].forEach(function(wt){var St=null;switch(wt){case"bold":St={family:jt,weight:"bold"};break;case"italic":St={family:jt,style:"italic"};break;case"bolditalic":St={family:jt,weight:"bold",style:"italic"};break;case"":case"normal":St={family:jt}}St!==null&&(St.ref={name:jt,style:wt},tt.push(St))})}),tt}(be);ve=function(ut){for(var tt={},jt=0;jt<ut.length;++jt){var wt=Tw(ut[jt]),St=wt.family,dr=wt.stretch,Lt=wt.style,ft=wt.weight;tt[St]=tt[St]||{},tt[St][dr]=tt[St][dr]||{},tt[St][dr][Lt]=tt[St][dr][Lt]||{},tt[St][dr][Lt][ft]=wt}return tt}(Qe.concat(rr)),Le=Ae}return ve}(this.pdf,this.fontFaces),De=me.map(function(Xe){return{family:Xe,stretch:"normal",weight:Ne,style:et}}),_e=function(Xe,rr,be){for(var Ae=(be=be||{}).defaultFontFamily||"times",Qe=Object.assign({},sae,be.genericFontFamilies||{}),ut=null,tt=null,jt=0;jt<rr.length;++jt)if(Qe[(ut=Tw(rr[jt])).family]&&(ut.family=Qe[ut.family]),Xe.hasOwnProperty(ut.family)){tt=Xe[ut.family];break}if(!(tt=tt||Xe[Ae]))throw new Error("Could not find a font-family for the rule '"+vC(ut)+"' and default family '"+Ae+"'.");if(tt=function(wt,St){if(St[wt])return St[wt];var dr=Xx[wt],Lt=dr<=Xx.normal?-1:1,ft=mC(St,dF,dr,Lt);if(!ft)throw new Error("Could not find a matching font-stretch value for "+wt);return ft}(ut.stretch,tt),tt=function(wt,St){if(St[wt])return St[wt];for(var dr=uF[wt],Lt=0;Lt<dr.length;++Lt)if(St[dr[Lt]])return St[dr[Lt]];throw new Error("Could not find a matching font-style for "+wt)}(ut.style,tt),!(tt=function(wt,St){if(St[wt])return St[wt];if(wt===400&&St[500])return St[500];if(wt===500&&St[400])return St[400];var dr=iae[wt],Lt=mC(St,fF,dr,wt<400?-1:1);if(!Lt)throw new Error("Could not find a matching font-weight for value "+wt);return Lt}(ut.weight,tt)))throw new Error("Failed to resolve a font for the rule '"+vC(ut)+"'.");return tt}(Ee,De);this.pdf.setFont(_e.ref.name,_e.ref.style)}else{var Oe="";(Ne==="bold"||parseInt(Ne,10)>=700||et==="bold")&&(Oe="bold"),et==="italic"&&(Oe+="italic"),Oe.length===0&&(Oe="normal");for(var Ze="",Ke={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ze=0;ze<me.length;ze++){if(this.pdf.internal.getFont(me[ze],Oe,{noFallback:!0,disableWarning:!0})!==void 0){Ze=me[ze];break}if(Oe==="bolditalic"&&this.pdf.internal.getFont(me[ze],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Ze=me[ze],Oe="bold";else if(this.pdf.internal.getFont(me[ze],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Ze=me[ze],Oe="normal";break}}if(Ze===""){for(var vt=0;vt<me.length;vt++)if(Ke[me[vt]]){Ze=Ke[me[vt]];break}}Ze=Ze===""?"Times":Ze,this.pdf.setFont(Ze,Oe)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Z){this.ctx.globalCompositeOperation=Z}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Z){this.ctx.globalAlpha=Z}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Z){this.ctx.lineDashOffset=Z,M.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Z){this.ctx.lineDash=Z,M.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Z){this.ctx.ignoreClearRect=!!Z}})};h.prototype.setLineDash=function(j){this.lineDash=j},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){E.call(this,"fill",!1)},h.prototype.stroke=function(){E.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(j,U){if(isNaN(j)||isNaN(U))throw kr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to 
544jsPDF.context2d.moveTo");var H=this.ctx.transform.applyToPoint(new a(j,U));this.path.push({type:"mt",x:H.x,y:H.y}),this.ctx.lastPoint=new a(j,U)},h.prototype.closePath=function(){var j=new a(0,0),U=0;for(U=this.path.length-1;U!==-1;U--)if(this.path[U].type==="begin"&&vr(this.path[U+1])==="object"&&typeof this.path[U+1].x=="number"){j=new a(this.path[U+1].x,this.path[U+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(j.x,j.y)},h.prototype.lineTo=function(j,U){if(isNaN(j)||isNaN(U))throw kr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var H=this.ctx.transform.applyToPoint(new a(j,U));this.path.push({type:"lt",x:H.x,y:H.y}),this.ctx.lastPoint=new a(H.x,H.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),E.call(this,null,!0)},h.prototype.quadraticCurveTo=function(j,U,H,re){if(isNaN(H)||isNaN(re)||isNaN(j)||isNaN(U))throw kr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var te=this.ctx.transform.applyToPoint(new a(H,re)),Q=this.ctx.transform.applyToPoint(new a(j,U));this.path.push({type:"qct",x1:Q.x,y1:Q.y,x:te.x,y:te.y}),this.ctx.lastPoint=new a(te.x,te.y)},h.prototype.bezierCurveTo=function(j,U,H,re,te,Q){if(isNaN(te)||isNaN(Q)||isNaN(j)||isNaN(U)||isNaN(H)||isNaN(re))throw kr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ce=this.ctx.transform.applyToPoint(new a(te,Q)),de=this.ctx.transform.applyToPoint(new a(j,U)),he=this.ctx.transform.applyToPoint(new a(H,re));this.path.push({type:"bct",x1:de.x,y1:de.y,x2:he.x,y2:he.y,x:ce.x,y:ce.y}),this.ctx.lastPoint=new a(ce.x,ce.y)},h.prototype.arc=function(j,U,H,re,te,Q){if(isNaN(j)||isNaN(U)||isNaN(H)||isNaN(re)||isNaN(te))throw kr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Q=!!Q,!this.ctx.transform.isIdentity){var ce=this.ctx.transform.applyToPoint(new a(j,U));j=ce.x,U=ce.y;var de=this.ctx.transform.applyToPoint(new a(0,H)),he=this.ctx.transform.applyToPoint(new a(0,0));H=Math.sqrt(Math.pow(de.x-he.x,2)+Math.pow(de.y-he.y,2))}Math.abs(te-re)>=2*Math.PI&&(re=0,te=2*Math.PI),this.path.push({type:"arc",x:j,y:U,radius:H,startAngle:re,endAngle:te,counterclockwise:Q})},h.prototype.arcTo=function(j,U,H,re,te){throw new Error("arcTo not implemented.")},h.prototype.rect=function(j,U,H,re){if(isNaN(j)||isNaN(U)||isNaN(H)||isNaN(re))throw kr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(j,U),this.lineTo(j+H,U),this.lineTo(j+H,U+re),this.lineTo(j,U+re),this.lineTo(j,U),this.lineTo(j+H,U),this.lineTo(j,U)},h.prototype.fillRect=function(j,U,H,re){if(isNaN(j)||isNaN(U)||isNaN(H)||isNaN(re))throw kr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var te={};this.lineCap!=="butt"&&(te.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(te.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(j,U,H,re),this.fill(),te.hasOwnProperty("lineCap")&&(this.lineCap=te.lineCap),te.hasOwnProperty("lineJoin")&&(this.lineJoin=te.lineJoin)}},h.prototype.strokeRect=function(j,U,H,re){if(isNaN(j)||isNaN(U)||isNaN(H)||isNaN(re))throw kr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");y.call(this)||(this.beginPath(),this.rect(j,U,H,re),this.stroke())},h.prototype.clearRect=function(j,U,H,re){if(isNaN(j)||isNaN(U)||isNaN(H)||isNaN(re))throw kr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(j,U,H,re))},h.prototype.save=function(j){j=typeof j!="boolean"||j;for(var U=this.pdf.internal.getCurrentPageInfo().pageNumber,H=0;H<this.pdf.internal.getNumberOfPages();H++)this.pdf.setPage(H+1),this.pdf.internal.out("q");
vendor: 4,171 bytes, line 544
544if(this.pdf.setPage(U),j){this.ctx.fontSize=this.pdf.internal.getFontSize();var re=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=re}},h.prototype.restore=function(j){j=typeof j!="boolean"||j;for(var U=this.pdf.internal.getCurrentPageInfo().pageNumber,H=0;H<this.pdf.internal.getNumberOfPages();H++)this.pdf.setPage(H+1),this.pdf.internal.out("Q");this.pdf.setPage(U),j&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var p=function(j){var U,H,re,te;if(j.isCanvasGradient===!0&&(j=j.getColor()),!j)return{r:0,g:0,b:0,a:0,style:j};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(j))U=0,H=0,re=0,te=0;else{var Q=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(j);if(Q!==null)U=parseInt(Q[1]),H=parseInt(Q[2]),re=parseInt(Q[3]),te=1;else if((Q=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(j))!==null)U=parseInt(Q[1]),H=parseInt(Q[2]),re=parseInt(Q[3]),te=parseFloat(Q[4]);else{if(te=1,typeof j=="string"&&j.charAt(0)!=="#"){var ce=new nF(j);j=ce.ok?ce.toHex():"#000000"}j.length===4?(U=j.substring(1,2),U+=U,H=j.substring(2,3),H+=H,re=j.substring(3,4),re+=re):(U=j.substring(1,3),H=j.substring(3,5),re=j.substring(5,7)),U=parseInt(U,16),H=parseInt(H,16),re=parseInt(re,16)}}return{r:U,g:H,b:re,a:te,style:j}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},y=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};h.prototype.fillText=function(j,U,H,re){if(isNaN(U)||isNaN(H)||typeof j!="string")throw kr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(re=isNaN(re)?void 0:re,!f.call(this)){var te=F(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;A.call(this,{text:j,x:U,y:H,scale:Q,angle:te,align:this.textAlign,maxWidth:re})}},h.prototype.strokeText=function(j,U,H,re){if(isNaN(U)||isNaN(H)||typeof j!="string")throw kr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!y.call(this)){re=isNaN(re)?void 0:re;var te=F(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;A.call(this,{text:j,x:U,y:H,scale:Q,renderingMode:"stroke",angle:te,align:this.textAlign,maxWidth:re})}},h.prototype.measureText=function(j){if(typeof j!="string")throw kr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var U=this.pdf,H=this.pdf.internal.scaleFactor,re=U.internal.getFontSize(),te=U.getStringUnitWidth(j)*re/U.internal.scaleFactor;return new function(Q){var ce=(Q=Q||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ce}}),this}({width:te*=Math.round(96*H/72*1e4)/1e4})},h.prototype.scale=function(j,U){if(isNaN(j)||isNaN(U))throw kr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var H=new l(j,0,0,U,0,0);this.ctx.transform=this.ctx.transform.multiply(H)},h.prototype.rotate=function(j){if(isNaN(j))throw kr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var U=new l(Math.cos(j),Math.sin(j),-Math.sin(j),Math.cos(j),0,0);this.ctx.transform=this.ctx.transform.multiply(U)},h.prototype.translate=function(j,U){if(isNaN(j)||isNaN(U))throw kr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var H=new l(1,0,0,1,j,U);this.ctx.transform=this.ctx.transform.multiply(H)},h.prototype.transform=function(j,U,H,re,te,Q){if(isNaN(j)||isNaN(U)||isNaN(H)||isNaN(re)||isNaN(te)||isNaN(Q))throw kr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to 
544jsPDF.context2d.transform");var ce=new l(j,U,H,re,te,Q);this.ctx.transform=this.ctx.transform.multiply(ce)},h.prototype.setTransform=function(j,U,H,re,te,Q){j=isNaN(j)?1:j,U=isNaN(U)?0:U,H=isNaN(H)?0:H,re=isNaN(re)?1:re,te=isNaN(te)?0:te,Q=isNaN(Q)?0:Q,this.ctx.transform=new l(j,U,H,re,te,Q)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(j,U,H,re,te,Q,ce,de,he){var we=this.pdf.getImageProperties(j),ve=1,Le=1,je=1,Z=1;re!==void 0&&de!==void 0&&(je=de/re,Z=he/te,ve=we.width/re*de/re,Le=we.height/te*he/te),Q===void 0&&(Q=U,ce=H,U=0,H=0),re!==void 0&&de===void 0&&(de=re,he=te),re===void 0&&de===void 0&&(de=we.width,he=we.height);var Pe=this.ctx.transform.decompose(),et=F(Pe.rotate.shx),Ne=new l,Ce=(Ne=(Ne=(Ne=Ne.multiply(Pe.translate)).multiply(Pe.skew)).multiply(Pe.scale)).applyToRectangle(new o(Q-U*je,ce-H*Z,re*ve,te*Le));if(this.autoPaging){for(var ee,ue=b.call(this,Ce),me=[],Ee=0;Ee<ue.length;Ee+=1)me.indexOf(ue[Ee])===-1&&me.push(ue[Ee]);S(me);for(var De=me[0],_e=me[me.length-1],Oe=De;Oe<_e+1;Oe++){this.pdf.setPage(Oe);var Ze=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ke=Oe===1?this.posY+this.margin[0]:this.margin[0],ze=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],vt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Xe=Oe===1?0:ze+(Oe-2)*vt;if(this.ctx.clip_path.length!==0){var rr=this.path;ee=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(ee,this.posX+this.margin[3],-Xe+Ke+this.ctx.prevPageLastElemOffset),T.call(this,"fill",!0),this.path=rr}var be=JSON.parse(JSON.stringify(Ce));be=x([be],this.posX+this.margin[3],-Xe+Ke+this.ctx.prevPageLastElemOffset)[0];var Ae=(Oe>De||Oe<_e)&&v.call(this);Ae&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ze,vt,null).clip().discardPath()),this.pdf.addImage(j,"JPEG",be.x,be.y,be.w,be.h,null,null,et),Ae&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(j,"JPEG",Ce.x,Ce.y,Ce.w,Ce.h,null,null,et)};var b=function(j,U,H){var re=[];U=U||this.pdf.internal.pageSize.width,H=H||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var te=this.posY+this.ctx.prevPageLastElemOffset;switch(j.type){default:case"mt":case"lt":re.push(Math.floor((j.y+te)/H)+1);break;case"arc":re.push(Math.floor((j.y+te-j.radius)/H)+1),re.push(Math.floor((j.y+te+j.radius)/H)+1);break;case"qct":var Q=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,j.x1,j.y1,j.x,j.y);re.push(Math.floor((Q.y+te)/H)+1),re.push(Math.floor((Q.y+Q.h+te)/H)+1);break;case"bct":var ce=$(this.ctx.lastPoint.x,this.ctx.lastPoint.y,j.x1,j.y1,j.x2,j.y2,j.x,j.y);re.push(Math.floor((ce.y+te)/H)+1),re.push(Math.floor((ce.y+ce.h+te)/H)+1);break;case"rect":re.push(Math.floor((j.y+te)/H)+1),re.push(Math.floor((j.y+j.h+te)/H)+1)}for(var de=0;de<re.length;de+=1)for(;this.pdf.internal.getNumberOfPages()<re[de];)w.call(this);return re},w=function(){var j=this.fillStyle,U=this.strokeStyle,H=this.font,re=this.lineCap,te=this.lineWidth,Q=this.lineJoin;this.pdf.addPage(),this.fillStyle=j,this.strokeStyle=U,this.font=H,this.lineCap=re,this.lineWidth=te,this.lineJoin=Q},x=function(j,U,H){for(var re=0;re<j.length;re++)switch(j[re].type){case"bct":j[re].x2+=U,j[re].y2+=H;case"qct":j[re].x1+=U,j[re].y1+=H;default:j[re].x+=U,j[re].y+=H}return j},S=function(j){return j.sort(function(U,H){return U-H})},E=function(j,U){var H=this.fillStyle,re=this.strokeStyle,te=this.lineCap,Q=this.lineWidth,ce=Math.abs(Q*this.ctx.transform.scaleX),de=this.lineJoin;if(this.autoPaging){for(var he,we,ve=JSON.parse(JSON.stringify(this.path)),Le=JSON.parse(JSON.stringify(this.path)),je=[],Z=0;Z<Le.length;Z++)if(Le[Z].x!==void 0)for(var Pe=b.call(this,Le[Z]),et=0;et<Pe.length;et+=1)je.indexOf(Pe[et])===-1&&je.push(Pe[et]);for(var Ne=0;Ne<je.length;Ne++)for(;this.pdf.internal.getNumberOfPages()<je[Ne];)w.call(this);S(je);for(var Ce=je[0],ee=je[je.length-1],ue=Ce;ue<ee+1;ue++){this.pdf.setPage(ue),this.fillStyle=H,this.strokeStyle=re,this.lineCap=te,this.lineWidth=ce,this.lineJoin=de;var me=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ee=ue===1?this.posY+this.margin[0]:this.margin[0],De=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],_e=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Oe=ue===1?0:De+(ue-2)*_e;if(this.ctx.clip_path.length!==0){var Ze=this.path;he=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(he,this.posX+this.margin[3],-Oe+Ee+this.ctx.prevPageLastElemOffset),T.call(this,j,!0),this.path=Ze}if(we=JSON.parse(JSON.stringify(ve)),this.path=x(we,this.posX+this.margin[3],-Oe+Ee+this.ctx.prevPageLastElemOffset),U===!1||ue===0){var Ke=(ue>Ce||ue<ee)&&v.call(this);Ke&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],me,_e,null).clip().discardPath()),T.call(this,j,U),Ke&&this.pdf.restoreGraphicsState()}this.lineWidth=Q}this.path=ve}else this.lineWidth=ce,T.call(this,j,U),this.lineWidth=Q},T=function(j,U){if((j!=="stroke"||U||!y.call(this))&&(j==="stroke"||U||!f.call(this))){for(var H,re,te=[],Q=this.path,ce=0;ce<Q.length;ce++){var de=Q[ce];switch(de.type){case"begin":te.push({begin:!0}
vendor: 43,346 bytes, lines 544-552
544);break;case"close":te.push({close:!0});break;case"mt":te.push({start:de,deltas:[],abs:[]});break;case"lt":var he=te.length;if(Q[ce-1]&&!isNaN(Q[ce-1].x)&&(H=[de.x-Q[ce-1].x,de.y-Q[ce-1].y],he>0)){for(;he>=0;he--)if(te[he-1].close!==!0&&te[he-1].begin!==!0){te[he-1].deltas.push(H),te[he-1].abs.push(de);break}}break;case"bct":H=[de.x1-Q[ce-1].x,de.y1-Q[ce-1].y,de.x2-Q[ce-1].x,de.y2-Q[ce-1].y,de.x-Q[ce-1].x,de.y-Q[ce-1].y],te[te.length-1].deltas.push(H);break;case"qct":var we=Q[ce-1].x+2/3*(de.x1-Q[ce-1].x),ve=Q[ce-1].y+2/3*(de.y1-Q[ce-1].y),Le=de.x+2/3*(de.x1-de.x),je=de.y+2/3*(de.y1-de.y),Z=de.x,Pe=de.y;H=[we-Q[ce-1].x,ve-Q[ce-1].y,Le-Q[ce-1].x,je-Q[ce-1].y,Z-Q[ce-1].x,Pe-Q[ce-1].y],te[te.length-1].deltas.push(H);break;case"arc":te.push({deltas:[],abs:[],arc:!0}),Array.isArray(te[te.length-1].abs)&&te[te.length-1].abs.push(de)}}re=U?null:j==="stroke"?"stroke":"fill";for(var et=!1,Ne=0;Ne<te.length;Ne++)if(te[Ne].arc)for(var Ce=te[Ne].abs,ee=0;ee<Ce.length;ee++){var ue=Ce[ee];ue.type==="arc"?B.call(this,ue.x,ue.y,ue.radius,ue.startAngle,ue.endAngle,ue.counterclockwise,void 0,U,!et):K.call(this,ue.x,ue.y),et=!0}else if(te[Ne].close===!0)this.pdf.internal.out("h"),et=!1;else if(te[Ne].begin!==!0){var me=te[Ne].start.x,Ee=te[Ne].start.y;R.call(this,te[Ne].deltas,me,Ee),et=!0}re&&P.call(this,re),U&&X.call(this)}},W=function(j){var U=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,H=U*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return j-H;case"top":return j+U-H;case"hanging":return j+U-2*H;case"middle":return j+U/2-H;default:return j}},z=function(j){return j+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var j=function(){};return j.colorStops=[],j.addColorStop=function(U,H){this.colorStops.push([U,H])},j.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},j.isCanvasGradient=!0,j},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var B=function(j,U,H,re,te,Q,ce,de,he){for(var we=oe.call(this,H,re,te,Q),ve=0;ve<we.length;ve++){var Le=we[ve];ve===0&&(he?O.call(this,Le.x1+j,Le.y1+U):K.call(this,Le.x1+j,Le.y1+U)),le.call(this,j,U,Le.x2,Le.y2,Le.x3,Le.y3,Le.x4,Le.y4)}de?X.call(this):P.call(this,ce)},P=function(j){switch(j){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},X=function(){this.pdf.clip(),this.pdf.discardPath()},O=function(j,U){this.pdf.internal.out(r(j)+" "+n(U)+" m")},A=function(j){var U;switch(j.align){case"right":case"end":U="right";break;case"center":U="center";break;default:U="left"}var H,re,te,Q=this.pdf.getTextDimensions(j.text),ce=W.call(this,j.y),de=z.call(this,ce)-Q.h,he=this.ctx.transform.applyToPoint(new a(j.x,ce));if(this.autoPaging){var we=this.ctx.transform.decompose(),ve=new l;ve=(ve=(ve=ve.multiply(we.translate)).multiply(we.skew)).multiply(we.scale);for(var Le=this.ctx.transform.applyToRectangle(new o(j.x,ce,Q.w,Q.h)),je=ve.applyToRectangle(new o(j.x,de,Q.w,Q.h)),Z=b.call(this,je),Pe=[],et=0;et<Z.length;et+=1)Pe.indexOf(Z[et])===-1&&Pe.push(Z[et]);S(Pe);for(var Ne=Pe[0],Ce=Pe[Pe.length-1],ee=Ne;ee<Ce+1;ee++){this.pdf.setPage(ee);var ue=ee===1?this.posY+this.margin[0]:this.margin[0],me=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ee=this.pdf.internal.pageSize.height-this.margin[2],De=Ee-this.margin[0],_e=this.pdf.internal.pageSize.width-this.margin[1],Oe=_e-this.margin[3],Ze=ee===1?0:me+(ee-2)*De;if(this.ctx.clip_path.length!==0){var Ke=this.path;H=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(H,this.posX+this.margin[3],-1*Ze+ue),T.call(this,"fill",!0),this.path=Ke}var ze=x([JSON.parse(JSON.stringify(je))],this.posX+this.margin[3],-Ze+ue+this.ctx.prevPageLastElemOffset)[0];j.scale>=.01&&(re=this.pdf.internal.getFontSize(),this.pdf.setFontSize(re*j.scale),te=this.lineWidth,this.lineWidth=te*j.scale);var vt=this.autoPaging!=="text";if(vt||ze.y+ze.h<=Ee){if(vt||ze.y>=ue&&ze.x<=_e){var Xe=vt?j.text:this.pdf.splitTextToSize(j.text,j.maxWidth||_e-ze.x)[0],rr=x([JSON.parse(JSON.stringify(Le))],this.posX+this.margin[3],-Ze+ue+this.ctx.prevPageLastElemOffset)[0],be=vt&&(ee>Ne||ee<Ce)&&v.call(this);be&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Oe,De,null).clip().discardPath()),this.pdf.text(Xe,rr.x,rr.y,{angle:j.angle,align:U,renderingMode:j.renderingMode}),be&&this.pdf.restoreGraphicsState()}}else ze.y<Ee&&(this.ctx.prevPageLastElemOffset+=Ee-ze.y);j.scale>=.01&&(this.pdf.setFontSize(re),this.lineWidth=te)}}else j.scale>=.01&&(re=this.pdf.internal.getFontSize(),this.pdf.setFontSize(re*j.scale),te=this.lineWidth,this.lineWidth=te*j.scale),this.pdf.text(j.text,he.x+this.posX,he.y+this.posY,{angle:j.angle,align:U,renderingMode:j.renderingMode,maxWidth:j.maxWidth}),j.scale>=.01&&(this.pdf.setFontSize(re),this.lineWidth=te)},K=function(j,U,H,re){H=H||0,re=re||0,this.pdf.internal.out(r(j+H)+" "+n(U+re)+" l")},R=function(j,U,H){return this.pdf.lines(j,U,H,null,null)},le=function(j,U,H,re,te,Q,ce,de){this.pdf.internal.out([t(i(H+j)),t(s(re+U)),t(i(te+j)),t(s(Q+U)),t(i(ce+j)),t(s(de+U)),"c"].join(" "))},oe=function(j,U,H,re){for(var te=2*Math.PI,Q=Math.PI/2;U>H;)U-=te;var ce=Math.abs(H-U);ce<te&&re&&(ce=te-ce);for(var de=[],he=re?-1:1,we=U;ce>1e-5;){var ve=we+he*Math.min(ce,Q);de.push(se.call(this,j,we,ve)),ce-=Math.abs(ve-we),we=ve}return de},se=function(j,U,H){var re=(H-U)/2,te=j*Math.cos(re),Q=j*Math.sin(re),ce=te,de=-Q,he=ce*ce+de*de,we=he+ce*te+de*Q,ve=4/3*(Math.sqrt(2*he*we)-we)/(ce*Q-de*te),Le=ce-ve*de,je=de+ve*ce,Z=Le,Pe=-je,et=re+U,Ne=Math.cos(et),Ce=Math.sin(et);return{x1:j*Math.cos(U),y1:j*Math.sin(U),x2:Le*Ne-je*Ce,y2:Le*Ce+je*Ne,x3:Z*Ne-Pe*Ce,y3:Z*Ce+Pe*Ne,x4:j*Math.cos(H),y4:j*Math.sin(H)}},F=function(j){return 180*j/Math.PI},D=function(j,U,H,re,te,Q){var ce=j+.5*(H-j),de=U+.5*(re-U),he=te+.5*(H-te),we=Q+.5*(re-Q),ve=Math.min(j,te,ce,he),Le=Math.max(j,te,ce,he),je=Math.min(U,Q,de,we),Z=Math.max(U,Q,de,we);return new o(ve,je,Le-ve,Z-je)},$=function(j,U,H,re,te,Q,ce,de){var he,we,ve,Le,je,Z,Pe,et,Ne,Ce,ee,ue,me,Ee,De=H-j,_e=re-U,Oe=te-H,Ze=Q-re,Ke=ce-te,ze=de-Q;for(we=0;we<41;we++)Ne=(Pe=(ve=j+(he=we/40)*De)+he*((je=H+he*Oe)-ve))+he*(je+he*(te+he*Ke-je)-Pe),Ce=(et=(Le=U+he*_e)+he*((Z=re+he*Ze)-Le))+he*(Z+he*(Q+he*ze-Z)-et),we==0?(ee=Ne,ue=Ce,me=Ne,Ee=Ce):(ee=Math.min(ee,Ne),ue=Math.min(ue,Ce),me=Math.max(me,Ne),Ee=Math.max(Ee,Ce));return new o(Math.round(ee),Math.round(ue),Math.round(me-ee),Math.round(Ee-ue))},M=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var j,U,H=(j=this.ctx.lineDash,U=this.ctx.lineDashOffset,JSON.stringify({lineDash:j,lineDashOffset:U}));this.prevLineDash!==H&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=H)}}})(kt.API),function(e){var t=function(a){var o,l,c,d,h,p,f,y,v,b;for(l=[],c=0,d=(a+=o="\0\0\0\0".slice(a.length%4||4)).length;d>c;c+=4)(h=(a.charCodeAt(c)<<24)+(a.charCodeAt(c+1)<<16)+(a.charCodeAt(c+2)<<8)+a.charCodeAt(c+3))!==0?(p=(h=((h=((h=((h=(h-(b=h%85))/85)-(v=h%85))/85)-(y=h%85))/85)-(f=h%85))/85)%85,l.push(p+33,f+33,y+33,v+33,b+33)):l.push(122);return function(w,x){for(var S=x;S>0;S--)w.pop()}(l,o.length),String.fromCharCode.apply(String,l)+"~>"},r=function(a){var o,l,c,d,h,p=String,f="length",y=255,v="charCodeAt",b="slice",w="replace";for(a[b](-2),a=a[b](0,-2)[w](/\s/g,"")[w]("z","!!!!!"),c=[],d=0,h=(a+=o="uuuuu"[b](a[f]%5||5))[f];h>d;d+=5)l=52200625*(a[v](d)-33)+614125*(a[v](d+1)-33)+7225*(a[v](d+2)-33)+85*(a[v](d+3)-33)+(a[v](d+4)-33),c.push(y&l>>24,y&l>>16,y&l>>8,y&l);return function(x,S){for(var E=S;E>0;E--)x.pop()}(c,o[f]),p.fromCharCode.apply(p,c)},n=function(a){return a.split("").map(function(o){return("0"+o.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(a){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((a=a.replace(/\s/g,"")).indexOf(">")!==-1&&(a=a.substr(0,a.indexOf(">"))),a.length%2&&(a+="0"),o.test(a)===!1)return"";for(var l="",c=0;c<a.length;c+=2)l+=String.fromCharCode("0x"+(a[c]+a[c+1]));return l},s=function(a){for(var o=new Uint8Array(a.length),l=a.length;l--;)o[l]=a.charCodeAt(l);return(o=Mx(o)).reduce(function(c,d){return c+String.fromCharCode(d)},"")};e.processDataByFilters=function(a,o){var l=0,c=a||"",d=[];for(typeof(o=o||[])=="string"&&(o=[o]),l=0;l<o.length;l+=1)switch(o[l]){case"ASCII85Decode":case"/ASCII85Decode":c=r(c),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=t(c),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=i(c),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=n(c),d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=s(c),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[l]+'" is not implemented')}return{data:c,reverseChain:d.reverse().join(" ")}}}(kt.API),function(e){e.loadFile=function(t,r,n){return function(i,s,a){s=s!==!1,a=typeof a=="function"?a:function(){};var o=void 0;try{o=function(l,c,d){var h=new XMLHttpRequest,p=0,f=function(y){var v=y.length,b=[],w=String.fromCharCode;for(p=0;p<v;p+=1)b.push(w(255&y.charCodeAt(p)));return b.join("")};if(h.open("GET",l,!c),h.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(h.onload=function(){h.status===200?d(f(this.responseText)):d(void 0)}),h.send(null),c&&h.status===200)return f(h.responseText)}(i,s,a)}catch{}return o}(t,r,n)},e.loadImageFile=e.loadFile}(kt.API),function(e){function t(){return(Tt.html2canvas?Promise.resolve(Tt.html2canvas):aw(()=>import("./html2canvas.esm-CBrSDip1.js"),[])).catch(function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))}).then(function(o){return o.default?o.default:o})}function r(){return(Tt.DOMPurify?Promise.resolve(Tt.DOMPurify):aw(()=>import("./purify.es-sOfw8HaZ.js"),[])).catch(function(o){return Promise.reject(new Error("Could not load dompurify: "+o))}).then(function(o){return o.default?o.default:o})}var n=function(o){var l=vr(o);return l==="undefined"?"undefined":l==="string"||o instanceof String?"string":l==="number"||o instanceof Number?"number":l==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":l==="object"?"object":"unknown"},i=function(o,l){var c=document.createElement(o);for(var d in l.className&&(c.className=l.className),l.innerHTML&&l.dompurify&&(c.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)c.style[d]=l.style[d];return c},s=function o(l,c){for(var d=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),h=l.firstChild;h;h=h.nextSibling)c!==!0&&h.nodeType===1&&h.nodeName==="SCRIPT"||d.appendChild(o(h,c));return l.nodeType===1&&(l.nodeName==="CANVAS"?(d.width=l.width,d.height=l.height,d.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(d.value=l.value),d.addEventListener("load",function(){d.scrollTop=l.scrollTop,d.scrollLeft=l.scrollLeft},!0)),d},a=function o(l){var c=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),d=o.convert(Promise.resolve(),c);return(d=d.setProgress(1,o,1,[o])).set(l)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(o,l){return o.__proto__=l||a.prototype,o},a.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},a.prototype.from=function(o,l){return this.then(function(){switch(l=l||function(c){switch(n(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(o),l){case"string":return this.then(r).then(function(c){return this.set({src:i("div",{innerHTML:o,dompurify:c})})});case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}})},a.prototype.to=function(o){switch(o){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},a.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var o={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},l=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(l),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},a.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then(function(l){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,l(this.prop.container,c)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},a.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then(function(l){var c=this.opt.jsPDF,d=this.opt.fontFaces,h=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,p=Object.assign({async:!0,allowTaint:!0,scale:h,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete p.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=d,d)for(var f=0;f<d.length;++f){var y=d[f],v=y.src.find(function(b){return b.format==="truetype"});v&&c.addFont(v.url,y.ref.name,y.ref.style)}return p.windowHeight=p.windowHeight||0,p.windowHeight=p.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):p.windowHeight,c.context2d.save(!0),l(this.prop.container,p)}).then(function(l){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},a.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var o=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=o})},a.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},a.prototype.output=function(o,l,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(o,l):this.outputPdf(o,l)},a.prototype.outputPdf=function(o,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(o,l)})},a.prototype.outputImg=function(o){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(o){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+o+'" is not supported.'}})},a.prototype.save=function(o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(o?{filename:o}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},a.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},a.prototype.set=function(o){if(n(o)!=="object")return this;var l=Object.keys(o||{}).map(function(c){if(c in a.template.prop)return function(){this.prop[c]=o[c]};switch(c){case"margin":return this.setMargin.bind(this,o.margin);case"jsPDF":return function(){return this.opt.jsPDF=o.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,o.pageSize);default:return function(){this.opt[c]=o[c]}}},this);return this.then(function(){return this.thenList(l)})},a.prototype.get=function(o,l){return this.then(function(){var c=o in a.template.prop?this.prop[o]:this.opt[o];return l?l(c):c})},a.prototype.setMargin=function(o){return this.then(function(){switch(n(o)){case"number":o=[o,o,o,o];case"array":if(o.length===2&&(o=[o[0],o[1],o[0],o[1]]),o.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=o}).then(this.setPageSize)},a.prototype.setPageSize=function(o){function l(c,d){return Math.floor(c*d/72*96)}return this.then(function(){(o=o||kt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(o.inner={width:o.width-this.opt.margin[1]-this.opt.margin[3],height:o.height-this.opt.margin[0]-this.opt.margin[2]},o.inner.px={width:l(o.inner.width,o.k),height:l(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o})},a.prototype.setProgress=function(o,l,c,d){return o!=null&&(this.progress.val=o),l!=null&&(this.progress.state=l),c!=null&&(this.progress.n=c),d!=null&&(this.progress.stack=d),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(o,l,c,d){return this.setProgress(o?this.progress.val+o:null,l||null,c?this.progress.n+c:null,d?this.progress.stack.concat(d):null)},a.prototype.then=function(o,l){var c=this;return this.thenCore(o,l,function(d,h){return c.updateProgress(null,null,1,[d]),Promise.prototype.then.call(this,function(p){return c.updateProgress(null,d),p}).then(d,h).then(function(p){return c.updateProgress(1),p})})},a.prototype.thenCore=function(o,l,c){c=c||Promise.prototype.then;var d=this;o&&(o=o.bind(d)),l&&(l=l.bind(d));var h=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?d:a.convert(Object.assign({},d),Promise.prototype),p=c.call(h,o,l);return a.convert(p,d.__proto__)},a.prototype.thenExternal=function(o,l){return Promise.prototype.then.call(this,o,l)},a.prototype.thenList=function(o){var l=this;return o.forEach(function(c){l=l.thenCore(c)}),l},a.prototype.catch=function(o){o&&(o=o.bind(this));var l=Promise.prototype.catch.call(this,o);return a.convert(l,this)},a.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},a.prototype.error=function(o){return this.then(function(){throw new Error(o)})},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,kt.getPageSize=function(o,l,c){if(vr(o)==="object"){var d=o;o=d.orientation,l=d.unit||l,c=d.format||c}l=l||"mm",c=c||"a4",o=(""+(o||"P")).toLowerCase();var h,p=(""+c).toLowerCase(),f={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(l){case"pt":h=1;break;case"mm":h=72/25.4;break;case"cm":h=72/2.54;break;case"in":h=72;break;case"px":h=.75;break;case"pc":case"em":h=12;break;case"ex":h=6;break;default:throw"Invalid unit: "+l}var y,v=0,b=0;if(f.hasOwnProperty(p))v=f[p][1]/h,b=f[p][0]/h;else try{v=c[1],b=c[0]}catch{throw new Error("Invalid format: "+c)}if(o==="p"||o==="portrait")o="p",b>v&&(y=b,b=v,v=y);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",v>b&&(y=b,b=v,v=y)}return{width:b,height:v,unit:l,k:h,orientation:o}},e.html=function(o,l){(l=l||{}).callback=l.callback||function(){},l.html2canvas=l.html2canvas||{},l.html2canvas.canvas=l.html2canvas.canvas||this.canvas,l.jsPDF=l.jsPDF||this,l.fontFaces=l.fontFaces?l.fontFaces.map(Tw):null;var c=new a(l);return l.worker?c:c.from(o).doCallback()}}(kt.API),kt.API.addJS=function(e){return wC=e,this.internal.events.subscribe("postPutResources",function(){hv=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(hv+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),bC=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+wC+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){hv!==void 0&&bC!==void 0&&this.internal.out("/Names <</JavaScript "+hv+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var r=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=r.outline.render().split(/\r\n/),s=0;s<i.length;s++){var a=i[s],o=n.exec(a);if(o!=null){var l=o[1];r.internal.newObjectDeferredBegin(l,!1)}r.internal.write(a)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,d=[];for(s=0;s<c;s++){var h=r.internal.newObject();d.push(h);var p=r.internal.getPageInfo(s+1);r.internal.write("<< /D["+p.objId+" 0 R /XYZ null null null]>> endobj")}var f=r.internal.newObject();for(r.internal.write("<< /Names [ "),s=0;s<d.length;s++)r.internal.write("(page_"+(s+1)+")"+d[s]+" 0 R");r.internal.write(" ] >>","endobj"),t=r.internal.newObject(),r.internal.write("<< /Dests "+f+" 0 R"),r.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var r=this;r.outline.root.children.length>0&&(r.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&r.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(n,i,s){var a={title:i,options:s,children:[]};return n==null&&(n=this.root),n.children.push(a),a},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(n){n.id=r.internal.newObjectDeferred();for(var i=0;i<n.children.length;i++)this.genIds_r(n.children[i])},r.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},r.outline.renderItems=function(n){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s<n.children.length;s++){var a=n.children[s];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(n)),s>0&&this.line("/Prev "+this.makeRef(n.children[s-1])),s<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[s+1])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var o=this.count=this.count_r({count:0},a);if(o>0&&this.line("/Count "+o),a.options&&a.options.pageNumber){var l=r.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;c<n.children.length;c++)this.renderItems(n.children[c])},r.outline.line=function(n){this.ctx.val+=n+`\r
545`},r.outline.makeRef=function(n){return n.id+" 0 R"},r.outline.makeString=function(n){return"("+r.internal.pdfEscape(n)+")"},r.outline.objStart=function(n){this.ctx.val+=`\r
546`+n.id+` 0 obj\r
547<<\r
548`},r.outline.objEnd=function(){this.ctx.val+=`>> \r
549endobj\r
550`},r.outline.count_r=function(n,i){for(var s=0;s<i.children.length;s++)n.count++,this.count_r(n,i.children[s]);return n.count}}])}(kt.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(r,n,i,s,a,o){var l,c=this.decode.DCT_DECODE,d=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=a||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,l=function(h){for(var p,f=256*h.charCodeAt(4)+h.charCodeAt(5),y=h.length,v={width:0,height:0,numcomponents:1},b=4;b<y;b+=2){if(b+=f,t.indexOf(h.charCodeAt(b+1))!==-1){p=256*h.charCodeAt(b+5)+h.charCodeAt(b+6),v={width:256*h.charCodeAt(b+7)+h.charCodeAt(b+8),height:p,numcomponents:h.charCodeAt(b+9)};break}f=256*h.charCodeAt(b+2)+h.charCodeAt(b+3)}return v}(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r),l.numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}d={data:r,width:l.width,height:l.height,colorSpace:o,bitsPerComponent:8,filter:c,index:n,alias:i}}return d}}(kt.API),kt.API.processPNG=function(e,t,r,n){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,s=Hse(e,{checkCrc:!0}),a=s.width,o=s.height,l=s.channels,c=s.palette,d=s.depth;i=c&&l===1?function(B){for(var P=B.width,X=B.height,O=B.data,A=B.palette,K=B.depth,R=!1,le=[],oe=[],se=void 0,F=!1,D=0,$=0;$<A.length;$++){var M=pE(A[$],4),j=M[0],U=M[1],H=M[2],re=M[3];le.push(j,U,H),re!=null&&(re===0?(D++,oe.length<1&&oe.push($)):re<255&&(F=!0))}if(F||D>1){R=!0,oe=void 0;var te=P*X;se=new Uint8Array(te);for(var Q=new DataView(O.buffer),ce=0;ce<te;ce++){var de=Ow(Q,ce,K),he=pE(A[de],4)[3];se[ce]=he}}else D===0&&(oe=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:R?8:void 0,colorBytes:O,alphaBytes:se,needSMask:R,palette:le,mask:oe}}(s):l===2||l===4?function(B){for(var P=B.data,X=B.width,O=B.height,A=B.channels,K=B.depth,R=A===2?"DeviceGray":"DeviceRGB",le=A-1,oe=X*O,se=le,F=oe*se,D=1*oe,$=Math.ceil(F*K/8),M=Math.ceil(D*K/8),j=new Uint8Array($),U=new Uint8Array(M),H=new DataView(P.buffer),re=new DataView(j.buffer),te=new DataView(U.buffer),Q=!1,ce=0;ce<oe;ce++){for(var de=ce*A,he=0;he<se;he++)AC(re,Ow(H,de+he,K),ce*se+he,K);var we=Ow(H,de+se,K);we<(1<<K)-1&&(Q=!0),AC(te,we,1*ce,K)}return{colorSpace:R,colorsPerPixel:le,sMaskBitsPerComponent:Q?K:void 0,colorBytes:j,alphaBytes:U,needSMask:Q}}(s):function(B){var P=B.data,X=B.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:X,colorsPerPixel:X==="DeviceGray"?1:3,colorBytes:P instanceof Uint16Array?function(O){for(var A=O.length,K=new Uint8Array(2*A),R=new DataView(K.buffer,K.byteOffset,K.byteLength),le=0;le<A;le++)R.setUint16(2*le,O[le],!1);return K}(P):P,needSMask:!1}}(s);var h,p,f,y=i,v=y.colorSpace,b=y.colorsPerPixel,w=y.sMaskBitsPerComponent,x=y.colorBytes,S=y.alphaBytes,E=y.needSMask,T=y.palette,W=y.mask,z=null;return n!==kt.API.image_compression.NONE&&typeof Mx=="function"?(z=function(B){var P;switch(B){case kt.API.image_compression.FAST:P=11;break;case kt.API.image_compression.MEDIUM:P=13;break;case kt.API.image_compression.SLOW:P=14;break;default:P=12}return P}(n),h=this.decode.FLATE_DECODE,p="/Predictor ".concat(z," /Colors ").concat(b," /BitsPerComponent ").concat(d," /Columns ").concat(a),e=SC(x,Math.ceil(a*b*d/8),b,d,n),E&&(f=SC(S,Math.ceil(a*w/8),1,w,n))):(h=void 0,p=void 0,e=x,E&&(f=S)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:r,data:e,index:t,filter:h,decodeParameters:p,transparency:W,palette:T,sMask:f,predictor:z,width:a,height:o,bitsPerComponent:d,sMaskBitsPerComponent:w,colorSpace:v}}},function(e){e.processGIF89A=function(t,r,n,i){var s=new dae(t),a=s.width,o=s.height,l=[];s.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:a,height:o},d=new Rw(100).encode(c,100);return e.processJPEG.call(this,d,r,n,i)},e.processGIF87A=e.processGIF89A}(kt.API),Gs.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:n,blue:r,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Gs.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(r){kr.log("bit decode error:"+r)}},Gs.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var s=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+8*i*4,o=0;o<8&&8*i+o<this.width;o++){var l=this.palette[s>>7-o&1];this.data[a+4*o]=l.blue,this.data[a+4*o+1]=l.green,this.data[a+4*o+2]=l.red,this.data[a+4*o+3]=255}r!==0&&(this.pos+=4-r)}},Gs.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<e;i++){var s=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+2*i*4,o=s>>4,l=15&s,c=this.palette[o];if(this.data[a]=c.blue,this.data[a+1]=c.green,this.data[a+2]=c.red,this.data[a+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[a+4]=c.blue,this.data[a+4+1]=c.green,this.data[a+4+2]=c.red,this.data[a+4+3]=255}t!==0&&(this.pos+=4-t)}},Gs.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+4*n;if(i<this.palette.length){var a=this.palette[i];this.data[s]=a.red,this.data[s+1]=a.green,this.data[s+2]=a.blue,this.data[s+3]=255}else this.data[s]=255,this.data[s+1]=255,this.data[s+2]=255,this.data[s+3]=255}e!==0&&(this.pos+=4-e)}},Gs.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(s&t)/t*255|0,o=(s>>5&t)/t*255|0,l=(s>>10&t)/t*255|0,c=s>>15?255:0,d=n*this.width*4+4*i;this.data[d]=l,this.data[d+1]=o,this.data[d+2]=a,this.data[d+3]=c}this.pos+=e}},Gs.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,s=0;s<this.width;s++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&t)/t*255|0,l=(a>>5&r)/r*255|0,c=(a>>11)/t*255|0,d=i*this.width*4+4*s;this.data[d]=c,this.data[d+1]=l,this.data[d+2]=o,this.data[d+3]=255}this.pos+=e}},Gs.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*r;this.data[a]=s,this.data[a+1]=i,this.data[a+2]=n,this.data[a+3]=255}this.pos+=this.width%4}},Gs.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*r;this.data[o]=s,this.data[o+1]=i,this.data[o+2]=n,this.data[o+3]=a}},Gs.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,r,n,i){var s=new Gs(t,!1),a=s.width,o=s.height,l={data:s.getData(),width:a,height:o},c=new Rw(100).encode(l,100);return e.processJPEG.call(this,c,r,n,i)}}(kt.API),PC.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,r,n,i){var s=new PC(t),a=s.width,o=s.height,l={data:s.getData(),width:a,height:o},c=new Rw(100).encode(l,100);return e.processJPEG.call(this,c,r,n,i)}}(kt.API),kt.API.processRGBA=function(e,t,r){for(var n=e.data,i=n.length,s=new Uint8Array(i/4*3),a=new Uint8Array(i/4),o=0,l=0,c=0;c<i;c+=4){var d=n[c],h=n[c+1],p=n[c+2],f=n[c+3];s[o++]=d,s[o++]=h,s[o++]=p,a[l++]=f}var y=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:y,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},kt.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},xd=kt.API,pv=xd.getCharWidthsArray=function(e,t){var r,n,i=(t=t||{}).font||this.internal.getFont(),s=t.fontSize||this.internal.getFontSize(),a=t.charSpace||this.internal.getCharSpace(),o=t.widths?t.widths:i.metadata.Unicode.widths,l=o.fof?o.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,d=c.fof?c.fof:1,h=t.doKerning!==!1,p=0,f=e.length,y=0,v=o[0]||l,b=[];for(r=0;r<f;r++)n=e.charCodeAt(r),typeof i.metadata.widthOfString=="function"?b.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+a*(1e3/s)||0)/1e3):(p=h&&vr(c[n])==="object"&&!isNaN(parseInt(c[n][y],10))?c[n][y]/d:0,b.push((o[n]||v)/l+p)),y=n;return b},xC=xd.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return xd.processArabic&&(e=xd.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,r,i)/r:pv.apply(this,arguments).reduce(function(s,a){return s+a},0)},_C=function(e,t,r,n){for(var i=[],s=0,a=e.length,o=0;s!==a&&o+t[s]<r;)o+=t[s],s++;i.push(e.slice(0,s));var l=s;for(o=0;s!==a;)o+t[s]>n&&(i.push(e.slice(l,s)),o=0,l=s),o+=t[s],s++;return l!==s&&i.push(e.slice(l,s)),i},kC=function(e,t,r){r||(r={});var n,i,s,a,o,l,c,d=[],h=[d],p=r.textIndent||0,f=0,y=0,v=e.split(" "),b=pv.apply(this,[" ",r])[0];if(l=r.lineIndent===-1?v[0].length+2:r.lineIndent||0){var w=Array(l).join(" "),x=[];v.map(function(E){(E=E.split(/\s*\n/)).length>1?x=x.concat(E.map(function(T,W){return(W&&T.length?`
551`:"")+T})):x.push(E[0])}),v=x,l=xC.apply(this,[w,r])}for(s=0,a=v.length;s<a;s++){var S=0;if(n=v[s],l&&n[0]==`
552`&&(n=n.substr(1),S=1),p+f+(y=(i=pv.apply(this,[n,r])).reduce(function(E,T){return E+T},0))>t||S){if(y>t){for(o=_C.apply(this,[n,i,t-(p+f),t]),d.push(o.shift()),d=[o.pop()];o.length;)h.push([o.shift()]);y=i.slice(n.length-(d[0]?d[0].length:0)).reduce(function(E,T){return E+T},0)}else d=[n];h.push(d),p=y+l,f=b}else d.push(n),p+=f+y,f=b}return c=l?function(E,T){return(T?w:"")+E.join(" ")}:function(E){return E.join(" ")},h.map(c)},xd.splitTextToSize=function(e,t,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),s=(function(d){if(d.widths&&d.kerning)return{widths:d.widths,kerning:d.kerning};var h=this.internal.getFont(d.fontName,d.fontStyle),p="Unicode";return h.metadata[p]?{widths:h.metadata[p].widths||{0:1},kerning:h.metadata[p].kerning||{}}:{font:h.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*t/i;s.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/i:0,s.lineIndent=r.lineIndent;var o,l,c=[];for(o=0,l=n.length;o<l;o++)c=c.concat(kC.apply(this,[n[o],a,s]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",r="klmnopqrstuvwxyz",n={},i={},s=0;s<16;s++)n[r[s]]=t[s],i[t[s]]=r[s];var a=function(p){return"0x"+parseInt(p,10).toString(16)},o=e.__fontmetrics__.compress=function(p){var f,y,v,b,w=["{"];for(var x in p){if(f=p[x],isNaN(parseInt(x,10))?y="'"+x+"'":(x=parseInt(x,10),y=(y=a(x).slice(2)).slice(0,-1)+i[y.slice(-1)]),typeof f=="number")f<0?(v=a(f).slice(3),b="-"):(v=a(f).slice(2),b=""),v=b+v.slice(0,-1)+i[v.slice(-1)];else{if(vr(f)!=="object")throw new Error("Don't know what to do with value type "+vr(f)+".");v=o(f)}w.push(y+v)}return w.push("}"),w.join("")},l=e.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var f,y,v,b,w={},x=1,S=w,E=[],T="",W="",z=p.length-1,B=1;B<z;B+=1)(b=p[B])=="'"?f?(v=f.join(""),f=void 0):f=[]:f?f.push(b):b=="{"?(E.push([S,v]),S={},v=void 0):b=="}"?((y=E.pop())[0][y[1]]=S,v=void 0,S=y[0]):b=="-"?x=-1:v===void 0?n.hasOwnProperty(b)?(T+=n[b],v=parseInt(T,16)*x,x=1,T=""):T+=b:n.hasOwnProperty(b)?(W+=n[b],S[v]=parseInt(W,16)*x,x=1,v=void 0,W=""):W+=b;return w},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d
vendor: 14,960 bytes, line 552
552={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},h={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(
vendor: 30,866 bytes, lines 552-580
552p){var f=p.font,y=h.Unicode[f.postScriptName];y&&(f.metadata.Unicode={},f.metadata.Unicode.widths=y.widths,f.metadata.Unicode.kerning=y.kerning);var v=d.Unicode[f.postScriptName];v&&(f.metadata.Unicode.encoding=v,f.encoding=v.codePages[0])}])}(kt.API),function(e){var t=function(r){for(var n=r.length,i=new Uint8Array(n),s=0;s<n;s++)i[s]=r.charCodeAt(s);return i};e.API.events.push(["addFont",function(r){var n=void 0,i=r.font,s=r.instance;if(!i.isStandardFont){if(s===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(n=s.existsFileInVFS(i.postScriptName)===!1?s.loadFile(i.postScriptName):s.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(a,o){o=/^\x00\x01\x00\x00/.test(o)?t(o):t(qv(o)),a.metadata=e.API.TTFFont.open(o),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(i,n)}}])}(kt),kt.API.addSvgAsImage=function(e,t,r,n,i,s,a,o){if(isNaN(t)||isNaN(r))throw kr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(i))throw kr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=n,l.height=i;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return(Tt.canvg?Promise.resolve(Tt.canvg):aw(()=>import("./index.es-Cil3atAq.js"),[])).catch(function(p){return Promise.reject(new Error("Could not load canvg: "+p))}).then(function(p){return p.default?p.default:p}).then(function(p){return p.fromString(c,e,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(p){return p.render(d)}).then(function(){h.addImage(l.toDataURL("image/jpeg",1),t,r,n,i,a,o)})},kt.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(t,r);return this},kt.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,i,s,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},o=Object.keys(a),l=[],c=0,d=0,h=0;function p(y,v){var b,w=!1;for(b=0;b<y.length;b+=1)y[b]===v&&(w=!0);return w}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var f=o.length;for(h=0;h<f;h+=1)r[o[h]].value=r[o[h]].defaultValue,r[o[h]].explicitSet=!1}if(vr(e)==="object"){for(i in e)if(s=e[i],p(o,i)&&s!==void 0){if(r[i].type==="boolean"&&typeof s=="boolean")r[i].value=s;else if(r[i].type==="name"&&p(r[i].valueSet,s))r[i].value=s;else if(r[i].type==="integer"&&Number.isInteger(s))r[i].value=s;else if(r[i].type==="array"){for(c=0;c<s.length;c+=1)if(n=!0,s[c].length===1&&typeof s[c][0]=="number")l.push(String(s[c]-1));else if(s[c].length>1){for(d=0;d<s[c].length;d+=1)typeof s[c][d]!="number"&&(n=!1);n===!0&&l.push([s[c][0]-1,s[c][1]-1].join(" "))}r[i].value="["+l.join(" ")+"]"}else r[i].value=r[i].defaultValue;r[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var y,v=[];for(y in r)r[y].explicitSet===!0&&(r[y].type==="name"?v.push("/"+y+" /"+r[y].value):v.push("/"+y+" "+r[y].value));v.length!==0&&this.internal.write(`/ViewerPreferences
553<<
554`+v.join(`
555`)+`
556>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},function(e){var t=function(){var n='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),s=unescape(encodeURIComponent(n)),a=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),o=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),c=s.length+a.length+o.length+i.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(i+s+a+o+l),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(n,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",t)),this}}(kt.API),function(e){var t=e.API,r=t.pdfEscape16=function(s,a){for(var o,l=a.metadata.Unicode.widths,c=["","0","00","000","0000"],d=[""],h=0,p=s.length;h<p;++h){if(o=a.metadata.characterToGlyph(s.charCodeAt(h)),a.metadata.glyIdsUsed.push(o),a.metadata.toUnicode[o]=s.charCodeAt(h),l.indexOf(o)==-1&&(l.push(o),l.push([parseInt(a.metadata.widthOfGlyph(o),10)])),o=="0")return d.join("");o=o.toString(16),d.push(c[4-o.length],o)}return d.join("")},n=function(s){var a,o,l,c,d,h,p;for(d=`/CIDInit /ProcSet findresource begin
55712 dict begin
558begincmap
559/CIDSystemInfo <<
560  /Registry (Adobe)
561  /Ordering (UCS)
562  /Supplement 0
563>> def
564/CMapName /Adobe-Identity-UCS def
565/CMapType 2 def
5661 begincodespacerange
567<0000><ffff>
568endcodespacerange`,l=[],h=0,p=(o=Object.keys(s).sort(function(f,y){return f-y})).length;h<p;h++)a=o[h],l.length>=100&&(d+=`
569`+l.length+` beginbfchar
570`+l.join(`
571`)+`
572endbfchar`,l=[]),s[a]!==void 0&&s[a]!==null&&typeof s[a].toString=="function"&&(c=("0000"+s[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),l.push("<"+a+"><"+c+">"));return l.length&&(d+=`
573`+l.length+` beginbfchar
574`+l.join(`
575`)+`
576endbfchar
577`),d+`endcmap
578CMapName currentdict /CMap defineresource pop
579end
580end`};t.events.push(["putFont",function(s){(function(a){var o=a.font,l=a.out,c=a.newObject,d=a.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="Identity-H"){for(var h=o.metadata.Unicode.widths,p=o.metadata.subset.encode(o.metadata.glyIdsUsed,1),f="",y=0;y<p.length;y++)f+=String.fromCharCode(p[y]);var v=c();d({data:f,addLength1:!0,objectId:v}),l("endobj");var b=c();d({data:n(o.metadata.toUnicode),addLength1:!0,objectId:b}),l("endobj");var w=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+jd(o.fontName)),l("/FontFile2 "+v+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(o.metadata.bbox)),l("/Flags "+o.metadata.flags),l("/StemV "+o.metadata.stemV),l("/ItalicAngle "+o.metadata.italicAngle),l("/Ascent "+o.metadata.ascender),l("/Descent "+o.metadata.decender),l("/CapHeight "+o.metadata.capHeight),l(">>"),l("endobj");var x=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+jd(o.fontName)),l("/FontDescriptor "+w+" 0 R"),l("/W "+e.API.PDFObject.convert(h)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+o.encoding+")"),l(">>"),l(">>"),l("endobj"),o.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+b+" 0 R"),l("/BaseFont /"+jd(o.fontName)),l("/Encoding /"+o.encoding),l("/DescendantFonts ["+x+" 0 R]"),l(">>"),l("endobj"),o.isAlreadyPutted=!0}})(s)}]),t.events.push(["putFont",function(s){(function(a){var o=a.font,l=a.out,c=a.newObject,d=a.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="WinAnsiEncoding"){for(var h=o.metadata.rawData,p="",f=0;f<h.length;f++)p+=String.fromCharCode(h[f]);var y=c();d({data:p,addLength1:!0,objectId:y}),l("endobj");var v=c();d({data:n(o.metadata.toUnicode),addLength1:!0,objectId:v}),l("endobj");var b=c();l("<<"),l("/Descent "+o.metadata.decender),l("/CapHeight "+o.metadata.capHeight),l("/StemV "+o.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+y+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(o.metadata.bbox)),l("/FontName /"+jd(o.fontName)),l("/ItalicAngle "+o.metadata.italicAngle),l("/Ascent "+o.metadata.ascender),l(">>"),l("endobj"),o.objectNumber=c();for(var w=0;w<o.metadata.hmtx.widths.length;w++)o.metadata.hmtx.widths[w]=parseInt(o.metadata.hmtx.widths[w]*(1e3/o.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+v+" 0 R/BaseFont/"+jd(o.fontName)+"/FontDescriptor "+b+" 0 R/Encoding/"+o.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(o.metadata.hmtx.widths)+">>"),l("endobj"),o.isAlreadyPutted=!0}})(s)}]);var i=function(s){var a,o=s.text||"",l=s.x,c=s.y,d=s.options||{},h=s.mutex||{},p=h.pdfEscape,f=h.activeFontKey,y=h.fonts,v=f,b="",w=0,x="",S=y[v].encoding;if(y[v].encoding!=="Identity-H")return{text:o,x:l,y:c,options:d,mutex:h};for(x=o,v=f,Array.isArray(o)&&(x=o[0]),w=0;w<x.length;w+=1)y[v].metadata.hasOwnProperty("cmap")&&(a=y[v].metadata.cmap.unicode.codeMap[x[w].charCodeAt(0)]),a||x[w].charCodeAt(0)<256&&y[v].metadata.hasOwnProperty("Unicode")?b+=x[w]:b+="";var E="";return parseInt(v.slice(1))<14||S==="WinAnsiEncoding"?E=p(b,v).split("").map(function(T){return T.charCodeAt(0).toString(16)}).join(""):S==="Identity-H"&&(E=r(b,y[v])),h.isHex=!0,{text:E,x:l,y:c,options:d,mutex:h}};t.events.push(["postProcessText",function(s){var a=s.text||"",o=[],l={text:a,x:s.x,y:s.y,options:s.options,mutex:s.mutex};if(Array.isArray(a)){var c=0;for(c=0;c<a.length;c+=1)Array.isArray(a[c])&&a[c].length===3?o.push([i(Object.assign({},l,{text:a[c][0]})).text,a[c][1],a[c][2]]):o.push(i(Object.assign({},l,{text:a[c]})).text);s.text=o}else s.text=i(Object.assign({},l,{text:a})).text}])}(kt),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0},e.addFileToVFS=function(r,n){return t.call(this),this.internal.vFS[r]=n,this},e.getFileFromVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}}(kt.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var i,s,a,o,l,c,d,h=t,p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],f=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],y={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},v={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},b=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],w=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),x=!1,S=0;this.__bidiEngine__={};var E=function(O){var A=O.charCodeAt(),K=A>>8,R=v[K];return R!==void 0?h[256*R+(255&A)]:K===252||K===253?"AL":w.test(K)?"L":K===8?"R":"N"},T=function(O){for(var A,K=0;K<O.length;K++){if((A=E(O.charAt(K)))==="L")return!1;if(A==="R")return!0}return!1},W=function(O,A,K,R){var le,oe,se,F,D=A[R];switch(D){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":x=!1;break;case"N":case"AN":break;case"EN":x&&(D="AN");break;case"AL":x=!0,D="R";break;case"WS":case"BN":D="N";break;case"CS":R<1||R+1>=A.length||(le=K[R-1])!=="EN"&&le!=="AN"||(oe=A[R+1])!=="EN"&&oe!=="AN"?D="N":x&&(oe="AN"),D=oe===le?oe:"N";break;case"ES":D=(le=R>0?K[R-1]:"B")==="EN"&&R+1<A.length&&A[R+1]==="EN"?"EN":"N";break;case"ET":if(R>0&&K[R-1]==="EN"){D="EN";break}if(x){D="N";break}for(se=R+1,F=A.length;se<F&&A[se]==="ET";)se++;D=se<F&&A[se]==="EN"?"EN":"N";break;case"NSM":if(a&&!o){for(F=A.length,se=R+1;se<F&&A[se]==="NSM";)se++;if(se<F){var $=O[R],M=$>=1425&&$<=2303||$===64286;if(le=A[se],M&&(le==="R"||le==="AL")){D="R";break}}}D=R<1||(le=A[R-1])==="B"?"N":K[R-1];break;case"B":x=!1,i=!0,D=S;break;case"S":s=!0,D="N"}return D},z=function(O,A,K){var R=O.split("");return K&&B(R,K,{hiLevel:S}),R.reverse(),A&&A.reverse(),R.join("")},B=function(O,A,K){var R,le,oe,se,F,D=-1,$=O.length,M=0,j=[],U=S?f:p,H=[];for(x=!1,i=!1,s=!1,le=0;le<$;le++)H[le]=E(O[le]);for(oe=0;oe<$;oe++){if(F=M,j[oe]=W(O,H,j,oe),R=240&(M=U[F][y[j[oe]]]),M&=15,A[oe]=se=U[M][5],R>0)if(R===16){for(le=D;le<oe;le++)A[le]=1;D=-1}else D=-1;if(U[M][6])D===-1&&(D=oe);else if(D>-1){for(le=D;le<oe;le++)A[le]=se;D=-1}H[oe]==="B"&&(A[oe]=0),K.hiLevel|=se}s&&function(re,te,Q){for(var ce=0;ce<Q;ce++)if(re[ce]==="S"){te[ce]=S;for(var de=ce-1;de>=0&&re[de]==="WS";de--)te[de]=S}}(H,A,$)},P=function(O,A,K,R,le){if(!(le.hiLevel<O)){if(O===1&&S===1&&!i)return A.reverse(),void(K&&K.reverse());for(var oe,se,F,D,$=A.length,M=0;M<$;){if(R[M]>=O){for(F=M+1;F<$&&R[F]>=O;)F++;for(D=M,se=F-1;D<se;D++,se--)oe=A[D],A[D]=A[se],A[se]=oe,K&&(oe=K[D],K[D]=K[se],K[se]=oe);M=F}M++}}},X=function(O,A,K){var R=O.split(""),le={hiLevel:S};return K||(K=[]),B(R,K,le),function(oe,se,F){if(F.hiLevel!==0&&d)for(var D,$=0;$<oe.length;$++)se[$]===1&&(D=b.indexOf(oe[$]))>=0&&(oe[$]=b[D+1])}(R,K,le),P(2,R,A,K,le),P(1,R,A,K,le),R.join("")};return this.__bidiEngine__.doBidiReorder=function(O,A,K){if(function(le,oe){if(oe)for(var se=0;se<le.length;se++)oe[se]=se;o===void 0&&(o=T(le)),c===void 0&&(c=T(le))}(O,A),a||!l||c)if(a&&l&&o^c)S=o?1:0,O=z(O,A,K);else if(!a&&l&&c)S=o?1:0,O=X(O,A,K),O=z(O,A);else if(!a||o||l||c){if(a&&!l&&o^c)O=z(O,A),o?(S=0,O=X(O,A,K)):(S=1,O=X(O,A,K),O=z(O,A));else if(a&&o&&!l&&c)S=1,O=X(O,A,K),O=z(O,A);else if(!a&&!l&&o^c){var R=d;o?(S=1,O=X(O,A,K),S=0,d=!1,O=X(O,A,K),d=R):(S=0,O=X(O,A,K),O=z(O,A),S=1,d=!1,O=X(O,A,K),d=R,O=z(O,A))}}else S=0,O=X(O,A,K);else S=o?1:0,O=X(O,A,K);return O},this.__bidiEngine__.setOptions=function(O){O&&(a=O.isInputVisual,l=O.isOutputVisual,o=O.isInputRtl,c=O.isOutputRtl,d=O.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var i=n.text;n.x,n.y;var s=n.options||{};n.mutex,s.lang;var a=[];if(s.isInputVisual=typeof s.isInputVisual!="boolean"||s.isInputVisual,r.setOptions(s),Object.prototype.toString.call(i)==="[object Array]"){var o=0;for(a=[],o=0;o<i.length;o+=1)Object.prototype.toString.call(i[o])==="[object Array]"?a.push([r.doBidiReorder(i[o][0]),i[o][1],i[o][2]]):a.push([r.doBidiReorder(i[o])]);n.text=a}else n.text=r.doBidiReorder(i);r.setOptions({isInputVisual:!0})}])}(kt),kt.API.TTFFont=function(){function e(t){var r;if(this.rawData=t,r=this.contents=new ac(t),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new Eae(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new fae(this.contents),this.head=new pae(this),this.name=new bae(this),this.cmap=new pF(this),this.toUnicode={},this.hhea=new mae(this),this.maxp=new wae(this),this.hmtx=new xae(this),this.post=new vae(this),this.os2=new gae(this),this.loca=new Nae(this),this.glyf=new _ae(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,r,n,i,s;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var a,o,l,c;for(c=[],a=0,o=(l=this.bbox).length;a<o;a++)t=l[a],c.push(Math.round(t*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),32768&(r=i>>16)&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(s=this.familyClass)===1||s===2||s===3||s===4||s===5||s===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var r;return((r=this.cmap.unicode)!=null?r.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*r},e.prototype.widthOfString=function(t,r,n){var i,s,a,o;for(a=0,s=0,o=(t=""+t).length;0<=o?s<o:s>o;s=0<=o?++s:--s)i=t.charCodeAt(s),a+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/r)||0;return a*(r/1e3)},e.prototype.lineHeight=function(t,r){var n;return r==null&&(r=!1),n=r?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},e}();var ba,ac=function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var r,n;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n[r]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(t){var r,n,i;for(i=[],r=0,n=t.length;0<=n?r<n:r>n;r=0<=n?++r:--r)i.push(this.writeByte(t.charCodeAt(r)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,r,n,i,s,a,o,l;return t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),s=this.readByte(),a=this.readByte(),o=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^r)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^s)+65536*(255^a)+256*(255^o)+(255^l)+1):72057594037927940*t+281474976710656*r
vendor: 1,140 bytes, line 580
580+1099511627776*n+4294967296*i+16777216*s+65536*a+256*o+l},e.prototype.writeLongLong=function(t){var r,n;return r=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var r,n;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r.push(this.readByte());return r},e.prototype.write=function(t){var r,n,i,s;for(s=[],n=0,i=t.length;n<i;n++)r=t[n],s.push(this.writeByte(r));return s},e}(),fae=function(){var e;function t(r){var n,i,s;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},i=0,s=this.tableCount;0<=s?i<s:i>s;i=0<=s?++i:--i)n={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(r){var n,i,s,a,o,l,c,d,h,p,f,y,v;
vendor: 14,750 bytes, line 580
580for(v in f=Object.keys(r).length,l=Math.log(2),h=16*Math.floor(Math.log(f)/l),a=Math.floor(h/l),d=16*f-h,(i=new ac).writeInt(this.scalarType),i.writeShort(f),i.writeShort(h),i.writeShort(a),i.writeShort(d),s=16*f,c=i.pos+s,o=null,y=[],r)for(p=r[v],i.writeString(v),i.writeInt(e(p)),i.writeInt(c),i.writeInt(p.length),y=y.concat(p),v==="head"&&(o=c),c+=p.length;c%4;)y.push(0),c++;return i.write(y),n=2981146554-e(i.data),i.pos=o+8,i.writeUInt32(n),i.data},e=function(r){var n,i,s,a;for(r=mF.call(r);r.length%4;)r.push(0);for(s=new ac(r),i=0,n=0,a=r.length;n<a;n=n+=4)i+=s.readUInt32();return 4294967295&i},t}(),hae={}.hasOwnProperty,no=function(e,t){for(var r in t)hae.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};ba=function(){function e(t){var r;this.file=t,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var pae=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return no(e,ba),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var r;return(r=new ac).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(t),r.writeShort(this.glyphDataFormat),r.data},e}(),OC=function(){function e(t,r){var n,i,s,a,o,l,c,d,h,p,f,y,v,b,w,x,S;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=r+t.readInt(),h=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(f=t.readUInt16(),p=f/2,t.pos+=6,s=function(){var E,T;for(T=[],l=E=0;0<=p?E<p:E>p;l=0<=p?++E:--E)T.push(t.readUInt16());return T}(),t.pos+=2,v=function(){var E,T;for(T=[],l=E=0;0<=p?E<p:E>p;l=0<=p?++E:--E)T.push(t.readUInt16());return T}(),c=function(){var E,T;for(T=[],l=E=0;0<=p?E<p:E>p;l=0<=p?++E:--E)T.push(t.readUInt16());return T}(),d=function(){var E,T;for(T=[],l=E=0;0<=p?E<p:E>p;l=0<=p?++E:--E)T.push(t.readUInt16());return T}(),i=(this.length-t.pos+this.offset)/2,o=function(){var E,T;for(T=[],l=E=0;0<=i?E<i:E>i;l=0<=i?++E:--E)T.push(t.readUInt16());return T}(),l=w=0,S=s.length;w<S;l=++w)for(b=s[l],n=x=y=v[l];y<=b?x<=b:x>=b;n=y<=b?++x:--x)d[l]===0?a=n+c[l]:(a=o[d[l]/2+(n-y)-(p-l)]||0)!==0&&(a+=c[l]),this.codeMap[n]=65535&a}t.pos=h}return e.encode=function(t,r){var n,i,s,a,o,l,c,d,h,p,f,y,v,b,w,x,S,E,T,W,z,B,P,X,O,A,K,R,le,oe,se,F,D,$,M,j,U,H,re,te,Q,ce,de,he,we,ve;switch(R=new ac,a=Object.keys(t).sort(function(Le,je){return Le-je}),r){case"macroman":for(v=0,b=function(){var Le=[];for(y=0;y<256;++y)Le.push(0);return Le}(),x={0:0},s={},le=0,D=a.length;le<D;le++)x[de=t[i=a[le]]]==null&&(x[de]=++v),s[i]={old:t[i],new:x[t[i]]},b[i]=x[t[i]];return R.writeUInt16(1),R.writeUInt16(0),R.writeUInt32(12),R.writeUInt16(0),R.writeUInt16(262),R.writeUInt16(0),R.write(b),{charMap:s,subtable:R.data,maxGlyphID:v+1};case"unicode":for(A=[],h=[],S=0,x={},n={},w=c=null,oe=0,$=a.length;oe<$;oe++)x[T=t[i=a[oe]]]==null&&(x[T]=++S),n[i]={old:T,new:x[T]},o=x[T]-i,w!=null&&o===c||(w&&h.push(w),A.push(i),c=o),w=i;for(w&&h.push(w),h.push(65535),A.push(65535),X=2*(P=A.length),B=2*Math.pow(Math.log(P)/Math.LN2,2),p=Math.log(B/2)/Math.LN2,z=2*P-B,l=[],W=[],f=[],y=se=0,M=A.length;se<M;y=++se){if(O=A[y],d=h[y],O===65535){l.push(0),W.push(0);break}if(O-(K=n[O].new)>=32768)for(l.push(0),W.push(2*(f.length+P-y)),i=F=O;O<=d?F<=d:F>=d;i=O<=d?++F:--F)f.push(n[i].new);else l.push(K-O),W.push(0)}for(R.writeUInt16(3),R.writeUInt16(1),R.writeUInt32(12),R.writeUInt16(4),R.writeUInt16(16+8*P+2*f.length),R.writeUInt16(0),R.writeUInt16(X),R.writeUInt16(B),R.writeUInt16(p),R.writeUInt16(z),Q=0,j=h.length;Q<j;Q++)i=h[Q],R.writeUInt16(i);for(R.writeUInt16(0),ce=0,U=A.length;ce<U;ce++)i=A[ce],R.writeUInt16(i);for(he=0,H=l.length;he<H;he++)o=l[he],R.writeUInt16(o);for(we=0,re=W.length;we<re;we++)E=W[we],R.writeUInt16(E);for(ve=0,te=f.length;ve<te;ve++)v=f[ve],R.writeUInt16(v);return{charMap:n,subtable:R.data,maxGlyphID:S+1}}},e}(),pF=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return no(e,ba),e.prototype.tag="cmap",e.prototype.parse=function(t){var r,n,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)r=new OC(t,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},e.encode=function(t,r){var n,i;return r==null&&(r="macroman"),n=OC.encode(t,r),(i=new ac).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},e}(),mae=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return no(e,ba),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),gae=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return no(e,ba),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var r,n;for(n=[],r=0;r<10;++r)n.push(t.readByte());return n}(),this.charRange=function(){var r,n;for(n=[],r=0;r<4;++r)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var r,n;for(n=[],r=0;r<2;r=++r)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),vae=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return no(e,ba),e.prototype.tag="post",e.prototype.parse=function(t){var r,n,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var s;for(n=t.readUInt16(),this.glyphNameIndex=[],s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)r=t.readByte(),i.push(this.names.push(t.readString(r)));return i;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=(function(){var a,o,l;for(l=[],s=a=0,o=this.file.maxp.numGlyphs;0<=o?a<o:a>o;s=0<=o?++a:--a)l.push(t.readUInt32());return l}).call(this)}},e}(),yae=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},bae=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return no(e,ba),e.prototype.tag="name",e.prototype.parse=function(t){var r,n,i,s,a,o,l,c,d,h,p;for(t.pos=this.offset,t.readShort(),r=t.readShort(),o=t.readShort(),n=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(l={},s=d=0,h=n.length;d<h;s=++d)i=n[s],t.pos=i.offset,c=t.readString(i.length),a=new yae(c,i),l[p=i.nameID]==null&&(l[p]=[]),l[i.nameID].push(a);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e}(),wae=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return no(e,ba),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),xae=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return no(e,ba),e.prototype.tag="hmtx",e.prototype.parse=function(t){var r,n,i,s,a,o,l;for(t.pos=this.offset,this.metrics=[],r=0,o=this.file.hhea.numberOfMetrics;0<=o?r<o:r>o;r=0<=o?++r:--r)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var c,d;for(d=[],r=c=0;0<=i?c<i:c>i;r=0<=i?++c:--c)d.push(t.readInt16());return d}(),this.widths=(function(){var c,d,h,p;for(p=[],c=0,d=(h=this.metrics).length;c<d;c++)s=h[c],p.push(s.advance);return p}).call(this),n=this.widths[this.widths.length-1],l=[],r=a=0;0<=i?a<i:a>i;r=0<=i?++a:--a)l.push(this.widths.push(n));return l},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),mF=[].slice,_ae=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return no(e,ba),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var r,n,i,s,a,o,l,c,d,h;return t in this.cache?this.cache[t]:(s=this.file.loca,r=this.file.contents,n=s.indexOf(t),(i=s.lengthOf(t))===0?this.cache[t]=null:(r.pos=this.offset+n,a=(o=new ac(r.read(i))).readShort(),c=o.readShort(),h=o.readShort(),l=o.readShort(),d=o.readShort(),this.cache[t]=a===-1?new Sae(o,c,h,l,d):new kae(o,a,c,h,l,d),this.cache[t]))},e.prototype.encode=function(t,r,n){var i,s,a,o,l;for(a=[],s=[],o=0,l=r.length;o<l;o++)i=t[r[o]],s.push(a.length),i&&(a=a.concat(i.encode(n)));return s.push(a.length),{table:a,offsets:s}},e}(),kae=function(){function e(t,r,n,i,s,a){this.raw=t,this.numberOfContours=r,this.xMin=n,this.yMin=i,this.xMax=s,this.yMax=a,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),Sae=function(){function e(t,r,n,i,s){var a,o;for(this.raw=t,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=s,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;o=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&o;)a.pos+=1&o?4:2,128&o?a.pos+=8:64&o?a.pos+=4:8&o&&(a.pos+=2)}return e.prototype.encode=function(){var t,r,n;for(r=new ac(mF.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)r.pos=this.glyphOffsets[t];return r.data},e}(),Nae=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return no(e,ba),e.prototype.tag="loca",e.prototype.parse=function(t){var r,n;return t.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var i,s;for(s=[],n=0,i=this.length;n<i;n+=2)s.push(2*t.readUInt16());return s}).call(this):(function(){var i,s;for(s=[],n=0,i=this.length;n<i;n+=4)s.push(t.readUInt32());return s}).call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,r){for(var n=new Uint32Array(this.offsets.length),i=0,s=0,a=0;a<n.length;++a)if(n[a]=i,s<r.length&&r[s]==a){++s,n[a]=i;var o=this.offsets[a],l=this.offsets[a+1]-o;l>0&&(i+=l)}for(var c=new Array(4*n.length),d=0;d<n.length;++d)c[4*d+3]=255&n[d],c[4*d+2]=(65280&n[d])>>8,c[4*d+1]=(16711680&n[d])>>16,c[4*d]=(4278190080&n[d])>>24;return c},e}(),Eae=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,r,n,i,s;for(r in i=this.font.cmap.tables[0].codeMap,t={},s=this.subset)n=s[r],t[r]=i[n];return t},e.prototype.glyphsFor=function(t){var r,n,i,s,a,o,l;for(i={},a=0,o=t.length;a<o;a++)i[s=t[a]]=this.font.glyf.glyphFor(s);for(s in r=[],i)(n=i[s])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(s in l=this.glyphsFor(r))n=l[s],i[s]=n;return i}
580,e.prototype.encode=function(t,r){var n,i,s,a,o,l,c,d,h,p,f,y,v,b,w;for(i in n=pF.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),f={0:0},w=n.charMap)f[(l=w[i]).old]=l.new;for(y in p=n.maxGlyphID,a)y in f||(f[y]=p++);return d=function(x){var S,E;for(S in E={},x)E[x[S]]=S;return E}(f),h=Object.keys(d).sort(function(x,S){return x-S}),v=function(){var x,S,E;for(E=[],x=0,S=h.length;x<S;x++)o=h[x],E.push(d[o]);return E}(),s=this.font.glyf.encode(a,v,f),c=this.font.loca.encode(s.offsets,v),b={cmap:this.font.cmap.raw(),glyf:s.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(r)},this.font.os2.exists&&(b["OS/2"]=this.font.os2.raw()),this.font.directory.encode(b)},e}();kt.API.PDFObject=function(){var e;function t(){}return e=function(r,n){return(Array(n+1).join("0")+r).slice(-n)},t.convert=function(r){var n,i,s,a;if(Array.isArray(r))return"["+function(){var o,l,c;for(c=[],o=0,l=r.length;o<l;o++)n=r[o],c.push(t.convert(n));return c}().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r!=null&&r.isString)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(i in s=["<<"],r)a=r[i],s.push("/"+i+" "+t.convert(a));return s.push(">>"),s.join(`
581`)}return""+r},t}();const Jx=_.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Ue("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Jx.displayName="Card";const Cae=_.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Ue("flex flex-col space-y-1.5 p-6",e),...t}));Cae.displayName="CardHeader";const jae=_.forwardRef(({className:e,...t},r)=>u.jsx("h3",{ref:r,className:Ue("text-2xl font-semibold leading-none tracking-tight",e),...t}));jae.displayName="CardTitle";const Aae=_.forwardRef(({className:e,...t},r)=>u.jsx("p",{ref:r,className:Ue("text-sm text-muted-foreground",e),...t}));Aae.displayName="CardDescription";const Qx=_.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Ue("p-6 pt-0",e),...t}));Qx.displayName="CardContent";const Tae=_.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:Ue("flex items-center p-6 pt-0",e),...t}));Tae.displayName="CardFooter";var p1="Checkbox",[Pae,Hle]=gs(p1),[Oae,Ik]=Pae(p1);function Rae(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:i,disabled:s,form:a,name:o,onCheckedChange:l,required:c,value:d="on",internal_do_not_use_render:h}=e,[p,f]=qo({prop:r,defaultProp:i??!1,onChange:l,caller:p1}),[y,v]=_.useState(null),[b,w]=_.useState(null),x=_.useRef(!1),S=y?!!a||!!y.closest("form"):!0,E={checked:p,disabled:s,setChecked:f,control:y,setControl:v,name:o,form:a,value:d,hasConsumerStoppedPropagationRef:x,required:c,defaultChecked:Jl(i)?!1:i,isFormControl:S,bubbleInput:b,setBubbleInput:w};return u.jsx(Oae,{scope:t,...E,children:Lae(h)?h(E):n})}var gF="CheckboxTrigger",vF=_.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},i)=>{const{control:s,value:a,disabled:o,checked:l,required:c,setControl:d,setChecked:h,hasConsumerStoppedPropagationRef:p,isFormControl:f,bubbleInput:y}=Ik(gF,e),v=qt(i,d),b=_.useRef(l);return _.useEffect(()=>{const w=s==null?void 0:s.form;if(w){const x=()=>h(b.current);return w.addEventListener("reset",x),()=>w.removeEventListener("reset",x)}},[s,h]),u.jsx(Nt.button,{type:"button",role:"checkbox","aria-checked":Jl(l)?"mixed":l,"aria-required":c,"data-state":_F(l),"data-disabled":o?"":void 0,disabled:o,value:a,...n,ref:v,onKeyDown:Ge(t,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:Ge(r,w=>{h(x=>Jl(x)?!0:!x),y&&f&&(p.current=w.isPropagationStopped(),p.current||w.stopPropagation())})})});vF.displayName=gF;var Fk=_.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:s,required:a,disabled:o,value:l,onCheckedChange:c,form:d,...h}=e;return u.jsx(Rae,{__scopeCheckbox:r,checked:i,defaultChecked:s,disabled:o,required:a,onCheckedChange:c,name:n,form:d,value:l,internal_do_not_use_render:({isFormControl:p})=>u.jsxs(u.Fragment,{children:[u.jsx(vF,{...h,ref:t,__scopeCheckbox:r}),p&&u.jsx(xF,{__scopeCheckbox:r})]})})});Fk.displayName=p1;var yF="CheckboxIndicator",bF=_.forwardRef((e,t)=>
581{const{__scopeCheckbox:r,forceMount:n,...i}=e,s=Ik(yF,r);return u.jsx(ti,{present:n||Jl(s.checked)||s.checked===!0,children:u.jsx(Nt.span,{"data-state":_F(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});bF.displayName=yF;var wF="CheckboxBubbleInput",xF=_.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:s,defaultChecked:a,required:o,disabled:l,name:c,value:d,form:h,bubbleInput:p,setBubbleInput:f}=Ik(wF,e),y=qt(r,f),v=Y_(s),b=h_(n);_.useEffect(()=>{const x=p;if(!x)return;const S=window.HTMLInputElement.prototype,T=Object.getOwnPropertyDescriptor(S,"checked").set,W=!i.current;if(v!==s&&T){const z=new Event("click",{bubbles:W});x.indeterminate=Jl(s),T.call(x,Jl(s)?!1:s),x.dispatchEvent(z)}},[p,v,s,i]);const w=_.useRef(Jl(s)?!1:s);return u.jsx(Nt.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??w.current,required:o,disabled:l,name:c,value:d,form:h,...t,tabIndex:-1,ref:y,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});xF.displayName=wF;function Lae(e){return typeof e=="function"}function Jl(e){return e==="indeterminate"}function _F(e){return Jl(e)?"indeterminate":e?"checked":"unchecked"}const kF=_.forwardRef(({className:e,...t},r)=>u.jsx(Fk,{ref:r,className:Ue("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:u.jsx(bF,{className:Ue("flex items-center justify-center text-current"),children:u.jsx(ym,{className:"h-4 w-4"})})}));kF.displayName=Fk.displayName;const SF=_.forwardRef(({className:e,onAddressSelect:t,onChange:r,value:n,...i},s)=>{const[a,o]=_.useState(n||""),[l,c]=_.useState([]),[d,h]=_.useState(!1),[p,f]=_.useState(!1),[y,v]=_.useState(!1),b=_.useRef(null);_.useEffect(()=>{n!==void 0&&n!==a&&o(n)},[n]),_.useEffect(()=>{if(window.Radar){window.Radar.initialize("prj_live_sk_08fb1b880c9b76e32563298c631029824e047fab"),v(!0);return}const E=document.createElement("script");E.src="https://js.radar.io/v3/radar.min.js",E.async=!0,E.onload=()=>{window.Radar&&(window.Radar.initialize("prj_live_sk_08fb1b880c9b76e32563298c631029824e047fab"),v(!0))},document.head.appendChild(E)},[]),_.useEffect(()=>{const E=T=>{b.current&&!b.current.contains(T.target)&&h(!1)};return document.addEventListener("click",E),()=>document.removeEventListener("click",E)},[]);const w=E=>{const T=E.street||"",W=E.number||"",z=E.postalCode||"",B=E.city||E.region||"",P=E.countryFlag||"";return[`${T} ${W}`.trim(),z,B,P].filter(Boolean).join(", ")},x=E=>{const T=E.target.value;o(T),r&&r(E),T.length>=3&&y&&window.Radar?(f(!0),window.Radar.autocomplete({query:T},(W,z)=>{if(f(!1),W||!(z!=null&&z.addresses)){c([]),h(!1);return}const B=z.addresses.filter(P=>/\d+/.test(P.formattedAddress||""));c(B),h(B.length>0)})):(c([]),h(!1))},S=E=>{const T=w(E),W=E.postalCode||"";o(T),h(!1),c([]),t&&t(T,W),r&&r({target:{value:T},currentTarget:{value:T}})};return u.jsxs("div",{ref:b,className:"relative w-full",children:[u.jsx("input",{type:"text",className:Ue("flex h-10 w-full rounded-md border bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,value:a,onChange:x,...i}),p&&u.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:u.jsx(r_,{className:"h-4 w-4 animate-spin text-muted-foreground"})}),d&&l.length>0&&u.jsx("ul",{className:"absolute left-0 right-0 top-[calc(100%+4px)] z-[9999] rounded-md border bg-background shadow-lg max-h-60 overflow-auto",children:l.map((E,T)=>u.jsx("li",{className:"px-4 py-3 cursor-pointer hover:bg-accent border-b last:border-b-0",onClick:()=>S(E),children:u.jsx("div",{className:"font-medium text-sm",children:w(E)})},T))})]})});SF.displayName="AddressInput";const Iae=wre({squareMeters:ai().min(1,"Ange antal kvadratmeter").refine(e=>!isNaN(Number(e))&&Number(e)>=20,"Minst 20 m²").refine(e=>!isNaN(Number(e))&&Number(e)<=500,"Max 500 m²"),streetAddress:ai().min(5,"Ange en giltig adress"),postalCode:ai().min(5,"Ange postnummer").regex(/^\d{3}\s?\d{2}$/,"Ogiltigt postnummer"),city:ai().min(2,"Ange ort"),residenceType:ai().min(1,"Välj typ av bostad"),serviceType:iw(["flyttstadning"],{required_error:"Välj tjänst"}),serviceTier:iw(["standard","premium"],{required_error:"Välj servicenivå"}),frequency:iw(["engangstjanst"],{required_error:"Välj frekvens"}),bookingDate:bre({required_error:"Välj ett datum"}),bookingTime:ai().min(1,"Välj en tid"),firstName:ai().min(2,"Ange förnamn"),lastName:ai().min(2,"Ange efternamn"),customerEmail:ai().email("Ange en giltig e-postadress"),customerPhone:ai().min(7,"Ange ett giltigt telefonnummer").regex(/^\+?[0-9\s\-()]{7,20}$/,"Ogiltigt telefonnummer"),personalNumber:ai().min(10,"Ange personnummer").refine(e=>{try{return kre.valid(e)}catch{return!1}}
581,"Ogiltigt personnummer"),acceptTerms:aE().refine(e=>e===!0,"Du måste godkänna villkoren"),additionalNotes:ai().max(500,"Max 500 tecken").optional(),doorCode:ai().max(20,"Max 20 tecken").optional(),waterTrapCount:ai().optional(),balconySize:ai().optional(),storageSize:ai().optional(),freezerDefrost:aE().optional()}),Fae=(e,t,r,n)=>{const i=[];let s=0;if(e>0){const a=e*150;i.push({name:`Vattenlås (${e} st)`,price:a,itemId:11}),s+=a}return t==="small"?(i.push({name:"Inglasad balkong/altan under 10 m²",price:300,itemId:1}),s+=300):t==="large"?(i.push({name:"Inglasad balkong/altan över 10 m²",price:600,itemId:2}),s+=600):t==="half-small"?(i.push({name:"Halv inglasad balkong/altan under 10 m²",price:150,itemId:1}),s+=150):t==="half-large"&&(i.push({name:"Halv inglasad balkong/altan över 10 m²",price:300,itemId:2}),s+=300),r==="small"?(i.push({name:"Förråd/garage under 10 m²",price:150,itemId:10}),s+=150):r==="large"&&(i.push({name:"Förråd/garage över 10 m²",price:300,itemId:10}),s+=300),n&&(i.push({name:"Avfrostning av frys",price:220,itemId:9}),s+=220),{items:i,total:s}},Dae=e=>{let t;if(e<50)return{pricePerM2:0,totalBeforeRut:2900,rutDeduction:1450,totalAfterRut:1450};e<80?t=60:e<100?t=58:e<150?t=56:t=54;const r=e*t,n=Math.floor(r*.5),i=r-n;return{pricePerM2:t,totalBeforeRut:r,rutDeduction:n,totalAfterRut:i}},Mae=e=>{if(e<=40)return{hours:4,employees:1};if(e<=100)return{hours:4+Math.ceil((e-40)/10),employees:1};if(e<=200)return{hours:Math.ceil(e/20),employees:2};if(e<=300)return{hours:Math.ceil(e/30),employees:3};if(e<=400)return{hours:Math.ceil(e/40),employees:4};if(e<=500)return{hours:Math.ceil(e/50),employees:5};{const t=Math.ceil(e/100);return{hours:Math.ceil(e/(t*10)),employees:t}}},$ae=e=>e>=60?["08:00","08:30","09:00","09:30"]:["08:00","09:00","13:00","14:00"];function Bae(){var Xe,rr;const{t:e,i18n:t}=gi(),{toast:r}=Y5(),n=t.language==="sv"?e8:ek,i=[{id:1,name:e("bookingForm.steps.address"),shortName:e("bookingForm.steps.addressShort")},{id:2,name:e("bookingForm.steps.dateTime"),shortName:e("bookingForm.steps.dateTimeShort")},{id:3,name:e("bookingForm.steps.addons"),shortName:e("bookingForm.steps.addons")},{id:4,name:e("bookingForm.steps.contact"),shortName:e("bookingForm.steps.contact")},{id:5,name:e("bookingForm.steps.payment"),shortName:e("bookingForm.steps.payment")}],[s,a]=_.useState(1),[o,l]=_.useState(!1),[c,d]=_.useState(!1),[h,p]=_.useState(null),[f,y]=_.useState(new Date),[v,b]=_.useState(null),[w,x]=_.useState(0),[S,E]=_.useState(!1);_.useRef(null);const[T,W]=_.useState("idle"),[z,B]=_.useState(null),[P,X]=_.useState(null),[O,A]=_.useState(0),[K,R]=_.useState(null),[le,oe]=_.useState(null),se=_.useRef(null),F=_.useRef(null),D=Ute({resolver:Wte(Iae),defaultValues:{squareMeters:"",streetAddress:"",postalCode:"",city:"",residenceType:"",serviceType:"flyttstadning",serviceTier:"standard",frequency:"engangstjanst",bookingTime:"",firstName:"",lastName:"",customerEmail:"",customerPhone:"",personalNumber:"",acceptTerms:!1,additionalNotes:"",doorCode:"",waterTrapCount:"0",balconySize:"",storageSize:"",freezerDefrost:!1},mode:"onChange"}),$=()=>{switch(D.watch("residenceType")){case"apartment":return"Lägenhet";case"house":return"Villa/Radhus";case"office":return"Kontor";case"other":return"Annat";default:return""}},M=Number(D.watch("squareMeters"))||0,j=Number(D.watch("waterTrapCount"))||0,U=D.watch("balconySize")||"",H=D.watch("storageSize")||"",re=D.watch("freezerDefrost")||!1,te=Dae(M),Q=Fae(j,U,H,re),ce=w>=50?(w-50)*10:0,de={...te,tillvalItems:Q.items,tillvalAfterRut:Q.total,mileageCompensation:ce,distanceKm:w,grandTotalBeforeRut:te.totalBeforeRut+Q.total*2+ce*2,grandTotalRutDeduction:te.rutDeduction+Q.total+ce,grandTotalAfterRut:te.totalAfterRut+Q.total+ce},he=Mae(M),we=he.hours,ve=he.employees,Le=$ae(M),je=_.useCallback(be=>{const Ae=Ci(be),Qe=Yp(be);return xZ({start:Ae,end:Qe})},[]),Z=je(f),Pe=Fn(Yp(f),1),et=je(Pe),Ne=Cu(new Date),Ce=Fn(Ne,2),ee=be=>be.getDay()!==0&&!tk(be,Ce),ue=be=>{ee(be)&&(p(be),D.setValue("bookingDate",be,{shouldValidate:!0}))},me=async(be,Ae)=>{if(!(!be||!Ae)){E(!0);try{const Qe=`${be}, ${Ae}, Sweden`,{data:ut,error:tt}=await yl.functions.invoke("calculate-distance",{body:{customerAddress:Qe}});tt?(console.error("Error calculating distance:",tt),x(0)):x((ut==null?void 0:ut.distanceKm)||0)}catch(Qe){console.error("Failed to calculate distance:",Qe),x(0)}finally{E(!1)}}},Ee=(be,Ae)=>{if(D.setValue("streetAddress",be,{shouldValidate:!0}),Ae){const Qe=Ae.replace(/\s/g,"");D.setValue("postalCode",Qe,{shouldValidate:!0}),me(be,Qe)}},De=async()=>{let be=[];switch(s){case 1:be=["squareMeters","streetAddress","postalCode","residenceType"];break;case 2:be=["bookingDate","bookingTime"];break;case 3:break;case 4:be=["firstName","lastName","customerEmail","customerPhone","personalNumber","acceptTerms"];break}be.length>0&&!await D.trigger(be)||a(Ae=>
581Math.min(Ae+1,5))},_e=()=>{a(be=>Math.max(be-1,1))},Oe=()=>{const be=D.getValues(),Ae=new kt;Ae.setFontSize(20),Ae.text("Flyttstädning - Checklista",20,20),Ae.setFontSize(12),Ae.text(`Kund: ${be.firstName} ${be.lastName}`,20,40),Ae.text(`Adress: ${be.streetAddress}`,20,50),Ae.text(`${be.postalCode} ${be.city}`,20,60),Ae.text(`Datum: ${h?Cr(h,"yyyy-MM-dd"):""}`,20,70),Ae.text(`Tid: ${be.bookingTime}`,20,80),Ae.text(`Storlek: ${be.squareMeters} m²`,20,90),Ae.text(`Pris: ${de.grandTotalAfterRut} kr (efter RUT)`,20,100),Ae.setFontSize(14),Ae.text("Checklista:",20,120);const Qe=["☐ Kök - Spis, ugn, micro, kyl/frys","☐ Kök - Skåp in- och utvändigt","☐ Kök - Bänkar och väggar","☐ Badrum - Toalett, dusch, badkar","☐ Badrum - Spegl ar och kakle","☐ Alla rum - Golv och socklar","☐ Alla rum - Fönster in- och utvändigt","☐ Alla rum - Dörrar och karmar","☐ Garderober - In- och utvändigt","☐ Balkong/uteplats"];Ae.setFontSize(11),Qe.forEach((ut,tt)=>{Ae.text(ut,20,135+tt*10)}),Ae.save(`flyttstadning-${be.firstName}-${be.lastName}.pdf`)},Ze=async()=>{var be,Ae,Qe;try{W("signing");const{data:ut,error:tt}=await yl.functions.invoke("bankid-sign",{body:{userVisibleData:"Jag godkänner bokningsavtalet för flyttstädning",endUserIp:"127.0.0.1",useTestEnvironment:!1}});if(tt)throw tt;if((be=ut==null?void 0:ut.authResponse)!=null&&be.Success&&((Ae=ut==null?void 0:ut.apiCallResponse)!=null&&Ae.Success)&&((Qe=ut==null?void 0:ut.apiCallResponse)!=null&&Qe.Response)){const jt=ut.apiCallResponse.Response;B(jt.OrderRef),X(jt.QrImage),R(jt.AutoStartToken),F.current=setInterval(()=>{X(`${jt.QrImage}?t=${Date.now()}`),A(wt=>wt+1)},2e3),Ke(jt.OrderRef)}else throw new Error("Failed to initiate BankID signing")}catch(ut){console.error("Error initiating BankID:",ut),W("failed"),r({title:"Fel vid BankID-signering",description:"Kunde inte starta BankID. Försök igen.",variant:"destructive"})}},Ke=async be=>{let Qe=0;se.current=setInterval(async()=>{var ut,tt;Qe++;try{const{data:jt,error:wt}=await yl.functions.invoke("bankid-collect",{body:{orderRef:be,useTestEnvironment:!1}});if(wt)throw wt;if((ut=jt==null?void 0:jt.apiCallResponse)!=null&&ut.Success&&((tt=jt==null?void 0:jt.apiCallResponse)!=null&&tt.Response)){const St=jt.apiCallResponse.Response;St.Status==="complete"?(se.current&&clearInterval(se.current),F.current&&clearInterval(F.current),W("completed"),oe({name:St.UserFullName||"",personalNumber:St.UserSocialSecurityNumber||""}),ZW(),iv({particleCount:150,spread:70,origin:{y:.6}}),setTimeout(()=>{iv({particleCount:100,angle:60,spread:55,origin:{x:0}}),iv({particleCount:100,angle:120,spread:55,origin:{x:1}})},250),r({title:e("bookingForm.toast.signingSuccess"),description:`${e("bookingForm.toast.welcome")} ${St.UserFullName}`}),ze(be)):St.Status==="failed"&&(se.current&&clearInterval(se.current),F.current&&clearInterval(F.current),W("failed"),r({title:e("bookingForm.toast.signingFailed"),description:e("bookingForm.toast.tryAgain"),variant:"destructive"}))}Qe>=60&&(se.current&&clearInterval(se.current),F.current&&clearInterval(F.current),W("failed"),r({title:e("bookingForm.toast.timeExpired"),description:e("bookingForm.toast.tryAgain"),variant:"destructive"}))}catch(jt){se.current&&clearInterval(se.current),F.current&&clearInterval(F.current),W("failed"),console.error("Error polling BankID:",jt)}},2e3)},ze=async be=>{const Ae=D.getValues();l(!0);try{const{data:Qe,error:ut}=await yl.from("bookings").insert({square_meters:Number(Ae.squareMeters),postal_code:Ae.postalCode,city:Ae.city,street_address:Ae.streetAddress,service_type:Ae.serviceType,service_tier:Ae.serviceTier,estimated_hours:we,frequency:Ae.frequency,booking_date:Cr(Ae.bookingDate,"yyyy-MM-dd"),booking_time:Ae.bookingTime,customer_name:`${Ae.firstName} ${Ae.lastName}`,customer_email:Ae.customerEmail,customer_phone:Ae.customerPhone,personal_number:Ae.personalNumber,price_per_hour:Math.round(de.grandTotalAfterRut/we),total_price:de.grandTotalAfterRut,additional_notes:Ae.additionalNotes||null,door_code:Ae.doorCode||null,status:"confirmed",bankid_order_ref:be}).select().single();if(ut)throw ut;b(Qe.id),await yl.functions.invoke("send-booking-notification",{body:{service_type:Ae.serviceType,customer_name:`${Ae.firstName} ${Ae.lastName}`,customer_email:Ae.customerEmail,customer_phone:Ae.customerPhone,street_address:Ae.streetAddress,postal_code:Ae.postalCode,booking_date:Cr(Ae.bookingDate,"yyyy-MM-dd"),booking_time:Ae.bookingTime,total_price:de.grandTotalAfterRut,square_meters:Number(Ae.squareMeters)}}),d(!0)}catch(Qe){console.error("Booking error:",Qe),r({title:e("bookingForm.toast.somethingWrong"),description:e("bookingForm.toast.tryAgainOrContact"),variant:"destructive"})}finally{l(!1)}},vt=async be=>{l(!0);try{const{data:Ae,error:Qe}=await yl.from("bookings").insert({square_meters:Number(be.squareMeters),postal_code:be.postalCode,city:be.city,street_address:be.streetAddress,service_type:be.serviceType,service_tier:be.serviceTier,estimated_hours:we,frequency:be.frequency,booking_date:Cr(be.bookingDate,"yyyy-MM-dd"),booking_time:be.bookingTime,customer_name:`${be.firstName} ${be.lastName}`,customer_email:be.customerEmail,customer_phone:be.customerPhone,personal_number:be.personalNumber,price_per_hour:Math.round(de.grandTotalAfterRut/we),total_price:de.grandTotalAfterRut,additional_notes:be.additionalNotes||null,door_code:be.doorCode||null,status:"confirmed"}).select().single();if(Qe)throw Qe;b(Ae.id),await yl.functions.invoke("send-booking-notification",{body:{service_type:be.serviceType,customer_name:`${be.firstName} ${be.lastName}`,customer_email:be.customerEmail,customer_phone:be.customerPhone,street_address:be.streetAddress,postal_code:be.postalCode,booking_date:Cr(be.bookingDate,"yyyy-MM-dd"),booking_time:be.bookingTime,total_price:de.grandTotalAfterRut,square_meters:Number(be.squareMeters)}}),iv({particleCount:100,spread:70,origin:{y:.6}}),d(!0),r({title:e("bookingForm.toast.bookingConfirmed"),description:e("bookingForm.toast.emailConfirmation")})}catch(Ae){console.error("Booking error:",Ae),r({title:e("bookingForm.toast.somethingWrong"),description:e("bookingForm.toast.tryAgainOrContact"),variant:"destructive"})}finally{l(!1)}};return c?u.jsx(Jx,{className:"max-w-2xl mx-auto",children:u.jsxs(Qx,{className:"pt-8 pb-8 text-center",children:[u.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:u.jsx(t_,{className:"w-10 h-10 text-green-600"})}),u.jsx("h2",{className:"text-2xl font-bold text-foreground mb-2",children:e("bookingForm.success.title")}),u.jsx("p",{className:"text-muted-foreground mb-6",children:e("bookingForm.success.subtitle")}),u.jsxs("div",{className:"bg-muted/50 rounded-lg p-4 mb-6 text-left",children:[u.jsxs("h3",{className:"font-semibold mb-2",children:[e("bookingForm.success.bookingDetails"),":"]}),u.jsxs("p",{className:"text-sm",children:[u.jsxs("strong",{children:[e("bookingForm.success.date"),":"]})," ",h&&Cr(h,"d MMMM yyyy",{locale:n})]}),u.jsxs("p",{className:"text-sm",children:[u.jsxs("strong",{children:[e("bookingForm.success.time"),":"]})," ",D.getValues("bookingTime")]}),u.jsxs("p",{className:"text-sm",children:[u.jsxs("strong",{children:[e("bookingForm.success.address"),":"]})," ",D.getValues("streetAddress")]}),u.jsxs("p",{className:"text-sm",children:[u.jsxs("strong",{children:[e("bookingForm.success.price"),":"]})," ",de.grandTotalAfterRut," kr (",e("bookingForm.success.afterRut"),")"]})]}),u.jsxs(gt,{onClick:Oe,variant:"outline",className:"gap-2",children:[u.jsx(B9,{className:"w-4 h-4"}),e("bookingForm.buttons.downloadChecklist")]})]})}):u.jsxs("div",{className:"grid lg:grid-cols-3 gap-6",children:[u.jsx("div",{className:"lg:col-span-2",children:u.jsxs(Jx,{className:"border-0 shadow-none lg:shadow-sm lg:border",children:[u.jsx("div",{className:"border-b",children:u.jsx("div",{className:"flex overflow-x-auto",children:i.map(be=>u.jsxs("button",{type:"button",className:`
582                    flex-shrink-0 px-4 py-3 text-sm font-medium border-b-2 transition-colors
583                    ${s===be.id?"border-primary text-foreground":s>be.id?"border-transparent text-primary":"border-transparent text-muted-foreground"}
584                  `,onClick:()=>{be.id<s&&a(be.id)},children:[s>be.id&&u.jsx(ym,{className:"w-4 h-4 inline mr-1"}),be.name]},be.id))})}
584),u.jsx(Qx,{className:"pt-6",children:u.jsxs("form",{onSubmit:D.handleSubmit(vt),className:"space-y-6",children:[s===1&&u.jsxs("div",{className:"space-y-4 animate-in fade-in duration-300",children:[u.jsx("h2",{className:"text-2xl font-bold text-foreground",children:e("bookingForm.titles.addressDetails")}),u.jsxs("div",{children:[u.jsx(gr,{htmlFor:"streetAddress",children:e("bookingForm.labels.streetAddress")}),u.jsx(SF,{id:"streetAddress",placeholder:e("bookingForm.placeholders.searchAddress"),onAddressSelect:Ee,onChange:be=>D.setValue("streetAddress",be.target.value,{shouldValidate:!0}),value:D.watch("streetAddress"),className:"mt-1"}),D.formState.errors.streetAddress&&u.jsx("p",{className:"text-sm text-destructive mt-1",children:D.formState.errors.streetAddress.message})]}),u.jsxs("div",{children:[u.jsx(gr,{htmlFor:"squareMeters",children:e("bookingForm.labels.squareMeters")}),u.jsx(tr,{id:"squareMeters",type:"number",inputMode:"numeric",min:"1",step:"1",placeholder:e("bookingForm.placeholders.squareMeters"),...D.register("squareMeters",{onChange:be=>{be.target.value=be.target.value.replace(/[^0-9]/g,"")}}),className:"mt-1"}),D.formState.errors.squareMeters&&u.jsx("p",{className:"text-sm text-destructive mt-1",children:D.formState.errors.squareMeters.message})]}),u.jsxs("div",{children:[u.jsx(gr,{htmlFor:"postalCode",children:e("bookingForm.labels.postalCode")}),u.jsx(tr,{id:"postalCode",placeholder:e("bookingForm.placeholders.postalCodeAuto"),value:D.watch("postalCode")||"",readOnly:!0,className:"mt-1 bg-muted cursor-not-allowed"}),D.formState.errors.postalCode&&u.jsx("p",{className:"text-sm text-destructive mt-1",children:D.formState.errors.postalCode.message})]}),u.jsxs("div",{children:[u.jsx(gr,{htmlFor:"residenceType",children:e("bookingForm.labels.residenceType")}),u.jsxs(un,{value:D.watch("residenceType")||"",onValueChange:be=>D.setValue("residenceType",be,{shouldValidate:!0}),children:[u.jsx(Qr,{className:"mt-1",children:u.jsx(dn,{placeholder:e("bookingForm.placeholders.selectResidenceType")})}),u.jsxs(en,{children:[u.jsx(Yt,{value:"apartment",children:e("bookingForm.residenceTypes.apartment")}),u.jsx(Yt,{value:"house",children:e("bookingForm.residenceTypes.house")}),u.jsx(Yt,{value:"office",children:e("bookingForm.residenceTypes.office")}),u.jsx(Yt,{value:"other",children:e("bookingForm.residenceTypes.other")})]})]}),D.formState.errors.residenceType&&u.jsx("p",{className:"text-sm text-destructive mt-1",children:D.formState.errors.residenceType.message})]})]}),s===2&&u.jsxs("div",{className:"space-y-4 animate-in fade-in duration-300",children:[u.jsx("h2",{className:"text-2xl font-bold text-foreground",children:e("bookingForm.titles.selectDateTime")}),u.jsxs("div",{className:"border rounded-lg p-4",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx(gt,{type:"button",variant:"ghost",size:"sm",onClick:()=>y(Fn(f,-30)),children:u.jsx(OT,{className:"w-4 h-4"})}),u.jsxs("span",{className:"font-medium",children:[Cr(f,"MMMM",{locale:n})," – ",Cr(Pe,"MMMM yyyy",{locale:n})]}),u.jsx(gt,{type:"button",variant:"ghost",size:"sm",onClick:()=>y(Fn(f,30)),children:u.jsx(g0,{className:"w-4 h-4"})})]}),u.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-center font-medium mb-2 text-sm text-muted-foreground",children:Cr(f,"MMMM yyyy",{locale:n})}),u.jsx("div",{className:"grid grid-cols-7 gap-1 text-center text-xs mb-1",children:[e("bookingForm.days.mon"),e("bookingForm.days.tue"),e("bookingForm.days.wed"),e("bookingForm.days.thu"),e("bookingForm.days.fri"),e("bookingForm.days.sat"),e("bookingForm.days.sun")].map(be=>u.jsx("div",{className:"font-medium text-muted-foreground py-1",children:be},`m1-${be}`))}),u.jsxs("div",{className:"grid grid-cols-7 gap-1",children:[Array.from({length:(((Xe=Z[0])==null?void 0:Xe.getDay())||7)-1}).map((be,Ae)=>u.jsx("div",{},`empty1-${Ae}`)),Z.map(be=>{const Ae=ee(be),Qe=h&&pi(be,h);return u.jsx("button",{type:"button",disabled:!Ae,onClick:()=>ue(be),className:`
585                                  p-2 rounded-lg text-sm transition-colors
586                                  ${Ae?"hover:bg-primary/10 cursor-pointer":"text-muted-foreground
586/30 cursor-not-allowed"}
587                                  ${Qe?"bg-primary text-primary-foreground":""}
588                                `,children:Cr(be,"d")},be.toISOString())})]})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-center font-medium mb-2 text-sm text-muted-foreground",children:Cr(Pe,"MMMM yyyy",{locale:n})}),u.jsx("div",{className:"grid grid-cols-7 gap-1 text-center text-xs mb-1",children:[e("bookingForm.days.mon"),e("bookingForm.days.tue"),e("bookingForm.days.wed"),e("bookingForm.days.thu"),e("bookingForm.days.fri"),e("bookingForm.days.sat"),e("bookingForm.days.sun")].map(be=>u.jsx("div",{className:"font-medium text-muted-foreground py-1",children:be},`m2-${be}`))}),u.jsxs("div",{className:"grid grid-cols-7 gap-1",children:[Array.from({length:(((rr=et[0])==null?void 0:rr.getDay())||7)-1}).map((be,Ae)=>u.jsx("div",{},`empty2-${Ae}`)),et.map(be=>{const Ae=ee(be),Qe=h&&pi(be,h);return u.jsx("button",{type:"button",disabled:!Ae,onClick:()=>ue(be),className:`
589                                  p-2 rounded-lg text-sm transition-colors
590                                  ${Ae?"hover:bg-primary/10 cursor-pointer":"text-muted-foreground/30 cursor-not-allowed"}
591                                  ${Qe?"bg-primary text-primary-foreground":""}
592                                `,children:Cr(be,"d")},be.toISOString())})]})]})]})]}),h&&u.jsxs("div",{children:[u.jsx(gr,{children:"Välj tid *"}),M>=60&&u.jsx("p",{className:"text-xs text-muted-foreground mt-1 mb-2",children:"ℹ️ För städningar över 59 m² är endast morgontider (08:00-09:30) tillgängliga för att säkerställa tillräcklig tid för genomförandet."}),u.jsx("div",{className:"grid grid-cols-4 gap-2 mt-2",children:Le.map(be=>u.jsx("button",{type:"button",onClick:()=>D.setValue("bookingTime",be,{shouldValidate:!0}),className:`
593                              p-3 rounded-lg border text-sm font-medium transition-colors
594                              ${D.watch("bookingTime")===be?"bg-primary text-primary-foreground border-primary":"hover:border-primary hover:bg-primary/5"}
595                            `,children:be},be))})]}),D.formState.errors.bookingDate&&u.jsx("p",{className:"text-sm text-destructive",children:D.formState.errors.bookingDate.message}),D.formState.errors.bookingTime&&u.jsx("p",{className:"text-sm text-destructive",children:D.formState.errors.bookingTime.message})]}),s===3&&u.jsxs("div",{className:"space-y-4 animate-in fade-in duration-300",children:[u.jsx("h2",{className:"text-2xl font-bold text-foreground",children:"Tillval"}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx(gr,{className:"text-sm font-medium",children:"Vattenlås (150 kr/st)"}),u.jsxs(un,{value:D.watch("waterTrapCount")||"0",onValueChange:be=>D.setValue("waterTrapCount",be),children:[u.jsx(Qr,{className:"mt-1",children:u.jsx(dn,{placeholder:e("bookingForm.tillval.selectCount")})}),u.jsxs(en,{children:[u.jsx(Yt,{value:"0",children:"0 st"}),u.jsx(Yt,{value:"1",children:"1 st"}),u.jsx(Yt,{value:"2",children:"2 st"}),u.jsx(Yt,{value:"3",children:"3 st"}),u.jsx(Yt,{value:"4",children:"4 st"}),u.jsx(Yt,{value:"5",children:"5 st"})]})]})]}),u.jsxs("div",{children:[u.jsx(gr,{className:"text-sm font-medium",children:e("bookingForm.labels.balcony")}),u.jsxs(un,{value:D.watch("balconySize")||"",onValueChange:be=>D.setValue("balconySize",be),children:[u.jsx(Qr,{className:"mt-1",children:u.jsx(dn,{placeholder:e("bookingForm.placeholders.selectSize")})}),u.jsxs(en,{children:[u.jsx(Yt,{value:"none",children:e("bookingForm.balconyOptions.none")}),u.jsx(Yt,{value:"small",children:e("bookingForm.balconyOptions.small")}),u.jsx(Yt,{value:"large",children:e("bookingForm.balconyOptions.large")}),u.jsx(Yt,{value:"half-small",children:e("bookingForm.balconyOptions.halfSmall")}),u.jsx(Yt,{value:"half-large",children:e("bookingForm.balconyOptions.halfLarge")})]})]})]}),u.jsxs("div",{children:[u.jsx(gr,{className:"text-sm font-medium",children:e("bookingForm.labels.storage")}),u.jsxs(un,{value:D.watch("storageSize")||"",onValueChange:be=>D.setValue("storageSize",be),children:[u.jsx(Qr,{className:"mt-1",children:u.jsx(dn,{placeholder:e("bookingForm.placeholders.selectSize")})}),u.jsxs(en,{children:[u.jsx(Yt,{value:"none",children:e("bookingForm.storageOptions.none")}),u.jsx(Yt,{value:"small",children:e("bookingForm.storageOptions.small")}),u.jsx(Yt,{value:"large",children:e("bookingForm.storageOptions.large")})]})]})]}),u.jsxs("div",{onClick:()=>D.setValue("freezerDefrost",!D.watch("freezerDefrost")),className:`
596                        relative flex items-center justify-between rounded-xl border-2 p-4 transition-all cursor-pointer
597                        ${D.watch("freezerDefrost")?"border-primary bg-primary/5":"border-border hover:border-primary/40"}
598                      `,children:[u.jsx("span",{className:"font-medium",children:e("bookingForm.labels.freezerDefrost")}),u.jsx("span",{className:"font-semibold text-primary",children:"220 kr"})]})]}),de.tillvalItems.length>0&&u.jsx("div",{className:"mt-4 p-3 bg-primary/5 rounded-lg border border-primary/20",children:u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsxs("span",{children:[e("bookingForm.tillval.selectedCount")," (",de.tillvalItems.length," st):"]}),u.jsxs("span",{className:"font-semibold",children:["+",de.tillvalAfterRut," kr"]})]})})]}),s===4&&u.jsxs("div",{className:"space-y-4 animate-in fade-in duration-300",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[u.jsx(X9,{className:"w-5 h-5 text-primary"}),u.jsx("h3",{className:"font-semibold",children:e("bookingForm.step4.title")})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx(gr,{htmlFor:"firstName",children:e("bookingForm.step4.firstName")}
598),u.jsx(tr,{id:"firstName",placeholder:e("bookingForm.step4.placeholders.firstName"),...D.register("firstName"),className:"mt-1"}),D.formState.errors.firstName&&u.jsx("p",{className:"text-sm text-destructive mt-1",children:D.formState.errors.firstName.message})]}),u.jsxs("div",{children:[u.jsx(gr,{htmlFor:"lastName",children:e("bookingForm.step4.lastName")}),u.jsx(tr,{id:"lastName",placeholder:e("bookingForm.step4.placeholders.lastName"),...D.register("lastName"),className:"mt-1"}),D.formState.errors.lastName&&u.jsx("p",{className:"text-sm text-destructive mt-1",children:D.formState.errors.lastName.message})]})]}),u.jsxs("div",{children:[u.jsx(gr,{htmlFor:"customerEmail",children:e("bookingForm.step4.email")}),u.jsx(tr,{id:"customerEmail",type:"email",placeholder:e("bookingForm.step4.placeholders.email"),...D.register("customerEmail"),className:"mt-1"}),D.formState.errors.customerEmail&&u.jsx("p",{className:"text-sm text-destructive mt-1",children:D.formState.errors.customerEmail.message})]}),u.jsxs("div",{children:[u.jsx(gr,{htmlFor:"customerPhone",children:e("bookingForm.step4.phone")}),u.jsx(q0,{id:"customerPhone",value:D.watch("customerPhone"),onChange:be=>D.setValue("customerPhone",be,{shouldValidate:!0}),defaultPrefix:t.language==="sv"?"+46 ":"+",className:"mt-1"}),D.formState.errors.customerPhone&&u.jsx("p",{className:"text-sm text-destructive mt-1",children:D.formState.errors.customerPhone.message})]}),u.jsxs("div",{children:[u.jsx(gr,{htmlFor:"personalNumber",children:e("bookingForm.step4.personalNumber")}),u.jsx(tr,{id:"personalNumber",placeholder:e("bookingForm.step4.placeholders.personalNumber"),...D.register("personalNumber"),className:"mt-1"}),D.formState.errors.personalNumber&&u.jsx("p",{className:"text-sm text-destructive mt-1",children:D.formState.errors.personalNumber.message})]}),u.jsxs("div",{className:"flex items-start gap-2 pt-2",children:[u.jsx(kF,{id:"acceptTerms",checked:D.watch("acceptTerms"),onCheckedChange:be=>D.setValue("acceptTerms",be,{shouldValidate:!0})}),u.jsx(gr,{htmlFor:"acceptTerms",className:"text-sm leading-none cursor-pointer",children:e("bookingForm.step4.acceptTerms")})]}),D.formState.errors.acceptTerms&&u.jsx("p",{className:"text-sm text-destructive",children:D.formState.errors.acceptTerms.message})]}),s===5&&u.jsxs("div",{className:"space-y-6 animate-in fade-in duration-300 flex flex-col items-center",children:[u.jsxs("div",{className:"text-center",children:[u.jsx("h2",{className:"text-2xl font-bold text-foreground",children:e("bookingForm.step5.title")}),u.jsx("p",{className:"text-muted-foreground mt-2",children:e("bookingForm.step5.paymentMethod")})]}),T==="idle"&&u.jsxs(u.Fragment,{children:[u.jsxs(gt,{type:"button",onClick:Ze,className:"w-full max-w-md bg-[#0a1442] hover:bg-[#0a1442]/90 text-white h-14 rounded-full text-lg",children:[u.jsx(LT,{className:"w-5 h-5 mr-2"}),e("bookingForm.buttons.signWithBankId")]}),u.jsx(gt,{type:"button",variant:"outline",onClick:_e,className:"w-full max-w-md h-12 rounded-full",children:e("bookingForm.buttons.back")})]}
598),T==="signing"&&u.jsx("div",{className:"w-full max-w-md space-y-4",children:u.jsx("div",{className:"bg-white dark:bg-card rounded-3xl p-8 border-2 border-border flex flex-col items-center",children:P?u.jsxs(u.Fragment,{children:[u.jsx("img",{src:P,alt:"BankID QR Code",className:"w-64 h-64 mb-4"},O),u.jsx("p",{className:"text-sm text-muted-foreground text-center",children:e("bookingForm.step5.scanQr")}),K&&u.jsx("a",{href:`https://app.bankid.com/?autostarttoken=${K}`,className:"text-sm text-[#0a1442] underline mt-2",children:e("bookingForm.step5.openOnDevice")})]}):u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(r_,{className:"w-8 h-8 animate-spin text-primary"})})})}),T==="completed"&&le&&u.jsxs("div",{className:"w-full max-w-md space-y-4",children:[u.jsx("div",{className:"p-6 bg-green-50 dark:bg-green-950 rounded-xl border-2 border-green-500",children:u.jsxs("div",{className:"text-center space-y-3",children:[u.jsx("div",{className:"text-4xl mb-2",children:"✓"}),u.jsx("p",{className:"font-bold text-2xl text-foreground",children:e("bookingForm.step5.thankYou")}),u.jsx("p",{className:"font-semibold text-base text-green-700 dark:text-green-300",children:e("bookingForm.step5.signingComplete")}),le.name&&u.jsxs("p",{className:"text-sm",children:[e("bookingForm.step5.signedBy")," ",le.name]})]})}),u.jsx("div",{className:"p-4 bg-blue-50 dark:bg-blue-950 rounded-lg border border-blue-200 dark:border-blue-800",children:u.jsxs("div",{className:"flex items-start gap-3",children:[u.jsx("span",{className:"text-2xl",children:"📧"}),u.jsxs("div",{className:"text-sm",children:[u.jsx("p",{className:"font-semibold text-foreground mb-1",children:e("bookingForm.step5.emailConfirmation")}),u.jsx("p",{className:"text-muted-foreground",children:e("bookingForm.step5.emailConfirmationDesc")})]})]})})]}
598),T==="failed"&&u.jsxs("div",{className:"w-full max-w-md space-y-4",children:[u.jsx("div",{className:"p-6 bg-red-50 dark:bg-red-950 rounded-xl border-2 border-red-500",children:u.jsx("p",{className:"text-center font-semibold text-red-700 dark:text-red-300",children:e("bookingForm.step5.signingFailed")})}),u.jsx(gt,{type:"button",onClick:()=>{W("idle"),X(null),B(null)},className:"w-full bg-[#0a1442] hover:bg-[#0a1442]/90 text-white h-12 rounded-full",children:e("bookingForm.buttons.tryAgain")}),u.jsx(gt,{type:"button",variant:"outline",onClick:_e,className:"w-full h-12 rounded-full",children:e("bookingForm.buttons.back")})]}),u.jsx("p",{className:"text-xs text-muted-foreground text-center max-w-md",children:e("bookingForm.step5.invoiceInfo")})]}),s<5&&u.jsxs("div",{className:"flex justify-between pt-4 border-t",children:[s>1?u.jsx(gt,{type:"button",variant:"outline",onClick:_e,className:"rounded-full px-6",children:e("bookingForm.buttons.back")}):u.jsx("div",{}),u.jsxs(gt,{type:"button",onClick:De,className:"bg-[#0a1442] hover:bg-[#0a1442]/90 text-white rounded-full px-6",children:[e(s===4?"bookingForm.buttons.continueToPayment":"bookingForm.buttons.continue"),u.jsx(g0,{className:"w-4 h-4 ml-2"})]})]})]})})]})}),u.jsx("div",{className:"lg:col-span-1",children:u.jsxs("div",{className:"sticky top-4",children:[u.jsx("div",{className:"bg-[#0a1442] text-white rounded-t-xl p-4",children:u.jsx("h3",{className:"font-bold uppercase tracking-wide text-sm",children:e("bookingForm.sidebar.title")})}),u.jsxs("div",{className:"bg-card border-2 border-t-0 border-border rounded-b-xl p-4 space-y-4",children:[M>0&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("span",{className:"text-muted-foreground",children:e("bookingForm.sidebar.size")}),u.jsxs("span",{className:"font-semibold",children:[M," m²"]})]}),D.watch("postalCode")&&u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("span",{className:"text-muted-foreground",children:e("bookingForm.sidebar.postalCode")}),u.jsx("span",{className:"font-semibold",children:D.watch("postalCode")})]}),D.watch("residenceType")&&u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("span",{className:"text-muted-foreground",children:e("bookingForm.sidebar.residence")}),u.jsx("span",{className:"font-semibold",children:$()})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("span",{className:"text-muted-foreground",children:e("bookingForm.sidebar.estimatedTime")}),u.jsxs("span",{className:"font-semibold",children:[we,"h (",ve," ",e(ve===1?"bookingForm.sidebar.person":"bookingForm.sidebar.persons"),")"]})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("span",{className:"text-muted-foreground",children:e("bookingForm.sidebar.addOns")}),u.jsx("span",{className:"font-semibold",children:de.tillvalItems.length>0?`${de.tillvalItems.length} ${e("bookingForm.sidebar.selected")}`:e("bookingForm.sidebar.standard")})]})]}),D.watch("streetAddress")&&u.jsxs("div",{className:"flex items-start gap-2 text-sm border-t pt-3",children:[u.jsx("span",{children:"📍"}),u.jsxs("span",{children:[D.watch("streetAddress"),", ",D.watch("postalCode")]})]}),h&&D.watch("bookingTime")&&u.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[u.jsx("span",{children:"📅"}),u.jsxs("div",{children:[u.jsx("div",{className:"font-semibold",children:Cr(h,"EEEE d/M",{locale:n})}),u.jsxs("div",{className:"text-muted-foreground",children:[D.watch("bookingTime"),"–",(()=>{const be=D.watch("bookingTime");if(!be)return"";const[Ae,Qe]=be.split(":");return`${(parseInt(Ae)+we).toString().padStart(2,"0")}:${Qe}`})()]})]})]}),D.watch("firstName")&&D.watch("customerEmail")&&u.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[u.jsx("span",{children:"👤"}),u.jsxs("div",{children:[u.jsxs("div",{className:"font-semibold",children:[D.watch("firstName")," ",D.watch("lastName")]}),u.jsx("div",{className:"text-muted-foreground",children:D.watch("customerPhone")}),u.jsx("div",{className:"text-muted-foreground",children:D.watch("customerEmail")})]})]}),u.jsxs("div",{className:"border-t pt-4 space-y-2",children:[u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsxs("span",{className:"text-muted-foreground",children:[e("bookingForm.sidebar.basePrice")," (",M," m²)"]}),u.jsxs("span",{className:"font-semibold",children:[de.totalBeforeRut," kr"]})]}),w>0&&u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsxs("span",{className:"text-muted-foreground",children:[e("bookingForm.sidebar.distanceFrom")," ",w," km"]}),u.jsx("span",{className:"font-semibold",children:S?"...":"✓"})]}),de.mileageCompensation>0&&u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsxs("span",{className:"text-muted-foreground",children:[e("bookingForm.sidebar.mileageCompensation")," (",w-50," ",e("bookingForm.sidebar.kmOver"),")"]}),u.jsxs("span",{className:"font-semibold",children:[de.mileageCompensation," kr"]})]}),de.tillvalItems.map((be,Ae)=>u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("span",{className:"text-muted-foreground",children:be.name}),u.jsxs("span",{className:"font-semibold",children:[be.price," kr"]})]},Ae)),u.jsxs("div",{className:"flex justify-between text-sm pt-2 border-t",children:[u.jsx("span",{children:e("bookingForm.sidebar.totalBeforeRut")}),u.jsxs("span",{children:[de.grandTotalBeforeRut," kr"]})]}),u.jsxs("div",{className:"flex justify-between text-sm text-green-600",children:[u.jsx("span",{className:"underline",children:e("bookingForm.sidebar.rutDeduction")}),u.jsxs("span",{children:["-",de.grandTotalRutDeduction," kr"]})]}),u.jsxs("div",{className:"flex justify-between text-lg font-bold pt-2 border-t",children:[u.jsx("span",{children:e("bookingForm.sidebar.toPay")}),u.jsxs("span",{children:[de.grandTotalAfterRut," kr"]})]})]})]}),!M&&u.jsx("p",{className:"text-muted-foreground text-sm text-center py-4",children:e("bookingForm.sidebar.enterSqm")}),u.jsx("div",{className:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-3 text-center",children:u.jsxs("p",{className:"text-sm text-green-800 dark:text-green-300 font-medium",children:["✓ ",e("bookingForm.sidebar.cancellationPolicy")]})}),u.jsxs(gt,{type:"button",onClick:Oe,className:"w-full bg-[#0a1442] hover:bg-[#0a1442]/90 text-white rounded-full",children:["📥 ",e("bookingForm.buttons.downloadChecklist")]})]})]})})]})}const RC=()=>{const{t:e}=gi();return u.jsxs(u.Fragment,{children:[u.jsxs(Ex,{children:[u.jsxs("title",{children:[e("bookingPage.metaTitle")," | Excellent Moving"]}),u.jsx("meta",{name:"description",content:e("bookingPage.metaDescription")})]}),u.jsx(mk,{children:u.jsx("section",{className:"pb-12 md:pb-24 px-4",children:u.jsxs("div",{className:"container mx-auto max-w-7xl",children:[u.jsxs("div",{className:"text-center mb-8 md:mb-12",children:[u.jsx("h1",{className:"text-3xl lg:text-5xl font-bold text-foreground mb-4",children:e("bookingPage.title")}),u.jsx("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto",children:e("bookingPage.description")})]}),u.jsx(Bae,{})]})})})]})},qae=()=>{const[e,t]=_.useState(0),r=[{name:"Norge",flag:"🇳🇴"},{name:"Danmark",flag:"🇩🇰"},{name:"Tyskland",flag:"🇩🇪"},{name:"Nederländerna",flag:"🇳🇱"},{name:"Belgien",flag:"🇧🇪"},{name:"Frankrike",flag:"🇫🇷"},{name:"Spanien",flag:"🇪🇸"},{name:"Portugal",flag:"🇵🇹"},{name:"Italien",flag:"🇮🇹"},{name:"Österrike",flag:"🇦🇹"},{name:"Tjeckien",flag:"🇨🇿"},{name:"Slovakien",flag:"🇸🇰"},{name:"Kroatien",flag:"🇭🇷"}];return _.useEffect(()=>{const n=setInterval(()=>{t(i=>(i+1)%r.length)},2500);return()=>clearInterval(n)},[r.length]),u.jsx(mk,{children:u.jsx("section",{className:"pb-16 md:pb-24 px-4",children:u.jsxs("div",{className:"container mx-auto max-w-5xl",children:[u.jsxs("div",{className:"text-center mb-12",children:[u.jsx("h1",{className:"text-3xl lg:text-4xl font-bold text-foreground mb-4",children:"Utlandsflytt"}),u.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Vi hjälper dig flytta till och från hela Europa"})]}),u.jsxs("div",{className:"relative bg-gradient-to-br from-primary/5 via-background to-accent/5 rounded-3xl p-8 md:p-12 overflow-hidden",children:[u.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-primary/5 rounded-full blur-3xl"}),u.jsx("div",{className:"absolute bottom-0 left-0 w-48 h-48 bg-accent/5 rounded-full blur-3xl"}),u.jsxs("div",{className:"relative z-10",children:[u.jsx("div",{className:"flex items-center justify-center mb-8",children:u.jsxs("div",{className:"inline-flex items-center gap-3 bg-primary/10 backdrop-blur-sm rounded-full px-6 py-3 border border-primary/20",children:[u.jsx("span",{className:"text-2xl",children:"🇸🇪"}),u.jsx("span",{className:"font-semibold text-primary",children:"Sverige"})]})}),u.jsxs("div",{className:"flex items-center justify-center gap-4 mb-8",children:[u.jsx("div",{className:"h-px w-16 bg-gradient-to-r from-transparent via-primary/40 to-primary/40"}),u.jsx("div",{className:"relative",children:u.jsx(IT,{className:"w-6 h-6 text-primary animate-pulse"})}),u.jsx("div",{className:"h-px w-16 bg-gradient-to-r from-primary/40 via-primary/40 to-transparent"})]}),u.jsx("div",{className:"flex items-center justify-center mb-10",children:u.jsxs("div",{className:"inline-flex items-center gap-4 bg-background/80 backdrop-blur-sm rounded-2xl px-8 py-5 shadow-lg border border-border/50 animate-fade-in",children:[u.jsx("span",{className:"text-4xl",children:r[e].flag}),u.jsx("span",{className:"text-2xl font-bold text-foreground",children:r[e].name})]},e)}),u.jsx("div",{className:"grid grid-cols-4 sm:grid-cols-5 md:grid-cols-7 lg:grid-cols-13 gap-3 md:gap-4",children:r.map((n,i)=>u.jsxs("button",{onClick:()=>t(i),className:`
599                      group flex flex-col items-center gap-2 p-3 rounded-xl transition-all duration-300
600                      ${i===e?"bg-primary/15 scale-105 shadow-md":"bg-background/50 hover:bg-background/80 hover:scale-105"}
601                    `,children:[u.jsx("span",{className:`text-2xl md:text-3xl transition-transform duration-300 ${i===e?"scale-110":"group-hover:scale-110"}`,children:n.flag}),u.jsx("span",{className:`text-[10px] md:text-xs font-medium transition-colors ${i===e?"text-primary":"text-muted-foreground group-hover:text-foreground"}`,children:n.name})]},n.name))}),u.jsx("div",{className:"mt-10 text-center",children:u.jsx("p",{className:"text-sm text-muted-foreground",children:"Klicka pÃ¥ ett land för att se mer information"})})]})]}),u.jsxs("div",{className:"grid grid-cols-3 gap-4 mt-8",children:[u.jsxs("div",{className:"text-center p-6 bg-card rounded-2xl border border-border/50",children:[u.jsx("div",{className:"text-3xl font-bold text-primary mb-1",children:"13"}),u.jsx("div",{className:"text-sm text-muted-foreground",children:"Länder"})]}),u.jsxs("div",{className:"text-center p-6 bg-card rounded-2xl border border-border/50",children:[u.jsx("div",{className:"text-3xl font-bold text-primary mb-1",children:"20+"}),u.jsx("div",{className:"text-sm text-muted-foreground",children:"År erfarenhet"})]}),u.jsxs("div",{className:"text-center p-6 bg-card rounded-2xl border border-border/50",children:[u.jsx("div",{className:"text-3xl font-bold text-primary mb-1",children:"1000+"}),u.jsx("div",{className:"text-sm text-muted-foreground",children:"Utlandsflyttar"})]})]})]})})})},LC=()=>{const{t:e,i18n:t}=gi(),r=t.language==="sv";return u.jsx(mk,{children:u.jsxs("div",{className:"container max-w-4xl mx-auto px-4 py-12",children:[u.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-8",children:r?"Integritetspolicy & Cookies":"Privacy Policy & Cookies"}),u.jsxs("div",{className:"prose prose-lg max-w-none space-y-8",children:[u.jsxs("section",{children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:r?"Personuppgiftsansvarig":"Data Controller"}),u.jsxs("p",{className:"text-muted-foreground",children:[u.jsx("strong",{children:"Excellent Moving Sweden AB"}),u.jsx("br",{}),"Org.nr: 559187-8987",u.jsx("br",{}),"Bibliotekstorget 8, 171 45 Solna",u.jsx("br",{}),"Tel: 08-15 11 11",u.jsx("br",{}),"E-post: [email protected]"]})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:r?"Integritetspolicy":"Privacy Policy"}),u.jsx("p",{className:"text-muted-foreground",children:r?"Vi värnar om din personliga integritet och strävar efter att alltid skydda dina personuppgifter pÃ¥ bästa sätt. Denna policy beskriver hur vi samlar in, använder och skyddar dina personuppgifter.":"We value your personal privacy and always strive to protect your personal data in the best way possible. This policy describes how we 
601collect, use, and protect your personal data."})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:r?"Vilka uppgifter samlar vi in?":"What data do we collect?"}),u.jsx("p",{className:"text-muted-foreground mb-4",children:r?"Vi samlar in följande personuppgifter när du använder vÃ¥ra tjänster:":"We collect the following personal data when you use our services:"}),u.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-2",children:[u.jsx("li",{children:r?"Namn och kontaktuppgifter (telefonnummer, e-postadress)":"Name and contact details (phone number, email address)"}),u.jsx("li",{children:r?"Adressuppgifter för flytt- och städtjänster":"Address information for moving and cleaning services"}),u.jsx("li",{children:r?"Personnummer vid BankID-signering":"Personal identification number for BankID signing"}),u.jsx("li",{children:r?"Information om din bostad (storlek, vÃ¥ning, etc.)":"Information about your residence (size, floor, etc.)"})]})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:r?"Hur använder vi dina uppgifter?":"How do we use your data?"}),u.jsx("p",{className:"text-muted-foreground mb-4",children:r?"Vi använder dina personuppgifter för följande ändamÃ¥l:":"We use your personal data for the following purposes:"}),u.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-2",children:[u.jsx("li",{children:r?"För att kunna ge dig en offert pÃ¥ vÃ¥ra tjänster":"To provide you with a quote for our services"}),u.jsx("li",{children:r?"För att utföra de tjänster du beställt":"To perform the services you have ordered"}),u.jsx("li",{children:r?"För att kontakta dig angÃ¥ende din bokning eller förfrÃ¥gan":"To contact you regarding your booking or inquiry"}),u.jsx("li",{children:r?"För fakturering och betalningshantering":"For invoicing and payment processing"})]})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:r?"Hur länge sparar vi dina uppgifter?":"How long do we store your data?"}),u.jsx("p",{className:"text-muted-foreground",children:r?"Vi sparar dina personuppgifter sÃ¥ länge det är nödvändigt för att uppfylla de ändamÃ¥l som beskrivs i denna policy, eller sÃ¥ länge vi är skyldiga enligt lag (t.ex. bokföringslagen).":"We store your personal data for as long as necessary to fulfill the purposes described in this policy, or for as long as we are required by law (e.g., accounting regulations)."})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:r?"Dina rättigheter":"Your Rights"}),u.jsx("p",{className:"text-muted-foreground mb-4",children:r?"Du har rätt att:":"You have the right to:"}),u.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-2",children:[u.jsx("li",{children:r?"Begära tillgÃ¥ng till dina personuppgifter":"Request access to your personal data"}),u.jsx("li",{children:r?"Begära rättelse av felaktiga uppgifter":"Request correction of inaccurate data"}),u.jsx("li",{children:r?"Begära radering av dina uppgifter":"Request deletion of your data"}),u.jsx("li",{children:r?"Invända mot viss behandling av dina uppgifter":"Object to certain processing of your data"})]})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Cookies"}),u.jsx("p",{className:"text-muted-foreground mb-4",children:r?"VÃ¥r webbplats använder cookies för att förbättra din upplevelse och analysera trafik. Cookies är smÃ¥ textfiler som lagras pÃ¥ din enhet.":"Our website uses cookies to improve your experience and analyze traffic. Cookies are small text files stored on your device."}),u.jsx("p",{className:"text-muted-foreground mb-4",children:r?"Vi använder följande typer av cookies:":"We use the following types of cookies:"}),u.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-2",children:[u.jsxs("li",{children:[u.jsx("strong",{children:r?"Nödvändiga cookies":"Necessary cookies"})," - ",r?"Krävs för att webbplatsen ska fungera korrekt":"Required for the website to function properly"]}),u.jsxs("li",{children:[u.jsx("strong",{children:r?"Analyscookies":"Analytics cookies"})," - ",r?"Hjälper oss förstÃ¥ hur besökare använder webbplatsen (Google Analytics)":"Help us understand how visitors use the website (Google Analytics)"]}),u.jsxs("li",{children:[u.jsx("strong",{children:r?"Marknadsföringscookies":"Marketing cookies"})," - ",r?"Används för att visa relevanta annonser (Google Ads)":"Used to display relevant advertisements (Google Ads)"]})]}),u.jsx("p",{className:"text-muted-foreground mt-4",children:r?"Du kan hantera dina cookie-inställningar via cookie-bannern eller genom att ändra inställningarna i din webbläsare.":"You can manage your cookie preferences via the cookie banner or by changing your browser settings."})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:r?"Kontakta oss":"Contact Us"}),u.jsx("p",{className:"text-muted-foreground",children:r?"Om du har frÃ¥gor om vÃ¥r integritetspolicy eller vill utöva dina rättigheter, kontakta oss pÃ¥:":"If you have questions about our privacy policy or want to exercise your rights, contact us at:"}),u.jsxs("p",{className:"text-muted-foreground mt-2",children:["E-post: [email protected]",u.jsx("br",{}),"Tel: 08-15 11 11"]})]}),u.jsx("section",{className:"pt-8 border-t",children:u.jsx("p",{className:"text-sm text-muted-foreground",children:r?"Senast uppdaterad: December 2025":"Last updated: December 2025"})})]})]})})},Uae=new wU,_d=({children:e,lang:t})=>{const{i18n:r}=gi();return _.useEffect(()=>{r.language!==t&&r.changeLanguage(t)},[t,r]),u.jsx(u.Fragment,{children:e})},zae=()=>{const e=R_();return u.jsx(DP,{to:`/${e}`,replace:!0})},Hae=()=>
601u.jsx(_U,{client:Uae,children:u.jsxs(Zq,{children:[u.jsx(L$,{}),u.jsx(fB,{}),u.jsx(yz,{children:u.jsxs(dz,{children:[u.jsx(Ys,{path:"/",element:u.jsx(zae,{})}),u.jsx(Ys,{path:"/sv",element:u.jsx(_d,{lang:"sv",children:u.jsx(E3,{})})}),u.jsx(Ys,{path:"/sv/booking-flyttstadning",element:u.jsx(_d,{lang:"sv",children:u.jsx(RC,{})})}),u.jsx(Ys,{path:"/sv/integritetspolicy",element:u.jsx(_d,{lang:"sv",children:u.jsx(LC,{})})}),u.jsx(Ys,{path:"/en",element:u.jsx(_d,{lang:"en",children:u.jsx(E3,{})})}),u.jsx(Ys,{path:"/en/booking-flyttstadning",element:u.jsx(_d,{lang:"en",children:u.jsx(RC,{})})}),u.jsx(Ys,{path:"/en/privacy-policy",element:u.jsx(_d,{lang:"en",children:u.jsx(LC,{})})}),u.jsx(Ys,{path:"/booking-flyttstadning",element:u.jsx(DP,{to:`/${R_()}/booking-flyttstadning`,replace:!0})}),u.jsx(Ys,{path:"/map-test",element:u.jsx(qae,{})}),u.jsx(Ys,{path:"*",element:u.jsx(Eee,{})})]})})]})}),Vae={services:"Tjänster",about:"Om oss",contact:"Kontakt",getQuote:"Få offert",private:"Privat",business:"Företag"},Wae={badge:"Över 10 års erfarenhet i Stockholm",title:"Din flytt i",titleHighlight:"trygga händer",description:"Vi gör flytten enkel från start till mål. Få en skräddarsydd offert inom minuter – helt utan dolda kostnader.",benefits:{quote:"Kostnadsfri offert inom 2 min",insured:"Försäkrade och erfarna flyttare",noHidden:"Inga dolda avgifter"},cta:{getQuote:"Få gratis offert",callUs:"Ring oss"}},Kae={label:"Företagspresentation",title:"Stockholms ledande flyttfirma sedan",description:"Med över ett decennium av erfarenhet har vi hjälpt tusentals familjer och företag att flytta tryggt och smidigt. Vår dedikerade personal och moderna utrustning garanterar en stressfri upplevelse.",stats:{customers:"Nöjda kunder",customersDesc:"Familjer och företag som litat på oss",founded:"Grundat",foundedDesc:"År av erfarenhet och tillväxt",vehicles:"Fordon i flotta",vehiclesDesc:"Moderna lastbilar för alla typer av flytt"}},Gae={label:"Våra tjänster",title:"Helhetslösningar för",titleHighlight:"din flytt",cta:"Få en kostnadsfri offert",items:{bohagsflytt:{title:"Bohagsflytt",description:"Privatflytt för hem och lägenheter med omsorg om dina tillhörigheter"},kontorsflytt:{title:"Kontorsflytt",description:"Professionell företagsflytt med minimal störning i verksamheten"},magasinering:{title:"Magasinering",description:"Säker förvaring i moderna, klimatkontrollerade lokaler"},flyttstadning:{title:"Flyttstädning",description:"Grundlig städning som garanterar att du får tillbaka depositionen"},utlandsflytt:{title:"Utlandsflytt",description:"Internationella flyttjänster till och från hela världen"}}},Yae={label:"Varför välja oss",title:"Ett team som",titleHighlight:"bryr sig",description:"Vårt erfarna team arbetar tillsammans för att ge dig en stressfri flytt. Med rätt utrustning, kunskap och ett genuint engagemang tar vi hand om allt från start till mål.",features:{insured:{title:"Fullt försäkrade",description:"Alla dina tillhörigheter är skyddade under hela flytten"},punctual:{title:"Punktliga",description:"Vi kommer alltid i tid och håller vad vi lovar"},rut:{title:"RUT-avdrag",description:"Spara upp till 50% på arbetskostnaden"},licensed:{title:"Trafiktillstånd",description:"Licensierade och godkända av Transportstyrelsen"}}},Zae={label:"Kontakta oss",title:"Redo att",titleHighlight:"komma igång",description:"Välj den tjänst du är intresserad av så hjälper vi dig vidare."},Xae={description:"Stockholms pålitliga flyttföretag sedan 2018. Vi gör flytten enkel, trygg och stressfri.",services:"Tjänster",quickLinks:"Snabblänkar",contactTitle:"Kontakt",links:{about:"Om oss",contact:"Kontakt",quote:"Offertförfrågan",privacy:"Integritetspolicy",terms:"Villkor"},copyright:"Alla rättigheter förbehållna."},Jae={chooseService:"Välj tjänst",serviceSelector:{title:"Välj tjänst",services:{bohagsflytt:{name:"Bohagsflytt",description:"Privatpersoner"},kontorsflytt:{name:"Kontorsflytt",description:"Företag"},magasinering:{name:"Magasinering",description:"Förvaring"},flyttstadning:{name:"Flyttstädning",description:"Städtjänster"},utlandsflytt:{name:"Utlandsflytt",description:"Internationellt"}}},steps:{address:"Adress",addressShort:"Adress",dateTime:"Datum & Tid",dateTimeShort:"Datum",addons:"Tillval",contact:"Kontakt",payment:"Betalning"},stepTitles:{chooseService:"Välj tjänst",moveDetails:"Flytt detal
601jer",fromAddress:"FrÃ¥n adress",toAddress:"Till adress",contactDetails:"Kontaktuppgifter",cleaningDetails:"Detaljer för flyttstädning",additionalServices:"Tilläggstjänster",loadingAddress:"Lastningsadress",unloadingAddress:"Avlastningsadress",storageDetails:"Magasinering detaljer",fromStorage:"FrÃ¥n magasin",toStorage:"Till magasin"},stepDescriptions:{chooseService:"Vilken typ av flytt behöver du hjälp med?",moveDetails:"Berätta mer om din flytt sÃ¥ vi kan ge dig ett exakt pris",fromAddress:"Ange information om bostaden du flyttar ifrÃ¥n",toAddress:"Ange information om bostaden du flyttar till",contactDetails:"Fyll i dina kontaktuppgifter sÃ¥ kontaktar vi dig",cleaningDetails:"Ange information om bostaden som ska städas",officeDetails:"Berätta mer om er kontorsflytt sÃ¥ vi kan ge er ett exakt pris",officeFromAddress:"Ange information om kontoret ni flyttar ifrÃ¥n",officeToAddress:"Ange information om kontoret ni flyttar till",internationalDetails:"Vad ska flyttas och när?",additionalServices:"Behöver du hjälp med nÃ¥got mer?",loadingAddress:"Ange information om adressen där vi hämtar sakerna",unloadingAddress:"Ange information om adressen dit sakerna ska levereras",storageDetails:"Ska saker in i eller ut frÃ¥n magasin?",fromStorageAddress:"Ange information om magasinet",toStorageAddress:"Vart ska sakerna levereras?",customerFromAddress:"VarifrÃ¥n ska sakerna hämtas?"},progress:{step:"Steg",of:"av"},labels:{address:"Adress",residenceType:"Typ av bostad",residenceSize:"Bostadsyta",floor:"VÃ¥ning",floorVilla:"Antal vÃ¥ningar",elevator:"Hiss",workstations:"Antal arbetsplatser",officeSize:"Kontorsyta",name:"Namn",phone:"Telefon",email:"E-post",message:"Övriga önskemÃ¥l",moveDate:"Önskat flyttdatum",desiredDate:"Önskat datum",desiredMoveDate:"Önskat flyttdatum",pickupDate:"Upphämtningsdatum",deliveryDate:"Leveransdatum",flexibility:"Flexibilitet",dateFlexibility:"Datumflexibilitet",storageDuration:"Längd pÃ¥ magasinering",storageAddress:"Magasinets adress",squareMeters:"Antal kvadratmeter",workstationsNew:"Antal arbetsplatser i nya kontoret",whatToMove:"Vad ska flyttas?"},placeholders:{addressExample:"T.ex. Storgatan 12, Stockholm",addressTo:"T.ex. Kungsgatan 45, Göteborg",searchAddress:"Sök adress...",sizeExample:"T.ex. 75 m²",sizeLarger:"T.ex. 85 m²",floorExample:"T.ex. 3",floorVillaExample:"T.ex. 2 vÃ¥ningar",floorLower:"T.ex. 2",floorVillaLower:"T.ex. 2 vÃ¥ningar",workstationsExample:"T.ex. 25",workstationsLarger:"T.ex. 30",workstationsNewExample:"T.ex. 30",officeSizeExample:"T.ex. 200 m²",officeSizeLarger:"T.ex. 250 m²",officeSizeNewExample:"T.ex. 250 m²",nameExample:"Anna Andersson",phoneExample:"070 123 45 67",emailExample:"[email protected]",messageExample:"T.ex. specifika tider, extra hjälp...",heavyItemsExample:"Beskriv föremÃ¥len (t.ex. flygel, kassaskÃ¥p 200kg)...",heavyItemsOfficeExample:"Beskriv föremÃ¥len (t.ex. serverrack, kassaskÃ¥p 200kg)...",selectDate:"Välj datum",select:"Välj",selectResidenceType:"Välj typ av bostad",selectFlexibility:"Välj flexibilitet",selectDuration:"Välj lagringstid",loadingAddress:"Lastningsadress, t.ex. Storgatan 12, Stockholm",unloadingAddress:"Avlastningsadress, t.ex. Storgatan 12, Stockholm",storageAddressExample:"T.ex. Lagervägen 5, Stockholm",storageAddressOptional:"T.ex. Lagervägen 5, Stockholm (valfritt)"},helpTexts:{addressHint:"Börja skriva för adressförslag",addressClean:"Adressen som ska städas",sizeHint:"Ungefärlig storlek i kvadratmeter",sizeApprox:"Ungefärlig storlek räcker",dateConfirmation:"Vi bekräftar datumet i din offert",dateConfirmationPlural:"Vi bekräftar datumet i er offert",dateConfirmQuote:"Vi bekräftar datumet i din offert",dateFlexibility:"Hur flexibel är du med leveransdatumet?",nameHint:"För- och efternamn",phoneHint:"Vi ringer för att bekräfta",phoneConfirm:"Vi ringer för att bekräfta",emailHint:"För offert och bekräftelse",emailQuote:"För offert och bekräftelse",messageHint:"NÃ¥got speciellt vi bör veta? (valfritt)",workstationsHint:"Hur mÃ¥nga arbetsplatser finns det?",workstationsNewHint:"Hur mÃ¥nga arbetsplatser i nya kontoret?",workstationsNew:"Hur mÃ¥nga arbetsplatser i nya kontoret?",cleaningAddressHint:"Adressen som ska städas",unloadingAddressHint:"Ange fullständig avlastningsadress",storageAddressHint:"Ange adressen till magasinet",storageOptionalHint:"Lämna tomt om du vill använda vÃ¥rt magasin",pickupDate:"När ska vi hämta dina saker?",deliveryDate:"När ska sakerna vara framme pÃ¥ destinationen?"},options:{residenceTypes:{lagenhet:"Lägenhet",villa:"Villa/Radhus",magasin:"Magasin",annat:"Annat"},elevatorTypes:{"6pers":"6 pers / Stor hiss","4pers":"4 pers / Hiss","2pers":"2 pers / Hiss",ingen:"Ingen hiss"},flexibility:{exact:"Exakt datum","1-2weeks":"1-2 veckor flexibilitet","1month":"1 mÃ¥nads flexibilitet",flexible:"Helt flexibel"},storageDuration:{"1month":"Upp till 1 mÃ¥nad","1-3months":"1-3 mÃ¥na
601der","3-6months":"3-6 mÃ¥nader","6-12months":"6-12 mÃ¥nader","12months+":"Längre än 12 mÃ¥nader",unknown:"Vet ej ännu"}},toggles:{needStorage:{label:"Behöver du förvaring?",description:"Förvara dina ägodelar i ett lager mellan ut- och inflyttning",descriptionOffice:"Förvara inventarier i lager mellan ut- och inflyttning",descriptionInternational:"Förvara dina saker i lager innan leverans"},needPacking:{label:"Behöver du hjälp med packning?",description:"Vi packar ner dina saker säkert",descriptionOffice:"Vi packar ner kontorsmaterial säkert",descriptionInternational:"Vi packar ner dina saker säkert för internationell transport"},needCleaning:{label:"Behöver du flyttstädning?",description:"Professionell städning med garanti"},hasHeavyItems:{label:"Har du tunga föremÃ¥l?",labelPlural:"Har ni tunga föremÃ¥l?",description:"FöremÃ¥l över 100 kg, t.ex. piano, kassaskÃ¥p",descriptionOffice:"FöremÃ¥l över 100 kg, t.ex. kassaskÃ¥p, serverrack"}},household:{question:"Ska hela bohaget flyttas?",wholeHousehold:"Ja, hela bohaget",wholeHouseholdDesc:"Alla ägodelar flyttas",partialMove:"Nej, bara vissa föremÃ¥l",partialMoveDesc:"Välj specifika föremÃ¥l"},storage:{question:"Åt vilket hÃ¥ll ska sakerna flyttas?",toStorage:"In till magasin",toStorageDesc:"Flytta saker till magasin",fromStorage:"Ut frÃ¥n magasin",fromStorageDesc:"Hämta saker frÃ¥n magasin"},summary:{title:"Sammanfattning",service:"Tjänst",pickup:"Upphämtning",delivery:"Leverans",details:"Detaljer",flexibility:"Flexibilitet",partialMove:"Delflytt",items:"föremÃ¥l",cleaningObject:"Städadress",addons:"Tillägg",storage:"Magasinering",packing:"Packning",cleaning:"Städning",heavyItems:"Tunga föremÃ¥l",from:"FrÃ¥n",to:"Till",floor:"VÃ¥ning",workstations:"Arbetsplatser",estimatedVolume:"Uppskattad volym",distance:"AvstÃ¥nd",driveTime:"Körtid",contact:"Kontakt",storageDuration:"Lagringstid",storageIn:"Till magasin",storageOut:"FrÃ¥n magasin",loadingAddress:"Lastningsadress",unloadingAddress:"Avlastningsadress",chooseService:"Välj en tjänst",toGetStarted:"för att komma igÃ¥ng"},validation:{phoneRequired:"Telefonnummer krävs",phoneInvalid:"Ange ett giltigt telefonnummer",emailRequired:"E-post krävs",emailInvalid:"Ange en giltig e-postadress",nameRequired:"Namn krävs",nameMinLength:"Namnet mÃ¥ste vara minst 2 tecken"},titles:{addressDetails:"Adressuppgifter",dateTimeTitle:"Välj datum och tid",addonsTitle:"Tilläggstjänster"},bookingLabels:{streetAddress:"Gatuadress *",squareMeters:"Kvadratmeter *",postalCode:"Postnummer *",residenceType:"Typ av bostad *"},bookingPlaceholders:{searchAddress:"Sök adress...",squareMeters:"T.ex. 75",postalCodeAuto:"Hämtas automatiskt frÃ¥n adressen",selectResidenceType:"Välj typ av bostad"},success:{title:"Tack för din bokning!",subtitle:"Din bokning har bekräftats. Du kommer att fÃ¥ en bekräftelse via e-post.",bookingDetails:"Bokningsdetaljer",date:"Datum",time:"Tid",address:"Adress",price:"Pris",afterRut:"efter RUT-avdrag"},calendar:{selectDateAndTime:"Välj datum och tid",availableSlots:"Lediga tider",noSlotsAvailable:"Inga lediga tider",selectDate:"Välj ett datum för att se lediga tider"},addons:{title:"Tilläggstjänster (tillval)",waterTraps:"VattenlÃ¥s",waterTrapsDesc:"Rengöring och pÃ¥fyllning av vattenlÃ¥s",balcony:"Inglasad balkong/altan",balconyDesc:"Städning av inglasad balkong eller altan",storage:"FörrÃ¥d/garage",storageDesc:"Städning av förrÃ¥d eller garage",freezer:"Avfrostning av frys",freezerDesc:"Avfrostning och rengöring av frys",balconyOptions:{none:"Nej",small:"Inglasad under 10 m² (+300 kr)",large:"Inglasad över 10 m² (+600 kr)",halfSmall:"Halv inglasad under 10 m² (+150 kr)",halfLarge:"Halv inglasad över 10 m² (+300 kr)"},storageOptions:{none:"Nej",small:"Under 10 m² (+150 kr)",large:"Över 10 m² (+300 kr)"}},residenceTypes:{lagenhet:"Lägenhet",villa:"Villa/Radhus",radhus:"Radhus",annat:"Annat"},buttons:{continue:"Fortsätt",back:"Tillbaka",submit:"Skicka förfrÃ¥gan",continueToPayment:"Fortsätt till betalning",downloadChecklist:"Ladda ner checklista",signWithBankId:"Signera med BankID",tryAgain:"Försök igen",bookDirect:"Boka direkt",getQuote:"FÃ¥ en offert"},step4:{title:"Dina uppgifter",firstName:"Förnamn *",lastName:"Efternamn *",email:"E-post *",phone:"Telefon *",personalNumber:"Personnummer (ÅÅMMDD-XXXX) *",acceptTerms:"Jag godkänner integritetspolicyn *",placeholders:{firstName:"Förnamn",lastName:"Efternamn",email:"[email protected]",phone:"070 123 45 67",personalNumber:"YYMMDD-XXXX"}}
601,step5:{title:"Signera med BankID",paymentMethod:"Betalning: Faktura (20 dagars betalningsvillkor)",scanQr:"Skanna QR-koden med BankID-appen",openOnDevice:"Öppna BankID pÃ¥ denna enhet",thankYou:"Tack för din bokning!",signingComplete:"Signering genomförd",signedBy:"Signerad av:",signingFailed:"Signering misslyckades",invoiceInfo:"Faktura skickas efter varje utförd städning med 20 dagars betalningsvillkor",emailConfirmation:"Orderbekräftelse via e-post",emailConfirmationDesc:"En orderbekräftelse kommer att skickas till din e-post."},sidebar:{title:"Flyttstädning",size:"Storlek",postalCode:"Postnummer",residence:"Bostad",estimatedTime:"Uppskattad arbetstid",person:"person",persons:"personer",addOns:"Tillval",selected:"valda",standard:"Standard",basePrice:"Grundpris",distanceFrom:"AvstÃ¥nd frÃ¥n Solna:",mileageCompensation:"Milersättning",kmOver:"km över 50 km",totalBeforeRut:"Totalt före RUT",rutDeduction:"RUT-avdrag (50%)",toPay:"ATT BETALA",enterSqm:"Ange antal kvadratmeter för att se pris",cancellationPolicy:"Gratis avbokning och ombokning 2 arbetsdagar före uppdragets början"},toast:{signingSuccess:"Signering lyckades!",welcome:"Välkommen",signingFailed:"Signering misslyckades",tryAgain:"Försök igen",timeExpired:"Tidsgränsen överskreds",bookingConfirmed:"Bokning bekräftad! 🎉",emailConfirmation:"Du kommer att fÃ¥ en bekräftelse via e-post.",somethingWrong:"NÃ¥got gick fel",tryAgainOrContact:"Försök igen eller kontakta oss direkt.",successTitle:"FörfrÃ¥gan skickad!",successDescription:"Vi kontaktar dig inom 24 timmar med en offert."},confirmClose:"Du har ifyllda uppgifter. Är du säker pÃ¥ att du vill stänga?",tillval:{selectedCount:"Valda tillval",selectCount:"Välj antal"}},Qae={steps:{address:"Adress",addressShort:"Adress",dateTime:"Datum & Tid",dateTimeShort:"Datum",addons:"Tillval",contact:"Kontakt",payment:"Betalning"},titles:{addressDetails:"Adressuppgifter",dateTimeTitle:"Välj datum och tid",selectDateTime:"Välj datum och tid",addonsTitle:"Tilläggstjänster"},labels:{streetAddress:"Gatuadress *",squareMeters:"Kvadratmeter *",postalCode:"Postnummer *",residenceType:"Typ av bostad *",balcony:"Inglasad balkong/altan",storage:"FörrÃ¥d/garage",freezerDefrost:"Avfrostning av frys",waterTraps:"VattenlÃ¥s"},placeholders:{searchAddress:"Sök adress...",squareMeters:"T.ex. 75",postalCodeAuto:"Hämtas automatiskt frÃ¥n adressen",selectResidenceType:"Välj typ av bostad",selectSize:"Välj storlek"},tillval:{selectedCount:"Valda tillval",selectCount:"Välj antal"},balconyOptions:{none:"Nej",small:"Inglasad under 10 m² (+300 kr)",large:"Inglasad över 10 m² (+600 kr)",halfSmall:"Halv inglasad under 10 m² (+150 kr)",halfLarge:"Halv inglasad över 10 m² (+300 kr)"},storageOptions:{none:"Nej",small:"Under 10 m² (+150 kr)",large:"Över 10 m² (+300 kr)"},success:{title:"Tack för din bokning!",subtitle:"Din bokning har bekräftats. Du kommer att fÃ¥ en bekräftelse via e-post.",bookingDetails:"Bokningsdetaljer",date:"Datum",time:"Tid",address:"Adress",price:"Pris",afterRut:"efter RUT-avdrag"},calendar:{selectDateAndTime:"Välj datum och tid",availableSlots:"Lediga tider",noSlotsAvailable:"Inga lediga tider",selectDate:"Välj ett datum för att se lediga tider"},addons:{title:"Tilläggstjänster (tillval)",waterTraps:"VattenlÃ¥s",waterTrapsDesc:"Rengöring och pÃ¥fyllning av vattenlÃ¥s",balcony:"Inglasad balkong/altan",balconyDesc:"Städning av inglasad balkong eller altan",storage:"FörrÃ¥d/garage",storageDesc:"Städning av förrÃ¥d eller garage",freezer:"Avfrostning av frys",freezerDesc:"Avfrostning och rengöring av frys",balconyOptions:{none:"Nej",small:"Inglasad under 10 m² (+300 kr)",large:"Inglasad över 10 m² (+600 kr)",halfSmall:"Halv inglasad under 10 m² (+150 kr)",halfLarge:"Halv inglasad över 10 m² (+300 kr)"},storageOptions:{none:"Nej",small:"Under 10 m² (+150 kr)",large:"Över 10 m² (+300 kr)"}},residenceTypes:{lagenhet:"Lägenhet",villa:"Villa/Radhus",radhus:"Radhus",annat:"Annat",apartment:"Lägenhet",house:"Villa/Radhus",office:"Kontor",other:"Annat"},days:{mon:"MÃ¥n",tue:"Tis",wed:"Ons",thu:"Tor",fri:"Fre",sat:"Lör",sun:"Sön"},buttons:{continue:"Fortsätt",back:"Tillbaka",continueToPayment:"Fortsätt till betalning",downloadChecklist:"Ladda ner checklista",signWithBankId:"Signera med BankID",tryAgain:"Försök igen"},step4:{title:"Dina uppgifter",firstName:"Förnamn *",lastName:"Efternamn *",email:"E-post *",phone:"Telefon *",personalNumber:"Personnummer (ÅÅMMDD-XXXX) *",acceptTerms:"Jag godkänner integritetspolicyn *",placeholders:{firstName:"Förnamn",lastName:"Efternamn",email:"[email protected]",phone:"070 123 45 67",personalNumber:"YYMMDD-XXXX"}}
601,step5:{title:"Signera med BankID",paymentMethod:"Betalning: Faktura (20 dagars betalningsvillkor)",scanQr:"Skanna QR-koden med BankID-appen",openOnDevice:"Öppna BankID på denna enhet",thankYou:"Tack för din bokning!",signingComplete:"Signering genomförd",signedBy:"Signerad av:",signingFailed:"Signering misslyckades",invoiceInfo:"Faktura skickas efter varje utförd städning med 20 dagars betalningsvillkor",emailConfirmation:"Orderbekräftelse via e-post",emailConfirmationDesc:"En orderbekräftelse kommer att skickas till din e-post."},sidebar:{title:"Flyttstädning",size:"Storlek",postalCode:"Postnummer",residence:"Bostad",estimatedTime:"Uppskattad arbetstid",person:"person",persons:"personer",addOns:"Tillval",selected:"valda",standard:"Standard",basePrice:"Grundpris",distanceFrom:"Avstånd från Solna:",mileageCompensation:"Milersättning",kmOver:"km över 50 km",totalBeforeRut:"Totalt före RUT",rutDeduction:"RUT-avdrag (50%)",toPay:"ATT BETALA",enterSqm:"Ange antal kvadratmeter för att se pris",cancellationPolicy:"Gratis avbokning och ombokning 2 arbetsdagar före uppdragets början"},toast:{signingSuccess:"Signering lyckades!",welcome:"Välkommen",signingFailed:"Signering misslyckades",tryAgain:"Försök igen",timeExpired:"Tidsgränsen överskreds",bookingConfirmed:"Bokning bekräftad! 🎉",emailConfirmation:"Du kommer att få en bekräftelse via e-post.",somethingWrong:"Något gick fel",tryAgainOrContact:"Försök igen eller kontakta oss direkt."}},eoe={title:"Välj möbler och föremål",selectButton:"Välj möbler och föremål",noItemsSelected:"Inga möbler valda",clickToSelect:"Klicka för att välja vad som ska flyttas",items:"föremål",estimatedVolume:"Uppskattad volym",done:"Klar",perUnit:"m³/st",categories:{livingRoom:"Vardagsrum",bedroom:"Sovrum",kitchenDining:"Kök & Matsal",office:"Kontor",other:"Övrigt"},furniture:{"sofa-3":"Soffa (3-sits)","sofa-2":"Soffa (2-sits)",armchair:"Fåtölj","tv-stand":"TV-bänk",bookshelf:"Bokhylla","coffee-table":"Soffbord","tv-large":"TV (stor)","bed-double":"Säng (dubbel)","bed-single":"Säng (enkel)","wardrobe-large":"Garderob (stor)","wardrobe-small":"Garderob (liten)",dresser:"Byrå",nightstand:"Sängbord","dining-table":"Matbord","dining-chairs":"Matstol",fridge:"Kyl/frys",dishwasher:"Diskmaskin","washing-machine":"Tvättmaskin",desk:"Skrivbord","office-chair":"Kontorsstol",computer:"Dator + skärm","moving-box":"Flyttkartong",bike:"Cykel","exercise-equipment":"Träningsutrustning","baby-stroller":"Barnvagn",mattress:"Madrass"}},toe={metaTitle:"Boka Flyttstädning",metaDescription:"Boka professionell flyttstädning med RUT-avdrag. Snabb och enkel bokning online. Nöjd kund-garanti.",title:"Boka Flyttstädning",description:"Fyll i formuläret nedan för att boka din flyttstädning. Vi tar hand om allt så du kan fokusera på din flytt."},roe={header:Vae,hero:Wae,about:Kae,services:Gae,whyUs:Yae,contact:Zae,footer:Xae,quoteForm:Jae,bookingForm:Qae,furniturePicker:eoe,bookingPage:toe},noe={services:"Services",about:"About us",contact:"Contact",getQuote:"Get quote",private:"Private",business:"Business"},ioe={badge:"Over 10 years of experience in Stockholm",title:"Your move in",titleHighlight:"safe hands",description:"We make moving easy from start to finish. Get a customized quote within minutes – completely without hidden costs.",benefits:{quote:"Free quote within 2 min",insured:"Insured and experienced movers",noHidden:"No hidden fees"},cta:{getQuote:"Get free quote",callUs:"Call us"}},soe={label:"Company presentation",title:"Stockholm's leading moving company since",description:"With over a decade of experience, we have helped thousands of families and businesses move safely and smoothly. Our dedicated staff and modern equipment guarantee a stress-free experience.",stats:{customers:"Satisfied customers",customersDesc:"Families and businesses who trusted us",founded:"Founded",foundedDesc:"Years of experience and growth",vehicles:"Vehicles in fleet",vehiclesDesc:"Modern trucks for all types of moves"}},aoe={label:"Our services",title:"Complete solutions for",titleHighlight:"your move",cta:"Get a free quote",items:{bohagsflytt:{title:"Residential Moving",description:"Private moving for homes and apartments with care for your belongings"},kontorsflytt:{title:"Office Moving",description:"Professional business relocation with minimal disruption to operations"},magasinering:{title:"Storage",description:"Secure storage in modern, climate-controlled facilities"}
601,flyttstadning:{title:"Move-out Cleaning",description:"Thorough cleaning that guarantees you get your deposit back"},utlandsflytt:{title:"International Moving",description:"International moving services to and from anywhere in the world"}}},ooe={label:"Why choose us",title:"A team that",titleHighlight:"cares",description:"Our experienced team works together to give you a stress-free move. With the right equipment, knowledge and genuine commitment, we take care of everything from start to finish.",features:{insured:{title:"Fully insured",description:"All your belongings are protected throughout the move"},punctual:{title:"Punctual",description:"We always arrive on time and keep our promises"},rut:{title:"Tax deduction",description:"Save up to 50% on labor costs"},licensed:{title:"Licensed",description:"Licensed and approved by the Transport Agency"}}},loe={label:"Contact us",title:"Ready to",titleHighlight:"get started",description:"Choose the service you're interested in and we'll help you get started."},coe={description:"Stockholm's reliable moving company since 2018. We make moving easy, safe and stress-free.",services:"Services",quickLinks:"Quick links",contactTitle:"Contact",links:{about:"About us",contact:"Contact",quote:"Quote request",privacy:"Privacy policy",terms:"Terms"},copyright:"All rights reserved."},uoe={chooseService:"Choose service",serviceSelector:{title:"Choose service",services:{bohagsflytt:{name:"Residential Moving",description:"Private individuals"},kontorsflytt:{name:"Office Moving",description:"Businesses"},magasinering:{name:"Storage",description:"Storage services"},flyttstadning:{name:"Move-out Cleaning",description:"Cleaning services"},utlandsflytt:{name:"International Moving",description:"International"}}},steps:{address:"Address",addressShort:"Address",dateTime:"Date & Time",dateTimeShort:"Date",addons:"Add-ons",contact:"Contact",payment:"Payment"},stepTitles:{chooseService:"Choose service",moveDetails:"Move details",fromAddress:"From address",toAddress:"To address",contactDetails:"Contact details",cleaningDetails:"Cleaning details",additionalServices:"Additional services",loadingAddress:"Loading address",unloadingAddress:"Unloading address",storageDetails:"Storage details",fromStorage:"From storage",toStorage:"To storage"},stepDescriptions:{chooseService:"What type of move do you need help with?",moveDetails:"Tell us more about your move so we can give you an exact price",fromAddress:"Enter information about the residence you're moving from",toAddress:"Enter information about the residence you're moving to",contactDetails:"Fill in your contact details and we'll get in touch",cleaningDetails:"Enter information about the residence to be cleaned",officeDetails:"Tell us more about your office move so we can give you an exact price",officeFromAddress:"Enter information about the office you're moving from",officeToAddress:"Enter information about the office you're moving to",internationalDetails:"What needs to be moved and when?",additionalServices:"Do you need help with anything else?",loadingAddress:"Enter information about the pickup address",unloadingAddress:"Enter information about the delivery address",storageDetails:"Are items going into or out of storage?",fromStorageAddress:"Enter information about the storage facility",toStorageAddress:"Where should the items be delivered?",customerFromAddress:"Where should the items be picked up from?"},progress:{step:"Step",of:"of"},labels:{address:"Address",residenceType:"Type of residence",residenceSize:"Residence size",floor:"Floor",floorVilla:"Number of floors",elevator:"Elevator",workstations:"Number of workstations",officeSize:"Office size",name:"Name",phone:"Phone",email:"Email",message:"Additional requests",moveDate:"Desired move date",desiredDate:"Desired date",desiredMoveDate:"Desired move date",pickupDate:"Pickup date",deliveryDate:"Delivery date",flexibility:"Flexibility",dateFlexibility:"Date flexibility",storageDuration:"Storage duration",storageAddress:"Storage address",squareMeters:"Square meters",workstationsNew:"Workstations in new office",whatToMove:"What should be moved?"},placeholders:{addressExample:"E.g. Storgatan 12, Stockholm",addressTo:"E.g. Kungsgatan 45, Göteborg",searchAddress:"Search address...",sizeExample:"E.g. 75 m²",sizeLarger:"E.g. 85 m²",floorExample:"E.g. 3",floorVillaExample:"E.g. 2 floors",floorLower:"E.g. 2",floorVillaLower:"E.g. 2 floors",workstationsExample:"E.g. 25",workstationsLarger:"E.g. 30",workstationsNewExample:"E.g. 30",officeSizeExample:"E.g. 200 m²",officeSizeLarger:"E.g. 250 m²",officeSizeNewExample:"E.g. 250 m²",nameExample:"Anna Andersson",phoneExample:"070 123 45 67",emailExample:"[email protected]",messageExample:"E.g. specific times, extra help...",heavyItemsExample:"Describe the items (e.g. grand piano, 200kg safe)...",heavyItemsOfficeExample:"Describe the items (e.g. server rack, 200kg safe)...",selectDate:"Select date",select:"Select",selectResidenceType:"Select type of residence",selectFlexibility:"Select flexibility",selectDuration:"Select storage duration",loadingAddress:"Loading address, e.g. Storgatan 12, Stockholm",unloadingAddress:"Unloading address, e.g. Storgatan 12, Stockholm",storageAddressExample:"E.g. Lagervägen 5, Stockholm",storageAddressOptional:"E.g. Lagervägen 5, Stockholm (optional)"},helpTexts:{addressHint:"Start typing for address suggestions",addressClean:"The address to be cleaned",sizeHint:"Approximate size in square meters",sizeApprox:"Approximate size is fine",dateConfirmation:"We'll confirm the date in y
601our quote",dateConfirmationPlural:"We'll confirm the date in your quote",dateConfirmQuote:"We'll confirm the date in your quote",dateFlexibility:"How flexible are you with the delivery date?",nameHint:"First and last name",phoneHint:"We'll call to confirm",phoneConfirm:"We'll call to confirm",emailHint:"For quote and confirmation",emailQuote:"For quote and confirmation",messageHint:"Anything special we should know? (optional)",workstationsHint:"How many workstations are there?",workstationsNewHint:"How many workstations in the new office?",workstationsNew:"How many workstations in the new office?",cleaningAddressHint:"The address to be cleaned",unloadingAddressHint:"Enter full unloading address",storageAddressHint:"Enter the storage facility address",storageOptionalHint:"Leave empty to use our storage facilities",pickupDate:"When should we pick up your belongings?",deliveryDate:"When should the items arrive at the destination?"},options:{residenceTypes:{lagenhet:"Apartment",villa:"House/Townhouse",magasin:"Storage",annat:"Other"},elevatorTypes:{"6pers":"6 pers / Large elevator","4pers":"4 pers / Elevator","2pers":"2 pers / Elevator",ingen:"No elevator"},flexibility:{exact:"Exact date","1-2weeks":"1-2 weeks flexibility","1month":"1 month flexibility",flexible:"Fully flexible"},storageDuration:{"1month":"Up to 1 month","1-3months":"1-3 months","3-6months":"3-6 months","6-12months":"6-12 months","12months+":"More than 12 months",unknown:"Don't know yet"}},toggles:{needStorage:{label:"Do you need storage?",description:"Store your belongings between moving out and in",descriptionOffice:"Store inventory between moving out and in",descriptionInternational:"Store your items before delivery"},needPacking:{label:"Do you need help with packing?",description:"We pack your items safely",descriptionOffice:"We pack office materials safely",descriptionInternational:"We pack your items safely for international transport"},needCleaning:{label:"Do you need move-out cleaning?",description:"Professional cleaning with guarantee"},hasHeavyItems:{label:"Do you have heavy items?",labelPlural:"Do you have heavy items?",description:"Items over 100 kg, e.g. piano, safe",descriptionOffice:"Items over 100 kg, e.g. safe, server rack"}},household:{question:"Shall the entire household move?",wholeHousehold:"Yes, entire household",wholeHouseholdDesc:"All belongings are moving",partialMove:"No, only certain items",partialMoveDesc:"Select specific items"},storage:{question:"What direction is the move?",toStorage:"To storage",toStorageDesc:"Moving items into storage",fromStorage:"From storage",fromStorageDesc:"Retrieving items from storage"},summary:{title:"Summary",service:"Service",pickup:"Pickup",delivery:"Delivery",details:"Details",flexibility:"Flexibility",partialMove:"Partial move",items:"items",cleaningObject:"Cleaning address",addons:"Add-ons",storage:"Storage",packing:"Packing",cleaning:"Cleaning",heavyItems:"Heavy items",from:"From",to:"To",floor:"Floor",workstations:"Workstations",estimatedVolume:"Estimated volume",distance:"Distance",driveTime:"Drive time",contact:"Contact",storageDuration:"Storage duration",storageIn:"To storage",storageOut:"From storage",loadingAddress:"Loading address",unloadingAddress:"Unloading address",chooseService:"Choose a service",toGetStarted:"to get started"},validation:{phoneRequired:"Phone number is required",phoneInvalid:"Enter a valid phone number",emailRequired:"Email is required",emailInvalid:"Enter a valid email address",nameRequired:"Name is required",nameMinLength:"Name must be at least 2 characters"},titles:{addressDetails:"Address details",dateTimeTitle:"Choose date and time",addonsTitle:"Additional services"},bookingLabels:{streetAddress:"Street address *",squareMeters:"Square meters *",postalCode:"Postal code *",residenceType:"Type of residence *"},bookingPlaceholders:{searchAddress:"Search address...",squareMeters:"E.g. 75",postalCodeAuto:"Extracted automatically from address",selectResidenceType:"Select type of residence"},success:{title:"Thank you for your booking!",subtitle:"Your booking has been confirmed. You will receive a confirmation via email.",bookingDetails:"Booking details",date:"Date",time:"Time",address:"Address",price:"Price",afterRut:"after RUT deduction"},calendar:{selectDateAndTime:"Select date and time",availableSlots:"Available times",noSlotsAvailable:"No times available",selectDate:"Select a date to see available times"}
601,addons:{title:"Additional services (add-ons)",waterTraps:"Water traps",waterTrapsDesc:"Cleaning and filling of water traps",balcony:"Enclosed balcony/terrace",balconyDesc:"Cleaning of enclosed balcony or terrace",storage:"Storage/garage",storageDesc:"Cleaning of storage or garage",freezer:"Freezer defrosting",freezerDesc:"Defrosting and cleaning of freezer",balconyOptions:{none:"No",small:"Enclosed under 10 m² (+300 kr)",large:"Enclosed over 10 m² (+600 kr)",halfSmall:"Partial under 10 m² (+150 kr)",halfLarge:"Partial over 10 m² (+300 kr)"},storageOptions:{none:"No",small:"Under 10 m² (+150 kr)",large:"Over 10 m² (+300 kr)"}},residenceTypes:{lagenhet:"Apartment",villa:"House/Townhouse",radhus:"Townhouse",annat:"Other"},buttons:{continue:"Continue",back:"Back",submit:"Send request",continueToPayment:"Continue to payment",downloadChecklist:"Download checklist",signWithBankId:"Sign with BankID",tryAgain:"Try again",bookDirect:"Book directly",getQuote:"Get a quote"},step4:{title:"Your details",firstName:"First name *",lastName:"Last name *",email:"Email *",phone:"Phone *",personalNumber:"Personal number (YYMMDD-XXXX) *",acceptTerms:"I accept the privacy policy *",placeholders:{firstName:"First name",lastName:"Last name",email:"[email protected]",phone:"070 123 45 67",personalNumber:"YYMMDD-XXXX"}},step5:{title:"Sign with BankID",paymentMethod:"Payment: Invoice (20 days payment terms)",scanQr:"Scan the QR code with the BankID app",openOnDevice:"Open BankID on this device",thankYou:"Thank you for your booking!",signingComplete:"Signing completed",signedBy:"Signed by:",signingFailed:"Signing failed",invoiceInfo:"Invoice is sent after each completed cleaning with 20 days payment terms",emailConfirmation:"Order confirmation via email",emailConfirmationDesc:"An order confirmation will be sent to your email."},sidebar:{title:"Move Cleaning",size:"Size",postalCode:"Postal code",residence:"Residence",estimatedTime:"Estimated work time",person:"person",persons:"persons",addOns:"Add-ons",selected:"selected",standard:"Standard",basePrice:"Base price",distanceFrom:"Distance from Solna:",mileageCompensation:"Mileage compensation",kmOver:"km over 50 km",totalBeforeRut:"Total before RUT",rutDeduction:"RUT deduction (50%)",toPay:"TO PAY",enterSqm:"Enter square meters to see price",cancellationPolicy:"Free cancellation and rebooking 2 working days before the assignment starts"},toast:{signingSuccess:"Signing successful!",welcome:"Welcome",signingFailed:"Signing failed",tryAgain:"Try again",timeExpired:"Time limit exceeded",bookingConfirmed:"Booking confirmed! 🎉",emailConfirmation:"You will receive a confirmation via email.",somethingWrong:"Something went wrong",tryAgainOrContact:"Try again or contact us directly.",successTitle:"Request sent!",successDescription:"We will contact you within 24 hours with a quote."},confirmClose:"You have entered information. Are you sure you want to close?",tillval:{selectedCount:"Selected add-ons",selectCount:"Select quantity"}},doe={steps:{address:"Address",addressShort:"Address",dateTime:"Date & Time",dateTimeShort:"Date",addons:"Add-ons",contact:"Contact",payment:"Payment"},titles:{addressDetails:"Address details",dateTimeTitle:"Choose date and time",selectDateTime:"Select date and time",addonsTitle:"Additional services"},labels:{streetAddress:"Street address *",squareMeters:"Square meters *",postalCode:"Postal code *",residenceType:"Type of residence *",balcony:"Enclosed balcony/terrace",storage:"Storage/garage",freezerDefrost:"Freezer defrosting",waterTraps:"Water traps"},placeholders:{searchAddress:"Search address...",squareMeters:"E.g. 75",postalCodeAuto:"Extracted automatically from address",selectResidenceType:"Select type of residence",selectSize:"Select size"},tillval:{selectedCount:"Selected add-ons",selectCount:"Select quantity"},balconyOptions:{none:"No",small:"Enclosed under 10 m² (+300 kr)",large:"Enclosed over 10 m² (+600 kr)",halfSmall:"Partial under 10 m² (+150 kr)",halfLarge:"Partial over 10 m² (+300 kr)"},storageOptions:{none:"No",small:"Under 10 m² (+150 kr)",large:"Over 10 m² (+300 kr)"}
601,success:{title:"Thank you for your booking!",subtitle:"Your booking has been confirmed. You will receive a confirmation via email.",bookingDetails:"Booking details",date:"Date",time:"Time",address:"Address",price:"Price",afterRut:"after RUT deduction"},calendar:{selectDateAndTime:"Select date and time",availableSlots:"Available times",noSlotsAvailable:"No times available",selectDate:"Select a date to see available times"},addons:{title:"Additional services (add-ons)",waterTraps:"Water traps",waterTrapsDesc:"Cleaning and filling of water traps",balcony:"Enclosed balcony/terrace",balconyDesc:"Cleaning of enclosed balcony or terrace",storage:"Storage/garage",storageDesc:"Cleaning of storage or garage",freezer:"Freezer defrosting",freezerDesc:"Defrosting and cleaning of freezer",balconyOptions:{none:"No",small:"Enclosed under 10 m² (+300 kr)",large:"Enclosed over 10 m² (+600 kr)",halfSmall:"Partial under 10 m² (+150 kr)",halfLarge:"Partial over 10 m² (+300 kr)"},storageOptions:{none:"No",small:"Under 10 m² (+150 kr)",large:"Over 10 m² (+300 kr)"}},residenceTypes:{lagenhet:"Apartment",villa:"House/Townhouse",radhus:"Townhouse",annat:"Other",apartment:"Apartment",house:"House/Townhouse",office:"Office",other:"Other"},days:{mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat",sun:"Sun"},buttons:{continue:"Continue",back:"Back",continueToPayment:"Continue to payment",downloadChecklist:"Download checklist",signWithBankId:"Sign with BankID",tryAgain:"Try again"},step4:{title:"Your details",firstName:"First name *",lastName:"Last name *",email:"Email *",phone:"Phone *",personalNumber:"Personal number (YYMMDD-XXXX) *",acceptTerms:"I accept the privacy policy *",placeholders:{firstName:"First name",lastName:"Last name",email:"[email protected]",phone:"070 123 45 67",personalNumber:"YYMMDD-XXXX"}},step5:{title:"Sign with BankID",paymentMethod:"Payment: Invoice (20 days payment terms)",scanQr:"Scan the QR code with the BankID app",openOnDevice:"Open BankID on this device",thankYou:"Thank you for your booking!",signingComplete:"Signing completed",signedBy:"Signed by:",signingFailed:"Signing failed",invoiceInfo:"Invoice is sent after each completed cleaning with 20 days payment terms",emailConfirmation:"Order confirmation via email",emailConfirmationDesc:"An order confirmation will be sent to your email."},sidebar:{title:"Move Cleaning",size:"Size",postalCode:"Postal code",residence:"Residence",estimatedTime:"Estimated work time",person:"person",persons:"persons",addOns:"Add-ons",selected:"selected",standard:"Standard",basePrice:"Base price",distanceFrom:"Distance from Solna:",mileageCompensation:"Mileage compensation",kmOver:"km over 50 km",totalBeforeRut:"Total before RUT",rutDeduction:"RUT deduction (50%)",toPay:"TO PAY",enterSqm:"Enter square meters to see price",cancellationPolicy:"Free cancellation and rebooking 2 working days before the assignment starts"},toast:{signingSuccess:"Signing successful!",welcome:"Welcome",signingFailed:"Signing failed",tryAgain:"Try again",timeExpired:"Time limit exceeded",bookingConfirmed:"Booking confirmed! 🎉",emailConfirmation:"You will receive a confirmation via email.",somethingWrong:"Something went wrong",tryAgainOrContact:"Try again or contact us directly."}},foe={title:"Select furniture and items",selectButton:"Select furniture and items",noItemsSelected:"No furniture selected",clickToSelect:"Click to select what to move",items:"items",estimatedVolume:"Estimated volume",done:"Done",perUnit:"m³/ea",categories:{livingRoom:"Living room",bedroom:"Bedroom",kitchenDining:"Kitchen & Dining",office:"Office",other:"Other"},furniture:{"sofa-3":"Sofa (3-seater)","sofa-2":"Sofa (2-seater)",armchair:"Armchair","tv-stand":"TV stand",bookshelf:"Bookshelf","coffee-table":"Coffee table","tv-large":"TV (large)","bed-double":"Bed (double)","bed-single":"Bed (single)","wardrobe-large":"Wardrobe (large)","wardrobe-small":"Wardrobe (small)",dresser:"Dresser",nightstand:"Nightstand","dining-table":"Dining table","dining-chairs":"Dining chair",fridge:"Fridge/freezer",dishwasher:"Dishwasher","washing-machine":"Washing machine",desk:"Desk","office-chair":"Office chair",computer:"Computer + monitor","moving-box":"Moving box",bike:"Bicycle","exercise-equipment":"Exercise equipment","baby-stroller":"Baby stroller",mattress:"Mattress"}},hoe={metaTitle:"Book Move Cleaning",metaDescription:"Book professional move cleaning with tax deduction. Fast and easy online booking. Satisfaction guarantee.",title:"Book Move Cleaning",description:"Fill in the form below to book your move cleaning. We take care of everything so you can focus on your move."},poe={header:noe,hero:ioe,about:soe,services:aoe,whyUs:ooe,contact:loe,footer:coe,quoteForm:uoe,bookingForm:d
601oe,furniturePicker:foe,bookingPage:hoe},moe={sv:{translation:roe},en:{translation:poe}};Ti.use(Jz).init({resources:moe,lng:R_(),fallbackLng:"sv",interpolation:{escapeValue:!1}});nT(document.getElementById("root")).render(u.jsx(Hae,{}));export{vr as _,rd as c,Ou as g};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.